@gonsin/gview 2.0.56 → 2.0.57

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.
@@ -1,7 +1,7 @@
1
1
  import type { Pinia } from "pinia";
2
2
  import type { App } from "vue";
3
+ import { useI18n } from "gonsin-i18n";
3
4
  import http from "./http";
4
- import i18n, { useI18n } from "./i18n";
5
5
  declare function install(Vue: App, userConfig?: any): void;
6
6
  declare function setupStore(pinia: Pinia): void;
7
7
  export * from "./components";
@@ -12,6 +12,7 @@ export * from "./utils";
12
12
  export * from "./views";
13
13
  export * from "./types/common";
14
14
  export * from "./types/view";
15
+ declare const i18n: import("vue-i18n").I18n<{}, {}, {}, string, false>;
15
16
  export { http, i18n, useI18n, setupStore };
16
17
  declare const _default: {
17
18
  install: typeof install;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonsin/gview",
3
- "version": "2.0.56",
3
+ "version": "2.0.57",
4
4
  "main": "dist/index.mjs",
5
5
  "typings": "dist/types/index.d.ts",
6
6
  "files": [
@@ -20,7 +20,8 @@
20
20
  "lint:style": "stylelint --cache --fix \"**/*.{html,vue,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
21
21
  "lint": "npm run lint:eslint && npm run lint:style",
22
22
  "format": "prettier --write develop/ && prettier --write packages/",
23
- "build:springboot": "cd develop && vite build --outDir ../../server/gview_logic/src/main/resources/gview --mode springboot --emptyOutDir"
23
+ "build:springboot": "cd develop && vite build --outDir ../../server/gview_logic/src/main/resources/gview --mode springboot --emptyOutDir",
24
+ "publish-npm": "npm publish && cnpm sync @gonsin/gview"
24
25
  },
25
26
  "dependencies": {
26
27
  "@gonsin/glicense": "^1.0.2",
@@ -28,6 +29,7 @@
28
29
  "@wangeditor/editor-for-vue": "^5.1.12",
29
30
  "axios": "^1.3.4",
30
31
  "dayjs": "^1.11.7",
32
+ "gonsin-i18n": "^0.2.2",
31
33
  "he": "^1.2.0",
32
34
  "lodash-es": "^4.17.21",
33
35
  "mustache": "^4.2.0",
@@ -1,31 +0,0 @@
1
- export declare const config: {
2
- IP: string;
3
- PORT: string;
4
- PROJECT: string;
5
- KEY: string;
6
- };
7
- /**
8
- * @description: 加载语言
9
- * @param {string} lang
10
- */
11
- export declare function loadLanguageAsync(lang: string): Promise<void>;
12
- /**
13
- * @description: 获取当前IP的locale
14
- */
15
- export declare function initLocale(): Promise<void>;
16
- export declare const useI18n: () => {
17
- /**
18
- * @description: 传入语言配置 PROJECT/KEY
19
- * @param {string} key
20
- * @param {any} value
21
- */
22
- setConfig(key: string, value: any): void;
23
- /**
24
- * @description: 初始化i18n
25
- * @param {string} lang
26
- */
27
- setupI18n(lang?: string): Promise<void>;
28
- t(text: string): string;
29
- };
30
- declare const i18n: import("vue-i18n").I18n<{}, {}, {}, string, false>;
31
- export default i18n;
@@ -1,5 +0,0 @@
1
- /**
2
- * @description: 通过地区Code加载Locale
3
- * @param {string} code 地区缩写代码
4
- */
5
- export declare function getLocaleByCode(code: string): any;