@tuya-sat/micro-dev-loader 0.0.1-beta.1 → 0.0.2
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.
- package/.swcrc +11 -0
- package/README.md +11 -1
- package/dist/index.js +32 -19
- package/dist/manifestDom.js +7 -10
- package/dist/plugins/layoutMock/index.js +150 -38
- package/dist/plugins/layoutMock/layout-static/index.html +173 -180
- package/dist/transform.js +111 -111
- package/dist/utils/parseManifest.js +14 -10
- package/package.json +15 -5
- package/dist/index.d.ts +0 -4
- package/dist/manifestDom.d.ts +0 -2
- package/dist/plugins/layoutMock/index.d.ts +0 -4
- package/dist/plugins/layoutMock/layout-static/2.c7981cdc.chunk.css +0 -10
- package/dist/plugins/layoutMock/layout-static/main.efdba179.chunk.css +0 -2
- package/dist/transform.d.ts +0 -23
- package/dist/utils/parseManifest.d.ts +0 -22
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
body{min-width:1200px;margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}.ant-pro-menu-item{height:30px!important}.ant-pro-global-header-logo a h1{color:#000;font-weight:700;font-size:14px}.ant-menu-inline-collapsed .ant-pro-menu-item-title{opacity:0}.avatar_1n2pb{width:18px;height:18px}.wrap_35HnY{min-width:150px;border-radius:4px;background-color:#fff;box-shadow:0 3px 6px -4px rgba(0,0,0,.12),0 6px 16px 0 rgba(0,0,0,.08),0 9px 28px 8px rgba(0,0,0,.05)}.item_38ZLF{padding:15px 20px}.text_3vABT{opacity:.65;font-size:14px}.divider_15CGo{border-top:1px solid #eee}.dropdown-content_1C593{cursor:pointer;margin-right:25px;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.ant-layout-header{height:56px!important;line-height:56px!important}.ant-layout-sider{padding-top:56px!important}ant-layout-content{width:100%;height:100%}.ant-layout{height:100vh}.ant-layout-content{margin:0}.ant-pro-global-header,.ant-pro-sider-ligh,.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed{box-shadow:none}.ant-pro-basicLayout .ant-layout-header.ant-pro-fixed-header{position:fixed;top:0;border-bottom:1px solid #eee}.ant-pro-sider .ant-layout-sider-children{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;height:100%;border-right:1px solid #eee}.textWrapper_3Fnu1{margin-left:10px;color:#1890ff;cursor:pointer}.background_1coCq{padding:20px 20px 20px 24px;background-color:#fff;border-radius:4px}.page-container_11GSY{display:-webkit-flex;display:flex;-webkit-justify-content:center;justify-content:center;-webkit-align-items:"center";align-items:"center";height:100%}.page-container_11GSY .page-content_1swC7{width:896px;padding:16px 24px;margin-top:32px;margin-bottom:32px;background-color:#fff}.page-container_11GSY .page-content_1swC7 .title_SBJGg{margin-top:16px;margin-left:24px;margin-bottom:32px}.page-container_11GSY .page-content_1swC7 .ant-form-item{margin-bottom:0}.page-container_11GSY .page-content_1swC7 .ant-form-item-label{width:85px}.container_2DnD7 .ant-input-affix-wrapper{height:40px}.selectOptionsWrap_3OoPV{width:328px!important}.back2login_11ugF{font-weight:600;font-size:21px;color:#333435}.back2login_11ugF:hover{color:#0199ff}.login-form_22xNZ{position:relative}.login-form_22xNZ .ant-form-item-control-input-content{text-align:right}.login-form_22xNZ .forgot_3mbqx{position:absolute;right:-20px;top:253px}.fpwd-form_2Igxz .back-img_1cbpV{width:32px;height:32px;background-color:#faebd7}.container_1gnrV{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;width:1440px;height:100vh;min-height:760px;margin:0 auto}.container_1gnrV .left_3miTk{width:880px;height:760px;background-image:url(/static/media/login.8be9abf1.jpg);background-repeat:no-repeat;background-position:50%;background-size:cover}.container_1gnrV .login_23pej{position:relative;width:416px}.container_1gnrV .top-container_2Zmxl{position:absolute;top:20px;right:40px}.container_1gnrV .ant-select-selection-search{left:auto!important}.container_1gnrV .ant-select-selection-search-input{width:auto!important;text-align:right}@media screen and (min-width:1440px){.login_23pej{margin-right:160px}}
|
|
2
|
-
/*# sourceMappingURL=main.efdba179.chunk.css.map */
|
package/dist/transform.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ParseResult } from "@babel/core";
|
|
2
|
-
import { Privilege } from "./utils/parseManifest";
|
|
3
|
-
export declare type MICRO_FRAMEWORKS_TYPE = "REACT_TS" | "REACT_JS" | "VUE_TS" | "VUE_JS";
|
|
4
|
-
interface ChangeAstProps {
|
|
5
|
-
privileges: Privilege[];
|
|
6
|
-
authedCode: string[];
|
|
7
|
-
}
|
|
8
|
-
interface CodeMakerProps {
|
|
9
|
-
sourceCode: string;
|
|
10
|
-
microFramework: MICRO_FRAMEWORKS_TYPE;
|
|
11
|
-
}
|
|
12
|
-
export default class CodeMaker {
|
|
13
|
-
private ast;
|
|
14
|
-
private microFramework;
|
|
15
|
-
constructor({ sourceCode, microFramework }: CodeMakerProps);
|
|
16
|
-
parse(code: string): ParseResult;
|
|
17
|
-
changeAst(props: ChangeAstProps): void;
|
|
18
|
-
gtAst(): string;
|
|
19
|
-
vueReRenderTemp(): string;
|
|
20
|
-
reactReRenderTemp(): string;
|
|
21
|
-
getTemp(props: ChangeAstProps): string;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface Privilege {
|
|
2
|
-
name: string;
|
|
3
|
-
code: string;
|
|
4
|
-
}
|
|
5
|
-
interface Manifest {
|
|
6
|
-
name: string;
|
|
7
|
-
defaultMenuIcon: {
|
|
8
|
-
type: "URL";
|
|
9
|
-
url: string;
|
|
10
|
-
};
|
|
11
|
-
entries: {
|
|
12
|
-
type: string;
|
|
13
|
-
code: string;
|
|
14
|
-
appIcon: Object;
|
|
15
|
-
name: string;
|
|
16
|
-
path: [];
|
|
17
|
-
ratio: [];
|
|
18
|
-
}[];
|
|
19
|
-
privileges: Privilege[];
|
|
20
|
-
}
|
|
21
|
-
export default function parseManifest(): Manifest;
|
|
22
|
-
export {};
|