@md-plugins/quasar-app-extension-q-press 0.1.0-beta.2 → 0.1.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -15
- package/dist/index.js +41 -7
- package/dist/install.js +7 -5
- package/dist/q-press-globals.d.ts +49 -0
- package/dist/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/dist/templates/init/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/dist/templates/init/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/dist/templates/init/src/_q-press/components/MarkdownApi.vue +129 -84
- package/dist/templates/init/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/dist/templates/init/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/dist/templates/init/src/_q-press/components/MarkdownCode.vue +71 -3
- package/dist/templates/init/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/dist/templates/init/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/dist/templates/init/src/_q-press/components/MarkdownExample.vue +54 -19
- package/dist/templates/init/src/_q-press/components/MarkdownLink.vue +5 -5
- package/dist/templates/init/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/dist/templates/init/src/_q-press/components/MarkdownTree.vue +2 -2
- package/dist/templates/init/src/_q-press/components/markdown-utils.ts +27 -3
- package/dist/templates/init/src/_q-press/css/app.scss +38 -26
- package/dist/templates/init/src/_q-press/css/code-theme.scss +634 -0
- package/dist/templates/init/src/_q-press/css/themes/default.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
- package/dist/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
- package/dist/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/dist/templates/init/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/dist/templates/init/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/dist/templates/init/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/dist/templates/init/src/_q-press/stores/markdown.ts +1 -2
- package/dist/templates/init/src/components/LandingPage/LandingPage.vue +15 -1
- package/dist/templates/init/src/components/QPressThemeGallery.vue +336 -0
- package/dist/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
- package/dist/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
- package/dist/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
- package/dist/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
- package/dist/templates/init/src/markdown/__elements.md +8 -8
- package/dist/templates/init/src/markdown/__elements2.md +4 -4
- package/dist/templates/init/src/markdown/faq/best-practices.md +27 -0
- package/dist/templates/init/src/markdown/faq/general.md +27 -0
- package/dist/templates/init/src/markdown/faq/troubleshooting.md +27 -0
- package/dist/templates/init/src/markdown/getting-started/introduction.md +7 -5
- package/dist/templates/init/src/markdown/md-plugins/blockquote/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
- package/dist/templates/init/src/markdown/md-plugins/codeblocks/overview.md +45 -8
- package/dist/templates/init/src/markdown/md-plugins/containers/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/frontmatter/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/headers/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/image/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/imports/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/inline-code/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/link/advanced.md +2 -2
- package/dist/templates/init/src/markdown/md-plugins/link/overview.md +6 -4
- package/dist/templates/init/src/markdown/md-plugins/mermaid/advanced.md +69 -0
- package/dist/templates/init/src/markdown/md-plugins/mermaid/overview.md +73 -0
- package/dist/templates/init/src/markdown/md-plugins/shared/overview.md +28 -13
- package/dist/templates/init/src/markdown/md-plugins/table/overview.md +3 -1
- package/dist/templates/init/src/markdown/md-plugins/title/overview.md +3 -1
- package/dist/templates/init/src/markdown/other/contact.md +37 -0
- package/dist/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
- package/dist/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
- package/dist/templates/init/src/markdown/other/contributing/documentation.md +31 -0
- package/dist/templates/init/src/markdown/other/contributing/overview.md +41 -0
- package/dist/templates/init/src/markdown/other/contributing/packages.md +28 -0
- package/dist/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
- package/dist/templates/init/src/markdown/other/faq.md +179 -0
- package/dist/templates/init/src/markdown/other/releases.md +11 -0
- package/dist/templates/init/src/markdown/other/upgrade-guide.md +165 -0
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/advanced.md +11 -3
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +25 -29
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +20 -20
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
- package/dist/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
- package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
- package/dist/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
- package/dist/templates/init/src/markdown/vite-plugins/vite-examples-plugin/advanced.md +8 -3
- package/dist/templates/init/src/markdown/vite-plugins/vite-examples-plugin/overview.md +19 -5
- package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/advanced.md +84 -54
- package/dist/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +19 -3
- package/dist/templates/init/src/siteConfig/index.ts +52 -23
- package/dist/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/dist/templates/update/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/dist/templates/update/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/dist/templates/update/src/_q-press/components/MarkdownApi.vue +129 -84
- package/dist/templates/update/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/dist/templates/update/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/dist/templates/update/src/_q-press/components/MarkdownCode.vue +71 -3
- package/dist/templates/update/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/dist/templates/update/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/dist/templates/update/src/_q-press/components/MarkdownExample.vue +54 -19
- package/dist/templates/update/src/_q-press/components/MarkdownLink.vue +5 -5
- package/dist/templates/update/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/dist/templates/update/src/_q-press/components/MarkdownTree.vue +2 -2
- package/dist/templates/update/src/_q-press/components/markdown-utils.ts +27 -3
- package/dist/templates/update/src/_q-press/css/app.scss +38 -26
- package/dist/templates/update/src/_q-press/css/code-theme.scss +634 -0
- package/dist/templates/update/src/_q-press/css/themes/default.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
- package/dist/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
- package/dist/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/dist/templates/update/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/dist/templates/update/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/dist/templates/update/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/dist/templates/update/src/_q-press/stores/markdown.ts +1 -2
- package/package.json +22 -21
- package/src/index.ts +80 -11
- package/src/install.ts +10 -9
- package/src/q-press-globals.d.ts +49 -0
- package/src/templates/init/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/src/templates/init/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/src/templates/init/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/src/templates/init/src/_q-press/components/MarkdownApi.vue +129 -84
- package/src/templates/init/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/src/templates/init/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/src/templates/init/src/_q-press/components/MarkdownCode.vue +71 -3
- package/src/templates/init/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/src/templates/init/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/src/templates/init/src/_q-press/components/MarkdownExample.vue +54 -19
- package/src/templates/init/src/_q-press/components/MarkdownLink.vue +5 -5
- package/src/templates/init/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/src/templates/init/src/_q-press/components/MarkdownTree.vue +2 -2
- package/src/templates/init/src/_q-press/components/markdown-utils.ts +27 -3
- package/src/templates/init/src/_q-press/css/app.scss +38 -26
- package/src/templates/init/src/_q-press/css/code-theme.scss +634 -0
- package/src/templates/init/src/_q-press/css/themes/default.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/evergreen.scss +69 -0
- package/src/templates/init/src/_q-press/css/themes/mystic.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/newspaper.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/sunrise.scss +1 -1
- package/src/templates/init/src/_q-press/css/themes/tawny.scss +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/src/templates/init/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/src/templates/init/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/src/templates/init/src/_q-press/stores/markdown.ts +1 -2
- package/src/templates/init/src/components/LandingPage/LandingPage.vue +15 -1
- package/src/templates/init/src/components/QPressThemeGallery.vue +336 -0
- package/src/templates/init/src/components/page-parts/releases/GitHubReleases.vue +121 -0
- package/src/templates/init/src/components/page-parts/releases/PackageReleases.vue +191 -0
- package/src/templates/init/src/components/page-parts/releases/md-table-parser.ts +52 -0
- package/src/templates/init/src/components/page-parts/releases/sanitize.ts +132 -0
- package/src/templates/init/src/markdown/__elements.md +8 -8
- package/src/templates/init/src/markdown/__elements2.md +4 -4
- package/src/templates/init/src/markdown/faq/best-practices.md +27 -0
- package/src/templates/init/src/markdown/faq/general.md +27 -0
- package/src/templates/init/src/markdown/faq/troubleshooting.md +27 -0
- package/src/templates/init/src/markdown/getting-started/introduction.md +7 -5
- package/src/templates/init/src/markdown/md-plugins/blockquote/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/codeblocks/advanced.md +19 -15
- package/src/templates/init/src/markdown/md-plugins/codeblocks/overview.md +45 -8
- package/src/templates/init/src/markdown/md-plugins/containers/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/frontmatter/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/headers/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/image/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/imports/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/inline-code/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/link/advanced.md +2 -2
- package/src/templates/init/src/markdown/md-plugins/link/overview.md +6 -4
- package/src/templates/init/src/markdown/md-plugins/mermaid/advanced.md +69 -0
- package/src/templates/init/src/markdown/md-plugins/mermaid/overview.md +73 -0
- package/src/templates/init/src/markdown/md-plugins/shared/overview.md +28 -13
- package/src/templates/init/src/markdown/md-plugins/table/overview.md +3 -1
- package/src/templates/init/src/markdown/md-plugins/title/overview.md +3 -1
- package/src/templates/init/src/markdown/other/contact.md +37 -0
- package/src/templates/init/src/markdown/other/contributing/bugs-and-feature-requests.md +33 -0
- package/src/templates/init/src/markdown/other/contributing/call-to-action.md +25 -0
- package/src/templates/init/src/markdown/other/contributing/documentation.md +31 -0
- package/src/templates/init/src/markdown/other/contributing/overview.md +41 -0
- package/src/templates/init/src/markdown/other/contributing/packages.md +28 -0
- package/src/templates/init/src/markdown/other/contributing/sponsor.md +23 -0
- package/src/templates/init/src/markdown/other/faq.md +179 -0
- package/src/templates/init/src/markdown/other/releases.md +11 -0
- package/src/templates/init/src/markdown/other/upgrade-guide.md +165 -0
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/advanced.md +11 -3
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/components.md +25 -29
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +20 -20
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/site-config.md +17 -3
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/themes.md +101 -9
- package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/advanced.md +158 -0
- package/src/templates/init/src/markdown/quasar-app-extensions/vite-md-plugin-app-ext/overview.md +1 -1
- package/src/templates/init/src/markdown/vite-plugins/vite-examples-plugin/advanced.md +8 -3
- package/src/templates/init/src/markdown/vite-plugins/vite-examples-plugin/overview.md +19 -5
- package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/advanced.md +84 -54
- package/src/templates/init/src/markdown/vite-plugins/vite-md-plugin/overview.md +19 -3
- package/src/templates/init/src/siteConfig/index.ts +52 -23
- package/src/templates/update/src/_q-press/api/components/MarkdownCode.json +2 -2
- package/src/templates/update/src/_q-press/api/components/MarkdownCodepen.json +6 -9
- package/src/templates/update/src/_q-press/api/components/MarkdownExample.json +27 -2
- package/src/templates/update/src/_q-press/components/MarkdownApi.vue +129 -84
- package/src/templates/update/src/_q-press/components/MarkdownCardLink.vue +1 -1
- package/src/templates/update/src/_q-press/components/MarkdownCardTitle.vue +1 -1
- package/src/templates/update/src/_q-press/components/MarkdownCode.vue +71 -3
- package/src/templates/update/src/_q-press/components/MarkdownCodepen.vue +316 -59
- package/src/templates/update/src/_q-press/components/MarkdownCopyButton.vue +1 -1
- package/src/templates/update/src/_q-press/components/MarkdownExample.vue +54 -19
- package/src/templates/update/src/_q-press/components/MarkdownLink.vue +5 -5
- package/src/templates/update/src/_q-press/components/MarkdownMermaid.vue +123 -0
- package/src/templates/update/src/_q-press/components/MarkdownTree.vue +2 -2
- package/src/templates/update/src/_q-press/components/markdown-utils.ts +27 -3
- package/src/templates/update/src/_q-press/css/app.scss +38 -26
- package/src/templates/update/src/_q-press/css/code-theme.scss +634 -0
- package/src/templates/update/src/_q-press/css/themes/default.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/evergreen.scss +69 -0
- package/src/templates/update/src/_q-press/css/themes/mystic.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/newspaper.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/sunrise.scss +1 -1
- package/src/templates/update/src/_q-press/css/themes/tawny.scss +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownDrawerSidebar.vue +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownDrawerToc.vue +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownHeader.vue +1 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownLayout.vue +2 -2
- package/src/templates/update/src/_q-press/layouts/MarkdownPage.vue +4 -3
- package/src/templates/update/src/_q-press/layouts/MarkdownSearch.vue +1 -1
- package/src/templates/update/src/_q-press/stores/markdown.ts +1 -2
- package/tsconfig.json +1 -1
- package/dist/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/dist/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/dist/templates/init/src/_q-press/css/prism-theme.scss +0 -298
- package/dist/templates/init/src/markdown/guides/contributing.md +0 -101
- package/dist/templates/init/src/markdown/guides/faq.md +0 -115
- package/dist/templates/init/src/markdown/guides/release-notes.md +0 -0
- package/dist/templates/init/src/markdown/guides/style-guide.md +0 -0
- package/dist/templates/init/src/markdown/guides/upgrade-guide.md +0 -92
- package/dist/templates/init/src/markdown/other/release-notes.md +0 -8
- package/dist/templates/init/src/q-press.globals.d.ts +0 -36
- package/dist/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/dist/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/dist/templates/update/src/_q-press/css/prism-theme.scss +0 -298
- package/dist/templates/update/src/q-press.globals.d.ts +0 -36
- package/src/templates/init/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/src/templates/init/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/src/templates/init/src/_q-press/css/prism-theme.scss +0 -298
- package/src/templates/init/src/markdown/guides/contributing.md +0 -101
- package/src/templates/init/src/markdown/guides/faq.md +0 -115
- package/src/templates/init/src/markdown/guides/release-notes.md +0 -0
- package/src/templates/init/src/markdown/guides/style-guide.md +0 -0
- package/src/templates/init/src/markdown/guides/upgrade-guide.md +0 -92
- package/src/templates/init/src/markdown/other/release-notes.md +0 -8
- package/src/templates/init/src/q-press.globals.d.ts +0 -36
- package/src/templates/update/src/_q-press/api/components/MarkdownCodePrism.json +0 -29
- package/src/templates/update/src/_q-press/components/MarkdownCodePrism.ts +0 -36
- package/src/templates/update/src/_q-press/css/prism-theme.scss +0 -298
- package/src/templates/update/src/q-press.globals.d.ts +0 -36
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@ The Ultimate Markdown Solution for the Quasar Framework.
|
|
|
4
4
|
|
|
5
5
|
See the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpress/overview) for more information.
|
|
6
6
|
|
|
7
|
-
> Current beta release: `0.1.0-beta.
|
|
7
|
+
> Current beta release: `0.1.0-beta.21`.
|
|
8
8
|
>
|
|
9
|
-
> Q-Press currently targets Quasar Vite projects using `@quasar/app-vite` `>=3.0.0-beta.
|
|
9
|
+
> Q-Press currently targets Quasar Vite projects using `@quasar/app-vite` `>=3.0.0-beta.33`. TypeScript processing is required.
|
|
10
10
|
|
|
11
11
|
## Features
|
|
12
12
|
|
|
@@ -26,26 +26,26 @@ See the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpr
|
|
|
26
26
|
- `quasar ext add @md-plugins/q-press`
|
|
27
27
|
- Here is what gets installed on a **new** install:
|
|
28
28
|
- `src/.q-press`
|
|
29
|
-
- `src/q-press.globals.d.ts`
|
|
30
29
|
- `src/components`
|
|
31
30
|
- `src/markdown`
|
|
32
31
|
- `src/examples`
|
|
33
32
|
- `src/siteConfig`
|
|
34
33
|
- Here is what gets installed on an **update** install:
|
|
35
34
|
- `src/.q-press`
|
|
36
|
-
- `src/q-press.globals.d.ts`
|
|
37
35
|
|
|
38
36
|
2. Install `markdown-it` and `@types/markdown-it` in your project devDependencies
|
|
39
37
|
|
|
40
38
|
- `npm i -D markdown-it @types/markdown-it`
|
|
41
39
|
- `yarn add -D markdown-it @types/markdown-it`
|
|
42
40
|
- `pnpm i -D markdown-it @types/markdown-it`
|
|
41
|
+
- `bun add -d markdown-it @types/markdown-it`
|
|
43
42
|
|
|
44
|
-
3.
|
|
43
|
+
3. Q-Press adds `shiki` to your project dependencies when invoked. If you are wiring the generated files manually, add it yourself:
|
|
45
44
|
|
|
46
|
-
- `npm i
|
|
47
|
-
- `yarn add
|
|
48
|
-
- `pnpm add
|
|
45
|
+
- `npm i shiki`
|
|
46
|
+
- `yarn add shiki`
|
|
47
|
+
- `pnpm add shiki`
|
|
48
|
+
- `bun add shiki`
|
|
49
49
|
|
|
50
50
|
## Modifications
|
|
51
51
|
|
|
@@ -62,8 +62,6 @@ See the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpr
|
|
|
62
62
|
|
|
63
63
|
- ```scss
|
|
64
64
|
@import '../.q-press/css/app.scss';
|
|
65
|
-
@import '../.q-press/css/fonts.scss';
|
|
66
|
-
@import '../.q-press/css/prism-theme.scss';
|
|
67
65
|
```
|
|
68
66
|
|
|
69
67
|
3. Modify your `quasar.config.ts`
|
|
@@ -94,11 +92,11 @@ See the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpr
|
|
|
94
92
|
|
|
95
93
|
- ```ts
|
|
96
94
|
import type { RouteRecordRaw } from 'vue-router'
|
|
97
|
-
import mdPageList from '
|
|
95
|
+
import mdPageList from '@/markdown/listing'
|
|
98
96
|
const routes = [
|
|
99
97
|
{
|
|
100
98
|
path: '/',
|
|
101
|
-
component: () => import('
|
|
99
|
+
component: () => import('@/.q-press/layouts/MarkdownLayout.vue'),
|
|
102
100
|
children: [
|
|
103
101
|
// Include the Landing Page route first
|
|
104
102
|
...Object.entries(mdPageList)
|
|
@@ -136,7 +134,7 @@ See the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpr
|
|
|
136
134
|
// but you can also remove it
|
|
137
135
|
{
|
|
138
136
|
path: '/:catchAll(.*)*',
|
|
139
|
-
component: () => import('pages/ErrorNotFound.vue'),
|
|
137
|
+
component: () => import('@/pages/ErrorNotFound.vue'),
|
|
140
138
|
},
|
|
141
139
|
] as RouteRecordRaw[]
|
|
142
140
|
|
|
@@ -151,7 +149,7 @@ See the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpr
|
|
|
151
149
|
</template>
|
|
152
150
|
|
|
153
151
|
<script setup lang="ts">
|
|
154
|
-
import { useDark } from '
|
|
152
|
+
import { useDark } from '@/.q-press/composables/dark'
|
|
155
153
|
const { initDark } = useDark()
|
|
156
154
|
initDark()
|
|
157
155
|
</script>
|
|
@@ -222,7 +220,7 @@ If you don't have a `.prettierignore` file, create one and add the following:
|
|
|
222
220
|
|
|
223
221
|
## Updating
|
|
224
222
|
|
|
225
|
-
When you update, only the `src/.q-press` folder will be updated
|
|
223
|
+
When you update, only the `src/.q-press` folder will be updated. If you want to re-install everything, just remove the `src/siteConfig` folder.
|
|
226
224
|
|
|
227
225
|
To make it easier to update, you can use the following command:
|
|
228
226
|
|
|
@@ -234,6 +232,13 @@ quasar ext invoke @md-plugins/q-press
|
|
|
234
232
|
|
|
235
233
|
In case this README falls out of date, please refer to the [documentation](https://md-plugins.netlify.app/quasar-app-extensions/qpress/overview) for the latest information.
|
|
236
234
|
|
|
235
|
+
## Support
|
|
236
|
+
|
|
237
|
+
If Q-Press is useful in your workflow and you want to support ongoing maintenance:
|
|
238
|
+
|
|
239
|
+
GitHub Sponsors: https://github.com/sponsors/hawkeye64
|
|
240
|
+
PayPal: https://paypal.me/hawkeye64
|
|
241
|
+
|
|
237
242
|
## License
|
|
238
243
|
|
|
239
244
|
This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for details.
|
package/dist/index.js
CHANGED
|
@@ -5,20 +5,51 @@
|
|
|
5
5
|
* Docs: https://quasar.dev/app-extensions/development-guide/index-api
|
|
6
6
|
*/
|
|
7
7
|
import { defineIndexScript } from '@quasar/app-vite';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
const qPressGlobalsTsConfigPath = fileURLToPath(new URL('./q-press-globals.d.ts', import.meta.url)).replace(/\\/g, '/');
|
|
10
|
+
function normalizeAlias(alias) {
|
|
11
|
+
if (Array.isArray(alias)) {
|
|
12
|
+
return [...alias];
|
|
13
|
+
}
|
|
14
|
+
return Object.entries(alias ?? {}).map(([find, replacement]) => ({
|
|
15
|
+
find,
|
|
16
|
+
replacement,
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
function addQuasarSourceAlias(viteConf, appDir) {
|
|
20
|
+
const alias = normalizeAlias(viteConf.resolve?.alias);
|
|
21
|
+
viteConf.resolve ??= {};
|
|
22
|
+
viteConf.resolve.alias = [
|
|
23
|
+
...alias,
|
|
24
|
+
{
|
|
25
|
+
find: /^quasar\/src\/(.*)$/,
|
|
26
|
+
replacement: `${appDir.replace(/\\/g, '/')}/node_modules/quasar/src/$1`,
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
function addQPressGlobalsToTsConfig(tsConfig) {
|
|
31
|
+
tsConfig.files ??= [];
|
|
32
|
+
if (!tsConfig.files.includes(qPressGlobalsTsConfigPath)) {
|
|
33
|
+
tsConfig.files.push(qPressGlobalsTsConfigPath);
|
|
14
34
|
}
|
|
35
|
+
}
|
|
36
|
+
function extendTypeScriptConfig(typescriptConfig) {
|
|
37
|
+
const userExtendTsConfig = typescriptConfig.extendTsConfig;
|
|
38
|
+
typescriptConfig.extendTsConfig = (tsConfig) => {
|
|
39
|
+
userExtendTsConfig?.(tsConfig);
|
|
40
|
+
addQPressGlobalsToTsConfig(tsConfig);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export default defineIndexScript((api) => {
|
|
15
44
|
api.compatibleWith('quasar', '^2.0.0');
|
|
16
|
-
api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.
|
|
45
|
+
api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.33');
|
|
17
46
|
// here we extend /quasar.config, so we can add some Vite/Vue stuff
|
|
18
47
|
api.extendQuasarConf(async (config) => {
|
|
19
48
|
config.build ??= {};
|
|
49
|
+
config.build.typescript ??= {};
|
|
20
50
|
config.build.viteVuePluginOptions ??= {};
|
|
21
51
|
config.framework ??= {};
|
|
52
|
+
extendTypeScriptConfig(config.build.typescript);
|
|
22
53
|
// make sure 'vueRouterMode' has 'history' mode
|
|
23
54
|
if (config.build.vueRouterMode !== 'history') {
|
|
24
55
|
console.warn('Changing vueRouterMode to "history" - required for hash links to work correctly');
|
|
@@ -56,4 +87,7 @@ export default defineIndexScript((api) => {
|
|
|
56
87
|
// config.vite.plugins.push(viteMdPlugin({ path: markdownPath, menu: sidebar }))
|
|
57
88
|
// }
|
|
58
89
|
});
|
|
90
|
+
api.extendViteConf((viteConf, _invoke, aeApi) => {
|
|
91
|
+
addQuasarSourceAlias(viteConf, aeApi.appDir);
|
|
92
|
+
});
|
|
59
93
|
});
|
package/dist/install.js
CHANGED
|
@@ -6,12 +6,8 @@
|
|
|
6
6
|
import { defineInstallScript } from '@quasar/app-vite';
|
|
7
7
|
import { existsSync } from 'node:fs';
|
|
8
8
|
export default defineInstallScript(async (api) => {
|
|
9
|
-
// verify this is a Vite project
|
|
10
|
-
if (!api.hasVite) {
|
|
11
|
-
throw new Error('This extension requires Vite');
|
|
12
|
-
}
|
|
13
9
|
api.compatibleWith('quasar', '^2.0.0');
|
|
14
|
-
api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.
|
|
10
|
+
api.compatibleWith('@quasar/app-vite', '>=3.0.0-beta.33');
|
|
15
11
|
// project must have pinia installed
|
|
16
12
|
if ((await api.getStorePackageName()) !== 'pinia') {
|
|
17
13
|
console.error('-----------------------------');
|
|
@@ -26,6 +22,12 @@ export default defineInstallScript(async (api) => {
|
|
|
26
22
|
console.error('----------------------------------');
|
|
27
23
|
throw new Error('This extension requires TypeScript');
|
|
28
24
|
}
|
|
25
|
+
api.extendPackageJson({
|
|
26
|
+
dependencies: {
|
|
27
|
+
mermaid: '^11.15.0',
|
|
28
|
+
shiki: '^4.1.0',
|
|
29
|
+
},
|
|
30
|
+
});
|
|
29
31
|
const path = api.resolve.src('siteConfig');
|
|
30
32
|
if (existsSync(path)) {
|
|
31
33
|
// this is an update scenario
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/// <reference types="@quasar/app-vite/client" />
|
|
2
|
+
|
|
3
|
+
declare module '*.md'
|
|
4
|
+
|
|
5
|
+
declare global {
|
|
6
|
+
interface ImportMetaHot {
|
|
7
|
+
accept(callback?: (..._args: unknown[]) => unknown): void
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface ImportMeta {
|
|
11
|
+
readonly env: ImportMetaEnv
|
|
12
|
+
glob: <T = unknown>(pattern: string) => Record<string, () => Promise<T>>
|
|
13
|
+
hot?: ImportMetaHot
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface TocMenuItem {
|
|
17
|
+
id: string
|
|
18
|
+
level: number
|
|
19
|
+
title: string
|
|
20
|
+
link?: string
|
|
21
|
+
deep?: boolean
|
|
22
|
+
sub?: boolean
|
|
23
|
+
onClick?: () => void
|
|
24
|
+
children?: TocMenuItem[]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface MarkdownModule {
|
|
28
|
+
title?: string
|
|
29
|
+
headers?: TocMenuItem[]
|
|
30
|
+
frontmatter?: Record<string, unknown>
|
|
31
|
+
filename?: string
|
|
32
|
+
render: (..._args: unknown[]) => unknown
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface MenuItem {
|
|
36
|
+
name: string
|
|
37
|
+
path?: string
|
|
38
|
+
icon?: string
|
|
39
|
+
iconColor?: string
|
|
40
|
+
rightIcon?: string
|
|
41
|
+
rightIconColor?: string
|
|
42
|
+
badge?: string
|
|
43
|
+
children?: MenuItem[] | undefined
|
|
44
|
+
external?: boolean
|
|
45
|
+
expanded?: boolean
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export {}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"props": {
|
|
7
7
|
"code": {
|
|
8
8
|
"type": "String",
|
|
9
|
-
"desc": "The code to display",
|
|
9
|
+
"desc": "The code to display with Shiki syntax highlighting",
|
|
10
10
|
"examples": [
|
|
11
11
|
"'const a = 1;'",
|
|
12
12
|
"'<div>Hello World</div>'"
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
"category": "content"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
}
|
|
37
|
+
}
|
|
@@ -4,18 +4,15 @@
|
|
|
4
4
|
"docsUrl": "https://path-to-your-docs/markdown-codepen"
|
|
5
5
|
},
|
|
6
6
|
"props": {
|
|
7
|
-
"
|
|
8
|
-
"type": "Boolean",
|
|
9
|
-
"desc": "Flag to indicate if the form should be active",
|
|
10
|
-
"category": "state"
|
|
11
|
-
},
|
|
12
|
-
"options": {
|
|
7
|
+
"title": {
|
|
13
8
|
"type": "String",
|
|
14
|
-
"desc": "
|
|
9
|
+
"desc": "Title used for the generated CodePen",
|
|
10
|
+
"required": true,
|
|
15
11
|
"examples": [
|
|
16
|
-
"'
|
|
12
|
+
"'Basic Example'",
|
|
13
|
+
"'Advanced Playground'"
|
|
17
14
|
],
|
|
18
15
|
"category": "content"
|
|
19
16
|
}
|
|
20
17
|
}
|
|
21
|
-
}
|
|
18
|
+
}
|
|
@@ -13,10 +13,35 @@
|
|
|
13
13
|
],
|
|
14
14
|
"category": "content"
|
|
15
15
|
},
|
|
16
|
+
"file": {
|
|
17
|
+
"type": "String",
|
|
18
|
+
"desc": "Vue example file name without the .vue extension",
|
|
19
|
+
"required": true,
|
|
20
|
+
"examples": [
|
|
21
|
+
"'Basic'",
|
|
22
|
+
"'AdvancedUsage'"
|
|
23
|
+
],
|
|
24
|
+
"category": "content"
|
|
25
|
+
},
|
|
26
|
+
"noEdit": {
|
|
27
|
+
"type": "Boolean",
|
|
28
|
+
"desc": "Hide the CodePen edit button",
|
|
29
|
+
"category": "behavior"
|
|
30
|
+
},
|
|
16
31
|
"noGithub": {
|
|
17
32
|
"type": "Boolean",
|
|
18
|
-
"desc": "
|
|
33
|
+
"desc": "Hide the GitHub source button",
|
|
34
|
+
"category": "behavior"
|
|
35
|
+
},
|
|
36
|
+
"scrollable": {
|
|
37
|
+
"type": "Boolean",
|
|
38
|
+
"desc": "Constrain the example content to a scrollable area",
|
|
39
|
+
"category": "content"
|
|
40
|
+
},
|
|
41
|
+
"overflow": {
|
|
42
|
+
"type": "Boolean",
|
|
43
|
+
"desc": "Allow the example content to manage overflow automatically",
|
|
19
44
|
"category": "behavior"
|
|
20
45
|
}
|
|
21
46
|
}
|
|
22
|
-
}
|
|
47
|
+
}
|