mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
Fix eslint
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
08c2d70e50
commit
c65a56b0e3
6 changed files with 15 additions and 42 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -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
|
||||||
|
|
|
||||||
24
package.json
24
package.json
|
|
@ -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": {
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue