summaryrefslogtreecommitdiff
path: root/iridescence/src
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-09-11 17:08:28 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-09-11 17:08:28 -0400
commitc3c8633a7cd0343ce36dd0d254ace605303e1a1d (patch)
treec06b6489412038055077e2538abc7190601eff4d /iridescence/src
parent8ac8ad09c71b10597a354eabf81cbafa14f00940 (diff)
downloadtheglassyladies-c3c8633a7cd0343ce36dd0d254ace605303e1a1d.tar.xz
theglassyladies-c3c8633a7cd0343ce36dd0d254ace605303e1a1d.zip
migrated back from typescript
Diffstat (limited to 'iridescence/src')
-rw-r--r--iridescence/src/App.vue2
-rw-r--r--iridescence/src/components/Navbar.vue2
-rw-r--r--iridescence/src/models/category.js1
-rw-r--r--iridescence/src/router/index.js11
-rw-r--r--iridescence/src/views/About.vue2
-rw-r--r--iridescence/src/views/Admin.vue15
6 files changed, 19 insertions, 14 deletions
diff --git a/iridescence/src/App.vue b/iridescence/src/App.vue
index 4094265..fa08cab 100644
--- a/iridescence/src/App.vue
+++ b/iridescence/src/App.vue
@@ -20,6 +20,6 @@ export default {
</script>
<style lang="scss">
-@import "../node_modules/bulma/bulma.sass";
+@use "../node_modules/bulma/bulma.sass";
@import url("https://fonts.googleapis.com/css2?family=Nova+Mono&display=swap");
</style>
diff --git a/iridescence/src/components/Navbar.vue b/iridescence/src/components/Navbar.vue
index 8c2f0a6..65d5032 100644
--- a/iridescence/src/components/Navbar.vue
+++ b/iridescence/src/components/Navbar.vue
@@ -61,8 +61,6 @@
</template>
<script>
-import Category from "~models/category.js";
-
export default {
name: "Navbar",
data() {
diff --git a/iridescence/src/models/category.js b/iridescence/src/models/category.js
index 689c98f..04966f5 100644
--- a/iridescence/src/models/category.js
+++ b/iridescence/src/models/category.js
@@ -1,3 +1,4 @@
+
export class Category {
name: string;
subcategory: Category;
diff --git a/iridescence/src/router/index.js b/iridescence/src/router/index.js
index 28b1079..8c05e28 100644
--- a/iridescence/src/router/index.js
+++ b/iridescence/src/router/index.js
@@ -1,6 +1,8 @@
import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
+import About from "../views/About.vue";
+import Admin from "../views/Admin.vue";
Vue.use(VueRouter);
@@ -16,22 +18,19 @@ const routes = [
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
- component: () =>
- import(/* webpackChunkName: "about" */ "../views/About.vue")
+ component: About
},
{
path: "/admin",
name: "Administration",
- component: () =>
- import(/* webpackChunkName: "admin" */ "../views/Admin.vue")
+ component: Admin
}
];
const router = new VueRouter({
mode: "history",
base: process.env.BASE_URL,
- routes: routes,
- linkExactActiveClass: "is-active"
+ routes
});
export default router;
diff --git a/iridescence/src/views/About.vue b/iridescence/src/views/About.vue
index 0dce204..3fa2807 100644
--- a/iridescence/src/views/About.vue
+++ b/iridescence/src/views/About.vue
@@ -1,5 +1,5 @@
<template>
- <div>
+ <div class="about">
<h1>This is an about page</h1>
</div>
</template>
diff --git a/iridescence/src/views/Admin.vue b/iridescence/src/views/Admin.vue
index f51d3c4..a14cc7f 100644
--- a/iridescence/src/views/Admin.vue
+++ b/iridescence/src/views/Admin.vue
@@ -1,7 +1,14 @@
<template>
- <!-- The Administrators' page lets artists/admins add or remove inventory
- items and update their prices, descriptions, stock, and thumbnails. -->
- <div>
- <h1>This is an admin page</h1>
+ <div class="home">
+ <img alt="Vue logo" src="../assets/logo.png" />
</div>
</template>
+
+<script>
+// @ is an alias to /src
+
+export default {
+ name: "Admin",
+ components: {}
+};
+</script>