Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruth Oldja committed Aug 4, 2020
1 parent 421a30f commit b329965
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/components/TimerComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ export default class TimerComponent extends Vue {
}

private mounted(): void {
window.addEventListener('keyup', (e) => {
window.addEventListener('keyup', (e: KeyboardEvent): void => {
if (e.keyCode === 32) {
this.timerTrigger();
}
if (e.keyCode === 27) {
this.clearTimer();
}
});
window.onkeydown = function(e) {
return !(e.keyCode == 32 && e.target == document.body);
window.onkeydown = (e: KeyboardEvent): boolean => {
return !(e.keyCode === 32 && e.target === document.body);
};
this.$notify({
group: 'notifications',
Expand Down Expand Up @@ -80,7 +80,7 @@ export default class TimerComponent extends Vue {
private tick(): void {
setTimeout( () => {
if (this.timerRunning) {
this.tick();
this.tick();
}
this.time += 0.01;
}, 10 );
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import Notifications from 'vue-notification'
import Notifications from 'vue-notification';
import BootstrapVue from 'bootstrap-vue';
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';
import '@fortawesome/fontawesome-free/css/all.css'
import '@fortawesome/fontawesome-free/js/all.js'
import '@fortawesome/fontawesome-free/css/all.css';
import '@fortawesome/fontawesome-free/js/all.js';

Vue.use(BootstrapVue);
Vue.use(Notifications);
Expand Down
2 changes: 1 addition & 1 deletion src/models/SolveLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export class SolveLog {
public userId: number | null;
public time: number;
public dnf: boolean;

constructor(id: number, sessionId: number, userId: number | null, time: number, dnf: boolean) {
this.id = id;
this.sessionId = sessionId;
Expand Down
10 changes: 5 additions & 5 deletions src/shims-html.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
declare module '*.html' {
import Vue, { ComponentOptions, FunctionalComponentOptions } from 'vue'
import Vue, { ComponentOptions, FunctionalComponentOptions } from 'vue';
interface WithRender {
<V extends Vue, U extends ComponentOptions<V> | FunctionalComponentOptions>(options: U): U
<V extends typeof Vue>(component: V): V
<V extends Vue, U extends ComponentOptions<V> | FunctionalComponentOptions>(options: U): U;
<V extends typeof Vue>(component: V): V;
}
const withRender: WithRender
export default withRender
const withRender: WithRender;
export default withRender;
}

0 comments on commit b329965

Please sign in to comment.