@mythpe/quasar-app-extension-qui 0.5.62 → 0.5.63
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/dist/boot/myth.tmp +19 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/install.js +2 -2
- package/dist/install.mjs +2 -2
- package/package.json +2 -2
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
`),!
|
|
3
|
+
`),!0&&a({dir:t.appDir,name:"boot"}),!0&&a({dir:t.appDir,name:"env"}),!0&&a({dir:t.appDir,name:"dts"}),console.log(`
|
|
4
4
|
`)}
|
package/dist/install.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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 s(t,n){let e=m[t.name](t.dir),i=e.scr,o=e.dest,d=r.existsSync(o),{params:p}=n||{},a=o.replace(t.dir,"");!d||p?.f===!0?(r.copyFileSync(i,o),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
|
-
`),!
|
|
3
|
+
`),!0&&s({dir:t.appDir,name:"boot"}),!0&&s({dir:t.appDir,name:"env"}),!0&&s({dir:t.appDir,name:"dts"}),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.
|
|
3
|
+
"version": "0.5.63",
|
|
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.
|
|
36
|
+
"@mythpe/quasar-ui-qui": "0.5.63"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@quasar/app-vite": "^2.6.0",
|