Skip to content

Commit 7175681

Browse files
committed
refactor: use rd as namespace
1 parent 895519f commit 7175681

File tree

115 files changed

+1211
-1209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+1211
-1209
lines changed

packages/platform/src/app/components/chart/theme.json

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"textStyle": {},
66
"title": {
77
"textStyle": {
8-
"color": "var(--d-text-color)"
8+
"color": "var(--rd-text-color)"
99
},
1010
"subtextStyle": {
11-
"color": "var(--d-text-color-sub)"
11+
"color": "var(--rd-text-color-sub)"
1212
}
1313
},
1414
"line": {
@@ -21,7 +21,7 @@
2121
"symbolSize": "8",
2222
"symbol": "emptyCircle",
2323
"label": {
24-
"color": "var(--d-text-color-sub)"
24+
"color": "var(--rd-text-color-sub)"
2525
},
2626
"smooth": false
2727
},
@@ -42,12 +42,12 @@
4242
"barBorderColor": "#ccc"
4343
},
4444
"label": {
45-
"color": "var(--d-text-color-sub)"
45+
"color": "var(--rd-text-color-sub)"
4646
}
4747
},
4848
"pie": {
4949
"label": {
50-
"color": "var(--d-text-color-sub)"
50+
"color": "var(--rd-text-color-sub)"
5151
},
5252
"itemStyle": {
5353
"borderWidth": 0,
@@ -159,11 +159,11 @@
159159
"treemap": {
160160
"breadcrumb": {
161161
"itemStyle": {
162-
"color": "var(--d-color-icon-decorator)"
162+
"color": "var(--rd-color-icon-decorator)"
163163
},
164164
"emphasis": {
165165
"itemStyle": {
166-
"color": "var(--d-color-primary-lighter)"
166+
"color": "var(--rd-color-primary-lighter)"
167167
}
168168
}
169169
}
@@ -172,7 +172,7 @@
172172
"axisLine": {
173173
"show": true,
174174
"lineStyle": {
175-
"color": "var(--d-color-border)"
175+
"color": "var(--rd-color-border)"
176176
}
177177
},
178178
"axisTick": {
@@ -183,12 +183,12 @@
183183
},
184184
"axisLabel": {
185185
"show": true,
186-
"color": "var(--d-text-color-sub)"
186+
"color": "var(--rd-text-color-sub)"
187187
},
188188
"splitLine": {
189189
"show": true,
190190
"lineStyle": {
191-
"color": ["var(--d-color-divider)"]
191+
"color": ["var(--rd-color-divider)"]
192192
}
193193
},
194194
"splitArea": {
@@ -202,7 +202,7 @@
202202
"axisLine": {
203203
"show": true,
204204
"lineStyle": {
205-
"color": "var(--d-color-border)"
205+
"color": "var(--rd-color-border)"
206206
}
207207
},
208208
"axisTick": {
@@ -213,12 +213,12 @@
213213
},
214214
"axisLabel": {
215215
"show": true,
216-
"color": "var(--d-text-color-sub)"
216+
"color": "var(--rd-text-color-sub)"
217217
},
218218
"splitLine": {
219219
"show": true,
220220
"lineStyle": {
221-
"color": ["var(--d-color-divider)"]
221+
"color": ["var(--rd-color-divider)"]
222222
}
223223
},
224224
"splitArea": {
@@ -232,7 +232,7 @@
232232
"axisLine": {
233233
"show": true,
234234
"lineStyle": {
235-
"color": "var(--d-color-border)"
235+
"color": "var(--rd-color-border)"
236236
}
237237
},
238238
"axisTick": {
@@ -243,12 +243,12 @@
243243
},
244244
"axisLabel": {
245245
"show": true,
246-
"color": "var(--d-text-color-sub)"
246+
"color": "var(--rd-text-color-sub)"
247247
},
248248
"splitLine": {
249249
"show": true,
250250
"lineStyle": {
251-
"color": ["var(--d-color-divider)"]
251+
"color": ["var(--rd-color-divider)"]
252252
}
253253
},
254254
"splitArea": {
@@ -262,7 +262,7 @@
262262
"axisLine": {
263263
"show": true,
264264
"lineStyle": {
265-
"color": "var(--d-color-border)"
265+
"color": "var(--rd-color-border)"
266266
}
267267
},
268268
"axisTick": {
@@ -273,12 +273,12 @@
273273
},
274274
"axisLabel": {
275275
"show": true,
276-
"color": "var(--d-text-color-sub)"
276+
"color": "var(--rd-text-color-sub)"
277277
},
278278
"splitLine": {
279279
"show": true,
280280
"lineStyle": {
281-
"color": ["var(--d-color-divider)"]
281+
"color": ["var(--rd-color-divider)"]
282282
}
283283
},
284284
"splitArea": {
@@ -290,17 +290,17 @@
290290
},
291291
"toolbox": {
292292
"iconStyle": {
293-
"borderColor": "var(--d-color-icon-decorator)"
293+
"borderColor": "var(--rd-color-icon-decorator)"
294294
},
295295
"emphasis": {
296296
"iconStyle": {
297-
"borderColor": "var(--d-color-primary-lighter)"
297+
"borderColor": "var(--rd-color-primary-lighter)"
298298
}
299299
}
300300
},
301301
"legend": {
302302
"textStyle": {
303-
"color": "var(--d-text-color-sub)"
303+
"color": "var(--rd-text-color-sub)"
304304
}
305305
},
306306
"tooltip": {
@@ -318,47 +318,47 @@
318318
},
319319
"timeline": {
320320
"lineStyle": {
321-
"color": "var(--d-color-border)",
321+
"color": "var(--rd-color-border)",
322322
"width": 1
323323
},
324324
"itemStyle": {
325-
"color": "var(--d-color-icon-decorator)",
325+
"color": "var(--rd-color-icon-decorator)",
326326
"borderWidth": 1
327327
},
328328
"controlStyle": {
329-
"color": "var(--d-color-icon-decorator)",
330-
"borderColor": "var(--d-color-icon-decorator)",
329+
"color": "var(--rd-color-icon-decorator)",
330+
"borderColor": "var(--rd-color-icon-decorator)",
331331
"borderWidth": 0.5
332332
},
333333
"checkpointStyle": {
334-
"color": "var(--d-color-primary-lighter)",
335-
"borderColor": "var(--d-color-primary-lighter)"
334+
"color": "var(--rd-color-primary-lighter)",
335+
"borderColor": "var(--rd-color-primary-lighter)"
336336
},
337337
"label": {
338-
"color": "var(--d-text-color-sub)"
338+
"color": "var(--rd-text-color-sub)"
339339
},
340340
"progress": {
341341
"lineStyle": {
342-
"color": "var(--d-color-primary)"
342+
"color": "var(--rd-color-primary)"
343343
},
344344
"itemStyle": {
345-
"color": "var(--d-color-primary)"
345+
"color": "var(--rd-color-primary)"
346346
},
347347
"label": {
348-
"color": "var(--d-color-primary)"
348+
"color": "var(--rd-color-primary)"
349349
}
350350
},
351351
"emphasis": {
352352
"itemStyle": {
353-
"color": "var(--d-color-primary-lighter)"
353+
"color": "var(--rd-color-primary-lighter)"
354354
},
355355
"controlStyle": {
356-
"color": "var(--d-color-primary-lighter)",
357-
"borderColor": "var(--d-color-primary-lighter)",
356+
"color": "var(--rd-color-primary-lighter)",
357+
"borderColor": "var(--rd-color-primary-lighter)",
358358
"borderWidth": 0.5
359359
},
360360
"label": {
361-
"color": "var(--d-color-primary-lighter)"
361+
"color": "var(--rd-color-primary-lighter)"
362362
}
363363
}
364364
},
@@ -369,7 +369,7 @@
369369
"backgroundColor": "transparent",
370370
"handleSize": "100%",
371371
"textStyle": {
372-
"color": "var(--d-text-color-sub)"
372+
"color": "var(--rd-text-color-sub)"
373373
}
374374
},
375375
"markPoint": {

packages/platform/src/app/components/map/MapInfoWindow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function AppMapInfoWindow(props: AppMapInfoWindowProps): JSX.Element | nu
6262
if (isUndefined(aPosition)) {
6363
throw new Error('`aPosition` is required when `aVisible` is `true`!');
6464
}
65-
(infoWindow.open as any)(map, aPosition);
65+
infoWindow.open(map, aPosition);
6666

6767
return () => {
6868
map.clearInfoWindow();

packages/platform/src/app/components/map/MapMarker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ export function AppMapMarker(props: AppMapMarkerProps): JSX.Element | null {
4747
: aOptions.offset,
4848
},
4949
AMAP_V1
50-
? ({
50+
? {
5151
resizeEnable: aOptions['reresizeEnable'] ?? true,
52-
} as any)
52+
}
5353
: {}
5454
)
5555
);

packages/platform/src/app/routes/dashboard/amap/AMap.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ export default function AMap(): JSX.Element | null {
2525
/>
2626
<AppMap
2727
style={{ paddingTop: '61.8%' }}
28-
aOptions={
29-
{
30-
center: [104.937478, 35.439575],
31-
zoom: 5,
32-
} as any
33-
}
28+
aOptions={{
29+
center: [104.937478, 35.439575],
30+
zoom: 5,
31+
}}
3432
>
3533
{mapTmp === 'Marker' ? (
3634
<AppMap.Marker aOptions={{ position: [116.406315, 39.908775] }}></AppMap.Marker>

packages/platform/src/app/routes/exception/Exception.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
margin-bottom: 16px;
4949
/* stylelint-disable-next-line declaration-property-value-allowed-list */
5050
font-size: 24px;
51-
color: var(--d-text-color-sub);
51+
color: var(--#{$rd-prefix}text-color-sub);
5252
text-align: center;
5353

5454
@include media-breakpoint-up(md) {

packages/platform/src/app/routes/layout/header/Header.module.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
width: 100%;
1010
height: 64px;
1111
padding: 0 16px 0 0;
12-
color: map.get($d-colors, 'white');
12+
color: map.get($rd-colors, 'white');
1313
/* stylelint-disable-next-line declaration-property-value-allowed-list */
1414
background-color: #001529;
15-
box-shadow: 0 2px 8px 0 var(--d-shadow-color);
15+
box-shadow: 0 2px 8px 0 var(--#{$rd-prefix}shadow-color);
1616

1717
@include e(logo-container) {
1818
display: inline-flex;
@@ -30,7 +30,7 @@
3030

3131
@include e(logo-title-wrapper) {
3232
overflow: hidden;
33-
transition: width var(--d-animation-duration-base) linear;
33+
transition: width var(--#{$rd-prefix}animation-duration-base) linear;
3434
}
3535

3636
@include e(logo-title) {
@@ -52,7 +52,7 @@
5252
text-decoration: none;
5353
background-color: transparent;
5454
border: none;
55-
transition: background-color var(--d-animation-duration-base) linear;
55+
transition: background-color var(--#{$rd-prefix}animation-duration-base) linear;
5656

5757
&:hover {
5858
/* stylelint-disable-next-line declaration-property-value-allowed-list */

packages/platform/src/app/routes/layout/header/notification/Notification.module.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
@import '~styles/module';
22

33
@include b(notification) {
4-
:global .d-popover__body {
4+
:global .rd-popover__body {
55
width: 320px;
66
padding: 0;
77
}
88

99
@include m(spinner) {
10-
:global .d-popover__body {
10+
:global .rd-popover__body {
1111
width: unset;
1212
padding: 16px 32px;
1313
}
@@ -17,10 +17,10 @@
1717
padding-right: 16px;
1818
padding-left: 16px;
1919
cursor: pointer;
20-
transition: background-color var(--d-animation-duration-base) linear;
20+
transition: background-color var(--#{$rd-prefix}animation-duration-base) linear;
2121

2222
&:hover {
23-
background-color: var(--d-background-color-hover);
23+
background-color: var(--#{$rd-prefix}background-color-hover);
2424
}
2525

2626
@include m(read) {
@@ -33,9 +33,9 @@
3333
display: flex;
3434
align-items: stretch;
3535
height: 44px;
36-
border-top: 1px solid var(--d-color-divider);
36+
border-top: 1px solid var(--#{$rd-prefix}color-divider);
3737

38-
:global .d-button {
38+
:global .rd-button {
3939
flex-grow: 1;
4040
}
4141
}

packages/platform/src/app/routes/layout/sidebar/Sidebar.module.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
height: 100%;
77
padding: 0;
88
overflow: hidden auto;
9-
background-color: var(--d-background-color);
10-
box-shadow: -2px 0 8px 0 var(--d-shadow-color);
9+
background-color: var(--#{$rd-prefix}background-color);
10+
box-shadow: -2px 0 8px 0 var(--#{$rd-prefix}shadow-color);
1111

1212
@include e(drawer) {
13-
:global .d-drawer__body {
13+
:global .rd-drawer__body {
1414
padding: 0;
1515
}
1616
}

packages/platform/src/app/routes/login/Login.module.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
@include e(description) {
3737
margin: 10px 0 0;
38-
color: rgb(var(--d-text-color-rgb) / 80%);
38+
color: rgb(var(--#{$rd-prefix}text-color-rgb) / 80%);
3939
text-align: center;
4040
}
4141

@@ -63,8 +63,8 @@
6363
width: 100%;
6464
max-width: 900px;
6565
margin-top: 60px;
66-
color: var(--d-text-color-sub);
67-
border-top: 1px solid var(--d-color-border);
66+
color: var(--#{$rd-prefix}text-color-sub);
67+
border-top: 1px solid var(--#{$rd-prefix}color-border);
6868

6969
@include media-breakpoint-up(md) {
7070
flex-direction: row;

0 commit comments

Comments
 (0)