Skip to content

Commit

Permalink
update cdn url template
Browse files Browse the repository at this point in the history
  • Loading branch information
im6 committed Dec 12, 2020
1 parent 3e57a5a commit 8b8eb80
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion controllers/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/im6/vp3/store"
)

const version = "b12"
const version = "v0.0.6"

// LatestPage view
func LatestPage(cxt *gin.Context) {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/im6/vp3/store"
)

const port = ":8080"
const port = ":3000"

func main() {
r := gin.Default()
Expand Down
4 changes: 2 additions & 2 deletions templates/create.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>
<input type='hidden' name='csrfmiddlewaretoken'
value='EXhwZ5Nlmz10PmQgrLQpAKXRPxewrEibCOUUoVDwOpjHkB3nQbiPXdAJDiIks7zH' />
<script src="//dkny.oss-cn-hangzhou.aliyuncs.com/4/{{.assetName}}.js?{{.version}}"></script>
<script src="https://cdn.jsdelivr.net/gh/im6/vp2-ui@{{.version}}/dist/{{.assetName}}.js"></script>
</body>

</html>
</html>
4 changes: 2 additions & 2 deletions templates/main.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
<input type='hidden' name='csrfmiddlewaretoken'
value='EXhwZ5Nlmz10PmQgrLQpAKXRPxewrEibCOUUoVDwOpjHkB3nQbiPXdAJDiIks7zH' />
<script src="//dkny.oss-cn-hangzhou.aliyuncs.com/4/{{.assetName}}.js?{{.version}}"></script>
<script src="https://cdn.jsdelivr.net/gh/im6/vp2-ui@{{.version}}/dist/{{.assetName}}.js"></script>
</body>

</html>
</html>
4 changes: 2 additions & 2 deletions templates/one-color.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</div>
<input type='hidden' name='csrfmiddlewaretoken'
value='EXhwZ5Nlmz10PmQgrLQpAKXRPxewrEibCOUUoVDwOpjHkB3nQbiPXdAJDiIks7zH' />
<script src="//dkny.oss-cn-hangzhou.aliyuncs.com/4/{{.assetName}}.js?{{.version}}"></script>
<script src="https://cdn.jsdelivr.net/gh/im6/vp2-ui@{{.version}}/dist/{{.assetName}}.js"></script>
</body>

</html>
</html>
4 changes: 2 additions & 2 deletions templates/shared/head.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<meta name="twitter:image:height" content="640" />
<meta name="twitter:image:alt" content="colorpk" />

<link rel="stylesheet" type="text/css" href="//dkny.oss-cn-hangzhou.aliyuncs.com/4/{{.assetName}}.css?{{.version}}">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/im6/vp2-ui@{{.version}}/dist/{{.assetName}}.css">
<link rel="shortcut icon" href="//dkny.oss-cn-hangzhou.aliyuncs.com/3/fav.ico" />
<script>
if (window.location.hostname.indexOf('colorpk.com') > -1) {
Expand All @@ -59,4 +59,4 @@
}
</script>
</head>
{{end}}
{{end}}

0 comments on commit 8b8eb80

Please sign in to comment.