[M] Move app to app directory and separate the files

This commit is contained in:
Hykilpikonna
2019-08-15 11:44:32 +08:00
parent 9941dc95fe
commit 0e60153cc8
4 changed files with 26 additions and 29 deletions
-29
View File
@@ -1,29 +0,0 @@
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/>
</div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import HelloWorld from './components/HelloWorld.vue';
@Component({
components: {
HelloWorld,
},
})
export default class App extends Vue {}
</script>
<style lang="scss">
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
+9
View File
@@ -0,0 +1,9 @@
#app
{
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
+9
View File
@@ -0,0 +1,9 @@
import {Component, Vue} from 'vue-property-decorator';
@Component({
components: {},
})
class App extends Vue
{
}
+8
View File
@@ -0,0 +1,8 @@
<template>
<div id="app">
<img alt="Vue logo" src="../assets/logo.png">
</div>
</template>
<script src="./app.ts" lang="ts"></script>
<style src="./app.scss" lang="scss"></style>