-
Notifications
You must be signed in to change notification settings - Fork 0
/
asset.go
38 lines (34 loc) · 831 Bytes
/
asset.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package goadmin
type AssetKind uint8
const (
JavaScript AssetKind = iota
Stylesheet
View
)
type Asset struct {
Path string
SortOrder int
Kind AssetKind
}
var (
JS = []*Asset{
{"plugins/jquery/jquery-3.4.1.min.js", -1000, JavaScript},
{"plugins/popper/popper.min.js", -900, JavaScript},
{"plugins/bootstrap/js/bootstrap.min.js", -800, JavaScript},
}
CSS = []*Asset{
{"plugins/bootstrap/css/bootstrap.min.css", -1000, Stylesheet},
{"css/style.css", -900, Stylesheet},
}
Views = []*Asset{
{"layouts/nav.jet", 0, View},
{"layouts/main.jet", 0, View},
{"widgets/breadcrumbs.jet", 0, View},
{"widgets/pagination.jet", 0, View},
{"index/dashboard.jet", 0, View},
{"errors/error.jet", 0, View},
{"auth/login.jet", 0, View},
{"user/form.jet", 0, View},
{"user/index.jet", 0, View},
}
)