feat(client): add routes for version, time, system info, and restart functionality
This commit is contained in:
@@ -24,9 +24,15 @@ export const assistantQuery = useContextKey('assistantQuery', () => {
|
||||
return new AssistantQuery(assistantConfig);
|
||||
});
|
||||
|
||||
export const runtime = useContextKey('runtime', () => {
|
||||
type Runtime = {
|
||||
type: 'client' | 'server';
|
||||
isServer?: boolean;
|
||||
}
|
||||
export const runtime: Runtime = useContextKey('runtime', () => {
|
||||
console.log('Runtime detected:', manualParse);
|
||||
return {
|
||||
type: 'client',
|
||||
isServer: manualParse.isServer,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user