From ea27d34336215d4a818e7c8e1789ebc79f413d79 Mon Sep 17 00:00:00 2001 From: M_Kececi Date: Fri, 27 Feb 2026 12:21:15 +0300 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ui/.quasar/dev-spa/app.js | 77 +++++++++ ui/.quasar/dev-spa/client-entry.js | 156 ++++++++++++++++++ ui/.quasar/dev-spa/client-prefetch.js | 116 +++++++++++++ ui/.quasar/dev-spa/quasar-user-options.js | 23 +++ ui/.quasar/feature-flags.d.ts | 8 + ui/.quasar/pinia.d.ts | 8 + ui/.quasar/quasar.d.ts | 4 + ui/.quasar/tsconfig.json | 94 +++++++++++ ...ig.js.temporary.compiled.1772182016604.mjs | 125 ++++++++++++++ 9 files changed, 611 insertions(+) create mode 100644 ui/.quasar/dev-spa/app.js create mode 100644 ui/.quasar/dev-spa/client-entry.js create mode 100644 ui/.quasar/dev-spa/client-prefetch.js create mode 100644 ui/.quasar/dev-spa/quasar-user-options.js create mode 100644 ui/.quasar/feature-flags.d.ts create mode 100644 ui/.quasar/pinia.d.ts create mode 100644 ui/.quasar/quasar.d.ts create mode 100644 ui/.quasar/tsconfig.json create mode 100644 ui/quasar.config.js.temporary.compiled.1772182016604.mjs diff --git a/ui/.quasar/dev-spa/app.js b/ui/.quasar/dev-spa/app.js new file mode 100644 index 0000000..608c77d --- /dev/null +++ b/ui/.quasar/dev-spa/app.js @@ -0,0 +1,77 @@ +/* eslint-disable */ +/** + * THIS FILE IS GENERATED AUTOMATICALLY. + * DO NOT EDIT. + * + * You are probably looking on adding startup/initialization code. + * Use "quasar new boot " and add it there. + * One boot file per concern. Then reference the file(s) in quasar.config file > boot: + * boot: ['file', ...] // do not add ".js" extension to it. + * + * Boot files are your "main.js" + **/ + + + + + +import { Quasar } from 'quasar' +import { markRaw } from 'vue' +import RootComponent from 'app/src/App.vue' + +import createStore from 'app/src/stores/index' +import createRouter from 'app/src/router/index' + + + + + +export default async function (createAppFn, quasarUserOptions) { + + + // Create the app instance. + // Here we inject into it the Quasar UI, the router & possibly the store. + const app = createAppFn(RootComponent) + + + app.config.performance = true + + + app.use(Quasar, quasarUserOptions) + + + + + const store = typeof createStore === 'function' + ? await createStore({}) + : createStore + + + app.use(store) + + + + + + const router = markRaw( + typeof createRouter === 'function' + ? await createRouter({store}) + : createRouter + ) + + + // make router instance available in store + + store.use(({ store }) => { store.router = router }) + + + + // Expose the app, the router and the store. + // Note that we are not mounting the app here, since bootstrapping will be + // different depending on whether we are in a browser or on the server. + return { + app, + store, + router + } +} diff --git a/ui/.quasar/dev-spa/client-entry.js b/ui/.quasar/dev-spa/client-entry.js new file mode 100644 index 0000000..0adee13 --- /dev/null +++ b/ui/.quasar/dev-spa/client-entry.js @@ -0,0 +1,156 @@ +/* eslint-disable */ +/** + * THIS FILE IS GENERATED AUTOMATICALLY. + * DO NOT EDIT. + * + * You are probably looking on adding startup/initialization code. + * Use "quasar new boot " and add it there. + * One boot file per concern. Then reference the file(s) in quasar.config file > boot: + * boot: ['file', ...] // do not add ".js" extension to it. + * + * Boot files are your "main.js" + **/ + + +import { createApp } from 'vue' + + + + + + + +import '@quasar/extras/roboto-font/roboto-font.css' + +import '@quasar/extras/material-icons/material-icons.css' + + + + +// We load Quasar stylesheet file +import 'quasar/dist/quasar.sass' + + + + +import 'src/css/app.css' + + +import createQuasarApp from './app.js' +import quasarUserOptions from './quasar-user-options.js' + + + + + + +console.info('[Quasar] Running SPA.') + + + +const publicPath = `/` + + +async function start ({ + app, + router + , store +}, bootFiles) { + + let hasRedirected = false + const getRedirectUrl = url => { + try { return router.resolve(url).href } + catch (err) {} + + return Object(url) === url + ? null + : url + } + const redirect = url => { + hasRedirected = true + + if (typeof url === 'string' && /^https?:\/\//.test(url)) { + window.location.href = url + return + } + + const href = getRedirectUrl(url) + + // continue if we didn't fail to resolve the url + if (href !== null) { + window.location.href = href + window.location.reload() + } + } + + const urlPath = window.location.href.replace(window.location.origin, '') + + for (let i = 0; hasRedirected === false && i < bootFiles.length; i++) { + try { + await bootFiles[i]({ + app, + router, + store, + ssrContext: null, + redirect, + urlPath, + publicPath + }) + } + catch (err) { + if (err && err.url) { + redirect(err.url) + return + } + + console.error('[Quasar] boot error:', err) + return + } + } + + if (hasRedirected === true) return + + + app.use(router) + + + + + + + app.mount('#q-app') + + + +} + +createQuasarApp(createApp, quasarUserOptions) + + .then(app => { + // eventually remove this when Cordova/Capacitor/Electron support becomes old + const [ method, mapFn ] = Promise.allSettled !== void 0 + ? [ + 'allSettled', + bootFiles => bootFiles.map(result => { + if (result.status === 'rejected') { + console.error('[Quasar] boot error:', result.reason) + return + } + return result.value.default + }) + ] + : [ + 'all', + bootFiles => bootFiles.map(entry => entry.default) + ] + + return Promise[ method ]([ + + import(/* webpackMode: "eager" */ 'boot/dayjs') + + ]).then(bootFiles => { + const boot = mapFn(bootFiles).filter(entry => typeof entry === 'function') + start(app, boot) + }) + }) + diff --git a/ui/.quasar/dev-spa/client-prefetch.js b/ui/.quasar/dev-spa/client-prefetch.js new file mode 100644 index 0000000..9bbe3c5 --- /dev/null +++ b/ui/.quasar/dev-spa/client-prefetch.js @@ -0,0 +1,116 @@ +/* eslint-disable */ +/** + * THIS FILE IS GENERATED AUTOMATICALLY. + * DO NOT EDIT. + * + * You are probably looking on adding startup/initialization code. + * Use "quasar new boot " and add it there. + * One boot file per concern. Then reference the file(s) in quasar.config file > boot: + * boot: ['file', ...] // do not add ".js" extension to it. + * + * Boot files are your "main.js" + **/ + + + +import App from 'app/src/App.vue' +let appPrefetch = typeof App.preFetch === 'function' + ? App.preFetch + : ( + // Class components return the component options (and the preFetch hook) inside __c property + App.__c !== void 0 && typeof App.__c.preFetch === 'function' + ? App.__c.preFetch + : false + ) + + +function getMatchedComponents (to, router) { + const route = to + ? (to.matched ? to : router.resolve(to).route) + : router.currentRoute.value + + if (!route) { return [] } + + const matched = route.matched.filter(m => m.components !== void 0) + + if (matched.length === 0) { return [] } + + return Array.prototype.concat.apply([], matched.map(m => { + return Object.keys(m.components).map(key => { + const comp = m.components[key] + return { + path: m.path, + c: comp + } + }) + })) +} + +export function addPreFetchHooks ({ router, store, publicPath }) { + // Add router hook for handling preFetch. + // Doing it after initial route is resolved so that we don't double-fetch + // the data that we already have. Using router.beforeResolve() so that all + // async components are resolved. + router.beforeResolve((to, from, next) => { + const + urlPath = window.location.href.replace(window.location.origin, ''), + matched = getMatchedComponents(to, router), + prevMatched = getMatchedComponents(from, router) + + let diffed = false + const preFetchList = matched + .filter((m, i) => { + return diffed || (diffed = ( + !prevMatched[i] || + prevMatched[i].c !== m.c || + m.path.indexOf('/:') > -1 // does it has params? + )) + }) + .filter(m => m.c !== void 0 && ( + typeof m.c.preFetch === 'function' + // Class components return the component options (and the preFetch hook) inside __c property + || (m.c.__c !== void 0 && typeof m.c.__c.preFetch === 'function') + )) + .map(m => m.c.__c !== void 0 ? m.c.__c.preFetch : m.c.preFetch) + + + if (appPrefetch !== false) { + preFetchList.unshift(appPrefetch) + appPrefetch = false + } + + + if (preFetchList.length === 0) { + return next() + } + + let hasRedirected = false + const redirect = url => { + hasRedirected = true + next(url) + } + const proceed = () => { + + if (hasRedirected === false) { next() } + } + + + + preFetchList.reduce( + (promise, preFetch) => promise.then(() => hasRedirected === false && preFetch({ + store, + currentRoute: to, + previousRoute: from, + redirect, + urlPath, + publicPath + })), + Promise.resolve() + ) + .then(proceed) + .catch(e => { + console.error(e) + proceed() + }) + }) +} diff --git a/ui/.quasar/dev-spa/quasar-user-options.js b/ui/.quasar/dev-spa/quasar-user-options.js new file mode 100644 index 0000000..ac1dae3 --- /dev/null +++ b/ui/.quasar/dev-spa/quasar-user-options.js @@ -0,0 +1,23 @@ +/* eslint-disable */ +/** + * THIS FILE IS GENERATED AUTOMATICALLY. + * DO NOT EDIT. + * + * You are probably looking on adding startup/initialization code. + * Use "quasar new boot " and add it there. + * One boot file per concern. Then reference the file(s) in quasar.config file > boot: + * boot: ['file', ...] // do not add ".js" extension to it. + * + * Boot files are your "main.js" + **/ + +import lang from 'quasar/lang/tr.js' + + + +import {Loading,Dialog,Notify} from 'quasar' + + + +export default { config: {"notify":{"position":"top","timeout":2500}},lang,plugins: {Loading,Dialog,Notify} } + diff --git a/ui/.quasar/feature-flags.d.ts b/ui/.quasar/feature-flags.d.ts new file mode 100644 index 0000000..dab07b3 --- /dev/null +++ b/ui/.quasar/feature-flags.d.ts @@ -0,0 +1,8 @@ +/* eslint-disable */ +import "quasar/dist/types/feature-flag.d.ts"; + +declare module "quasar/dist/types/feature-flag.d.ts" { + interface QuasarFeatureFlags { + store: true; + } +} diff --git a/ui/.quasar/pinia.d.ts b/ui/.quasar/pinia.d.ts new file mode 100644 index 0000000..5bc0a53 --- /dev/null +++ b/ui/.quasar/pinia.d.ts @@ -0,0 +1,8 @@ +/* eslint-disable */ +import { Router } from 'vue-router'; + +declare module 'pinia' { + export interface PiniaCustomProperties { + readonly router: Router; + } +} diff --git a/ui/.quasar/quasar.d.ts b/ui/.quasar/quasar.d.ts new file mode 100644 index 0000000..e37de88 --- /dev/null +++ b/ui/.quasar/quasar.d.ts @@ -0,0 +1,4 @@ +/* eslint-disable */ +/// + +/// diff --git a/ui/.quasar/tsconfig.json b/ui/.quasar/tsconfig.json new file mode 100644 index 0000000..99f52b3 --- /dev/null +++ b/ui/.quasar/tsconfig.json @@ -0,0 +1,94 @@ +{ + "compilerOptions": { + "esModuleInterop": true, + "skipLibCheck": true, + "target": "esnext", + "allowJs": true, + "resolveJsonModule": true, + "moduleDetection": "force", + "isolatedModules": true, + "module": "preserve", + "noEmit": true, + "lib": [ + "esnext", + "dom", + "dom.iterable" + ], + "paths": { + "src": [ + "./../src" + ], + "src/*": [ + "./../src/*" + ], + "app": [ + "./.." + ], + "app/*": [ + "./../*" + ], + "components": [ + "./../src/components" + ], + "components/*": [ + "./../src/components/*" + ], + "layouts": [ + "./../src/layouts" + ], + "layouts/*": [ + "./../src/layouts/*" + ], + "pages": [ + "./../src/pages" + ], + "pages/*": [ + "./../src/pages/*" + ], + "assets": [ + "./../src/assets" + ], + "assets/*": [ + "./../src/assets/*" + ], + "boot": [ + "./../src/boot" + ], + "boot/*": [ + "./../src/boot/*" + ], + "stores": [ + "./../src/stores" + ], + "stores/*": [ + "./../src/stores/*" + ], + "#q-app": [ + "./../node_modules/@quasar/app-webpack/types/index.d.ts" + ], + "#q-app/wrappers": [ + "./../node_modules/@quasar/app-webpack/types/app-wrappers.d.ts" + ], + "#q-app/bex/background": [ + "./../node_modules/@quasar/app-webpack/types/bex/entrypoints/background.d.ts" + ], + "#q-app/bex/content": [ + "./../node_modules/@quasar/app-webpack/types/bex/entrypoints/content.d.ts" + ], + "#q-app/bex/private/bex-bridge": [ + "./../node_modules/@quasar/app-webpack/types/bex/bex-bridge.d.ts" + ] + } + }, + "include": [ + "./**/*.d.ts", + "./../**/*" + ], + "exclude": [ + "./../dist", + "./../node_modules", + "./../src-capacitor", + "./../src-cordova", + "./../quasar.config.*.temporary.compiled*" + ] +} \ No newline at end of file diff --git a/ui/quasar.config.js.temporary.compiled.1772182016604.mjs b/ui/quasar.config.js.temporary.compiled.1772182016604.mjs new file mode 100644 index 0000000..4a501bd --- /dev/null +++ b/ui/quasar.config.js.temporary.compiled.1772182016604.mjs @@ -0,0 +1,125 @@ +/* eslint-disable */ +/** + * THIS FILE IS GENERATED AUTOMATICALLY. + * 1. DO NOT edit this file directly as it won't do anything. + * 2. EDIT the original quasar.config file INSTEAD. + * 3. DO NOT git commit this file. It should be ignored. + * + * This file is still here because there was an error in + * the original quasar.config file and this allows you to + * investigate the Node.js stack error. + * + * After you fix the original file, this file will be + * deleted automatically. + **/ + + +// quasar.config.js +import { defineConfig } from "@quasar/app-webpack/wrappers"; +var quasar_config_default = defineConfig(() => { + const apiBaseUrl = (process.env.VITE_API_BASE_URL || "/api").trim(); + return { + /* ===================================================== + APP INFO + ===================================================== */ + productName: "Baggi BSS", + productDescription: "Baggi Tekstil Business Support System", + /* ===================================================== + BOOT FILES + ===================================================== */ + boot: ["dayjs"], + /* ===================================================== + GLOBAL CSS + ===================================================== */ + css: ["app.css"], + /* ===================================================== + ICONS / FONTS + ===================================================== */ + extras: [ + "roboto-font", + "material-icons" + ], + /* ===================================================== + BUILD (PRODUCTION) + ===================================================== */ + build: { + vueRouterMode: "hash", + env: { + VITE_API_BASE_URL: apiBaseUrl + }, + esbuildTarget: { + browser: ["es2022", "firefox115", "chrome115", "safari14"], + node: "node20" + }, + // Cache & performance + gzip: true, + preloadChunks: true + }, + /* ===================================================== + DEV SERVER (LOCAL) + ===================================================== */ + devServer: { + server: { type: "http" }, + port: 9e3, + open: true, + // DEV proxy (CORS'suz) + proxy: [ + { + context: ["/api"], + target: "http://localhost:8080", + changeOrigin: true, + secure: false + } + ] + }, + /* ===================================================== + QUASAR FRAMEWORK + ===================================================== */ + framework: { + config: { + notify: { + position: "top", + timeout: 2500 + } + }, + lang: "tr", + plugins: [ + "Loading", + "Dialog", + "Notify" + ] + }, + animations: [], + /* ===================================================== + SSR / PWA (DISABLED) + ===================================================== */ + ssr: { + prodPort: 3e3, + middlewares: ["render"], + pwa: false + }, + pwa: { + workboxMode: "GenerateSW" + }, + /* ===================================================== + MOBILE / DESKTOP + ===================================================== */ + capacitor: { + hideSplashscreen: true + }, + electron: { + preloadScripts: ["electron-preload"], + inspectPort: 5858, + bundler: "packager", + builder: { + appId: "baggisowtfaresystem" + } + }, + bex: { + extraScripts: [] + } + }; +}); +export { + quasar_config_default as default +};