chore: lint

This commit is contained in:
Adrien Marquès 2022-10-25 15:08:53 +02:00
parent 5021b1ea3b
commit 3a80ab0a60
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
5 changed files with 25 additions and 25 deletions

View File

@ -78,6 +78,9 @@ const DEFAULT_TAG = tTag.All;
export default class SkillPicker extends Vue { export default class SkillPicker extends Vue {
// list of available skills // list of available skills
public readonly ids: tID[] = skills.available(); public readonly ids: tID[] = skills.available();
// details section when a skill is selected
protected details: Details|null = null;
// currently selected skill // currently selected skill
private sel: tID|null = null; private sel: tID|null = null;
@ -89,9 +92,6 @@ export default class SkillPicker extends Vue {
// currently selected tag // currently selected tag
private tag: tTag = tTag.Language; 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 // selects or deselects a skill. If the skill is not in the current
// folder, it navigates to the DEFAULT_TAG folder beforehand. Scrolls to // folder, it navigates to the DEFAULT_TAG folder beforehand. Scrolls to
// the selected skill when selected. // the selected skill when selected.

View File

@ -139,19 +139,6 @@ export default class Timeline extends Vue {
private skill: tID|null = null; private skill: tID|null = null;
private projects: Project[] = []; 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) { public filter(skill: tID|null) {
this.skill = skill; this.skill = skill;
@ -203,6 +190,19 @@ export default class Timeline extends Vue {
scroller.go('skill-picker', 0); 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() { private mounted() {
document.body.addEventListener('scroll', this.onScroll, { passive: true }); document.body.addEventListener('scroll', this.onScroll, { passive: true });
} }

View File

@ -286,7 +286,7 @@ export const Projects: Project[] = [
source: [ source: [
{ name: 'git.xdrm.io/go/neuralnet.php', link: 'https://git.xdrm.io/go/neuralnet.php', commits: 5 }, { 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, commits: 0,
}, },
{ {