ref: move code around

This commit is contained in:
relikd
2025-10-30 12:09:00 +01:00
parent df438c8581
commit d615ae0844
18 changed files with 822 additions and 799 deletions

View File

@@ -13,7 +13,8 @@ class PreviewViewController: NSViewController, QLPreviewingController {
}
func preparePreviewOfFile(at url: URL) async throws {
let html = generateHtml(at: url)
let meta = MetaInfo(url)
let html = HtmlGenerator(meta).applyHtmlTemplate()
// sure, we could use `WKWebView`, but that requires the `com.apple.security.network.client` entitlement
//let web = WKWebView(frame: self.view.bounds)
let web = WebView(frame: self.view.bounds)