core&ui: remove Hydro.service.bus, Hydro.ui.template

This commit is contained in:
undefined committed 2025-03-09 16:05:02 +08:00
1 parent a459b9a1fd
commit 1a7b08e56e
8 files changed
+193 -178

No files matched your search

-7
View File
@@ -596,11 +596,6 @@ export interface Model {
rp: typeof import('./script/rating').RpTypes,
}
export interface HydroService {
/** @deprecated */
bus: Context,
}
export interface GeoIP {
provider: string,
lookup: (ip: string, locale?: string) => any,
@@ -629,7 +624,6 @@ export interface Lib extends Record<string, any> {
export type UIInjectableFields = 'ProblemAdd' | 'Notification' | 'Nav' | 'UserDropdown' | 'DomainManage' | 'ControlPanel';
export interface UI {
template: Record<string, string>,
nodes: Record<UIInjectableFields, any[]>,
getNodes: typeof import('./lib/ui').getNodes,
inject: typeof import('./lib/ui').inject,
@@ -650,7 +644,6 @@ export interface HydroGlobal {
version: Record<string, string>;
model: Model;
script: Record<string, Script>;
service: HydroService;
lib: Lib;
module: { [K in keyof ModuleInterfaces]: Record<string, ModuleInterfaces[K]> };
ui: UI;