This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webui] format code by eslint and prettier (#2744)
* update * format as prettier * fix error * add stylelint for scss css file * add arrow-parens rule * update * fix lint * fix conflict Co-authored-by: Lijiao <15910218274@163.com> Co-authored-by: Lijiao <Lijiaoa@outlook.com> Co-authored-by: Lijiao <1425861283@qq.com>
- Loading branch information
1 parent
4668fc0
commit e2d8cc1
Showing
74 changed files
with
3,433 additions
and
1,672 deletions.
There are no files selected for viewing
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 @@ | ||
/build/** | ||
/scripts/** | ||
/src/serviceWorker.ts |
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,11 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"ignoreFiles": [ | ||
"build/**" | ||
], | ||
"rules": { | ||
"at-rule-empty-line-before": null, | ||
"indentation": 4, | ||
"no-descending-specificity": null | ||
} | ||
} |
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,12 @@ | ||
module.exports = { | ||
printWidth: 120, | ||
semi: true, | ||
tabWidth: 4, | ||
trailingComma: 'none', | ||
arrowParens: 'avoid', | ||
bracketSpacing: true, | ||
singleQuote: true, | ||
eslintIntegration: true, | ||
jsxSingleQuote: true, | ||
endOfline: 'lf' | ||
}; |
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,63 +1,63 @@ | ||
.nni{ | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
color: #212121; | ||
font-size: 14px; | ||
background: #f2f2f2; | ||
.nni { | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
color: #212121; | ||
font-size: 14px; | ||
background: #f2f2f2; | ||
} | ||
|
||
.header{ | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 56px; | ||
background: #0071BC; | ||
border-right: 1px solid #ccc; | ||
z-index: 1000; | ||
.header { | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 56px; | ||
background: #0071bc; | ||
border-right: 1px solid #ccc; | ||
z-index: 1000; | ||
} | ||
|
||
.headerCon{ | ||
width: 90%; | ||
margin: 0 auto; | ||
.headerCon { | ||
width: 90%; | ||
margin: 0 auto; | ||
} | ||
|
||
.contentBox{ | ||
width: 100%; | ||
.contentBox { | ||
width: 100%; | ||
} | ||
|
||
.content{ | ||
width: 89%; | ||
min-width: 1024px; | ||
margin: 0 auto; | ||
margin-top: 74px; | ||
margin-bottom: 30px; | ||
.content { | ||
width: 89%; | ||
min-width: 1024px; | ||
margin: 0 auto; | ||
margin-top: 74px; | ||
margin-bottom: 30px; | ||
} | ||
|
||
.bottomDiv{ | ||
margin-bottom: 10px; | ||
.bottomDiv { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.bgNNI{ | ||
background-color: #fff; | ||
.bgNNI { | ||
background-color: #fff; | ||
} | ||
|
||
.borderRight{ | ||
margin-right: 10px; | ||
.borderRight { | ||
margin-right: 10px; | ||
} | ||
|
||
/* office-fabric-ui */ | ||
.ms-Pivot-linkContent{ | ||
height: 44px; | ||
.ms-Pivot-linkContent { | ||
height: 44px; | ||
} | ||
|
||
.ms-Callout-main{ | ||
p{ | ||
font-weight: 500; | ||
color: #333; | ||
} | ||
.ms-Callout-main { | ||
p { | ||
font-weight: 500; | ||
color: #333; | ||
} | ||
} | ||
|
||
.warning{ | ||
padding-bottom: 15px; | ||
background-color: #f2f2f2; | ||
.warning { | ||
padding-bottom: 15px; | ||
background-color: #f2f2f2; | ||
} |
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
Oops, something went wrong.