mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-29 20:00:30 +00:00
parent
67b7de5cc2
commit
4558f7c691
2 changed files with 6 additions and 3 deletions
|
@ -166,6 +166,9 @@ func parseIndex() []byte {
|
|||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("can not find index.html")
|
||||
}
|
||||
data = bytes.ReplaceAll(data, []byte("/web-config.js"), []byte(server.Config.Server.RootPath+"/web-config.js"))
|
||||
data = bytes.ReplaceAll(data, []byte("/assets/custom.css"), []byte(server.Config.Server.RootPath+"/assets/custom.css"))
|
||||
data = bytes.ReplaceAll(data, []byte("/assets/custom.js"), []byte(server.Config.Server.RootPath+"/assets/custom.js"))
|
||||
return data
|
||||
}
|
||||
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="#65a30d" />
|
||||
<title>Woodpecker</title>
|
||||
<script type="" src="/BASE_PATH/web-config.js"></script>
|
||||
<link rel="stylesheet" href="/BASE_PATH/assets/custom.css" />
|
||||
<script type="" src="/web-config.js"></script>
|
||||
<link rel="stylesheet" href="/assets/custom.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<script type="application/javascript" src="/BASE_PATH/assets/custom.js"></script>
|
||||
<script type="application/javascript" src="/assets/custom.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue