@@ -30,25 +30,10 @@ export default function VisibilitySelect() {
3030 htmlFor = "main-view-visibility"
3131 >
3232 < div className = "jenkins-dropdown__item__icon" >
33- < svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 512 512" >
34- < path
35- d = "M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 00-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 000-17.47C428.89 172.28 347.8 112 255.66 112z"
36- fill = "none"
37- stroke = "currentColor"
38- strokeLinecap = "round"
39- strokeLinejoin = "round"
40- strokeWidth = "32"
41- />
42- < circle
43- cx = "256"
44- cy = "256"
45- r = "80"
46- fill = "none"
47- stroke = "currentColor"
48- strokeMiterlimit = "10"
49- strokeWidth = "32"
50- />
51- </ svg >
33+ < ViewIcon
34+ mainViewVisibility = { mainViewVisibility }
35+ stageViewPosition = { stageViewPosition }
36+ />
5237 </ div >
5338 Views
5439 < span >
@@ -74,20 +59,51 @@ export default function VisibilitySelect() {
7459 >
7560 < div className = "jenkins-dropdown__item__icon" >
7661 < svg xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 512 512" >
62+ < circle
63+ cx = "128"
64+ cy = "96"
65+ r = "48"
66+ fill = "none"
67+ stroke = "currentColor"
68+ strokeLinecap = "round"
69+ strokeLinejoin = "round"
70+ strokeWidth = "32"
71+ />
72+ < circle
73+ cx = "256"
74+ cy = "416"
75+ r = "48"
76+ fill = "none"
77+ stroke = "currentColor"
78+ strokeLinecap = "round"
79+ strokeLinejoin = "round"
80+ strokeWidth = "32"
81+ />
7782 < path
78- d = "M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"
7983 fill = "none"
8084 stroke = "currentColor"
81- strokeMiterlimit = "10"
85+ strokeLinecap = "round"
86+ strokeLinejoin = "round"
87+ strokeWidth = "32"
88+ d = "M256 256v112"
89+ />
90+ < circle
91+ cx = "384"
92+ cy = "96"
93+ r = "48"
94+ fill = "none"
95+ stroke = "currentColor"
96+ strokeLinecap = "round"
97+ strokeLinejoin = "round"
8298 strokeWidth = "32"
8399 />
84100 < path
101+ d = "M128 144c0 74.67 68.92 112 128 112M384 144c0 74.67-68.92 112-128 112"
85102 fill = "none"
86103 stroke = "currentColor"
87104 strokeLinecap = "round"
88105 strokeLinejoin = "round"
89106 strokeWidth = "32"
90- d = "M352 176L217.6 336 160 272"
91107 />
92108 </ svg >
93109 </ div >
@@ -108,3 +124,104 @@ export default function VisibilitySelect() {
108124 </ >
109125 ) ;
110126}
127+
128+ function ViewIcon ( {
129+ mainViewVisibility,
130+ stageViewPosition,
131+ } : {
132+ mainViewVisibility : MainViewVisibility ;
133+ stageViewPosition : StageViewPosition ;
134+ } ) {
135+ if ( mainViewVisibility === "both" && stageViewPosition === "top" ) {
136+ return (
137+ < svg
138+ width = "512px"
139+ height = "512px"
140+ viewBox = "0 0 512 512"
141+ version = "1.1"
142+ xmlns = "http://www.w3.org/2000/svg"
143+ >
144+ < g
145+ fill = "none"
146+ fillRule = "evenodd"
147+ stroke = "currentColor"
148+ strokeWidth = "32"
149+ >
150+ < rect x = "31" y = "86" width = "450" height = "340" rx = "70" />
151+ < line x1 = "31" y1 = "180" x2 = "470" y2 = "180" />
152+ < line x1 = "184" y1 = "180" x2 = "184" y2 = "420" />
153+ </ g >
154+ </ svg >
155+ ) ;
156+ }
157+
158+ if ( mainViewVisibility === "both" && stageViewPosition === "left" ) {
159+ return (
160+ < svg
161+ width = "512px"
162+ height = "512px"
163+ viewBox = "0 0 512 512"
164+ version = "1.1"
165+ xmlns = "http://www.w3.org/2000/svg"
166+ >
167+ < g
168+ fill = "none"
169+ fillRule = "evenodd"
170+ stroke = "currentColor"
171+ strokeWidth = "32"
172+ >
173+ < rect x = "31" y = "86" width = "450" height = "340" rx = "70" />
174+ < line x1 = "150" y1 = "100" x2 = "150" y2 = "420" />
175+ < line x1 = "280" y1 = "100" x2 = "280" y2 = "420" />
176+ </ g >
177+ </ svg >
178+ ) ;
179+ }
180+
181+ if ( mainViewVisibility === "stageOnly" && stageViewPosition === "top" ) {
182+ return (
183+ < svg
184+ width = "512px"
185+ height = "512px"
186+ viewBox = "0 0 512 512"
187+ version = "1.1"
188+ xmlns = "http://www.w3.org/2000/svg"
189+ >
190+ < g
191+ fill = "none"
192+ fillRule = "evenodd"
193+ stroke = "currentColor"
194+ strokeWidth = "32"
195+ >
196+ < rect x = "31" y = "86" width = "450" height = "340" rx = "70" />
197+ < line x1 = "31" y1 = "180" x2 = "470" y2 = "180" />
198+ </ g >
199+ </ svg >
200+ ) ;
201+ }
202+
203+ if (
204+ mainViewVisibility === "treeOnly" ||
205+ ( mainViewVisibility === "stageOnly" && stageViewPosition === "left" )
206+ ) {
207+ return (
208+ < svg
209+ width = "512px"
210+ height = "512px"
211+ viewBox = "0 0 512 512"
212+ version = "1.1"
213+ xmlns = "http://www.w3.org/2000/svg"
214+ >
215+ < g
216+ fill = "none"
217+ fillRule = "evenodd"
218+ stroke = "currentColor"
219+ strokeWidth = "32"
220+ >
221+ < rect x = "31" y = "86" width = "450" height = "340" rx = "70" />
222+ < line x1 = "184" y1 = "100" x2 = "184" y2 = "420" />
223+ </ g >
224+ </ svg >
225+ ) ;
226+ }
227+ }
0 commit comments