From 4ef5071bd6cad7d78f8386670831692b45bdaf1b Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Thu, 22 Dec 2016 14:49:33 -0800 Subject: [PATCH 1/2] . --- src/app/examples/example-module.ts | 2 +- .../{icon-svg-example => icon-svg}/icon-svg-example.css | 0 .../{icon-svg-example => icon-svg}/icon-svg-example.html | 0 .../examples/{icon-svg-example => icon-svg}/icon-svg-example.ts | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename src/app/examples/{icon-svg-example => icon-svg}/icon-svg-example.css (100%) rename src/app/examples/{icon-svg-example => icon-svg}/icon-svg-example.html (100%) rename src/app/examples/{icon-svg-example => icon-svg}/icon-svg-example.ts (100%) diff --git a/src/app/examples/example-module.ts b/src/app/examples/example-module.ts index 548c8d000..e39bb4327 100644 --- a/src/app/examples/example-module.ts +++ b/src/app/examples/example-module.ts @@ -52,7 +52,7 @@ import {SliderOverviewExample} from './slider-overview/slider-overview-example'; import { SlideToggleConfigurableExample } from './slide-toggle-configurable/slide-toggle-configurable-example'; -import {IconSvgExample} from './icon-svg-example/icon-svg-example'; +import {IconSvgExample} from './icon-svg/icon-svg-example'; import {SidenavFabExample} from './sidenav-fab/sidenav-fab-example'; import {CardOverviewExample} from './card-overview/card-overview-example'; import { diff --git a/src/app/examples/icon-svg-example/icon-svg-example.css b/src/app/examples/icon-svg/icon-svg-example.css similarity index 100% rename from src/app/examples/icon-svg-example/icon-svg-example.css rename to src/app/examples/icon-svg/icon-svg-example.css diff --git a/src/app/examples/icon-svg-example/icon-svg-example.html b/src/app/examples/icon-svg/icon-svg-example.html similarity index 100% rename from src/app/examples/icon-svg-example/icon-svg-example.html rename to src/app/examples/icon-svg/icon-svg-example.html diff --git a/src/app/examples/icon-svg-example/icon-svg-example.ts b/src/app/examples/icon-svg/icon-svg-example.ts similarity index 100% rename from src/app/examples/icon-svg-example/icon-svg-example.ts rename to src/app/examples/icon-svg/icon-svg-example.ts From 3eeecfa21996f512650c579645648b300c8c68c1 Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Tue, 27 Dec 2016 11:46:17 -0800 Subject: [PATCH 2/2] Add svg file --- src/app/examples/example-module.ts | 5 ++++- .../examples/icon-svg/assets/img/examples/thumbup-icon.svg | 4 ++++ .../{icon-svg-example => icon-svg}/icon-svg-example.css | 0 .../{icon-svg-example => icon-svg}/icon-svg-example.html | 0 .../{icon-svg-example => icon-svg}/icon-svg-example.ts | 0 5 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/assets/plunker/examples/icon-svg/assets/img/examples/thumbup-icon.svg rename src/assets/plunker/examples/{icon-svg-example => icon-svg}/icon-svg-example.css (100%) rename src/assets/plunker/examples/{icon-svg-example => icon-svg}/icon-svg-example.html (100%) rename src/assets/plunker/examples/{icon-svg-example => icon-svg}/icon-svg-example.ts (100%) diff --git a/src/app/examples/example-module.ts b/src/app/examples/example-module.ts index e39bb4327..e170b7272 100644 --- a/src/app/examples/example-module.ts +++ b/src/app/examples/example-module.ts @@ -108,7 +108,10 @@ export const EXAMPLE_COMPONENTS = { 'grid-list-dynamic': {title: 'Dynamic grid-list', component: GridListDynamicExample}, 'grid-list-overview': {title: 'Basic grid-list', component: GridListOverviewExample}, 'icon-overview': {title: 'Basic icons', component: IconOverviewExample}, - 'icon-svg': {title: 'SVG icons', component: IconSvgExample}, + 'icon-svg': { + title: 'SVG icons', + component: IconSvgExample, + additionalFiles: ['assets/img/examples/thumbup-icon.svg']}, 'input-form': {title: 'Inputs in a form', component: InputFormExample}, 'input-overview': {title: 'Basic inputs', component: InputOverviewExample}, 'list-overview': {title: 'Basic list', component: ListOverviewExample}, diff --git a/src/assets/plunker/examples/icon-svg/assets/img/examples/thumbup-icon.svg b/src/assets/plunker/examples/icon-svg/assets/img/examples/thumbup-icon.svg new file mode 100644 index 000000000..2391a9f66 --- /dev/null +++ b/src/assets/plunker/examples/icon-svg/assets/img/examples/thumbup-icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/assets/plunker/examples/icon-svg-example/icon-svg-example.css b/src/assets/plunker/examples/icon-svg/icon-svg-example.css similarity index 100% rename from src/assets/plunker/examples/icon-svg-example/icon-svg-example.css rename to src/assets/plunker/examples/icon-svg/icon-svg-example.css diff --git a/src/assets/plunker/examples/icon-svg-example/icon-svg-example.html b/src/assets/plunker/examples/icon-svg/icon-svg-example.html similarity index 100% rename from src/assets/plunker/examples/icon-svg-example/icon-svg-example.html rename to src/assets/plunker/examples/icon-svg/icon-svg-example.html diff --git a/src/assets/plunker/examples/icon-svg-example/icon-svg-example.ts b/src/assets/plunker/examples/icon-svg/icon-svg-example.ts similarity index 100% rename from src/assets/plunker/examples/icon-svg-example/icon-svg-example.ts rename to src/assets/plunker/examples/icon-svg/icon-svg-example.ts