This commit is contained in:
ryan
2026-07-13 15:44:03 +08:00
parent 0548a8a5d4
commit 26be762c3a
102 changed files with 909 additions and 490 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import type {ThemeConfig} from './types';
import type { ThemeConfig } from './types';
/**
* 主题系统配置
+11 -5
View File
@@ -1,10 +1,16 @@
'use client';
import React, {createContext, useCallback, useContext, useEffect, useState,} from 'react';
import {useTheme as useNextTheme} from 'next-themes';
import type {Theme} from './types';
import {getStoredThemeId, setStoredThemeId} from './storage';
import {getAvailableThemes} from './parser';
import React, {
createContext,
useCallback,
useContext,
useEffect,
useState,
} from 'react';
import { useTheme as useNextTheme } from 'next-themes';
import type { Theme } from './types';
import { getStoredThemeId, setStoredThemeId } from './storage';
import { getAvailableThemes } from './parser';
/**
* 主题上下文类型定义
+1 -1
View File
@@ -4559,4 +4559,4 @@
}
}
}
]
]