Skip to content

Commit

Permalink
Merge pull request #3 from cilliandevops/release-0.1.0
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
cilliandevops authored Aug 16, 2024
2 parents ada5c51 + f902934 commit 0b211d3
Show file tree
Hide file tree
Showing 39 changed files with 520 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 生产环境自定义的环境变量(命名必须以 VITE_ 开头)

## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径)
VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1'
VITE_BASE_API = 'https://mock.mengxuegu.com/mock/66be0c9755057713835fe7c0/api/v1'

## 路由模式 hash 或 html5
VITE_ROUTER_HISTORY = 'hash'
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v0.1.0](https://github.com/cilliandevops/kops/compare/v0.1.0...v0.1.0)

#### v0.1.0

> 15 August 2024
- Initial commit [`ada5c51`](https://github.com/cilliandevops/kops/commit/ada5c51bd210025680768415b42a296840e931dc)
Empty file added Makefile
Empty file.
Empty file added docker-compose.yaml
Empty file.
Empty file added dockerfile
Empty file.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"dependencies": {
"@element-plus/icons-vue": "2.3.1",
"auto-changelog": "^2.4.0",
"axios": "1.7.3",
"dayjs": "1.11.12",
"element-plus": "2.8.0",
Expand Down
88 changes: 88 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
16 changes: 16 additions & 0 deletions server-go/api/middlewares/userModel.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package routes

import (
"github.com/cilliandevops/kops/server-go/api/controllers"
"github.com/cilliandevops/kops/server-go/api/middlewares"
"github.com/gin-gonic/gin"
)

func SetupUserRoutes(r *gin.Engine) {
user := r.Group("/api/user")
{
user.Use(middlewares.AuthMiddleware())
user.GET("/profile", controllers.GetUserProfile)
// 其他用户相关路由
}
}
Empty file.
Empty file.
16 changes: 16 additions & 0 deletions server-go/api/routes/k8sRoutes.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package routes

import (
"github.com/cilliandevops/kops/api/server-go/controllers"
"github.com/cilliandevops/kops/server-go/api/middlewares"
"github.com/gin-gonic/gin"
)

func SetupK8sRoutes(r *gin.Engine) {
k8s := r.Group("/api/k8s")
{
k8s.Use(middlewares.AuthMiddleware())
k8s.GET("/resources", controllers.GetK8sResources)
// 其他 Kubernetes 相关路由
}
}
Empty file.
Empty file.
Empty file.
11 changes: 11 additions & 0 deletions server-go/config/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package config

func LoadConfig() {
// viper.SetConfigName("config")
// viper.SetConfigType("yaml")
// viper.AddConfigPath(".")

// if err := viper.ReadInConfig(); err != nil {
// log.Fatalf("Error reading config file: %v", err)
// }
}
Empty file added server-go/config/config.yaml
Empty file.
Empty file added server-go/docs/README.md
Empty file.
Empty file added server-go/docs/swagger.yaml
Empty file.
56 changes: 56 additions & 0 deletions server-go/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
module github.com/cilliandevops/kops/server-go

go 1.22.5

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/bytedance/sonic v1.11.6 // indirect
github.com/bytedance/sonic/loader v0.1.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/gin-gonic/gin v1.10.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.20.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/prometheus/client_golang v1.20.0 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.19.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/arch v0.8.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 0b211d3

Please sign in to comment.