Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dmx-platform
dmx-platform
Commits
f0ea71ea
Commit
f0ea71ea
authored
Dec 27, 2020
by
Jörg Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt .vue files to style guide (
#424
)
parent
78b49ae7
Pipeline
#12259
passed with stages
in 10 minutes and 16 seconds
Changes
4
Pipelines
23
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
modules/dmx-datetime/src/main/js/components/dmx-date-picker.vue
...s/dmx-datetime/src/main/js/components/dmx-date-picker.vue
+1
-1
modules/dmx-typeeditor/src/main/js/components/dmx-comp-def.vue
...es/dmx-typeeditor/src/main/js/components/dmx-comp-def.vue
+2
-2
modules/dmx-typeeditor/src/main/js/components/dmx-data-type-select.vue
...ypeeditor/src/main/js/components/dmx-data-type-select.vue
+1
-1
modules/dmx-typeeditor/src/main/js/components/dmx-type-renderer.vue
...x-typeeditor/src/main/js/components/dmx-type-renderer.vue
+1
-1
No files found.
modules/dmx-datetime/src/main/js/components/dmx-date-picker.vue
View file @
f0ea71ea
...
...
@@ -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
()
||
''
}
...
...
modules/dmx-typeeditor/src/main/js/components/dmx-comp-def.vue
View file @
f0ea71ea
<
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
()
{
...
...
modules/dmx-typeeditor/src/main/js/components/dmx-data-type-select.vue
View file @
f0ea71ea
<
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>
...
...
modules/dmx-typeeditor/src/main/js/components/dmx-type-renderer.vue
View file @
f0ea71ea
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment