-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release (migration): migration of admin interface
- Loading branch information
1 parent
8a4bb24
commit d9202c7
Showing
91 changed files
with
3,560 additions
and
700 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package embed | ||
|
||
import ( | ||
"embed" | ||
"io/fs" | ||
"net/http" | ||
"os" | ||
) | ||
|
||
var ( | ||
//go:embed public | ||
wwwPublic embed.FS | ||
WWWPublic http.FileSystem = http.FS(os.DirFS("./public/")) | ||
) | ||
|
||
//go:embed server/plugin/index.go | ||
var EmbedPluginList []byte | ||
|
||
func init() { | ||
if os.Getenv("DEBUG") != "true" { | ||
fsPublic, _ := fs.Sub(wwwPublic, "public") | ||
WWWPublic = http.FS(fsPublic) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.alert { | ||
background: var(--bg-color); | ||
border-radius: 5px; | ||
padding: 20px; | ||
margin-top: 20px; | ||
margin-bottom: 20px; | ||
border: 1px solid rgba(0,0,0,0.05); | ||
} | ||
.alert ol, .alert ul { | ||
margin: 5px 0; | ||
padding: 0 20px; | ||
} | ||
.alert.success{ | ||
background: var(--success); | ||
} | ||
.alert.error{ | ||
background: var(--error); | ||
color: var(--bg-color); | ||
} | ||
.alert img{ | ||
max-width: 100%; | ||
border-radius: 5px; | ||
border: 10px solid white; | ||
box-sizing: border-box; | ||
margin-top: 5px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const routes = { | ||
"/admin/backend": "/pages/adminpage/ctrl_backend.js", | ||
"/admin/settings": "/pages/adminpage/ctrl_settings.js", | ||
"/admin/logs": "/pages/adminpage/ctrl_log.js", | ||
"/admin/about": "/pages/adminpage/ctrl_about.js", | ||
"/admin/setup": "/pages/adminpage/ctrl_setup.js", | ||
"/admin/": "/pages/ctrl_adminpage.js", | ||
"/admin": "/pages/ctrl_adminpage.js", | ||
"/logout": "/pages/ctrl_logout.js", | ||
"": "/pages/ctrl_notfound.js", | ||
}; | ||
|
||
export default routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const routes = { | ||
"/login": "/pages/ctrl_connectpage.js", | ||
"/logout": "/pages/ctrl_logout.js", | ||
|
||
"/": "/pages/ctrl_homepage.js", | ||
"/files/.*": "/pages/ctrl_filespage.js", | ||
"/view/.*": "/pages/ctrl_viewerpage.js", | ||
// /tags/.* -> "pages/ctrl_tags.js", | ||
// /s/.* -> "/pages/ctrl_share.js", | ||
|
||
"/admin/backend": "/pages/adminpage/ctrl_backend.js", | ||
"/admin/settings": "/pages/adminpage/ctrl_settings.js", | ||
"/admin/logs": "/pages/adminpage/ctrl_logger.js", | ||
"/admin/about": "/pages/adminpage/ctrl_about.js", | ||
"/admin/setup": "/pages/adminpage/ctrl_setup.js", | ||
"/admin/": "/pages/ctrl_adminpage.js", | ||
|
||
"": "/pages/ctrl_notfound.js", | ||
}; | ||
|
||
export default routes; |
Oops, something went wrong.