From aeb6d207c5b95b4879abf0cfa4ed0844effee9af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 10 Mar 2026 10:26:29 +0800 Subject: [PATCH] Export store interfaces and fix dotenv code block to resolve TypeDoc warnings Co-Authored-By: Claude Opus 4.6 --- README.md | 2 +- src/stores/acctMgmt.ts | 4 ++-- src/stores/cytoscapeStore.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index baa5bdc..3f799b4 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Copy `.env` to `.env.local` and set the backend API URL: cp .env .env.local ``` -```dotenv +```sh # .env.local VUE_APP_API_URL = "http://localhost:8000" ``` diff --git a/src/stores/acctMgmt.ts b/src/stores/acctMgmt.ts index 1b3d803..f49c37a 100644 --- a/src/stores/acctMgmt.ts +++ b/src/stores/acctMgmt.ts @@ -15,7 +15,7 @@ import apiError from '@/module/apiError'; import { useLoginStore } from '@/stores/login'; import { JUST_CREATE_ACCOUNT_HOT_DURATION_MINS } from '@/constants/constants'; -interface User { +export interface User { username: string; detail: Record; name?: string; @@ -28,7 +28,7 @@ interface User { isDetailHovered?: boolean; } -interface EditDetail { +export interface EditDetail { newUsername?: string; username?: string; password: string; diff --git a/src/stores/cytoscapeStore.ts b/src/stores/cytoscapeStore.ts index d250fea..8de21bc 100644 --- a/src/stores/cytoscapeStore.ts +++ b/src/stores/cytoscapeStore.ts @@ -15,17 +15,17 @@ import { defineStore } from 'pinia'; import { SAVE_KEY_NAME } from '@/constants/constants.js'; -interface Position { +export interface Position { x: number; y: number; } -interface Node { +export interface Node { id: string; position: Position; } -interface NodePositions { +export interface NodePositions { [direction: string]: { [graphId: string]: Node[]; }