Skip to content
This repository was archived by the owner on Jul 4, 2024. It is now read-only.

Commit a2e5f4e

Browse files
committed
[feat] upgrade to 1.2.0
1 parent 9e55dd6 commit a2e5f4e

18 files changed

+38
-32
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "time"
44

55
const (
66
Name = "go.micro.dashboard"
7-
Version = "1.1.0"
7+
Version = "1.2.0"
88
)
99

1010
const (

docs/docs.go

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
1+
// Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
22
// This file was generated by swaggo/swag
3-
43
package docs
54

65
import (
76
"bytes"
87
"encoding/json"
98
"strings"
9+
"text/template"
1010

11-
"github.com/alecthomas/template"
1211
"github.com/swaggo/swag"
1312
)
1413

1514
var doc = `{
1615
"schemes": {{ marshal .Schemes }},
1716
"swagger": "2.0",
1817
"info": {
19-
"description": "{{.Description}}",
18+
"description": "{{escape .Description}}",
2019
"title": "{{.Title}}",
2120
"termsOfService": "http://swagger.io/terms/",
2221
"contact": {},
@@ -763,7 +762,7 @@ type swaggerInfo struct {
763762

764763
// SwaggerInfo holds exported Swagger Info so clients can modify it
765764
var SwaggerInfo = swaggerInfo{
766-
Version: "1.1.0",
765+
Version: "1.2.0",
767766
Host: "",
768767
BasePath: "/",
769768
Schemes: []string{},
@@ -782,6 +781,13 @@ func (s *s) ReadDoc() string {
782781
a, _ := json.Marshal(v)
783782
return string(a)
784783
},
784+
"escape": func(v interface{}) string {
785+
// escape tabs
786+
str := strings.Replace(v.(string), "\t", "\\t", -1)
787+
// replace " with \", and if that results in \\", replace that with \\\"
788+
str = strings.Replace(str, "\"", "\\\"", -1)
789+
return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
790+
},
785791
}).Parse(doc)
786792
if err != nil {
787793
return doc
@@ -796,5 +802,5 @@ func (s *s) ReadDoc() string {
796802
}
797803

798804
func init() {
799-
swag.Register(swag.Name, &s{})
805+
swag.Register("swagger", &s{})
800806
}

docs/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"title": "Go Micro Dashboard",
66
"termsOfService": "http://swagger.io/terms/",
77
"contact": {},
8-
"version": "1.1.0"
8+
"version": "1.2.0"
99
},
1010
"basePath": "/",
1111
"paths": {

docs/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ info:
187187
description: go micro dashboard restful-api
188188
termsOfService: http://swagger.io/terms/
189189
title: Go Micro Dashboard
190-
version: 1.1.0
190+
version: 1.2.0
191191
paths:
192192
/api/account/login:
193193
post:

frontend/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "go-micro-dashboard",
3-
"version": "1.0.0",
3+
"version": "1.2.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng s -o",

frontend/src/assets/logo-color.png

-1.16 KB
Loading

frontend/src/favicon.ico

0 Bytes
Binary file not shown.

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
// @title Go Micro Dashboard
13-
// @version 1.1.0
13+
// @version 1.2.0
1414
// @description go micro dashboard restful-api
1515
// @termsOfService http://swagger.io/terms/
1616
// @BasePath /

web/ab0x.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)