Commit f0ea71ea authored by Jörg Richter's avatar Jörg Richter

Adapt .vue files to style guide (#424)

parent 78b49ae7
Pipeline #12259 passed with stages
in 10 minutes and 16 seconds
......@@ -54,7 +54,7 @@ export default {
// Note: if a date field is cleared in the GUI we receive null here. To clear a field at server-side an empty
// string must be sent. null would deserialize as JSONObject$Null causing the SimpleValue constructor to fail.
const c = this.object.children
c['dmx.datetime.year'].value = date && date.getFullYear() || ''
c['dmx.datetime.year'].value = date && date.getFullYear() || '' /* eslint no-mixed-operators: "off" */
c['dmx.datetime.month'].value = date && date.getMonth() + 1 || ''
c['dmx.datetime.day'].value = date && date.getDate() || ''
}
......
<template>
<div class="dmx-comp-def">
<div class="card label">{{card}}</div>
<span class="fa icon">{{childType.icon}}</span><span class="type">{{childType.value}}</span><span class="info" v-if="info">{{info}}</span>
<span class="fa icon">{{childType.icon}}</span><span class="type">{{childType.value}}</span><span class="info" v-if="info">{{info}}</span><!-- eslint-disable-line max-len -->
</div>
</template>
......@@ -17,7 +17,7 @@ export default {
computed: {
card () {
return this.compDef.isOne ? "One" : "Many" // TODO: do not hardcode labels?
return this.compDef.isOne ? 'One' : 'Many' // TODO: do not hardcode labels?
},
childType () {
......
<template>
<el-select v-model="type.dataTypeUri">
<el-select v-model="type.dataTypeUri"><!-- eslint-disable-line vue/no-mutating-props -->
<el-option-group label="Simple">
<el-option :label="dataTypes['dmx.core.text'].value" :value="dataTypes['dmx.core.text'].uri">
</el-option>
......
......@@ -6,7 +6,7 @@
<div class="field">
<div class="field-label">Type URI</div>
<div v-if="infoMode">{{object.uri}}</div>
<el-input v-else v-model="object.uri"></el-input>
<el-input v-else v-model="object.uri"></el-input><!-- eslint-disable-line vue/no-mutating-props -->
</div>
<!-- Data Type -->
<div class="field">
......
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