diff --git a/README.md b/README.md index b50171b..0334c9d 100755 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ Logseq Copilot is a Chrome extension that allows you to access your Logseq using ## Features - 🔍 Show Logseq content when you search on popular search engines via your keywords. Now support Google, Bing, Ecosia, Baidu, Yandex, DuckDuckGo, SearX. +- Support Logseq DB version. +- Recall your note on every page. ## Support

diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index a3505a6..4f42de3 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -4,49 +4,49 @@ // There are various equivalent ways to declare your Docusaurus config. // See: https://docusaurus.io/docs/api/docusaurus-config -import { themes as prismThemes } from "prism-react-renderer"; +import { themes as prismThemes } from 'prism-react-renderer'; /** @type {import('@docusaurus/types').Config} */ const config = { - title: "Logseq Copilot", - tagline: "Connect browser with Logseq", - favicon: "img/favicon.png", + title: 'Logseq Copilot', + tagline: 'Connect Browser and Logseq', + favicon: 'img/favicon.png', // Set the production url of your site here - url: "https://logseq-copilot.eindex.me", + url: 'https://logseq-copilot.eindex.me', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: "/", + baseUrl: '/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: "eindex", // Usually your GitHub org/user name. - projectName: "logseq-copliot", // Usually your repo name. + organizationName: 'eindex', // Usually your GitHub org/user name. + projectName: 'logseq-copliot', // Usually your repo name. - onBrokenLinks: "throw", - onBrokenMarkdownLinks: "warn", + onBrokenLinks: 'throw', + onBrokenMarkdownLinks: 'warn', // Even if you don't use internationalization, you can use this field to set // useful metadata like html lang. For example, if your site is Chinese, you // may want to replace "en" with "zh-Hans". i18n: { - defaultLocale: "en", - locales: ["en"], + defaultLocale: 'en', + locales: ['en'], }, presets: [ [ - "classic", + 'classic', /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { - sidebarPath: "./sidebars.js", + sidebarPath: './sidebars.js', // Please change this to your repo. // Remove this to remove the "edit this page" links. - editUrl: "https://github.com/eindex/logseq-copilot", + editUrl: 'https://github.com/eindex/logseq-copilot', }, theme: { - customCss: "./src/css/custom.css", + customCss: './src/css/custom.css', }, }), ], @@ -56,80 +56,80 @@ const config = { /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ // Replace with your project's social card - image: "img/docusaurus-social-card.jpg", + // image: "img/docusaurus-social-card.jpg", navbar: { - title: "Logseq Copilot", + title: 'Logseq Copilot', logo: { - alt: "Logseq Copilot", - src: "img/favicon.png", + alt: 'Logseq Copilot', + src: 'img/favicon.png', }, items: [ { - type: "docSidebar", - sidebarId: "tutorialSidebar", - position: "left", - label: "Documents", + type: 'docSidebar', + sidebarId: 'tutorialSidebar', + position: 'left', + label: 'Documents', }, - { to: "/docs/changelogs", label: "Changelogs", position: "left" }, + { to: '/docs/changelogs', label: 'Changelogs', position: 'left' }, { - href: "https://github.com/eindex/logseq-copilot", - label: "GitHub", - position: "right", + href: 'https://github.com/eindex/logseq-copilot', + label: 'GitHub', + position: 'right', }, { - to: "/docs/sponsor", - label: "❤️ Sponsor", - position: "right", + to: '/docs/sponsor', + label: '❤️ Sponsor', + position: 'right', }, ], }, footer: { - style: "dark", + style: 'dark', links: [ { - title: "Docs", + title: 'Docs', items: [ { - label: "Introduce", - to: "/docs/intro", + label: 'Introduce', + to: '/docs/intro', }, { - label: "Setup", - to: "/docs/setup", + label: 'Setup', + to: '/docs/setup', }, { - label: "Changelogs", - to: "/docs/changelogs", + label: 'Changelogs', + to: '/docs/changelogs', }, ], }, { - title: "Community", + title: 'Community', items: [ { - label: "Github Discussions", - href: "https://github.com/EINDEX/logseq-copilot/discussions", + label: 'Github Discussions', + href: 'https://github.com/EINDEX/logseq-copilot/discussions', }, { - label: "Twitter", - href: "https://x.com/eindex", + label: 'Twitter', + href: 'https://x.com/eindex', }, ], }, { - title: "More", + title: 'More', items: [ { - label: "GitHub", - href: "https://github.com/eindex/logseq-copilot", + label: 'GitHub', + href: 'https://github.com/eindex/logseq-copilot', }, { - label: "Sponsor", - to: "/docs/sponsor", + label: 'Sponsor', + to: '/docs/sponsor', }, { - label: "Author", - href: "https://eindex.me", + label: 'Author', + href: 'https://eindex.me', }, ], }, @@ -141,6 +141,39 @@ const config = { darkTheme: prismThemes.dracula, }, }), + headTags: [ + { + tagName: 'link', + attributes: { + rel: 'preconnect', + href: 'https://fonts.googleapis.com', + }, + }, + { + tagName: 'link', + attributes: { + rel: 'preconnect', + href: 'https://fonts.gstatic.com', + crossorigin: 'true', + }, + }, + { + tagName: 'link', + attributes: { + rel: 'stylesheet', + href: 'https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&display=swap', + }, + }, + { + tagName: 'script', + attributes: { + 'data-website-id': '6728c810-c8a8-43ae-b072-4788d1ec7cc9', + src: 'https://umami.eindex.me/script.js', + defer: 'true', + async: 'true', + }, + }, + ], }; export default config; diff --git a/docs/src/components/UserComments/index.js b/docs/src/components/UserComments/index.js index 1135b3f..8fdde56 100644 --- a/docs/src/components/UserComments/index.js +++ b/docs/src/components/UserComments/index.js @@ -1,29 +1,29 @@ -import styles from "./styles.module.css"; +import styles from './styles.module.css'; const Comments = [ { - source: "chrome-web-store", - lang: "en", + source: 'chrome-web-store', + lang: 'en', score: 5, - date: "2024-03-26", - name: "Jordan G", + date: '2024-03-26', + name: 'Jordan G', review: - "Amazing extension, looking forward to using it more and it being open-sourced is even better", + 'Amazing extension, looking forward to using it more and it being open-sourced is even better', avatar: - "https://lh3.googleusercontent.com/a-/ALV-UjUJ7omSYEBpKwrWhZBSoalAZ3ourO_eI3Yr5_aTKHaEblRcmBrm=s96-w96-h96", - url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl", + 'https://lh3.googleusercontent.com/a-/ALV-UjUJ7omSYEBpKwrWhZBSoalAZ3ourO_eI3Yr5_aTKHaEblRcmBrm=s96-w96-h96', + url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl', }, { - source: "chrome-web-store", - lang: "en", + source: 'chrome-web-store', + lang: 'en', score: 5, - date: "2024-03-24", - name: "Vitaliy Gordeev", + date: '2024-03-24', + name: 'Vitaliy Gordeev', review: - "Possibly one of the most useful extensions. Easy to use. Open source.", + 'Possibly one of the most useful extensions. Easy to use. Open source.', avatar: - "https://lh3.googleusercontent.com/a/ACg8ocLRJJgapC95QcH8baiyJbTX2oAFhhPh9fXIZ2gTespT1T-fuA=s96-w96-h96", - url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl", + 'https://lh3.googleusercontent.com/a/ACg8ocLRJJgapC95QcH8baiyJbTX2oAFhhPh9fXIZ2gTespT1T-fuA=s96-w96-h96', + url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl', }, // { // source: "chrome-web-store", @@ -37,75 +37,75 @@ const Comments = [ // url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl", // }, { - source: "chrome-web-store", - lang: "fr", + source: 'chrome-web-store', + lang: 'fr', score: 4, - date: "2024-01-25", - name: "Thierry Portmann", + date: '2024-01-25', + name: 'Thierry Portmann', review: "Presque excellent ! Manque juste la possibilité d'ajouter une note (prévue)", avatar: - "https://lh3.googleusercontent.com/a-/ALV-UjV2hVyn_dKomnfTfX52m4r0LQ9rmxGbLUCLlFcN-GZgppWd6sSI=s96-w96-h96", - url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl", + 'https://lh3.googleusercontent.com/a-/ALV-UjV2hVyn_dKomnfTfX52m4r0LQ9rmxGbLUCLlFcN-GZgppWd6sSI=s96-w96-h96', + url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl', }, { - source: "chrome-web-store", - lang: "zh", + source: 'chrome-web-store', + lang: 'zh', score: 5, - date: "2023-05-02", - name: "Da Tou", - review: "确实是五星插件了!比印象笔记的google检索还好用!", + date: '2023-05-02', + name: 'Da Tou', + review: '确实是五星插件了!比印象笔记的google检索还好用!', avatar: - "https://lh3.googleusercontent.com/a-/ALV-UjWIJticHrAsHO7Z7-RZGCCncBecpf0uYPrZspBQr1dxOA=s96-w96-h96", - url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl", + 'https://lh3.googleusercontent.com/a-/ALV-UjWIJticHrAsHO7Z7-RZGCCncBecpf0uYPrZspBQr1dxOA=s96-w96-h96', + url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl', }, { - source: "chrome-web-store", - lang: "zh", + source: 'chrome-web-store', + lang: 'zh', score: 5, - date: "2023-04-15", - name: "Joshua C", - review: "太好用了!本地笔记和搜索引擎无缝连接!", + date: '2023-04-15', + name: 'Joshua C', + review: '太好用了!本地笔记和搜索引擎无缝连接!', avatar: - "https://lh3.googleusercontent.com/a/ACg8ocL7xMHaEWwjYUeU_4gL55i1dOm-YN6sCo-iQ50wxjgR=s96-w96-h96", - url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl", + 'https://lh3.googleusercontent.com/a/ACg8ocL7xMHaEWwjYUeU_4gL55i1dOm-YN6sCo-iQ50wxjgR=s96-w96-h96', + url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl', }, { - source: "chrome-web-store", - lang: "en", + source: 'chrome-web-store', + lang: 'en', score: 5, - date: "2023-03-10", - name: "Alexander Ivanov", + date: '2023-03-10', + name: 'Alexander Ivanov', review: - "Possibly the most beautiful application I have ever put on my browser. I feel like my thought is further than me, it has become part of the web.", + 'Possibly the most beautiful application I have ever put on my browser. I feel like my thought is further than me, it has become part of the web.', avatar: - "https://lh3.googleusercontent.com/a-/ALV-UjWYFzH_8Q3vAyEpyI9W6tt5KminF4NIGoRGnM39_wV1GlAD=s96-w96-h96", - url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl", + 'https://lh3.googleusercontent.com/a-/ALV-UjWYFzH_8Q3vAyEpyI9W6tt5KminF4NIGoRGnM39_wV1GlAD=s96-w96-h96', + url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl', }, { - source: "chrome-web-store", - lang: "en", + source: 'chrome-web-store', + lang: 'en', score: 5, - date: "2023-02-18", - name: "Yurii Piskun", + date: '2023-02-18', + name: 'Yurii Piskun', review: 'AWESOME!!!!!!! Now "Promnesia" & "fireSeqSearch" can be deleted )))', avatar: - "https://lh3.googleusercontent.com/a-/ALV-UjXqKew0X4I9A6YFBPkMdHNDdCoww-PcTKMrUuE5LtUaOI3q=s96-w96-h96", - url: "https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl", + 'https://lh3.googleusercontent.com/a-/ALV-UjXqKew0X4I9A6YFBPkMdHNDdCoww-PcTKMrUuE5LtUaOI3q=s96-w96-h96', + url: 'https://chromewebstore.google.com/detail/logseq-copilot/hihgfcgbmnbomabfdbajlbpnacndeihl', }, ]; function UserComment({ source, score, name, review, avatar, url }) { return (

- {review} + {review}
- + {name+"'s {name} - {"⭐".repeat(score)} + {'⭐'.repeat(score)}
); @@ -115,9 +115,7 @@ export default function UserComments() { return (
{Comments.map((props, idx) => ( - <> - - + ))}
); diff --git a/docs/src/components/UserComments/styles.module.css b/docs/src/components/UserComments/styles.module.css index 0b2aa44..f3a1bf7 100644 --- a/docs/src/components/UserComments/styles.module.css +++ b/docs/src/components/UserComments/styles.module.css @@ -21,7 +21,6 @@ padding-top: 1rem; background-color: var(--ifm-color-secondary); color: var(--ifm-color-gray-900); - height: 11rem; } .review { diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index 2bc6a4c..272993b 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -27,4 +27,4 @@ --ifm-color-primary-lighter: #32d8b4; --ifm-color-primary-lightest: #4fddbf; --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); -} +} \ No newline at end of file diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 695d2db..70ea5c6 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -1,22 +1,22 @@ -import clsx from "clsx"; -import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; -import Layout from "@theme/Layout"; -import HomepageFeatures from "@site/src/components/HomepageFeatures"; -import DownloadLinks from "@site/src/components/DownloadLinks"; +import clsx from 'clsx'; +import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; +import Layout from '@theme/Layout'; +import HomepageFeatures from '@site/src/components/HomepageFeatures'; +import DownloadLinks from '@site/src/components/DownloadLinks'; -import Heading from "@theme/Heading"; -import styles from "./index.module.css"; -import UserComments from "../components/UserComments"; +import Heading from '@theme/Heading'; +import styles from './index.module.css'; +import UserComments from '../components/UserComments'; function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); return ( -
+
- + {siteConfig.title} -

{siteConfig.tagline}

+

Connect Browser and Logseq

@@ -28,7 +28,7 @@ export default function Home() { return (
diff --git a/docs/src/pages/index.module.css b/docs/src/pages/index.module.css index 6984d6e..abae445 100644 --- a/docs/src/pages/index.module.css +++ b/docs/src/pages/index.module.css @@ -8,6 +8,7 @@ text-align: center; position: relative; overflow: hidden; + min-height: 32rem; } @media screen and (max-width: 996px) { @@ -16,3 +17,19 @@ } } +.title { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, + Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + font-size: 4rem; +} + +.subTitle { + font-family: 'Bitter', serif; + font-size: 3rem; + font-weight: bolder; + color: var(--ifm-color-secondary-contrast-foreground); +} + +.connect { + color: var(--ifm-color-warning); +} diff --git a/docs/src/pages/markdown-page.md b/docs/src/pages/markdown-page.md deleted file mode 100644 index 9756c5b..0000000 --- a/docs/src/pages/markdown-page.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Markdown page example ---- - -# Markdown page example - -You don't need React to write simple standalone pages. diff --git a/docs/static/img/docusaurus.png b/docs/static/img/docusaurus.png deleted file mode 100644 index f458149..0000000 Binary files a/docs/static/img/docusaurus.png and /dev/null differ