configure

package
v0.0.0-...-25a02d4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPage

func GetPage(td *TemplateData) (bytes.Buffer, error)

func GetScriptStoreTokenDescription

func GetScriptStoreTokenDescription(storeNameId, storeTokenId string) template.JS

Types

type Base

type Base = stremio_template.BaseData

type Config

type Config struct {
	Key         string
	Type        ConfigType
	Default     string
	Title       string
	Description template.HTML
	Options     []ConfigOption
	Required    bool
	Error       string
	Action      ConfigAction
}

type ConfigAction

type ConfigAction struct {
	Visible bool
	Label   string
	OnClick template.JS
}

type ConfigOption

type ConfigOption struct {
	Disabled bool
	Value    string
	Label    string
}

type ConfigType

type ConfigType string
const (
	ConfigTypeText     ConfigType = "text"
	ConfigTypeNumber   ConfigType = "number"
	ConfigTypePassword ConfigType = "password"
	ConfigTypeCheckbox ConfigType = "checkbox"
	ConfigTypeSelect   ConfigType = "select"
)

type TemplateData

type TemplateData struct {
	Base
	Configs     []Config
	Error       string
	ManifestURL string
	Script      template.JS
}

func (*TemplateData) HasError

func (td *TemplateData) HasError() bool

Jump to

Keyboard shortcuts

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