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: steps:
- name: eslint - name: eslint
image: nextcloudci/eslint:eslint-1 image: node:lts
commands: commands:
- ./run-eslint.sh - make lint
trigger: trigger:
branch: branch:

View file

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

View file

@ -1,26 +1,8 @@
{ {
"name": "talk", "name": "talk",
"description": "A simple Nextcloud app using vue-components", "description": "",
"version": "3.2.0", "version": "8.0.0",
"author": "John Molakvoæ <skjnldsv@protonmail.com>", "author": "Joas Schilling <coding@schilljs.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",
"license": "agpl", "license": "agpl",
"private": true, "private": true,
"scripts": { "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">
<div class="acli__content__line-one"> <div class="acli__content__line-one">
<span class="acli__content__line-one__title"> <span class="acli__content__line-one__title">
{{title}} {{ title }}
</span> </span>
<span> <span>
<Actions <Actions
@ -100,12 +100,6 @@ export default {
default: '' default: ''
} }
}, },
methods: {
// forward click event
onClick(event) {
this.$emit('click', event)
}
},
computed: { computed: {
hasDetails() { hasDetails() {
return (this.details !== '' && !this.$slots.counter) return (this.details !== '' && !this.$slots.counter)
@ -129,6 +123,12 @@ export default {
} }
} }
},
methods: {
// forward click event
onClick(event) {
this.$emit('click', event)
}
} }
} }
</script> </script>

View file

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