From 3a80ab0a60bd3fdba7f68c65aa77774ae0d2d9e2 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 25 Oct 2022 15:08:53 +0200 Subject: [PATCH] chore: lint --- src/components/SkillPicker.vue | 6 +++--- src/components/Timeline.vue | 26 +++++++++++++------------- src/model/projects.ts | 2 +- src/shims-tsx.d.ts | 12 ++++++------ src/shims-vue.d.ts | 4 ++-- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/components/SkillPicker.vue b/src/components/SkillPicker.vue index abf7f56..0130689 100644 --- a/src/components/SkillPicker.vue +++ b/src/components/SkillPicker.vue @@ -78,6 +78,9 @@ const DEFAULT_TAG = tTag.All; export default class SkillPicker extends Vue { // list of available skills public readonly ids: tID[] = skills.available(); + + // details section when a skill is selected + protected details: Details|null = null; // currently selected skill private sel: tID|null = null; @@ -89,9 +92,6 @@ export default class SkillPicker extends Vue { // currently selected tag private tag: tTag = tTag.Language; - // details section when a skill is selected - protected details: Details|null = null; - // selects or deselects a skill. If the skill is not in the current // folder, it navigates to the DEFAULT_TAG folder beforehand. Scrolls to // the selected skill when selected. diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index 55038a6..46b8144 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -139,19 +139,6 @@ export default class Timeline extends Vue { private skill: tID|null = null; private projects: Project[] = []; - private sort_projects(a: Project, b: Project): number { - if ( b.stopped_at == null && a.stopped_at == null ) { - return b.started_at.getTime() - a.started_at.getTime(); - } - if ( a.stopped_at != null && b.stopped_at == null ) { - return 1; - } - if ( b.stopped_at != null && a.stopped_at == null ) { - return -1; - } - return b.started_at.getTime() - a.started_at.getTime(); - } - public filter(skill: tID|null) { this.skill = skill; @@ -203,6 +190,19 @@ export default class Timeline extends Vue { scroller.go('skill-picker', 0); } + private sort_projects(a: Project, b: Project): number { + if ( b.stopped_at == null && a.stopped_at == null ) { + return b.started_at.getTime() - a.started_at.getTime(); + } + if ( a.stopped_at != null && b.stopped_at == null ) { + return 1; + } + if ( b.stopped_at != null && a.stopped_at == null ) { + return -1; + } + return b.started_at.getTime() - a.started_at.getTime(); + } + private mounted() { document.body.addEventListener('scroll', this.onScroll, { passive: true }); } diff --git a/src/model/projects.ts b/src/model/projects.ts index 13d33e9..3791cfe 100644 --- a/src/model/projects.ts +++ b/src/model/projects.ts @@ -286,7 +286,7 @@ export const Projects: Project[] = [ source: [ { name: 'git.xdrm.io/go/neuralnet.php', link: 'https://git.xdrm.io/go/neuralnet.php', commits: 5 }, ], - doc: { name: "pkg.go.dev/git.xdrm.io/go/neuralnet", link: 'https://pkg.go.dev/git.xdrm.io/go/neuralnet' }, + doc: { name: 'pkg.go.dev/git.xdrm.io/go/neuralnet', link: 'https://pkg.go.dev/git.xdrm.io/go/neuralnet' }, commits: 0, }, { diff --git a/src/shims-tsx.d.ts b/src/shims-tsx.d.ts index 2bb43a5..6210378 100644 --- a/src/shims-tsx.d.ts +++ b/src/shims-tsx.d.ts @@ -1,10 +1,10 @@ import Vue, { VNode } from 'vue'; declare global { - namespace JSX { - // tslint:disable no-empty-interface - interface Element extends VNode {} - // tslint:disable no-empty-interface - interface ElementClass extends Vue {} - } + namespace JSX { + // tslint:disable no-empty-interface + interface Element extends VNode {} + // tslint:disable no-empty-interface + interface ElementClass extends Vue {} + } } diff --git a/src/shims-vue.d.ts b/src/shims-vue.d.ts index 8f6f410..b3a21c6 100644 --- a/src/shims-vue.d.ts +++ b/src/shims-vue.d.ts @@ -1,4 +1,4 @@ declare module '*.vue' { - import Vue from 'vue'; - export default Vue; + import Vue from 'vue'; + export default Vue; }