11 | ) {
12 | res.status(200).json({ name: 'John Doe' })
13 | }
14 |
--------------------------------------------------------------------------------
/docs/pages/index.tsx:
--------------------------------------------------------------------------------
1 | import type { NextPage } from 'next'
2 | import { marked } from 'marked'
3 | import { DescriptionHeader } from '@/components/Description'
4 |
5 | const mdContent = marked.parse(`
6 | ## Logseq Plugin API docs
7 |
8 | This is a community-driven documentation for Logseq plugin APIs.
9 |
10 | Samples 👉 https://github.com/logseq/logseq-plugin-samples
11 | APIs 👉 https://logseq.github.io/plugins/
12 |
13 | ### How to contribute?
14 |
15 | - The comments doc of plugin APIs is powered by [Typedoc](https://typedoc.org/guides/doccomments/). You can improve the corresponding
16 | documentation by following the links below.
17 |
18 | 
19 |
20 | - Another way is to provide some demo code or best practice instructions by the function of comments.
21 |
22 | 
23 | `)
24 |
25 | const Home: NextPage = () => {
26 | return (
27 |
34 |
35 | )
36 | }
37 |
38 | export default Home
39 |
--------------------------------------------------------------------------------
/docs/pages/logseq/App/execGitCommand.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const execGitCommand: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default execGitCommand
--------------------------------------------------------------------------------
/docs/pages/logseq/App/getCurrentGraph.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getCurrentGraph: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getCurrentGraph
--------------------------------------------------------------------------------
/docs/pages/logseq/App/getInfo.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getInfo: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getInfo
--------------------------------------------------------------------------------
/docs/pages/logseq/App/getStateFromStore.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getStateFromStore: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default getStateFromStore
--------------------------------------------------------------------------------
/docs/pages/logseq/App/getUserConfigs.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getUserConfigs: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getUserConfigs
--------------------------------------------------------------------------------
/docs/pages/logseq/App/getUserInfo.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getUserInfo: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getUserInfo
--------------------------------------------------------------------------------
/docs/pages/logseq/App/invokeExternalCommand.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const invokeExternalCommand: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default invokeExternalCommand
--------------------------------------------------------------------------------
/docs/pages/logseq/App/onBlockRendererSlotted.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onBlockRendererSlotted: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onBlockRendererSlotted
--------------------------------------------------------------------------------
/docs/pages/logseq/App/onCurrentGraphChanged.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onCurrentGraphChanged: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onCurrentGraphChanged
--------------------------------------------------------------------------------
/docs/pages/logseq/App/onMacroRendererSlotted.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onMacroRendererSlotted: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onMacroRendererSlotted
--------------------------------------------------------------------------------
/docs/pages/logseq/App/onPageHeadActionsSlotted.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onPageHeadActionsSlotted: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onPageHeadActionsSlotted
--------------------------------------------------------------------------------
/docs/pages/logseq/App/onRouteChanged.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onRouteChanged: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onRouteChanged
--------------------------------------------------------------------------------
/docs/pages/logseq/App/onSidebarVisibleChanged.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onSidebarVisibleChanged: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onSidebarVisibleChanged
--------------------------------------------------------------------------------
/docs/pages/logseq/App/onThemeModeChanged.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onThemeModeChanged: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onThemeModeChanged
--------------------------------------------------------------------------------
/docs/pages/logseq/App/openExternalLink.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const openExternalLink: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default openExternalLink
--------------------------------------------------------------------------------
/docs/pages/logseq/App/pushState.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const pushState: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default pushState
--------------------------------------------------------------------------------
/docs/pages/logseq/App/queryElementById.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const queryElementById: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default queryElementById
--------------------------------------------------------------------------------
/docs/pages/logseq/App/queryElementRect.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const queryElementRect: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default queryElementRect
--------------------------------------------------------------------------------
/docs/pages/logseq/App/quit.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const quit: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default quit
--------------------------------------------------------------------------------
/docs/pages/logseq/App/registerCommand.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const registerCommand: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default registerCommand
--------------------------------------------------------------------------------
/docs/pages/logseq/App/registerCommandPalette.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const registerCommandPalette: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default registerCommandPalette
--------------------------------------------------------------------------------
/docs/pages/logseq/App/registerCommandShortcut.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const registerCommandShortcut: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default registerCommandShortcut
--------------------------------------------------------------------------------
/docs/pages/logseq/App/registerPageMenuItem.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const registerPageMenuItem: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default registerPageMenuItem
--------------------------------------------------------------------------------
/docs/pages/logseq/App/registerUIItem.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const registerUIItem: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default registerUIItem
--------------------------------------------------------------------------------
/docs/pages/logseq/App/relaunch.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const relaunch: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default relaunch
--------------------------------------------------------------------------------
/docs/pages/logseq/App/replaceState.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const replaceState: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default replaceState
--------------------------------------------------------------------------------
/docs/pages/logseq/App/setFullScreen.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const setFullScreen: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default setFullScreen
--------------------------------------------------------------------------------
/docs/pages/logseq/App/setLeftSidebarVisible.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const setLeftSidebarVisible: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default setLeftSidebarVisible
--------------------------------------------------------------------------------
/docs/pages/logseq/App/setRightSidebarVisible.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const setRightSidebarVisible: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default setRightSidebarVisible
--------------------------------------------------------------------------------
/docs/pages/logseq/App/setZoomFactor.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const setZoomFactor: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default setZoomFactor
--------------------------------------------------------------------------------
/docs/pages/logseq/App/showMsg.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const showMsg: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default showMsg
--------------------------------------------------------------------------------
/docs/pages/logseq/Assets/listFilesOfCurrentGraph.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const listFilesOfCurrentGraph: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default listFilesOfCurrentGraph
--------------------------------------------------------------------------------
/docs/pages/logseq/DB/datascriptQuery.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const datascriptQuery: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default datascriptQuery
--------------------------------------------------------------------------------
/docs/pages/logseq/DB/onBlockChanged.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onBlockChanged: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default onBlockChanged
--------------------------------------------------------------------------------
/docs/pages/logseq/DB/onChanged.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onChanged: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onChanged
--------------------------------------------------------------------------------
/docs/pages/logseq/DB/q.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const q: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default q
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/appendBlockInPage.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const appendBlockInPage: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default appendBlockInPage
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/checkEditing.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const checkEditing: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default checkEditing
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/createPage.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const createPage: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default createPage
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/deletePage.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const deletePage: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default deletePage
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/editBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const editBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default editBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/exitEditingMode.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const exitEditingMode: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default exitEditingMode
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getAllPages.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getAllPages: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getAllPages
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getBlockProperties.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getBlockProperties: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getBlockProperties
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getBlockProperty.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getBlockProperty: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getBlockProperty
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getCurrentBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getCurrentBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getCurrentBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getCurrentPage.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getCurrentPage: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getCurrentPage
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getCurrentPageBlocksTree.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getCurrentPageBlocksTree: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default getCurrentPageBlocksTree
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getEditingBlockContent.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getEditingBlockContent: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getEditingBlockContent
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getEditingCursorPosition.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getEditingCursorPosition: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getEditingCursorPosition
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getNextSiblingBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getNextSiblingBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getNextSiblingBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getPage.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getPage: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getPage
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getPageBlocksTree.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getPageBlocksTree: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default getPageBlocksTree
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getPageLinkedReferences.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getPageLinkedReferences: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default getPageLinkedReferences
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getPagesFromNamespace.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getPagesFromNamespace: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default getPagesFromNamespace
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getPagesTreeFromNamespace.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getPagesTreeFromNamespace: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default getPagesTreeFromNamespace
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getPreviousSiblingBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getPreviousSiblingBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getPreviousSiblingBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/getSelectedBlocks.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const getSelectedBlocks: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default getSelectedBlocks
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/insertAtEditingCursor.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const insertAtEditingCursor: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default insertAtEditingCursor
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/insertBatchBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const insertBatchBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default insertBatchBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/insertBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const insertBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default insertBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/moveBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const moveBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default moveBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/onInputSelectionEnd.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onInputSelectionEnd: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onInputSelectionEnd
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/openInRightSidebar.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const openInRightSidebar: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default openInRightSidebar
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/prependBlockInPage.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const prependBlockInPage: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default prependBlockInPage
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/registerBlockContextMenuItem.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const registerBlockContextMenuItem: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default registerBlockContextMenuItem
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/registerSlashCommand.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const registerSlashCommand: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default registerSlashCommand
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/removeBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const removeBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default removeBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/removeBlockProperty.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const removeBlockProperty: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default removeBlockProperty
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/renamePage.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const renamePage: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default renamePage
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/restoreEditingCursor.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const restoreEditingCursor: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default restoreEditingCursor
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/scrollToBlockInPage.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const scrollToBlockInPage: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default scrollToBlockInPage
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/setBlockCollapsed.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const setBlockCollapsed: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default setBlockCollapsed
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/updateBlock.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const updateBlock: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default updateBlock
--------------------------------------------------------------------------------
/docs/pages/logseq/Editor/upsertBlockProperty.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const upsertBlockProperty: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default upsertBlockProperty
--------------------------------------------------------------------------------
/docs/pages/logseq/Experiments.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const Experiments: NextPage = () => {
6 | return (
7 |
8 |
13 |
14 |
18 |
19 | )
20 | }
21 |
22 | export default Experiments
--------------------------------------------------------------------------------
/docs/pages/logseq/FileStorage.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const FileStorage: NextPage = () => {
6 | return (
7 |
8 |
13 |
14 |
18 |
19 | )
20 | }
21 |
22 | export default FileStorage
--------------------------------------------------------------------------------
/docs/pages/logseq/Git/execCommand.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const execCommand: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default execCommand
--------------------------------------------------------------------------------
/docs/pages/logseq/Git/loadIgnoreFile.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const loadIgnoreFile: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default loadIgnoreFile
--------------------------------------------------------------------------------
/docs/pages/logseq/Git/saveIgnoreFile.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const saveIgnoreFile: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default saveIgnoreFile
--------------------------------------------------------------------------------
/docs/pages/logseq/UI/closeMsg.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const closeMsg: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default closeMsg
--------------------------------------------------------------------------------
/docs/pages/logseq/UI/showMsg.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const showMsg: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default showMsg
--------------------------------------------------------------------------------
/docs/pages/logseq/addListener.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const addListener: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default addListener
--------------------------------------------------------------------------------
/docs/pages/logseq/baseInfo.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const baseInfo: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default baseInfo
--------------------------------------------------------------------------------
/docs/pages/logseq/beforeunload.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const beforeunload: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default beforeunload
--------------------------------------------------------------------------------
/docs/pages/logseq/caller.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const caller: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default caller
--------------------------------------------------------------------------------
/docs/pages/logseq/connected.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const connected: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default connected
--------------------------------------------------------------------------------
/docs/pages/logseq/emit.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const emit: NextPage = () => {
6 | return (
7 |
8 |
14 |
15 |
19 |
20 | )
21 | }
22 |
23 | export default emit
--------------------------------------------------------------------------------
/docs/pages/logseq/eventNames.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const eventNames: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default eventNames
--------------------------------------------------------------------------------
/docs/pages/logseq/hideMainUI.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const hideMainUI: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default hideMainUI
--------------------------------------------------------------------------------
/docs/pages/logseq/hideSettingsUI.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const hideSettingsUI: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default hideSettingsUI
--------------------------------------------------------------------------------
/docs/pages/logseq/isMainUIVisible.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const isMainUIVisible: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default isMainUIVisible
--------------------------------------------------------------------------------
/docs/pages/logseq/listenerCount.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const listenerCount: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default listenerCount
--------------------------------------------------------------------------------
/docs/pages/logseq/listeners.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const listeners: NextPage = () => {
6 | return (
7 |
8 |
14 |
15 |
19 |
20 | )
21 | }
22 |
23 | export default listeners
--------------------------------------------------------------------------------
/docs/pages/logseq/onSettingsChanged.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const onSettingsChanged: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default onSettingsChanged
--------------------------------------------------------------------------------
/docs/pages/logseq/once.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const once: NextPage = () => {
6 | return (
7 |
8 |
14 |
15 |
19 |
20 | )
21 | }
22 |
23 | export default once
--------------------------------------------------------------------------------
/docs/pages/logseq/provideModel.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const provideModel: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default provideModel
--------------------------------------------------------------------------------
/docs/pages/logseq/provideStyle.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const provideStyle: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default provideStyle
--------------------------------------------------------------------------------
/docs/pages/logseq/provideTheme.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const provideTheme: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default provideTheme
--------------------------------------------------------------------------------
/docs/pages/logseq/provideUI.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const provideUI: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default provideUI
--------------------------------------------------------------------------------
/docs/pages/logseq/ready.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const ready: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default ready
--------------------------------------------------------------------------------
/docs/pages/logseq/removeAllListeners.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const removeAllListeners: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default removeAllListeners
--------------------------------------------------------------------------------
/docs/pages/logseq/removeListener.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const removeListener: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default removeListener
--------------------------------------------------------------------------------
/docs/pages/logseq/resolveResourceFullUrl.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const resolveResourceFullUrl: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default resolveResourceFullUrl
--------------------------------------------------------------------------------
/docs/pages/logseq/setMainUIAttrs.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const setMainUIAttrs: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default setMainUIAttrs
--------------------------------------------------------------------------------
/docs/pages/logseq/setMainUIInlineStyle.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const setMainUIInlineStyle: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default setMainUIInlineStyle
--------------------------------------------------------------------------------
/docs/pages/logseq/settings.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const settings: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default settings
--------------------------------------------------------------------------------
/docs/pages/logseq/showMainUI.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const showMainUI: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default showMainUI
--------------------------------------------------------------------------------
/docs/pages/logseq/showSettingsUI.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const showSettingsUI: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default showSettingsUI
--------------------------------------------------------------------------------
/docs/pages/logseq/toggleMainUI.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const toggleMainUI: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
19 |
20 |
24 |
25 | )
26 | }
27 |
28 | export default toggleMainUI
--------------------------------------------------------------------------------
/docs/pages/logseq/updateSettings.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const updateSettings: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default updateSettings
--------------------------------------------------------------------------------
/docs/pages/logseq/useSettingsSchema.tsx:
--------------------------------------------------------------------------------
1 | import { NextPage } from 'next'
2 | import { Description, DescriptionHeader } from '@/components/Description'
3 | import { Discuss } from '@/components/Discuss'
4 |
5 | const useSettingsSchema: NextPage = () => {
6 | return (
7 |
8 |
12 |
13 |
18 |
19 |
23 |
24 | )
25 | }
26 |
27 | export default useSettingsSchema
--------------------------------------------------------------------------------
/docs/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | }
--------------------------------------------------------------------------------
/docs/public/contribute_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/logseq/plugins/906ca3af66d82b3ce55a6724aa00423bec70cca6/docs/public/contribute_1.png
--------------------------------------------------------------------------------
/docs/public/contribute_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/logseq/plugins/906ca3af66d82b3ce55a6724aa00423bec70cca6/docs/public/contribute_2.png
--------------------------------------------------------------------------------
/docs/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/logseq/plugins/906ca3af66d82b3ce55a6724aa00423bec70cca6/docs/public/favicon.ico
--------------------------------------------------------------------------------
/docs/public/icons@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/logseq/plugins/906ca3af66d82b3ce55a6724aa00423bec70cca6/docs/public/icons@2x.png
--------------------------------------------------------------------------------
/docs/public/vercel.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/scripts/build-apis.mjs:
--------------------------------------------------------------------------------
1 | import * as fs from 'fs'
2 | import * as path from 'path'
3 | import mustache from 'mustache'
4 |
5 | const ROOT = path.resolve('..')
6 | const PAGES_ROOT = path.resolve('../pages')
7 | const LS_ROOT = path.join(PAGES_ROOT, 'logseq')
8 | const API_FILE = path.resolve('../../apis/out.json')
9 | const TEMPLATE_PAGE = path.join(PAGES_ROOT, '_page.tpl')
10 |
11 | const apisData = JSON.parse(fs.readFileSync(API_FILE).toString())
12 | const pageTemplateContent = fs.readFileSync(TEMPLATE_PAGE).toString()
13 |
14 | const apiMaps = {
15 | 'ILSPluginUser': {},
16 | 'IAppProxy': {},
17 | 'IEditorProxy': {},
18 | 'IDBProxy': {},
19 | 'IGitProxy': {},
20 | 'IUIProxy': {},
21 | 'IAssetsProxy': {},
22 |
23 | 'FileStorage': {}
24 | }
25 |
26 | function getNsKey (name) {
27 | if (name?.includes('Proxy')) {
28 | return name.substring(1).replace('Proxy', '')
29 | } else {
30 | return name
31 | }
32 | }
33 |
34 | function shouldIgnoreItem (name) {
35 | return name &&
36 | (name.startsWith('_') ||
37 | ['Editor', 'DB', 'Git', 'App', 'UI', 'Assets',
38 | 'FileStorage', 'Experiments',
39 | 'emit', 'on', 'off', 'once', 'listeners', 'listenerCount',
40 | 'eventNames', 'addListener', 'removeListener', 'removeAllListeners'
41 | ].some(it => {
42 | return name.toLowerCase() === it.toLowerCase()
43 | }))
44 | }
45 |
46 | function inflateApiMaps () {
47 | const nodes = apisData.children
48 | const apiKeys = Object.keys(apiMaps)
49 |
50 | nodes.forEach(it => {
51 | const name = it.name
52 | if (!name || !apiKeys.includes(name)) return
53 | it.children.forEach(it => {
54 | apiMaps[name][it.name] = it
55 | })
56 | })
57 |
58 | return apiMaps
59 | }
60 |
61 | function pickItemComment (item) {
62 | if (!item) return ''
63 | const ret = [item.comment?.shortText]
64 |
65 | if (item.signatures?.length) {
66 | item.signatures.forEach(it => {
67 | if (it.comment?.shortText) {
68 | ret.push(item.comment?.shortText)
69 | }
70 | })
71 | }
72 |
73 | return ret.join('\n')
74 | }
75 |
76 | /**
77 | * build pages
78 | */
79 | function build () {
80 | inflateApiMaps()
81 |
82 | const rootKey = 'ILSPluginUser'
83 |
84 | if (!fs.existsSync(PAGES_ROOT)) {
85 | fs.mkdirSync(PAGES_ROOT)
86 | }
87 |
88 | // region build navigate data
89 | const navigateData = Object.entries(apiMaps)
90 | .reduce((acc, [name, v]) => {
91 | const ns = (rootKey === name) ? 'logseq' : getNsKey(name)
92 | const values = Object.entries(v)
93 | .reduce((acc, [k, p]) => {
94 | if (!shouldIgnoreItem(k)) {
95 | acc.push([k, p.kindString])
96 | }
97 | return acc
98 | }, [])
99 | // .filter(name => !shouldIgnoreItem(name))
100 | acc[ns] = values
101 | return acc
102 | }, {})
103 |
104 | const fileDest = path.join(ROOT, 'components', 'Sidebar.json')
105 | const fileContent = JSON.stringify(navigateData, null, 2)
106 | fs.writeFileSync(fileDest, fileContent)
107 | // endregion
108 |
109 | Object.entries(apiMaps).forEach(([k, v]) => {
110 | let ns = ''
111 | const nsDest = path.join(
112 | PAGES_ROOT, 'logseq',
113 | (ns = (rootKey === k) ? '.' : getNsKey(k))
114 | )
115 |
116 | if (!fs.existsSync(nsDest)) {
117 | fs.mkdirSync(nsDest)
118 | }
119 |
120 | let count = 0
121 |
122 | Object.entries(v).forEach(([name, item]) => {
123 | if (shouldIgnoreItem(name)) {
124 | return
125 | }
126 |
127 | const fileDest = path.join(nsDest, `${name}.tsx`)
128 | const comment = pickItemComment(item)
129 | const data = { ns, name, comment }
130 | const fileContent = mustache.render(pageTemplateContent, data)
131 |
132 | fs.writeFileSync(fileDest, fileContent)
133 | count += 1
134 | })
135 |
136 | console.log(`===== ${path.basename(nsDest)} :generate ${count} pages =====`)
137 | })
138 | }
139 |
140 | // console.log(
141 | // // mustache.render(
142 | // // pageTemplateContent,
143 | // // { name: 'ProvideUI' }
144 | // // ),
145 | // // apisData
146 | // // inflateApiMaps()
147 | // )
148 |
149 | build()
150 |
--------------------------------------------------------------------------------
/docs/styles/Home.module.css:
--------------------------------------------------------------------------------
1 | .container {
2 | padding: 0 2rem;
3 | }
4 |
5 | .main {
6 | min-height: 100vh;
7 | padding: 4rem 0;
8 | flex: 1;
9 | display: flex;
10 | flex-direction: column;
11 | justify-content: center;
12 | align-items: center;
13 | }
14 |
15 | .footer {
16 | display: flex;
17 | flex: 1;
18 | padding: 2rem 0;
19 | border-top: 1px solid #eaeaea;
20 | justify-content: center;
21 | align-items: center;
22 | }
23 |
24 | .footer a {
25 | display: flex;
26 | justify-content: center;
27 | align-items: center;
28 | flex-grow: 1;
29 | }
30 |
31 | .title a {
32 | color: #0070f3;
33 | text-decoration: none;
34 | }
35 |
36 | .title a:hover,
37 | .title a:focus,
38 | .title a:active {
39 | text-decoration: underline;
40 | }
41 |
42 | .title {
43 | margin: 0;
44 | line-height: 1.15;
45 | font-size: 4rem;
46 | }
47 |
48 | .title,
49 | .description {
50 | text-align: center;
51 | }
52 |
53 | .description {
54 | margin: 4rem 0;
55 | line-height: 1.5;
56 | font-size: 1.5rem;
57 | }
58 |
59 | .code {
60 | background: #fafafa;
61 | border-radius: 5px;
62 | padding: 0.75rem;
63 | font-size: 1.1rem;
64 | font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
65 | Bitstream Vera Sans Mono, Courier New, monospace;
66 | }
67 |
68 | .grid {
69 | display: flex;
70 | align-items: center;
71 | justify-content: center;
72 | flex-wrap: wrap;
73 | max-width: 800px;
74 | }
75 |
76 | .card {
77 | margin: 1rem;
78 | padding: 1.5rem;
79 | text-align: left;
80 | color: inherit;
81 | text-decoration: none;
82 | border: 1px solid #eaeaea;
83 | border-radius: 10px;
84 | transition: color 0.15s ease, border-color 0.15s ease;
85 | max-width: 300px;
86 | }
87 |
88 | .card:hover,
89 | .card:focus,
90 | .card:active {
91 | color: #0070f3;
92 | border-color: #0070f3;
93 | }
94 |
95 | .card h2 {
96 | margin: 0 0 1rem 0;
97 | font-size: 1.5rem;
98 | }
99 |
100 | .card p {
101 | margin: 0;
102 | font-size: 1.25rem;
103 | line-height: 1.5;
104 | }
105 |
106 | .logo {
107 | height: 1em;
108 | margin-left: 0.5rem;
109 | }
110 |
111 | @media (max-width: 600px) {
112 | .grid {
113 | width: 100%;
114 | flex-direction: column;
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/docs/styles/globals.css:
--------------------------------------------------------------------------------
1 | @tailwind base;
2 | @tailwind components;
3 | @tailwind utilities;
4 |
5 | html,
6 | body {
7 | @apply dark:text-gray-800;
8 |
9 | padding: 0;
10 | margin: 0;
11 | font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
12 | Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
13 | }
14 |
15 | html ::-webkit-scrollbar-thumb {
16 | background-color: rgba(0, 0, 0, .1);
17 | }
18 |
19 | html ::-webkit-scrollbar {
20 | background-color: rgba(0, 0, 0, .05);
21 | width: 5px;
22 | height: 8px;
23 | border-radius: 2px;
24 | }
25 |
26 | html ::-webkit-scrollbar-thumb:hover {
27 | background-color: rgba(0, 0, 0, .3);
28 | }
29 |
30 | html ::-webkit-scrollbar-thumb:active {
31 | background-color: rgba(0, 0, 0, .5);
32 | }
33 |
34 | html ::-webkit-scrollbar-corner {
35 | background: transparent;
36 | }
37 |
38 | a {
39 | color: inherit;
40 | text-decoration: none;
41 | }
42 |
43 | * {
44 | box-sizing: border-box;
45 | }
46 |
47 | :root {
48 | --lsp-header-height: 48px;
49 | --lsp-content-max-width: 996px;
50 | }
51 |
52 | .main-container {
53 | @apply dark:text-gray-300;
54 |
55 | height: 100vh;
56 | justify-content: center;
57 | }
58 |
59 | .main-container > .l {
60 | min-height: 100vh;
61 | border-right-width: 1px;
62 | border-right-style: solid;
63 | }
64 |
65 | .main-container > .l .nav-sidebar-content {
66 | width: 280px;
67 | padding-bottom: 20px;
68 | }
69 |
70 | .main-description {
71 | border-bottom-width: 1px;
72 | border-bottom-style: solid;
73 | max-width: calc(var(--lsp-content-max-width) - 50px);
74 | }
75 |
76 | .main-description iframe {
77 | visibility: hidden;
78 | margin: 0 -15px;
79 | }
80 |
81 | .main-description-header {
82 | height: var(--lsp-header-height);
83 | }
84 |
85 | .nav-sidebar-container {
86 | position: relative;
87 | padding-top: var(--lsp-header-height);
88 | }
89 |
90 | .nav-sidebar-header {
91 | height: var(--lsp-header-height);
92 | position: absolute;
93 | top: 0;
94 | left: 0;
95 | width: calc(100% + 1px);
96 | }
97 |
98 | .nav-item {
99 |
100 | }
101 |
102 | .nav-sidebar-content {
103 | overflow-y: scroll;
104 | }
105 |
106 | .nav-sidebar-content dl {
107 | user-select: none;
108 | }
109 |
110 | .nav-sidebar-content dt {
111 | @apply bg-gray-50 dark:bg-black/90;
112 |
113 | font-size: 16px;
114 | font-weight: bold;
115 | position: sticky;
116 | top: 0;
117 | }
118 |
119 | .nav-sidebar-content dt, .nav-sidebar-content dd {
120 | cursor: pointer;
121 | }
122 |
123 | .nav-sidebar-content dd {
124 | @apply hover:bg-gray-100 dark:hover:bg-gray-800/50;
125 |
126 | font-size: 14px;
127 | }
128 |
129 | .nav-sidebar-content dd.active {
130 | @apply bg-blue-300/25;
131 | }
132 |
133 | .main-container > .r {
134 | flex: 1;
135 | max-height: 100vh;
136 | overflow: auto;
137 | }
138 |
139 | .main-page-content {
140 | height: 100%;
141 | overflow-y: auto;
142 | overflow-x: hidden;
143 | }
144 |
145 | .utterances {
146 | max-width: unset;
147 | }
148 |
149 | .utterances-frame {
150 | color-scheme: light;
151 | position: static;
152 | /* left: 0; */
153 | /* right: 0; */
154 | min-width: unset;
155 | max-width: unset;
156 | height: 100%;
157 | border: 0;
158 | width: 99%;
159 | }
160 |
161 | #discuss-container {
162 | @apply px-10 mb-60;
163 |
164 | max-width: var(--lsp-content-max-width);
165 | }
166 |
167 |
168 | .lsp-search-dialog-wrap {
169 | align-items: flex-start !important;
170 | padding-top: 128px;
171 | }
172 |
173 | .lsp-search-dialog {
174 | border-radius: 12px !important;
175 | }
176 |
177 | .lsp-sprite-icon {
178 | display: inline-block;
179 | width: 17px;
180 | height: 17px;
181 | background-image: url("../public/icons@2x.png");
182 | background-size: 238px 204px;
183 | }
184 |
185 | .lsp-search-result-wrap {
186 | max-height: 70vh;
187 | overflow-y: auto;
188 | }
189 |
190 | .markdown-body img {
191 | width: 70%;
192 | }
--------------------------------------------------------------------------------
/docs/tailwind.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | content: [
3 | './pages/**/*.{js,ts,jsx,tsx}',
4 | './components/**/*.{js,ts,jsx,tsx}',
5 | ],
6 | theme: {
7 | extend: {},
8 | },
9 | plugins: [],
10 | }
--------------------------------------------------------------------------------
/docs/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "lib": ["dom", "dom.iterable", "esnext"],
5 | "allowJs": true,
6 | "skipLibCheck": true,
7 | "strict": true,
8 | "forceConsistentCasingInFileNames": true,
9 | "noEmit": true,
10 | "esModuleInterop": true,
11 | "module": "esnext",
12 | "moduleResolution": "node",
13 | "resolveJsonModule": true,
14 | "isolatedModules": true,
15 | "jsx": "preserve",
16 | "incremental": true,
17 | "baseUrl": ".",
18 | "paths": {
19 | "@/components/*": ["components/*"]
20 | }
21 | },
22 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
23 | "exclude": ["node_modules"]
24 | }
25 |
--------------------------------------------------------------------------------
/interfaces/AppGraphInfo.html:
--------------------------------------------------------------------------------
1 | AppGraphInfo | @logseq/libs
2 |
3 |
4 |
5 |
7 |
8 | - Preparing search index...
9 | - The search index is not available
@logseq/libs
10 |
11 |
12 |
13 |
14 |
17 |
Interface AppGraphInfo
18 |
21 |
25 |
26 | Indexable
27 | [key: string]: any
30 |
41 |
42 | Properties
43 |
44 | name
45 | name: string
48 |
49 | path
50 | path: string
53 |
54 | url
55 | url: string
58 |
86 |
88 |
--------------------------------------------------------------------------------
/interfaces/AppInfo.html:
--------------------------------------------------------------------------------
1 | AppInfo | @logseq/libs
2 |
3 |
4 |
5 |
7 |
8 | - Preparing search index...
9 | - The search index is not available
@logseq/libs
10 |
11 |
12 |
13 |
14 |
17 |
Interface AppInfo
18 |
22 |
23 | Indexable
24 | [key: string]: any
27 |
36 |
37 | Properties
38 |
39 | version
40 | version: string
43 |
69 |
71 |
--------------------------------------------------------------------------------
/interfaces/IUIProxy.html:
--------------------------------------------------------------------------------
1 | IUIProxy | @logseq/libs
2 |
3 |
4 |
5 |
7 |
8 | - Preparing search index...
9 | - The search index is not available
@logseq/libs
10 |
11 |
12 |
13 |
14 |
17 |
Interface IUIProxy
18 |
24 |
34 |
35 | Properties
36 |
37 | closeMsg
38 | closeMsg: ((key: string) => void)
39 |
40 |
Type declaration
41 |
42 | -
43 |
44 | - (key: string): void
45 | -
46 |
51 |
Returns void
54 |
55 | showMsg
56 | show
Msg
: ((content
: string, status
?: string, opts
?: Partial<UIMsgOptions>) => Promise<string>)
57 |
58 |
Type declaration
59 |
60 | -
61 |
62 | - (content: string, status?: string, opts?: Partial<UIMsgOptions>): Promise<string>
63 | -
64 |
67 |
68 |
Parameters
69 |
70 | -
71 |
content: string
72 | -
73 |
Optional
status: string
74 | -
75 |
76 | Returns Promise<string>
79 |
106 |
108 |
--------------------------------------------------------------------------------
/interfaces/LSPluginBaseInfo.html:
--------------------------------------------------------------------------------
1 | LSPluginBaseInfo | @logseq/libs
2 |
3 |
4 |
5 |
7 |
8 | - Preparing search index...
9 | - The search index is not available
@logseq/libs
10 |
11 |
12 |
13 |
14 |
17 |
Interface LSPluginBaseInfo
18 |
22 |
23 | Indexable
24 | [key: string]: any
27 |
38 |
39 | Properties
40 |
45 |
46 | mode
47 | mode: "iframe" | "shadow"
50 |
51 | settings
52 | settings: {
disabled: boolean;
[key: string]: any;
}
53 |
54 |
Type declaration
55 |
56 | -
57 |
[key: string]: any
58 | -
59 |
disabled: boolean
62 |
90 |
92 |
--------------------------------------------------------------------------------
/interfaces/LegacyTheme.html:
--------------------------------------------------------------------------------
1 | LegacyTheme | @logseq/libs
2 |
3 |
4 |
5 |
7 |
8 | - Preparing search index...
9 | - The search index is not available
@logseq/libs
10 |
11 |
12 |
13 |
14 |
17 |
Interface LegacyTheme
18 |
26 |
39 |
40 | Properties
41 |
42 | Optional
description
43 | description?: string
46 |
51 |
52 | name
53 | name: string
56 |
57 | pid
58 | pid: string
61 |
62 | url
63 | url: string
66 |
96 |
98 |
--------------------------------------------------------------------------------
/lsp.js:
--------------------------------------------------------------------------------
1 | function hide (el) {
2 | el.style.display = 'none'
3 | }
4 |
5 | function show (el, display = 'block') {
6 | el.style.display = display
7 | }
8 |
9 | function hideVisibility (el) {
10 | el.style.visibility = 'hidden'
11 | }
12 |
13 | function showVisibility (el) {
14 | el.style.visibility = 'visible'
15 | }
16 |
17 | function hideElements () {
18 | [
19 | '.col-content > .tsd-panel',
20 | '.container-main .col-menu.menu-highlight',
21 | '.container-main > .col-content > .tsd-sources',
22 | '.tsd-page-title',
23 | '.tsd-page-toolbar',
24 | '.tsd-index-group',
25 | '.tsd-hierarchy'
26 | ].forEach(selector => {
27 | const els = document.querySelectorAll(selector)
28 | if (!els) return
29 | Array.from(els).forEach(it => {
30 | hide(it)
31 | })
32 | })
33 |
34 | const panelThs = document.querySelectorAll('.tsd-panel-group > h2')
35 | panelThs.forEach(it => {
36 | it.style.display = 'none'
37 | })
38 |
39 | const footerEl = [...document.querySelectorAll('body > .container')].pop()
40 | footerEl.style.display = 'none'
41 |
42 | const genEl = document.querySelector('.tsd-generator')
43 | genEl.style.display = 'none'
44 |
45 | // region hide all-of-other panels
46 | const hashId = window.location.hash.replace('#', '')
47 | if (!hashId) {
48 | return
49 | }
50 |
51 | let targetSize = {}
52 |
53 | const memberEls = document.querySelectorAll('.tsd-member')
54 | memberEls.forEach(it => {
55 | const anchorEl = it.children.item(0)
56 | if (!anchorEl || anchorEl.tagName?.toLowerCase() !== 'a') {
57 | console.error('[Error anchorEl]', it)
58 | return
59 | }
60 |
61 | const memberKey = anchorEl.id.toLowerCase()
62 |
63 | if (memberKey !== hashId.toLowerCase()) {
64 | it.style.display = 'none'
65 | } else {
66 | it.style.position = 'fixed'
67 | it.style.left = '0px'
68 | it.style.top = '0px'
69 | it.style.width = '100%'
70 | it.style.zIndex = 999
71 | it.style.marginTop = '0px'
72 |
73 | // hide tsd-parameters
74 | ;[it.querySelector('.tsd-parameters'),
75 | it.querySelector('.tsd-parameters-title'),
76 | it.querySelector('.tsd-returns-title'),
77 | it.querySelector('.tsd-type-parameters-title'),
78 | it.querySelector('.tsd-type-parameters')
79 | ].forEach(it => it && hide(it))
80 |
81 | // apply size of body
82 | const { height } = it.getBoundingClientRect()
83 | Object.assign(
84 | document.body.style,
85 | {
86 | height: height + 'px',
87 | overflow: 'hidden',
88 | background: 'transparent'
89 | }
90 | )
91 |
92 | // apply link top open in new panel
93 | it.querySelectorAll('a').forEach(link => {
94 | if (!link.href) return
95 | link.setAttribute('target', '_blank')
96 | })
97 |
98 | targetSize.height = height
99 | }
100 | })
101 | // endregion
102 |
103 | return targetSize
104 | }
105 |
106 | function adjustElements () {
107 | const panels = document.querySelectorAll('.tsd-panel')
108 |
109 | Array.from(panels).forEach(it => {
110 | it.style.boxShadow = 'none'
111 | it.style.background = 'transparent'
112 | })
113 |
114 | const main = document.querySelector('.container-main .col-content')
115 | main.style.width = 'auto'
116 | }
117 |
118 | // entry
119 | (function () {
120 | if (top !== this) {
121 | hideVisibility(document.documentElement)
122 |
123 | window.onmessage = (e) => {
124 | if (e?.data === 'ready') {
125 |
126 | try {
127 | const targetSize = hideElements()
128 | adjustElements()
129 |
130 | top.postMessage(JSON.stringify({
131 | type: 'size',
132 | payload: targetSize
133 | }), '*')
134 | } catch (e) {
135 | console.error('LSP:', e)
136 | }
137 |
138 | setTimeout(() => {
139 | showVisibility(document.documentElement)
140 | }, 50)
141 | }
142 | }
143 | }
144 | }())
--------------------------------------------------------------------------------
In Logseq, a graph represents a repository of connected pages and blocks
20 |