Export store interfaces and fix dotenv code block to resolve TypeDoc warnings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,7 @@ Copy `.env` to `.env.local` and set the backend API URL:
|
|||||||
cp .env .env.local
|
cp .env .env.local
|
||||||
```
|
```
|
||||||
|
|
||||||
```dotenv
|
```sh
|
||||||
# .env.local
|
# .env.local
|
||||||
VUE_APP_API_URL = "http://localhost:8000"
|
VUE_APP_API_URL = "http://localhost:8000"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import apiError from '@/module/apiError';
|
|||||||
import { useLoginStore } from '@/stores/login';
|
import { useLoginStore } from '@/stores/login';
|
||||||
import { JUST_CREATE_ACCOUNT_HOT_DURATION_MINS } from '@/constants/constants';
|
import { JUST_CREATE_ACCOUNT_HOT_DURATION_MINS } from '@/constants/constants';
|
||||||
|
|
||||||
interface User {
|
export interface User {
|
||||||
username: string;
|
username: string;
|
||||||
detail: Record<string, any>;
|
detail: Record<string, any>;
|
||||||
name?: string;
|
name?: string;
|
||||||
@@ -28,7 +28,7 @@ interface User {
|
|||||||
isDetailHovered?: boolean;
|
isDetailHovered?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface EditDetail {
|
export interface EditDetail {
|
||||||
newUsername?: string;
|
newUsername?: string;
|
||||||
username?: string;
|
username?: string;
|
||||||
password: string;
|
password: string;
|
||||||
|
|||||||
@@ -15,17 +15,17 @@ import { defineStore } from 'pinia';
|
|||||||
import { SAVE_KEY_NAME } from '@/constants/constants.js';
|
import { SAVE_KEY_NAME } from '@/constants/constants.js';
|
||||||
|
|
||||||
|
|
||||||
interface Position {
|
export interface Position {
|
||||||
x: number;
|
x: number;
|
||||||
y: number;
|
y: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Node {
|
export interface Node {
|
||||||
id: string;
|
id: string;
|
||||||
position: Position;
|
position: Position;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NodePositions {
|
export interface NodePositions {
|
||||||
[direction: string]: {
|
[direction: string]: {
|
||||||
[graphId: string]: Node[];
|
[graphId: string]: Node[];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user