Documentation ¶
Index ¶
- func Load(appName string, i18nOptions I18nOptions, am assets.Manager) error
- func RespondHTML(c *httpUtils.Context, body Renderer, err error, s *session.Session, ...)
- func RespondHTMLCustomStatus(c *httpUtils.Context, code int, body Renderer, err error, s *session.Session, ...)
- type AllowedImageName
- type AngularLayoutData
- type BetaProgramParticipate
- type CommonData
- type DetachRole
- type EditorBootstrap
- type EditorSettings
- type General400Data
- type General404Data
- type General500Data
- type GeneralUnsupportedBrowserData
- type I18nOptions
- type I18nSubDomainLang
- type LearnPageData
- type MarketingLayoutData
- type NavElement
- type NavElementWithDivider
- type NavElementWithDropDown
- type NavOptions
- type NoJsLayoutData
- type OpenInOverleafDocumentationData
- type OpenInOverleafGatewayData
- type PrefetchedProjectsBlob
- type ProjectEditorData
- type ProjectEditorDetachedData
- type ProjectListData
- type ProjectListProjectView
- type ProjectTokenAccessData
- type ProjectViewInviteData
- type PublicSentryOptions
- type PublicSettings
- type Renderer
- type SentryFrontendOptions
- type SharedProjectData
- type UserActivateData
- type UserConfirmEmailData
- type UserLoginData
- type UserLogoutData
- type UserPasswordResetData
- type UserReconfirmData
- type UserRegisterData
- type UserRestrictedData
- type UserSessionsData
- type UserSetPasswordData
- type UserSettingsData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondHTML ¶
Types ¶
type AllowedImageName ¶
type AllowedImageName struct { AdminOnly bool `json:"adminOnly"` Name sharedTypes.ImageName `json:"name"` Desc string `json:"desc"` }
type AngularLayoutData ¶
type AngularLayoutData struct {
CommonData
}
func (*AngularLayoutData) CSP ¶
func (d *AngularLayoutData) CSP() string
func (*AngularLayoutData) Entrypoint ¶
func (d *AngularLayoutData) Entrypoint() string
type BetaProgramParticipate ¶
type BetaProgramParticipate struct { MarketingLayoutData AlreadyInBetaProgram bool }
func (*BetaProgramParticipate) Entrypoint ¶
func (d *BetaProgramParticipate) Entrypoint() string
func (*BetaProgramParticipate) Meta ¶
func (d *BetaProgramParticipate) Meta() []metaEntry
type CommonData ¶
type CommonData struct { Settings *PublicSettings Session session.PublicData ThemeModifier string Title string TitleLocale string DeferCSSBundleLoading bool RobotsNoindexNofollow bool Viewport bool }
func (*CommonData) CurrentLngCode ¶
func (d *CommonData) CurrentLngCode() string
func (*CommonData) LoggedIn ¶
func (d *CommonData) LoggedIn() bool
func (*CommonData) Meta ¶
func (d *CommonData) Meta() []metaEntry
func (*CommonData) ResourceHints ¶
func (d *CommonData) ResourceHints() string
type DetachRole ¶
type DetachRole string
func (DetachRole) Validate ¶
func (r DetachRole) Validate() error
type EditorBootstrap ¶
type EditorBootstrap struct { AllowedImageNames []AllowedImageName `json:"allowedImageNames"` AnonymousAccessToken project.AccessToken `json:"anonymousAccessToken"` SystemMessages []systemMessage.Full `json:"systemMessages"` JWTProject string `json:"jwtCompile"` JWTLoggedInUser string `json:"jwtLoggedInUser"` JWTSpelling string `json:"jwtSpelling"` Project project.LoadEditorViewPublic `json:"project"` RootDocPath sharedTypes.PathName `json:"rootDocPath"` User user.WithLoadEditorInfo `json:"user"` Anonymous bool `json:"anonymous"` IsRestrictedUser project.IsRestrictedUser `json:"isRestrictedTokenMember"` DetachRole DetachRole `json:"detachRole"` }
type EditorSettings ¶
type EditorSettings struct { MaxDocLength int64 `json:"max_doc_length"` MaxEntitiesPerProject int64 `json:"maxEntitiesPerProject"` MaxUploadSize int64 `json:"maxUploadSize"` WsURL string `json:"wsUrl"` WsRetryHandshake int64 `json:"wsRetryHandshake"` EditorThemes []string `json:"editorThemes"` TextExtensions []sharedTypes.FileType `json:"textExtensions"` ValidRootDocExtensions []sharedTypes.FileType `json:"validRootDocExtensions"` WikiEnabled bool `json:"wikiEnabled"` EnablePdfCaching bool `json:"enablePdfCaching"` ResetServiceWorker bool `json:"resetServiceWorker"` }
type General400Data ¶
type General400Data struct { NoJsLayoutData Message string }
type General404Data ¶
type General404Data struct {
MarketingLayoutData
}
type General500Data ¶
type General500Data struct {
NoJsLayoutData
}
type GeneralUnsupportedBrowserData ¶
type GeneralUnsupportedBrowserData struct { NoJsLayoutData FromURL *sharedTypes.URL }
type I18nOptions ¶
type I18nOptions struct { DefaultLang string `json:"default_lang"` SubdomainLang []I18nSubDomainLang `json:"subdomain_lang"` }
func (*I18nOptions) Languages ¶
func (o *I18nOptions) Languages() translations.Languages
func (*I18nOptions) Validate ¶
func (o *I18nOptions) Validate() error
type I18nSubDomainLang ¶
type LearnPageData ¶
type LearnPageData struct { MarketingLayoutData PageContent template.HTML ContentsContent template.HTML }
func (*LearnPageData) CSP ¶
func (d *LearnPageData) CSP() string
type MarketingLayoutData ¶
type MarketingLayoutData struct {
CommonData
}
func (*MarketingLayoutData) CSP ¶
func (d *MarketingLayoutData) CSP() string
func (*MarketingLayoutData) Entrypoint ¶
func (d *MarketingLayoutData) Entrypoint() string
type NavElement ¶
type NavElement struct {}
type NavElementWithDivider ¶
type NavElementWithDivider struct {}
type NavElementWithDropDown ¶
type NavElementWithDropDown struct {}
type NavOptions ¶
type NavOptions struct {}
type NoJsLayoutData ¶
type NoJsLayoutData struct {
CommonData
}
func (*NoJsLayoutData) CSP ¶
func (d *NoJsLayoutData) CSP() string
func (*NoJsLayoutData) Entrypoint ¶
func (d *NoJsLayoutData) Entrypoint() string
type OpenInOverleafDocumentationData ¶
type OpenInOverleafDocumentationData struct { MarketingLayoutData // contains filtered or unexported fields }
func (*OpenInOverleafDocumentationData) Entrypoint ¶
func (d *OpenInOverleafDocumentationData) Entrypoint() string
func (*OpenInOverleafDocumentationData) GatewayURL ¶
func (d *OpenInOverleafDocumentationData) GatewayURL() string
type OpenInOverleafGatewayData ¶
type OpenInOverleafGatewayData struct { MarketingLayoutData Params json.RawMessage }
func (*OpenInOverleafGatewayData) Entrypoint ¶
func (d *OpenInOverleafGatewayData) Entrypoint() string
func (*OpenInOverleafGatewayData) Meta ¶
func (d *OpenInOverleafGatewayData) Meta() []metaEntry
type PrefetchedProjectsBlob ¶
type PrefetchedProjectsBlob struct { TotalSize int `json:"totalSize"` Projects []ProjectListProjectView `json:"projects"` }
type ProjectEditorData ¶
type ProjectEditorData struct { AngularLayoutData EditorBootstrap *EditorBootstrap }
func (*ProjectEditorData) CSP ¶
func (d *ProjectEditorData) CSP() string
func (*ProjectEditorData) Entrypoint ¶
func (d *ProjectEditorData) Entrypoint() string
func (*ProjectEditorData) Meta ¶
func (d *ProjectEditorData) Meta() []metaEntry
func (*ProjectEditorData) ResourceHints ¶
func (d *ProjectEditorData) ResourceHints() string
type ProjectEditorDetachedData ¶
type ProjectEditorDetachedData struct { MarketingLayoutData EditorBootstrap *EditorBootstrap }
func (*ProjectEditorDetachedData) CSP ¶
func (d *ProjectEditorDetachedData) CSP() string
func (*ProjectEditorDetachedData) Entrypoint ¶
func (d *ProjectEditorDetachedData) Entrypoint() string
func (*ProjectEditorDetachedData) Meta ¶
func (d *ProjectEditorDetachedData) Meta() []metaEntry
func (*ProjectEditorDetachedData) Render ¶
func (d *ProjectEditorDetachedData) Render() ([]byte, string, error)
func (*ProjectEditorDetachedData) ResourceHints ¶
func (d *ProjectEditorDetachedData) ResourceHints() string
type ProjectListData ¶
type ProjectListData struct { AngularLayoutData PrefetchedProjectsBlob PrefetchedProjectsBlob Tags []tag.Full JWTLoggedInUser string Notifications notification.Notifications UserEmails []user.EmailDetailsWithDefaultFlag SuggestedLngCode string SystemMessages []systemMessage.Full }
func (*ProjectListData) Entrypoint ¶
func (d *ProjectListData) Entrypoint() string
func (*ProjectListData) Meta ¶
func (d *ProjectListData) Meta() []metaEntry
type ProjectListProjectView ¶
type ProjectListProjectView struct { Id sharedTypes.UUID `json:"id"` Name project.Name `json:"name"` LastUpdatedAt time.Time `json:"lastUpdated"` LastUpdatedBy user.WithPublicInfoAndNonStandardId `json:"lastUpdatedBy"` PublicAccessLevel project.PublicAccessLevel `json:"publicAccessLevel"` AccessLevel sharedTypes.PrivilegeLevel `json:"accessLevel"` AccessSource project.AccessSource `json:"source"` Archived bool `json:"archived"` Trashed bool `json:"trashed"` Owner user.WithPublicInfoAndNonStandardId `json:"owner"` }
type ProjectTokenAccessData ¶
type ProjectTokenAccessData struct { AngularLayoutData PostURL *sharedTypes.URL ProjectName project.Name }
func (*ProjectTokenAccessData) Meta ¶
func (d *ProjectTokenAccessData) Meta() []metaEntry
type ProjectViewInviteData ¶
type ProjectViewInviteData struct { MarketingLayoutData ProjectId sharedTypes.UUID Token projectInvite.Token Valid bool }
type PublicSentryOptions ¶
type PublicSentryOptions struct {
Frontend SentryFrontendOptions `json:"frontend"`
}
type PublicSettings ¶
type PublicSettings struct { AppName string AdminEmail sharedTypes.Email CDNURL sharedTypes.URL CSPs csp.CSPs EditorSettings EditorSettings I18n I18nOptions Sentry PublicSentryOptions SiteURL sharedTypes.URL StatusPageURL *sharedTypes.URL TranslatedLanguages map[string]string ZipFileSizeLimit int64 EmailConfirmationDisabled bool RegistrationDisabled bool RobotsNoindex bool }
func (*PublicSettings) ShowLanguagePicker ¶
func (s *PublicSettings) ShowLanguagePicker() bool
type SentryFrontendOptions ¶
type SharedProjectData ¶
type SharedProjectData struct {}
func (*SharedProjectData) IsSet ¶
func (d *SharedProjectData) IsSet() bool
func (*SharedProjectData) Preprocess ¶
func (d *SharedProjectData) Preprocess()
type UserActivateData ¶
type UserActivateData struct { MarketingLayoutData Email sharedTypes.Email Token oneTimeToken.OneTimeToken }
type UserConfirmEmailData ¶
type UserConfirmEmailData struct { MarketingLayoutData Token oneTimeToken.OneTimeToken }
type UserLoginData ¶
type UserLoginData struct {
MarketingLayoutData
}
type UserLogoutData ¶
type UserLogoutData struct {
MarketingLayoutData
}
type UserPasswordResetData ¶
type UserPasswordResetData struct { MarketingLayoutData Email sharedTypes.Email }
type UserReconfirmData ¶
type UserReconfirmData struct { MarketingLayoutData Email sharedTypes.Email }
type UserRegisterData ¶
type UserRegisterData struct { MarketingLayoutData }
type UserRestrictedData ¶
type UserRestrictedData struct {
MarketingLayoutData
}
type UserSessionsData ¶
type UserSessionsData struct { MarketingLayoutData CurrentSession session.LoginMetadata OtherSessions []session.LoginMetadata }
type UserSetPasswordData ¶
type UserSetPasswordData struct { MarketingLayoutData Email sharedTypes.Email PasswordResetToken oneTimeToken.OneTimeToken }
type UserSettingsData ¶
type UserSettingsData struct { MarketingLayoutData User *user.ForSettingsPage }
func (*UserSettingsData) Entrypoint ¶
func (d *UserSettingsData) Entrypoint() string
func (*UserSettingsData) Meta ¶
func (d *UserSettingsData) Meta() []metaEntry
Click to show internal directories.
Click to hide internal directories.