From 9a57f0aeab865bad296c781d11e272878c2b0b78 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 21 Jul 2019 21:33:26 +0100 Subject: [PATCH] JSON now comes from external file --- src/components/Item.vue | 71 ++++++++++++++++++++++++++++++++++++ src/components/ItemGroup.vue | 8 ++++ src/data/item-data.json | 5 ++- src/views/Home.vue | 8 +++- 4 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 src/components/Item.vue diff --git a/src/components/Item.vue b/src/components/Item.vue new file mode 100644 index 00000000..b545c349 --- /dev/null +++ b/src/components/Item.vue @@ -0,0 +1,71 @@ + + + + + + diff --git a/src/components/ItemGroup.vue b/src/components/ItemGroup.vue index 69a41e41..97d8b53b 100644 --- a/src/components/ItemGroup.vue +++ b/src/components/ItemGroup.vue @@ -5,16 +5,24 @@ No Items to Show Yet +
+ +
diff --git a/src/data/item-data.json b/src/data/item-data.json index 9ac68f67..d51f7a9f 100644 --- a/src/data/item-data.json +++ b/src/data/item-data.json @@ -1,9 +1,10 @@ [ { - "name": "", + "id": "0", + "name": "Server Management", "items": [ { - "title": "", + "title": "Tile 1!", "description": "", "provider": "", "icon": "", diff --git a/src/views/Home.vue b/src/views/Home.vue index a98846a8..1797cc94 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -3,7 +3,7 @@

{{title}}

{{subtitle}}
- +
@@ -13,12 +13,18 @@