Skip to content

Commit

Permalink
chore: remove ts and style lint error (#2995)
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector authored Dec 5, 2022
1 parent 502422f commit 2070828
Show file tree
Hide file tree
Showing 39 changed files with 160 additions and 136 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ tmp
test/coverage
packages/**/src/style/raw.ts
.eslintcache
.stylelintcache
7 changes: 6 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"no-invalid-double-slash-comments": null,
"no-descending-specificity": null,
"declaration-empty-line-before": null,
"no-duplicate-selectors": null
"no-duplicate-selectors": null,
"value-no-vendor-prefix": null,
"selector-pseudo-class-no-unknown": null,
"selector-class-pattern": null,
"keyframes-name-pattern": null,
"number-max-precision": null
}
}
18 changes: 9 additions & 9 deletions examples/x6-example-features/src/layouts/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@

.nav {
position: absolute;
z-index: 101;
top: 0;
bottom: 0;
left: 0;
font-size: 13px;
overflow-x: hidden;
overflow-y: auto;
z-index: 101;
box-sizing: border-box;
width: 220px;
padding: 0 16px;
overflow-x: hidden;
overflow-y: auto;
font-size: 13px;
border-right: 1px solid #e9e9e9;
box-sizing: border-box;

ul {
padding-left: 16px;
Expand All @@ -29,11 +29,11 @@
}

.content {
box-sizing: border-box;
overflow-x: hidden;
overflow-y: auto;
flex-grow: 1;
box-sizing: border-box;
margin-left: 220px;
background: #ffffff;
padding: 34px;
overflow-x: hidden;
overflow-y: auto;
background: #fff;
}
13 changes: 11 additions & 2 deletions examples/x6-example-features/src/pages/case/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
border: 1px solid #c2c8d5;
border-left: 4px solid #1890ff;
border-radius: 4px;
box-shadow: 0 2px 5px 1px rgba(0, 0, 0, 0.06);
box-shadow: 0 2px 5px 1px rgb(0 0 0 / 6%);

img {
flex-shrink: 0;
width: 20px;
height: 20px;
flex-shrink: 0;
margin-left: 8px;
}

.label {
display: inline-block;
flex-shrink: 0;
Expand All @@ -23,15 +25,19 @@
color: #666;
font-size: 12px;
}

.status {
flex-shrink: 0;
}

&.success {
border-left: 4px solid #52c41a;
}

&.failed {
border-left: 4px solid #ff4d4f;
}

&.running .status img {
animation: spin 1s linear infinite;
}
Expand All @@ -43,11 +49,13 @@
border-radius: 2px;
box-shadow: 0 0 0 4px #d4e8fe;
}

.node.success {
border-color: #52c41a;
border-radius: 2px;
box-shadow: 0 0 0 4px #ccecc0;
}

.node.failed {
border-color: #ff4d4f;
border-radius: 2px;
Expand Down Expand Up @@ -80,6 +88,7 @@
from {
transform: rotate(0deg);
}

to {
transform: rotate(360deg);
}
Expand Down
1 change: 1 addition & 0 deletions examples/x6-example-features/src/pages/case/mind.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
visibility: hidden;
cursor: pointer;
}

&:hover image {
visibility: visible;
}
Expand Down
9 changes: 5 additions & 4 deletions examples/x6-example-features/src/pages/dnd/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
position: relative;
}

.validating:after {
.validating::after {
position: absolute;
top: 4px;
left: 4px;
content: ' ';
display: block;
width: 50px;
height: 50px;
border-radius: 50%;
border: 6px solid #873bf4;
border-color: #873bf4 transparent #873bf4 transparent;
border-color: #873bf4 transparent;
border-radius: 50%;
animation: lds-dual-ring 1.2s linear infinite;
content: ' ';
}

@keyframes lds-dual-ring {
0% {
transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}
Expand Down
54 changes: 27 additions & 27 deletions examples/x6-example-features/src/pages/graph/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@
.x6-example-wrap {
width: 100%;
height: 100%;
background-color: #ffffff;
background-color: #fff;

.left-side {
position: fixed;
width: 336px;
left: 24px;
top: 0px;
top: 0;
bottom: 0;
left: 24px;
width: 336px;
padding: 0 8px;
overflow-x: visible;
overflow-y: auto;
}

.right-side {
position: fixed;
top: 0;
right: 24px;
bottom: 0;
width: 336px;
padding: 0 8px;
top: 0px;
bottom: 0;
overflow-x: visible;
overflow-y: auto;
}

.ant-card {
box-shadow: 0 0 10px 1px #e9e9e9;
margin-top: 24px;
box-shadow: 0 0 10px 1px #e9e9e9;
}

.ant-row-flex {
margin: 8px 0;
}

.slider-value {
background: #eee;
color: #333333;
padding: 3px 7px;
border-radius: 10px;
display: inline-block;
font-size: 12px;
margin-left: 8px;
padding: 3px 7px;
color: #333;
font-size: 12px;
line-height: 1.25;
background: #eee;
border-radius: 10px;
}

.x6-graph {
Expand All @@ -52,15 +52,15 @@

.x6-node {
path {
fill: #6a6c8a;
stroke-width: 0px;
transition: fill 0.1s;
fill: #6a6c8a;
stroke-width: 0;
}

text {
fill: #fff;
font-size: 12px;
font-weight: lighter;
font-size: 12px;
fill: #fff;
}

&:hover path {
Expand All @@ -80,37 +80,37 @@
}

.bbox {
transition-duration: 0.5s;
transition-property: stroke-opacity;
pointer-events: none;
fill: none;
stroke: #16a085;
stroke-width: 2;
stroke-opacity: 0;
fill: none;
transition-property: stroke-opacity;
transition-duration: 0.5s;
pointer-events: none;
}

.axis {
pointer-events: none;
stroke: #95a5a6;
stroke-dasharray: 2, 4;
stroke-width: 1;
pointer-events: none;
}

.padding {
stroke: #1abc9c;
stroke-opacity: 0;
transition-property: stroke-opacity;
transition-duration: 1s;
transition-property: stroke-opacity;
pointer-events: none;
stroke: #1abc9c;
stroke-opacity: 0;
}

.grid {
transition-duration: 1s;
transition-property: stroke-opacity;
pointer-events: none;
stroke: #16a085;
stroke-width: 0.5;
stroke-opacity: 0;
transition-property: stroke-opacity;
transition-duration: 1s;
pointer-events: none;
}

.active {
Expand Down
4 changes: 2 additions & 2 deletions examples/x6-example-features/src/pages/html/index.less
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.custom-html {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
color: #000;
font-size: 16px;
border: 1px solid #000;
Expand Down
10 changes: 5 additions & 5 deletions examples/x6-example-features/src/pages/index.less
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
.x6-graph-wrap {
width: 100%;
height: 100%;
background-color: #ffffff;
overflow: auto;
padding: 32px 0;
overflow: auto;
background-color: #fff;

> h1 {
display: block;
width: 800px;
margin: 0 auto 32px auto;
margin: 0 auto 32px;
}
}

.x6-graph-tools {
width: 800px;
margin: 0 auto 32px auto;
margin: 0 auto 32px;
}

.x6-graph {
width: 100%;
height: 100%;
box-shadow: 0 0 10px 1px #e9e9e9;
margin: 0 auto;
box-shadow: 0 0 10px 1px #e9e9e9;
}

.x6-node-selected {
Expand Down
6 changes: 3 additions & 3 deletions examples/x6-example-features/src/pages/react/index.less
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.react-algo-node {
display: flex;
align-items: center;
width: 100%;
height: 100%;
border: 1px solid #5f95ff;
border-radius: 14px;
display: flex;
align-items: center;

img {
width: 24px;
Expand All @@ -13,8 +13,8 @@

span {
margin-left: 4px;
font-size: 12px;
color: #000000a6;
font-size: 12px;
}

&.dark {
Expand Down
Loading

0 comments on commit 2070828

Please sign in to comment.