ui

package
v0.0.0-...-5b45539 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SPARoutes = []string{
	"/signin",
	"/signup",
	"/spaces",
	"/spaces/*filepath",
	"/accounts",
	"/accounts/*filepath",
}

SPARoutes front SPA app routes

View Source
var StaticAssets = []string{
	"/android-chrome-192x192.png",
	"/android-chrome-512x512.png",
	"/apple-touch-icon.png",
	"/favicon-16x16.png",
	"/favicon-32x32.png",
	"/favicon.ico",
	"/index.html",
	"/manifest.json",
	"/robots.txt",

	"/static",
	"/static/*filepath",
}

StaticAssets static assets

View Source
var Template *template.Template

Template for all

Functions

func EmbedAssets

func EmbedAssets(router *engine.Engine)

EmbedAssets embed fs from `public` dir

func EmbedFS

func EmbedFS() embed.FS

EmbedFS return embed FS

func StaticFS

func StaticFS(prefix ...string) http.FileSystem

StaticFS static http file system

Types

type PageData

type PageData struct {
	Lang   string
	Title  string
	Spaces []*models.Space
	Space  *models.Space
	Pages  []*models.Page
	Page   *models.Page
}

PageData template obj

Jump to

Keyboard shortcuts

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