Commit e8934c7a authored by Zhang Xiaojie's avatar Zhang Xiaojie

init

parent f9e3588d
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'eslint:recommended',
'@vue/typescript/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}
This diff is collapsed.
......@@ -3,17 +3,19 @@
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"dev": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"aos": "^2.3.4",
"core-js": "^3.6.5",
"vue": "^3.0.0",
"vue-router": "^4.0.0-0",
"vuex": "^4.0.0-0"
},
"devDependencies": {
"@types/aos": "^3.0.4",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"@vue/cli-plugin-babel": "~4.5.0",
......@@ -24,10 +26,13 @@
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.0.0",
"@vue/eslint-config-typescript": "^7.0.0",
"autoprefixer": "^9.8.8",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^7.0.0",
"node-sass": "^4.12.0",
"postcss": "^7.0.39",
"sass-loader": "^8.0.2",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17",
"typescript": "~4.1.5"
},
"eslintConfig": {
......@@ -43,7 +48,9 @@
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {}
"rules": {
"vue/no-multiple-template-root": "off"
}
},
"browserslist": [
"> 1%",
......
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
\ No newline at end of file
<template>
<div id="nav">
<div id="nav" class="">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div>
......
......@@ -2,5 +2,9 @@ import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'aos/dist/aos.css'
import Aos from 'aos'
import "tailwindcss/tailwind.css"
Aos.init()
createApp(App).use(store).use(router).mount('#app')
......@@ -14,6 +14,14 @@ const routes: Array<RouteRecordRaw> = [
// 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')
},
{
path: '/test',
name: 'Test',
// 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/Index.vue')
}
]
......
<template>
<div class=" bg-purple-50 w-40 h-80 border border-gray-400 mx-auto md:bg-purple-400 hover:shadow-2xl ease-in duration-300"></div>
</template>
<script setup lang="ts">
</script>
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment