-
Notifications
You must be signed in to change notification settings - Fork 5.5k
13401 components dart #18813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
13401 components dart #18813
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
173a495
Implement CRUD operations for documents in Dart, including create, up…
luancazarine 31bcfa6
pnpm update
luancazarine 0308a30
Update API paths in Dart component and increment version numbers for …
luancazarine 99c1c03
Merge branch 'master' into 13401-components-dart
luancazarine e04aeed
Refactor Dart component to enhance task management features
luancazarine eb51e24
Update components/dart/actions/create-task/create-task.mjs
luancazarine 033f60f
Update components/dart/actions/find-or-create-task/find-or-create-tas…
luancazarine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,4 @@ export default { | |
| console.log(Object.keys(this.$auth)); | ||
| }, | ||
| }, | ||
| }; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| import dart from "../../dart.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "dart-create-doc", | ||
| name: "Create Doc", | ||
| description: "Record a new doc that the user intends to write down. This will save the doc in Dart for later access, search, etc. By default the created doc will be in the Docs folder. More information can be included in the text. [See the documentation](https://app.dartai.com/api/v0/public/docs/#/Doc/createDoc)", | ||
| version: "0.0.1", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: false, | ||
| }, | ||
| type: "action", | ||
| props: { | ||
| dart, | ||
| title: { | ||
| propDefinition: [ | ||
| dart, | ||
| "title", | ||
| ], | ||
| }, | ||
| folder: { | ||
| propDefinition: [ | ||
| dart, | ||
| "folder", | ||
| ], | ||
| }, | ||
| text: { | ||
| propDefinition: [ | ||
| dart, | ||
| "text", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.dart.createDoc({ | ||
| $, | ||
| data: { | ||
| item: { | ||
| title: this.title, | ||
| folder: this.folder, | ||
| text: this.text, | ||
| }, | ||
| }, | ||
| }); | ||
|
|
||
| $.export("$summary", `New doc successfully created with ID: ${response.item.id}`); | ||
| return response; | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import dart from "../../dart.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "dart-delete-doc", | ||
| name: "Delete Doc", | ||
| description: "Move an existing doc to the trash, where it can be recovered if needed. Nothing else about the doc will be changed. [See the documentation](https://app.dartai.com/api/v0/public/docs/#/Doc/deleteDoc)", | ||
| version: "0.0.1", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: false, | ||
| }, | ||
| type: "action", | ||
| props: { | ||
| dart, | ||
| docId: { | ||
| propDefinition: [ | ||
| dart, | ||
| "docId", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.dart.deleteDoc({ | ||
| $, | ||
| docId: this.docId, | ||
| }); | ||
|
|
||
| $.export("$summary", `Successfully deleted doc with ID: ${this.docId}`); | ||
| return response; | ||
| }, | ||
| }; | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.