From 775222b6518324a8cb44a800c256ca98f2a1449b Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 17 May 2022 16:05:53 +0200 Subject: add master website --- master/src/App.vue | 30 ++++++++++++++++ master/src/assets/logo.png | Bin 0 -> 6849 bytes master/src/components/HelloWorld.vue | 64 +++++++++++++++++++++++++++++++++++ master/src/main.ts | 5 +++ master/src/router/index.ts | 25 ++++++++++++++ master/src/shims-vue.d.ts | 6 ++++ master/src/views/AboutView.vue | 5 +++ master/src/views/HomeView.vue | 18 ++++++++++ 8 files changed, 153 insertions(+) create mode 100644 master/src/App.vue create mode 100644 master/src/assets/logo.png create mode 100644 master/src/components/HelloWorld.vue create mode 100644 master/src/main.ts create mode 100644 master/src/router/index.ts create mode 100644 master/src/shims-vue.d.ts create mode 100644 master/src/views/AboutView.vue create mode 100644 master/src/views/HomeView.vue (limited to 'master/src') diff --git a/master/src/App.vue b/master/src/App.vue new file mode 100644 index 0000000..ec98c47 --- /dev/null +++ b/master/src/App.vue @@ -0,0 +1,30 @@ + + + diff --git a/master/src/assets/logo.png b/master/src/assets/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/master/src/assets/logo.png differ diff --git a/master/src/components/HelloWorld.vue b/master/src/components/HelloWorld.vue new file mode 100644 index 0000000..f68982b --- /dev/null +++ b/master/src/components/HelloWorld.vue @@ -0,0 +1,64 @@ + + + + + + diff --git a/master/src/main.ts b/master/src/main.ts new file mode 100644 index 0000000..3e79677 --- /dev/null +++ b/master/src/main.ts @@ -0,0 +1,5 @@ +import { createApp } from 'vue' +import App from './App.vue' +import router from './router' + +createApp(App).use(router).mount('#app') diff --git a/master/src/router/index.ts b/master/src/router/index.ts new file mode 100644 index 0000000..df8090e --- /dev/null +++ b/master/src/router/index.ts @@ -0,0 +1,25 @@ +import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router' +import HomeView from '../views/HomeView.vue' + +const routes: Array = [ + { + path: '/', + name: 'home', + component: HomeView + }, + { + path: '/about', + name: 'about', + // 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/AboutView.vue') + } +] + +const router = createRouter({ + history: createWebHashHistory(), + routes +}) + +export default router diff --git a/master/src/shims-vue.d.ts b/master/src/shims-vue.d.ts new file mode 100644 index 0000000..3804a43 --- /dev/null +++ b/master/src/shims-vue.d.ts @@ -0,0 +1,6 @@ +/* eslint-disable */ +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} diff --git a/master/src/views/AboutView.vue b/master/src/views/AboutView.vue new file mode 100644 index 0000000..3fa2807 --- /dev/null +++ b/master/src/views/AboutView.vue @@ -0,0 +1,5 @@ + diff --git a/master/src/views/HomeView.vue b/master/src/views/HomeView.vue new file mode 100644 index 0000000..8e628bd --- /dev/null +++ b/master/src/views/HomeView.vue @@ -0,0 +1,18 @@ + + + -- cgit v1.2.3-18-g5258