@mythpe/quasar-app-extension-qui 0.0.1
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 +35 -0
- package/package.json +21 -0
- package/src/boot/register.js +6 -0
- package/src/index.js +45 -0
- package/src/install.js +19 -0
- package/src/prompts.js +44 -0
- package/src/templates/.gitkeep +0 -0
- package/src/uninstall.js +9 -0
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Quasar App Extension @mythpe/qui
|
|
2
|
+
|
|
3
|
+
> Add a short description of your App Extension. What does it do? How is it beneficial? Why would someone want to use it?
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@mythpe/quasar-app-extension-qui)
|
|
6
|
+
[](https://www.npmjs.com/package/@mythpe/quasar-app-extension-qui)
|
|
7
|
+
|
|
8
|
+
# Install
|
|
9
|
+
```bash
|
|
10
|
+
quasar ext add @mythpe/qui
|
|
11
|
+
quasar ext invoke @mythpe/qui
|
|
12
|
+
```
|
|
13
|
+
Quasar CLI will retrieve it from NPM and install the extension.
|
|
14
|
+
|
|
15
|
+
## Prompts
|
|
16
|
+
|
|
17
|
+
> If your app extension uses prompts, explain them here, otherwise remove this section and remove prompts.js file.
|
|
18
|
+
|
|
19
|
+
# Uninstall
|
|
20
|
+
```bash
|
|
21
|
+
quasar ext remove @mythpe/qui
|
|
22
|
+
quasar ext uninvoke @mythpe/qui
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
# Info
|
|
26
|
+
> Add longer information here that will help the user of your app extension.
|
|
27
|
+
|
|
28
|
+
# Other Info
|
|
29
|
+
> Add other information that's not as important to know
|
|
30
|
+
|
|
31
|
+
# Donate
|
|
32
|
+
If you appreciate the work that went into this App Extension, please consider [donating to Quasar](https://donate.quasar.dev).
|
|
33
|
+
|
|
34
|
+
# License
|
|
35
|
+
MIT (c) MyTh <mythpe@gmail.com>
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mythpe/quasar-app-extension-qui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "MyTh Quasar UI Kit App Extension",
|
|
5
|
+
"author": "MyTh Ahmed Faiz <mythpe@gmail.com>",
|
|
6
|
+
"mobile": "+966590470092",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"lint": "eslint --ext .js,.ts,.vue ./",
|
|
11
|
+
"lint:fix": "eslint --ext .js,.ts,.vue ./ --fix"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@mythpe/quasar-ui-qui": "^0.0.1"
|
|
15
|
+
},
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": "^24 || ^22 || ^20 || ^18",
|
|
18
|
+
"npm": ">= 6.13.4",
|
|
19
|
+
"yarn": ">= 1.21.1"
|
|
20
|
+
}
|
|
21
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quasar App Extension index/runner script
|
|
3
|
+
* (runs on each dev/build)
|
|
4
|
+
*
|
|
5
|
+
* Docs: https://quasar.dev/app-extensions/development-guide/index-api
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
function extendConf (conf, api) {
|
|
9
|
+
// register our boot file
|
|
10
|
+
conf.boot.push('~@mythpe/quasar-app-extension-qui/src/boot/register.js')
|
|
11
|
+
|
|
12
|
+
if (api.hasWebpack) {
|
|
13
|
+
// make sure app extension files & ui package gets transpiled
|
|
14
|
+
const transpileTarget = (
|
|
15
|
+
conf.build.webpackTranspileDependencies || // q/app-webpack >= v4
|
|
16
|
+
conf.build.transpileDependencies // q/app-webpack v3
|
|
17
|
+
)
|
|
18
|
+
transpileTarget.push(/@mythpe\/quasar-app-extension-qui[\\/]src/)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// make sure the stylesheet goes through webpack to avoid SSR issues
|
|
22
|
+
conf.css.push('~@mythpe/quasar-ui-qui/src/index.sass')
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default function (api) {
|
|
26
|
+
// Quasar compatibility check; you may need
|
|
27
|
+
// hard dependencies, as in a minimum version of the "quasar"
|
|
28
|
+
// package or a minimum version of "@quasar/app-*" CLI
|
|
29
|
+
api.compatibleWith('quasar', '^2.0.0')
|
|
30
|
+
|
|
31
|
+
if (api.hasVite) {
|
|
32
|
+
api.compatibleWith('@quasar/app-vite', '^1.5.0 || ^2.0.0-rc.1')
|
|
33
|
+
} else if (api.hasWebpack) {
|
|
34
|
+
api.compatibleWith('@quasar/app-webpack', '^3.10.0 || ^4.0.0-rc.1')
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Uncomment the line below if you provide a JSON API for your component
|
|
38
|
+
// api.registerDescribeApi('MyComponent', '~@mythpe/quasar-ui-qui/src/components/MyComponent.json')
|
|
39
|
+
|
|
40
|
+
// Uncomment the line below if you provide a JSON API for your directive
|
|
41
|
+
// api.registerDescribeApi('my-directive', '~@mythpe/quasar-ui-qui/src/directives/my-directive.json')
|
|
42
|
+
|
|
43
|
+
// We extend /quasar.conf.js
|
|
44
|
+
api.extendQuasarConf(extendConf)
|
|
45
|
+
}
|
package/src/install.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quasar App Extension install script
|
|
3
|
+
*
|
|
4
|
+
* Docs: https://quasar.dev/app-extensions/development-guide/install-api
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export default function (api) {
|
|
8
|
+
// Quasar compatibility check; you may need
|
|
9
|
+
// hard dependencies, as in a minimum version of the "quasar"
|
|
10
|
+
// package or a minimum version of "@quasar/app-*" CLI
|
|
11
|
+
api.compatibleWith('quasar', '^2.0.0')
|
|
12
|
+
|
|
13
|
+
if (api.hasVite) {
|
|
14
|
+
api.compatibleWith('@quasar/app-vite', '^1.0.0 || ^2.0.0-rc.1')
|
|
15
|
+
}
|
|
16
|
+
else if (api.hasWebpack) {
|
|
17
|
+
api.compatibleWith('@quasar/app-webpack', '^3.10.0 || ^4.0.0-rc.1')
|
|
18
|
+
}
|
|
19
|
+
}
|
package/src/prompts.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quasar App Extension prompts script
|
|
3
|
+
*
|
|
4
|
+
* Docs: https://quasar.dev/app-extensions/development-guide/prompts-api
|
|
5
|
+
*
|
|
6
|
+
* Inquirer prompts
|
|
7
|
+
* (answers are available as "api.prompts" in the other scripts)
|
|
8
|
+
* https://www.npmjs.com/package/inquirer#question
|
|
9
|
+
*
|
|
10
|
+
* Example:
|
|
11
|
+
|
|
12
|
+
return [
|
|
13
|
+
{
|
|
14
|
+
name: 'name',
|
|
15
|
+
type: 'string',
|
|
16
|
+
required: true,
|
|
17
|
+
message: 'Quasar CLI Extension name (without prefix)',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'preset',
|
|
21
|
+
type: 'checkbox',
|
|
22
|
+
message: 'Check the features needed for your project:',
|
|
23
|
+
choices: [
|
|
24
|
+
{
|
|
25
|
+
name: 'Install script',
|
|
26
|
+
value: 'install'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Prompts script',
|
|
30
|
+
value: 'prompts'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Uninstall script',
|
|
34
|
+
value: 'uninstall'
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export default function (api) {
|
|
43
|
+
return []
|
|
44
|
+
}
|
|
File without changes
|