-
Notifications
You must be signed in to change notification settings - Fork 28
/
static_assets.go
32 lines (24 loc) · 977 Bytes
/
static_assets.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
package web
import (
"path"
"github.com/authgear/authgear-server/pkg/util/resource"
)
type StaticAsset struct {
Path string
Data []byte
}
var AuthgearLightThemeCSS = resource.RegisterResource(CSSDescriptor{
Path: path.Join(AppAssetsURLDirname, "authgear-light-theme.css"),
})
var AuthgearDarkThemeCSS = resource.RegisterResource(CSSDescriptor{
Path: path.Join(AppAssetsURLDirname, "authgear-dark-theme.css"),
})
var AppLogo = resource.RegisterResource(ImageDescriptor{Name: "app_logo"})
var AppLogoDark = resource.RegisterResource(ImageDescriptor{Name: "app_logo_dark"})
var Favicon = resource.RegisterResource(ImageDescriptor{Name: "favicon"})
var AuthgearAuthflowV2LightThemeCSS = resource.RegisterResource(CSSDescriptor{
Path: path.Join(AppAssetsURLDirname, "authgear-authflowv2-light-theme.css"),
})
var AuthgearAuthflowV2DarkThemeCSS = resource.RegisterResource(CSSDescriptor{
Path: path.Join(AppAssetsURLDirname, "authgear-authflowv2-dark-theme.css"),
})