first commit

This commit is contained in:
编码猿
2024-09-27 01:23:51 +08:00
commit 72ab70b6fd
212 changed files with 30296 additions and 0 deletions

1
src/core/run/.pydio Normal file
View File

@@ -0,0 +1 @@
b7bb9238-8c04-4671-a65c-4880baa9ff7d

27
src/core/run/Init.run.ts Normal file
View 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 {}
}