weapi

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 6 Imported by: 0

README

Weapi

Weapi is the lightweight open-source headless CMS.

Golang + Go Fiber + Gorm + Alpine.js

Module include:

  • Site
  • Category
  • Post
  • Page
  • Media
  • Group
  • GroupMember
  • User
  • Config

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContentTypes = []model.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 = []model.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) *model.AdminIcon

Types

This section is empty.

Jump to

Keyboard shortcuts

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