Add and fix some more rules
This commit is contained in:
parent
d6772bb3db
commit
38e99e4747
|
|
@ -11,7 +11,7 @@ module.exports = {
|
||||||
extends: [
|
extends: [
|
||||||
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
||||||
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
||||||
'plugin:vue/strongly-recommended',
|
'plugin:vue/recommended',
|
||||||
// 'plugin:vue/recommended',
|
// 'plugin:vue/recommended',
|
||||||
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
||||||
'standard'
|
'standard'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
:class="{'content-block-element-chooser-widget--no-assignment': this.hideAssignment}"
|
:class="{'content-block-element-chooser-widget--no-assignment': hideAssignment}"
|
||||||
class="content-block-element-chooser-widget">
|
class="content-block-element-chooser-widget">
|
||||||
<div
|
<div
|
||||||
class="content-block-element-chooser-widget__link content-block-element-chooser-widget__link--link"
|
class="content-block-element-chooser-widget__link content-block-element-chooser-widget__link--link"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
</transition>
|
</transition>
|
||||||
<transition name="show">
|
<transition name="show">
|
||||||
<div
|
<div
|
||||||
:style="{'background-image': `url(${this.avatarUrl})`}"
|
:style="{'background-image': `url(${avatarUrl})`}"
|
||||||
class="avatar__image"
|
class="avatar__image"
|
||||||
v-show="isAvatarLoaded"
|
v-show="isAvatarLoaded"
|
||||||
ref="avatarImage"/>
|
ref="avatarImage"/>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<entry-count-widget :entry-count="entryCount"/>
|
<entry-count-widget :entry-count="entryCount"/>
|
||||||
</router-link>
|
</router-link>
|
||||||
<widget-footer v-if="canEditRoom">
|
<widget-footer v-if="canEditRoom">
|
||||||
<room-actions :id="this.id"/>
|
<room-actions :id="id"/>
|
||||||
</widget-footer>
|
</widget-footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<iframe
|
<iframe
|
||||||
:src='`https://tp.srgssr.ch/p/srf/embed?urn=urn:srf:video:${videoId}`'
|
:src="`https://tp.srgssr.ch/p/srf/embed?urn=urn:srf:video:${videoId}`"
|
||||||
class="srf-embed"
|
class="srf-embed"
|
||||||
allowfullscreen
|
allowfullscreen
|
||||||
frameborder='0'/>
|
frameborder="0"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="edit-project-page">
|
<div class="edit-project-page">
|
||||||
<edit-project
|
<edit-project
|
||||||
:project="project"
|
:project="project"
|
||||||
v-if="this.project.id"/>
|
v-if="project.id"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="edit-room-page">
|
<div class="edit-room-page">
|
||||||
<edit-room
|
<edit-room
|
||||||
:room="room"
|
:room="room"
|
||||||
v-if="this.room.id"/>
|
v-if="room.id"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="project__meta">
|
<div class="project__meta">
|
||||||
<project-actions :id="this.project.id"/>
|
<project-actions :id="project.id"/>
|
||||||
<owner-widget :owner="this.project.student"/>
|
<owner-widget :owner="project.student"/>
|
||||||
<entry-count-widget :entry-count="projectEntryCount"/>
|
<entry-count-widget :entry-count="projectEntryCount"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
{{ room.description }}
|
{{ room.description }}
|
||||||
</p>
|
</p>
|
||||||
<div class="room__meta">
|
<div class="room__meta">
|
||||||
<room-actions :id="this.room.id"/>
|
<room-actions :id="room.id"/>
|
||||||
<room-group-widget v-bind="room.schoolClass"/>
|
<room-group-widget v-bind="room.schoolClass"/>
|
||||||
<entry-count-widget :entry-count="roomEntryCount"/>
|
<entry-count-widget :entry-count="roomEntryCount"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="survey-page">
|
<div class="survey-page">
|
||||||
<h1 class="survey-page__title">{{ title }}</h1>
|
<h1 class="survey-page__title">{{ title }}</h1>
|
||||||
<survey :survey='survey'/>
|
<survey :survey="survey"/>
|
||||||
|
|
||||||
<solution
|
<solution
|
||||||
:value="solution"
|
:value="solution"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue