fixing linting issues

This commit is contained in:
Grzegorz Leoniec 2018-12-07 19:42:57 +01:00
parent 572e5005d0
commit e2c6305f21
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
8 changed files with 51 additions and 34 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -8,12 +8,13 @@
<h3><ds-icon name="compass" /> Themenkategorien</h3>
<div class="tags">
<ds-icon
v-tooltip="{content: category.name, placement: 'top-start', delay: { show: 300 }}"
v-for="category in post.categories"
:key="category.id"
v-tooltip="{content: category.name, placement: 'top-start', delay: { show: 300 }}"
:name="category.icon"
size="large" />&nbsp;
<!--<ds-tag
size="large"
/>&nbsp;
<!--<ds-tag
v-for="category in post.categories"
:key="category.id"><ds-icon :name="category.icon" /> {{ category.name }}</ds-tag>-->
</div>

View File

@ -29,13 +29,15 @@
v-if="user.location && user.location.length"
align="center"
color="soft"
size="small">
size="small"
>
<ds-icon name="map-marker" /> {{ user.location[0].name }}
</ds-text>
<ds-text
align="center"
color="soft"
size="small">
size="small"
>
Mitglied seit {{ user.createdAt | date('MMMM yyyy') }}
</ds-text>
</ds-space>
@ -82,10 +84,12 @@
<hr>
<ds-space
margin-top="small"
margin-bottom="small">
margin-bottom="small"
>
<ds-text
color="soft"
size="small">
size="small"
>
{{ user.about }}
</ds-text>
</ds-space>
@ -192,7 +196,8 @@
<ds-flex-item :width="{ base: '100%', sm: 3, md: 5, lg: 3 }">
<ds-flex
:width="{ base: '100%' }"
gutter="small">
gutter="small"
>
<ds-flex-item class="profile-top-navigation">
<ds-card class="ds-tab-nav">
<ds-flex>

View File

@ -5,29 +5,37 @@
v-model="form.name"
icon="user"
label="Dein Name"
placeholder="Dein Name"/>
placeholder="Dein Name"
/>
<!-- eslint-disable vue/use-v-on-exact -->
<ds-select
id="city"
:options="cities"
v-model="city"
:options="cities"
icon="map-marker"
label="Deine Stadt"
placeholder="Deine Stadt"
@input="handleCitySelection"
@input.native="handleCityInput" />
@input.native="handleCityInput"
/>
<!-- eslint-enable vue/use-v-on-exact -->
<ds-input
id="bio"
v-model="form.about"
type="textarea"
rows="3"
label="Erzähl doch ein wenig (in zwei Sätzen) über dich"
placeholder="Über mich"/>
placeholder="Über mich"
/>
<template slot="footer">
<ds-button
style="float: right;"
icon="check"
primary
@click.prevent="submit">Speichern</ds-button>
@click.prevent="submit"
>
Speichern
</ds-button>
</template>
</ds-card>
</template>

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 {
right: 0;
left: auto;