fixed linting issues

This commit is contained in:
Grzegorz Leoniec 2018-12-08 13:51:52 +01:00
parent c96e22492c
commit 9042089d5e
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
9 changed files with 41 additions and 31 deletions

View File

@ -33,10 +33,11 @@
<template slot="footer"> <template slot="footer">
<div style="display: inline-block; opacity: .5;"> <div style="display: inline-block; opacity: .5;">
<ds-icon <ds-icon
v-tooltip="{content: category.name, placement: 'bottom-start', delay: { show: 500 }}"
v-for="category in post.categories" v-for="category in post.categories"
:key="category.id" :key="category.id"
:name="category.icon" />&nbsp; v-tooltip="{content: category.name, placement: 'bottom-start', delay: { show: 500 }}"
:name="category.icon"
/>&nbsp;
</div> </div>
<div style="display: inline-block; float: right"> <div style="display: inline-block; float: right">
<span :style="{ opacity: post.shoutedCount ? 1 : .5 }"> <span :style="{ opacity: post.shoutedCount ? 1 : .5 }">

View File

@ -8,7 +8,8 @@
danger danger
size="x-large" size="x-large"
icon="bullhorn" icon="bullhorn"
@click="shout" /> @click="shout"
/>
<ds-space margin-bottom="xx-small" /> <ds-space margin-bottom="xx-small" />
<ds-text color="soft"> <ds-text color="soft">
<ds-heading <ds-heading

View File

@ -1,13 +1,17 @@
<template> <template>
<ds-card space="small"> <ds-card space="small">
<ds-heading tag="h3">Themen / Kategorien</ds-heading> <ds-heading tag="h3">
Themen / Kategorien
</ds-heading>
<ds-table <ds-table
:data="Category" :data="Category"
:fields="['icon', 'name', 'postCount']" :fields="['icon', 'name', 'postCount']"
condensed> condensed
>
<template <template
slot="icon" slot="icon"
slot-scope="scope"> slot-scope="scope"
>
<ds-icon :name="scope.row.icon" /> <ds-icon :name="scope.row.icon" />
</template> </template>
</ds-table> </ds-table>

View File

@ -1,13 +1,17 @@
<template> <template>
<ds-card space="small"> <ds-card space="small">
<ds-heading tag="h3">Tags</ds-heading> <ds-heading tag="h3">
Tags
</ds-heading>
<ds-table <ds-table
:data="Tag" :data="Tag"
:fields="fields" :fields="fields"
condensed> condensed
>
<template <template
slot="id" slot="id"
slot-scope="scope"> slot-scope="scope"
>
{{ scope.index + 1 }} {{ scope.index + 1 }}
</template> </template>
</ds-table> </ds-table>

View File

@ -24,11 +24,12 @@
/> />
<!-- Categories --> <!-- Categories -->
<ds-icon <ds-icon
v-tooltip="{content: category.name, placement: 'top-start', delay: { show: 300 }}"
v-for="category in post.categories" v-for="category in post.categories"
:key="category.id" :key="category.id"
v-tooltip="{content: category.name, placement: 'top-start', delay: { show: 300 }}"
:name="category.icon" :name="category.icon"
size="large" />&nbsp; size="large"
/>&nbsp;
<ds-space margin-bottom="small" /> <ds-space margin-bottom="small" />
<!--<div class="tags"> <!--<div class="tags">
<ds-icon name="compass" /> <ds-tag <ds-icon name="compass" /> <ds-tag
@ -37,7 +38,7 @@
> >
{{ category.name }} {{ category.name }}
</ds-tag> </ds-tag>
</div> </div>-->
<!-- Tags --> <!-- Tags -->
<template v-if="post.tags && post.tags.length"> <template v-if="post.tags && post.tags.length">
<ds-space margin="xx-small" /> <ds-space margin="xx-small" />

View File

@ -7,12 +7,12 @@
<ds-space /> <ds-space />
<h3><ds-icon name="compass" /> Themenkategorien</h3> <h3><ds-icon name="compass" /> Themenkategorien</h3>
<div class="tags"> <div class="tags">
<ds-icon <ds-tag
v-tooltip="{content: category.name, placement: 'top-start', delay: { show: 300 }}"
v-for="category in post.categories" v-for="category in post.categories"
:key="category.id" :key="category.id"
v-tooltip="{content: category.name, placement: 'top-start', delay: { show: 300 }}"
> >
{{ category.name }} <ds-icon :name="category.icon" /> {{ category.name }}
</ds-tag> </ds-tag>
</div> </div>
<template v-if="post.tags && post.tags.length"> <template v-if="post.tags && post.tags.length">

View File

@ -28,7 +28,8 @@
<ds-text <ds-text
align="center" align="center"
color="soft" color="soft"
size="small"> size="small"
>
Mitglied seit {{ user.createdAt | date('MMMM yyyy') }} Mitglied seit {{ user.createdAt | date('MMMM yyyy') }}
</ds-text> </ds-text>
</ds-space> </ds-space>

View File

@ -5,29 +5,37 @@
v-model="form.name" v-model="form.name"
icon="user" icon="user"
label="Dein Name" label="Dein Name"
placeholder="Dein Name"/> placeholder="Dein Name"
/>
<!-- eslint-disable vue/use-v-on-exact -->
<ds-select <ds-select
id="city" id="city"
:options="cities"
v-model="city" v-model="city"
:options="cities"
icon="map-marker" icon="map-marker"
label="Deine Stadt" label="Deine Stadt"
placeholder="Deine Stadt" placeholder="Deine Stadt"
@input="handleCitySelection" @input="handleCitySelection"
@input.native="handleCityInput" /> @input.native="handleCityInput"
/>
<!-- eslint-enable vue/use-v-on-exact -->
<ds-input <ds-input
id="bio" id="bio"
v-model="form.about" v-model="form.about"
type="textarea" type="textarea"
rows="3" rows="3"
label="Erzähl doch ein wenig (in zwei Sätzen) über dich" label="Erzähl doch ein wenig (in zwei Sätzen) über dich"
placeholder="Über mich"/> placeholder="Über mich"
/>
<template slot="footer"> <template slot="footer">
<ds-button <ds-button
style="float: right;" style="float: right;"
icon="check" icon="check"
primary primary
@click.prevent="submit">Speichern</ds-button> @click.prevent="submit"
>
Speichern
</ds-button>
</template> </template>
</ds-card> </ds-card>
</template> </template>
@ -110,7 +118,6 @@ export default {
// and then with the real result of the mutation // and then with the real result of the mutation
update: (store, { data: { UpdateUser } }) => { update: (store, { data: { UpdateUser } }) => {
// this.$store.dispatch('auth/refresh', UpdateUser) // this.$store.dispatch('auth/refresh', UpdateUser)
// Read the data from our cache for this query. // Read the data from our cache for this query.
// const data = store.readQuery({ query: TAGS_QUERY }) // const data = store.readQuery({ query: TAGS_QUERY })
// Add our tag from the mutation to the end // Add our tag from the mutation to the end

View File

@ -84,15 +84,6 @@
} }
} }
.ds-input-size-small & {
width: $input-height-small;
}
.ds-input-size-large & {
width: $input-height-large;
}
}
.#{$class}-icon-right { .#{$class}-icon-right {
right: 0; right: 0;
left: auto; left: auto;