Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSize ¶
func GetSize(c echo.Context) error
@Title get client viewport & others' size @Summary get client viewport, header, menu, content, & post-title size @Description @Tags Client @Accept json @Produce json @Success 200 "OK - get client viewport & other parts' size ok" @Failure 400 "Fail - viewport is not set" @Router /api/client/get/size [get] @Security ApiKeyAuth
func SetClientView ¶
func SetClientView(c echo.Context) error
@Title set client browser's viewport @Summary set client browser's viewport ( width, height ) @Description @Tags Client @Accept json @Produce json @Param innerSize body string true "width: window.innerWidth & height: window.innerHeight" @Success 200 "OK - set client viewport ok" @Failure 400 "Fail - invalid width or height for setting viewport" @Router /api/client/set/view [put] @Security ApiKeyAuth
Types ¶
type Area ¶
type Layout ¶
type Layout struct { Viewport Area `json:"viewport"` // whole page area Header Area `json:"header"` // header area for title etc. Menu Area `json:"menubar"` // left area for menu Content Area `json:"content"` // right area for content }