# Conflicts: # frontend/src/models/setting.ts # frontend/src/pages/settings/GeneralTab.tsx # frontend/src/pages/settings/SettingsPage.tsx # frontend/src/pages/settings/SubscriptionBalancersTab.tsx # frontend/src/pages/xray/outbounds/OutboundsTab.css # frontend/src/schemas/setting.ts
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
export const keys = {
|
|
server: {
|
|
status: () => ['server', 'status'] as const,
|
|
fail2banStatus: () => ['server', 'fail2banStatus'] as const,
|
|
outboundDirectory: () => ['server', 'outboundDirectory'] as const,
|
|
},
|
|
nodes: {
|
|
root: () => ['nodes'] as const,
|
|
list: () => ['nodes', 'list'] as const,
|
|
},
|
|
hosts: {
|
|
root: () => ['hosts'] as const,
|
|
list: () => ['hosts', 'list'] as const,
|
|
byInbound: (inboundId: number) => ['hosts', 'byInbound', inboundId] as const,
|
|
tags: () => ['hosts', 'tags'] as const,
|
|
},
|
|
settings: {
|
|
root: () => ['settings'] as const,
|
|
all: () => ['settings', 'all'] as const,
|
|
defaults: () => ['settings', 'defaults'] as const,
|
|
factoryDefaults: () => ['settings', 'factoryDefaults'] as const,
|
|
},
|
|
inbounds: {
|
|
root: () => ['inbounds'] as const,
|
|
slim: () => ['inbounds', 'slim'] as const,
|
|
options: () => ['inbounds', 'options'] as const,
|
|
},
|
|
clients: {
|
|
root: () => ['clients'] as const,
|
|
list: (params: unknown) => ['clients', 'list', params] as const,
|
|
all: () => ['clients', 'all'] as const,
|
|
onlines: () => ['clients', 'onlines'] as const,
|
|
onlinesByGuid: () => ['clients', 'onlinesByGuid'] as const,
|
|
activeInbounds: () => ['clients', 'activeInbounds'] as const,
|
|
lastOnline: () => ['clients', 'lastOnline'] as const,
|
|
},
|
|
} as const;
|