mirror of
https://github.com/rls-moe/nyx
synced 2024-11-14 22:12:24 +00:00
Resource Fixes
This commit is contained in:
parent
bc23a66bb0
commit
e5cdbe7211
@ -19,7 +19,7 @@ var (
|
|||||||
|
|
||||||
func LoadTemplates() error {
|
func LoadTemplates() error {
|
||||||
var err error
|
var err error
|
||||||
box, err := rice.FindBox("res/")
|
box, err := rice.FindBox("admin_res/")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
@ -40,8 +40,8 @@ func init() {
|
|||||||
dir1.ChildDirs = []*embedded.EmbeddedDir{}
|
dir1.ChildDirs = []*embedded.EmbeddedDir{}
|
||||||
|
|
||||||
// register embeddedBox
|
// register embeddedBox
|
||||||
embedded.RegisterEmbeddedBox(`res/`, &embedded.EmbeddedBox{
|
embedded.RegisterEmbeddedBox(`admin_res/`, &embedded.EmbeddedBox{
|
||||||
Name: `res/`,
|
Name: `admin_res/`,
|
||||||
Time: time.Unix(1489566364, 0),
|
Time: time.Unix(1489566364, 0),
|
||||||
Dirs: map[string]*embedded.EmbeddedDir{
|
Dirs: map[string]*embedded.EmbeddedDir{
|
||||||
"": dir1,
|
"": dir1,
|
||||||
|
@ -48,7 +48,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func LoadTemplates() error {
|
func LoadTemplates() error {
|
||||||
box, err := rice.FindBox("res/")
|
box, err := rice.FindBox("board_res/")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -46,8 +46,8 @@ func init() {
|
|||||||
dir1.ChildDirs = []*embedded.EmbeddedDir{}
|
dir1.ChildDirs = []*embedded.EmbeddedDir{}
|
||||||
|
|
||||||
// register embeddedBox
|
// register embeddedBox
|
||||||
embedded.RegisterEmbeddedBox(`res/`, &embedded.EmbeddedBox{
|
embedded.RegisterEmbeddedBox(`board_res/`, &embedded.EmbeddedBox{
|
||||||
Name: `res/`,
|
Name: `board_res/`,
|
||||||
Time: time.Unix(1489566591, 0),
|
Time: time.Unix(1489566591, 0),
|
||||||
Dirs: map[string]*embedded.EmbeddedDir{
|
Dirs: map[string]*embedded.EmbeddedDir{
|
||||||
"": dir1,
|
"": dir1,
|
||||||
|
@ -14,7 +14,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func LoadTemplates() error {
|
func LoadTemplates() error {
|
||||||
box, err := rice.FindBox("res/")
|
box, err := rice.FindBox("errw_res/")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,8 @@ func init() {
|
|||||||
dir1.ChildDirs = []*embedded.EmbeddedDir{}
|
dir1.ChildDirs = []*embedded.EmbeddedDir{}
|
||||||
|
|
||||||
// register embeddedBox
|
// register embeddedBox
|
||||||
embedded.RegisterEmbeddedBox(`res/`, &embedded.EmbeddedBox{
|
embedded.RegisterEmbeddedBox(`errw_res/`, &embedded.EmbeddedBox{
|
||||||
Name: `res/`,
|
Name: `errw_res/`,
|
||||||
Time: time.Unix(1489240168, 0),
|
Time: time.Unix(1489240168, 0),
|
||||||
Dirs: map[string]*embedded.EmbeddedDir{
|
Dirs: map[string]*embedded.EmbeddedDir{
|
||||||
"": dir1,
|
"": dir1,
|
||||||
|
Loading…
Reference in New Issue
Block a user