Browse Source
* refactor: use umi 3 * fix: lint * fix: d.ts * fix: ignoreMomentLocale * feat: add preset ui * fix: preset * fix: plugins * fix: plugin * fix: config * fix: antd locale * 🐛 bugfix: update types * 🐛 bugfix:fix types error * feat: add @umijs/plugin-blocks * block support umi@3 * update deps * update deps * remove umi-plugin-antd-icon-config * lint: fix ts error * ignore: ignore build * 🚀 Deploy: do not run yarn lint * fix e2e test * fix e2e test * fix lgmt error * 🚀 Deploy: add GA_KEY Co-authored-by: chenshuai2144 <qixian.cs@outlook.com>pull/6094/head
committed by
GitHub
31 changed files with 162 additions and 351 deletions
@ -1,115 +0,0 @@ |
|||
export default { |
|||
theme: [ |
|||
{ |
|||
key: 'dark', |
|||
fileName: 'dark.css', |
|||
theme: 'dark', |
|||
}, |
|||
{ |
|||
key: 'dust', |
|||
fileName: 'dust.css', |
|||
modifyVars: { |
|||
'@primary-color': '#F5222D', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'volcano', |
|||
fileName: 'volcano.css', |
|||
modifyVars: { |
|||
'@primary-color': '#FA541C', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'sunset', |
|||
fileName: 'sunset.css', |
|||
modifyVars: { |
|||
'@primary-color': '#FAAD14', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'cyan', |
|||
fileName: 'cyan.css', |
|||
modifyVars: { |
|||
'@primary-color': '#13C2C2', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'green', |
|||
fileName: 'green.css', |
|||
modifyVars: { |
|||
'@primary-color': '#52C41A', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'geekblue', |
|||
fileName: 'geekblue.css', |
|||
modifyVars: { |
|||
'@primary-color': '#2F54EB', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'purple', |
|||
fileName: 'purple.css', |
|||
modifyVars: { |
|||
'@primary-color': '#722ED1', |
|||
}, |
|||
}, |
|||
|
|||
{ |
|||
key: 'dust', |
|||
theme: 'dark', |
|||
fileName: 'dark-dust.css', |
|||
modifyVars: { |
|||
'@primary-color': '#F5222D', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'volcano', |
|||
theme: 'dark', |
|||
fileName: 'dark-volcano.css', |
|||
modifyVars: { |
|||
'@primary-color': '#FA541C', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'sunset', |
|||
theme: 'dark', |
|||
fileName: 'dark-sunset.css', |
|||
modifyVars: { |
|||
'@primary-color': '#FAAD14', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'cyan', |
|||
theme: 'dark', |
|||
fileName: 'dark-cyan.css', |
|||
modifyVars: { |
|||
'@primary-color': '#13C2C2', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'green', |
|||
theme: 'dark', |
|||
fileName: 'dark-green.css', |
|||
modifyVars: { |
|||
'@primary-color': '#52C41A', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'geekblue', |
|||
theme: 'dark', |
|||
fileName: 'dark-geekblue.css', |
|||
modifyVars: { |
|||
'@primary-color': '#2F54EB', |
|||
}, |
|||
}, |
|||
{ |
|||
key: 'purple', |
|||
theme: 'dark', |
|||
fileName: 'dark-purple.css', |
|||
modifyVars: { |
|||
'@primary-color': '#722ED1', |
|||
}, |
|||
}, |
|||
], |
|||
}; |
|||
@ -1,12 +0,0 @@ |
|||
// ps https://github.com/GoogleChrome/puppeteer/issues/3120
|
|||
module.exports = { |
|||
launch: { |
|||
args: [ |
|||
'--disable-gpu', |
|||
'--disable-dev-shm-usage', |
|||
'--no-first-run', |
|||
'--no-zygote', |
|||
'--no-sandbox', |
|||
], |
|||
}, |
|||
}; |
|||
@ -0,0 +1,16 @@ |
|||
import puppeteer from 'puppeteer'; |
|||
|
|||
const getBrowser = async () => { |
|||
const browser = await puppeteer.launch({ |
|||
args: [ |
|||
'--disable-gpu', |
|||
'--disable-dev-shm-usage', |
|||
'--no-first-run', |
|||
'--no-zygote', |
|||
'--no-sandbox', |
|||
], |
|||
}); |
|||
return browser; |
|||
}; |
|||
|
|||
module.exports = getBrowser; |
|||
@ -1,16 +0,0 @@ |
|||
import { getAuthority } from './authority'; |
|||
|
|||
describe('getAuthority should be strong', () => { |
|||
it('string', () => { |
|||
expect(getAuthority('admin')).toEqual(['admin']); |
|||
}); |
|||
it('array with double quotes', () => { |
|||
expect(getAuthority('"admin"')).toEqual(['admin']); |
|||
}); |
|||
it('array with single item', () => { |
|||
expect(getAuthority('["admin"]')).toEqual(['admin']); |
|||
}); |
|||
it('array with multiple items', () => { |
|||
expect(getAuthority('["admin", "guest"]')).toEqual(['admin', 'guest']); |
|||
}); |
|||
}); |
|||
Loading…
Reference in new issue