mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Enhancement/linting (#34)
* Stop emitting lint errors as warnings * Execute lint on inital serve for development * Fix linting errors * Fix linting warnings Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
7a377c22e0
commit
22bca0c248
@ -3,8 +3,8 @@
|
|||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vue-cli-service serve",
|
"start": "vue-cli-service lint --no-fix && vue-cli-service serve",
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service lint --no-fix && vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint",
|
"lint": "vue-cli-service lint",
|
||||||
"i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'",
|
"i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'",
|
||||||
|
|||||||
@ -2,22 +2,22 @@
|
|||||||
<div>
|
<div>
|
||||||
<a-breadcrumb class="breadcrumb" v-if="device !== 'desktop'" style="margin-left: -16px; margin-right: -16px; margin-top: -16px">
|
<a-breadcrumb class="breadcrumb" v-if="device !== 'desktop'" style="margin-left: -16px; margin-right: -16px; margin-top: -16px">
|
||||||
<a-card :bordered="true">
|
<a-card :bordered="true">
|
||||||
<a-breadcrumb-item v-for="(item, index) in breadList" :key="index">
|
<a-breadcrumb-item v-for="(item, index) in breadList" :key="index">
|
||||||
<router-link
|
<router-link
|
||||||
v-if="item.name"
|
v-if="item.name"
|
||||||
:to="{ path: item.path === '' ? '/' : item.path }"
|
:to="{ path: item.path === '' ? '/' : item.path }"
|
||||||
>
|
>
|
||||||
<a-icon v-if="index == 0" :type="item.meta.icon" />
|
<a-icon v-if="index == 0" :type="item.meta.icon" />
|
||||||
{{ $t(item.meta.title) }}
|
{{ $t(item.meta.title) }}
|
||||||
</router-link>
|
</router-link>
|
||||||
<span v-else-if="$route.params.id">
|
<span v-else-if="$route.params.id">
|
||||||
{{ $route.params.id }}
|
{{ $route.params.id }}
|
||||||
<a-button shape="circle" type="dashed" size="small" v-clipboard:copy="$route.params.id">
|
<a-button shape="circle" type="dashed" size="small" v-clipboard:copy="$route.params.id">
|
||||||
<a-icon type="copy" style="margin-left: 0px"/>
|
<a-icon type="copy" style="margin-left: 0px"/>
|
||||||
</a-button>
|
</a-button>
|
||||||
</span>
|
</span>
|
||||||
<span v-else>{{ $t(tem.meta.title) }}</span>
|
<span v-else>{{ $t(tem.meta.title) }}</span>
|
||||||
</a-breadcrumb-item>
|
</a-breadcrumb-item>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-breadcrumb>
|
</a-breadcrumb>
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="account-center-detail">
|
<div class="account-center-detail">
|
||||||
<p>
|
<p>
|
||||||
<status :text="vm.state" style="padding-left: 8px; padding-right: 5px"/>{{ vm.state}}
|
<status :text="vm.state" style="padding-left: 8px; padding-right: 5px"/>{{ vm.state }}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<font-awesome-icon :icon="['fab', osLogo]" size="lg"/> {{ guestOsName }} <br/>
|
<font-awesome-icon :icon="['fab', osLogo]" size="lg"/> {{ guestOsName }} <br/>
|
||||||
@ -146,7 +146,7 @@
|
|||||||
@tabChange="key => handleTabChange(key, 'noTitleKey')"
|
@tabChange="key => handleTabChange(key, 'noTitleKey')"
|
||||||
>
|
>
|
||||||
<span slot="customRender" slot-scope="item">
|
<span slot="customRender" slot-scope="item">
|
||||||
<a-icon type="home"/>{{item.tab}}
|
<a-icon type="home"/>{{ item.tab }}
|
||||||
</span>
|
</span>
|
||||||
<a-collapse v-model="activeKey">
|
<a-collapse v-model="activeKey">
|
||||||
<a-collapse-panel :header="'ISO: ' + vm.isoname" v-if="vm.isoid" key="1">
|
<a-collapse-panel :header="'ISO: ' + vm.isoname" v-if="vm.isoid" key="1">
|
||||||
@ -222,7 +222,6 @@
|
|||||||
</a-collapse-panel>
|
</a-collapse-panel>
|
||||||
</a-collapse>
|
</a-collapse>
|
||||||
|
|
||||||
|
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@ -252,11 +251,9 @@ export default {
|
|||||||
totalStorage: 0,
|
totalStorage: 0,
|
||||||
guestOsName: '',
|
guestOsName: '',
|
||||||
osLogo: 'linux',
|
osLogo: 'linux',
|
||||||
tags: [],
|
|
||||||
inputVisible: false,
|
inputVisible: false,
|
||||||
inputValue: '',
|
inputValue: '',
|
||||||
activeKey: ['1', '2', '3'],
|
activeKey: ['1', '2', '3'],
|
||||||
|
|
||||||
tags: ['os=centos', 'tag=value', 'demo=true'],
|
tags: ['os=centos', 'tag=value', 'demo=true'],
|
||||||
tagInputVisible: false,
|
tagInputVisible: false,
|
||||||
tagInputValue: '',
|
tagInputValue: '',
|
||||||
|
|||||||
@ -38,6 +38,11 @@ module.exports = {
|
|||||||
.set('@layout', resolve('src/layout'))
|
.set('@layout', resolve('src/layout'))
|
||||||
.set('@static', resolve('src/static'))
|
.set('@static', resolve('src/static'))
|
||||||
|
|
||||||
|
// do not emit errors as a warning
|
||||||
|
config.module.rule('eslint').use('eslint-loader').tap(
|
||||||
|
opts => ({ ...opts, emitWarning: false })
|
||||||
|
)
|
||||||
|
|
||||||
const svgRule = config.module.rule('svg')
|
const svgRule = config.module.rule('svg')
|
||||||
svgRule.uses.clear()
|
svgRule.uses.clear()
|
||||||
svgRule
|
svgRule
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user