-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: init yunti-ui-lowcode-materials
- Loading branch information
1 parent
d604a37
commit ff4af90
Showing
20 changed files
with
3,224 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
registry=http://dev-npm.tenxcloud.net/ | ||
strict-peer-dependencies=false | ||
always-auth=true | ||
auto-install-peers=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# 总览 | ||
|
||
- [react-markdown](./react-markdown-lowcode-materials) | ||
- [yunti-ui](./yunti-ui-lowcode-materials) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { defineConfig } from 'father'; | ||
import { join } from 'path'; | ||
import { IS_DEV } from '../../constants'; | ||
|
||
const library = 'YuntiUiLowcode'; | ||
|
||
const externals = { | ||
react: 'var window.React', | ||
lodash: 'var window._', | ||
}; | ||
|
||
const output = IS_DEV | ||
? join(__dirname, '../../public/yunti-ui-lowcode-materials/dist/umd') | ||
: undefined; | ||
|
||
export default defineConfig({ | ||
extends: '../../.fatherrc.base.ts', | ||
umd: { | ||
entry: { | ||
'src/index.tsx': { | ||
name: library, | ||
sourcemap: true, | ||
externals, | ||
output, | ||
}, | ||
'lowcode/meta.ts': { | ||
name: 'YuntiUiLowcodeMeta', | ||
sourcemap: true, | ||
externals, | ||
output, | ||
}, | ||
'lowcode/view.tsx': { | ||
name: library, | ||
sourcemap: true, | ||
externals, | ||
output, | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# yunti-ui-lowcode-materials | ||
|
||
Low-code Materials for yunti-ui | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"version": "1.1.0", | ||
"packages": [ | ||
{ | ||
"id": "dayjs", | ||
"urls": ["http://172.22.96.37/[email protected]/dayjs.min.js"], | ||
"library": "dayjs", | ||
"package": "dayjs", | ||
"version": "1.11.6", | ||
"editUrls": ["http://172.22.96.37/[email protected]/dayjs.min.js"] | ||
}, | ||
{ | ||
"id": "antd", | ||
"meta": {}, | ||
"urls": [ | ||
"https://jsd.onmicrosoft.cn/npm/[email protected]/dist/antd.min.js", | ||
"https://jsd.onmicrosoft.cn/npm/[email protected]/dist/reset.min.css" | ||
], | ||
"library": "antd", | ||
"package": "antd", | ||
"version": "5.9.4", | ||
"editUrls": null | ||
}, | ||
{ | ||
"id": "@ant-design/icons", | ||
"urls": ["//g.alicdn.com/code/npm/@ali/ant-design-icons-cdn/4.5.0/index.umd.min.js"], | ||
"library": "icons", | ||
"package": "@ant-design/icons", | ||
"version": "4.7.0" | ||
}, | ||
{ | ||
"id": "@alifd/next", | ||
"urls": [ | ||
"https://g.alicdn.com/legao-comp/web_bundle_0724/@alife/theme-254/1.29.5/@alifd/next/1.24.18/theme.7c897c2.css", | ||
"https://g.alicdn.com/legao-comp/web_bundle_0724/@alifd/next/1.24.18/main.059bccd.js" | ||
], | ||
"library": "Next", | ||
"package": "@alifd/next", | ||
"version": "1.24.18" | ||
}, | ||
{ | ||
"id": "moment", | ||
"urls": ["https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"], | ||
"library": "moment", | ||
"package": "moment", | ||
"version": "2.24.0" | ||
}, | ||
{ | ||
"id": "lodash", | ||
"meta": null, | ||
"urls": ["https://jsd.onmicrosoft.cn/npm/[email protected]/lodash.min.js"], | ||
"library": "_", | ||
"package": "lodash", | ||
"version": "4.17.21", | ||
"editUrls": null | ||
}, | ||
{ | ||
"id": "@tenx-ui/auth-utils", | ||
"meta": {}, | ||
"urls": ["http://172.22.96.37/@tenx-ui/[email protected]/dist/umd/auth-utils.min.js"], | ||
"library": "authUtils", | ||
"package": "@tenx-ui/auth-utils", | ||
"version": "0.0.2", | ||
"editUrls": null | ||
}, | ||
{ | ||
"id": "@yunti/yunti-ui-lowcode-materials", | ||
"meta": {}, | ||
"urls": ["/lowcode-materials-public/yunti-ui-lowcode-materials/dist/umd/index.min.js"], | ||
"library": "YuntiUiLowcode", | ||
"package": "@yunti/yunti-ui-lowcode-materials", | ||
"version": "0.1.0", | ||
"editUrls": ["/lowcode-materials-public/yunti-ui-lowcode-materials/dist/umd/view.min.js"] | ||
} | ||
], | ||
"components": [ | ||
{ | ||
"url": "/lowcode-materials-public/yunti-ui-lowcode-materials/dist/umd/meta.min.js", | ||
"version": "0.1.0", | ||
"reference": { | ||
"id": "@yunti/yunti-ui-lowcode-materials", | ||
"version": "0.1.0" | ||
}, | ||
"exportName": "YuntiUiLowcodeMeta" | ||
} | ||
], | ||
"sort": { | ||
"groupList": ["容器/布局", "组件", "表单", "图表组件", "图标", "低码组件"], | ||
"categoryList": [ | ||
"基础组件", | ||
"输入组件", | ||
"布局组件", | ||
"容器组件", | ||
"数据组件", | ||
"其他", | ||
"formily 表单容器", | ||
"formily 表单组件", | ||
"业务组件" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* iframe: true | ||
* compact: true | ||
*/ | ||
import { Designer } from '@yunti/shared'; | ||
import React from 'react'; | ||
import assets from './assets.json'; | ||
|
||
const DesignerDemo = () => ( | ||
<Designer scenarioName="yunti-ui" displayName="yunti-ui" assets={assets} /> | ||
); | ||
|
||
export default DesignerDemo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: yunti-ui | ||
order: 0 | ||
--- | ||
|
||
<code src="./demo/index.tsx"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import pkgJson from '../package.json'; | ||
import tree from './tree/meta'; | ||
|
||
const components = [tree].map(c => { | ||
if (c.npm) { | ||
c.npm.version = pkgJson.version; | ||
} | ||
return c; | ||
}); | ||
|
||
// 注意不要使用 default 导出 | ||
export { components }; |
Oops, something went wrong.