Documentation ¶
Index ¶
- Constants
- Variables
- func MakeLangCodePath(code, dirs string) (dirsPath string)
- func MakeScrollToKey(changeID string) (key string)
- type Action
- func MakeAdminLockUser(printer *message.Printer, eid string) (action *Action)
- func MakeAdminUnlockUser(printer *message.Printer, eid string) (action *Action)
- func MakeCancelFileAction(printer *message.Printer) (action *Action)
- func MakeCommitFileAction(printer *message.Printer) (action *Action)
- func MakeCopyFileAction(printer *message.Printer, filename string) (action *Action)
- func MakeCreateMenuAction(printer *message.Printer) (action *Action)
- func MakeCreatePageAction(printer *message.Printer) (action *Action)
- func MakeCreateUser(printer *message.Printer) (action *Action)
- func MakeDeIndexPageAction(printer *message.Printer, filename string) (action *Action)
- func MakeDeactivateUser(printer *message.Printer, eid string) (action *Action)
- func MakeDeleteDraftFileAction(printer *message.Printer, filename string) (action *Action)
- func MakeDeleteFileAction(printer *message.Printer, filename string) (action *Action)
- func MakeDeletePathAction(printer *message.Printer, dirPath string) (action *Action)
- func MakeDeleteUser(printer *message.Printer, eid string) (action *Action)
- func MakeEditFileAction(printer *message.Printer) (action *Action)
- func MakeIndexPageAction(printer *message.Printer, filename string) (action *Action)
- func MakeMoveFileAction(printer *message.Printer, filename string) (action *Action)
- func MakePreviewDraftAction(printer *message.Printer) (action *Action)
- func MakePublishFileAction(printer *message.Printer, filename string) (action *Action)
- func MakeReactivateUser(printer *message.Printer, eid string) (action *Action)
- func MakeResetUserOtp(printer *message.Printer, eid string) (action *Action)
- func MakeRetakeFileAction(printer *message.Printer, filename string) (action *Action)
- func MakeTranslateAction(printer *message.Printer, filename string) (action *Action)
- func MakeUnlockFileAction(printer *message.Printer, filename string) (action *Action)
- func MakeViewErrorAction(printer *message.Printer) (action *Action)
- func MakeViewFileAction(printer *message.Printer) (action *Action)
- type Actions
- type Dialog
- type FormMethod
- type Indicator
- type Indicators
- type WorkFile
- type WorkFiles
Constants ¶
View Source
const ( ViewActionKey = "view" PreviewDraftActionKey = "preview-draft" ViewErrorActionKey = "preview-error" EditActionKey = "edit" UnlockActionKey = "unlock" RetakeActionKey = "retake" DeleteActionKey = "delete" DeleteDraftActionKey = "delete-draft" DeletePathActionKey = "delete-path" CommitActionKey = "commit" PublishActionKey = "publish" IndexPageActionKey = "index-page" DeIndexPageActionKey = "de-index-page" CancelActionKey = "cancel" MoveActionKey = "move" CopyActionKey = "copy" CreatePageActionKey = "create-page" CreateMenuActionKey = "create-menu" TranslateActionKey = "translate" ChangeActionKey = "change" SearchActionKey = "search" CreateUserActionKey = "create-user" DeleteUserActionKey = "delete-user" ReactivateUserActionKey = "reactivate-user" DeactivateUserActionKey = "deactivate-user" AdminLockUserActionKey = "admin-lock-user" AdminUnlockUserActionKey = "admin-unlock-user" ResetUserOtpActionKey = "reset-user-otp" )
Variables ¶
View Source
var ( EditorWorkFiles = WorkFiles{ LockFile, DraftFile, } )
Functions ¶
func MakeLangCodePath ¶
func MakeScrollToKey ¶
Types ¶
type Action ¶
type Action struct { // Key is the kebab-cased verb used for machine purposes Key string `json:"key"` // Name is the label displayed for this action Name string `json:"name"` // Icon is the icon class to display Icon string `json:"icon"` // Button is the button class to render with (ie: "primary", "secondary", "caution", "danger", etc) Class string `json:"class"` // Active indicates whether this action is clickable or simply an indicator Active bool `json:"active"` // Prompt is the text to use in a prompt for confirmation of this action, leave empty to act without confirmation Prompt string `json:"prompt,omitempty"` // Method is the form method for submitting this action Method FormMethod `json:"method,omitempty"` // Tilde is a WorkFile extension to include in the URL of action links Tilde string `json:"tilde,omitempty"` // Dialog specifies the editor dialog template to use (default is "yesno") Dialog string `json:"dialog,omitempty"` // Order specifies the weighted position of this action in the menu UX, actions with an Order less than 10 are to // be displayed beside the menu dropdown for quick-access Order int `json:"order"` }
func MakeAdminLockUser ¶
func MakeAdminUnlockUser ¶
func MakeCancelFileAction ¶
func MakeCommitFileAction ¶
func MakeCopyFileAction ¶
func MakeCreateMenuAction ¶
func MakeCreatePageAction ¶
func MakeCreateUser ¶
func MakeDeIndexPageAction ¶
func MakeDeactivateUser ¶
func MakeDeleteFileAction ¶
func MakeDeletePathAction ¶
func MakeEditFileAction ¶
func MakeIndexPageAction ¶
func MakeMoveFileAction ¶
func MakePreviewDraftAction ¶
func MakePublishFileAction ¶
func MakeReactivateUser ¶
func MakeResetUserOtp ¶
func MakeRetakeFileAction ¶
func MakeTranslateAction ¶
func MakeUnlockFileAction ¶
func MakeViewErrorAction ¶
func MakeViewFileAction ¶
type FormMethod ¶
type FormMethod string
const ( NilFormMethod FormMethod = "" GetFormMethod FormMethod = "get" PostFormMethod FormMethod = "post" )
type Indicators ¶
type Indicators []*Indicator
Click to show internal directories.
Click to hide internal directories.