@md-plugins/quasar-app-extension-q-press 0.1.0-alpha.16 → 0.1.0-alpha.17
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/package.json +14 -14
- package/src/templates/init/src/_q-press/components/MarkdownExample.vue +3 -1
- package/src/templates/init/src/_q-press/layouts/MarkdownPage.vue +1 -1
- package/src/templates/init/src/markdown/quasar-app-extensions/qpress/overview.md +20 -0
- package/src/templates/init/src/siteConfig/index.ts +2 -2
- package/src/templates/update/src/_q-press/components/MarkdownExample.vue +3 -1
- package/src/templates/update/src/_q-press/layouts/MarkdownPage.vue +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@md-plugins/quasar-app-extension-q-press",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.17",
|
|
4
4
|
"description": "QPress - The Ultimate Markdown Solution for Quasar Framework",
|
|
5
5
|
"author": "hawkeye64 <galbraith64@gmail.com>",
|
|
6
6
|
"keywords": [
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@types/markdown-it": "^14.1.2",
|
|
31
31
|
"markdown-it": "^14.1.0",
|
|
32
|
-
"@md-plugins/md-plugin-blockquote": "0.1.0-alpha.
|
|
33
|
-
"@md-plugins/md-plugin-
|
|
34
|
-
"@md-plugins/md-plugin-
|
|
35
|
-
"@md-plugins/md-plugin-
|
|
36
|
-
"@md-plugins/md-plugin-
|
|
37
|
-
"@md-plugins/md-plugin-
|
|
38
|
-
"@md-plugins/md-plugin-imports": "0.1.0-alpha.
|
|
39
|
-
"@md-plugins/md-plugin-inlinecode": "0.1.0-alpha.
|
|
40
|
-
"@md-plugins/md-plugin-link": "0.1.0-alpha.
|
|
41
|
-
"@md-plugins/
|
|
42
|
-
"@md-plugins/
|
|
43
|
-
"@md-plugins/
|
|
44
|
-
"@md-plugins/md-plugin
|
|
32
|
+
"@md-plugins/md-plugin-blockquote": "0.1.0-alpha.17",
|
|
33
|
+
"@md-plugins/md-plugin-containers": "0.1.0-alpha.17",
|
|
34
|
+
"@md-plugins/md-plugin-codeblocks": "0.1.0-alpha.17",
|
|
35
|
+
"@md-plugins/md-plugin-image": "0.1.0-alpha.17",
|
|
36
|
+
"@md-plugins/md-plugin-frontmatter": "0.1.0-alpha.17",
|
|
37
|
+
"@md-plugins/md-plugin-headers": "0.1.0-alpha.17",
|
|
38
|
+
"@md-plugins/md-plugin-imports": "0.1.0-alpha.17",
|
|
39
|
+
"@md-plugins/md-plugin-inlinecode": "0.1.0-alpha.17",
|
|
40
|
+
"@md-plugins/md-plugin-link": "0.1.0-alpha.17",
|
|
41
|
+
"@md-plugins/md-plugin-table": "0.1.0-alpha.17",
|
|
42
|
+
"@md-plugins/md-plugin-title": "0.1.0-alpha.17",
|
|
43
|
+
"@md-plugins/shared": "0.1.0-alpha.17",
|
|
44
|
+
"@md-plugins/vite-md-plugin": "0.1.0-alpha.17"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/markdown-it": "^14.1.2",
|
|
@@ -110,6 +110,8 @@ import MarkdownCode from './MarkdownCode.vue'
|
|
|
110
110
|
import MarkdownCodepen from './MarkdownCodepen.vue'
|
|
111
111
|
import MarkdownCardTitle from './MarkdownCardTitle.vue'
|
|
112
112
|
|
|
113
|
+
import siteConfig from '../../siteConfig'
|
|
114
|
+
|
|
113
115
|
const props = defineProps({
|
|
114
116
|
title: String,
|
|
115
117
|
file: String,
|
|
@@ -167,7 +169,7 @@ function parseComponent(comp) {
|
|
|
167
169
|
|
|
168
170
|
function openGitHub() {
|
|
169
171
|
openURL(
|
|
170
|
-
|
|
172
|
+
`${siteConfig.githubEditRootSrc}/examples/${examples.name}/${props.file}.vue`,
|
|
171
173
|
)
|
|
172
174
|
}
|
|
173
175
|
|
|
@@ -136,7 +136,7 @@ if (props.toc !== void 0) {
|
|
|
136
136
|
markdownStore.setToc(props.toc)
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
const editHref = computed(() => `${siteConfig.
|
|
139
|
+
const editHref = computed(() => `${siteConfig.githubEditRootSrc}/markdown/${props.editLink}.md`)
|
|
140
140
|
|
|
141
141
|
const isFullscreen = computed(() => route.meta.fullscreen === true || props.fullscreen)
|
|
142
142
|
|
|
@@ -68,6 +68,16 @@ pnpm i prismjs
|
|
|
68
68
|
|
|
69
69
|
## Configuration
|
|
70
70
|
|
|
71
|
+
### Modify `tsconfig.json`
|
|
72
|
+
|
|
73
|
+
Add the `resolveJsonModule: true` to your `tsconfig.json` file in your route folder:
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
"compilerOptions": {
|
|
77
|
+
"resolveJsonModule": true
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
71
81
|
### Modify `src/css/quasar.variables.scss`
|
|
72
82
|
|
|
73
83
|
Import a Q-Press theme (`default`, `sunrise`, `newspaper`, `tawny`, `mystic`, your own or a 3rd-party theme):
|
|
@@ -210,6 +220,16 @@ Update your `App.vue`:
|
|
|
210
220
|
|
|
211
221
|
:::
|
|
212
222
|
|
|
223
|
+
:::details Q. I see linting issues regarding `any`, what should I do?
|
|
224
|
+
|
|
225
|
+
**A.** In your `eslint.config.js` file, add/replace the following in your rules:
|
|
226
|
+
|
|
227
|
+
```js
|
|
228
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
:::
|
|
232
|
+
|
|
213
233
|
:::details Q. Every time I save a markdown file, `prettier` changes it so that it breaks. How can I prevent this?
|
|
214
234
|
|
|
215
235
|
**A.** This is both a `prettier` and `eslint` issue. In `eslint.config.js`, add the following to the top of the file, right after `export default [`:
|
|
@@ -77,7 +77,7 @@ export interface SiteConfig {
|
|
|
77
77
|
theme: string
|
|
78
78
|
version: string
|
|
79
79
|
copyright: CopyrightConfig
|
|
80
|
-
|
|
80
|
+
githubEditRootSrc: string // src folder for github edit links (appended with 'markdown' and 'examples')
|
|
81
81
|
license: LicenseConfig
|
|
82
82
|
privacy: PrivacyConfig
|
|
83
83
|
logoConfig: LogoConfig
|
|
@@ -385,7 +385,7 @@ const config = {
|
|
|
385
385
|
line1: `Copyright © 2024-${new Date().getFullYear()} MD-PLUGINS`,
|
|
386
386
|
line2: '',
|
|
387
387
|
} as CopyrightConfig,
|
|
388
|
-
|
|
388
|
+
githubEditRootSrc: 'https://github.com/md-plugins/md-plugins/edit/dev/packages/docs/src/',
|
|
389
389
|
license: {
|
|
390
390
|
label: 'MIT License',
|
|
391
391
|
link: 'https://github.com/md-plugins/md-plugins/blob/dev/LICENSE.md',
|
|
@@ -110,6 +110,8 @@ import MarkdownCode from './MarkdownCode.vue'
|
|
|
110
110
|
import MarkdownCodepen from './MarkdownCodepen.vue'
|
|
111
111
|
import MarkdownCardTitle from './MarkdownCardTitle.vue'
|
|
112
112
|
|
|
113
|
+
import siteConfig from '../../siteConfig'
|
|
114
|
+
|
|
113
115
|
const props = defineProps({
|
|
114
116
|
title: String,
|
|
115
117
|
file: String,
|
|
@@ -167,7 +169,7 @@ function parseComponent(comp) {
|
|
|
167
169
|
|
|
168
170
|
function openGitHub() {
|
|
169
171
|
openURL(
|
|
170
|
-
|
|
172
|
+
`${siteConfig.githubEditRootSrc}/examples/${examples.name}/${props.file}.vue`,
|
|
171
173
|
)
|
|
172
174
|
}
|
|
173
175
|
|
|
@@ -136,7 +136,7 @@ if (props.toc !== void 0) {
|
|
|
136
136
|
markdownStore.setToc(props.toc)
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
const editHref = computed(() => `${siteConfig.
|
|
139
|
+
const editHref = computed(() => `${siteConfig.githubEditRootSrc}/markdown/${props.editLink}.md`)
|
|
140
140
|
|
|
141
141
|
const isFullscreen = computed(() => route.meta.fullscreen === true || props.fullscreen)
|
|
142
142
|
|