ui

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package ui is WittyIntegratedFileBrowser's server-driven UI (sdui.json), written from Go so the file and the code answering its sources can't drift: `go test ./ui -update-sdui` writes it. Every app draws its page natively, a TV's included (tvOS has no web view, so the web part's folder window never reaches one).

Index

Constants

View Source
const (
	// SourcePlaces is the server's drives and usual folders, each opening its folder.
	SourcePlaces = Module + ".places"
	// SourceFolder is one folder's folders and files (path: the folder; empty: the places).
	SourceFolder = Module + ".folder"
)

The module's data sources.

View Source
const Module = "wittyintegratedfilebrowser"

Module is the module's ID.

View Source
const PageFolders = Module

PageFolders is the server's folders: its drives and usual folders, and, opened with ?name=<a folder's path>, what that folder holds.

Variables

This section is empty.

Functions

func FolderRoute

func FolderRoute(query string) string

FolderRoute is the page of one folder, for a navigate action.

func UI

func UI() *sdui.Module

UI is the module's sdui.json.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL