From 71d082b599a46c5c2b57f79e747bd3ceea586f35 Mon Sep 17 00:00:00 2001 From: Ayumi Takahashi Date: Sat, 9 Dec 2023 14:01:15 +0900 Subject: [PATCH 1/2] Add up right arrow icon and project icon --- packages/Icons/index.ts | 6 ++++++ packages/Icons/src/IconArrowUpRight.vue | 14 ++++++++++++++ packages/Icons/src/IconProject.vue | 14 ++++++++++++++ src/stories/Icons/IconArrowUpRight.stories.js | 11 +++++++++++ src/stories/Icons/IconProject.stories.js | 11 +++++++++++ 5 files changed, 56 insertions(+) create mode 100644 packages/Icons/src/IconArrowUpRight.vue create mode 100644 packages/Icons/src/IconProject.vue create mode 100644 src/stories/Icons/IconArrowUpRight.stories.js create mode 100644 src/stories/Icons/IconProject.stories.js diff --git a/packages/Icons/index.ts b/packages/Icons/index.ts index 7e433fe..da4a748 100644 --- a/packages/Icons/index.ts +++ b/packages/Icons/index.ts @@ -64,6 +64,8 @@ import IconTransfer from "./src/IconTransfer.vue"; import IconPerson from "./src/IconPerson.vue"; import IconFaucet from "./src/IconFaucet.vue"; import IconQuestion from "./src/IconQuestion.vue"; +import IconArrowUpRight from "./src/IconArrowUpRight.vue"; +import IconProject from "./src/IconProject.vue"; export const IconsPlugin: Plugin = { install(app: App) { @@ -131,6 +133,8 @@ export const IconsPlugin: Plugin = { app.component("astar-icon-person", IconPerson); app.component("astar-icon-faucet", IconFaucet); app.component("astar-icon-question", IconQuestion); + app.component("astar-icon-arrow-up-right", IconArrowUpRight); + app.component("astar-icon-project", IconProject); }, }; @@ -198,4 +202,6 @@ export { IconStar, IconTransfer, IconPerson, + IconArrowUpRight, + IconProject, }; diff --git a/packages/Icons/src/IconArrowUpRight.vue b/packages/Icons/src/IconArrowUpRight.vue new file mode 100644 index 0000000..8357005 --- /dev/null +++ b/packages/Icons/src/IconArrowUpRight.vue @@ -0,0 +1,14 @@ + diff --git a/packages/Icons/src/IconProject.vue b/packages/Icons/src/IconProject.vue new file mode 100644 index 0000000..6357729 --- /dev/null +++ b/packages/Icons/src/IconProject.vue @@ -0,0 +1,14 @@ + diff --git a/src/stories/Icons/IconArrowUpRight.stories.js b/src/stories/Icons/IconArrowUpRight.stories.js new file mode 100644 index 0000000..93052ca --- /dev/null +++ b/src/stories/Icons/IconArrowUpRight.stories.js @@ -0,0 +1,11 @@ +import IconArrowUpRight from "packages/Icons/src/IconArrowUpRight.vue"; + +export default { + title: "Icons/IconArrowUpRight", + component: IconArrowUpRight, +}; + +export const DefaultIcon = () => ({ + components: { IconArrowUpRight }, + template: "", +}); diff --git a/src/stories/Icons/IconProject.stories.js b/src/stories/Icons/IconProject.stories.js new file mode 100644 index 0000000..383d737 --- /dev/null +++ b/src/stories/Icons/IconProject.stories.js @@ -0,0 +1,11 @@ +import IconProject from "packages/Icons/src/IconProject.vue"; + +export default { + title: "Icons/IconProject", + component: IconProject, +}; + +export const DefaultIcon = () => ({ + components: { IconProject }, + template: "", +}); From 010fc47c7651133416b524792f132b3508fafde4 Mon Sep 17 00:00:00 2001 From: Ayumi Takahashi Date: Sun, 10 Dec 2023 13:18:19 +0900 Subject: [PATCH 2/2] add heart icon --- packages/Icons/index.ts | 3 +++ packages/Icons/src/IconHeart.vue | 14 ++++++++++++++ src/stories/Icons/IconHeart.stories.js | 11 +++++++++++ 3 files changed, 28 insertions(+) create mode 100644 packages/Icons/src/IconHeart.vue create mode 100644 src/stories/Icons/IconHeart.stories.js diff --git a/packages/Icons/index.ts b/packages/Icons/index.ts index da4a748..946b25c 100644 --- a/packages/Icons/index.ts +++ b/packages/Icons/index.ts @@ -66,6 +66,7 @@ import IconFaucet from "./src/IconFaucet.vue"; import IconQuestion from "./src/IconQuestion.vue"; import IconArrowUpRight from "./src/IconArrowUpRight.vue"; import IconProject from "./src/IconProject.vue"; +import IconHeart from "./src/IconHeart.vue"; export const IconsPlugin: Plugin = { install(app: App) { @@ -135,6 +136,7 @@ export const IconsPlugin: Plugin = { app.component("astar-icon-question", IconQuestion); app.component("astar-icon-arrow-up-right", IconArrowUpRight); app.component("astar-icon-project", IconProject); + app.component("astar-icon-heart", IconHeart); }, }; @@ -204,4 +206,5 @@ export { IconPerson, IconArrowUpRight, IconProject, + IconHeart }; diff --git a/packages/Icons/src/IconHeart.vue b/packages/Icons/src/IconHeart.vue new file mode 100644 index 0000000..d4eb087 --- /dev/null +++ b/packages/Icons/src/IconHeart.vue @@ -0,0 +1,14 @@ + diff --git a/src/stories/Icons/IconHeart.stories.js b/src/stories/Icons/IconHeart.stories.js new file mode 100644 index 0000000..952d39d --- /dev/null +++ b/src/stories/Icons/IconHeart.stories.js @@ -0,0 +1,11 @@ +import IconHeart from "packages/Icons/src/IconHeart.vue"; + +export default { + title: "Icons/IconHeart", + component: IconHeart, +}; + +export const DefaultIcon = () => ({ + components: { IconHeart }, + template: "", +});