@creopse/bridge 0.1.9 → 0.1.11
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/react/components/AsyncImg/AsyncImg.d.ts +12 -0
- package/dist/react/components/AsyncImg/index.d.ts +1 -0
- package/dist/react/components/CustomTransition/CustomTransition.d.ts +12 -0
- package/dist/react/{bridge7.js → components/CustomTransition/CustomTransition.js} +3 -4
- package/dist/react/components/CustomTransition/index.d.ts +1 -0
- package/dist/react/components/Image/Image.d.ts +14 -0
- package/dist/react/components/Image/Image.js +19 -0
- package/dist/react/components/Image/index.d.ts +1 -0
- package/dist/react/components/MountedTeleport/MountedTeleport.d.ts +8 -0
- package/dist/react/components/MountedTeleport/index.d.ts +1 -0
- package/dist/react/components/PageLayout/PageLayout.d.ts +20 -0
- package/dist/react/{bridge2.js → components/PageLayout/PageLayout.js} +1 -1
- package/dist/react/components/PageLayout/index.d.ts +1 -0
- package/dist/react/components/ReadMore/ReadMore.d.ts +12 -0
- package/dist/react/components/ReadMore/index.d.ts +1 -0
- package/dist/react/components/StickyBottom/StickyBottom.d.ts +9 -0
- package/dist/react/components/StickyBottom/index.d.ts +1 -0
- package/dist/react/components/StickyTop/StickyTop.d.ts +9 -0
- package/dist/react/components/StickyTop/index.d.ts +1 -0
- package/dist/react/components/index.d.ts +8 -0
- package/dist/react/hooks/access.d.ts +25 -0
- package/dist/react/hooks/core-bridge.d.ts +13 -0
- package/dist/react/hooks/index.d.ts +4 -0
- package/dist/react/hooks/responsive.d.ts +15 -0
- package/dist/react/hooks/user-preference.d.ts +4 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +27 -0
- package/dist/vite/index.d.ts +2 -0
- package/dist/vite/react.d.ts +45 -0
- package/dist/vite/react.js +21 -21
- package/dist/vite/vue.d.ts +40 -0
- package/dist/vite/vue.js +25 -25
- package/dist/vue/components/AsyncImg.vue.d.ts +12 -0
- package/dist/vue/components/CustomTransition.vue.d.ts +28 -0
- package/dist/vue/components/Image.vue.d.ts +23 -0
- package/dist/vue/components/MountedTeleport.vue.d.ts +20 -0
- package/dist/vue/components/PageLayout.vue.d.ts +29 -0
- package/dist/vue/components/ReadMore.vue.d.ts +14 -0
- package/dist/vue/components/StickyBottom.vue.d.ts +30 -0
- package/dist/vue/components/StickyTop.vue.d.ts +30 -0
- package/dist/vue/components/index.d.ts +8 -0
- package/dist/vue/composables/access.d.ts +25 -0
- package/dist/vue/composables/core-bridge.d.ts +12 -0
- package/dist/vue/composables/index.d.ts +4 -0
- package/dist/vue/composables/responsive.d.ts +15 -0
- package/dist/vue/composables/user-preference.d.ts +12 -0
- package/dist/vue/index.d.ts +2 -0
- package/dist/vue/index.js +15 -0
- package/package.json +3 -12
- package/dist/index-C8b1StIO.js +0 -17
- package/dist/react/bridge.js +0 -27
- package/dist/react/bridge4.js +0 -20
- package/dist/vue/bridge.js +0 -15
- /package/dist/react/{bridge3.js → components/AsyncImg/AsyncImg.js} +0 -0
- /package/dist/react/{bridge9.js → components/MountedTeleport/MountedTeleport.js} +0 -0
- /package/dist/react/{bridge8.js → components/ReadMore/ReadMore.js} +0 -0
- /package/dist/react/{bridge6.js → components/StickyBottom/StickyBottom.js} +0 -0
- /package/dist/react/{bridge5.js → components/StickyTop/StickyTop.js} +0 -0
- /package/dist/react/{bridge10.js → hooks/access.js} +0 -0
- /package/dist/react/{bridge12.js → hooks/core-bridge.js} +0 -0
- /package/dist/react/{bridge11.js → hooks/responsive.js} +0 -0
- /package/dist/react/{bridge13.js → hooks/user-preference.js} +0 -0
- /package/dist/vue/{bridge3.js → components/CustomTransition.vue.js} +0 -0
- /package/dist/vue/{bridge5.js → components/PageLayout.vue.js} +0 -0
- /package/dist/vue/{bridge6.js → composables/access.js} +0 -0
- /package/dist/vue/{bridge4.js → composables/core-bridge.js} +0 -0
- /package/dist/vue/{bridge2.js → composables/responsive.js} +0 -0
- /package/dist/vue/{bridge7.js → composables/user-preference.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties, default as React } from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
load: () => Promise<string>;
|
|
4
|
+
alt?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
|
+
title?: string;
|
|
8
|
+
loading?: 'lazy' | 'eager';
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
declare const AsyncImg: React.FC<Props>;
|
|
12
|
+
export default AsyncImg;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AsyncImg, type Props as AsyncImgProps } from './AsyncImg';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type Animation = 'fade' | 'slide-fade' | 'bounce';
|
|
3
|
+
type Mode = 'wait' | 'sync' | 'popLayout' | undefined;
|
|
4
|
+
export interface Props {
|
|
5
|
+
name?: Animation;
|
|
6
|
+
mode?: Mode;
|
|
7
|
+
appear?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
contentKey?: string | number;
|
|
10
|
+
}
|
|
11
|
+
declare const CustomTransition: React.FC<Props>;
|
|
12
|
+
export default CustomTransition;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
const u = ({
|
|
2
|
+
import { AnimatePresence as l, motion as s } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/framer-motion@12.23.9_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/index.mjs";
|
|
3
|
+
const d = ({
|
|
5
4
|
name: a = "fade",
|
|
6
5
|
mode: n = "wait",
|
|
7
6
|
appear: e = !1,
|
|
@@ -66,5 +65,5 @@ const u = ({
|
|
|
66
65
|
);
|
|
67
66
|
};
|
|
68
67
|
export {
|
|
69
|
-
|
|
68
|
+
d as default
|
|
70
69
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CustomTransition, type Props as CustomTransitionProps, } from './CustomTransition';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
|
+
title?: string;
|
|
8
|
+
loading?: 'lazy' | 'eager';
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
size?: 'small' | 'medium' | 'large' | 'original';
|
|
11
|
+
sync?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const Image: React.FC<Props>;
|
|
14
|
+
export default Image;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import d from "../AsyncImg/AsyncImg.js";
|
|
3
|
+
import { useCoreBridge as p } from "../../hooks/core-bridge.js";
|
|
4
|
+
const I = (o) => {
|
|
5
|
+
const { src: e, alt: s = "", width: i, height: l, title: m, loading: n, style: a, size: g = "original", sync: c = !1 } = o, {
|
|
6
|
+
helpers: { getImage: f }
|
|
7
|
+
} = p(), t = {
|
|
8
|
+
alt: s,
|
|
9
|
+
width: i,
|
|
10
|
+
height: l,
|
|
11
|
+
title: m,
|
|
12
|
+
loading: n,
|
|
13
|
+
style: a
|
|
14
|
+
};
|
|
15
|
+
return c ? /* @__PURE__ */ r("img", { src: e, ...t }) : /* @__PURE__ */ r(d, { load: () => f(e, g), ...t });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
I as default
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Image, type Props as ImageProps } from './Image';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MountedTeleport, type Props as MountedTeleportProps, } from './MountedTeleport';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
title?: string | null;
|
|
4
|
+
displayTitle?: boolean;
|
|
5
|
+
onBack?: (() => void) | null;
|
|
6
|
+
header?: ReactNode;
|
|
7
|
+
headerExtra?: ReactNode;
|
|
8
|
+
titleSlot?: ReactNode;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface PageHeaderProps {
|
|
12
|
+
title?: ReactNode;
|
|
13
|
+
extra?: ReactNode;
|
|
14
|
+
header?: ReactNode;
|
|
15
|
+
onBack?: () => void;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare const PageHeader: ({ title, extra, header, onBack, children, }: PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const PageLayout: ({ title, displayTitle, onBack, header, headerExtra, titleSlot, children, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default PageLayout;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { Icon as t } from "@iconify/react";
|
|
4
|
-
import { useResponsive as h } from "
|
|
4
|
+
import { useResponsive as h } from "../../hooks/responsive.js";
|
|
5
5
|
const p = ({
|
|
6
6
|
title: r,
|
|
7
7
|
extra: n,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PageLayout, type Props as PageLayoutProps, PageHeader, type PageHeaderProps, } from './PageLayout';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
moreStr?: string;
|
|
4
|
+
lessStr?: string;
|
|
5
|
+
text: string;
|
|
6
|
+
link?: string;
|
|
7
|
+
maxChars?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
linkClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const ReadMore: React.FC<Props>;
|
|
12
|
+
export default ReadMore;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ReadMore, type Props as ReadMoreProps } from './ReadMore';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as StickyBottom, type Props as StickyBottomProps, } from './StickyBottom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as StickyTop, type Props as StickyTopProps } from './StickyTop';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AccessGuard } from '@creopse/utils/enums';
|
|
2
|
+
import { NTagType } from '@creopse/utils/types';
|
|
3
|
+
export declare const useAccess: () => {
|
|
4
|
+
accessGuards: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: AccessGuard;
|
|
7
|
+
tagType: string;
|
|
8
|
+
}[];
|
|
9
|
+
getAccessGuardLabel: (value: AccessGuard) => string | undefined;
|
|
10
|
+
getAccessGuardTagType: (value: AccessGuard) => NTagType;
|
|
11
|
+
getRoleName: (roles: {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
}[], id: number) => string;
|
|
15
|
+
isPermissionNative: (name: string) => boolean;
|
|
16
|
+
userIsSuperAdmin: (roles: {
|
|
17
|
+
name: string;
|
|
18
|
+
}[]) => boolean;
|
|
19
|
+
userCan: (permissions: {
|
|
20
|
+
name: string;
|
|
21
|
+
}[], permissionName: string) => boolean;
|
|
22
|
+
userIs: (roles: {
|
|
23
|
+
name: string;
|
|
24
|
+
}[], roleName: string) => boolean;
|
|
25
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BridgeAuthState, BridgeServerState, UserInterfaceState } from '@creopse/utils';
|
|
2
|
+
export declare const useCoreBridge: () => {
|
|
3
|
+
locale: string | undefined;
|
|
4
|
+
env: Readonly<import('@creopse/utils').EnvData> | undefined;
|
|
5
|
+
appConfig: Readonly<import('@creopse/utils').AppConfig> | undefined;
|
|
6
|
+
api: import('@creopse/utils').Api;
|
|
7
|
+
i18n: import('@creopse/utils').BridgeI18n;
|
|
8
|
+
router: import('@creopse/utils').BridgeRouter;
|
|
9
|
+
helpers: import('@creopse/utils').BridgeHelpers;
|
|
10
|
+
auth: BridgeAuthState;
|
|
11
|
+
server: BridgeServerState;
|
|
12
|
+
ui: UserInterfaceState;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const useResponsive: () => {
|
|
2
|
+
is2XlScreen: boolean;
|
|
3
|
+
isXlScreen: boolean;
|
|
4
|
+
isLgScreen: boolean;
|
|
5
|
+
isMdScreen: boolean;
|
|
6
|
+
isSmScreen: boolean;
|
|
7
|
+
fromSm: boolean;
|
|
8
|
+
fromMd: boolean;
|
|
9
|
+
fromLg: boolean;
|
|
10
|
+
fromXl: boolean;
|
|
11
|
+
from2Xl: boolean;
|
|
12
|
+
isMobile: boolean;
|
|
13
|
+
isTablet: boolean;
|
|
14
|
+
isDesktop: boolean;
|
|
15
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PageHeader as r, PageLayout as t } from "./components/PageLayout/PageLayout.js";
|
|
2
|
+
import { default as f } from "./components/AsyncImg/AsyncImg.js";
|
|
3
|
+
import { default as m } from "./components/Image/Image.js";
|
|
4
|
+
import { default as u } from "./components/StickyTop/StickyTop.js";
|
|
5
|
+
import { default as d } from "./components/StickyBottom/StickyBottom.js";
|
|
6
|
+
import { default as c } from "./components/CustomTransition/CustomTransition.js";
|
|
7
|
+
import { default as n } from "./components/ReadMore/ReadMore.js";
|
|
8
|
+
import { default as y } from "./components/MountedTeleport/MountedTeleport.js";
|
|
9
|
+
import { useAccess as T } from "./hooks/access.js";
|
|
10
|
+
import { useResponsive as A } from "./hooks/responsive.js";
|
|
11
|
+
import { useCoreBridge as C } from "./hooks/core-bridge.js";
|
|
12
|
+
import { useUserPreference as M } from "./hooks/user-preference.js";
|
|
13
|
+
export {
|
|
14
|
+
f as AsyncImg,
|
|
15
|
+
c as CustomTransition,
|
|
16
|
+
m as Image,
|
|
17
|
+
y as MountedTeleport,
|
|
18
|
+
r as PageHeader,
|
|
19
|
+
t as PageLayout,
|
|
20
|
+
n as ReadMore,
|
|
21
|
+
d as StickyBottom,
|
|
22
|
+
u as StickyTop,
|
|
23
|
+
T as useAccess,
|
|
24
|
+
C as useCoreBridge,
|
|
25
|
+
A as useResponsive,
|
|
26
|
+
M as useUserPreference
|
|
27
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Plugin } from 'vite';
|
|
2
|
+
export interface CreopseReactPluginOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Path to the manifest.jsonc file, relative to the project root.
|
|
5
|
+
* @default './manifest.jsonc'
|
|
6
|
+
*/
|
|
7
|
+
manifestPath?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Source directory, relative to the project root.
|
|
10
|
+
* @default './src'
|
|
11
|
+
*/
|
|
12
|
+
srcDir?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Output directory for the build.
|
|
15
|
+
* @default 'frontend'
|
|
16
|
+
*/
|
|
17
|
+
outDir?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Path to the i18n locales directory, relative to the project root.
|
|
20
|
+
* @default './src/i18n/locales'
|
|
21
|
+
*/
|
|
22
|
+
i18nLocalesPath?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Directories to scan for auto-imports, relative to the project root.
|
|
25
|
+
* @default ['src/hooks']
|
|
26
|
+
*/
|
|
27
|
+
hooksDirs?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* Shared modules for Module Federation.
|
|
30
|
+
* 'react', 'react-dom' and 'zustand' are always included.
|
|
31
|
+
* @default []
|
|
32
|
+
*/
|
|
33
|
+
shared?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Whether to enable UnoCSS.
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
unocss?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to generate an eslint auto-import config file.
|
|
41
|
+
* @default false
|
|
42
|
+
*/
|
|
43
|
+
eslintAutoImport?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare function CreopseReactPlugin(options?: CreopseReactPluginOptions): Plugin;
|
package/dist/vite/react.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import x from "@vitejs/plugin-react";
|
|
5
|
-
import { stringify as M, parse as O } from "comment-json";
|
|
1
|
+
import { DASHBOARD_MODULE_NAME as y, SETTINGS_MODULE_NAME as b, sanitizeId as L } from "@creopse/utils/helpers";
|
|
2
|
+
import C from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
|
|
3
|
+
import D from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-basic-ssl@2.3.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-basic-ssl/dist/index.mjs";
|
|
4
|
+
import x from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-react@4.6.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-react/dist/index.mjs";
|
|
5
|
+
import { stringify as M, parse as O } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/comment-json@4.6.2/node_modules/comment-json/src/index.js";
|
|
6
6
|
import j from "fs";
|
|
7
7
|
import s from "path";
|
|
8
|
-
import k from "rollup-plugin-copy";
|
|
9
|
-
import N from "unocss/vite";
|
|
8
|
+
import k from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.module.js";
|
|
9
|
+
import N from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/unocss@66.6.7_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/unocss/dist/vite.mjs";
|
|
10
10
|
import B from "vite-plugin-auto-import-lite";
|
|
11
11
|
import $ from "vite-plugin-i18next-loader";
|
|
12
12
|
import z from "vite-plugin-json5";
|
|
@@ -19,32 +19,32 @@ function Z(A = {}) {
|
|
|
19
19
|
i18nLocalesPath: f,
|
|
20
20
|
hooksDirs: _ = ["src/hooks"],
|
|
21
21
|
shared: E = [],
|
|
22
|
-
unocss:
|
|
23
|
-
eslintAutoImport:
|
|
22
|
+
unocss: w = !1,
|
|
23
|
+
eslintAutoImport: I = !1
|
|
24
24
|
} = A;
|
|
25
25
|
let r, e, u, g, t, v, P, h;
|
|
26
|
-
function
|
|
27
|
-
const
|
|
26
|
+
function S() {
|
|
27
|
+
const a = s.resolve(r, p), m = j.readFileSync(a, "utf-8");
|
|
28
28
|
if (e = O(m || "{}"), t = {}, e.pages && Array.isArray(e.pages))
|
|
29
|
-
for (const
|
|
30
|
-
t[`./${
|
|
29
|
+
for (const l of e.pages)
|
|
30
|
+
t[`./${l.name}`] = l.module;
|
|
31
31
|
const n = e.dashboard;
|
|
32
32
|
n?.module && (t[`./${y}`] = n.module);
|
|
33
33
|
const i = e.settings;
|
|
34
34
|
i?.module && (t[`./${b}`] = i.module);
|
|
35
35
|
const o = e.development;
|
|
36
|
-
u =
|
|
36
|
+
u = L(String(e.id)) || "creopse-plugin", g = e.entry || "remoteEntry.js", v = o?.previewPort || 2160, P = o?.serverPort || 2161, h = o?.ssl || !1;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
name: "creopse-react-plugin",
|
|
40
|
-
config(
|
|
41
|
-
r =
|
|
40
|
+
config(a) {
|
|
41
|
+
r = a.root || process.cwd(), S();
|
|
42
42
|
const m = process.env.APP_IS_PREVIEW === "true", n = f ? s.resolve(r, f) : s.resolve(r, c, "i18n/locales"), i = ["react", "react-dom", "zustand", ...E];
|
|
43
43
|
return {
|
|
44
44
|
envPrefix: "APP_",
|
|
45
45
|
plugins: [
|
|
46
46
|
x(),
|
|
47
|
-
|
|
47
|
+
C({
|
|
48
48
|
name: u,
|
|
49
49
|
filename: g,
|
|
50
50
|
exposes: t,
|
|
@@ -63,7 +63,7 @@ function Z(A = {}) {
|
|
|
63
63
|
dirs: _,
|
|
64
64
|
imports: ["react"],
|
|
65
65
|
vueTemplate: !1,
|
|
66
|
-
...
|
|
66
|
+
...I ? {
|
|
67
67
|
eslintrc: {
|
|
68
68
|
enabled: !0,
|
|
69
69
|
filepath: "./.eslintrc-auto-import.json",
|
|
@@ -71,8 +71,8 @@ function Z(A = {}) {
|
|
|
71
71
|
}
|
|
72
72
|
} : {}
|
|
73
73
|
}),
|
|
74
|
-
...
|
|
75
|
-
...h ? [
|
|
74
|
+
...w ? [N()] : [],
|
|
75
|
+
...h ? [D()] : []
|
|
76
76
|
],
|
|
77
77
|
resolve: {
|
|
78
78
|
alias: [
|
|
@@ -94,7 +94,7 @@ function Z(A = {}) {
|
|
|
94
94
|
src: s.resolve(r, p),
|
|
95
95
|
dest: d,
|
|
96
96
|
transform() {
|
|
97
|
-
return e?.mode && (e.mode = m ? "development" : "production"), ((
|
|
97
|
+
return e?.mode && (e.mode = m ? "development" : "production"), ((l) => l.replace(/(,)\s*\n/g, `,
|
|
98
98
|
|
|
99
99
|
`))(
|
|
100
100
|
M(e, null, 2)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Plugin } from 'vite';
|
|
2
|
+
export interface CreopseVuePluginOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Path to the manifest.jsonc file, relative to the project root.
|
|
5
|
+
* @default './manifest.jsonc'
|
|
6
|
+
*/
|
|
7
|
+
manifestPath?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Source directory, relative to the project root.
|
|
10
|
+
* @default './src'
|
|
11
|
+
*/
|
|
12
|
+
srcDir?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Output directory for the build.
|
|
15
|
+
* @default 'frontend'
|
|
16
|
+
*/
|
|
17
|
+
outDir?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Path to the i18n locales directory, relative to the project root.
|
|
20
|
+
* @default './src/i18n/locales'
|
|
21
|
+
*/
|
|
22
|
+
i18nLocalesPath?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Directories to scan for auto-imports, relative to the project root.
|
|
25
|
+
* @default ['src/composables']
|
|
26
|
+
*/
|
|
27
|
+
composablesDirs?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* Shared modules for Module Federation.
|
|
30
|
+
* The 'vue' and 'pinia' are always included.
|
|
31
|
+
* @default []
|
|
32
|
+
*/
|
|
33
|
+
shared?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Whether to enable UnoCSS.
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
unocss?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare function CreopseVuePlugin(options?: CreopseVuePluginOptions): Plugin;
|
package/dist/vite/vue.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { stringify as x, parse as M } from "comment-json";
|
|
1
|
+
import { DASHBOARD_MODULE_NAME as y, SETTINGS_MODULE_NAME as I, sanitizeId as b } from "@creopse/utils/helpers";
|
|
2
|
+
import L from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
|
|
3
|
+
import C from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-basic-ssl@2.3.0_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/@vitejs/plugin-basic-ssl/dist/index.mjs";
|
|
4
|
+
import D from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/@vitejs+plugin-vue@6.0.5_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0__vue@3.5.32_typescript@5.8.3_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
|
|
5
|
+
import { stringify as x, parse as M } from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/comment-json@4.6.2/node_modules/comment-json/src/index.js";
|
|
6
6
|
import O from "fs";
|
|
7
|
-
import
|
|
8
|
-
import N from "rollup-plugin-copy";
|
|
9
|
-
import j from "unocss/vite";
|
|
7
|
+
import s from "path";
|
|
8
|
+
import N from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/rollup-plugin-copy@3.5.0/node_modules/rollup-plugin-copy/dist/index.module.js";
|
|
9
|
+
import j from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/unocss@66.6.7_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vite@7.0.5_@types+node@24.0.15_jiti@2.6.1_tsx@4.21.0_/node_modules/unocss/dist/vite.mjs";
|
|
10
10
|
import B from "vite-plugin-auto-import-lite";
|
|
11
11
|
import $ from "vite-plugin-i18next-loader";
|
|
12
12
|
import k from "vite-plugin-json5";
|
|
@@ -19,34 +19,34 @@ function Y(h = {}) {
|
|
|
19
19
|
i18nLocalesPath: d,
|
|
20
20
|
composablesDirs: _ = ["src/composables"],
|
|
21
21
|
shared: E = [],
|
|
22
|
-
unocss:
|
|
22
|
+
unocss: w = !1
|
|
23
23
|
} = h;
|
|
24
|
-
let r, e, f, v,
|
|
25
|
-
function
|
|
26
|
-
const a =
|
|
27
|
-
if (e = M(m || "{}"),
|
|
24
|
+
let r, e, f, v, t, g, P, A;
|
|
25
|
+
function S() {
|
|
26
|
+
const a = s.resolve(r, p), m = O.readFileSync(a, "utf-8");
|
|
27
|
+
if (e = M(m || "{}"), t = {}, e.pages && Array.isArray(e.pages))
|
|
28
28
|
for (const l of e.pages)
|
|
29
|
-
|
|
29
|
+
t[`./${l.name}`] = l.module;
|
|
30
30
|
const n = e.dashboard;
|
|
31
|
-
n?.module && (
|
|
31
|
+
n?.module && (t[`./${y}`] = n.module);
|
|
32
32
|
const i = e.settings;
|
|
33
|
-
i?.module && (
|
|
33
|
+
i?.module && (t[`./${I}`] = i.module);
|
|
34
34
|
const o = e.development;
|
|
35
35
|
f = b(String(e.id)) || "creopse-plugin", v = e.entry || "remoteEntry.js", g = o?.previewPort || 2160, P = o?.serverPort || 2161, A = o?.ssl || !1;
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
name: "creopse-vue-plugin",
|
|
39
39
|
config(a) {
|
|
40
|
-
r = a.root || process.cwd(),
|
|
41
|
-
const m = process.env.APP_IS_PREVIEW === "true", n = d ?
|
|
40
|
+
r = a.root || process.cwd(), S();
|
|
41
|
+
const m = process.env.APP_IS_PREVIEW === "true", n = d ? s.resolve(r, d) : s.resolve(r, c, "i18n/locales"), i = ["vue", "pinia", ...E];
|
|
42
42
|
return {
|
|
43
43
|
envPrefix: "APP_",
|
|
44
44
|
plugins: [
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
D(),
|
|
46
|
+
L({
|
|
47
47
|
name: f,
|
|
48
48
|
filename: v,
|
|
49
|
-
exposes:
|
|
49
|
+
exposes: t,
|
|
50
50
|
shared: i
|
|
51
51
|
}),
|
|
52
52
|
T({
|
|
@@ -63,14 +63,14 @@ function Y(h = {}) {
|
|
|
63
63
|
imports: ["vue", "pinia"],
|
|
64
64
|
vueTemplate: !0
|
|
65
65
|
}),
|
|
66
|
-
...
|
|
67
|
-
...A ? [
|
|
66
|
+
...w ? [j()] : [],
|
|
67
|
+
...A ? [C()] : []
|
|
68
68
|
],
|
|
69
69
|
resolve: {
|
|
70
70
|
alias: [
|
|
71
71
|
{
|
|
72
72
|
find: "@",
|
|
73
|
-
replacement:
|
|
73
|
+
replacement: s.resolve(r, c)
|
|
74
74
|
}
|
|
75
75
|
],
|
|
76
76
|
dedupe: ["vue"]
|
|
@@ -83,7 +83,7 @@ function Y(h = {}) {
|
|
|
83
83
|
N({
|
|
84
84
|
targets: [
|
|
85
85
|
{
|
|
86
|
-
src:
|
|
86
|
+
src: s.resolve(r, p),
|
|
87
87
|
dest: u,
|
|
88
88
|
transform() {
|
|
89
89
|
return e?.mode && (e.mode = m ? "development" : "production"), ((l) => l.replace(/(,)\s*\n/g, `,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
load: () => Promise<string>;
|
|
4
|
+
alt?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
|
+
title?: string;
|
|
8
|
+
loading?: 'lazy' | 'eager' | undefined;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLImageElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type Animation = 'fade' | 'slide-fade' | 'bounce';
|
|
2
|
+
type Mode = 'default' | 'in-out' | 'out-in' | undefined;
|
|
3
|
+
interface Props {
|
|
4
|
+
name?: Animation;
|
|
5
|
+
mode?: Mode;
|
|
6
|
+
appear?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
default?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
|
+
mode: "default" | "in-out" | "out-in";
|
|
19
|
+
name: Animation;
|
|
20
|
+
appear: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
|
+
title?: string;
|
|
8
|
+
loading?: 'lazy' | 'eager';
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
size?: 'small' | 'medium' | 'large' | 'original';
|
|
11
|
+
sync?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
|
+
title: string;
|
|
15
|
+
size: "small" | "medium" | "large" | "original";
|
|
16
|
+
style: CSSProperties;
|
|
17
|
+
width: string | number;
|
|
18
|
+
height: string | number;
|
|
19
|
+
alt: string;
|
|
20
|
+
loading: "lazy" | "eager";
|
|
21
|
+
sync: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
to: string;
|
|
3
|
+
}
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
title?: string | null;
|
|
3
|
+
displayTitle?: boolean;
|
|
4
|
+
onBack?: (() => void) | null;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
header?(_: {}): any;
|
|
10
|
+
title?(_: {}): any;
|
|
11
|
+
'header-extra'?(_: {}): any;
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: any;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
|
+
title: string | null;
|
|
20
|
+
displayTitle: boolean;
|
|
21
|
+
onBack: (() => void) | null;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
moreStr?: string;
|
|
3
|
+
lessStr?: string;
|
|
4
|
+
text: string;
|
|
5
|
+
link?: string;
|
|
6
|
+
maxChars?: number;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
|
+
link: string;
|
|
10
|
+
moreStr: string;
|
|
11
|
+
lessStr: string;
|
|
12
|
+
maxChars: number;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
bottom?: number;
|
|
3
|
+
zIndex?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
el: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
|
+
zIndex: number;
|
|
19
|
+
className: string;
|
|
20
|
+
bottom: number;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
+
el: HTMLDivElement;
|
|
23
|
+
}, HTMLDivElement>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
top?: number;
|
|
3
|
+
zIndex?: number;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
el: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
18
|
+
top: number;
|
|
19
|
+
zIndex: number;
|
|
20
|
+
className: string;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
+
el: HTMLDivElement;
|
|
23
|
+
}, HTMLDivElement>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './PageLayout.vue';
|
|
2
|
+
export * from './AsyncImg.vue';
|
|
3
|
+
export * from './Image.vue';
|
|
4
|
+
export * from './StickyTop.vue';
|
|
5
|
+
export * from './StickyBottom.vue';
|
|
6
|
+
export * from './CustomTransition.vue';
|
|
7
|
+
export * from './ReadMore.vue';
|
|
8
|
+
export * from './MountedTeleport.vue';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AccessGuard } from '@creopse/utils/enums';
|
|
2
|
+
import { NTagType } from '@creopse/utils/types';
|
|
3
|
+
export declare const useAccess: () => {
|
|
4
|
+
accessGuards: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: AccessGuard;
|
|
7
|
+
tagType: string;
|
|
8
|
+
}[];
|
|
9
|
+
getAccessGuardLabel: (value: AccessGuard) => string | undefined;
|
|
10
|
+
getAccessGuardTagType: (value: AccessGuard) => NTagType;
|
|
11
|
+
getRoleName: (roles: {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
}[], id: number) => string;
|
|
15
|
+
isPermissionNative: (name: string) => boolean;
|
|
16
|
+
userIsSuperAdmin: (roles: {
|
|
17
|
+
name: string;
|
|
18
|
+
}[]) => boolean;
|
|
19
|
+
userCan: (permissions: {
|
|
20
|
+
name: string;
|
|
21
|
+
}[], permissionName: string) => boolean;
|
|
22
|
+
userIs: (roles: {
|
|
23
|
+
name: string;
|
|
24
|
+
}[], roleName: string) => boolean;
|
|
25
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useCoreBridge: () => {
|
|
2
|
+
locale: string | undefined;
|
|
3
|
+
env: Readonly<import('@creopse/utils').EnvData> | undefined;
|
|
4
|
+
appConfig: Readonly<import('@creopse/utils').AppConfig> | undefined;
|
|
5
|
+
api: import('@creopse/utils').Api;
|
|
6
|
+
i18n: import('@creopse/utils').BridgeI18n;
|
|
7
|
+
router: import('@creopse/utils').BridgeRouter;
|
|
8
|
+
helpers: import('@creopse/utils').BridgeHelpers;
|
|
9
|
+
auth: import('@creopse/utils').BridgeStore<import('@creopse/utils').BridgeAuthState>;
|
|
10
|
+
server: import('@creopse/utils').BridgeStore<import('@creopse/utils').BridgeServerState>;
|
|
11
|
+
ui: import('@creopse/utils').BridgeStore<import('@creopse/utils').UserInterfaceState>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const useResponsive: () => {
|
|
2
|
+
is2XlScreen: import('vue').Ref<boolean, boolean>;
|
|
3
|
+
isXlScreen: import('vue').Ref<boolean, boolean>;
|
|
4
|
+
isLgScreen: import('vue').Ref<boolean, boolean>;
|
|
5
|
+
isMdScreen: import('vue').Ref<boolean, boolean>;
|
|
6
|
+
isSmScreen: import('vue').Ref<boolean, boolean>;
|
|
7
|
+
fromSm: import('vue').Ref<boolean, boolean>;
|
|
8
|
+
fromMd: import('vue').Ref<boolean, boolean>;
|
|
9
|
+
fromLg: import('vue').Ref<boolean, boolean>;
|
|
10
|
+
fromXl: import('vue').Ref<boolean, boolean>;
|
|
11
|
+
from2Xl: import('vue').Ref<boolean, boolean>;
|
|
12
|
+
isMobile: import('vue').ComputedRef<boolean>;
|
|
13
|
+
isTablet: import('vue').ComputedRef<boolean>;
|
|
14
|
+
isDesktop: import('vue').ComputedRef<boolean>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Bool, UserPrefs } from '@creopse/utils';
|
|
2
|
+
export declare const useUserPreference: () => {
|
|
3
|
+
defaultPrefs: import('vue').Ref<{
|
|
4
|
+
inAppNotifEnabled?: Bool | undefined;
|
|
5
|
+
emailNotifEnabled?: Bool | undefined;
|
|
6
|
+
locale?: string | undefined;
|
|
7
|
+
}, UserPrefs | {
|
|
8
|
+
inAppNotifEnabled?: Bool | undefined;
|
|
9
|
+
emailNotifEnabled?: Bool | undefined;
|
|
10
|
+
locale?: string | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
import "@iconify/vue";
|
|
3
|
+
import "naive-ui";
|
|
4
|
+
import { useResponsive as i } from "./composables/responsive.js";
|
|
5
|
+
import "./components/PageLayout.vue.js";
|
|
6
|
+
import { useCoreBridge as u } from "./composables/core-bridge.js";
|
|
7
|
+
import "./components/CustomTransition.vue.js";
|
|
8
|
+
import { useAccess as c } from "./composables/access.js";
|
|
9
|
+
import { useUserPreference as d } from "./composables/user-preference.js";
|
|
10
|
+
export {
|
|
11
|
+
c as useAccess,
|
|
12
|
+
u as useCoreBridge,
|
|
13
|
+
i as useResponsive,
|
|
14
|
+
d as useUserPreference
|
|
15
|
+
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@creopse/bridge",
|
|
3
3
|
"description": "Creopse Bridge Toolkit",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.11",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Noé Gnanih <noegnanih@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"type": "module",
|
|
9
|
-
"main": "dist/index.js",
|
|
10
9
|
"exports": {
|
|
11
10
|
"./vite": {
|
|
12
11
|
"types": "./dist/vite/index.d.ts",
|
|
@@ -27,13 +26,8 @@
|
|
|
27
26
|
"./react": {
|
|
28
27
|
"types": "./dist/react/index.d.ts",
|
|
29
28
|
"import": "./dist/react/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./shared": {
|
|
32
|
-
"types": "./dist/shared/index.d.ts",
|
|
33
|
-
"import": "./dist/shared/index.js"
|
|
34
29
|
}
|
|
35
30
|
},
|
|
36
|
-
"types": "dist/index.d.ts",
|
|
37
31
|
"files": [
|
|
38
32
|
"dist",
|
|
39
33
|
"README.md"
|
|
@@ -48,7 +42,6 @@
|
|
|
48
42
|
"react-dom": "^19.2.4",
|
|
49
43
|
"vue": "^3.5.27",
|
|
50
44
|
"vue-i18n": "^11.3.0",
|
|
51
|
-
"vue-router": "^4.0.0",
|
|
52
45
|
"zustand": "^5.0.12"
|
|
53
46
|
},
|
|
54
47
|
"peerDependenciesMeta": {
|
|
@@ -70,9 +63,6 @@
|
|
|
70
63
|
"vue-i18n": {
|
|
71
64
|
"optional": true
|
|
72
65
|
},
|
|
73
|
-
"vue-router": {
|
|
74
|
-
"optional": true
|
|
75
|
-
},
|
|
76
66
|
"pinia": {
|
|
77
67
|
"optional": true
|
|
78
68
|
},
|
|
@@ -103,8 +93,9 @@
|
|
|
103
93
|
"typescript": "~5.8.3",
|
|
104
94
|
"unocss": "^66.6.7",
|
|
105
95
|
"vite": "^7.0.5",
|
|
106
|
-
"vite-plugin-i18next-loader": "^3.1.3",
|
|
107
96
|
"vite-plugin-auto-import-lite": "^0.0.2",
|
|
97
|
+
"vite-plugin-dts": "^4.5.4",
|
|
98
|
+
"vite-plugin-i18next-loader": "^3.1.3",
|
|
108
99
|
"vite-plugin-json5": "^1.2.0",
|
|
109
100
|
"vite-plugin-top-level-await": "^1.6.0"
|
|
110
101
|
},
|
package/dist/index-C8b1StIO.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js";
|
|
2
|
-
import "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/browser-image-compression@2.0.2/node_modules/browser-image-compression/dist/browser-image-compression.mjs";
|
|
3
|
-
import r from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js";
|
|
4
|
-
import "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/locale/fr.js";
|
|
5
|
-
import e from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/customParseFormat.js";
|
|
6
|
-
import a from "/Users/arkane/Dev/Projects/Web/creopse.proj/creopse.toolkit/node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/relativeTime.js";
|
|
7
|
-
r.extend(e);
|
|
8
|
-
r.extend(a);
|
|
9
|
-
function D(t) {
|
|
10
|
-
return t.replace(/[^a-z0-9\/-]/g, "").replace(/\//g, "-");
|
|
11
|
-
}
|
|
12
|
-
var d = "PluginDashboard", g = "PluginSettings";
|
|
13
|
-
export {
|
|
14
|
-
d as D,
|
|
15
|
-
g as S,
|
|
16
|
-
D as s
|
|
17
|
-
};
|
package/dist/react/bridge.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { PageHeader as r, PageLayout as t } from "./bridge2.js";
|
|
2
|
-
import { default as f } from "./bridge3.js";
|
|
3
|
-
import { default as m } from "./bridge4.js";
|
|
4
|
-
import { default as u } from "./bridge5.js";
|
|
5
|
-
import { default as d } from "./bridge6.js";
|
|
6
|
-
import { default as c } from "./bridge7.js";
|
|
7
|
-
import { default as n } from "./bridge8.js";
|
|
8
|
-
import { default as y } from "./bridge9.js";
|
|
9
|
-
import { useAccess as T } from "./bridge10.js";
|
|
10
|
-
import { useResponsive as A } from "./bridge11.js";
|
|
11
|
-
import { useCoreBridge as C } from "./bridge12.js";
|
|
12
|
-
import { useUserPreference as M } from "./bridge13.js";
|
|
13
|
-
export {
|
|
14
|
-
f as AsyncImg,
|
|
15
|
-
c as CustomTransition,
|
|
16
|
-
m as Image,
|
|
17
|
-
y as MountedTeleport,
|
|
18
|
-
r as PageHeader,
|
|
19
|
-
t as PageLayout,
|
|
20
|
-
n as ReadMore,
|
|
21
|
-
d as StickyBottom,
|
|
22
|
-
u as StickyTop,
|
|
23
|
-
T as useAccess,
|
|
24
|
-
C as useCoreBridge,
|
|
25
|
-
A as useResponsive,
|
|
26
|
-
M as useUserPreference
|
|
27
|
-
};
|
package/dist/react/bridge4.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import p from "./bridge3.js";
|
|
4
|
-
import { useCoreBridge as d } from "./bridge12.js";
|
|
5
|
-
const x = (o) => {
|
|
6
|
-
const { src: t, alt: i = "", width: s, height: m, title: l, loading: n, style: a, size: g = "original", sync: c = !1 } = o, {
|
|
7
|
-
helpers: { getImage: f }
|
|
8
|
-
} = d(), e = {
|
|
9
|
-
alt: i,
|
|
10
|
-
width: s,
|
|
11
|
-
height: m,
|
|
12
|
-
title: l,
|
|
13
|
-
loading: n,
|
|
14
|
-
style: a
|
|
15
|
-
};
|
|
16
|
-
return c ? /* @__PURE__ */ r("img", { src: t, ...e }) : /* @__PURE__ */ r(p, { load: () => f(t, g), ...e });
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
x as default
|
|
20
|
-
};
|
package/dist/vue/bridge.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import "vue";
|
|
2
|
-
import "@iconify/vue";
|
|
3
|
-
import "naive-ui";
|
|
4
|
-
import { useResponsive as i } from "./bridge2.js";
|
|
5
|
-
import "./bridge3.js";
|
|
6
|
-
import { useCoreBridge as u } from "./bridge4.js";
|
|
7
|
-
import "./bridge5.js";
|
|
8
|
-
import { useAccess as c } from "./bridge6.js";
|
|
9
|
-
import { useUserPreference as d } from "./bridge7.js";
|
|
10
|
-
export {
|
|
11
|
-
c as useAccess,
|
|
12
|
-
u as useCoreBridge,
|
|
13
|
-
i as useResponsive,
|
|
14
|
-
d as useUserPreference
|
|
15
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|