@cloud-app-dev/vidc 1.0.9 → 1.0.13
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.
|
@@ -208,15 +208,17 @@ function AppHorizontalMenu(_ref) {
|
|
|
208
208
|
type: "icon-S_Arrow_SmallRight"
|
|
209
209
|
}))), /*#__PURE__*/React.createElement(QueueAnim, {
|
|
210
210
|
type: "top"
|
|
211
|
-
}, state.isFunc
|
|
211
|
+
}, state.isFunc ? /*#__PURE__*/React.createElement(FunctionPreview, {
|
|
212
212
|
className: "app-horizontal-funcs",
|
|
213
213
|
currentMenuKeys: app.currentMenuKeys,
|
|
214
214
|
onMenuSelect: onMenuSelect,
|
|
215
215
|
key: "all",
|
|
216
216
|
menuList: auth.userMenuList
|
|
217
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, {
|
|
218
|
+
key: "allempty"
|
|
217
219
|
})), /*#__PURE__*/React.createElement(QueueAnim, {
|
|
218
220
|
type: "alpha"
|
|
219
|
-
}, state.isFunc
|
|
221
|
+
}, state.isFunc ? /*#__PURE__*/React.createElement("div", {
|
|
220
222
|
key: "mask",
|
|
221
223
|
className: "fun-preview-mask",
|
|
222
224
|
onClick: function onClick() {
|
|
@@ -226,6 +228,8 @@ function AppHorizontalMenu(_ref) {
|
|
|
226
228
|
});
|
|
227
229
|
});
|
|
228
230
|
}
|
|
231
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, {
|
|
232
|
+
key: "maskempty"
|
|
229
233
|
})));
|
|
230
234
|
}
|
|
231
235
|
|
|
@@ -169,23 +169,29 @@ function AppInlineMenu(_ref) {
|
|
|
169
169
|
}), !state.collapsed ? /*#__PURE__*/React.createElement("span", null, v.name) : null)));
|
|
170
170
|
}))), /*#__PURE__*/React.createElement(QueueAnim, {
|
|
171
171
|
type: "left"
|
|
172
|
-
}, state.subMenuKey && state.subMenuKey !== 'all'
|
|
172
|
+
}, state.subMenuKey && state.subMenuKey !== 'all' ? /*#__PURE__*/React.createElement(SubGroup, {
|
|
173
173
|
currentMenuKeys: app.currentMenuKeys,
|
|
174
174
|
onMenuSelect: onMenuSelect,
|
|
175
175
|
style: popStyle,
|
|
176
176
|
key: state.subMenuKey,
|
|
177
177
|
menuList: state.subMenus
|
|
178
|
-
})
|
|
178
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, {
|
|
179
|
+
key: "menuempty"
|
|
180
|
+
}), state.subMenuKey && state.subMenuKey === 'all' ? /*#__PURE__*/React.createElement(FunctionPreview, {
|
|
179
181
|
currentMenuKeys: app.currentMenuKeys,
|
|
180
182
|
style: popStyle,
|
|
181
183
|
onMenuSelect: onMenuSelect,
|
|
182
184
|
key: "all",
|
|
183
185
|
menuList: auth.userMenuList
|
|
186
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, {
|
|
187
|
+
key: "allempty"
|
|
184
188
|
})), /*#__PURE__*/React.createElement(QueueAnim, {
|
|
185
189
|
type: "alpha"
|
|
186
|
-
}, state.subMenuKey && state.subMenuKey === 'all'
|
|
190
|
+
}, state.subMenuKey && state.subMenuKey === 'all' ? /*#__PURE__*/React.createElement("div", {
|
|
187
191
|
key: "mask",
|
|
188
192
|
className: "fun-preview-mask"
|
|
193
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, {
|
|
194
|
+
key: "maskempty"
|
|
189
195
|
})));
|
|
190
196
|
}
|
|
191
197
|
|
package/es/AppLayout/index.css
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
.
|
|
2
|
-
width:
|
|
3
|
-
height:
|
|
4
|
-
|
|
1
|
+
.app-style-container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
5
|
}
|
|
6
|
-
.
|
|
7
|
-
width:
|
|
8
|
-
height:
|
|
9
|
-
overflow: hidden;
|
|
6
|
+
.app-style-container .app-layout-container {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
10
9
|
}
|
|
11
|
-
.
|
|
12
|
-
|
|
10
|
+
.app-style-container .app-inline-layout {
|
|
11
|
+
padding-left: 72px;
|
|
13
12
|
}
|
|
14
|
-
.
|
|
15
|
-
height:
|
|
13
|
+
.app-style-container .app-layout-header {
|
|
14
|
+
min-height: var(--nav-height);
|
|
15
|
+
height: max-content;
|
|
16
16
|
padding: 0;
|
|
17
|
-
line-height:
|
|
17
|
+
line-height: var(--nav-height);
|
|
18
|
+
color: var(--app-header-color);
|
|
19
|
+
background-color: var(--app-header-bg);
|
|
20
|
+
width: 100%;
|
|
18
21
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import _Store from "@cloud-app-dev/basic-components/es/Store";
|
|
2
|
+
import _useHistory from "@cloud-app-dev/basic-components/es/useHistory";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
function AutoExit(_ref) {
|
|
6
|
+
var children = _ref.children;
|
|
7
|
+
|
|
8
|
+
var history = _useHistory();
|
|
9
|
+
|
|
10
|
+
if (!_Store.app.isLogin) {
|
|
11
|
+
history.replace('/login');
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default AutoExit;
|
package/es/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as AppLayout } from './AppLayout';
|
|
2
|
+
export { default as AutoExit } from './AutoExit';
|
|
2
3
|
export { default as DagInitialConfig } from './DagInitialConfig';
|
|
3
4
|
export { default as DagInitialRequest } from './DagInitialRequest';
|
|
4
5
|
export { default as DeviceIcon } from './DeviceIcon';
|
package/es/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as AppLayout } from './AppLayout';
|
|
2
|
+
export { default as AutoExit } from './AutoExit';
|
|
2
3
|
export { default as DagInitialConfig } from './DagInitialConfig';
|
|
3
4
|
export { default as DagInitialRequest } from './DagInitialRequest';
|
|
4
5
|
export { default as DeviceIcon } from './DeviceIcon';
|