fix: all in one

This commit is contained in:
2023-04-15 15:25:33 +08:00
parent b2627a6b62
commit ebecea5d89
69 changed files with 36903 additions and 35905 deletions

BIN
projects/.DS_Store vendored Normal file

Binary file not shown.

BIN
projects/bkloan-global/.DS_Store vendored Normal file

Binary file not shown.

9
projects/bkloan-global/.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
/node_modules
/.env.local
/.umirc.local.ts
/config/config.local.ts
/src/.umi
/src/.umi-production
/src/.umi-test
/dist
.swc

View File

@@ -0,0 +1,18 @@
import { defineConfig } from 'umi';
export default defineConfig({
routes: [
{ path: '/', component: 'index' },
{ path: '/docs', component: 'docs' },
],
npmClient: 'npm',
monorepoRedirect: {
peerDeps: true,
},
mfsu: false,
plugins: ['@umijs/plugins/dist/qiankun'],
qiankun: {
slave: {},
},
// extraBabelIncludes: [/@lishican/],
});

14546
projects/bkloan-global/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,42 @@
{
"name": "bkloan-sg",
"author": "lishican <1213782659@qq.com>",
"scripts": {
"build": "umi build",
"dev": "umi dev",
"postinstall": "umi setup",
"setup": "umi setup",
"start": "npm run dev"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version",
"last 1 ie version"
]
},
"resolutions": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"dependencies": {
"antd": "^5.4.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"umi": "^4.0.65"
},
"devDependencies": {
"@lishican/antbank-platform-hooks": "*",
"@lishican/antbank-platform-ui": "*",
"@types/react": "^18.0.33",
"@types/react-dom": "^18.0.11",
"@umijs/plugins": "^4.0.65",
"typescript": "^5.0.3"
}
}

View File

@@ -0,0 +1,14 @@
export const qiankun = {
// 应用加载之前
async bootstrap(props) {
console.log('app1 bootstrap', props);
},
// 应用 render 之前触发
async mount(props) {
console.log('app1 mount', props);
},
// 应用卸载之后触发
async unmount(props) {
console.log('app1 unmount', props);
},
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

View File

@@ -0,0 +1,10 @@
.navs {
ul {
padding: 0;
list-style: none;
display: flex;
}
li {
margin-right: 1em;
}
}

View File

@@ -0,0 +1,10 @@
import { Link, Outlet } from 'umi';
import styles from './index.less';
export default function Layout() {
return (
<div className={styles.navs}>
<Outlet />
</div>
);
}

View File

@@ -0,0 +1,9 @@
const DocsPage = () => {
return (
<div>
<p>This is umi docs.</p>
</div>
);
};
export default DocsPage;

View File

@@ -0,0 +1,6 @@
.red2{
display: flex;
justify-content: center;
align-items: center;
font-size: 100px;
}

View File

@@ -0,0 +1,12 @@
import { useTask } from '@lishican/antbank-platform-hooks';
import Test from '@lishican/antbank-platform-ui';
import styles from './index.less';
export default function HomePage() {
useTask()
return (
<div>
<h2 className={styles.red2}>app23</h2>
<Test />
</div>
);ß
}

View File

@@ -0,0 +1,3 @@
{
"extends": "./src/.umi/tsconfig.json"
}

1
projects/bkloan-global/typings.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
import 'umi/typings';

BIN
projects/bkloan-sg/.DS_Store vendored Normal file

Binary file not shown.

9
projects/bkloan-sg/.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
/node_modules
/.env.local
/.umirc.local.ts
/config/config.local.ts
/src/.umi
/src/.umi-production
/src/.umi-test
/dist
.swc

View File

@@ -0,0 +1,18 @@
import { defineConfig } from 'umi';
export default defineConfig({
routes: [
{ path: '/', component: 'index' },
],
npmClient: 'npm',
monorepoRedirect: {
peerDeps: true,
},
plugins: ['@umijs/plugins/dist/qiankun'],
qiankun: {
master: {},
},
mfsu: false,
// extraBabelIncludes: [/@lishican/],
});

14546
projects/bkloan-sg/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,42 @@
{
"name": "bkloan-sg",
"author": "lishican <1213782659@qq.com>",
"scripts": {
"build": "umi build",
"dev": "umi dev",
"postinstall": "umi setup",
"setup": "umi setup",
"start": "npm run dev"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version",
"last 1 ie version"
]
},
"resolutions": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"dependencies": {
"antd": "^5.4.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"umi": "^4.0.65"
},
"devDependencies": {
"@lishican/antbank-platform-hooks": "*",
"@lishican/antbank-platform-ui": "*",
"@types/react": "^18.0.33",
"@types/react-dom": "^18.0.11",
"@umijs/plugins": "^4.0.65",
"typescript": "^5.0.3"
}
}

View File

@@ -0,0 +1,9 @@
export const qiankun = {
apps: [
{
name: 'app1',
entry: '//localhost:8001',
},
],
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

View File

@@ -0,0 +1,10 @@
.navs {
ul {
padding: 0;
list-style: none;
display: flex;
}
li {
margin-right: 1em;
}
}

View File

@@ -0,0 +1,10 @@
import { Link, Outlet } from 'umi';
import styles from './index.less';
export default function Layout() {
return (
<div className={styles.navs}>
<Outlet />
</div>
);
}

View File

@@ -0,0 +1,9 @@
const DocsPage = () => {
return (
<div>
<p>This is umi docs.</p>
</div>
);
};
export default DocsPage;

View File

@@ -0,0 +1,6 @@
.red2{
display: flex;
justify-content: center;
align-items: center;
font-size: 100px;
}

View File

@@ -0,0 +1,13 @@
import { useTask } from '@lishican/antbank-platform-hooks';
import Test from '@lishican/antbank-platform-ui';
import { MicroApp } from 'umi';
import styles from './index.less';
export default function HomePage() {
useTask()
return (
<div>
<h2 className={styles.red2}>Yay! Welcome to2 umi!</h2>
<Test />
</div>
);
}

View File

@@ -0,0 +1,3 @@
{
"extends": "./src/.umi/tsconfig.json"
}

1
projects/bkloan-sg/typings.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
import 'umi/typings';