index

package
v2.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Loader = `` /* 2980-byte string literal not displayed */
View Source
var Page = `<!DOCTYPE html>
<html xmlns:ajxp>
	<head>
		<title>{{.ApplicationTitle}}</title>
{{if .CustomHTMLHeader}}{{.CustomHTMLHeader}}{{end}}
		{{if .Rebase}}<base href="{{.Rebase}}"/>{{end}}
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/dist/pydio.boot.min.js?v={{.Version}}"></script>
		<link rel="icon" type="image/x-png" href="{{.Favicon}}">
	</head>
	<body style="overflow: hidden;background-color: #424242;" class="react-mui-context">
		<script type="text/javascript">
			var pydio, startParameters = {}, MessageHash={};
			startParameters = {{.StartParameters}};
			window.pydioBootstrap = new PydioBootstrap(startParameters);
		</script>
		<div id="{{.StartParameters.MAIN_ELEMENT}}">` + Loader + `</div>
	</body>
</html>
`
View Source
var Public = `<!DOCTYPE html>
<html xmlns:ajxp>
	<head>
		<title>{{.ApplicationTitle}}</title>
{{if .CustomHTMLHeader}}{{.CustomHTMLHeader}}{{end}}
		{{if .Rebase}}<base href="{{.Rebase}}"/>{{end}}
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" type="text/css" href="{{.ResourcesFolder}}/dist/pydio.{{.Theme}}.min.css?v={{.Version}}">
		<script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/dist/pydio.boot.min.js?v={{.Version}}"></script>
		<link rel="icon" type="image/x-png" href="{{.Favicon}}">
	</head>
	<body style="overflow: hidden;background-color: #424242;" class="react-mui-context">
		<script type="text/javascript">
			var pydio, startParameters = {}, MessageHash={};
			startParameters = {{.StartParameters}};
			window.pydioBootstrap = new PydioBootstrap(startParameters);
		</script>
		<div class="vertical_fit vertical_layout" id="{{.StartParameters.MAIN_ELEMENT}}">` + Loader + `</div>
	</body>
</html>
`

Functions

func GetLoadingString

func GetLoadingString(lang string) string

GetLoadingString sends an i18n string for "Loading..."

func RegisterTplConfFilter

func RegisterTplConfFilter(f TplConfFilterFunc)

RegisterTplConfFilter registers a filter for modifying main Template Conf

Types

type IndexHandler

type IndexHandler struct {
	// contains filtered or unexported fields
}

func NewIndexHandler

func NewIndexHandler() *IndexHandler

func (*IndexHandler) ServeHTTP

func (h *IndexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ManifestHandler

type ManifestHandler struct{}

func (*ManifestHandler) ExposedParameters

func (m *ManifestHandler) ExposedParameters(ctx context.Context, request *front.ExposedParametersRequest, response *front.ExposedParametersResponse) error

type PublicHandler

type PublicHandler struct {
	// contains filtered or unexported fields
}

func NewPublicHandler

func NewPublicHandler() *PublicHandler

func (*PublicHandler) ServeHTTP

func (h *PublicHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serve Public link

type TplConf

type TplConf struct {
	ApplicationTitle string
	Favicon          string
	Rebase           string
	ResourcesFolder  string
	Theme            string
	Version          string
	ErrorMessage     string
	LoadingString    string
	CustomHTMLHeader template.HTML
	StartParameters  map[string]interface{}
}

Data struct for main index page template

func FilterTplConf

func FilterTplConf(i *TplConf) *TplConf

FilterTplConf applies registered filters on TplConf object

type TplConfFilterFunc

type TplConfFilterFunc func(in *TplConf) *TplConf

TplConfFilterFunc takes a TplConf and modifies it

Jump to

Keyboard shortcuts

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