-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Refactor the UI framework and remove b-design (#691)
* Feat: Refactor the UI framework and remove b-design Signed-off-by: barnettZQG <[email protected]> * Feat: optimize the style and the breadcrumb Signed-off-by: barnettZQG <[email protected]> * Feat: add the dependencies for the testing Signed-off-by: barnettZQG <[email protected]> * Fix: Variable @link-color is undefined Signed-off-by: barnettZQG <[email protected]> * Fix: Update the openssl package Signed-off-by: barnettZQG <[email protected]> --------- Signed-off-by: barnettZQG <[email protected]>
- Loading branch information
1 parent
2e3bd62
commit 443dfb8
Showing
219 changed files
with
9,168 additions
and
19,291 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,7 @@ | ||
# This file is a github code protect rule follow the codeowners https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-code-owners#example-of-a-codeowners-file | ||
|
||
* @barnettZQG @wonderflow | ||
* @barnettZQG @wonderflow | ||
|
||
pkg @barnettZQG @yangsoon @FogDong | ||
|
||
packages @barnettZQG |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,5 @@ build | |
package-lock.json | ||
yarn-error.log | ||
|
||
.DS_Store | ||
.DS_Store | ||
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const fabric = require('@umijs/fabric'); | ||
|
||
module.exports = { | ||
...fabric.prettier, | ||
trailingComma: 'es5', | ||
singleQuote: true, | ||
printWidth: 120, | ||
}; |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
const rmdir = require('rimraf'); | ||
const webpack = require('webpack'); | ||
const fs = require('fs'); | ||
|
||
const BASE_DIR = path.dirname(__dirname); | ||
|
||
const config = require('../webpack.config.js'); | ||
const distPath = path.join(process.cwd(), 'dist'); | ||
|
||
function build(minimize = false) { | ||
return new Promise((resolve, reject) => { | ||
webpack(config({ minimize })).run((err, stats) => { | ||
if (err) { | ||
reject(err); | ||
} else { | ||
const errors = stats.toJson().errors; | ||
if (errors.length) { | ||
reject( | ||
stats.toString({ | ||
chunkModules: false, | ||
}) | ||
); | ||
} else { | ||
resolve(stats); | ||
} | ||
} | ||
}); | ||
}); | ||
} | ||
|
||
function emendLess() { | ||
let less = fs.readFileSync(path.join(BASE_DIR, 'variables.less'), 'utf8'); | ||
|
||
less = less.replace(/\/\/ lessUnsupport[\s\S]*/g, ''); | ||
fs.writeFileSync(path.join(BASE_DIR, 'variables.less'), less); | ||
} | ||
|
||
async function buildTheme() { | ||
// build | ||
const start = Date.now(); | ||
console.log('# build'); | ||
await build(); | ||
console.log('# build minimize'); | ||
await build(true); | ||
|
||
console.log('# emend less'); | ||
emendLess(); | ||
|
||
try { | ||
fs.unlinkSync(path.join(distPath, 'next-noreset.min.js')); | ||
fs.unlinkSync(path.join(distPath, 'next-noreset.js')); | ||
fs.unlinkSync(path.join(distPath, 'next-noreset.var.min.js')); | ||
fs.unlinkSync(path.join(distPath, 'next-noreset.var.js')); | ||
fs.unlinkSync(path.join(distPath, 'next.var.min.js')); | ||
fs.unlinkSync(path.join(distPath, 'next.var.js')); | ||
} catch (e) { | ||
console.log('remove next-noreset.js or next-noreset.min.js failed: ', e); | ||
} | ||
console.log('# build end, cost: ', Date.now() - start); | ||
process.exit(0); | ||
} | ||
|
||
buildTheme(); |
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 @@ | ||
@import "variables.scss"; |
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 @@ | ||
@import "variables.scss"; |
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 @@ | ||
@import "variables.scss"; | ||
|
||
@import "~@alifd/next/index-noreset.scss"; | ||
|
||
@import "icons.scss"; |
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,3 @@ | ||
@import 'variables.scss2css.scss'; | ||
@import '~@alifd/next/index-noreset.scss'; | ||
@import 'icons.var.css'; |
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,3 @@ | ||
'use strict'; | ||
|
||
module.exports = require('@alifd/next'); |
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 @@ | ||
@import "variables.scss"; | ||
|
||
// Base theme | ||
@import "~@alifd/next/index.scss"; | ||
|
||
@import "icons.scss"; |
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,4 @@ | ||
|
||
@import 'variables.scss2css.scss'; | ||
@import "~@alifd/next/index.scss"; | ||
@import 'icons.var.css'; |
Oops, something went wrong.