admin felület fejlesztése garázs, előfizeztési csomagok

This commit is contained in:
Roo
2026-06-25 01:58:04 +00:00
parent 80a5d67f79
commit 52011606ff
334 changed files with 46636 additions and 1606 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,181 @@
/*!
* vue-router v5.1.0
* (c) 2026 Eduardo San Martin Morote
* @license MIT
*/
import { inject } from "vue";
//#region src/utils/env.ts
const isBrowser = typeof document !== "undefined";
//#endregion
//#region src/utils/index.ts
/**
* Identity function that returns the value as is.
*
* @param v - the value to return
*
* @internal
*/
const identityFn = (v) => v;
/**
* Allows differentiating lazy components from functional components and vue-class-component
* @internal
*
* @param component
*/
function isRouteComponent(component) {
return typeof component === "object" || "displayName" in component || "props" in component || "__vccOpts" in component;
}
function isESModule(obj) {
return obj.__esModule || obj[Symbol.toStringTag] === "Module" || obj.default && isRouteComponent(obj.default);
}
const assign = Object.assign;
function applyToParams(fn, params) {
const newParams = {};
for (const key in params) {
const value = params[key];
newParams[key] = isArray(value) ? value.map(fn) : fn(value);
}
return newParams;
}
const noop = () => {};
/**
* Typesafe alternative to Array.isArray
* https://github.com/microsoft/TypeScript/pull/48228
*
* @internal
*/
const isArray = Array.isArray;
function mergeOptions(defaults, partialOptions) {
const options = {};
for (const key in defaults) options[key] = key in partialOptions ? partialOptions[key] : defaults[key];
return options;
}
//#endregion
//#region src/errors.ts
const NavigationFailureSymbol = Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
/**
* Enumeration with all possible types for navigation failures. Can be passed to
* {@link isNavigationFailure} to check for specific failures.
*/
let NavigationFailureType = /* @__PURE__ */ function(NavigationFailureType) {
/**
* An aborted navigation is a navigation that failed because a navigation
* guard returned `false` or called `next(false)`
*/
NavigationFailureType[NavigationFailureType["aborted"] = 4] = "aborted";
/**
* A cancelled navigation is a navigation that failed because a more recent
* navigation finished started (not necessarily finished).
*/
NavigationFailureType[NavigationFailureType["cancelled"] = 8] = "cancelled";
/**
* A duplicated navigation is a navigation that failed because it was
* initiated while already being at the exact same location.
*/
NavigationFailureType[NavigationFailureType["duplicated"] = 16] = "duplicated";
return NavigationFailureType;
}({});
const ErrorTypeMessages = {
[1]({ location, currentLocation }) {
return `No match for\n ${JSON.stringify(location)}${currentLocation ? "\nwhile being at\n" + JSON.stringify(currentLocation) : ""}`;
},
[2]({ from, to }) {
return `Redirected from "${from.fullPath}" to "${stringifyRoute(to)}" via a navigation guard.`;
},
[4]({ from, to }) {
return `Navigation aborted from "${from.fullPath}" to "${to.fullPath}" via a navigation guard.`;
},
[8]({ from, to }) {
return `Navigation cancelled from "${from.fullPath}" to "${to.fullPath}" with a new navigation.`;
},
[16]({ from, to: _to }) {
return `Avoided redundant navigation to current location: "${from.fullPath}".`;
}
};
/**
* Creates a typed NavigationFailure object.
* @internal
* @param type - NavigationFailureType
* @param params - { from, to }
*/
function createRouterError(type, params) {
if (process.env.NODE_ENV !== "production" || false) return assign(new Error(ErrorTypeMessages[type](params)), {
type,
[NavigationFailureSymbol]: true
}, params);
else return assign(/* @__PURE__ */ new Error(), {
type,
[NavigationFailureSymbol]: true
}, params);
}
function isNavigationFailure(error, type) {
return error instanceof Error && NavigationFailureSymbol in error && (type == null || !!(error.type & type));
}
const propertiesToLog = [
"params",
"query",
"hash"
];
function stringifyRoute(to) {
if (typeof to === "string") return to;
if (to.path != null) return to.path;
const location = {};
for (const key of propertiesToLog) if (key in to) location[key] = to[key];
return JSON.stringify(location, null, 2);
}
//#endregion
//#region src/injectionSymbols.ts
/**
* RouteRecord being rendered by the closest ancestor Router View. Used for
* `onBeforeRouteUpdate` and `onBeforeRouteLeave`. rvlm stands for Router View
* Location Matched
*
* @internal
*/
const matchedRouteKey = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
/**
* Allows overriding the router view depth to control which component in
* `matched` is rendered. rvd stands for Router View Depth
*
* @internal
*/
const viewDepthKey = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
/**
* Allows overriding the router instance returned by `useRouter` in tests. r
* stands for router
*
* @internal
*/
const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
/**
* Allows overriding the current route returned by `useRoute` in tests. rl
* stands for route location
*
* @internal
*/
const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
/**
* Allows overriding the current route used by router-view. Internally this is
* used when the `route` prop is passed.
*
* @internal
*/
const routerViewLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
//#endregion
//#region src/useApi.ts
/**
* Returns the router instance. Equivalent to using `$router` inside
* templates.
*/
function useRouter() {
return inject(routerKey);
}
/**
* Returns the current route location. Equivalent to using `$route` inside
* templates.
*/
function useRoute(_name) {
return inject(routeLocationKey);
}
//#endregion
export { mergeOptions as _, routerKey as a, NavigationFailureType as c, applyToParams as d, assign as f, isRouteComponent as g, isESModule as h, routeLocationKey as i, createRouterError as l, isArray as m, useRouter as n, routerViewLocationKey as o, identityFn as p, matchedRouteKey as r, viewDepthKey as s, useRoute as t, isNavigationFailure as u, noop as v, isBrowser as y };

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
../../../@vue/devtools-api@8.1.3

View File

@@ -0,0 +1,226 @@
{
"name": "vue-router",
"version": "5.1.0",
"homepage": "https://router.vuejs.org",
"bugs": {
"url": "https://github.com/vuejs/router/issues"
},
"license": "MIT",
"author": {
"name": "Eduardo San Martin Morote",
"email": "posva13@gmail.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/router.git"
},
"funding": "https://github.com/sponsors/posva",
"files": [
"dist",
"index.cjs",
"README.md",
"route.schema.json",
"vue-router-auto-resolver.d.mts",
"vue-router-auto-routes.d.mts",
"vue-router-auto.d.ts",
"vue-router.node.mjs",
"vetur/attributes.json",
"vetur/tags.json"
],
"type": "module",
"sideEffects": false,
"main": "index.cjs",
"module": "dist/vue-router.js",
"types": "dist/vue-router.d.ts",
"typesVersions": {
"*": {
"vite": [
"./dist/unplugin/vite.d.mts"
],
"unplugin": [
"./dist/unplugin/index.d.mts"
],
"unplugin/*": [
"./dist/unplugin/*.d.mts"
],
"volar/*": [
"./dist/volar/*.d.cts"
]
}
},
"unpkg": "dist/vue-router.global.js",
"jsdelivr": "dist/vue-router.global.js",
"exports": {
".": {
"types": "./dist/vue-router.d.ts",
"node": {
"import": {
"production": "./vue-router.node.mjs",
"development": "./vue-router.node.mjs",
"default": "./vue-router.node.mjs"
},
"require": {
"production": "./dist/vue-router.prod.cjs",
"development": "./dist/vue-router.cjs",
"default": "./dist/vue-router.prod.cjs"
}
},
"import": "./dist/vue-router.js",
"require": "./index.cjs"
},
"./vetur/*": "./vetur/*",
"./package.json": "./package.json",
"./experimental": {
"types": "./dist/experimental/index.d.ts",
"import": "./dist/experimental/index.js"
},
"./experimental/pinia-colada": {
"types": "./dist/experimental/pinia-colada.d.ts",
"import": "./dist/experimental/pinia-colada.js"
},
"./auto-resolver": {
"types": "./vue-router-auto-resolver.d.mts"
},
"./auto-routes": {
"types": "./vue-router-auto-routes.d.mts"
},
"./auto": {
"types": "./vue-router-auto.d.ts",
"node": {
"import": {
"production": "./vue-router.node.mjs",
"development": "./vue-router.node.mjs",
"default": "./vue-router.node.mjs"
},
"require": {
"production": "./dist/vue-router.prod.cjs",
"development": "./dist/vue-router.cjs",
"default": "./dist/vue-router.prod.cjs"
}
},
"import": "./dist/vue-router.js",
"require": "./index.cjs"
},
"./vite": {
"types": "./dist/unplugin/vite.d.mts",
"import": "./dist/unplugin/vite.mjs",
"require": "./dist/unplugin/vite.cjs"
},
"./unplugin": {
"types": "./dist/unplugin/index.d.mts",
"import": "./dist/unplugin/index.mjs",
"require": "./dist/unplugin/index.cjs"
},
"./unplugin/*": "./dist/unplugin/*",
"./volar/sfc-route-blocks": {
"types": "./dist/volar/sfc-route-blocks.d.cts",
"default": "./dist/volar/sfc-route-blocks.cjs"
},
"./volar/sfc-typed-router": {
"types": "./dist/volar/sfc-typed-router.d.cts",
"default": "./dist/volar/sfc-typed-router.cjs"
},
"./dist/*": "./dist/*"
},
"dependencies": {
"@babel/generator": "^8.0.0-rc.4",
"@vue-macros/common": "^3.1.1",
"@vue/devtools-api": "^8.1.2",
"ast-walker-scope": "^0.9.0",
"chokidar": "^5.0.0",
"json5": "^2.2.3",
"local-pkg": "^1.1.2",
"magic-string": "^0.30.21",
"mlly": "^1.8.2",
"muggle-string": "^0.4.1",
"pathe": "^2.0.3",
"picomatch": "^4.0.3",
"scule": "^1.3.0",
"tinyglobby": "^0.2.16",
"unplugin": "^3.0.0",
"unplugin-utils": "^0.3.1",
"yaml": "^2.9.0"
},
"devDependencies": {
"@babel/types": "^8.0.0-rc.4",
"@pinia/colada": "^1.3.1",
"@playwright/test": "^1.59.1",
"@rollup/plugin-commonjs": "^28.0.9",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-replace": "^6.0.3",
"@rollup/plugin-terser": "^0.4.4",
"@standard-schema/spec": "^1.1.0",
"@types/babel__generator": "^7.27.0",
"@types/nightwatch": "^2.3.32",
"@types/picomatch": "^4.0.2",
"@typescript/native-preview": "7.0.0-dev.20260106.1",
"@vitejs/plugin-vue": "^6.0.6",
"@vue/compiler-sfc": "^3.5.34",
"@vue/language-core": "^3.2.1",
"@vue/server-renderer": "^3.5.34",
"@vue/test-utils": "^2.4.10",
"browserstack-local": "^1.5.13",
"chromedriver": "^148.0.3",
"connect-history-api-fallback": "^2.0.0",
"dotenv": "^17.4.2",
"faked-promise": "^2.2.2",
"geckodriver": "^6.1.0",
"happy-dom": "^20.9.0",
"nightwatch": "^3.15.0",
"nightwatch-helpers": "^1.2.0",
"pinia": "^3.0.4",
"rimraf": "^6.1.3",
"rollup": "^4.57.1",
"rollup-plugin-typescript2": "^0.36.0",
"tsdown": "^0.22.0",
"tsup": "^8.5.1",
"valibot": "^1.4.1",
"vite": "^8.0.13",
"vue": "^3.5.34",
"zod": "^4.4.3"
},
"peerDependencies": {
"@pinia/colada": ">=0.21.2",
"@vue/compiler-sfc": "^3.5.34",
"pinia": "^3.0.4",
"vite": "^7.0.0 || ^8.0.0",
"vue": "^3.5.34"
},
"peerDependenciesMeta": {
"@vue/compiler-sfc": {
"optional": true
},
"pinia": {
"optional": true
},
"@pinia/colada": {
"optional": true
},
"vite": {
"optional": true
}
},
"vetur": {
"tags": "vetur/tags.json",
"attributes": "vetur/attributes.json"
},
"scripts": {
"dev": "vitest --ui",
"build": "tsdown",
"build:old": "rimraf dist && rollup -c rollup.config.mjs",
"build:playground": "vue-tsc --noEmit && vite build --config playground/vite.config.ts",
"build:e2e": "vue-tsc --noEmit && vite build --config e2e/vite.config.mjs",
"build:size": "pnpm run build && rollup -c size-checks/rollup.config.mjs",
"dev:e2e": "vite --config e2e/vite.config.mjs",
"test:types": "tsc --build tsconfig.json ./test-dts/tsconfig.experimental.json",
"test:unit": "vitest --coverage run",
"test": "pnpm run build && pnpm run '/^(unit|test:types)$/' && pnpm run '/^test:(e2e|e2e:hmr)$/'",
"test:e2e": "pnpm run test:e2e:headless",
"test:e2e:hmr": "pnpm exec playwright test",
"test:e2e:headless": "node e2e/runner.mjs --env chrome-headless",
"test:e2e:native": "node e2e/runner.mjs --env chrome",
"test:e2e:ci": "node e2e/runner.mjs --env chrome-headless --retries 2",
"test:e2e:bs": "node e2e/runner.mjs --local -e android5 --tag browserstack",
"test:e2e:bs-test": "node e2e/runner.mjs --local --env browserstack.local_chrome --tag browserstack"
}
}

View File

@@ -0,0 +1,2 @@
global.__VUE_PROD_DEVTOOLS__ = false
export * from './dist/vue-router.js'