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/boot/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"> <script language="javascript" type="text/javascript" src="{{.ResourcesFolder}}/dist/boot/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 ¶
GetLoadingString sends an i18n string for "Loading..."
func NewIndexHandler ¶
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 (*IndexHandler) ServeHTTP ¶
func (h *IndexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ManifestHandler ¶
type ManifestHandler struct { front.UnimplementedManifestServiceServer HandlerName string }
func (*ManifestHandler) ExposedParameters ¶
func (m *ManifestHandler) ExposedParameters(ctx context.Context, request *front.ExposedParametersRequest) (*front.ExposedParametersResponse, error)
func (*ManifestHandler) Name ¶
func (m *ManifestHandler) Name() string
type PublicHandler ¶
type PublicHandler struct {
// contains filtered or unexported fields
}
PublicHandler implements http.Handler to server public links
func NewPublicHandler ¶
func NewPublicHandler(c context.Context) *PublicHandler
func (*PublicHandler) ServeDAV ¶
func (h *PublicHandler) ServeDAV(w http.ResponseWriter, r *http.Request, linkId string, linkData *docstore.ShareDocument, inputPath string) error
ServeDAV forwards requests to a DAV handler (see gateway/dav package)
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{} }
TplConf is a data struct for main index page template
Source Files ¶
Click to show internal directories.
Click to hide internal directories.