fix: all in one
This commit is contained in:
BIN
projects/.DS_Store
vendored
Normal file
BIN
projects/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
projects/bkloan-global/.DS_Store
vendored
Normal file
BIN
projects/bkloan-global/.DS_Store
vendored
Normal file
Binary file not shown.
9
projects/bkloan-global/.gitignore
vendored
Normal file
9
projects/bkloan-global/.gitignore
vendored
Normal 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
|
||||
18
projects/bkloan-global/.umirc.ts
Normal file
18
projects/bkloan-global/.umirc.ts
Normal 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
14546
projects/bkloan-global/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
42
projects/bkloan-global/package.json
Normal file
42
projects/bkloan-global/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
14
projects/bkloan-global/src/app.ts
Normal file
14
projects/bkloan-global/src/app.ts
Normal 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);
|
||||
},
|
||||
};
|
||||
BIN
projects/bkloan-global/src/assets/yay.jpg
Normal file
BIN
projects/bkloan-global/src/assets/yay.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 177 KiB |
10
projects/bkloan-global/src/layouts/index.less
Normal file
10
projects/bkloan-global/src/layouts/index.less
Normal file
@@ -0,0 +1,10 @@
|
||||
.navs {
|
||||
ul {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
}
|
||||
li {
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
10
projects/bkloan-global/src/layouts/index.tsx
Normal file
10
projects/bkloan-global/src/layouts/index.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
9
projects/bkloan-global/src/pages/docs.tsx
Normal file
9
projects/bkloan-global/src/pages/docs.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
const DocsPage = () => {
|
||||
return (
|
||||
<div>
|
||||
<p>This is umi docs.</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default DocsPage;
|
||||
6
projects/bkloan-global/src/pages/index.less
Normal file
6
projects/bkloan-global/src/pages/index.less
Normal file
@@ -0,0 +1,6 @@
|
||||
.red2{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 100px;
|
||||
}
|
||||
12
projects/bkloan-global/src/pages/index.tsx
Normal file
12
projects/bkloan-global/src/pages/index.tsx
Normal 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>
|
||||
);ß
|
||||
}
|
||||
3
projects/bkloan-global/tsconfig.json
Normal file
3
projects/bkloan-global/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "./src/.umi/tsconfig.json"
|
||||
}
|
||||
1
projects/bkloan-global/typings.d.ts
vendored
Normal file
1
projects/bkloan-global/typings.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import 'umi/typings';
|
||||
BIN
projects/bkloan-sg/.DS_Store
vendored
Normal file
BIN
projects/bkloan-sg/.DS_Store
vendored
Normal file
Binary file not shown.
9
projects/bkloan-sg/.gitignore
vendored
Normal file
9
projects/bkloan-sg/.gitignore
vendored
Normal 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
|
||||
18
projects/bkloan-sg/.umirc.ts
Normal file
18
projects/bkloan-sg/.umirc.ts
Normal 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
14546
projects/bkloan-sg/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
42
projects/bkloan-sg/package.json
Normal file
42
projects/bkloan-sg/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
9
projects/bkloan-sg/src/app.ts
Normal file
9
projects/bkloan-sg/src/app.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const qiankun = {
|
||||
apps: [
|
||||
{
|
||||
name: 'app1',
|
||||
entry: '//localhost:8001',
|
||||
},
|
||||
],
|
||||
|
||||
};
|
||||
BIN
projects/bkloan-sg/src/assets/yay.jpg
Normal file
BIN
projects/bkloan-sg/src/assets/yay.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 177 KiB |
10
projects/bkloan-sg/src/layouts/index.less
Normal file
10
projects/bkloan-sg/src/layouts/index.less
Normal file
@@ -0,0 +1,10 @@
|
||||
.navs {
|
||||
ul {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
}
|
||||
li {
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
10
projects/bkloan-sg/src/layouts/index.tsx
Normal file
10
projects/bkloan-sg/src/layouts/index.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
9
projects/bkloan-sg/src/pages/docs.tsx
Normal file
9
projects/bkloan-sg/src/pages/docs.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
const DocsPage = () => {
|
||||
return (
|
||||
<div>
|
||||
<p>This is umi docs.</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default DocsPage;
|
||||
6
projects/bkloan-sg/src/pages/index.less
Normal file
6
projects/bkloan-sg/src/pages/index.less
Normal file
@@ -0,0 +1,6 @@
|
||||
.red2{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: 100px;
|
||||
}
|
||||
13
projects/bkloan-sg/src/pages/index.tsx
Normal file
13
projects/bkloan-sg/src/pages/index.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
3
projects/bkloan-sg/tsconfig.json
Normal file
3
projects/bkloan-sg/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "./src/.umi/tsconfig.json"
|
||||
}
|
||||
1
projects/bkloan-sg/typings.d.ts
vendored
Normal file
1
projects/bkloan-sg/typings.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import 'umi/typings';
|
||||
Reference in New Issue
Block a user