From 94c90112697f044042f963a2937a2160d2cbcfbd Mon Sep 17 00:00:00 2001 From: YU <111847207+YU000jp@users.noreply.github.com> Date: Sat, 13 Jul 2024 07:46:15 +0900 Subject: [PATCH 1/4] API_FILE path --- .gitignore | 1 + docs/scripts/build-apis.mjs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index cb66f7e..d532143 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store /.idea/ node_modules +docs/pnpm-lock.yaml diff --git a/docs/scripts/build-apis.mjs b/docs/scripts/build-apis.mjs index 26b4c54..435cf93 100644 --- a/docs/scripts/build-apis.mjs +++ b/docs/scripts/build-apis.mjs @@ -5,7 +5,7 @@ import mustache from 'mustache' const ROOT = path.resolve('..') const PAGES_ROOT = path.resolve('../pages') const LS_ROOT = path.join(PAGES_ROOT, 'logseq') -const API_FILE = path.resolve('../../apis/out.json') +const API_FILE = path.resolve('../../out.json') const TEMPLATE_PAGE = path.join(PAGES_ROOT, '_page.tpl') const apisData = JSON.parse(fs.readFileSync(API_FILE).toString()) From 5be9fa03eb52bfdc897f62fa73d8b59109ea9f2c Mon Sep 17 00:00:00 2001 From: YU <111847207+YU000jp@users.noreply.github.com> Date: Sat, 13 Jul 2024 07:46:29 +0900 Subject: [PATCH 2/4] ignore item --- docs/scripts/build-apis.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scripts/build-apis.mjs b/docs/scripts/build-apis.mjs index 435cf93..60a4349 100644 --- a/docs/scripts/build-apis.mjs +++ b/docs/scripts/build-apis.mjs @@ -34,7 +34,7 @@ function getNsKey (name) { function shouldIgnoreItem (name) { return name && (name.startsWith('_') || - ['Editor', 'DB', 'Git', 'App', 'UI', 'Assets', + ['Editor', 'DB', 'Git', 'App', 'UI', 'Assets', 'Request', 'FileStorage', 'Experiments', 'emit', 'on', 'off', 'once', 'listeners', 'listenerCount', 'eventNames', 'addListener', 'removeListener', 'removeAllListeners' From b202d6396eade78671d3ef826a1f11350db62178 Mon Sep 17 00:00:00 2001 From: YU <111847207+YU000jp@users.noreply.github.com> Date: Sat, 13 Jul 2024 07:54:42 +0900 Subject: [PATCH 3/4] Update Only items where that type exists were added. --- docs/components/Sidebar.json | 248 +++++++++++------- .../logseq/App/clearRightSidebarBlocks.tsx | 27 ++ .../logseq/App/getCurrentGraphConfigs.tsx | 27 ++ .../logseq/App/getCurrentGraphFavorites.tsx | 27 ++ .../logseq/App/getCurrentGraphRecent.tsx | 27 ++ docs/pages/logseq/App/getExternalPlugin.tsx | 27 ++ docs/pages/logseq/App/getStateFromStore.tsx | 3 +- .../pages/logseq/App/invokeExternalPlugin.tsx | 27 ++ docs/pages/logseq/App/onGraphAfterIndexed.tsx | 27 ++ .../logseq/App/onMacroRendererSlotted.tsx | 2 +- docs/pages/logseq/App/onThemeChanged.tsx | 27 ++ .../logseq/App/registerCommandShortcut.tsx | 3 +- .../logseq/App/registerSearchService.tsx | 27 ++ docs/pages/logseq/App/setStateFromStore.tsx | 27 ++ .../logseq/Assets/makeSandboxStorage.tsx | 27 ++ docs/pages/logseq/DB/datascriptQuery.tsx | 3 +- docs/pages/logseq/DB/onBlockChanged.tsx | 3 +- docs/pages/logseq/DB/onChanged.tsx | 2 +- docs/pages/logseq/DB/q.tsx | 3 +- .../Editor/getCurrentPageBlocksTree.tsx | 3 +- .../pages/logseq/Editor/getPageBlocksTree.tsx | 3 +- .../logseq/Editor/getPageLinkedReferences.tsx | 3 +- .../logseq/Editor/getPagesFromNamespace.tsx | 3 +- .../Editor/getPagesTreeFromNamespace.tsx | 3 +- docs/pages/logseq/Editor/newBlockUUID.tsx | 27 ++ .../Editor/registerBlockContextMenuItem.tsx | 3 +- .../registerHighlightContextMenuItem.tsx | 27 ++ .../logseq/Editor/registerSlashCommand.tsx | 3 +- .../Editor/saveFocusedCodeEditorContent.tsx | 27 ++ docs/pages/logseq/Editor/selectBlock.tsx | 27 ++ docs/pages/logseq/Request.tsx | 27 ++ docs/pages/logseq/baseInfo.tsx | 2 +- docs/pages/logseq/caller.tsx | 2 +- docs/pages/logseq/connected.tsx | 2 +- docs/pages/logseq/hideMainUI.tsx | 3 +- docs/pages/logseq/provideModel.tsx | 3 +- docs/pages/logseq/provideStyle.tsx | 3 +- docs/pages/logseq/provideTheme.tsx | 3 +- docs/pages/logseq/provideUI.tsx | 3 +- docs/pages/logseq/ready.tsx | 3 +- docs/pages/logseq/setMainUIInlineStyle.tsx | 3 +- docs/pages/logseq/settings.tsx | 2 +- docs/pages/logseq/showMainUI.tsx | 3 +- docs/pages/logseq/toggleMainUI.tsx | 3 +- 44 files changed, 613 insertions(+), 142 deletions(-) create mode 100644 docs/pages/logseq/App/clearRightSidebarBlocks.tsx create mode 100644 docs/pages/logseq/App/getCurrentGraphConfigs.tsx create mode 100644 docs/pages/logseq/App/getCurrentGraphFavorites.tsx create mode 100644 docs/pages/logseq/App/getCurrentGraphRecent.tsx create mode 100644 docs/pages/logseq/App/getExternalPlugin.tsx create mode 100644 docs/pages/logseq/App/invokeExternalPlugin.tsx create mode 100644 docs/pages/logseq/App/onGraphAfterIndexed.tsx create mode 100644 docs/pages/logseq/App/onThemeChanged.tsx create mode 100644 docs/pages/logseq/App/registerSearchService.tsx create mode 100644 docs/pages/logseq/App/setStateFromStore.tsx create mode 100644 docs/pages/logseq/Assets/makeSandboxStorage.tsx create mode 100644 docs/pages/logseq/Editor/newBlockUUID.tsx create mode 100644 docs/pages/logseq/Editor/registerHighlightContextMenuItem.tsx create mode 100644 docs/pages/logseq/Editor/saveFocusedCodeEditorContent.tsx create mode 100644 docs/pages/logseq/Editor/selectBlock.tsx create mode 100644 docs/pages/logseq/Request.tsx diff --git a/docs/components/Sidebar.json b/docs/components/Sidebar.json index a5d0103..8875bef 100644 --- a/docs/components/Sidebar.json +++ b/docs/components/Sidebar.json @@ -4,6 +4,10 @@ "baseInfo", "Property" ], + [ + "beforeunload", + "Property" + ], [ "caller", "Property" @@ -20,10 +24,6 @@ "settings", "Property" ], - [ - "beforeunload", - "Method" - ], [ "hideMainUI", "Method" @@ -91,338 +91,398 @@ ], "App": [ [ - "onBlockRendererSlotted", + "clearRightSidebarBlocks", "Property" ], [ - "onCurrentGraphChanged", + "execGitCommand", "Property" ], [ - "onMacroRendererSlotted", + "getCurrentGraph", "Property" ], [ - "onPageHeadActionsSlotted", + "getCurrentGraphConfigs", "Property" ], [ - "onRouteChanged", + "getCurrentGraphFavorites", "Property" ], [ - "onSidebarVisibleChanged", + "getCurrentGraphRecent", "Property" ], [ - "onThemeModeChanged", + "getExternalPlugin", "Property" ], - [ - "execGitCommand", - "Method" - ], - [ - "getCurrentGraph", - "Method" - ], [ "getInfo", - "Method" + "Property" ], [ "getStateFromStore", - "Method" + "Property" ], [ "getUserConfigs", - "Method" + "Property" ], [ "getUserInfo", - "Method" + "Property" ], [ "invokeExternalCommand", - "Method" + "Property" + ], + [ + "invokeExternalPlugin", + "Property" + ], + [ + "onBlockRendererSlotted", + "Property" + ], + [ + "onCurrentGraphChanged", + "Property" + ], + [ + "onGraphAfterIndexed", + "Property" + ], + [ + "onMacroRendererSlotted", + "Property" + ], + [ + "onPageHeadActionsSlotted", + "Property" + ], + [ + "onRouteChanged", + "Property" + ], + [ + "onSidebarVisibleChanged", + "Property" + ], + [ + "onThemeChanged", + "Property" + ], + [ + "onThemeModeChanged", + "Property" ], [ "openExternalLink", - "Method" + "Property" ], [ "pushState", - "Method" + "Property" ], [ "queryElementById", - "Method" + "Property" ], [ "queryElementRect", - "Method" + "Property" ], [ "quit", - "Method" + "Property" ], [ "registerCommand", - "Method" + "Property" ], [ "registerCommandPalette", - "Method" + "Property" ], [ "registerCommandShortcut", - "Method" + "Property" ], [ "registerPageMenuItem", - "Method" + "Property" ], [ "registerUIItem", - "Method" + "Property" ], [ "relaunch", - "Method" + "Property" ], [ "replaceState", - "Method" + "Property" ], [ "setFullScreen", - "Method" + "Property" ], [ "setLeftSidebarVisible", - "Method" + "Property" ], [ "setRightSidebarVisible", - "Method" + "Property" + ], + [ + "setStateFromStore", + "Property" ], [ "setZoomFactor", - "Method" + "Property" ], [ "showMsg", + "Property" + ], + [ + "registerSearchService", "Method" ] ], "Editor": [ - [ - "onInputSelectionEnd", - "Property" - ], [ "appendBlockInPage", - "Method" + "Property" ], [ "checkEditing", - "Method" + "Property" ], [ "createPage", - "Method" + "Property" ], [ "deletePage", - "Method" + "Property" ], [ "editBlock", - "Method" + "Property" ], [ "exitEditingMode", - "Method" + "Property" ], [ "getAllPages", - "Method" + "Property" ], [ "getBlock", - "Method" + "Property" ], [ "getBlockProperties", - "Method" + "Property" ], [ "getBlockProperty", - "Method" + "Property" ], [ "getCurrentBlock", - "Method" + "Property" ], [ "getCurrentPage", - "Method" + "Property" ], [ "getCurrentPageBlocksTree", - "Method" + "Property" ], [ "getEditingBlockContent", - "Method" + "Property" ], [ "getEditingCursorPosition", - "Method" + "Property" ], [ "getNextSiblingBlock", - "Method" + "Property" ], [ "getPage", - "Method" + "Property" ], [ "getPageBlocksTree", - "Method" + "Property" ], [ "getPageLinkedReferences", - "Method" + "Property" ], [ "getPagesFromNamespace", - "Method" + "Property" ], [ "getPagesTreeFromNamespace", - "Method" + "Property" ], [ "getPreviousSiblingBlock", - "Method" + "Property" ], [ "getSelectedBlocks", - "Method" + "Property" ], [ "insertAtEditingCursor", - "Method" + "Property" ], [ "insertBatchBlock", - "Method" + "Property" ], [ "insertBlock", - "Method" + "Property" ], [ "moveBlock", - "Method" + "Property" + ], + [ + "newBlockUUID", + "Property" + ], + [ + "onInputSelectionEnd", + "Property" ], [ "openInRightSidebar", - "Method" + "Property" ], [ "prependBlockInPage", - "Method" + "Property" ], [ "registerBlockContextMenuItem", - "Method" + "Property" + ], + [ + "registerHighlightContextMenuItem", + "Property" ], [ "registerSlashCommand", - "Method" + "Property" ], [ "removeBlock", - "Method" + "Property" ], [ "removeBlockProperty", - "Method" + "Property" ], [ "renamePage", - "Method" + "Property" ], [ "restoreEditingCursor", - "Method" + "Property" + ], + [ + "saveFocusedCodeEditorContent", + "Property" ], [ "scrollToBlockInPage", - "Method" + "Property" + ], + [ + "selectBlock", + "Property" ], [ "setBlockCollapsed", - "Method" + "Property" ], [ "updateBlock", - "Method" + "Property" ], [ "upsertBlockProperty", - "Method" + "Property" ] ], "DB": [ [ - "onChanged", + "datascriptQuery", "Property" ], [ - "datascriptQuery", - "Method" + "onChanged", + "Property" ], [ - "onBlockChanged", - "Method" + "q", + "Property" ], [ - "q", + "onBlockChanged", "Method" ] ], "Git": [ [ "execCommand", - "Method" + "Property" ], [ "loadIgnoreFile", - "Method" + "Property" ], [ "saveIgnoreFile", - "Method" + "Property" ] ], "UI": [ [ "closeMsg", - "Method" + "Property" ], [ "showMsg", - "Method" + "Property" ] ], "Assets": [ [ "listFilesOfCurrentGraph", "Method" + ], + [ + "makeSandboxStorage", + "Method" ] ], "FileStorage": [] diff --git a/docs/pages/logseq/App/clearRightSidebarBlocks.tsx b/docs/pages/logseq/App/clearRightSidebarBlocks.tsx new file mode 100644 index 0000000..50f8834 --- /dev/null +++ b/docs/pages/logseq/App/clearRightSidebarBlocks.tsx @@ -0,0 +1,27 @@ +import { NextPage } from 'next' +import { Description, DescriptionHeader } from '@/components/Description' +import { Discuss } from '@/components/Discuss' + +const clearRightSidebarBlocks: NextPage = () => { + return ( +