Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkle committed Jan 2, 2024
1 parent 047bd3a commit cba333b
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 26 deletions.
6 changes: 3 additions & 3 deletions static/src/components/builder/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ import * as types from '../store/types';
export default {
name: 'Header',
beforeRouteEnter (to, from, next) {
next();
},
data () {
return {};
},
Expand All @@ -57,9 +60,6 @@ export default {
this.$router.push({ name: 'home' });
}
},
beforeRouteEnter (to, from, next) {
next();
}
};
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
Number of rows
</label>
<input
id="rows"
:value="rows"
class="form-control form-control-sm"
type="number"
@input="updateRows($event.target.value)"
id="rows"
:value="rows"
class="form-control form-control-sm"
type="number"
@input="updateRows($event.target.value)"
>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div class="form-row">
<input
id="show-lock"
v-model="showLock"
:checked="showLock"
type="checkbox"
v-model='showLock'
>
<label for="show-lock">
Display lock time
Expand Down
2 changes: 1 addition & 1 deletion static/src/components/builder/store/__mocks__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function __createMocks (
anco.mutations
);
const mockActions = Object.assign({}, textInput.actions, custom.actions, inputTextArea.actions);
const mockState = Object.assign({}, textInput.state, checkboxInput.state, table.state, inputTextArea.state,anco.state);
const mockState = Object.assign({}, textInput.state, checkboxInput.state, table.state, inputTextArea.state, anco.state);
return {
getters: mockGetters,
mutations: mockMutations,
Expand Down
4 changes: 2 additions & 2 deletions static/src/components/builder/store/__mocks__/modules/anco.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as types from '../../types';
export const state = {
anco: {
'pyb-answer': 'myPybAnswer',
categoryList: [{name: 'category1', type: 'text', stle: 'color:red'}],
categoryList: [{ name: 'category1', type: 'text', stle: 'color:red' }],
docUrl: 'http://boomberg.next/doc.pdf',
annotationUrl: 'http://boomberg.next/annotation.json',
isValidForm: true
Expand All @@ -23,7 +23,7 @@ export const mutations = {
[types.MUTATE_ANCO_PYB_ANSWER]: jest.fn(),
[types.MUTATE_ANCO_DOC_URL]: jest.fn(),
[types.MUTATE_ANCO_ANNOTATION_URL]: jest.fn(),
[types.MUTATE_ANCO_ADD_LIST_ITEM]: jest.fn(),
[types.MUTATE_ANCO_ADD_LIST_ITEM]: jest.fn()
};

export default {
Expand Down
8 changes: 4 additions & 4 deletions static/src/components/builder/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,13 @@ export default {

const config = {
docUrl,
annotationType: "BoundingBox",
annotationType: 'BoundingBox',
requiredAnnotationOnLoad: !!annotationUrl,
categories: JSON.stringify(categories),
}
categories: JSON.stringify(categories)
};

if (annotationUrl) {
config.annotationUrl = annotationUrl
config.annotationUrl = annotationUrl;
}

const output = Mustache.render(ancoTemplate, {
Expand Down
17 changes: 10 additions & 7 deletions static/src/components/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,28 +112,31 @@
</tbody>
</table>
</div>

</div>
<div class="form-group row">
<div class="col-md-6">
<p> Auto Delete Completed Tasks After </p>
</div>
<div class="col-md-6 pull-right">
<select
v-model="completed_tasks_cleanup_days"
class="form-control input-sm"
v-model="completed_tasks_cleanup_days"
class="form-control input-sm"
>
<option
v-for="opt in [[null, 'None'], [30, '30 days'], [60, '60 days'], [90, '90 days'], [180, '180 days']]"
:key="opt[0]"
:value="opt[0]"
v-for="opt in [[null, 'None'], [30, '30 days'], [60, '60 days'], [90, '90 days'], [180, '180 days']]"
:key="opt[0]"
:value="opt[0]"
>
{{ opt[1] }}
</option>
</select>
</div>
</div>
<div v-if="!this.validAccessLevels.length" class="form-group row"> <!-- enable editing of task submissions only on public platform -->
<div
v-if="!validAccessLevels.length"
class="form-group row"
>
<!-- enable editing of task submissions only on public platform -->
<div class="col-md-6">
<p> Allow Editing of Task Submissions </p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions static/src/components/setting/quiz_setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ import Multiselect from 'vue-multiselect';
import TableQuiz from './quiz_result_table.vue';
import GigSpinner from '../common/gig_spinner.vue';
Vue.component('multiselect', Multiselect);
Vue.component('table-quiz', TableQuiz);
Vue.component('Multiselect', Multiselect);
Vue.component('TableQuiz', TableQuiz);
export default {
components: {
Expand Down
2 changes: 1 addition & 1 deletion static/src/test/components/AncoForm.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createLocalVue, mount } from '@vue/test-utils';
import AncoForm from "../../components/builder/components/Anco/AncoForm";
import AncoForm from '../../components/builder/components/Anco/AncoForm';
import { __createMocks as createStoreMocks } from '../../components/builder/store';
import * as types from '../../components/builder/store/types';

Expand Down

0 comments on commit cba333b

Please sign in to comment.