updates plug with all sorts of awesome improvements

This commit is contained in:
2026-11-09 13:09:09 +01:00
parent a92d6f8871
commit 3afdb6d67f
553 changed files with 22780 additions and 13155 deletions
+13
View File
@@ -0,0 +1,13 @@
import Foundation
/// The welcome text: the one line the page holds at the first startup.
public enum WelcomeText {
public static let text = "Welcome to plak. For the docs, the tricks and the shortcuts, choose Plak Help in the menu bar icon."
/// The welcome text as a page of one block created at `now`.
public static func page(createdAt now: Date) -> PageFile {
var page = PageFile(text: text)
page.dates = Dictionary(uniqueKeysWithValues: page.blocks.map { ($0.lowerBound, now) })
return page
}
}