admin

package
Version: v0.0.0-...-2665f61 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ActionBar admin action bar

View Source
var AssetManager *admin.Resource

AssetManager asset manager

View Source
var ProductExchange = exchange.NewResource(&products.Product{}, exchange.Config{PrimaryField: "Code"})

ProductExchange product exchange

View Source
var Widgets *widget.Widgets

Functions

func ReportsDataHandler

func ReportsDataHandler(context *admin.Context)

func SetupDashboard

func SetupDashboard(Admin *admin.Admin)

SetupDashboard setup dashboard

func SetupNotification

func SetupNotification(Admin *admin.Admin)

SetupNotification add notification

func SetupSEO

func SetupSEO(Admin *admin.Admin)

SetupSEO add seo

func SetupWidget

func SetupWidget(Admin *admin.Admin)

SetupWidget setup widget

func SetupWorker

func SetupWorker(Admin *admin.Admin)

SetupWorker setup worker

Types

type App

type App struct {
	Config *Config
}

App home app

func New

func New(config *Config) *App

New new home app

func (App) ConfigureApplication

func (app App) ConfigureApplication(application *application.Application)

ConfigureApplication configure application

type Chart

type Chart struct {
	Total string
	Date  time.Time
}

func GetChartData

func GetChartData(table, start, end string) (res []Chart)

date format 2015-01-23

type Charts

type Charts struct {
	Orders []Chart
	Users  []Chart
}

type Config

type Config struct {
	Prefix string
}

Config home config struct

type QorWidgetSetting

type QorWidgetSetting struct {
	widget.QorWidgetSetting
	// publish2.Version
	// publish2.Schedule
	// publish2.Visible
	l10n.Locale
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL