Skip to content

Commit 42282bb

Browse files
committed
🚨fix angular error/warning
1 parent 296c4ff commit 42282bb

File tree

12 files changed

+37
-38
lines changed

12 files changed

+37
-38
lines changed

controlpanel/cad/src/app/components/alert-action-table/alert-action-table.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../styles/variables';
1+
@use '../../../styles/variables';
22

33
.action-table {
44
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,
@@ -68,7 +68,7 @@
6868
text-align: center;
6969
.add-action-btn {
7070
width: 90%;
71-
background-color: $primaryColor;
71+
background-color: variables.$primaryColor;
7272
border: none;
7373
border-radius: 5px;
7474
padding: 0.2rem 0;

controlpanel/cad/src/app/components/injection-when-table/injection-when-table.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../styles/variables';
1+
@use '../../../styles/variables';
22

33
.when-table {
44
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px,
@@ -31,7 +31,7 @@
3131
text-align: center;
3232
.add-when-btn {
3333
width: 90%;
34-
background-color: $primaryColor;
34+
background-color: variables.$primaryColor;
3535
border: none;
3636
border-radius: 5px;
3737
padding: 0.2rem 0;

controlpanel/cad/src/app/components/menu/menu.component.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../styles/variables.scss';
1+
@use '../../../styles/variables.scss';
22
$menu-icon-size: 2rem;
33

44
.menu {
@@ -63,13 +63,13 @@ $menu-icon-size: 2rem;
6363
white-space: nowrap;
6464
text-overflow: ellipsis;
6565
&:hover {
66-
background-color: $backgroundPrimaryColor;
66+
background-color: variables.$backgroundPrimaryColor;
6767
}
6868
}
6969
.app-separator {
7070
margin: 0 0.5rem;
7171
border: none;
72-
border-bottom: 1px solid $inputBorder;
72+
border-bottom: 1px solid variables.$inputBorder;
7373
}
7474
}
7575
}
@@ -78,9 +78,6 @@ $menu-icon-size: 2rem;
7878
display: flex;
7979
flex-direction: column;
8080
.menu-item .menu-link, .dropdown-menu-item {
81-
&:hover, &:hover .dropdown {
82-
background-color: bisque;
83-
}
8481
position: relative;
8582
display: flex;
8683
flex-direction: row;
@@ -90,6 +87,9 @@ $menu-icon-size: 2rem;
9087
margin: 0.3rem 0;
9188
text-decoration: none;
9289
color: #000;
90+
&:hover, &:hover .dropdown {
91+
background-color: bisque;
92+
}
9393
&:visited {
9494
color: initial;
9595
}

controlpanel/cad/src/app/components/source-select/source-select.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../styles/variables.scss';
1+
@use '../../../styles/variables.scss';
22

33
.multi-select {
44
position: relative;
@@ -24,7 +24,7 @@
2424
scrollbar-width: none;
2525
scroll-behavior: smooth;
2626
.source-item {
27-
border: 2px solid $primaryColor;
27+
border: 2px solid variables.$primaryColor;
2828
display: flex;
2929
align-items: center;
3030
height: 100%;

controlpanel/cad/src/app/components/when-alert-select/when-alert-select.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../styles/variables.scss';
1+
@use '../../../styles/variables.scss';
22

33
.multi-select {
44
position: relative;
@@ -24,7 +24,7 @@
2424
scrollbar-width: none;
2525
scroll-behavior: smooth;
2626
.when-item {
27-
border: 2px solid $primaryColor;
27+
border: 2px solid variables.$primaryColor;
2828
display: flex;
2929
align-items: center;
3030
height: 100%;

controlpanel/cad/src/app/pages/add-decoy/add-decoy.component.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../styles/variables.scss';
1+
@use '../../../styles/variables.scss';
22

33
.top-bar {
44
display: flex;
@@ -40,12 +40,12 @@
4040
}
4141
.active-step {
4242
.circle {
43-
background-color: $primaryColor;
43+
background-color: variables.$primaryColor;
4444
color: white;
45-
border-color: $primaryColor;
45+
border-color: variables.$primaryColor;
4646
}
4747
p {
48-
color: $primaryColor;
48+
color: variables.$primaryColor;
4949
}
5050
}
5151
.disabled-step {
@@ -67,7 +67,7 @@
6767
}
6868
.active-separator {
6969
hr {
70-
border-top-color: $primaryColor !important;
70+
border-top-color: variables.$primaryColor !important;
7171
}
7272
}
7373
.done {

controlpanel/cad/src/app/pages/add-decoy/injection/injection.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../../styles/variables.scss';
1+
@use '../../../../styles/variables.scss';
22

33
.decoy-form {
44
.left-form {

controlpanel/cad/src/app/pages/add-decoy/injection/injection.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { Observable, Subscription } from 'rxjs';
2020
TooltipComponent,
2121
ReactiveFormsModule,
2222
InjectionWhenTableComponent,
23-
RouterLink
2423
],
2524
templateUrl: './injection.component.html',
2625
styleUrl: './injection.component.scss'

controlpanel/cad/src/app/pages/list-decoy/list-decoy.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../styles/variables.scss';
1+
@use '../../../styles/variables.scss';
22
.wrapper {
33
width: 100%;
44
padding: 0 4%;

controlpanel/cad/src/app/pages/logs/logs.component.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../styles/variables.scss';
1+
@use '../../../styles/variables.scss';
22

33
.wrapper {
44
width: 100%;
@@ -33,11 +33,11 @@
3333
padding: 0.2rem 0.8rem;
3434
font-weight: 500;
3535
margin-left: 2rem;
36-
color: $primaryColor;
36+
color: variables.$primaryColor;
3737
cursor: pointer;
3838
transition: all 0.2s ease;
3939
&:hover {
40-
background-color: rgba($primaryColor, 0.2);
40+
background-color: rgba(variables.$primaryColor, 0.2);
4141
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 3px -2px,
4242
rgba(0, 0, 0, 0.14) 0px 3px 4px 0px,
4343
rgba(0, 0, 0, 0.12) 0px 1px 8px 0px;
@@ -47,10 +47,10 @@
4747
mask: url('../../../../public/filter.svg') no-repeat center;
4848
width: 24px;
4949
height: 24px;
50-
background-color: $primaryColor;
50+
background-color: variables.$primaryColor;
5151
}
5252
p {
53-
color: $primaryColor;
53+
color: variables.$primaryColor;
5454
}
5555
option {
5656
background-color: #FFF;
@@ -82,7 +82,7 @@
8282
display: flex;
8383
flex-direction: row;
8484
align-items: center;
85-
border: $inputBorder 1px solid;
85+
border: variables.$inputBorder 1px solid;
8686
border-radius: 20px;
8787
padding: 0.2rem 0.6rem 0.2rem 0.2rem;
8888
height: fit-content;
@@ -101,7 +101,7 @@
101101
flex: 1;
102102
display: flex;
103103
border-radius: 6px;
104-
border: $inputBorder 1px solid;
104+
border: variables.$inputBorder 1px solid;
105105
:first-child {
106106
border-radius: 6px 0 0 6px;
107107
}
@@ -117,14 +117,14 @@
117117
}
118118
.select-operator {
119119
width: 70%;
120-
border-right: solid $inputBorder 1px;
121-
border-left: solid $inputBorder 1px;
120+
border-right: solid variables.$inputBorder 1px;
121+
border-left: solid variables.$inputBorder 1px;
122122
}
123123
.delete-btn {
124124
padding: 2px 1px;
125125
cursor: pointer;
126126
border: 0;
127-
border-left: solid $inputBorder 1px;
127+
border-left: solid variables.$inputBorder 1px;
128128
background-color: #F6F6F6;
129129
.delete-icon {
130130
margin: 0 auto;
@@ -136,7 +136,7 @@
136136
}
137137
}
138138
.add-search-value {
139-
background-color: $primaryColor;
139+
background-color: variables.$primaryColor;
140140
padding: 0 0.5rem;
141141
border: 0;
142142
color: #FFF;

controlpanel/cad/src/app/pages/system/system.component.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../styles/variables.scss';
1+
@use '../../../styles/variables.scss';
22

33

44
.wrapper {
@@ -49,14 +49,14 @@
4949
mask: url('../../../../public/upload.svg') no-repeat center;
5050
width: 24px;
5151
height: 24px;
52-
background-color: $primaryColor;
52+
background-color: variables.$primaryColor;
5353
}
5454
.download-icon {
5555
margin: 0 0.8rem 0 0;
5656
mask: url('../../../../public/download.svg') no-repeat center;
5757
width: 24px;
5858
height: 24px;
59-
background-color: $primaryColor;
59+
background-color: variables.$primaryColor;
6060
}
6161
}
6262
}
@@ -189,7 +189,7 @@
189189
mask: url('../../../../public/loading.svg') no-repeat center;
190190
mask-size: contain;
191191
height: 2rem;
192-
background-color: $primaryColor;
192+
background-color: variables.$primaryColor;
193193
animation: loading-anim 1.5s linear infinite;
194194
}
195195
}

controlpanel/cad/src/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ app-add-decoy, app-list-decoy, app-config, app-system {
136136
.outlined-btn {
137137
display: flex;
138138
background-color: white;
139-
color: $primaryColor;
139+
color: variables.$primaryColor;
140140
font-size: 1rem;
141141
border: 2px solid #D9D9D9;
142142
padding: 0.5rem 0.8rem;

0 commit comments

Comments
 (0)