CI / test (push) Failing after 16s
clock-digital12 (the default panel's clock) was a prebuilt wasm with no source. It is now a component built from lib/clock like the Digital Clock, starting in 12-hour mode with AM/PM, and it gets the same right-click Module settings. Both digital clocks get a "Show AM/PM" switch, offered in 12-hour mode (on by default). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hhrQpz9texRcAtgECq
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "chandra/desktop/lib/clock"
|
|
|
|
import {
|
|
"chandra/desktop/interface/chandra/desktop/theme",
|
|
"chandra/desktop/interface/chandra/desktop/types",
|
|
"moonbitlang/core/debug",
|
|
}
|
|
|
|
// Values
|
|
pub let binary_config : ClockConfig
|
|
|
|
pub fn binary_info() -> (String, String, Int32, Int32, Int32)
|
|
|
|
pub let digital12_config : ClockConfig
|
|
|
|
pub fn digital12_info() -> (String, String, Int32, Int32, Int32)
|
|
|
|
pub let digital_config : ClockConfig
|
|
|
|
pub fn digital_info() -> (String, String, Int32, Int32, Int32)
|
|
|
|
pub fn render_binary(@types.Size, @theme.Tokens, @types.Datetime, seconds? : Bool) -> Array[@types.DrawOp]
|
|
|
|
pub fn render_digital(@types.Size, @theme.Tokens, @types.Datetime, hour12? : Bool, show_date? : Bool, ampm? : Bool) -> Array[@types.DrawOp]
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub(all) struct ClockConfig {
|
|
mut hour12 : Bool
|
|
mut show_date : Bool
|
|
mut seconds : Bool
|
|
mut ampm : Bool
|
|
}
|
|
pub fn ClockConfig::binary_items(Self) -> Array[ConfigEntry]
|
|
pub fn ClockConfig::digital_items(Self) -> Array[ConfigEntry]
|
|
pub fn ClockConfig::new(hour12? : Bool) -> Self
|
|
pub fn ClockConfig::set(Self, String, String) -> Bool
|
|
|
|
#derive(Eq, @debug.Debug)
|
|
pub(all) struct ConfigEntry {
|
|
key : String
|
|
label : String
|
|
choices : Array[String]
|
|
value : String
|
|
}
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|