@clownlee/cores 1.0.2 → 1.0.3

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 (32) hide show
  1. package/dist/{cores/src/apis → apis}/app-user.d.ts +1 -1
  2. package/dist/{cores/src/apis → apis}/auth.d.ts +1 -1
  3. package/dist/{cores/src/apis → apis}/client.d.ts +1 -1
  4. package/dist/{cores/src/apis → apis}/menu.d.ts +1 -1
  5. package/dist/{cores/src/apis → apis}/role-permission.d.ts +1 -1
  6. package/dist/{cores/src/apis → apis}/role.d.ts +1 -1
  7. package/dist/{cores/src/apis → apis}/user-center.d.ts +1 -1
  8. package/dist/{cores/src/index.d.ts → index.d.ts} +2 -2
  9. package/dist/index.js +5 -2
  10. package/package.json +2 -2
  11. /package/dist/{cores/src/apis → apis}/index.d.ts +0 -0
  12. /package/dist/{cores/src/ui → ui}/breadcrumb/breadcrumb.vue.d.ts +0 -0
  13. /package/dist/{cores/src/ui → ui}/breadcrumb/index.d.ts +0 -0
  14. /package/dist/{cores/src/ui → ui}/crop-image/index.d.ts +0 -0
  15. /package/dist/{cores/src/ui → ui}/crop-image/index.vue.d.ts +0 -0
  16. /package/dist/{cores/src/ui → ui}/iconfont/components/icon-item.vue.d.ts +0 -0
  17. /package/dist/{cores/src/ui → ui}/iconfont/components/icons-select.vue.d.ts +0 -0
  18. /package/dist/{cores/src/ui → ui}/iconfont/icon-data.d.ts +0 -0
  19. /package/dist/{cores/src/ui → ui}/iconfont/index.d.ts +0 -0
  20. /package/dist/{cores/src/ui → ui}/page-container/index.d.ts +0 -0
  21. /package/dist/{cores/src/ui → ui}/page-container/index.vue.d.ts +0 -0
  22. /package/dist/{cores/src/ui → ui}/permission-btn/index.d.ts +0 -0
  23. /package/dist/{cores/src/ui → ui}/permission-btn/permission-button.vue.d.ts +0 -0
  24. /package/dist/{cores/src/ui → ui}/permission-btn/permission.vue.d.ts +0 -0
  25. /package/dist/{cores/src/ui → ui}/permission-btn/types.d.ts +0 -0
  26. /package/dist/{cores/src/ui → ui}/permission-btn/use-permission.d.ts +0 -0
  27. /package/dist/{cores/src/ui → ui}/permission-btn/utils.d.ts +0 -0
  28. /package/dist/{cores/src/ui → ui}/permission-table/index.d.ts +0 -0
  29. /package/dist/{cores/src/ui → ui}/permission-table/permission-pagination.vue.d.ts +0 -0
  30. /package/dist/{cores/src/ui → ui}/permission-table/permission-table.vue.d.ts +0 -0
  31. /package/dist/{cores/src/utils → utils}/date.d.ts +0 -0
  32. /package/dist/{cores/src/utils → utils}/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { RequestInitConfig, HttpInstance } from '../../../http/src';
1
+ import { RequestInitConfig, HttpInstance } from '@clownlee/http';
2
2
 
3
3
  export default class Apis {
4
4
  protected http: HttpInstance;
@@ -1,4 +1,4 @@
1
- import { RequestInitConfig, HttpInstance } from '../../../http/src';
1
+ import { RequestInitConfig, HttpInstance } from '@clownlee/http';
2
2
 
3
3
  export default class Apis {
4
4
  protected http: HttpInstance;
@@ -1,4 +1,4 @@
1
- import { RequestInitConfig, HttpInstance } from '../../../http/src';
1
+ import { RequestInitConfig, HttpInstance } from '@clownlee/http';
2
2
 
3
3
  export default class Apis {
4
4
  protected http: HttpInstance;
@@ -1,4 +1,4 @@
1
- import { RequestInitConfig, HttpInstance } from '../../../http/src';
1
+ import { RequestInitConfig, HttpInstance } from '@clownlee/http';
2
2
 
3
3
  export default class Apis {
4
4
  protected http: HttpInstance;
@@ -1,4 +1,4 @@
1
- import { RequestInitConfig, HttpInstance } from '../../../http/src';
1
+ import { RequestInitConfig, HttpInstance } from '@clownlee/http';
2
2
 
3
3
  export default class Apis {
4
4
  protected http: HttpInstance;
@@ -1,4 +1,4 @@
1
- import { RequestInitConfig, HttpInstance } from '../../../http/src';
1
+ import { RequestInitConfig, HttpInstance } from '@clownlee/http';
2
2
 
3
3
  export default class Apis {
4
4
  protected http: HttpInstance;
@@ -1,4 +1,4 @@
1
- import { RequestInitConfig, HttpInstance } from '../../../http/src';
1
+ import { RequestInitConfig, HttpInstance } from '@clownlee/http';
2
2
 
3
3
  export default class Apis {
4
4
  protected http: HttpInstance;
@@ -1,7 +1,7 @@
1
- import { default as init } from '../../http/src';
1
+ import { default as init } from '@clownlee/http';
2
2
 
3
3
  export declare const initHttp: typeof init;
4
- export type { RequestInitConfig, RefreshConfig, HttpRequestConfig, HttpResponse, HttpInstance, TokenResponse, } from '../../http/src';
4
+ export type { RequestInitConfig, RefreshConfig, HttpRequestConfig, HttpResponse, HttpInstance, TokenResponse, } from '@clownlee/http';
5
5
  export * from './apis';
6
6
  export * from './ui/permission-btn';
7
7
  export * from './ui/permission-table';
package/dist/index.js CHANGED
@@ -6,6 +6,9 @@ import axios from "axios";
6
6
  import { inject, computed, defineComponent, watch, createElementBlock, openBlock, renderSlot, Fragment, createCommentVNode, unref, createBlock, withCtx, createVNode, mergeProps, ref, createElementVNode, toDisplayString, getCurrentInstance, getCurrentScope, onScopeDispose, shallowRef, watchEffect, readonly, onMounted, isRef, warn, Teleport as Teleport$1, toRef, onUnmounted, nextTick, useAttrs as useAttrs$1, useSlots, normalizeStyle, normalizeClass, resolveDynamicComponent, withModifiers, provide, onBeforeUnmount, withDirectives, cloneVNode, Comment, Text, onBeforeMount, Transition, vShow, onDeactivated, reactive, vModelRadio, createTextVNode, toRefs, renderList } from "vue";
7
7
  import { ElButton, ElTable, ElPagination, ClickOutside, ElDialog, ElUpload } from "element-plus";
8
8
  import { CircleClose, CircleCheck, Loading, View, Hide, ArrowRight, ArrowDown, Search, RefreshLeft, RefreshRight } from "@element-plus/icons-vue";
9
+ var __defProp2 = Object.defineProperty;
10
+ var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
9
12
  function getAccessTokenFromStore(store) {
10
13
  const state = store.$state;
11
14
  if (state && typeof state.accessToken === "string") {
@@ -210,8 +213,8 @@ async function handleResponseError(error) {
210
213
  }
211
214
  class RequestServiceClass {
212
215
  constructor() {
213
- __publicField(this, "instance", null);
214
- __publicField(this, "config", null);
216
+ __publicField2(this, "instance", null);
217
+ __publicField2(this, "config", null);
215
218
  }
216
219
  /**
217
220
  * 初始化 HTTP 实例
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clownlee/cores",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "公共核心库,提供统一的 HTTP 请求能力和自动 token 刷新功能",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "author": "",
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
- "@clownlee/http": "workspace:*",
31
+ "@clownlee/http": "^1.0.2",
32
32
  "pinia": "^2.1.7",
33
33
  "vue": "^3.5.25",
34
34
  "cropper": "^4.1.0",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes