weapi

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 6 Imported by: 0

README

Weapi

Weapi is the leading open-source headless CMS.

Golang + Go Fiber

Module include:

  • User
  • Post
  • Page
  • Category
  • Comment
  • Tag
  • Setting

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContentTypes = []object.AdminSelectOption{
	{Value: enum.ContentTypeJson, Label: "JSON"},
	{Value: enum.ContentTypeJson, Label: "HTML"},
	{Value: enum.ContentTypeText, Label: "PlainText"},
	{Value: enum.ContentTypeMarkdown, Label: "Markdown"},
	{Value: enum.ContentTypeImage, Label: "Image"},
	{Value: enum.ContentTypeVideo, Label: "Video"},
	{Value: enum.ContentTypeAudio, Label: "Audio"},
	{Value: enum.ContentTypeFile, Label: "File"},
}
View Source
var EmbedAssets embed.FS
View Source
var EnabledPageContentTypes = []object.AdminSelectOption{
	{Value: enum.ContentTypeJson, Label: "JSON"},
	{Value: enum.ContentTypeHtml, Label: "HTML"},
	{Value: enum.ContentTypeMarkdown, Label: "Markdown"},
}

Functions

func AutoMigrate

func AutoMigrate(db *gorm.DB) error

func AutoMultiMigrate

func AutoMultiMigrate(dbs []*gorm.DB) error

func MakeMigrates

func MakeMigrates(db *gorm.DB, insts []any) error

func ReadIcon

func ReadIcon(name string) *object.AdminIcon

Types

This section is empty.

Jump to

Keyboard shortcuts

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