Run formatter

This commit is contained in:
kPherox 2019-04-10 00:26:04 +09:00
parent d03764140e
commit 5a2eaa16e1
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D
8 changed files with 27 additions and 29 deletions

View File

@ -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)

View File

@ -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')

View File

@ -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

View File

@ -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;

View File

@ -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: {