forked from IceWhaleTech/CasaOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* delete connect * update user * change branch * API feedback (IceWhaleTech#341) * wip * wip * wip * wip * wip * wip * wip * wip * change branch * update route * change branch * Update route.go * 0.3.4 Function development completed * Update system.go * update ui * Completed v0.3.4 and released alpha Co-authored-by: Tiger Wang (王豫) <[email protected]>
- Loading branch information
Showing
108 changed files
with
4,583 additions
and
7,952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: LinkLeong [email protected] | ||
* @Date: 2022-06-27 11:37:26 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-07-01 15:51:29 | ||
* @LastEditTime: 2022-07-21 18:12:31 | ||
* @FilePath: /CasaOS/alpha.md | ||
* @Description: | ||
* @Website: https://www.casaos.io | ||
|
@@ -17,7 +17,7 @@ There is a risk of data loss in non-release versions, so please be careful to ba | |
|
||
## Install/Update | ||
|
||
``` curl -fsSL https://get.casaos.io | bash -s -- -v v0.3.3-alpha ``` | ||
``` curl -fsSL https://get.casaos.io | bash -s -- -v v0.3.4-alpha ``` | ||
|
||
## Check change log | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: LinkLeong [email protected] | ||
* @Date: 2021-10-08 10:29:08 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-06-21 15:10:03 | ||
* @LastEditTime: 2022-07-13 11:26:12 | ||
* @FilePath: /CasaOS/middleware/gin.go | ||
* @Description: | ||
* @Website: https://www.casaos.io | ||
|
@@ -26,14 +26,14 @@ func Cors() gin.HandlerFunc { | |
c.Header("Access-Control-Allow-Origin", "*") | ||
c.Header("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE,UPDATE") | ||
//允许跨域设置可以返回其他子段,可以自定义字段 | ||
c.Header("Access-Control-Allow-Headers", "Authorization, Content-Length, X-CSRF-Token, Token,session,Language") | ||
c.Header("Access-Control-Allow-Headers", "Authorization, Content-Length, X-CSRF-Token, Token,session,Language,Content-Type,Access-Control-Allow-Origin,Access-Control-Allow-Headers,Access-Control-Allow-Methods,Connection,Host,Origin,Referer,User-Agent,X-Requested-With") | ||
// 允许浏览器(客户端)可以解析的头部 (重要) | ||
c.Header("Access-Control-Expose-Headers", "Content-Length, Access-Control-Allow-Origin, Access-Control-Allow-Headers") | ||
//c.Writer.Header().Set("Access-Control-Allow-Headers", "Accept, Authorization, Content-Type, Content-Length, X-CSRF-Token, Token, session, Origin, Host, Connection, Accept-Encoding, Accept-Language, X-Requested-With") | ||
//设置缓存时间 | ||
c.Header("Access-Control-Max-Age", "172800") | ||
c.Header("Access-Control-Allow-Credentials", "true") | ||
c.Set("content-type", "application/json") | ||
c.Set("Content-Type", "application/json") | ||
//} | ||
|
||
//允许类型校验 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,9 @@ | |
* @Author: link [email protected] | ||
* @Date: 2022-05-16 17:37:08 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-06-22 17:45:53 | ||
* @LastEditTime: 2022-07-13 10:46:38 | ||
* @FilePath: /CasaOS/model/category.go | ||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | ||
* @Description: | ||
*/ | ||
package model | ||
|
||
|
@@ -18,7 +17,7 @@ type CategoryList struct { | |
//CreatedAt time.Time `json:"created_at"` | ||
// | ||
//UpdatedAt time.Time `json:"updated_at"` | ||
Font string `json:"font"` | ||
Font string `json:"font"` // @tiger - 如果这个和前端有关,应该不属于后端的出参范围,而是前端去界定 | ||
Name string `json:"name"` | ||
Count uint `json:"count"` | ||
Count uint `json:"count"` // @tiger - count 属于动态信息,应该单独放在一个出参结构中(原因见另外一个关于 静态/动态 出参的注释) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
/* | ||
* @Author: LinkLeong [email protected] | ||
* @Date: 2022-07-13 10:43:45 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-07-13 11:00:04 | ||
* @FilePath: /CasaOS/model/disk.go | ||
* @Description: | ||
* @Website: https://www.casaos.io | ||
* Copyright (c) 2022 by icewhale, All Rights Reserved. | ||
*/ | ||
package model | ||
|
||
type LSBLKModel struct { | ||
|
@@ -53,8 +63,8 @@ type DriveUSB struct { | |
Size uint64 `json:"size"` | ||
Used uint64 `json:"use"` | ||
Model string `json:"model"` | ||
Mount bool `json:"mount"` //是否完全挂载 | ||
Avail uint64 `json:"avail"` //可用空间 | ||
Mount bool `json:"mount"` | ||
Avail uint64 `json:"avail"` | ||
} | ||
|
||
type Storage struct { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* @Author: LinkLeong [email protected] | ||
* @Date: 2021-12-08 18:10:25 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-06-14 17:20:36 | ||
* @LastEditTime: 2022-07-13 10:49:16 | ||
* @FilePath: /CasaOS/model/docker.go | ||
* @Description: | ||
* @Website: https://www.casaos.io | ||
|
@@ -11,8 +11,8 @@ | |
package model | ||
|
||
type DockerStatsModel struct { | ||
Icon string `json:"icon"` | ||
Title string `json:"title"` | ||
Data interface{} `json:"data"` | ||
Pre interface{} `json:"pre"` | ||
Icon string `json:"icon"` | ||
Title string `json:"title"` | ||
Data interface{} `json:"data"` | ||
Previous interface{} `json:"previous"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* @Author: LinkLeong [email protected] | ||
* @Date: 2022-07-15 10:43:00 | ||
* @LastEditors: LinkLeong | ||
* @LastEditTime: 2022-07-15 10:56:17 | ||
* @FilePath: /CasaOS/model/notify/storage.go | ||
* @Description: | ||
* @Website: https://www.casaos.io | ||
* Copyright (c) 2022 by icewhale, All Rights Reserved. | ||
*/ | ||
package notify | ||
|
||
type StorageMessage struct { | ||
Type string `json:"type"` //sata,usb | ||
Action string `json:"action"` //remove add | ||
Path string `json:"path"` | ||
Volume string `json:"volume"` | ||
Size uint64 `json:"size"` | ||
} |
Oops, something went wrong.