@mythpe/quasar-app-extension-qui 0.5.0 → 0.5.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 CHANGED
@@ -19,43 +19,31 @@ To automatically install the extension and trigger the **invoke** script, run:
19
19
  quasar ext add "@mythpe/qui"
20
20
  ```
21
21
 
22
- ## ⚙️ Extension Lifecycle
23
-
24
- This app extension uses Quasar's lifecycle scripts to automate project setup:
25
-
26
- * **Invoke (`index.js` / `install.js`)**: Automatically executed upon installation. It registers the extension, adds the required boot files, injects
27
- UI configurations, and updates your project dependencies.
28
-
29
- ```bash
22
+ ```bash
30
23
  quasar ext invoke "@mythpe/qui"
31
24
  ```
32
25
 
33
- * **Uninvoke (`uninstall.js`)**: Automatically executed upon removal. It cleans up your project by safely removing boot files, configuration lines,
34
- and injected setup without leaving dead code.
35
-
36
- ```bash
37
- quasar ext uninvoke "@mythpe/qui"
38
- ```
39
-
40
26
  ## 🛠️ Uninstall
41
27
 
42
- To remove the extension and trigger the **uninvoke** cleanup script, run:
43
-
44
28
  ```bash
45
29
  quasar ext remove "@mythpe/qui"
46
30
  ```
47
31
 
32
+ ```bash
33
+ quasar ext uninvoke "@mythpe/qui"
34
+ ```
35
+
48
36
  ## 🔗 Related Packages
49
37
 
50
- * **[@mythpe/quasar-ui-qui](https://www.npmjs.com/package/@mythpe/quasar-ui-qui)**: Core UI library package.
38
+ - **[@mythpe/quasar-ui-qui](https://www.npmjs.com/package/@mythpe/quasar-ui-qui)**: Core UI library package.
51
39
 
52
40
  ## 📞 Support & Contact
53
41
 
54
42
  Developed with 💙 by **Ahmed Faiz (MyTh)**.
55
43
 
56
- * 🌐 **Website:** [4myth.com](https://4myth.com)
57
- * 📧 **Email:** mythpe@gmail.com
58
- * 📱 **WhatsApp:** [+966 59 047 0092](https://wa.me)
44
+ - 🌐 **Website:** [4myth.com](https://4myth.com)
45
+ - 📧 **Email:** mythpe@gmail.com
46
+ - 📱 **WhatsApp:** [+966 59 047 0092](https://wa.me)
59
47
 
60
48
  ## 📄 License
61
49
 
@@ -0,0 +1 @@
1
+ "use strict";var r=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var f=(o,p)=>{for(var e in p)r(o,e,{get:p[e],enumerable:!0})},n=(o,p,e,i)=>{if(p&&typeof p=="object"||typeof p=="function")for(let t of s(p))!l.call(o,t)&&t!==e&&r(o,t,{get:()=>p[t],enumerable:!(i=u(p,t))||i.enumerable});return o};var d=o=>n(r({},"__esModule",{value:!0}),o);var b={};f(b,{default:()=>A});module.exports=d(b);var a=require("quasar/wrappers"),m=require("@mythpe/quasar-ui-qui"),A=(0,a.boot)(({app:o})=>{o.use(m.install),console.log("\u{1F4B5}\u2764\uFE0F Quasar App Extension @mythpe/quasar-ui-qui booted")});
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(e,a)=>{for(var t in a)n(e,t,{get:a[t],enumerable:!0})},d=(e,a,t,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of o(a))!p.call(e,r)&&r!==t&&n(e,r,{get:()=>a[r],enumerable:!(s=i(a,r))||s.enumerable});return e};var c=e=>d(n({},"__esModule",{value:!0}),e);var b={};u(b,{default:()=>h});module.exports=c(b);function m(e,a){if(e.boot.push("~@mythpe/quasar-app-extension-qui/dist/boot/register.js"),a.hasWebpack){let t=e.build.webpackTranspileDependencies||e.build.transpileDependencies;t&&typeof t.push=="function"&&t.push(/@mythpe\/quasar-app-extension-qui[\\/]dist/)}}function h(e){e.compatibleWith("quasar","^2.0.0"),e.hasVite?e.compatibleWith("@quasar/app-vite","^1.5.0 || ^2.0.0"):e.hasWebpack&&e.compatibleWith("@quasar/app-webpack","^3.10.0 || ^4.0.0"),e.extendQuasarConf(a=>m(a,e)),e.registerCommand("myth-command",({args:a,params:t})=>{})}
@@ -0,0 +1 @@
1
+ "use strict";var p=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var c=(a,t)=>{for(var i in t)p(a,i,{get:t[i],enumerable:!0})},u=(a,t,i,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of o(t))!r.call(a,e)&&e!==i&&p(a,e,{get:()=>t[e],enumerable:!(l=s(t,e))||l.enumerable});return a};var b=a=>u(p({},"__esModule",{value:!0}),a);var h={};c(h,{default:()=>f});module.exports=b(h);function f(a){a.compatibleWith("quasar","^2.0.0"),a.hasVite?a.compatibleWith("@quasar/app-vite","^1.0.0 || ^2.0.0"):a.hasWebpack&&a.compatibleWith("@quasar/app-webpack","^3.10.0 || ^4.0.0")}
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var m=(e,r)=>{for(var n in r)a(e,n,{get:r[n],enumerable:!0})},u=(e,r,n,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of s(r))!p.call(e,t)&&t!==n&&a(e,t,{get:()=>r[t],enumerable:!(i=o(r,t))||i.enumerable});return e};var c=e=>u(a({},"__esModule",{value:!0}),e);var f={};m(f,{default:()=>d});module.exports=c(f);function d(e){return[]}
@@ -0,0 +1 @@
1
+ "use strict";var l=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var e=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var f=(t,a)=>{for(var n in a)l(t,n,{get:a[n],enumerable:!0})},s=(t,a,n,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let i of e(a))!r.call(t,i)&&i!==n&&l(t,i,{get:()=>a[i],enumerable:!(o=p(a,i))||o.enumerable});return t};var u=t=>s(l({},"__esModule",{value:!0}),t);var m={};f(m,{default:()=>d});module.exports=u(m);function d(t){}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-app-extension-qui",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "author": {
5
5
  "name": "MyTh Ahmed Faiz",
6
6
  "mobile": "+966590470092",
@@ -8,14 +8,54 @@
8
8
  "url": "https://www.4myth.com"
9
9
  },
10
10
  "description": "MyTh Quasar App Extension for MyTh UI Kit",
11
+ "keywords": [
12
+ "MyTh",
13
+ "Quasar",
14
+ "Vue js",
15
+ "UI",
16
+ "Components",
17
+ "Form Validation",
18
+ "Internationalization",
19
+ "UI Kit",
20
+ "Quasar Extension"
21
+ ],
11
22
  "license": "MIT",
12
- "main": "src/index.cjs",
13
- "type": "module",
23
+ "main": "dist/index.cjs",
24
+ "type": "commonjs",
25
+ "files": [
26
+ "dist"
27
+ ],
14
28
  "scripts": {
15
- "publish:npm": "npm publish --access public"
29
+ "clean": "rimraf dist",
30
+ "build": "yarn clean && tsup src/index.ts src/install.ts src/prompts.ts src/uninstall.ts src/boot/register.ts --format cjs --clean --minify",
31
+ "release": "yarn version --patch --no-git-tag-version",
32
+ "minor": "yarn version --minor --no-git-tag-version",
33
+ "major": "yarn version --major --no-git-tag-version"
16
34
  },
17
- "dependencies": {
18
- "@mythpe/quasar-ui-qui": "^0.5.0"
35
+ "peerDependencies": {
36
+ "@mythpe/quasar-ui-qui": "0.5.1",
37
+ "quasar": "^2.19.3",
38
+ "@quasar/app-vite": "^2.6.0",
39
+ "vue": "^3.5.34",
40
+ "vue-router": "^5.0.7",
41
+ "vee-validate": "^4.15.1",
42
+ "vue-i18n": "^11.4.4"
43
+ },
44
+ "devDependencies": {
45
+ "@quasar/app-vite": "^2.6.0",
46
+ "quasar": "^2.19.3",
47
+ "vue": "^3.5.34",
48
+ "@eslint/js": "^10.0.1",
49
+ "@types/node": "^25.9.0",
50
+ "@vue/eslint-config-prettier": "^10.2.0",
51
+ "@vue/eslint-config-typescript": "^14.7.0",
52
+ "eslint": "^10.4.0",
53
+ "eslint-plugin-vue": "^10.9.1",
54
+ "globals": "^17.6.0",
55
+ "prettier": "^3.8.3",
56
+ "rimraf": "^6.1.3",
57
+ "tsup": "^8.5.1",
58
+ "typescript": "^6.0.3"
19
59
  },
20
60
  "engines": {
21
61
  "node": "^28 || ^26 || ^24 || ^22.12",
@@ -1,11 +0,0 @@
1
- import { boot } from 'quasar/wrappers'
2
- import VuePlugin from '@mythpe/quasar-ui-qui'
3
-
4
- /**
5
- * Global component auto-registration boot script
6
- * Automatically applies the plugin components into the target Quasar application
7
- */
8
- export default boot(({ app }) => {
9
- app.use(VuePlugin)
10
- console.log('💵❤️ Quasar App Extension @mythpe/quasar-ui-qui booted')
11
- })
package/src/index.cjs DELETED
@@ -1,83 +0,0 @@
1
- //const path = require('path')
2
- //const fs = require('fs')
3
-
4
- /**
5
- * Quasar App Extension index/runner script
6
- * (runs on each dev/build)
7
- *
8
- * Docs: https://quasar.dev/app-extensions/development-guide/index-api
9
- */
10
- //const path = require('path')
11
-
12
- function extendConf(conf, api) {
13
- // register our boot file
14
- conf.boot.push('~@mythpe/quasar-app-extension-qui/src/boot/register.js')
15
-
16
- // make sure the stylesheet goes through webpack to avoid SSR issues
17
- //conf.css.push('~@mythpe/quasar-ui-qui/src/index.scss')
18
-
19
- if (api.hasVite) {
20
- //conf.build.alias['#myth'] = path.resolve(__dirname, '../../ui/dist/types/index.d.ts')
21
- //conf.build.alias['#myth'] = path.resolve(__dirname, '~@mythpe/quasar-ui-qui/dist/types/index.d.ts')
22
- //conf.build.alias['#myth'] = 'node_modules/@mythpe/quasar-ui-qui/dist/types/index.cjs'
23
- //conf.build.alias['#myth'] = '@mythpe/quasar-ui-qui/dist/types/index.d.ts'
24
- //conf.build.alias['#myth'] = './node_modules/@mythpe/quasar-ui-qui/dist/index.cjs'
25
- //conf.build.alias['#myth'] = './../node_modules/@mythpe/quasar-ui-qui/dist/index.umd.cjs'
26
- //conf.build.alias['#myth'] = '@mythpe/quasar-ui-qui/dist/types/index.d.ts'
27
- //conf.build.alias['#myth'] = '@mythpe/quasar-ui-qui/dist/types/index.d.ts'
28
- //conf.build.alias['#myth'] = '@mythpe/quasar-ui-qui/src/index.ts'
29
- }
30
-
31
- if (api.hasWebpack) {
32
- api.chainWebpack(chain => {
33
- chain.resolve.alias
34
- //.set('#myth', path.resolve(__dirname, '../ui/dist'))
35
- .set('#myth', './node_modules/@mythpe/quasar-ui-qui/dist/index.cjs')
36
- })
37
-
38
- // make sure app extension files & ui package gets transpiled
39
- const transpileTarget =
40
- conf.build.webpackTranspileDependencies || // q/app-webpack >= v4
41
- conf.build.transpileDependencies // q/app-webpack v3
42
- transpileTarget.push(/@mythpe\/quasar-app-extension-qui[\\/]src/)
43
- }
44
- }
45
-
46
- module.exports = function (api) {
47
- // Quasar compatibility check; you may need
48
- // hard dependencies, as in a minimum version of the "quasar"
49
- // package or a minimum version of "@quasar/app-*" CLI
50
- api.compatibleWith('quasar', '^2.0.0')
51
-
52
- if (api.hasVite) {
53
- api.compatibleWith('@quasar/app-vite', '^1.5.0 || ^2.0.0')
54
- } else if (api.hasWebpack) {
55
- api.compatibleWith('@quasar/app-webpack', '^3.10.0 || ^4.0.0')
56
- }
57
-
58
- // Uncomment the line below if you provide a JSON API for your component
59
- // api.registerDescribeApi('MyComponent', '~@mythpe/quasar-ui-qui/src/components/MyComponent.json')
60
- // Uncomment the line below if you provide a JSON API for your directive
61
- // api.registerDescribeApi('my-directive', '~@mythpe/quasar-ui-qui/src/directives/my-directive.json')
62
-
63
- // We extend /quasar.conf.js
64
- api.extendQuasarConf(conf => extendConf(conf, api))
65
-
66
- api.registerCommand('myth-routes', ({ args, params }) => {
67
- //const routesPath = path.join(process.cwd(), 'src/router/routes.ts')
68
- //const outputPath = path.join(process.cwd(), 'src/router/routes-dot.json')
69
- //if (!fs.existsSync(routesPath)) {
70
- // console.error('❌ لم يتم العثور على ملف src/router/routes.ts')
71
- // return
72
- //}
73
- try {
74
- //const fileContent = fs.readFileSync(routesPath, 'utf-8')
75
- //console.log('fileContent: ', fileContent)
76
- //const nameRegex = /name:\s*['"`]([^'"`]+)['"`]/g
77
- //let match
78
- //const routeNames = []
79
- } catch (error) {
80
- console.error('❌ Error:', error.message)
81
- }
82
- })
83
- }
package/src/install.js DELETED
@@ -1,18 +0,0 @@
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')
15
- } else if (api.hasWebpack) {
16
- api.compatibleWith('@quasar/app-webpack', '^3.10.0 || ^4.0.0')
17
- }
18
- }
package/src/prompts.js DELETED
@@ -1,44 +0,0 @@
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
package/src/uninstall.js DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * Quasar App Extension uninstall script
3
- *
4
- * Docs: https://quasar.dev/app-extensions/development-guide/uninstall-api
5
- */
6
-
7
- export default function (_api) {
8
- //
9
- }