Skip to content

Commit

Permalink
feat: sync upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 13, 2024
1 parent af10540 commit 8851998
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 36 deletions.
16 changes: 8 additions & 8 deletions .umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ export default defineConfig({
antd: 'antd',
},
headScripts: [
'https://cdn.jsdelivr.net/npm/[email protected]/umd/react.development.js',
'https://cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.development.js',
'https://cdn.jsdelivr.net/npm/[email protected]/umd/react-is.production.min.js',
'https://cdn.jsdelivr.net/npm/moment/min/moment-with-locales.js',
'https://cdn.jsdelivr.net/npm/[email protected]/dist/styled-components.js',
'https://cdn.jsdelivr.net/npm/[email protected]/dist/antd-with-locales.min.js',
'https://cdn.jsdelivr.net/npm/[email protected]/standalone.js',
'https://cdn.jsdelivr.net/npm/[email protected]/parser-babel.js',
'https://unpkg.com/[email protected]/umd/react.development.js',
'https://unpkg.com/[email protected]/umd/react-dom.development.js',
'https://unpkg.com/[email protected]/umd/react-is.production.min.js',
'https://unpkg.com/moment/min/moment-with-locales.js',
'https://unpkg.com/[email protected]/dist/styled-components.js',
'https://unpkg.com/[email protected]/dist/antd-with-locales.min.js',
'https://unpkg.com/[email protected]/standalone.js',
'https://unpkg.com/[email protected]/parser-babel.js',
],
https: {
key: path.resolve(__dirname, 'local.netease.com-key.pem'),
Expand Down
53 changes: 25 additions & 28 deletions src/helpers/mock-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const packageJson = {
name: 'demo',
private: true,
dependencies: {
'@music163/antd': '0.1.6',
'@music163/tango-boot': '0.1.3',
'@music163/antd': '0.2.1',
'@music163/tango-boot': '0.2.5',
react: '17.0.2',
'react-dom': '17.0.2',
'prop-types': '15.7.2',
Expand All @@ -12,64 +12,60 @@ const packageJson = {
};

const tangoConfigJson = {
designerConfig: {
autoGenerateComponentId: true,
},
packages: {
react: {
version: '17.0.2',
library: 'React',
type: 'dependency',
resources: ['https://cdn.jsdelivr.net/npm/react@{{version}}/umd/react.development.js'],
resources: ['https://unpkg.com/react@{{version}}/umd/react.development.js'],
},
'react-dom': {
version: '17.0.2',
library: 'ReactDOM',
type: 'dependency',
resources: [
'https://cdn.jsdelivr.net/npm/react-dom@{{version}}/umd/react-dom.development.js',
],
resources: ['https://unpkg.com/react-dom@{{version}}/umd/react-dom.development.js'],
},
'react-is': {
version: '16.13.1',
library: 'ReactIs',
type: 'dependency',
resources: [
'https://cdn.jsdelivr.net/npm/react-is@{{version}}/umd/react-is.production.min.js',
],
resources: ['https://unpkg.com/react-is@{{version}}/umd/react-is.production.min.js'],
},
'styled-components': {
version: '5.3.5',
library: 'styled',
type: 'dependency',
resources: [
'https://cdn.jsdelivr.net/npm/styled-components@{{version}}/dist/styled-components.min.js',
],
resources: ['https://unpkg.com/styled-components@{{version}}/dist/styled-components.min.js'],
},
moment: {
version: '2.29.4',
library: 'moment',
type: 'dependency',
resources: ['https://cdn.jsdelivr.net/npm/moment@{{version}}/moment.js'],
resources: ['https://unpkg.com/moment@{{version}}/moment.js'],
},
'@music163/tango-boot': {
version: '0.2.1',
description: '云音乐低代码运行时框架',
version: '0.2.5',
library: 'TangoBoot',
type: 'baseDependency',
resources: ['https://cdn.jsdelivr.net/npm/@music163/tango-boot@{{version}}/dist/boot.js'],
resources: ['https://unpkg.com/@music163/tango-boot@{{version}}/dist/boot.js'],
// resources: ['http://localhost:9001/boot.js'],
description: '云音乐低代码运行时框架',
},
'@music163/antd': {
version: '0.1.7',
description: '云音乐低代码中后台应用基础物料',
version: '0.2.1',
library: 'TangoAntd',
type: 'baseDependency',
resources: [
'https://cdn.jsdelivr.net/npm/@music163/antd@{{version}}/dist/index.js',
'https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.css',
'https://unpkg.com/@music163/antd@{{version}}/dist/index.js',
'https://unpkg.com/[email protected]/dist/antd.css',
],
description: '云音乐低代码中后台应用基础物料',
designerResources: [
'https://cdn.jsdelivr.net/npm/@music163/antd@{{version}}/dist/designer.js',
// 'http://localhost:9002/designer.js',
'https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.css',
'https://unpkg.com/@music163/antd@{{version}}/dist/designer.js',
'https://unpkg.com/[email protected]/dist/antd.css',
],
},
},
Expand Down Expand Up @@ -161,13 +157,14 @@ class App extends React.Component {
render() {
return (
<Page title={tango.stores.app.title}>
<Section title="Section Title">
<Section tid="section1" title="Section Title">
your input: <Input tid="input1" defaultValue="hello" />
copy input: <Input value={tango.page.input1?.value} />
</Section>
<Section>
<Space>
<Section tid="section2">
<Space tid="space1">
<LocalButton />
<Button>button</Button>
<Input />
<Button tid="button1">button</Button>
</Space>
</Section>
</Page>
Expand Down

0 comments on commit 8851998

Please sign in to comment.