Run formatter
This commit is contained in:
parent
d03764140e
commit
5a2eaa16e1
|
@ -2,4 +2,4 @@ module.exports = {
|
||||||
presets: [
|
presets: [
|
||||||
'@vue/app'
|
'@vue/app'
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -3,4 +3,4 @@
|
||||||
"copyright": "Copyright © 2018 TheDesk",
|
"copyright": "Copyright © 2018 TheDesk",
|
||||||
"codeName": "Pre Theater",
|
"codeName": "Pre Theater",
|
||||||
"documentURL": "https://github.com/kPherox/TheDesk-Vue#readme"
|
"documentURL": "https://github.com/kPherox/TheDesk-Vue#readme"
|
||||||
}
|
}
|
|
@ -1,14 +1,9 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import { upperFirst } from 'lodash'
|
import { upperFirst, camelCase } from 'lodash'
|
||||||
import { camelCase } from 'lodash'
|
|
||||||
|
|
||||||
const requireComponent = require.context(
|
const requireComponent = require.context('./globals', false, /Base[A-Z]\w+\.(vue|js)$/)
|
||||||
'./globals',
|
|
||||||
false,
|
|
||||||
/Base[A-Z]\w+\.(vue|js)$/
|
|
||||||
)
|
|
||||||
|
|
||||||
requireComponent.keys().forEach((fileName: string) => {
|
requireComponent.keys().forEach((fileName: string) => {
|
||||||
const componentConfig = requireComponent(fileName)
|
const componentConfig = requireComponent(fileName)
|
||||||
|
|
|
@ -3,7 +3,7 @@ import '@/components/_globals'
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
|
||||||
export default function(render: VueConstructor) {
|
export default function (render: VueConstructor) {
|
||||||
new Vue({
|
new Vue({
|
||||||
render: h => h(render),
|
render: h => h(render),
|
||||||
}).$mount('#app')
|
}).$mount('#app')
|
||||||
|
|
|
@ -6,9 +6,7 @@
|
||||||
</div>
|
</div>
|
||||||
<p id="app-name">{{ productName }}</p>
|
<p id="app-name">{{ productName }}</p>
|
||||||
<p id="web-site">
|
<p id="web-site">
|
||||||
<BaseLink :href="homePage">
|
<a :href="homePage">Web site</a>
|
||||||
Web site
|
|
||||||
</BaseLink>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<dl class="version">
|
<dl class="version">
|
||||||
|
@ -26,17 +24,17 @@
|
||||||
<style lang="postcss">
|
<style lang="postcss">
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Avenir', Helvetica, Arial, sans-serif;
|
font-family: "Avenir", Helvetica, Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
#about {
|
#about {
|
||||||
padding: .5em;
|
padding: 0.5em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
#brand {
|
#brand {
|
||||||
margin-top: .5em;
|
margin-top: 0.5em;
|
||||||
& > p {
|
& > p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
@ -56,8 +54,9 @@ dl.version {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
user-select: text;
|
user-select: text;
|
||||||
padding: .5em;
|
padding: 0.5em;
|
||||||
dt, dd {
|
dt,
|
||||||
|
dd {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
}
|
}
|
||||||
|
@ -65,8 +64,8 @@ dl.version {
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from "vue-property-decorator"
|
||||||
import { ipcRenderer } from 'electron'
|
import { ipcRenderer } from "electron"
|
||||||
|
|
||||||
interface Version {
|
interface Version {
|
||||||
name: string
|
name: string
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<img alt="Vue logo" src="@/assets/logo.png">
|
<img alt="Vue logo" src="@/assets/logo.png" />
|
||||||
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App"/>
|
<HelloWorld msg="Welcome to Your Vue.js + TypeScript App" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -14,12 +14,12 @@ import HelloWorld from '@/components/HelloWorld.vue';
|
||||||
HelloWorld,
|
HelloWorld,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export default class App extends Vue {}
|
export default class App extends Vue { }
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#app {
|
#app {
|
||||||
font-family: 'Avenir', Helvetica, Arial, sans-serif;
|
font-family: "Avenir", Helvetica, Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -37,4 +37,4 @@
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules"
|
"node_modules"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1,6 +1,10 @@
|
||||||
|
const {
|
||||||
const { productName } = require("./package.json")
|
productName
|
||||||
const { appId, copyright } = require("./info.json")
|
} = require("./package.json")
|
||||||
|
const {
|
||||||
|
appId,
|
||||||
|
copyright
|
||||||
|
} = require("./info.json")
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
pages: {
|
pages: {
|
||||||
|
@ -57,4 +61,4 @@ module.exports = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user