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"> {{if .Debug}} <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/js/vendor/es6/browser-polyfill.js"></script> <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/js/vendor/modernizr/modernizr.min.js"></script> <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/build/boot.prod.js"></script> <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/build/PydioCore.js"></script> {{else}} <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/build/pydio.boot.min.js?v={{.Version}}"></script> {{end}} <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}}/build/pydio.{{.Theme}}.min.css?v={{.Version}}"> {{if .Debug}} <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/js/vendor/es6/browser-polyfill.js"></script> <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/js/vendor/modernizr/modernizr.min.js"></script> <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/build/boot.prod.js"></script> <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/build/PydioCore.js"></script> {{else}} <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/build/pydio.boot.min.js?v={{.Version}}"></script> {{end}} <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 ¶
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 Debug bool LoadingString string CustomHTMLHeader template.HTML StartParameters map[string]interface{} }
Data struct for main index page template
func FilterTplConf ¶
FilterTplConf applies registered filters on TplConf object
type TplConfFilterFunc ¶
TplConfFilterFunc takes a TplConf and modifies it
Click to show internal directories.
Click to hide internal directories.