chore: lint
This commit is contained in:
parent
5021b1ea3b
commit
3a80ab0a60
|
@ -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.
|
||||||
|
|
|
@ -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 });
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import Vue, { VNode } from 'vue';
|
import Vue, { VNode } from 'vue';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
namespace JSX {
|
namespace JSX {
|
||||||
// tslint:disable no-empty-interface
|
// tslint:disable no-empty-interface
|
||||||
interface Element extends VNode {}
|
interface Element extends VNode {}
|
||||||
// tslint:disable no-empty-interface
|
// tslint:disable no-empty-interface
|
||||||
interface ElementClass extends Vue {}
|
interface ElementClass extends Vue {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
declare module '*.vue' {
|
declare module '*.vue' {
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
export default Vue;
|
export default Vue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue