grim/devweb

Parents 842aeaa29bfd
Children 93e0bbec756e
Remove some components by just merging them into the templates of their parents
--- a/frontend/src/App.vue Mon Jan 25 02:57:10 2021 -0600
+++ b/frontend/src/App.vue Mon Jan 25 03:07:44 2021 -0600
@@ -1,17 +1,20 @@
<template>
- <Header/>
- <Contents/>
+ <div>
+ <span>DevWeb</span>
+ </div>
+ <div class="h-full flex flex-row items-stretch">
+ <Navigation/>
+ <router-view></router-view>
+ </div>
</template>
<script>
-import Contents from './components/Contents.vue'
-import Header from './components/Header.vue'
+import Navigation from './components/Navigation.vue'
export default {
name: 'App',
components: {
- Header,
- Contents
+ Navigation
}
}
</script>
--- a/frontend/src/components/Contents.vue Mon Jan 25 02:57:10 2021 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-<template>
- <div class="h-full flex flex-row items-stretch">
- <Navigation/>
- <router-view></router-view>
- </div>
-</template>
-
-<script>
-import Navigation from './Navigation.vue'
-
-export default {
- name: 'Contents',
- components: {
- Navigation
- }
-}
-</script>
--- a/frontend/src/components/Header.vue Mon Jan 25 02:57:10 2021 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-<template>
- <div>
- <span>DevWeb</span>
- </div>
-</template>
-
-<script>
-export default {
- name: 'Header'
-}
-</script>
--- a/frontend/src/components/Welcome.vue Mon Jan 25 02:57:10 2021 -0600
+++ b/frontend/src/components/Welcome.vue Mon Jan 25 03:07:44 2021 -0600
@@ -1,6 +1,6 @@
<template>
- <p>Welcome to DevWeb!</p>
- <p>{{ t('testing') }} </p>
+ <h1>{{ t('title') }}</h1>
+ <div>{{ t('body') }}</div>
</template>
<script>
@@ -19,7 +19,8 @@
<i18n>
{
'en': {
- 'testing': 'this is a test'
+ 'title': 'Welcome to DevWeb!',
+ 'body': 'this is the body'
}
}
</i18n>