Fix eslint warnings
This commit is contained in:
parent
92f5e37a4c
commit
4aeb9eb8bd
6 changed files with 10 additions and 9 deletions
|
|
@ -25,7 +25,7 @@ window.addEventListener("keypress", (ev) => {
|
||||||
v-if="ui.anchorId"
|
v-if="ui.anchorId"
|
||||||
:path="new Path()"
|
:path="new Path()"
|
||||||
:segment="new Segment(ui.anchorId, 0)"
|
:segment="new Segment(ui.anchorId, 0)"
|
||||||
:forceOpen="true"
|
:force-open="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ function onSelectRepo(id: string) {
|
||||||
>
|
>
|
||||||
<CNavbarDropdownEntry
|
<CNavbarDropdownEntry
|
||||||
v-for="repo of repos.reposByName"
|
v-for="repo of repos.reposByName"
|
||||||
|
:key="repo.id"
|
||||||
:class="{ 'font-medium': repo.id === repos.selectedRepoId }"
|
:class="{ 'font-medium': repo.id === repos.selectedRepoId }"
|
||||||
@click="onSelectRepo(repo.id)"
|
@click="onSelectRepo(repo.id)"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ function onCreateEditorFinish(text: string) {
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<!-- Parents -->
|
<!-- Parents -->
|
||||||
<div v-if="parents.length > 0" class="pt-1">
|
<div v-if="parents.length > 0" class="pt-1">
|
||||||
<div v-for="parent of parents" class="pl-6 text-xs text-neutral-400">
|
<div v-for="parent of parents" :key="parent.id" class="pl-6 text-xs text-neutral-400">
|
||||||
<RiCornerUpRightLine size="12px" class="inline" /> {{ parent.text }}
|
<RiCornerUpRightLine size="12px" class="inline" /> {{ parent.text }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -165,7 +165,7 @@ function onCreateEditorFinish(text: string) {
|
||||||
<CNoteEditor
|
<CNoteEditor
|
||||||
v-if="editing"
|
v-if="editing"
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
:initialText="note?.text"
|
:initial-text="note?.text"
|
||||||
@close="onEditEditorClose"
|
@close="onEditEditorClose"
|
||||||
@finish="onEditEditorFinish"
|
@finish="onEditEditorFinish"
|
||||||
/>
|
/>
|
||||||
|
|
@ -197,7 +197,7 @@ function onCreateEditorFinish(text: string) {
|
||||||
:key="child.fmt()"
|
:key="child.fmt()"
|
||||||
:path="path.concat(child)"
|
:path="path.concat(child)"
|
||||||
:segment="child"
|
:segment="child"
|
||||||
:parentId="id"
|
:parent-id="id"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export class Segment {
|
||||||
readonly iteration: number,
|
readonly iteration: number,
|
||||||
) {
|
) {
|
||||||
assert(Number.isInteger(iteration), "n must be an integer");
|
assert(Number.isInteger(iteration), "n must be an integer");
|
||||||
assert(iteration >= 0), "n must not be negative";
|
assert(iteration >= 0, "n must not be negative");
|
||||||
}
|
}
|
||||||
|
|
||||||
static parse(text: string): Segment {
|
static parse(text: string): Segment {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { computed, ref } from "vue";
|
import { computed, ref } from "vue";
|
||||||
|
|
||||||
export type Note = {
|
export interface Note {
|
||||||
readonly id: string;
|
readonly id: string;
|
||||||
text: string;
|
text: string;
|
||||||
children: string[];
|
children: string[];
|
||||||
};
|
}
|
||||||
|
|
||||||
export const useNotesStore = defineStore("notes", () => {
|
export const useNotesStore = defineStore("notes", () => {
|
||||||
const notes = ref<Map<string, Note>>(new Map());
|
const notes = ref<Map<string, Note>>(new Map());
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { computed, ref } from "vue";
|
import { computed, ref } from "vue";
|
||||||
|
|
||||||
type Repo = {
|
interface Repo {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
};
|
}
|
||||||
|
|
||||||
export const useReposStore = defineStore("repos", () => {
|
export const useReposStore = defineStore("repos", () => {
|
||||||
const repos = ref<Map<string, Repo>>(new Map());
|
const repos = ref<Map<string, Repo>>(new Map());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue