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"
|
||||
:path="new Path()"
|
||||
:segment="new Segment(ui.anchorId, 0)"
|
||||
:forceOpen="true"
|
||||
:force-open="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ function onSelectRepo(id: string) {
|
|||
>
|
||||
<CNavbarDropdownEntry
|
||||
v-for="repo of repos.reposByName"
|
||||
:key="repo.id"
|
||||
:class="{ 'font-medium': repo.id === repos.selectedRepoId }"
|
||||
@click="onSelectRepo(repo.id)"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ function onCreateEditorFinish(text: string) {
|
|||
<div class="flex flex-col">
|
||||
<!-- Parents -->
|
||||
<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 }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -165,7 +165,7 @@ function onCreateEditorFinish(text: string) {
|
|||
<CNoteEditor
|
||||
v-if="editing"
|
||||
class="flex-1"
|
||||
:initialText="note?.text"
|
||||
:initial-text="note?.text"
|
||||
@close="onEditEditorClose"
|
||||
@finish="onEditEditorFinish"
|
||||
/>
|
||||
|
|
@ -197,7 +197,7 @@ function onCreateEditorFinish(text: string) {
|
|||
:key="child.fmt()"
|
||||
:path="path.concat(child)"
|
||||
:segment="child"
|
||||
:parentId="id"
|
||||
:parent-id="id"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export class Segment {
|
|||
readonly iteration: number,
|
||||
) {
|
||||
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 {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { computed, ref } from "vue";
|
||||
|
||||
export type Note = {
|
||||
export interface Note {
|
||||
readonly id: string;
|
||||
text: string;
|
||||
children: string[];
|
||||
};
|
||||
}
|
||||
|
||||
export const useNotesStore = defineStore("notes", () => {
|
||||
const notes = ref<Map<string, Note>>(new Map());
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { computed, ref } from "vue";
|
||||
|
||||
type Repo = {
|
||||
interface Repo {
|
||||
id: string;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
|
||||
export const useReposStore = defineStore("repos", () => {
|
||||
const repos = ref<Map<string, Repo>>(new Map());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue