@omniviewdev/runtime 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/dist/Client-DGdSmmVk.js +585 -0
- package/dist/Client-ES-O5dCV.cjs +1 -0
- package/dist/api.cjs +1 -0
- package/dist/api.d.ts +13 -0
- package/dist/api.js +120 -0
- package/dist/context/drawer/BottomDrawerContext.d.ts +20 -0
- package/dist/context/drawer/RightDrawerContext.d.ts +15 -0
- package/dist/context/drawer/index.d.ts +3 -0
- package/dist/context/drawer/types.d.ts +222 -0
- package/dist/context/index.d.ts +5 -0
- package/dist/context/modal/ConfirmationModalContext.d.ts +12 -0
- package/dist/context/modal/index.d.ts +1 -0
- package/dist/context/operations/OperationsContext.d.ts +27 -0
- package/dist/context/plugins/PluginContext.d.ts +9 -0
- package/dist/context/plugins/PluginContextProvider.d.ts +5 -0
- package/dist/context/plugins/index.d.ts +3 -0
- package/dist/context/plugins/usePluginContext.d.ts +3 -0
- package/dist/context/settings/SettingsContext.d.ts +9 -0
- package/dist/context/settings/index.d.ts +1 -0
- package/dist/errors/index.d.ts +3 -0
- package/dist/errors/parseAppError.d.ts +51 -0
- package/dist/errors/parseAppError.test.d.ts +1 -0
- package/dist/errors/types.d.ts +40 -0
- package/dist/extensions/index.d.ts +2 -0
- package/dist/extensions/points/resource/helpers.d.ts +19 -0
- package/dist/extensions/points/resource/types.d.ts +6 -0
- package/dist/extensions/provider.d.ts +18 -0
- package/dist/extensions/registry.d.ts +30 -0
- package/dist/extensions/utils.d.ts +4 -0
- package/dist/hooks/connection/index.d.ts +4 -0
- package/dist/hooks/connection/useConnection.d.ts +37 -0
- package/dist/hooks/connection/useConnectionNamespaces.d.ts +20 -0
- package/dist/hooks/connection/useConnectionStatus.d.ts +29 -0
- package/dist/hooks/connection/useConnections.d.ts +18 -0
- package/dist/hooks/data/index.d.ts +1 -0
- package/dist/hooks/data/usePluginData.d.ts +11 -0
- package/dist/hooks/drawer/index.d.ts +2 -0
- package/dist/hooks/drawer/useBottomDrawer.d.ts +1 -0
- package/dist/hooks/drawer/useRightDrawer.d.ts +5 -0
- package/dist/hooks/exec/index.d.ts +1 -0
- package/dist/hooks/exec/useExecSession.d.ts +21 -0
- package/dist/hooks/index.d.ts +13 -0
- package/dist/hooks/logs/index.d.ts +1 -0
- package/dist/hooks/logs/useLogSession.d.ts +21 -0
- package/dist/hooks/metric/index.d.ts +3 -0
- package/dist/hooks/metric/useMetricProviders.d.ts +9 -0
- package/dist/hooks/metric/useMetricStream.d.ts +40 -0
- package/dist/hooks/metric/useResourceMetrics.d.ts +46 -0
- package/dist/hooks/modal/index.d.ts +1 -0
- package/dist/hooks/modal/useConfirmationModal.d.ts +5 -0
- package/dist/hooks/networker/index.d.ts +3 -0
- package/dist/hooks/networker/types.d.ts +50 -0
- package/dist/hooks/networker/usePortForwardSessions.d.ts +13 -0
- package/dist/hooks/networker/useResourcePortForwarder.d.ts +21 -0
- package/dist/hooks/operations/useOperations.d.ts +1 -0
- package/dist/hooks/resource/index.d.ts +13 -0
- package/dist/hooks/resource/useActiveSyncs.d.ts +16 -0
- package/dist/hooks/resource/useEditorSchemas.d.ts +22 -0
- package/dist/hooks/resource/useInformerState.d.ts +24 -0
- package/dist/hooks/resource/useResource.d.ts +74 -0
- package/dist/hooks/resource/useResourceActions.d.ts +69 -0
- package/dist/hooks/resource/useResourceAreaComponent.d.ts +9 -0
- package/dist/hooks/resource/useResourceGroups.d.ts +22 -0
- package/dist/hooks/resource/useResourceMutations.d.ts +58 -0
- package/dist/hooks/resource/useResourceSearch.d.ts +36 -0
- package/dist/hooks/resource/useResourceType.d.ts +22 -0
- package/dist/hooks/resource/useResourceTypes.d.ts +22 -0
- package/dist/hooks/resource/useResources.d.ts +73 -0
- package/dist/hooks/resource/useStreamAction.d.ts +21 -0
- package/dist/hooks/settings/index.d.ts +1 -0
- package/dist/hooks/settings/useSettings.d.ts +2 -0
- package/dist/hooks/snackbar/index.d.ts +1 -0
- package/dist/hooks/snackbar/useSnackbar.d.ts +24 -0
- package/dist/hooks/useResolvedPluginId.d.ts +8 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2593 -0
- package/dist/models.cjs +1 -0
- package/dist/models.d.ts +1 -0
- package/dist/models.js +1915 -0
- package/dist/router/Link.d.ts +24 -0
- package/dist/router/index.d.ts +11 -0
- package/dist/router/usePluginRouter.d.ts +40 -0
- package/dist/runtime.cjs +1 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +215 -0
- package/dist/types/app.d.ts +73 -0
- package/dist/types/extensions.d.ts +186 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/informer.d.ts +49 -0
- package/dist/types/plugin.d.ts +5 -0
- package/dist/utils/activeSyncAggregator.d.ts +29 -0
- package/dist/utils/activeSyncAggregator.test.d.ts +1 -0
- package/dist/wailsjs/go/data/Client.d.ts +10 -0
- package/dist/wailsjs/go/devserver/DevServerManager.d.ts +22 -0
- package/dist/wailsjs/go/diagnostics/DiagnosticsClient.d.ts +18 -0
- package/dist/wailsjs/go/exec/Client.d.ts +26 -0
- package/dist/wailsjs/go/logs/Client.d.ts +16 -0
- package/dist/wailsjs/go/main/App.d.ts +8 -0
- package/dist/wailsjs/go/metric/Client.d.ts +12 -0
- package/dist/wailsjs/go/models.d.ts +894 -0
- package/dist/wailsjs/go/networker/Client.d.ts +14 -0
- package/dist/wailsjs/go/plugin/pluginManager.d.ts +52 -0
- package/dist/wailsjs/go/resource/Client.d.ts +68 -0
- package/dist/wailsjs/go/settings/Client.d.ts +14 -0
- package/dist/wailsjs/go/settings/provider.d.ts +46 -0
- package/dist/wailsjs/go/ui/Client.d.ts +6 -0
- package/dist/wailsjs/go/utils/Client.d.ts +2 -0
- package/dist/wailsjs/runtime/runtime.d.ts +249 -0
- package/package.json +68 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { networker } from '../models';
|
|
2
|
+
export function ClosePortForwardSession(arg1:string):Promise<networker.PortForwardSession>;
|
|
3
|
+
|
|
4
|
+
export function FindPortForwardSessions(arg1:string,arg2:string,arg3:networker.FindPortForwardSessionRequest):Promise<Array<networker.PortForwardSession>>;
|
|
5
|
+
|
|
6
|
+
export function GetPortForwardSession(arg1:string):Promise<networker.PortForwardSession>;
|
|
7
|
+
|
|
8
|
+
export function GetSupportedPortForwardTargets(arg1:string):Promise<Array<string>>;
|
|
9
|
+
|
|
10
|
+
export function ListAllPortForwardSessions():Promise<Array<networker.PortForwardSession>>;
|
|
11
|
+
|
|
12
|
+
export function ListPortForwardSessions(arg1:string,arg2:string):Promise<Array<networker.PortForwardSession>>;
|
|
13
|
+
|
|
14
|
+
export function StartResourcePortForwardingSession(arg1:string,arg2:string,arg3:networker.PortForwardSessionOptions):Promise<networker.PortForwardSession>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { types, registry, config, context, plugin, devserver } from '../models';
|
|
2
|
+
export function AddTarget(arg1:string):Promise<void>;
|
|
3
|
+
|
|
4
|
+
export function GetPlugin(arg1:string):Promise<types.Plugin>;
|
|
5
|
+
|
|
6
|
+
export function GetPluginDownloadStats(arg1:string):Promise<registry.DownloadStats>;
|
|
7
|
+
|
|
8
|
+
export function GetPluginMeta(arg1:string):Promise<config.PluginMeta>;
|
|
9
|
+
|
|
10
|
+
export function GetPluginReadme(arg1:string):Promise<string>;
|
|
11
|
+
|
|
12
|
+
export function GetPluginReleaseHistory(arg1:string):Promise<Array<registry.VersionInfo>>;
|
|
13
|
+
|
|
14
|
+
export function GetPluginReviews(arg1:string,arg2:number):Promise<Array<registry.Review>>;
|
|
15
|
+
|
|
16
|
+
export function GetPluginVersions(arg1:string):Promise<Array<registry.VersionInfo>>;
|
|
17
|
+
|
|
18
|
+
export function Initialize(arg1:context.Context):Promise<void>;
|
|
19
|
+
|
|
20
|
+
export function InstallFromPathPrompt():Promise<config.PluginMeta>;
|
|
21
|
+
|
|
22
|
+
export function InstallInDevMode():Promise<config.PluginMeta>;
|
|
23
|
+
|
|
24
|
+
export function InstallPluginFromPath(arg1:string):Promise<config.PluginMeta>;
|
|
25
|
+
|
|
26
|
+
export function InstallPluginVersion(arg1:string,arg2:string):Promise<config.PluginMeta>;
|
|
27
|
+
|
|
28
|
+
export function ListAvailablePlugins():Promise<Array<registry.AvailablePlugin>>;
|
|
29
|
+
|
|
30
|
+
export function ListPluginMetas():Promise<Array<config.PluginMeta>>;
|
|
31
|
+
|
|
32
|
+
export function ListPlugins():Promise<Array<types.Plugin>>;
|
|
33
|
+
|
|
34
|
+
export function LoadPlugin(arg1:string,arg2:plugin.LoadPluginOptions):Promise<types.Plugin>;
|
|
35
|
+
|
|
36
|
+
export function ReloadPlugin(arg1:string):Promise<types.Plugin>;
|
|
37
|
+
|
|
38
|
+
export function RemoveTarget(arg1:string):Promise<void>;
|
|
39
|
+
|
|
40
|
+
export function Run(arg1:context.Context):Promise<void>;
|
|
41
|
+
|
|
42
|
+
export function SearchPlugins(arg1:string,arg2:string,arg3:string):Promise<Array<registry.AvailablePlugin>>;
|
|
43
|
+
|
|
44
|
+
export function SetDevServerChecker(arg1:plugin.DevServerChecker):Promise<void>;
|
|
45
|
+
|
|
46
|
+
export function SetDevServerManager(arg1:devserver.DevServerManager):Promise<void>;
|
|
47
|
+
|
|
48
|
+
export function Shutdown():Promise<void>;
|
|
49
|
+
|
|
50
|
+
export function UninstallPlugin(arg1:string):Promise<types.Plugin>;
|
|
51
|
+
|
|
52
|
+
export function UnloadPlugin(arg1:string):Promise<void>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { types } from '../models';
|
|
2
|
+
export function AddConnection(arg1:string,arg2:types.Connection):Promise<void>;
|
|
3
|
+
|
|
4
|
+
export function Create(arg1:string,arg2:string,arg3:string,arg4:types.CreateInput):Promise<types.CreateResult>;
|
|
5
|
+
|
|
6
|
+
export function Delete(arg1:string,arg2:string,arg3:string,arg4:types.DeleteInput):Promise<types.DeleteResult>;
|
|
7
|
+
|
|
8
|
+
export function EnsureInformerForResource(arg1:string,arg2:string,arg3:string):Promise<void>;
|
|
9
|
+
|
|
10
|
+
export function ExecuteAction(arg1:string,arg2:string,arg3:string,arg4:string,arg5:types.ActionInput):Promise<types.ActionResult>;
|
|
11
|
+
|
|
12
|
+
export function Find(arg1:string,arg2:string,arg3:string,arg4:types.FindInput):Promise<types.FindResult>;
|
|
13
|
+
|
|
14
|
+
export function Get(arg1:string,arg2:string,arg3:string,arg4:types.GetInput):Promise<types.GetResult>;
|
|
15
|
+
|
|
16
|
+
export function GetActions(arg1:string,arg2:string,arg3:string):Promise<Array<types.ActionDescriptor>>;
|
|
17
|
+
|
|
18
|
+
export function GetConnection(arg1:string,arg2:string):Promise<types.Connection>;
|
|
19
|
+
|
|
20
|
+
export function GetConnectionNamespaces(arg1:string,arg2:string):Promise<Array<string>>;
|
|
21
|
+
|
|
22
|
+
export function GetDefaultLayout(arg1:string):Promise<Array<types.LayoutItem>>;
|
|
23
|
+
|
|
24
|
+
export function GetEditorSchemas(arg1:string,arg2:string):Promise<Array<types.EditorSchema>>;
|
|
25
|
+
|
|
26
|
+
export function GetInformerState(arg1:string,arg2:string):Promise<types.InformerConnectionSummary>;
|
|
27
|
+
|
|
28
|
+
export function GetLayout(arg1:string,arg2:string):Promise<Array<types.LayoutItem>>;
|
|
29
|
+
|
|
30
|
+
export function GetResourceDefinition(arg1:string,arg2:string):Promise<types.ResourceDefinition>;
|
|
31
|
+
|
|
32
|
+
export function GetResourceGroup(arg1:string,arg2:string):Promise<types.ResourceGroup>;
|
|
33
|
+
|
|
34
|
+
export function GetResourceGroups(arg1:string,arg2:string):Promise<Record<string, types.ResourceGroup>>;
|
|
35
|
+
|
|
36
|
+
export function GetResourceType(arg1:string,arg2:string):Promise<types.ResourceMeta>;
|
|
37
|
+
|
|
38
|
+
export function GetResourceTypes(arg1:string,arg2:string):Promise<Record<string, types.ResourceMeta>>;
|
|
39
|
+
|
|
40
|
+
export function HasResourceType(arg1:string,arg2:string):Promise<boolean>;
|
|
41
|
+
|
|
42
|
+
export function List(arg1:string,arg2:string,arg3:string,arg4:types.ListInput):Promise<types.ListResult>;
|
|
43
|
+
|
|
44
|
+
export function ListAllConnections():Promise<Record<string, Array<types.Connection>>>;
|
|
45
|
+
|
|
46
|
+
export function ListConnections(arg1:string):Promise<Array<types.Connection>>;
|
|
47
|
+
|
|
48
|
+
export function ListPlugins():Promise<Array<string>>;
|
|
49
|
+
|
|
50
|
+
export function LoadConnections(arg1:string):Promise<Array<types.Connection>>;
|
|
51
|
+
|
|
52
|
+
export function RemoveConnection(arg1:string,arg2:string):Promise<void>;
|
|
53
|
+
|
|
54
|
+
export function SetLayout(arg1:string,arg2:string,arg3:Array<types.LayoutItem>):Promise<void>;
|
|
55
|
+
|
|
56
|
+
export function StartConnection(arg1:string,arg2:string):Promise<types.ConnectionStatus>;
|
|
57
|
+
|
|
58
|
+
export function StartConnectionInformer(arg1:string,arg2:string):Promise<void>;
|
|
59
|
+
|
|
60
|
+
export function StopConnection(arg1:string,arg2:string):Promise<types.Connection>;
|
|
61
|
+
|
|
62
|
+
export function StopConnectionInformer(arg1:string,arg2:string):Promise<void>;
|
|
63
|
+
|
|
64
|
+
export function StreamAction(arg1:string,arg2:string,arg3:string,arg4:string,arg5:types.ActionInput):Promise<string>;
|
|
65
|
+
|
|
66
|
+
export function Update(arg1:string,arg2:string,arg3:string,arg4:types.UpdateInput):Promise<types.UpdateResult>;
|
|
67
|
+
|
|
68
|
+
export function UpdateConnection(arg1:string,arg2:types.Connection):Promise<types.Connection>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { settings } from '../models';
|
|
2
|
+
export function GetSetting(arg1:string,arg2:string):Promise<settings.Setting>;
|
|
3
|
+
|
|
4
|
+
export function ListPlugins():Promise<Array<string>>;
|
|
5
|
+
|
|
6
|
+
export function ListSettings(arg1:string):Promise<Record<string, settings.Setting>>;
|
|
7
|
+
|
|
8
|
+
export function PluginValues(arg1:string):Promise<Record<string, any>>;
|
|
9
|
+
|
|
10
|
+
export function SetSetting(arg1:string,arg2:string,arg3:any):Promise<void>;
|
|
11
|
+
|
|
12
|
+
export function SetSettings(arg1:string,arg2:Record<string, any>):Promise<void>;
|
|
13
|
+
|
|
14
|
+
export function Values():Promise<Record<string, any>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { settings, context } from '../models';
|
|
2
|
+
export function GetBool(arg1:string):Promise<boolean>;
|
|
3
|
+
|
|
4
|
+
export function GetCategories():Promise<Array<settings.Category>>;
|
|
5
|
+
|
|
6
|
+
export function GetCategory(arg1:string):Promise<settings.Category>;
|
|
7
|
+
|
|
8
|
+
export function GetCategoryValues(arg1:string):Promise<Record<string, any>>;
|
|
9
|
+
|
|
10
|
+
export function GetFloat(arg1:string):Promise<number>;
|
|
11
|
+
|
|
12
|
+
export function GetFloatSlice(arg1:string):Promise<Array<number>>;
|
|
13
|
+
|
|
14
|
+
export function GetInt(arg1:string):Promise<number>;
|
|
15
|
+
|
|
16
|
+
export function GetIntSlice(arg1:string):Promise<Array<number>>;
|
|
17
|
+
|
|
18
|
+
export function GetSetting(arg1:string):Promise<settings.Setting>;
|
|
19
|
+
|
|
20
|
+
export function GetSettingValue(arg1:string):Promise<any>;
|
|
21
|
+
|
|
22
|
+
export function GetString(arg1:string):Promise<string>;
|
|
23
|
+
|
|
24
|
+
export function GetStringSlice(arg1:string):Promise<Array<string>>;
|
|
25
|
+
|
|
26
|
+
export function HasSetting(arg1:string):Promise<boolean>;
|
|
27
|
+
|
|
28
|
+
export function Initialize(arg1:context.Context,arg2:Array<settings.Category>):Promise<void>;
|
|
29
|
+
|
|
30
|
+
export function ListSettings():Promise<settings.Store>;
|
|
31
|
+
|
|
32
|
+
export function LoadSettings():Promise<void>;
|
|
33
|
+
|
|
34
|
+
export function RegisterSetting(arg1:string,arg2:settings.Setting):Promise<void>;
|
|
35
|
+
|
|
36
|
+
export function RegisterSettings(arg1:string,arg2:Array<settings.Setting>):Promise<void>;
|
|
37
|
+
|
|
38
|
+
export function ResetSetting(arg1:string):Promise<void>;
|
|
39
|
+
|
|
40
|
+
export function SaveSettings():Promise<void>;
|
|
41
|
+
|
|
42
|
+
export function SetSetting(arg1:string,arg2:any):Promise<void>;
|
|
43
|
+
|
|
44
|
+
export function SetSettings(arg1:Record<string, any>):Promise<void>;
|
|
45
|
+
|
|
46
|
+
export function Values():Promise<Record<string, any>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ui } from '../models';
|
|
2
|
+
export function GetPluginComponents(arg1:ui.GetPluginComponentsInput):Promise<Record<string, Array<ui.ResourceComponent>>>;
|
|
3
|
+
|
|
4
|
+
export function GetResourceAreaComponent(arg1:ui.GetResourceAreaComponentInput):Promise<ui.ResourceComponent>;
|
|
5
|
+
|
|
6
|
+
export function GetResourceComponents(arg1:ui.GetResourceComponentsInput):Promise<Array<ui.ResourceComponent>>;
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/*
|
|
2
|
+
_ __ _ __
|
|
3
|
+
| | / /___ _(_) /____
|
|
4
|
+
| | /| / / __ `/ / / ___/
|
|
5
|
+
| |/ |/ / /_/ / / (__ )
|
|
6
|
+
|__/|__/\__,_/_/_/____/
|
|
7
|
+
The electron alternative for Go
|
|
8
|
+
(c) Lea Anthony 2019-present
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export interface Position {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface Size {
|
|
17
|
+
w: number;
|
|
18
|
+
h: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface Screen {
|
|
22
|
+
isCurrent: boolean;
|
|
23
|
+
isPrimary: boolean;
|
|
24
|
+
width : number
|
|
25
|
+
height : number
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Environment information such as platform, buildtype, ...
|
|
29
|
+
export interface EnvironmentInfo {
|
|
30
|
+
buildType: string;
|
|
31
|
+
platform: string;
|
|
32
|
+
arch: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// [EventsEmit](https://wails.io/docs/reference/runtime/events#eventsemit)
|
|
36
|
+
// emits the given event. Optional data may be passed with the event.
|
|
37
|
+
// This will trigger any event listeners.
|
|
38
|
+
export function EventsEmit(eventName: string, ...data: any): void;
|
|
39
|
+
|
|
40
|
+
// [EventsOn](https://wails.io/docs/reference/runtime/events#eventson) sets up a listener for the given event name.
|
|
41
|
+
export function EventsOn(eventName: string, callback: (...data: any) => void): () => void;
|
|
42
|
+
|
|
43
|
+
// [EventsOnMultiple](https://wails.io/docs/reference/runtime/events#eventsonmultiple)
|
|
44
|
+
// sets up a listener for the given event name, but will only trigger a given number times.
|
|
45
|
+
export function EventsOnMultiple(eventName: string, callback: (...data: any) => void, maxCallbacks: number): () => void;
|
|
46
|
+
|
|
47
|
+
// [EventsOnce](https://wails.io/docs/reference/runtime/events#eventsonce)
|
|
48
|
+
// sets up a listener for the given event name, but will only trigger once.
|
|
49
|
+
export function EventsOnce(eventName: string, callback: (...data: any) => void): () => void;
|
|
50
|
+
|
|
51
|
+
// [EventsOff](https://wails.io/docs/reference/runtime/events#eventsoff)
|
|
52
|
+
// unregisters the listener for the given event name.
|
|
53
|
+
export function EventsOff(eventName: string, ...additionalEventNames: string[]): void;
|
|
54
|
+
|
|
55
|
+
// [EventsOffAll](https://wails.io/docs/reference/runtime/events#eventsoffall)
|
|
56
|
+
// unregisters all listeners.
|
|
57
|
+
export function EventsOffAll(): void;
|
|
58
|
+
|
|
59
|
+
// [LogPrint](https://wails.io/docs/reference/runtime/log#logprint)
|
|
60
|
+
// logs the given message as a raw message
|
|
61
|
+
export function LogPrint(message: string): void;
|
|
62
|
+
|
|
63
|
+
// [LogTrace](https://wails.io/docs/reference/runtime/log#logtrace)
|
|
64
|
+
// logs the given message at the `trace` log level.
|
|
65
|
+
export function LogTrace(message: string): void;
|
|
66
|
+
|
|
67
|
+
// [LogDebug](https://wails.io/docs/reference/runtime/log#logdebug)
|
|
68
|
+
// logs the given message at the `debug` log level.
|
|
69
|
+
export function LogDebug(message: string): void;
|
|
70
|
+
|
|
71
|
+
// [LogError](https://wails.io/docs/reference/runtime/log#logerror)
|
|
72
|
+
// logs the given message at the `error` log level.
|
|
73
|
+
export function LogError(message: string): void;
|
|
74
|
+
|
|
75
|
+
// [LogFatal](https://wails.io/docs/reference/runtime/log#logfatal)
|
|
76
|
+
// logs the given message at the `fatal` log level.
|
|
77
|
+
// The application will quit after calling this method.
|
|
78
|
+
export function LogFatal(message: string): void;
|
|
79
|
+
|
|
80
|
+
// [LogInfo](https://wails.io/docs/reference/runtime/log#loginfo)
|
|
81
|
+
// logs the given message at the `info` log level.
|
|
82
|
+
export function LogInfo(message: string): void;
|
|
83
|
+
|
|
84
|
+
// [LogWarning](https://wails.io/docs/reference/runtime/log#logwarning)
|
|
85
|
+
// logs the given message at the `warning` log level.
|
|
86
|
+
export function LogWarning(message: string): void;
|
|
87
|
+
|
|
88
|
+
// [WindowReload](https://wails.io/docs/reference/runtime/window#windowreload)
|
|
89
|
+
// Forces a reload by the main application as well as connected browsers.
|
|
90
|
+
export function WindowReload(): void;
|
|
91
|
+
|
|
92
|
+
// [WindowReloadApp](https://wails.io/docs/reference/runtime/window#windowreloadapp)
|
|
93
|
+
// Reloads the application frontend.
|
|
94
|
+
export function WindowReloadApp(): void;
|
|
95
|
+
|
|
96
|
+
// [WindowSetAlwaysOnTop](https://wails.io/docs/reference/runtime/window#windowsetalwaysontop)
|
|
97
|
+
// Sets the window AlwaysOnTop or not on top.
|
|
98
|
+
export function WindowSetAlwaysOnTop(b: boolean): void;
|
|
99
|
+
|
|
100
|
+
// [WindowSetSystemDefaultTheme](https://wails.io/docs/next/reference/runtime/window#windowsetsystemdefaulttheme)
|
|
101
|
+
// *Windows only*
|
|
102
|
+
// Sets window theme to system default (dark/light).
|
|
103
|
+
export function WindowSetSystemDefaultTheme(): void;
|
|
104
|
+
|
|
105
|
+
// [WindowSetLightTheme](https://wails.io/docs/next/reference/runtime/window#windowsetlighttheme)
|
|
106
|
+
// *Windows only*
|
|
107
|
+
// Sets window to light theme.
|
|
108
|
+
export function WindowSetLightTheme(): void;
|
|
109
|
+
|
|
110
|
+
// [WindowSetDarkTheme](https://wails.io/docs/next/reference/runtime/window#windowsetdarktheme)
|
|
111
|
+
// *Windows only*
|
|
112
|
+
// Sets window to dark theme.
|
|
113
|
+
export function WindowSetDarkTheme(): void;
|
|
114
|
+
|
|
115
|
+
// [WindowCenter](https://wails.io/docs/reference/runtime/window#windowcenter)
|
|
116
|
+
// Centers the window on the monitor the window is currently on.
|
|
117
|
+
export function WindowCenter(): void;
|
|
118
|
+
|
|
119
|
+
// [WindowSetTitle](https://wails.io/docs/reference/runtime/window#windowsettitle)
|
|
120
|
+
// Sets the text in the window title bar.
|
|
121
|
+
export function WindowSetTitle(title: string): void;
|
|
122
|
+
|
|
123
|
+
// [WindowFullscreen](https://wails.io/docs/reference/runtime/window#windowfullscreen)
|
|
124
|
+
// Makes the window full screen.
|
|
125
|
+
export function WindowFullscreen(): void;
|
|
126
|
+
|
|
127
|
+
// [WindowUnfullscreen](https://wails.io/docs/reference/runtime/window#windowunfullscreen)
|
|
128
|
+
// Restores the previous window dimensions and position prior to full screen.
|
|
129
|
+
export function WindowUnfullscreen(): void;
|
|
130
|
+
|
|
131
|
+
// [WindowIsFullscreen](https://wails.io/docs/reference/runtime/window#windowisfullscreen)
|
|
132
|
+
// Returns the state of the window, i.e. whether the window is in full screen mode or not.
|
|
133
|
+
export function WindowIsFullscreen(): Promise<boolean>;
|
|
134
|
+
|
|
135
|
+
// [WindowSetSize](https://wails.io/docs/reference/runtime/window#windowsetsize)
|
|
136
|
+
// Sets the width and height of the window.
|
|
137
|
+
export function WindowSetSize(width: number, height: number): void;
|
|
138
|
+
|
|
139
|
+
// [WindowGetSize](https://wails.io/docs/reference/runtime/window#windowgetsize)
|
|
140
|
+
// Gets the width and height of the window.
|
|
141
|
+
export function WindowGetSize(): Promise<Size>;
|
|
142
|
+
|
|
143
|
+
// [WindowSetMaxSize](https://wails.io/docs/reference/runtime/window#windowsetmaxsize)
|
|
144
|
+
// Sets the maximum window size. Will resize the window if the window is currently larger than the given dimensions.
|
|
145
|
+
// Setting a size of 0,0 will disable this constraint.
|
|
146
|
+
export function WindowSetMaxSize(width: number, height: number): void;
|
|
147
|
+
|
|
148
|
+
// [WindowSetMinSize](https://wails.io/docs/reference/runtime/window#windowsetminsize)
|
|
149
|
+
// Sets the minimum window size. Will resize the window if the window is currently smaller than the given dimensions.
|
|
150
|
+
// Setting a size of 0,0 will disable this constraint.
|
|
151
|
+
export function WindowSetMinSize(width: number, height: number): void;
|
|
152
|
+
|
|
153
|
+
// [WindowSetPosition](https://wails.io/docs/reference/runtime/window#windowsetposition)
|
|
154
|
+
// Sets the window position relative to the monitor the window is currently on.
|
|
155
|
+
export function WindowSetPosition(x: number, y: number): void;
|
|
156
|
+
|
|
157
|
+
// [WindowGetPosition](https://wails.io/docs/reference/runtime/window#windowgetposition)
|
|
158
|
+
// Gets the window position relative to the monitor the window is currently on.
|
|
159
|
+
export function WindowGetPosition(): Promise<Position>;
|
|
160
|
+
|
|
161
|
+
// [WindowHide](https://wails.io/docs/reference/runtime/window#windowhide)
|
|
162
|
+
// Hides the window.
|
|
163
|
+
export function WindowHide(): void;
|
|
164
|
+
|
|
165
|
+
// [WindowShow](https://wails.io/docs/reference/runtime/window#windowshow)
|
|
166
|
+
// Shows the window, if it is currently hidden.
|
|
167
|
+
export function WindowShow(): void;
|
|
168
|
+
|
|
169
|
+
// [WindowMaximise](https://wails.io/docs/reference/runtime/window#windowmaximise)
|
|
170
|
+
// Maximises the window to fill the screen.
|
|
171
|
+
export function WindowMaximise(): void;
|
|
172
|
+
|
|
173
|
+
// [WindowToggleMaximise](https://wails.io/docs/reference/runtime/window#windowtogglemaximise)
|
|
174
|
+
// Toggles between Maximised and UnMaximised.
|
|
175
|
+
export function WindowToggleMaximise(): void;
|
|
176
|
+
|
|
177
|
+
// [WindowUnmaximise](https://wails.io/docs/reference/runtime/window#windowunmaximise)
|
|
178
|
+
// Restores the window to the dimensions and position prior to maximising.
|
|
179
|
+
export function WindowUnmaximise(): void;
|
|
180
|
+
|
|
181
|
+
// [WindowIsMaximised](https://wails.io/docs/reference/runtime/window#windowismaximised)
|
|
182
|
+
// Returns the state of the window, i.e. whether the window is maximised or not.
|
|
183
|
+
export function WindowIsMaximised(): Promise<boolean>;
|
|
184
|
+
|
|
185
|
+
// [WindowMinimise](https://wails.io/docs/reference/runtime/window#windowminimise)
|
|
186
|
+
// Minimises the window.
|
|
187
|
+
export function WindowMinimise(): void;
|
|
188
|
+
|
|
189
|
+
// [WindowUnminimise](https://wails.io/docs/reference/runtime/window#windowunminimise)
|
|
190
|
+
// Restores the window to the dimensions and position prior to minimising.
|
|
191
|
+
export function WindowUnminimise(): void;
|
|
192
|
+
|
|
193
|
+
// [WindowIsMinimised](https://wails.io/docs/reference/runtime/window#windowisminimised)
|
|
194
|
+
// Returns the state of the window, i.e. whether the window is minimised or not.
|
|
195
|
+
export function WindowIsMinimised(): Promise<boolean>;
|
|
196
|
+
|
|
197
|
+
// [WindowIsNormal](https://wails.io/docs/reference/runtime/window#windowisnormal)
|
|
198
|
+
// Returns the state of the window, i.e. whether the window is normal or not.
|
|
199
|
+
export function WindowIsNormal(): Promise<boolean>;
|
|
200
|
+
|
|
201
|
+
// [WindowSetBackgroundColour](https://wails.io/docs/reference/runtime/window#windowsetbackgroundcolour)
|
|
202
|
+
// Sets the background colour of the window to the given RGBA colour definition. This colour will show through for all transparent pixels.
|
|
203
|
+
export function WindowSetBackgroundColour(R: number, G: number, B: number, A: number): void;
|
|
204
|
+
|
|
205
|
+
// [ScreenGetAll](https://wails.io/docs/reference/runtime/window#screengetall)
|
|
206
|
+
// Gets the all screens. Call this anew each time you want to refresh data from the underlying windowing system.
|
|
207
|
+
export function ScreenGetAll(): Promise<Screen[]>;
|
|
208
|
+
|
|
209
|
+
// [BrowserOpenURL](https://wails.io/docs/reference/runtime/browser#browseropenurl)
|
|
210
|
+
// Opens the given URL in the system browser.
|
|
211
|
+
export function BrowserOpenURL(url: string): void;
|
|
212
|
+
|
|
213
|
+
// [Environment](https://wails.io/docs/reference/runtime/intro#environment)
|
|
214
|
+
// Returns information about the environment
|
|
215
|
+
export function Environment(): Promise<EnvironmentInfo>;
|
|
216
|
+
|
|
217
|
+
// [Quit](https://wails.io/docs/reference/runtime/intro#quit)
|
|
218
|
+
// Quits the application.
|
|
219
|
+
export function Quit(): void;
|
|
220
|
+
|
|
221
|
+
// [Hide](https://wails.io/docs/reference/runtime/intro#hide)
|
|
222
|
+
// Hides the application.
|
|
223
|
+
export function Hide(): void;
|
|
224
|
+
|
|
225
|
+
// [Show](https://wails.io/docs/reference/runtime/intro#show)
|
|
226
|
+
// Shows the application.
|
|
227
|
+
export function Show(): void;
|
|
228
|
+
|
|
229
|
+
// [ClipboardGetText](https://wails.io/docs/reference/runtime/clipboard#clipboardgettext)
|
|
230
|
+
// Returns the current text stored on clipboard
|
|
231
|
+
export function ClipboardGetText(): Promise<string>;
|
|
232
|
+
|
|
233
|
+
// [ClipboardSetText](https://wails.io/docs/reference/runtime/clipboard#clipboardsettext)
|
|
234
|
+
// Sets a text on the clipboard
|
|
235
|
+
export function ClipboardSetText(text: string): Promise<boolean>;
|
|
236
|
+
|
|
237
|
+
// [OnFileDrop](https://wails.io/docs/reference/runtime/draganddrop#onfiledrop)
|
|
238
|
+
// OnFileDrop listens to drag and drop events and calls the callback with the coordinates of the drop and an array of path strings.
|
|
239
|
+
export function OnFileDrop(callback: (x: number, y: number ,paths: string[]) => void, useDropTarget: boolean) :void
|
|
240
|
+
|
|
241
|
+
// [OnFileDropOff](https://wails.io/docs/reference/runtime/draganddrop#dragandddropoff)
|
|
242
|
+
// OnFileDropOff removes the drag and drop listeners and handlers.
|
|
243
|
+
export function OnFileDropOff() :void
|
|
244
|
+
|
|
245
|
+
// Check if the file path resolver is available
|
|
246
|
+
export function CanResolveFilePaths(): boolean;
|
|
247
|
+
|
|
248
|
+
// Resolves file paths for an array of files
|
|
249
|
+
export function ResolveFilePaths(files: File[]): void
|
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Omniview",
|
|
3
|
+
"license": "AGPL-3.0-only",
|
|
4
|
+
"name": "@omniviewdev/runtime",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"description": "Runtime shared library for Omniview",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "dist/index.cjs",
|
|
10
|
+
"module": "dist/index.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./api": {
|
|
17
|
+
"import": "./dist/api.js",
|
|
18
|
+
"require": "./dist/api.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./models": {
|
|
21
|
+
"import": "./dist/models.js",
|
|
22
|
+
"require": "./dist/models.cjs"
|
|
23
|
+
},
|
|
24
|
+
"./runtime": {
|
|
25
|
+
"import": "./dist/runtime.js",
|
|
26
|
+
"require": "./dist/runtime.cjs"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"directory": "packages/omniview-runtime",
|
|
33
|
+
"url": "https://github.com/omniviewdev/omniview.git"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"registry": "https://registry.npmjs.org/",
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"omniview"
|
|
44
|
+
],
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@tanstack/react-query": "^5.76.1",
|
|
47
|
+
"@types/node": "^20.12.7",
|
|
48
|
+
"@types/react": "^19.0.0",
|
|
49
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
50
|
+
"notistack": "^3.0.1",
|
|
51
|
+
"react": "^19.0.0",
|
|
52
|
+
"react-dom": "^19.0.0",
|
|
53
|
+
"ts-node": "^10.9.2",
|
|
54
|
+
"tsup": "^8.0.2",
|
|
55
|
+
"typescript": "^5.8.3",
|
|
56
|
+
"vite": "^5.2.10",
|
|
57
|
+
"vite-plugin-dts": "^4.5.3"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"lodash.get": "^4.4.2",
|
|
61
|
+
"ts-invariant": "^0.10.3"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "tsc && vite build",
|
|
65
|
+
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./src",
|
|
66
|
+
"lint:fix": "npm run lint -- --fix"
|
|
67
|
+
}
|
|
68
|
+
}
|