Skip to content

Commit 49f029c

Browse files
committed
[#131] add var-dump and ray icons to sidebar
1 parent 5ffccb8 commit 49f029c

File tree

4 files changed

+105
-2
lines changed

4 files changed

+105
-2
lines changed
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading

src/shared/ui/icon-svg/icon-svg.vue

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,82 @@ defineProps<Props>();
154154
/>
155155
</svg>
156156

157+
<svg
158+
v-else-if="name === 'ray'"
159+
viewBox="0 0 162 149"
160+
version="1.1"
161+
xmlns="http://www.w3.org/2000/svg"
162+
>
163+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
164+
<g
165+
fill-rule="nonzero"
166+
stroke="currentColor"
167+
stroke-opacity="0.99"
168+
stroke-width="10"
169+
>
170+
<path
171+
d="M128.25,8.54545455 C142.198959,8.54545455 153.5,19.884546 153.5,33.8636364 L153.5,115.136364 C153.5,129.115454 142.198959,140.454545 128.25,140.454545 L33.75,140.454545 C19.8010408,140.454545 8.5,129.115454 8.5,115.136364 L8.5,33.8636364 C8.5,19.884546 19.8010408,8.54545455 33.75,8.54545455 L128.25,8.54545455 Z M33.75,5 C17.8755827,5 5,17.9189349 5,33.8636364 L5,115.136364 C5,131.081065 17.8755827,144 33.75,144 L128.25,144 C144.124417,144 157,131.081065 157,115.136364 L157,33.8636364 C157,26.2049896 153.968246,18.861044 148.573383,13.4480163 C143.181747,8.03822678 135.871433,5 128.25,5 L33.75,5 Z"
172+
></path>
173+
</g>
174+
<g
175+
transform="translate(56.000000, 30.000000)"
176+
fill="currentColor"
177+
fill-rule="nonzero"
178+
>
179+
<path
180+
d="M47.9265939,45.165 L30.254532,32.875 L39.1634847,7.22 C39.4385038,6.55 39.5926812,5.795 39.5926812,5 C39.5926812,2.24 37.7383856,0 35.4382257,0 C34.4006535,0.02 33.5339266,0.415 32.8463788,1.07 C32.7088693,1.2 32.6255301,1.28 32.5546919,1.37 L1.30251918,36.87 C0.34828617,37.955 -0.122579899,39.515 0.02743053,41.08 C0.177440959,42.645 0.939993973,44.035 2.0734061,44.83 L19.749635,57.13 L10.7365084,83.08 C9.97395536,85.26 10.5948319,87.78 12.2116109,89.12 C12.9283274,89.71 13.7617187,90 14.5784421,90 C15.6118473,90 16.6452525,89.535 17.4453081,88.63 L48.6974808,53.12 C49.6517138,52.035 50.1225799,50.475 49.9725695,48.91 C49.822559,47.345 49.060006,45.955 47.9265939,45.165 Z"
181+
></path>
182+
</g>
183+
</g>
184+
</svg>
185+
186+
<svg
187+
v-else-if="name === 'var-dump'"
188+
viewBox="0 0 162 149"
189+
xmlns="http://www.w3.org/2000/svg"
190+
>
191+
<g
192+
id="Artboard"
193+
stroke="none"
194+
stroke-width="1"
195+
fill="none"
196+
fill-rule="evenodd"
197+
>
198+
<g
199+
id="inspector"
200+
fill-rule="nonzero"
201+
stroke="currentColor"
202+
stroke-opacity="0.99"
203+
stroke-width="10"
204+
>
205+
<path
206+
id="Shape"
207+
d="M128.25,8.54545455 C142.198959,8.54545455 153.5,19.884546 153.5,33.8636364 L153.5,115.136364 C153.5,129.115454 142.198959,140.454545 128.25,140.454545 L33.75,140.454545 C19.8010408,140.454545 8.5,129.115454 8.5,115.136364 L8.5,33.8636364 C8.5,19.884546 19.8010408,8.54545455 33.75,8.54545455 L128.25,8.54545455 Z M33.75,5 C17.8755827,5 5,17.9189349 5,33.8636364 L5,115.136364 C5,131.081065 17.8755827,144 33.75,144 L128.25,144 C144.124417,144 157,131.081065 157,115.136364 L157,33.8636364 C157,26.2049896 153.968246,18.861044 148.573383,13.4480163 C143.181747,8.03822678 135.871433,5 128.25,5 L33.75,5 Z"
208+
></path>
209+
</g>
210+
<g
211+
id="Group"
212+
transform="translate(37.000000, 42.000000)"
213+
fill="currentColor"
214+
>
215+
<text
216+
id="dump"
217+
font-family="ArialRoundedMTBold, Arial Rounded MT Bold"
218+
font-size="38"
219+
font-weight="normal"
220+
letter-spacing="3"
221+
>
222+
<tspan x="0.562011719" y="36">VAR</tspan>
223+
</text>
224+
<path
225+
id="Path"
226+
d="M3,61.5792683 C3,57.6317073 5.76666667,55 9.91666667,55 L79.0833333,55 C82.9033029,55 86,57.9456387 86,61.5792683 C86,65.2128978 82.9033029,68.1585366 79.0833333,68.1585366 L9.91666667,68.1585366 C6.09669715,68.1585366 3,65.2128978 3,61.5792683 Z"
227+
fill-rule="nonzero"
228+
></path>
229+
</g>
230+
</g>
231+
</svg>
232+
157233
<svg
158234
v-else-if="name === 'logo'"
159235
xmlns="http://www.w3.org/2000/svg"

src/widgets/ui/layout-sidebar/layout-sidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const path = computed(() => useRoute().path);
125125
class="layout-sidebar__link"
126126
:class="{ 'router-link-active': path.includes('/var-dump') }"
127127
>
128-
<IconSvg class="layout-sidebar__link-icon" name="inspector" />
128+
<IconSvg class="layout-sidebar__link-icon" name="var-dump" />
129129
</NuxtLink>
130130

131131
<NuxtLink
@@ -134,7 +134,7 @@ const path = computed(() => useRoute().path);
134134
class="layout-sidebar__link"
135135
:class="{ 'router-link-active': path.includes('/ray') }"
136136
>
137-
<IconSvg class="layout-sidebar__link-icon" name="inspector" />
137+
<IconSvg class="layout-sidebar__link-icon" name="ray" />
138138
</NuxtLink>
139139

140140
<NuxtLink to="/settings" title="Settings" class="layout-sidebar__link">

0 commit comments

Comments
 (0)