mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Fix lint
This commit is contained in:
parent
8ec91f46e7
commit
db25403429
@ -27,7 +27,11 @@ const plugins = [
|
|||||||
]
|
]
|
||||||
helpers.init({ plugins })
|
helpers.init({ plugins })
|
||||||
|
|
||||||
const users = [{ id: 1, slug: 'peter' }, { id: 2, slug: 'sandra' }, { id: 3, slug: 'jane' }]
|
const users = [
|
||||||
|
{ id: 1, slug: 'peter' },
|
||||||
|
{ id: 2, slug: 'sandra' },
|
||||||
|
{ id: 3, slug: 'jane' },
|
||||||
|
]
|
||||||
|
|
||||||
storiesOf('Editor', module)
|
storiesOf('Editor', module)
|
||||||
.addDecorator(withA11y)
|
.addDecorator(withA11y)
|
||||||
|
|||||||
@ -1,9 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<ds-card :header="$t('admin.hashtags.name')">
|
<ds-card :header="$t('admin.hashtags.name')">
|
||||||
<ds-table :data="Tag" :fields="fields" condensed>
|
<ds-table :data="Tag" :fields="fields" condensed>
|
||||||
<template slot="index" slot-scope="scope">
|
<template slot="index" slot-scope="scope">{{ scope.index + 1 }}.</template>
|
||||||
{{ scope.index + 1 }}.
|
|
||||||
</template>
|
|
||||||
<template slot="id" slot-scope="scope">
|
<template slot="id" slot-scope="scope">
|
||||||
<nuxt-link :to="{ path: '/', query: { hashtag: encodeURI(scope.row.id) } }">
|
<nuxt-link :to="{ path: '/', query: { hashtag: encodeURI(scope.row.id) } }">
|
||||||
<b>#{{ scope.row.id | truncate(20) }}</b>
|
<b>#{{ scope.row.id | truncate(20) }}</b>
|
||||||
|
|||||||
@ -20,9 +20,7 @@
|
|||||||
</ds-space>
|
</ds-space>
|
||||||
<ds-card v-if="User && User.length">
|
<ds-card v-if="User && User.length">
|
||||||
<ds-table :data="User" :fields="fields" condensed>
|
<ds-table :data="User" :fields="fields" condensed>
|
||||||
<template slot="index" slot-scope="scope">
|
<template slot="index" slot-scope="scope">{{ scope.row.index + 1 }}.</template>
|
||||||
{{ scope.row.index + 1 }}.
|
|
||||||
</template>
|
|
||||||
<template slot="name" slot-scope="scope">
|
<template slot="name" slot-scope="scope">
|
||||||
<nuxt-link
|
<nuxt-link
|
||||||
:to="{
|
:to="{
|
||||||
|
|||||||
@ -45,7 +45,11 @@ export default ({ app = {} }) => {
|
|||||||
return value.join(glue)
|
return value.join(glue)
|
||||||
},
|
},
|
||||||
listByKey: (values, key, glue, truncate) => {
|
listByKey: (values, key, glue, truncate) => {
|
||||||
return app.$filters.list(values.map(item => item[key]), glue, truncate)
|
return app.$filters.list(
|
||||||
|
values.map(item => item[key]),
|
||||||
|
glue,
|
||||||
|
truncate,
|
||||||
|
)
|
||||||
},
|
},
|
||||||
camelCase: (value = '') => {
|
camelCase: (value = '') => {
|
||||||
return value
|
return value
|
||||||
|
|||||||
@ -169,7 +169,10 @@ describe('actions', () => {
|
|||||||
|
|
||||||
it('saves pending flags in order', () => {
|
it('saves pending flags in order', () => {
|
||||||
expect(commit.mock.calls).toEqual(
|
expect(commit.mock.calls).toEqual(
|
||||||
expect.arrayContaining([['SET_PENDING', true], ['SET_PENDING', false]]),
|
expect.arrayContaining([
|
||||||
|
['SET_PENDING', true],
|
||||||
|
['SET_PENDING', false],
|
||||||
|
]),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -207,7 +210,10 @@ describe('actions', () => {
|
|||||||
await action({ commit }, { email: 'user@example.org', password: 'wrong' })
|
await action({ commit }, { email: 'user@example.org', password: 'wrong' })
|
||||||
} catch (err) {} // ignore
|
} catch (err) {} // ignore
|
||||||
expect(commit.mock.calls).toEqual(
|
expect(commit.mock.calls).toEqual(
|
||||||
expect.arrayContaining([['SET_PENDING', true], ['SET_PENDING', false]]),
|
expect.arrayContaining([
|
||||||
|
['SET_PENDING', true],
|
||||||
|
['SET_PENDING', false],
|
||||||
|
]),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user