-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
白唯
committed
Sep 3, 2020
1 parent
d01b262
commit d4e8514
Showing
39 changed files
with
947 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
NODE_ENV=development | ||
// VUE_APP_BASE_URL = //10.10.10.115:8002 | ||
VUE_APP_BASE_URL = //apitest.cuidc.net | ||
VUE_APP_BASE_EDITOR_URL = //editorapitest.cuidc.net | ||
VUE_APP_EDITOR_JS = //editortest.cuidc.net | ||
VUE_APP_UPLOADED_URL = //bus.cuidc.net/ | ||
VUE_APP_EDITOR_URL_AUTH = a453964db52ff10ad0a3adf4be4dd4e5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
NODE_ENV=production | ||
VUE_APP_BASE_URL = //apitest.cuidc.net | ||
VUE_APP_BASE_EDITOR_URL = //editorapitest.cuidc.net | ||
VUE_APP_UPLOADED_URL = //bus.cuidc.net/ | ||
VUE_APP_EDITOR_JS = //editortest.cuidc.net | ||
VUE_APP_EDITOR_URL_AUTH = 7f35b26c51e980153763ee996542f541 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
NODE_ENV=production | ||
VUE_APP_BASE_URL = //api.cuidc.net | ||
VUE_APP_BASE_EDITOR_URL = //editorapi.cuidc.net | ||
VUE_APP_EDITOR_JS = //editor.cuidc.net | ||
VUE_APP_UPLOADED_URL = //bus-acc.cuidc.net/ | ||
VUE_APP_EDITOR_URL_AUTH = e3e5e9488f3e2e2857fc045b9c48566b | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
}, | ||
env: { | ||
browser: true, | ||
es6: true | ||
}, | ||
plugins: ['prettier', 'vue', '@typescript-eslint/eslint-plugin'], | ||
rules: { | ||
'prettier/prettier': 'error' | ||
}, | ||
extends: ['standard', 'plugin:vue/essential', 'plugin:prettier/recommended'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,6 @@ pnpm-debug.log* | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# local docs | ||
todo-list.md |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
printWidth: 999, | ||
singleQuote: true, | ||
semi: false, | ||
trailingComma: 'none', | ||
endOfLine: 'lf' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
presets: ['@vue/cli-plugin-babel/preset'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
h3 { | ||
margin: 40px 0 0; | ||
} | ||
|
||
ul { | ||
list-style-type: none; | ||
padding : 0; | ||
} | ||
|
||
li { | ||
display: inline-block; | ||
margin : 0 10px; | ||
} | ||
|
||
a { | ||
color: #42b983; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<div>{{ author }}</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue' | ||
const HelloWorld1 = defineComponent({ | ||
name: 'hello', | ||
data() { | ||
return { | ||
pageName: 'About', | ||
author: 'author' | ||
} | ||
}, | ||
methods: { | ||
caculatePageName() { | ||
this.pageName.split(',') | ||
} | ||
} | ||
}) | ||
export default HelloWorld1 | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<div><button>self-button</button></div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue' | ||
const SlefButton = defineComponent({ | ||
name: 'SlefButton', | ||
data() { | ||
return { | ||
pageName: 'About', | ||
author: 'author' | ||
} | ||
}, | ||
methods: { | ||
caculatePageName() { | ||
this.pageName.split(',') | ||
} | ||
} | ||
}) | ||
export default SlefButton | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<template> | ||
<div ref="root" class="hello"> | ||
<p>{{ p }}</p> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import './HelloWorld.css' | ||
import { defineComponent, ref } from 'vue' | ||
interface Prop { | ||
name: string | ||
} | ||
const TestDemo = defineComponent({ | ||
name: 'TestDemo', | ||
setup(props: Prop) { | ||
const root = ref(null) | ||
console.log(props) | ||
const p = ref(33) | ||
return { | ||
p, | ||
root | ||
} | ||
}, | ||
data() { | ||
return { | ||
pageName: 'About', | ||
author: 'kk' | ||
} | ||
}, | ||
methods: { | ||
caculatePageName() { | ||
this.pageName.split(',') | ||
} | ||
} | ||
}) | ||
export default TestDemo | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template> | ||
<div>{{ author }}</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from 'vue' | ||
const TestDemo = defineComponent({ | ||
name: 'TestDemo', | ||
data() { | ||
return { | ||
pageName: 'About', | ||
author: 'author' | ||
} | ||
}, | ||
methods: { | ||
caculatePageName() { | ||
this.pageName.split(',') | ||
} | ||
} | ||
}) | ||
export default TestDemo | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** 跟应用全局相关的静态配置放在这里 */ | ||
export default { | ||
name: '12', | ||
logo: '34' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare interface Book { | ||
author?: string | ||
pageName: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { RouteRecordRaw } from 'vue-router' | ||
|
||
/** 关于我们页面的路由配置 */ | ||
const AboutRouter: RouteRecordRaw = { | ||
path: '/about', | ||
name: 'about', | ||
component: () => import(/* webpackChunkName: "about" */ '@/views/About.vue'), | ||
children: [ | ||
{ | ||
path: 'me', | ||
name: 'aboutMe', | ||
component: () => import(/* webpackChunkName: "about-me" */ '@/views/AboutMe.vue') | ||
} | ||
] | ||
} | ||
|
||
export default AboutRouter |
Oops, something went wrong.