@mythpe/quasar-app-extension-qui 0.5.62 → 0.5.64

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.
@@ -0,0 +1,19 @@
1
+ import { defineBoot } from '#q-app/wrappers'
2
+ import { install, loadApiServices } from '#myth'
3
+ const apiFiles: any = import.meta.glob('/src/boot-api/**/*.(ts|js)', { eager: false })
4
+
5
+ // "async" is optional;
6
+ // more info on params: https://v2.quasar.dev/quasar-cli-vite/boot-files
7
+ export default defineBoot(async ({ app }) => {
8
+ try {
9
+ await loadApiServices(apiFiles)
10
+ if (process.env.DEBUGGING) {
11
+ console.log('Successfully autoloaded project API services!')
12
+ }
13
+ } catch (error) {
14
+ if (process.env.DEBUGGING) {
15
+ console.error('Failed to autoload API services:', error)
16
+ }
17
+ }
18
+ app.use(install)
19
+ })
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var i=require("path");function o(e,r){e.css.push("~@mythpe/quasar-ui-qui/dist/index.scss"),e.preFetch===void 0&&(e.preFetch=!0),e.extras??=[];let a=["material-icons","material-icons-sharp","material-icons-outlined","material-symbols-sharp","material-symbols-outlined","material-symbols-rounded","ionicons-v4","mdi-v7","fontawesome-v7"];for(let s of a)e.extras.includes(s)||e.extras.push(s);e.htmlVariables??={},e.htmlVariables={...e.htmlVariables,productName:process.env.PRODUCT_NAME,productDescription:process.env.PRODUCT_DESCRIPTION,productKeywords:process.env.PRODUCT_KEYWORDS,productAuthor:process.env.PRODUCT_AUTHOR},e.build??={},e.build.alias??={},Object.assign(e.build.alias,{"#composables":(0,i.resolve)(r.appDir,"src/composables"),"#config":(0,i.resolve)(r.appDir,"src/config"),"#utils":(0,i.resolve)(r.appDir,"src/utils"),"#types":(0,i.resolve)(r.appDir,"src/types")}),e.build.framework??={},e.build.framework.config??={},e.build.framework.config.dark===void 0&&(e.build.framework.config.dark="auto"),e.build.framework.cssAddon=!0,e.build.envFolder||(e.build.envFolder="./");let t=["AddressbarColor","AppFullscreen","AppVisibility","BottomSheet","Cookies","Dark","Dialog","Loading","LoadingBar","LocalStorage","SessionStorage","Meta","Notify"];e.build.framework.plugins??=[];for(let s of t)e.build.framework.plugins.includes(s)||e.build.framework.plugins.push(s);if(r.hasWebpack){let s=e.build.webpackTranspileDependencies||e.build.transpileDependencies;s&&typeof s.push=="function"&&(s.push(/@mythpe\/quasar-app-extension-qui[\\/]dist/),s.push(/@mythpe\/quasar-ui-qui[\\/]dist/))}}function l(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(r=>o(r,e)),e.registerCommand("myth-command",({args:r,params:a})=>{try{console.error("\u{1F603} Myth Command"),console.log(r,a)}catch(t){console.error("\u274C Error:",t.message)}})}module.exports=l;
1
+ "use strict";var c=Object.create;var d=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var f=(e,s,t,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of h(s))!g.call(e,i)&&i!==t&&d(e,i,{get:()=>s[i],enumerable:!(r=b(s,i))||r.enumerable});return e};var x=(e,s,t)=>(t=e!=null?c(y(e)):{},f(s||!e||!e.__esModule?d(t,"default",{value:e,enumerable:!0}):t,e));var o=require("path");var a=x(require("fs")),v="node_modules/@mythpe/quasar-app-extension-qui/dist",l="node_modules/@mythpe/quasar-ui-qui/dist",k={boot:e=>({scr:`${e}/${v}/boot/myth.tmp`,dest:`${e}/src/boot/myth.ts`}),env:e=>({scr:`${e}/${l}/_env.example`,dest:`${e}/.env.dev`}),dts:e=>({scr:`${e}/${l}/index.d.ts`,dest:`${e}/.quasar/myth.d.ts`})};function p(e,s){let t=k[e.name](e.dir),r=t.scr,i=t.dest,u=a.default.existsSync(i),{params:m}=s||{},n=i.replace(e.dir,"");!u||m?.f===!0?(a.default.copyFileSync(r,i),console.log(`\u{1F4CB} \uFE0FCopied [${n}] ...`)):console.log(`\u{1F4CB} \uFE0FExisting [${n}] ...`)}function q(e,s){e.css.push("~@mythpe/quasar-ui-qui/dist/index.scss"),e.preFetch===void 0&&(e.preFetch=!0),e.extras??=[];let t=["material-icons","material-icons-sharp","material-icons-outlined","material-symbols-sharp","material-symbols-outlined","material-symbols-rounded","ionicons-v4","mdi-v7","fontawesome-v7"];for(let i of t)e.extras.includes(i)||e.extras.push(i);e.htmlVariables??={},e.htmlVariables={...e.htmlVariables,productName:process.env.PRODUCT_NAME,productDescription:process.env.PRODUCT_DESCRIPTION,productKeywords:process.env.PRODUCT_KEYWORDS,productAuthor:process.env.PRODUCT_AUTHOR},e.build??={},e.build.alias??={},Object.assign(e.build.alias,{"#composables":(0,o.resolve)(s.appDir,"src/composables"),"#config":(0,o.resolve)(s.appDir,"src/config"),"#utils":(0,o.resolve)(s.appDir,"src/utils"),"#types":(0,o.resolve)(s.appDir,"src/types")}),e.build.framework??={},e.build.framework.config??={},e.build.framework.config.dark===void 0&&(e.build.framework.config.dark="auto"),e.build.framework.cssAddon=!0,e.build.envFolder||(e.build.envFolder="./");let r=["AddressbarColor","AppFullscreen","AppVisibility","BottomSheet","Cookies","Dark","Dialog","Loading","LoadingBar","LocalStorage","SessionStorage","Meta","Notify"];e.build.framework.plugins??=[];for(let i of r)e.build.framework.plugins.includes(i)||e.build.framework.plugins.push(i);if(s.hasWebpack){let i=e.build.webpackTranspileDependencies||e.build.transpileDependencies;i&&typeof i.push=="function"&&(i.push(/@mythpe\/quasar-app-extension-qui[\\/]dist/),i.push(/@mythpe\/quasar-ui-qui[\\/]dist/))}}function D(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(s=>q(s,e)),e.registerCommand("myth-command",s=>p({dir:e.appDir,name:"env"},s))}module.exports=D;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- var l=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);import{resolve as i}from"path";var n=l((c,o)=>{function u(e,s){e.css.push("~@mythpe/quasar-ui-qui/dist/index.scss"),e.preFetch===void 0&&(e.preFetch=!0),e.extras??=[];let a=["material-icons","material-icons-sharp","material-icons-outlined","material-symbols-sharp","material-symbols-outlined","material-symbols-rounded","ionicons-v4","mdi-v7","fontawesome-v7"];for(let r of a)e.extras.includes(r)||e.extras.push(r);e.htmlVariables??={},e.htmlVariables={...e.htmlVariables,productName:process.env.PRODUCT_NAME,productDescription:process.env.PRODUCT_DESCRIPTION,productKeywords:process.env.PRODUCT_KEYWORDS,productAuthor:process.env.PRODUCT_AUTHOR},e.build??={},e.build.alias??={},Object.assign(e.build.alias,{"#composables":i(s.appDir,"src/composables"),"#config":i(s.appDir,"src/config"),"#utils":i(s.appDir,"src/utils"),"#types":i(s.appDir,"src/types")}),e.build.framework??={},e.build.framework.config??={},e.build.framework.config.dark===void 0&&(e.build.framework.config.dark="auto"),e.build.framework.cssAddon=!0,e.build.envFolder||(e.build.envFolder="./");let t=["AddressbarColor","AppFullscreen","AppVisibility","BottomSheet","Cookies","Dark","Dialog","Loading","LoadingBar","LocalStorage","SessionStorage","Meta","Notify"];e.build.framework.plugins??=[];for(let r of t)e.build.framework.plugins.includes(r)||e.build.framework.plugins.push(r);if(s.hasWebpack){let r=e.build.webpackTranspileDependencies||e.build.transpileDependencies;r&&typeof r.push=="function"&&(r.push(/@mythpe\/quasar-app-extension-qui[\\/]dist/),r.push(/@mythpe\/quasar-ui-qui[\\/]dist/))}}function d(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(s=>u(s,e)),e.registerCommand("myth-command",({args:s,params:a})=>{try{console.error("\u{1F603} Myth Command"),console.log(s,a)}catch(t){console.error("\u274C Error:",t.message)}})}o.exports=d});export default n();
1
+ var b=(e,s)=>()=>(e&&(s=e(e=0)),s);var h=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);import n from"fs";function l(e,s){let t=g[e.name](e.dir),o=t.scr,i=t.dest,m=n.existsSync(i),{params:c}=s||{},a=i.replace(e.dir,"");!m||c?.f===!0?(n.copyFileSync(o,i),console.log(`\u{1F4CB} \uFE0FCopied [${a}] ...`)):console.log(`\u{1F4CB} \uFE0FExisting [${a}] ...`)}var y,d,g,p=b(()=>{"use strict";y="node_modules/@mythpe/quasar-app-extension-qui/dist",d="node_modules/@mythpe/quasar-ui-qui/dist",g={boot:e=>({scr:`${e}/${y}/boot/myth.tmp`,dest:`${e}/src/boot/myth.ts`}),env:e=>({scr:`${e}/${d}/_env.example`,dest:`${e}/.env.dev`}),dts:e=>({scr:`${e}/${d}/index.d.ts`,dest:`${e}/.quasar/myth.d.ts`})}});import{resolve as r}from"path";var v=h((C,u)=>{p();function f(e,s){e.css.push("~@mythpe/quasar-ui-qui/dist/index.scss"),e.preFetch===void 0&&(e.preFetch=!0),e.extras??=[];let t=["material-icons","material-icons-sharp","material-icons-outlined","material-symbols-sharp","material-symbols-outlined","material-symbols-rounded","ionicons-v4","mdi-v7","fontawesome-v7"];for(let i of t)e.extras.includes(i)||e.extras.push(i);e.htmlVariables??={},e.htmlVariables={...e.htmlVariables,productName:process.env.PRODUCT_NAME,productDescription:process.env.PRODUCT_DESCRIPTION,productKeywords:process.env.PRODUCT_KEYWORDS,productAuthor:process.env.PRODUCT_AUTHOR},e.build??={},e.build.alias??={},Object.assign(e.build.alias,{"#composables":r(s.appDir,"src/composables"),"#config":r(s.appDir,"src/config"),"#utils":r(s.appDir,"src/utils"),"#types":r(s.appDir,"src/types")}),e.build.framework??={},e.build.framework.config??={},e.build.framework.config.dark===void 0&&(e.build.framework.config.dark="auto"),e.build.framework.cssAddon=!0,e.build.envFolder||(e.build.envFolder="./");let o=["AddressbarColor","AppFullscreen","AppVisibility","BottomSheet","Cookies","Dark","Dialog","Loading","LoadingBar","LocalStorage","SessionStorage","Meta","Notify"];e.build.framework.plugins??=[];for(let i of o)e.build.framework.plugins.includes(i)||e.build.framework.plugins.push(i);if(s.hasWebpack){let i=e.build.webpackTranspileDependencies||e.build.transpileDependencies;i&&typeof i.push=="function"&&(i.push(/@mythpe\/quasar-app-extension-qui[\\/]dist/),i.push(/@mythpe\/quasar-ui-qui[\\/]dist/))}}function x(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(s=>f(s,e)),e.registerCommand("myth-command",s=>l({dir:e.appDir,name:"env"},s))}u.exports=x});export default v();
package/dist/install.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var g=Object.create;var a=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var $=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var m=(o,s)=>{for(var t in s)a(o,t,{get:s[t],enumerable:!0})},p=(o,s,t,d)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of f(s))!h.call(o,n)&&n!==t&&a(o,n,{get:()=>s[n],enumerable:!(d=x(s,n))||d.enumerable});return o};var v=(o,s,t)=>(t=o!=null?g($(o)):{},p(s||!o||!o.__esModule?a(t,"default",{value:o,enumerable:!0}):t,o)),y=o=>p(a({},"__esModule",{value:!0}),o);var q={};m(q,{default:()=>b});module.exports=y(q);var i=v(require("fs"));function b(o){if(o.compatibleWith("quasar","^2.0.0"),o.hasVite?o.compatibleWith("@quasar/app-vite","^1.0.0 || ^2.0.0"):o.hasWebpack&&o.compatibleWith("@quasar/app-webpack","^3.10.0 || ^4.0.0"),console.log(`
1
+ "use strict";var u=Object.create;var i=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var v=(t,s)=>{for(var e in s)i(t,e,{get:s[e],enumerable:!0})},d=(t,s,e,n)=>{if(s&&typeof s=="object"||typeof s=="function")for(let o of y(s))!h.call(t,o)&&o!==e&&i(t,o,{get:()=>s[o],enumerable:!(n=f(s,o))||n.enumerable});return t};var $=(t,s,e)=>(e=t!=null?u(g(t)):{},d(s||!t||!t.__esModule?i(e,"default",{value:t,enumerable:!0}):e,t)),q=t=>d(i({},"__esModule",{value:!0}),t);var A={};v(A,{default:()=>D});module.exports=q(A);var r=$(require("fs")),b="node_modules/@mythpe/quasar-app-extension-qui/dist",p="node_modules/@mythpe/quasar-ui-qui/dist",x={boot:t=>({scr:`${t}/${b}/boot/myth.tmp`,dest:`${t}/src/boot/myth.ts`}),env:t=>({scr:`${t}/${p}/_env.example`,dest:`${t}/.env.dev`}),dts:t=>({scr:`${t}/${p}/index.d.ts`,dest:`${t}/.quasar/myth.d.ts`})};function a(t,s){let e=x[t.name](t.dir),n=e.scr,o=e.dest,l=r.default.existsSync(o),{params:m}=s||{},c=o.replace(t.dir,"");!l||m?.f===!0?(r.default.copyFileSync(n,o),console.log(`\u{1F4CB} \uFE0FCopied [${c}] ...`)):console.log(`\u{1F4CB} \uFE0FExisting [${c}] ...`)}function D(t){t.compatibleWith("quasar","^2.0.0"),t.hasVite?t.compatibleWith("@quasar/app-vite","^1.0.0 || ^2.0.0"):t.hasWebpack&&t.compatibleWith("@quasar/app-webpack","^3.10.0 || ^4.0.0"),console.log(`
2
2
  Running quasar install...
3
- `),!1){let e="./src/boot/myth.ts";i.default.existsSync(e)?console.log(`\u{1F4CB} \uFE0FExisting [${e}] ...`):(o.renderFile("boot/myth.tmp",e),console.log(`\u{1F4CB} \uFE0FCopied [${e}] ...`))}if(!0){let e="./.env.dev";i.default.existsSync(e)?console.log(`\u{1F4CB} \uFE0FExisting [${e}] ...`):(o.renderFile(`${o.appDir}/node_modules/@mythpe/quasar-ui-qui/dist/_env.example`,e),console.log(`\u{1F4CB} \uFE0FCopied [${e}] ...`))}if(!0){let e=".quasar/myth.d.ts";i.default.existsSync(e)&&i.default.unlinkSync(e),o.renderFile(`${o.appDir}/node_modules/@mythpe/quasar-ui-qui/dist/index.d.ts`,e),console.log(`\u{1F4CB} \uFE0FCopied [${e}] ...`)}console.log("App Icons ...");let n="public/favicon.png",r=i.default.existsSync(n);r||console.log(`\u26A0\uFE0F Not Found [${n}] ...`);let l="public/icon.png",u=i.default.existsSync(l);u||console.log(`\u26A0\uFE0F Not Found [${l}] ...`);let c="public/icons/icon-512x512.png";if(i.default.existsSync(c))console.log(`\u2705 Found [${c}] ...`),r?console.log(`\u2705 Favicon Icon [${n}] Exists ...`):(o.renderFile(`${o.appDir}/${c}`,n),console.log(`\u2705 Copied [${n}] ...`)),u?console.log(`\u2705 Icon [${l}] Exists ...`):(o.renderFile(`${o.appDir}/${c}`,l),console.log(`\u2705 Copied [${l}] ...`));else{console.log(`\u26A0\uFE0F Not Found [${c}] ...`);return}console.log(`
3
+ `);let s={params:{f:!0},args:[]};!0&&a({dir:t.appDir,name:"dts"},s),!0&&a({dir:t.appDir,name:"env"}),!0&&a({dir:t.appDir,name:"boot"}),console.log(`
4
4
  `)}
package/dist/install.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import s from"fs";function g(o){if(o.compatibleWith("quasar","^2.0.0"),o.hasVite?o.compatibleWith("@quasar/app-vite","^1.0.0 || ^2.0.0"):o.hasWebpack&&o.compatibleWith("@quasar/app-webpack","^3.10.0 || ^4.0.0"),console.log(`
1
+ import r from"fs";var l="node_modules/@mythpe/quasar-app-extension-qui/dist",c="node_modules/@mythpe/quasar-ui-qui/dist",m={boot:t=>({scr:`${t}/${l}/boot/myth.tmp`,dest:`${t}/src/boot/myth.ts`}),env:t=>({scr:`${t}/${c}/_env.example`,dest:`${t}/.env.dev`}),dts:t=>({scr:`${t}/${c}/index.d.ts`,dest:`${t}/.quasar/myth.d.ts`})};function e(t,o){let n=m[t.name](t.dir),i=n.scr,s=n.dest,d=r.existsSync(s),{params:p}=o||{},a=s.replace(t.dir,"");!d||p?.f===!0?(r.copyFileSync(i,s),console.log(`\u{1F4CB} \uFE0FCopied [${a}] ...`)):console.log(`\u{1F4CB} \uFE0FExisting [${a}] ...`)}function g(t){t.compatibleWith("quasar","^2.0.0"),t.hasVite?t.compatibleWith("@quasar/app-vite","^1.0.0 || ^2.0.0"):t.hasWebpack&&t.compatibleWith("@quasar/app-webpack","^3.10.0 || ^4.0.0"),console.log(`
2
2
  Running quasar install...
3
- `),!1){let e="./src/boot/myth.ts";s.existsSync(e)?console.log(`\u{1F4CB} \uFE0FExisting [${e}] ...`):(o.renderFile("boot/myth.tmp",e),console.log(`\u{1F4CB} \uFE0FCopied [${e}] ...`))}if(!0){let e="./.env.dev";s.existsSync(e)?console.log(`\u{1F4CB} \uFE0FExisting [${e}] ...`):(o.renderFile(`${o.appDir}/node_modules/@mythpe/quasar-ui-qui/dist/_env.example`,e),console.log(`\u{1F4CB} \uFE0FCopied [${e}] ...`))}if(!0){let e=".quasar/myth.d.ts";s.existsSync(e)&&s.unlinkSync(e),o.renderFile(`${o.appDir}/node_modules/@mythpe/quasar-ui-qui/dist/index.d.ts`,e),console.log(`\u{1F4CB} \uFE0FCopied [${e}] ...`)}console.log("App Icons ...");let n="public/favicon.png",l=s.existsSync(n);l||console.log(`\u26A0\uFE0F Not Found [${n}] ...`);let t="public/icon.png",c=s.existsSync(t);c||console.log(`\u26A0\uFE0F Not Found [${t}] ...`);let i="public/icons/icon-512x512.png";if(s.existsSync(i))console.log(`\u2705 Found [${i}] ...`),l?console.log(`\u2705 Favicon Icon [${n}] Exists ...`):(o.renderFile(`${o.appDir}/${i}`,n),console.log(`\u2705 Copied [${n}] ...`)),c?console.log(`\u2705 Icon [${t}] Exists ...`):(o.renderFile(`${o.appDir}/${i}`,t),console.log(`\u2705 Copied [${t}] ...`));else{console.log(`\u26A0\uFE0F Not Found [${i}] ...`);return}console.log(`
3
+ `);let o={params:{f:!0},args:[]};!0&&e({dir:t.appDir,name:"dts"},o),!0&&e({dir:t.appDir,name:"env"}),!0&&e({dir:t.appDir,name:"boot"}),console.log(`
4
4
  `)}export{g as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mythpe/quasar-app-extension-qui",
3
- "version": "0.5.62",
3
+ "version": "0.5.64",
4
4
  "author": {
5
5
  "name": "MyTh Ahmed Faiz",
6
6
  "mobile": "+966590470092",
@@ -33,7 +33,7 @@
33
33
  "major": "yarn version --major --no-git-tag-version"
34
34
  },
35
35
  "dependencies": {
36
- "@mythpe/quasar-ui-qui": "0.5.62"
36
+ "@mythpe/quasar-ui-qui": "0.5.64"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@quasar/app-vite": "^2.6.0",