File tree Expand file tree Collapse file tree 9 files changed +29
-29
lines changed Expand file tree Collapse file tree 9 files changed +29
-29
lines changed Original file line number Diff line number Diff line change 5
5
< link rel ="shortcut icon " href ="images/icon-16.png ">
6
6
</ head >
7
7
< body >
8
- < div id ="linkStack ">
8
+ < div id ="link-stack ">
9
9
</ div >
10
10
</ body >
11
11
</ html >
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export class Line extends React.Component<LineProps> {
62
62
< div className = "line" >
63
63
{ removeLink }
64
64
{ mainLink }
65
- < span className = "sourceConn " >
65
+ < span className = "source-connector " >
66
66
< Icon type = "arrow-left" />
67
67
</ span >
68
68
{ sourceLink }
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ export class Link extends React.Component<LinkProps> {
21
21
target = "_blank"
22
22
title = { title }
23
23
>
24
- < div className = "faviconWrapper " >
24
+ < div className = "favicon-wrapper " >
25
25
< img
26
26
className = "favicon"
27
27
src = { "https://www.google.com/s2/favicons?domain=" + hostname }
28
28
/>
29
29
</ div >
30
- < span className = "linkText " > { title } </ span >
30
+ < span className = "link-text " > { title } </ span >
31
31
</ a >
32
32
) ;
33
33
}
Original file line number Diff line number Diff line change @@ -13,22 +13,22 @@ export class LinkStack extends React.Component {
13
13
< Consumer >
14
14
{ ( model : ViewModel | null ) =>
15
15
model ? (
16
- < div className = "linkStackContent " >
16
+ < div className = "content " >
17
17
< div
18
18
className = {
19
- "syncIndicator " +
19
+ "sync-indicator " +
20
20
( model . state . unsyncedUpdate ? "" : " hidden" )
21
21
}
22
22
/>
23
23
< TitleBar />
24
24
{ model . state . graph . ids . length > 0 ? (
25
- < div className = "innerLinkStack " >
25
+ < div className = "inner-link-stack " >
26
26
{ model . state . graph . ids . map ( id => (
27
27
< Line key = { id } id = { id } />
28
28
) ) }
29
29
</ div >
30
30
) : (
31
- < div className = "innerLinkStackInfo " >
31
+ < div className = "inner-link-stack-info " >
32
32
{ helpMessages [ texts . lang ] }
33
33
</ div >
34
34
) }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class RootSelector extends React.Component<
36
36
< p >
37
37
{ model . state . bookmarkTreeSelection ? (
38
38
< Cascader
39
- className = "rootSelector "
39
+ className = "root-selector "
40
40
options = { model . state . bookmarkTreeSelection . tree }
41
41
defaultValue = { model . state . bookmarkTreeSelection . path }
42
42
changeOnSelect
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ export class TitleBar extends React.Component {
24
24
if ( ! model ) return ;
25
25
this . model = model ;
26
26
return (
27
- < div className = "titleBar " >
27
+ < div className = "title-bar " >
28
28
{ this . model . state . id ? (
29
29
[
30
- < span className = "rootTitle " > { model . state . name } </ span > ,
30
+ < span className = "root-title " > { model . state . name } </ span > ,
31
31
< Divider type = "vertical" /> ,
32
32
< Tooltip
33
33
title = { texts . changeBookmarkFolder }
@@ -45,10 +45,10 @@ export class TitleBar extends React.Component {
45
45
</ a >
46
46
) }
47
47
< RootSelector />
48
- < span className = "elasticSpace " />
48
+ < span className = "elastic-space " />
49
49
{ this . model . state . graph . ids . length > 0
50
50
? [
51
- < a className = "secondaryLink " onClick = { this . onClickShowHelp } >
51
+ < a className = "secondary-link " onClick = { this . onClickShowHelp } >
52
52
{ texts . help + " " }
53
53
< Icon type = "question-circle-o" />
54
54
</ a > ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Tag from "antd/lib/tag";
4
4
import * as React from "react" ;
5
5
6
6
export const defaultShortcut = (
7
- < span className = "keyboardCombination " >
7
+ < span className = "keyboard-combi " >
8
8
< Tag > Alt</ Tag > + < Tag > Shift</ Tag > + < Tag > 2</ Tag >
9
9
</ span >
10
10
) ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ window.onload = async () => {
30
30
</ div >
31
31
] }
32
32
</ Provider > ,
33
- document . getElementById ( "linkStack " )
33
+ document . getElementById ( "link-stack " )
34
34
) ;
35
35
document . title = texts . extTitle ( state . graph . ids . length ) ;
36
36
} ) ;
Original file line number Diff line number Diff line change 21
21
flex-shrink : 0 ;
22
22
}
23
23
24
- .secondaryLink {
24
+ .secondary-link {
25
25
color : @text-color-secondary ;
26
26
}
27
27
28
- #linkStack {
28
+ #link-stack {
29
29
display : flex ;
30
30
flex-direction : column ;
31
31
padding : @large-gap ;
44
44
}
45
45
}
46
46
47
- .linkStackContent {
47
+ .content {
48
48
position : relative ;
49
49
margin-bottom : @large-gap ;
50
50
padding-bottom : @large-gap ;
60
60
}
61
61
}
62
62
63
- .syncIndicator {
63
+ .sync-indicator {
64
64
position : absolute ;
65
65
top : @text-height ;
66
66
right : @text-height ;
76
76
}
77
77
}
78
78
79
- .titleBar {
79
+ .title-bar {
80
80
display : flex ;
81
81
margin-bottom : @large-gap ;
82
82
padding : 16px @large-gap ;
85
85
justify-content : space-between ;
86
86
align-items : center ;
87
87
88
- .rootTitle {
88
+ .root-title {
89
89
font-weight : 500 ;
90
90
font-size : @font-size-lg ;
91
91
line-height : @font-size-lg ;
92
92
}
93
93
94
- .elasticSpace {
94
+ .elastic-space {
95
95
flex-grow : 1 ;
96
96
}
97
97
}
98
98
99
- .innerLinkStack {
99
+ .inner-link-stack {
100
100
overflow : hidden ;
101
101
margin : 0 @large-gap ;
102
102
134
134
max-width : 200px ;
135
135
}
136
136
137
- .faviconWrapper {
137
+ .favicon-wrapper {
138
138
display : flex ;
139
139
margin-right : @border-width ;
140
140
width : @content-height ;
146
146
justify-content : center ;
147
147
}
148
148
149
- .linkText {
149
+ .link-text {
150
150
overflow : hidden ;
151
151
padding : (@content-height - @text-height ) / 2 ;
152
152
color : white ;
157
157
}
158
158
}
159
159
160
- .sourceConn , .remove {
160
+ .source-connector , .remove {
161
161
padding : (@content-height - @text-height ) / 2 ;
162
162
width : @block-height ;
163
163
height : @block-height ;
183
183
}
184
184
}
185
185
186
- .innerLinkStackInfo {
186
+ .inner-link-stack-info {
187
187
margin : 0 auto ;
188
188
padding : 0 @large-gap ;
189
189
max-width : 520px ; // Ant Design Modal's default width
206
206
}
207
207
}
208
208
209
- .rootSelector {
209
+ .root-selector {
210
210
width : 100% ;
211
211
}
212
212
@@ -218,6 +218,6 @@ span.process {
218
218
color : @processing-color ;
219
219
}
220
220
221
- span .keyboardCombination > .@{tag-prefix-cls} {
221
+ span .keyboard-combi > .@{tag-prefix-cls} {
222
222
margin-right : 0 ;
223
223
}
You can’t perform that action at this time.
0 commit comments