mirror of
https://github.com/carey314/mio-plugin-worker.git
synced 2026-08-10 07:04:32 +00:00
Office-survival toolkit. Five tabs in the notch: - 🍅 番茄钟: 25/5 focus/break with circular ring timer + tally. - 🪑 久坐: count-up since last break, dock-bounce alert at 45min. - 💧 喝水: animated cup, daily goal tracking with progress dots. - 🏃 下班: H:M:S countdown to clock-out hour with gradient bar. - 🎉 周末: 天/时/分 to next Saturday + rotating 打工语录. 100% local. UNUserNotificationCenter for alerts, dock-bounce fallback when authorization denied. UserDefaults persistence. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
19 lines
477 B
Swift
19 lines
477 B
Swift
//
|
|
// MioPlugin.swift
|
|
// Mio Island Plugin SDK (verbatim copy from host).
|
|
// Runtime conformance is by ObjC selector, not module identity.
|
|
//
|
|
|
|
import AppKit
|
|
|
|
@objc protocol MioPlugin: AnyObject {
|
|
var id: String { get }
|
|
var name: String { get }
|
|
var icon: String { get }
|
|
var version: String { get }
|
|
func activate()
|
|
func deactivate()
|
|
func makeView() -> NSView
|
|
@objc optional func viewForSlot(_ slot: String, context: [String: Any]) -> NSView?
|
|
}
|