@cloud-app-dev/vidc 2.1.0-alpha.4 → 2.1.0-alpha.7

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,3 +1,8 @@
1
- import { RouterProps } from 'react-router-dom';
2
- declare function AppRouter({ basename, children, ...props }: RouterProps): JSX.Element;
1
+ import React from 'react';
2
+ interface AppRouterProps {
3
+ basename?: string;
4
+ children?: React.ReactNode;
5
+ static?: boolean;
6
+ }
7
+ declare function AppRouter({ children, ...props }: AppRouterProps): JSX.Element;
3
8
  export default AppRouter;
@@ -4,12 +4,10 @@ import { Router, Routes } from 'react-router-dom';
4
4
  import InstanceHistory from '../InstanceHistory';
5
5
 
6
6
  function AppRouter(_a) {
7
- var basename = _a.basename,
8
- children = _a.children,
9
- props = __rest(_a, ["basename", "children"]);
7
+ var children = _a.children,
8
+ props = __rest(_a, ["children"]);
10
9
 
11
10
  return /*#__PURE__*/React.createElement(Router, Object.assign({}, props, {
12
- basename: basename,
13
11
  navigator: InstanceHistory,
14
12
  navigationType: InstanceHistory.action,
15
13
  location: InstanceHistory.location
@@ -42,7 +42,7 @@ export function initialization() {
42
42
  centerUrl = "/api/user/operationCenter/v1/operationCenters/".concat(systemId);
43
43
  userPrivilegesUrl = "/api/user/role/v1/queryUserRoles/".concat(userId);
44
44
  systemFeatureUrl = "/api/micro-app-service/feature/v1/system/list/".concat(systemId);
45
- themeConfigUrl = '/api/micro-app-service/config/v1/type/default';
45
+ themeConfigUrl = '/api/micro-app-service/config/v1/default';
46
46
  _context.next = 13;
47
47
  return Promise.all([Service.http({
48
48
  url: centerUrl,
@@ -69,7 +69,7 @@ export function initialization() {
69
69
  url: themeConfigUrl,
70
70
  headers: headers,
71
71
  data: {
72
- type: 'theme',
72
+ type: 2,
73
73
  systemId: systemId
74
74
  },
75
75
  method: 'post'
@@ -99,7 +99,7 @@ export function initialization() {
99
99
  userFeatures: featureIds,
100
100
  systemFeatures: systemFeatures.data,
101
101
  operationInfo: centerInfo.data,
102
- themeConfig: ((_a = themeInfo === null || themeInfo === void 0 ? void 0 : themeInfo.data) === null || _a === void 0 ? void 0 : _a.content) || {}
102
+ themeConfig: ((_a = themeInfo === null || themeInfo === void 0 ? void 0 : themeInfo.data) === null || _a === void 0 ? void 0 : _a.info) || {}
103
103
  });
104
104
 
105
105
  case 24:
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "2.1.0-alpha.4",
5
+ "version": "2.1.0-alpha.7",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",