Skip to content

Commit 2487ff7

Browse files
committed
removed svg-inject dependency from ui
1 parent 0b44850 commit 2487ff7

6 files changed

Lines changed: 10 additions & 26 deletions

File tree

native/app/Embedded/ui.zip

-2.17 KB
Binary file not shown.

ui/package-lock.json

Lines changed: 8 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eqmac",
3-
"version": "1.0.3",
3+
"version": "1.1.0",
44
"scripts": {
55
"start": "ng serve",
66
"build": "rm -rf dist/ && ng build --prod && cd dist/ && zip -r -D ui.zip * -x '*.DS_Store' && cp ui.zip ../../native/app/Embedded",
@@ -22,7 +22,6 @@
2222
"@angular/pwa": "^0.803.8",
2323
"@angular/router": "~8.2.9",
2424
"@angular/service-worker": "~8.2.9",
25-
"@iconfu/svg-inject": "^1.2.3",
2625
"core-js": "^3.2.1",
2726
"js-cookie": "^2.2.1",
2827
"ng-click-outside": "^5.1.1",

ui/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import '@iconfu/svg-inject'
21
import {
32
Component,
43
OnInit,
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
<!-- <ng-content></ng-content> -->
2-
<div class="container" [ngStyle]="style" [innerHtml]="svg">
3-
<!-- <img #icon [src]="'assets/icons/' + name + '.svg'" onload="SVGInject(this)"/> -->
4-
</div>
1+
<div class="container" [ngStyle]="style" [innerHtml]="svg"></div>

ui/src/app/modules/eqmac-components/components/knob/knob.component.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
<!-- Large -->
66
<div *ngIf="size === 'large'" class="knob large">
7-
<!-- <img class="scale" src="assets/knobs/large/scale.svg" onload="SVGInject(this)" /> -->
8-
<!-- Generator: Adobe Illustrator 24.1.1, SVG Export Plug-In -->
97
<svg class="scale" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
108
x="0px" y="0px" width="175.82px" height="144.94px" viewBox="0 0 175.82 144.94"
119
style="enable-background:new 0 0 175.82 144.94;" xml:space="preserve">
@@ -56,7 +54,6 @@
5654

5755
<!-- Medium -->
5856
<div *ngIf="size === 'medium'" class="knob medium">
59-
<!-- <img class="scale" src="assets/knobs/medium/scale.svg" onload="SVGInject(this)" /> -->
6057
<svg class="scale" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
6158
<g>
6259
<path
@@ -72,13 +69,11 @@
7269
d="M19.000,38.000 C8.507,38.000 -0.000,29.493 -0.000,19.000 C-0.000,8.844 7.974,0.574 18.000,0.050 L18.000,13.000 C18.000,13.552 18.448,14.000 19.000,14.000 C19.552,14.000 20.000,13.552 20.000,13.000 L20.000,0.050 C30.026,0.574 38.000,8.844 38.000,19.000 C38.000,29.493 29.493,38.000 19.000,38.000 Z" />
7370
</g>
7471
</svg>
75-
<!-- <img src="assets/knobs/medium/cap.svg" onload="SVGInject(this)" /> -->
7672
</div>
7773
</div>
7874

7975
<!-- Small -->
8076
<div *ngIf="size === 'small'" class="knob small">
81-
<!-- <img class="scale" src="assets/knobs/small/scale.svg" onload="SVGInject(this)" /> -->
8277
<svg class="scale" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
8378
xml:space="preserve">
8479
<g>
@@ -97,7 +92,6 @@
9792
d="M12.000,24.000 C5.373,24.000 -0.000,18.627 -0.000,12.000 C-0.000,5.710 4.842,0.560 11.000,0.050 L11.000,6.000 C11.000,6.552 11.448,7.000 12.000,7.000 C12.552,7.000 13.000,6.552 13.000,6.000 L13.000,0.050 C19.158,0.560 24.000,5.710 24.000,12.000 C24.000,18.627 18.627,24.000 12.000,24.000 Z" />
9893
</g>
9994
</svg>
100-
<!-- <img src="assets/knobs/small/cap.svg" onload="SVGInject(this)" /> -->
10195
</div>
10296
</div>
10397
</div>

0 commit comments

Comments
 (0)