mirror of
https://github.com/Damillora/Shioriko.git
synced 2024-12-05 00:53:45 +00:00
Compare commits
2 Commits
e8a258353e
...
03dfacc3df
Author | SHA1 | Date | |
---|---|---|---|
03dfacc3df | |||
2eaf696b53 |
@ -52,7 +52,7 @@ func Start() {
|
|||||||
g.StaticFile("/", "./web/static/index.html")
|
g.StaticFile("/", "./web/static/index.html")
|
||||||
g.Static("/_app", "./web/static/_app")
|
g.Static("/_app", "./web/static/_app")
|
||||||
g.Static("/data", config.CurrentConfig.DataDirectory)
|
g.Static("/data", config.CurrentConfig.DataDirectory)
|
||||||
|
|
||||||
g.Use(cors.Default())
|
g.Use(cors.Default())
|
||||||
|
|
||||||
InitializeRoutes(g)
|
InitializeRoutes(g)
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package app
|
package app
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -11,5 +9,5 @@ func InitializeFrontendRoutes(g *gin.Engine) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func frontendHome(c *gin.Context) {
|
func frontendHome(c *gin.Context) {
|
||||||
c.Redirect(http.StatusFound, "/")
|
c.File("./web/static/index.html")
|
||||||
}
|
}
|
||||||
|
@ -108,6 +108,7 @@
|
|||||||
<label for="tags" class="label">Tags</label>
|
<label for="tags" class="label">Tags</label>
|
||||||
<div class="control" id="tags">
|
<div class="control" id="tags">
|
||||||
<Tags
|
<Tags
|
||||||
|
tags={form.tags}
|
||||||
addKeys={[9, 32]}
|
addKeys={[9, 32]}
|
||||||
on:tags={onTagChange}
|
on:tags={onTagChange}
|
||||||
autoComplete={onAutocomplete}
|
autoComplete={onAutocomplete}
|
||||||
|
Loading…
Reference in New Issue
Block a user