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[]; }