domain

package
v0.0.0-...-30259db Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertStyle

type AlertStyle struct {
	Block       string            `json:"block"`
	CloseButton bool              `json:"closeButton"`
	Types       map[string]string `json:"types"`
}

type AttachesStyle

type AttachesStyle struct {
	Link         string `json:"link"`
	Container    string `json:"container"`
	Row          string `json:"row"`
	LeftColumn   string `json:"leftColumn"`
	CenterColumn string `json:"centerColumn"`
	RightColumn  string `json:"rightColumn"`
	Filename     string `json:"filename"`
	Size         string `json:"size"`
	LeftImage    string `json:"leftImage"`
	RightImage   string `json:"rightImage"`
}

type Blocks

type Blocks struct {
	Header    map[string]string `json:"header"`
	Paragraph string            `json:"paragraph"`
	Quote     QuoteStyle        `json:"quote"`
	Warning   WarningStyle      `json:"warning"`
	Delimiter string            `json:"delimiter"`
	Alert     AlertStyle        `json:"alert"`
	List      ListStyle         `json:"list"`
	Checklist ChecklistStyle    `json:"checklist"`
	Table     TableStyle        `json:"table"`
	AnyButton string            `json:"anyButton"`
	Code      CodeStyle         `json:"code"`
	Raw       CodeStyle         `json:"raw"`
	Image     ImageStyle        `json:"image"`
	LinkTool  LinkToolStyle     `json:"linkTool"`
	Attaches  AttachesStyle     `json:"attaches"`
	Embed     EmbedStyle        `json:"embed"`
}

type ChartText

type ChartText struct {
	Labels   []string `json:"labels"`
	DataSets []struct {
		Label string `json:"label"`
		Data  []int  `json:"data"`
	} `json:"datasets"`
}

type ChecklistItem

type ChecklistItem struct {
	Text    string `json:"text,omitempty"`
	Checked bool   `json:"checked,omitempty"`
}

type ChecklistStyle

type ChecklistStyle struct {
	Block             string `json:"block"`
	Item              string `json:"item"`
	Text              string `json:"text"`
	CheckboxChecked   string `json:"checkboxChecked"`
	CheckboxUnchecked string `json:"checkboxUnchecked"`
}

type CodeStyle

type CodeStyle struct {
	Pre  string `json:"pre"`
	Code string `json:"code"`
}

type EditorJS

type EditorJS struct {
	Blocks []EditorJSBlock `json:"blocks"`
}

type EditorJSBlock

type EditorJSBlock struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

type EditorJSDataAlert

type EditorJSDataAlert struct {
	Type    string `json:"type,omitempty"`
	Message string `json:"message,omitempty"`
}

type EditorJSDataAnyButton

type EditorJSDataAnyButton struct {
	Link string `json:"link,omitempty"`
	Text string `json:"text,omitempty"`
}

type EditorJSDataAttaches

type EditorJSDataAttaches struct {
	File  FileData `json:"file,omitempty"`
	Title string   `json:"title,omitempty"`
}

type EditorJSDataChart

type EditorJSDataChart struct {
	Text      string `json:"text,omitempty"`
	Caption   string `json:"caption,omitempty"`
	Alignment string `json:"alignment,omitempty"`
}

type EditorJSDataChecklist

type EditorJSDataChecklist struct {
	Items []ChecklistItem `json:"items,omitempty"`
}

type EditorJSDataCode

type EditorJSDataCode struct {
	Code         string `json:"code,omitempty"`
	LanguageCode string `json:"languageCode,omitempty"`
}

type EditorJSDataEmbed

type EditorJSDataEmbed struct {
	Service string `json:"service,omitempty"`
	Source  string `json:"source,omitempty"`
	Embed   string `json:"embed,omitempty"`
	Width   int    `json:"width,omitempty"`
	Height  int    `json:"height,omitempty"`
	Caption string `json:"caption,omitempty"`
}

type EditorJSDataHeader

type EditorJSDataHeader struct {
	Text   string `json:"text,omitempty"`
	Level  int    `json:"level,omitempty"`
	Anchor string `json:"anchor,omitempty"`
}

type EditorJSDataImage

type EditorJSDataImage struct {
	File           FileData `json:"file,omitempty"`
	URL            string   `json:"url,omitempty"`
	Caption        string   `json:"caption,omitempty"`
	WithBorder     bool     `json:"withBorder,omitempty"`
	WithBackground bool     `json:"withBackground,omitempty"`
	Stretched      bool     `json:"stretched,omitempty"`
}

type EditorJSDataImageGallery

type EditorJSDataImageGallery struct {
	URLs                []string `json:"urls,omitempty"`
	BkgMode             bool     `json:"bkgMode,omitempty"`
	LayoutDefault       bool     `json:"layoutDefault,omitempty"`
	LayoutHorizontal    bool     `json:"layoutHorizontal,omitempty"`
	LayoutSquare        bool     `json:"layoutSquare,omitempty"`
	LayoutWithGap       bool     `json:"layoutWithGap,omitempty"`
	LayoutWithFixedSize bool     `json:"layoutWithFixedSize,omitempty"`
}

type EditorJSDataLinkTool

type EditorJSDataLinkTool struct {
	Link string   `json:"link,omitempty"`
	Meta MetaData `json:"meta,omitempty"`
}

type EditorJSDataList

type EditorJSDataList struct {
	Style string        `json:"style,omitempty"`
	Items []interface{} `json:"items,omitempty"`
}

type EditorJSDataParagraph

type EditorJSDataParagraph struct {
	Text      string `json:"text,omitempty"`
	Alignment string `json:"alignment,omitempty"`
}

type EditorJSDataQuote

type EditorJSDataQuote struct {
	Text      string `json:"text,omitempty"`
	Caption   string `json:"caption,omitempty"`
	Alignment string `json:"alignment,omitempty"`
}

type EditorJSDataRaw

type EditorJSDataRaw struct {
	Html string `json:"html,omitempty"`
}

type EditorJSDataTable

type EditorJSDataTable struct {
	WithHeadings bool       `json:"withHeadings,omitempty"`
	Content      [][]string `json:"content,omitempty"`
}

type EditorJSDataWarning

type EditorJSDataWarning struct {
	Title   string `json:"title,omitempty"`
	Message string `json:"message,omitempty"`
}

type EditorJSMethods

type EditorJSMethods interface {
	SetData(data interface{})
	SetStyles(styles []string)
	SetResult(result string)
	SetScripts(scripts []string)
	LoadLibrary()
	CreatePage() string
	Separator()
	Header()
	Paragraph()
	Quote()
	Warning()
	Delimiter()
	Alert()
	List()
	Checklist()
	Table()
	AnyButton()
	Code()
	Raw()
	Image()
	LinkTool()
	Attaches()
	Embed()
	ImageGallery()
}

type EmbedStyle

type EmbedStyle struct {
	Block  string `json:"block"`
	Title  string `json:"title"`
	Bottom string `json:"bottom"`
	Link   string `json:"link"`
}

type FileData

type FileData struct {
	URL       string  `json:"url,omitempty"`
	Size      float64 `json:"size,omitempty"`
	Name      string  `json:"name,omitempty"`
	Extension string  `json:"extension,omitempty"`
}

type ImageStyle

type ImageStyle struct {
	Block      string `json:"block"`
	Image      string `json:"image"`
	Border     string `json:"border"`
	Stretched  string `json:"stretched"`
	Background string `json:"background"`
}

type LinkToolStyle

type LinkToolStyle struct {
	Link            string `json:"link"`
	Container       string `json:"container"`
	Row             string `json:"row"`
	LeftColumn      string `json:"leftColumn"`
	RightColumn     string `json:"rightColumn"`
	Title           string `json:"title"`
	Description     string `json:"description"`
	LinkDescription string `json:"linkDescription"`
	Image           string `json:"image"`
}

type ListStyle

type ListStyle struct {
	Group       string `json:"group"`
	NestedGroup string `json:"nestedGroup"`
	Item        string `json:"item"`
}

type MetaData

type MetaData struct {
	Title       string        `json:"title,omitempty"`
	SiteName    string        `json:"site_name,omitempty"`
	Description string        `json:"description,omitempty"`
	Image       MetaDataImage `json:"image,omitempty"`
}

type MetaDataImage

type MetaDataImage struct {
	URL string `json:"url,omitempty"`
}

type NestedListItem

type NestedListItem struct {
	Content string           `json:"content,omitempty"`
	Items   []NestedListItem `json:"items,omitempty"`
}

type QuoteStyle

type QuoteStyle struct {
	Figure     string `json:"figure"`
	Blockquote string `json:"blockquote"`
	Figcaption string `json:"figcaption"`
	Author     string `json:"author"`
}

type StyleMap

type StyleMap struct {
	StyleName          string            `json:"styleName"`
	LibraryPaths       []string          `json:"libraryPaths"`
	PageHead           []string          `json:"pageHead"`
	SpaceBetweenBlocks string            `json:"spaceBetweenBlocks"`
	Alignment          map[string]string `json:"alignment"`
	Blocks             Blocks            `json:"blocks"`
}

type TableStyle

type TableStyle struct {
	Table  string `json:"table"`
	Row    string `json:"row"`
	CellTH string `json:"cellTH"`
	CellTD string `json:"cellTD"`
}

type WarningStyle

type WarningStyle struct {
	Block       string `json:"block"`
	Title       string `json:"title"`
	CloseButton bool   `json:"closeButton"`
}

Jump to

Keyboard shortcuts

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