Fix eslint

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-10-09 12:11:42 +02:00
parent 08c2d70e50
commit c65a56b0e3
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA
6 changed files with 15 additions and 42 deletions

View file

@ -32,9 +32,9 @@ name: eslint
steps:
- name: eslint
image: nextcloudci/eslint:eslint-1
image: node:lts
commands:
- ./run-eslint.sh
- make lint
trigger:
branch:

View file

@ -29,9 +29,11 @@ watch-js:
cd vue/ && npm run watch
lint:
npm run lint
cd vue/ && npm run lint
lint-fix:
npm run lint:fix
cd vue/ && npm run lint:fix
npm-init: npm-init-root npm-init-vue

View file

@ -1,26 +1,8 @@
{
"name": "talk",
"description": "A simple Nextcloud app using vue-components",
"version": "3.2.0",
"author": "John Molakvoæ <skjnldsv@protonmail.com>",
"contributors": [
"John Molakvoæ <skjnldsv@protonmail.com>"
],
"keywords": [
"nextcloud",
"vueexample",
"app",
"dev",
"vuejs"
],
"bugs": {
"url": "https://github.com/skjnldsv/vueexample/issues"
},
"repository": {
"url": "https://github.com/skjnldsv/vueexample",
"type": "git"
},
"homepage": "https://github.com/skjnldsv/vueexample",
"description": "",
"version": "8.0.0",
"author": "Joas Schilling <coding@schilljs.com>",
"license": "agpl",
"private": true,
"scripts": {

View file

@ -1,11 +0,0 @@
#!/bin/sh
set -e
ESLINT=$(which eslint || true)
if [ -z "$ESLINT" ]; then
echo "Can't find command \"eslint\" in $PATH"
exit 1
fi
echo Checking scripts with $ESLINT ...
find -name "*.js" -print0 | xargs -0 $ESLINT

View file

@ -30,7 +30,7 @@
<div class="acli__content">
<div class="acli__content__line-one">
<span class="acli__content__line-one__title">
{{title}}
{{ title }}
</span>
<span>
<Actions
@ -100,12 +100,6 @@ export default {
default: ''
}
},
methods: {
// forward click event
onClick(event) {
this.$emit('click', event)
}
},
computed: {
hasDetails() {
return (this.details !== '' && !this.$slots.counter)
@ -129,6 +123,12 @@ export default {
}
}
},
methods: {
// forward click event
onClick(event) {
this.$emit('click', event)
}
}
}
</script>

View file

@ -49,7 +49,7 @@
<ActionButton
icon="icon-delete"
@click.prevent.exact="deleteConversation(item.token)">
{{t('spreed', 'Leave Conversation')}}
{{ t('spreed', 'Leave Conversation') }}
</ActionButton>
</template>
</AppContentListItem>