first commit
This commit is contained in:
1
src/core/run/.pydio
Normal file
1
src/core/run/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
b7bb9238-8c04-4671-a65c-4880baa9ff7d
|
||||
27
src/core/run/Init.run.ts
Normal file
27
src/core/run/Init.run.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { AutoLoadWindow, CreateApplicationMenu, CreateTouchbar, CreateTray }
|
||||
from "@annotation/Run.annotation";
|
||||
import { CreateApplicationIpc } from "@annotation/Creted.annotation";
|
||||
import { Application } from "@ipc/Application.ipc";
|
||||
import { BaseControllerTypes } from "@type/BaseController.types";
|
||||
|
||||
/**
|
||||
* 启动类
|
||||
* 作用:注册全局事件
|
||||
* V2版本开发新的注解支持:
|
||||
* @AutoLoadWindow() 注解 根据 Index.config.ts 中的 StartPage 自动寻找controller文件夹下的ts文件,然后作为主窗体启动
|
||||
* @CreateApplicationMenu() 创建菜单
|
||||
* @CreateTouchbar() 创建mac键盘上的Touchbar
|
||||
* @CreateTray() 创建mac顶部全局菜单图标
|
||||
* @CreateApplicationIpc() 注册全局ipc
|
||||
*/
|
||||
@AutoLoadWindow()
|
||||
@CreateApplicationMenu()
|
||||
@CreateTouchbar()
|
||||
@CreateTray()
|
||||
@CreateApplicationIpc([ Application ])
|
||||
export class Run implements BaseControllerTypes {
|
||||
event(): void {}
|
||||
ipc(): void {}
|
||||
monitor(): void {}
|
||||
ui(): void {}
|
||||
}
|
||||
Reference in New Issue
Block a user