@okiss/oms 0.0.1

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.
Files changed (84) hide show
  1. package/README.md +3 -0
  2. package/dist/index.es.js +6156 -0
  3. package/dist/index.es.js.map +1 -0
  4. package/dist/style.css +1 -0
  5. package/dist/types/auto-imports.d.ts +53 -0
  6. package/dist/types/components.d.ts +50 -0
  7. package/dist/types/src/App.vue.d.ts +125 -0
  8. package/dist/types/src/admin.d.ts +8 -0
  9. package/dist/types/src/components/PageLoad.vue.d.ts +14 -0
  10. package/dist/types/src/components/VIcon.d.ts +13 -0
  11. package/dist/types/src/components/VTree.vue.d.ts +100 -0
  12. package/dist/types/src/components/chart/index.vue.d.ts +17 -0
  13. package/dist/types/src/components/report/NumberPanel.vue.d.ts +9 -0
  14. package/dist/types/src/components/report/option.d.ts +1 -0
  15. package/dist/types/src/components/report/part.vue.d.ts +168 -0
  16. package/dist/types/src/default.d.ts +4 -0
  17. package/dist/types/src/directive/devtool.d.ts +3 -0
  18. package/dist/types/src/directive/index.d.ts +4 -0
  19. package/dist/types/src/directive/outClick.d.ts +3 -0
  20. package/dist/types/src/directive/resize.d.ts +3 -0
  21. package/dist/types/src/directive/rightClick.d.ts +3 -0
  22. package/dist/types/src/index.d.ts +13 -0
  23. package/dist/types/src/init.d.ts +3 -0
  24. package/dist/types/src/mock/apis/index.d.ts +3 -0
  25. package/dist/types/src/mock/apis/user.d.ts +3 -0
  26. package/dist/types/src/mock/data/example.d.ts +897 -0
  27. package/dist/types/src/mock/data/menu.d.ts +104 -0
  28. package/dist/types/src/mock/data/role.d.ts +68 -0
  29. package/dist/types/src/mock/index.d.ts +3 -0
  30. package/dist/types/src/mock/types.d.ts +21 -0
  31. package/dist/types/src/plugins/element-plus.d.ts +6 -0
  32. package/dist/types/src/plugins/eventBus.d.ts +6 -0
  33. package/dist/types/src/router/guard/func.d.ts +3 -0
  34. package/dist/types/src/router/guard/index.d.ts +2 -0
  35. package/dist/types/src/router/guard/nprogress.d.ts +2 -0
  36. package/dist/types/src/router/guard/permission.d.ts +2 -0
  37. package/dist/types/src/router/guard/remote-routes.d.ts +2 -0
  38. package/dist/types/src/router/guard/set-page-title.d.ts +2 -0
  39. package/dist/types/src/router/index.d.ts +2 -0
  40. package/dist/types/src/router/remote.d.ts +3 -0
  41. package/dist/types/src/router/router.d.ts +3 -0
  42. package/dist/types/src/router/vue-router.d.ts +16 -0
  43. package/dist/types/src/scaffold/404.vue.d.ts +4 -0
  44. package/dist/types/src/scaffold/container.vue.d.ts +17 -0
  45. package/dist/types/src/scaffold/dashboard.vue.d.ts +3 -0
  46. package/dist/types/src/scaffold/devtool/formBuilder/index.vue.d.ts +280 -0
  47. package/dist/types/src/scaffold/devtool/tableBuilder/index.vue.d.ts +1115 -0
  48. package/dist/types/src/scaffold/form.vue.d.ts +59 -0
  49. package/dist/types/src/scaffold/index.d.ts +5 -0
  50. package/dist/types/src/scaffold/layout/components/AppMain.vue.d.ts +24 -0
  51. package/dist/types/src/scaffold/layout/components/Breadcrumb/index.vue.d.ts +25 -0
  52. package/dist/types/src/scaffold/layout/components/Hamburger/index.vue.d.ts +16 -0
  53. package/dist/types/src/scaffold/layout/components/Navbar.vue.d.ts +49 -0
  54. package/dist/types/src/scaffold/layout/components/PageEditor.vue.d.ts +23 -0
  55. package/dist/types/src/scaffold/layout/components/Sidebar/FixiOSBug.d.ts +10 -0
  56. package/dist/types/src/scaffold/layout/components/Sidebar/Link.vue.d.ts +21 -0
  57. package/dist/types/src/scaffold/layout/components/Sidebar/Logo.vue.d.ts +16 -0
  58. package/dist/types/src/scaffold/layout/components/Sidebar/MenuContent.vue.d.ts +21 -0
  59. package/dist/types/src/scaffold/layout/components/Sidebar/SidebarItem.vue.d.ts +41 -0
  60. package/dist/types/src/scaffold/layout/components/Sidebar/index.vue.d.ts +3 -0
  61. package/dist/types/src/scaffold/layout/components/index.d.ts +3 -0
  62. package/dist/types/src/scaffold/layout/index.vue.d.ts +1965 -0
  63. package/dist/types/src/scaffold/login.vue.d.ts +17 -0
  64. package/dist/types/src/scaffold/report.vue.d.ts +485 -0
  65. package/dist/types/src/scaffold/table.vue.d.ts +54 -0
  66. package/dist/types/src/scaffold/tree.vue.d.ts +234 -0
  67. package/dist/types/src/shims-vue.d.ts +22 -0
  68. package/dist/types/src/store/index.d.ts +6 -0
  69. package/dist/types/src/store/modules/app.d.ts +5 -0
  70. package/dist/types/src/store/modules/builderSchema.d.ts +9 -0
  71. package/dist/types/src/store/modules/settings.d.ts +5 -0
  72. package/dist/types/src/store/modules/user.d.ts +5 -0
  73. package/dist/types/src/store/types.d.ts +42 -0
  74. package/dist/types/src/types.d.ts +105 -0
  75. package/dist/types/src/utils/container/index.d.ts +3 -0
  76. package/dist/types/src/utils/env.d.ts +3 -0
  77. package/dist/types/src/utils/index.d.ts +1 -0
  78. package/dist/types/src/utils/request/cache.d.ts +5 -0
  79. package/dist/types/src/utils/request/index.d.ts +8 -0
  80. package/dist/types/src/utils/request/interceptors.d.ts +3 -0
  81. package/dist/types/src/utils/request/types.d.ts +14 -0
  82. package/dist/types/src/utils/sso/index.d.ts +35 -0
  83. package/dist/types/src/utils/token.d.ts +3 -0
  84. package/package.json +80 -0
@@ -0,0 +1,234 @@
1
+ import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComponentPropsOptions, ComponentObjectPropsOptions } from 'vue';
2
+ export default _sfc_main;
3
+ declare namespace _sfc_main {
4
+ function setup(__props: any, { expose }: {
5
+ expose: any;
6
+ }): {
7
+ schemaHandler: (schema: any, project: any) => any;
8
+ VTree: DefineComponent<{
9
+ treeApi: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ require: boolean;
13
+ };
14
+ getApi: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ require: boolean;
18
+ };
19
+ saveApi: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ require: boolean;
23
+ };
24
+ createApi: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ require: boolean;
28
+ };
29
+ deleteApi: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ require: boolean;
33
+ };
34
+ formItems: {
35
+ type: ArrayConstructor;
36
+ default: () => never[];
37
+ };
38
+ }, any, {
39
+ type: number;
40
+ treeData: never[];
41
+ formData: {};
42
+ treeProps: {
43
+ showCheckbox: boolean;
44
+ 'default-expand-all': boolean;
45
+ 'expand-on-click-node': boolean;
46
+ props: {
47
+ children: string;
48
+ label: string;
49
+ };
50
+ };
51
+ formkey: number;
52
+ menuOptions: {};
53
+ }, {
54
+ formProps(): {
55
+ saveApi: string;
56
+ getApi: string;
57
+ formItems: unknown[];
58
+ };
59
+ }, {
60
+ loadTree(): void;
61
+ onclick(data: any): void;
62
+ append(data: any): void;
63
+ remove(data: any): void;
64
+ submit(): void;
65
+ allowDrap(draggingNode: any): true;
66
+ allowDrop(draggingNode: any, dropNode: any, type: any): boolean;
67
+ handleDragEnd(draggingNode: any, dropNode: any, dropType: any, ev: any): void;
68
+ }, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
69
+ treeApi: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ require: boolean;
73
+ };
74
+ getApi: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ require: boolean;
78
+ };
79
+ saveApi: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ require: boolean;
83
+ };
84
+ createApi: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ require: boolean;
88
+ };
89
+ deleteApi: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ require: boolean;
93
+ };
94
+ formItems: {
95
+ type: ArrayConstructor;
96
+ default: () => never[];
97
+ };
98
+ }>>, {
99
+ treeApi: string;
100
+ getApi: string;
101
+ saveApi: string;
102
+ createApi: string;
103
+ deleteApi: string;
104
+ formItems: unknown[];
105
+ }>;
106
+ PageLoad: DefineComponent<Readonly<ComponentPropsOptions<{
107
+ [x: string]: unknown;
108
+ }>>, unknown, {
109
+ loading: boolean;
110
+ haveNotice: boolean;
111
+ notice: {};
112
+ schema: {};
113
+ }, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
114
+ [x: string]: unknown;
115
+ }>>>>, {
116
+ [x: number]: string;
117
+ } | {}>;
118
+ };
119
+ function setup(__props: any, { expose }: {
120
+ expose: any;
121
+ }): {
122
+ schemaHandler: (schema: any, project: any) => any;
123
+ VTree: DefineComponent<{
124
+ treeApi: {
125
+ type: StringConstructor;
126
+ default: string;
127
+ require: boolean;
128
+ };
129
+ getApi: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ require: boolean;
133
+ };
134
+ saveApi: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ require: boolean;
138
+ };
139
+ createApi: {
140
+ type: StringConstructor;
141
+ default: string;
142
+ require: boolean;
143
+ };
144
+ deleteApi: {
145
+ type: StringConstructor;
146
+ default: string;
147
+ require: boolean;
148
+ };
149
+ formItems: {
150
+ type: ArrayConstructor;
151
+ default: () => never[];
152
+ };
153
+ }, any, {
154
+ type: number;
155
+ treeData: never[];
156
+ formData: {};
157
+ treeProps: {
158
+ showCheckbox: boolean;
159
+ 'default-expand-all': boolean;
160
+ 'expand-on-click-node': boolean;
161
+ props: {
162
+ children: string;
163
+ label: string;
164
+ };
165
+ };
166
+ formkey: number;
167
+ menuOptions: {};
168
+ }, {
169
+ formProps(): {
170
+ saveApi: string;
171
+ getApi: string;
172
+ formItems: unknown[];
173
+ };
174
+ }, {
175
+ loadTree(): void;
176
+ onclick(data: any): void;
177
+ append(data: any): void;
178
+ remove(data: any): void;
179
+ submit(): void;
180
+ allowDrap(draggingNode: any): true;
181
+ allowDrop(draggingNode: any, dropNode: any, type: any): boolean;
182
+ handleDragEnd(draggingNode: any, dropNode: any, dropType: any, ev: any): void;
183
+ }, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
184
+ treeApi: {
185
+ type: StringConstructor;
186
+ default: string;
187
+ require: boolean;
188
+ };
189
+ getApi: {
190
+ type: StringConstructor;
191
+ default: string;
192
+ require: boolean;
193
+ };
194
+ saveApi: {
195
+ type: StringConstructor;
196
+ default: string;
197
+ require: boolean;
198
+ };
199
+ createApi: {
200
+ type: StringConstructor;
201
+ default: string;
202
+ require: boolean;
203
+ };
204
+ deleteApi: {
205
+ type: StringConstructor;
206
+ default: string;
207
+ require: boolean;
208
+ };
209
+ formItems: {
210
+ type: ArrayConstructor;
211
+ default: () => never[];
212
+ };
213
+ }>>, {
214
+ treeApi: string;
215
+ getApi: string;
216
+ saveApi: string;
217
+ createApi: string;
218
+ deleteApi: string;
219
+ formItems: unknown[];
220
+ }>;
221
+ PageLoad: DefineComponent<Readonly<ComponentPropsOptions<{
222
+ [x: string]: unknown;
223
+ }>>, unknown, {
224
+ loading: boolean;
225
+ haveNotice: boolean;
226
+ notice: {};
227
+ schema: {};
228
+ }, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, readonly string[] | Readonly<ExtractPropTypes<Readonly<ComponentObjectPropsOptions<{
229
+ [x: string]: unknown;
230
+ }>>>>, {
231
+ [x: number]: string;
232
+ } | {}>;
233
+ };
234
+ }
@@ -0,0 +1,22 @@
1
+ import { AxiosInstance } from 'axios'
2
+ import { Message } from 'element-plus'
3
+
4
+ declare module '*.vue' {
5
+ import { ComponentOptions } from 'vue'
6
+ const componentOptions: ComponentOptions
7
+ export default componentOptions
8
+ }
9
+
10
+ declare global {
11
+ interface Window {
12
+ App: any;
13
+ }
14
+ }
15
+
16
+ declare module '@vue/runtime-core' {
17
+ interface ComponentCustomProperties {
18
+ $http: AxiosInstance
19
+ $message: Message
20
+ formData: Record<string, any>
21
+ }
22
+ }
@@ -0,0 +1,6 @@
1
+ import type { Store } from 'vuex';
2
+ import type { App } from 'vue';
3
+ import { RootState } from './types';
4
+ declare const store: Store<RootState>;
5
+ export declare function setupStore(app: App<Element>): void;
6
+ export default store;
@@ -0,0 +1,5 @@
1
+ import { Module } from 'vuex';
2
+ import { App } from '../types';
3
+ export declare const app: App;
4
+ declare const _module: Module<App, any>;
5
+ export default _module;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * BuilderSchema
3
+ * 存储pageEditor 编辑模式下时子组件联动相关的状态数据
4
+ */
5
+ import { Module } from 'vuex';
6
+ import { BuilderSchema } from '../types';
7
+ export declare const builderSchema: BuilderSchema;
8
+ declare const builderSchemaModule: Module<BuilderSchema, any>;
9
+ export default builderSchemaModule;
@@ -0,0 +1,5 @@
1
+ import { Module } from 'vuex';
2
+ import { Settings } from '../../types';
3
+ export declare const settings: Settings;
4
+ declare const settingsModule: Module<Settings, any>;
5
+ export default settingsModule;
@@ -0,0 +1,5 @@
1
+ import { Module } from 'vuex';
2
+ import { User } from '../types';
3
+ export declare const user: User;
4
+ declare const userModule: Module<User, any>;
5
+ export default userModule;
@@ -0,0 +1,42 @@
1
+ import { AxiosInstance } from 'axios';
2
+ import { RemoteModule, Resource, Settings } from '../types';
3
+ import { RouteRecordRaw } from 'vue-router';
4
+ export declare type strOrNum = string | number;
5
+ export interface User {
6
+ name: string;
7
+ nickname: string;
8
+ token: string;
9
+ avatar: string;
10
+ isLodeRemoteRoutes: boolean;
11
+ remoteRouter: RemoteModule[];
12
+ customRouter: RouteRecordRaw[];
13
+ menuRoutes: RouteRecordRaw[];
14
+ roleIds: strOrNum[];
15
+ resource: Resource;
16
+ path: string;
17
+ }
18
+ export interface RootState {
19
+ http: AxiosInstance;
20
+ user: User;
21
+ settings: Settings;
22
+ app: App;
23
+ builderSchema: BuilderSchema;
24
+ }
25
+ export interface Sidebar {
26
+ opened: boolean;
27
+ withoutAnimation: boolean;
28
+ }
29
+ export interface App {
30
+ pages: Record<string, any>;
31
+ sidebar: Sidebar;
32
+ device: string;
33
+ currentRouteMeta: Record<string, any>;
34
+ builderSchema: Record<string, any>;
35
+ }
36
+ export interface PageSchema {
37
+ page: string;
38
+ json: Record<string, any>;
39
+ }
40
+ export interface BuilderSchema {
41
+ currentCellItem: Record<string, any>;
42
+ }
@@ -0,0 +1,105 @@
1
+ import { AxiosRequestConfig } from './utils/request';
2
+ import type { RouteRecordRaw } from 'vue-router';
3
+ import { Component, Directive, Plugin } from '@vue/runtime-core';
4
+ import { Module } from 'vuex';
5
+ import { MockApi } from './mock/types';
6
+ import { Sso } from './utils/sso';
7
+ export interface Nav {
8
+ }
9
+ export declare type newSso = (params: Record<string, any>) => Sso;
10
+ export interface Settings {
11
+ title?: string;
12
+ fixedHeader?: boolean;
13
+ sidebarLogo?: boolean;
14
+ logo?: string;
15
+ closeNavNotice?: boolean;
16
+ navBarNotice?: string;
17
+ hasNewMessage?: boolean;
18
+ showPageJsonSchema?: boolean;
19
+ loginTips?: string;
20
+ sso?: Record<string, newSso>;
21
+ activeSsoKey?: string;
22
+ ElementPlus?: Object;
23
+ nav?: Nav[];
24
+ whiteRoutes?: Array<string | RegExp>;
25
+ tokenExpire?: number;
26
+ defaultAvatar?: string;
27
+ }
28
+ export declare type UsePlugin = Plugin | [Plugin, any];
29
+ export interface OmsPlugin {
30
+ use?: UsePlugin[];
31
+ components?: Record<string, Component>;
32
+ directives?: Record<string, Directive>;
33
+ mockApis?: MockApi[];
34
+ routes?: RouteRecordRaw[];
35
+ storeModules?: Record<string, Module<any, any>>;
36
+ }
37
+ export interface OmsOptions {
38
+ axios?: AxiosRequestConfig;
39
+ settings?: Settings;
40
+ plugins?: OmsPlugin[];
41
+ mock?: boolean;
42
+ }
43
+ export interface LoginForm {
44
+ username: string;
45
+ password: string;
46
+ }
47
+ export interface LoginTicket {
48
+ ticket: string;
49
+ }
50
+ export declare type ResourceIds = Array<Array<string>>;
51
+ export interface UserInfo {
52
+ id: number;
53
+ name: string;
54
+ token: string;
55
+ avatar: string;
56
+ nickname: string;
57
+ role_ids: Array<string>;
58
+ resource: ResourceIds;
59
+ }
60
+ export declare type Resource = Record<string, boolean | Record<string, boolean>>;
61
+ export declare enum PageType {
62
+ custom = 0,
63
+ list = 1,
64
+ form = 2,
65
+ customSchema = 3,
66
+ localComp = 4,
67
+ tree = 5,
68
+ report = 6,
69
+ entity = 7
70
+ }
71
+ export declare enum MenuType {
72
+ hidden = 0,
73
+ dir = 1,
74
+ menu = 2,
75
+ page = 3
76
+ }
77
+ export interface PageInfo {
78
+ module_id: number;
79
+ module_name?: string;
80
+ id: number;
81
+ pid: number;
82
+ name: string;
83
+ path: string;
84
+ icon?: string;
85
+ view?: string;
86
+ is_show: number;
87
+ type: number;
88
+ page_type: PageType;
89
+ children?: PageInfo[];
90
+ code: string;
91
+ }
92
+ export interface RemoteModule {
93
+ id: number;
94
+ label: string;
95
+ routes: PageInfo[];
96
+ }
97
+ export interface OmsModule {
98
+ id: number;
99
+ label: string;
100
+ routes: RouteRecordRaw[];
101
+ }
102
+ export interface ImportMetaEnv {
103
+ VITE_BASE_API?: string;
104
+ VITE_BASE?: string;
105
+ }
@@ -0,0 +1,3 @@
1
+ import type { ComputedOptions, MethodOptions, Component } from '@vue/runtime-core';
2
+ export declare function setCmp(name: string, cmp: Component): void;
3
+ export declare function getCmp(name: string): Component<any, any, any, ComputedOptions, MethodOptions>;
@@ -0,0 +1,3 @@
1
+ export declare function isDevMode(): boolean;
2
+ export declare function isProdMode(): boolean;
3
+ export declare function apiPrefix(): string;
@@ -0,0 +1 @@
1
+ export * from './env';
@@ -0,0 +1,5 @@
1
+ import { InterceptorUse } from './types';
2
+ import { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
3
+ export declare const cacheAdapter: (config: AxiosRequestConfig, instance: AxiosInstance) => Promise<any>;
4
+ export declare const cancelRequestInterceptor: InterceptorUse<AxiosRequestConfig, AxiosError>;
5
+ export declare const cancelResponseInterceptor: InterceptorUse<AxiosResponse, AxiosError>;
@@ -0,0 +1,8 @@
1
+
2
+ declare module 'axios' {
3
+ // eslint-disable-next-line no-unused-vars
4
+ export interface AxiosRequestConfig {
5
+ cacheTime?: number
6
+ }
7
+ }
8
+
@@ -0,0 +1,3 @@
1
+ import { Interceptor } from './types';
2
+ export declare const interceptors: Interceptor[];
3
+ export declare function addInterceptor(newInterceptor: Interceptor): void;
@@ -0,0 +1,14 @@
1
+ import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
2
+ export interface InterceptorUse<V, T> {
3
+ onFulfilled?: (value: V) => V | Promise<V>;
4
+ onRejected?: (error: T) => Promise<V>;
5
+ }
6
+ export interface Interceptor {
7
+ request: InterceptorUse<AxiosRequestConfig, AxiosError>;
8
+ response: InterceptorUse<AxiosResponse, AxiosError>;
9
+ }
10
+ export interface ApiResponse<R> {
11
+ code: number;
12
+ message?: string;
13
+ data?: R;
14
+ }
@@ -0,0 +1,35 @@
1
+ import { NavigationGuardNext } from 'vue-router';
2
+ import { newSso } from '../../types';
3
+ export declare type SsoType = 'jump' | 'qrcode';
4
+ export interface Sso {
5
+ flag(): string | undefined;
6
+ type: SsoType;
7
+ jumpToLoginPage(next: NavigationGuardNext, path: string): void;
8
+ showQrCode(): void;
9
+ qrCodeUrl?: string;
10
+ appid?: string;
11
+ style?: string;
12
+ redirectUri?: string;
13
+ elId?: string;
14
+ }
15
+ export declare class BaseSso implements Sso {
16
+ type: SsoType;
17
+ flag(): string | undefined;
18
+ jumpToLoginPage(next: NavigationGuardNext, path: string): void;
19
+ showQrCode(): void;
20
+ }
21
+ export declare class DingTalk extends BaseSso {
22
+ type: SsoType;
23
+ qrCodeUrl: string;
24
+ reloadUrl: string;
25
+ elId: string;
26
+ appid: string;
27
+ iframe: HTMLIFrameElement;
28
+ redirectUri: string;
29
+ style: string;
30
+ constructor(options: Record<string, any>);
31
+ flag(): string | undefined;
32
+ showQrCode(): void;
33
+ }
34
+ export declare function allSso(): Record<string, newSso>;
35
+ export default function (options: Record<string, any>): Sso | undefined;
@@ -0,0 +1,3 @@
1
+ export declare function getToken(): string;
2
+ export declare function setToken(token: string): string | undefined;
3
+ export declare function removeToken(): void;
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@okiss/oms",
3
+ "version": "0.0.1",
4
+ "scripts": {
5
+ "dev": "vite --config build/dev.config.ts",
6
+ "build": "cross-env DEBUG=vite-plugin-dts:bundle vite build --config build/lib.config.ts",
7
+ "export": "cross-env DEBUG=vite-plugin-dts:bundle EXPORT=true vite build --config build/lib.config.ts",
8
+ "eslint": "eslint --fix --ext .tsx --ext .ts src/"
9
+ },
10
+ "homepage": "https://github.com/daodao97/fastadmin",
11
+ "dependencies": {
12
+ "@element-plus/icons-vue": "^1.1.4",
13
+ "@okiss/jsonview": "^0.0.1",
14
+ "@okiss/lib": "^0.0.2",
15
+ "@okiss/utils": "^0.0.1",
16
+ "@vueuse/core": "^8.4.2",
17
+ "axios": "^0.27.2",
18
+ "dayjs": "^1.11.2",
19
+ "echarts": "^5.3.2",
20
+ "element-plus": "^2.1.11",
21
+ "js-cookie": "^3.0.1",
22
+ "lodash": "^4.17.21",
23
+ "mitt": "^3.0.0",
24
+ "mockjs": "^1.1.0",
25
+ "normalize.css": "^8.0.1",
26
+ "nprogress": "^0.2.0",
27
+ "path-to-regexp": "^6.2.1",
28
+ "qs": "^6.10.3",
29
+ "vue": "^3.2.33",
30
+ "vue-router": "^4.0.15",
31
+ "vue3-markdown-it": "^1.0.10",
32
+ "vuex": "^4.0.2"
33
+ },
34
+ "devDependencies": {
35
+ "@babel/eslint-parser": "^7.17.0",
36
+ "@rollup/plugin-typescript": "^8.3.2",
37
+ "@types/file-saver": "^2.0.5",
38
+ "@types/inputmask": "^5.0.3",
39
+ "@types/js-cookie": "^3.0.2",
40
+ "@types/lodash": "^4.14.182",
41
+ "@types/mockjs": "^1.0.6",
42
+ "@types/node": "^17.0.31",
43
+ "@types/nprogress": "^0.2.0",
44
+ "@types/sortablejs": "^1.10.7",
45
+ "@typescript-eslint/eslint-plugin": "^5.22.0",
46
+ "@typescript-eslint/parser": "^5.22.0",
47
+ "@vitejs/plugin-vue": "^2.3.2",
48
+ "@vitejs/plugin-vue-jsx": "^1.3.10",
49
+ "@vue/compiler-sfc": "^3.2.33",
50
+ "cross-env": "^7.0.3",
51
+ "eslint": "^8.15.0",
52
+ "eslint-plugin-vue": "^8.7.1",
53
+ "release-it": "^15.0.0",
54
+ "rollup-plugin-cdn": "^0.1.2",
55
+ "rollup-plugin-copy": "^3.4.0",
56
+ "rollup-plugin-typescript2": "^0.31.2",
57
+ "sass": "^1.51.0",
58
+ "typescript": "^4.6.4",
59
+ "unplugin-auto-import": "^0.7.1",
60
+ "unplugin-vue-components": "^0.19.3",
61
+ "vite": "^2.9.8",
62
+ "vite-plugin-dts": "^1.1.1",
63
+ "vite-plugin-monaco-editor-nls": "^1.0.8"
64
+ },
65
+ "files": [
66
+ "dist/*"
67
+ ],
68
+ "main": "./dist/fastadmin.umd.js",
69
+ "module": "./dist/fastadmin.es.js",
70
+ "style": "./dist/style.css",
71
+ "exports": {
72
+ "./style.css": "./dist/style.css",
73
+ ".": {
74
+ "import": "./dist/fastadmin.es.js",
75
+ "require": "./dist/fastadmin.umd.js"
76
+ }
77
+ },
78
+ "types": "dist/types/*.d.ts",
79
+ "license": "MIT"
80
+ }