From 5ce819577988983102480e013d04da6830a727ca Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 20 Mar 2022 13:57:45 -0500 Subject: [PATCH] Separated Links into a feature and Context --- .../{links/Links.vue => Context.vue} | 43 +++--------- src/components/Layer.vue | 19 +++--- src/components/Modal.vue | 15 ++--- .../{links/LinkNode.vue => Node.vue} | 10 +-- src/features/achievements/Achievement.vue | 6 +- src/features/bars/Bar.vue | 6 +- src/features/boards/board.ts | 2 +- src/features/challenges/Challenge.vue | 6 +- src/features/clickables/Clickable.vue | 6 +- src/features/grids/GridCell.vue | 6 +- src/features/infoboxes/Infobox.vue | 6 +- src/features/links.ts | 24 ------- src/{components => features}/links/Link.vue | 7 +- src/features/links/Links.vue | 37 +++++++++++ src/features/links/links.ts | 65 +++++++++++++++++++ src/features/milestones/Milestone.vue | 6 +- src/features/trees/Tree.vue | 9 ++- src/features/trees/TreeNode.vue | 6 +- src/features/trees/tree.ts | 6 +- src/features/upgrades/Upgrade.vue | 6 +- src/game/layers.tsx | 22 +++++-- 21 files changed, 188 insertions(+), 125 deletions(-) rename src/components/{links/Links.vue => Context.vue} (62%) rename src/components/{links/LinkNode.vue => Node.vue} (75%) delete mode 100644 src/features/links.ts rename src/{components => features}/links/Link.vue (88%) create mode 100644 src/features/links/Links.vue create mode 100644 src/features/links/links.ts diff --git a/src/components/links/Links.vue b/src/components/Context.vue similarity index 62% rename from src/components/links/Links.vue rename to src/components/Context.vue index 701de9f..f123221 100644 --- a/src/components/links/Links.vue +++ b/src/components/Context.vue @@ -1,35 +1,21 @@