web

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 44 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/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

func GetLoadingString(lang string) string

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

func NewIndexHandler

func NewIndexHandler(ctx context.Context, resetPasswordPath string) http.Handler

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 (*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

func FilterTplConf

func FilterTplConf(ctx context.Context, i *TplConf) *TplConf

FilterTplConf applies registered filters on TplConf object

type TplConfFilterFunc

type TplConfFilterFunc func(ctx context.Context, in *TplConf) *TplConf

TplConfFilterFunc takes a TplConf and modifies it

Directories

Path Synopsis
Package web is serving the main entry points for the JS frontend
Package web is serving the main entry points for the JS frontend

Jump to

Keyboard shortcuts

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