CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
add onedrive icon
LinkLeongd6a9ba65edd0
diff --git a/drivers/onedrive/meta.go b/drivers/onedrive/meta.goindex 2b56de5..729e157 100644--- a/drivers/onedrive/meta.go+++ b/drivers/onedrive/meta.go@@ -4,6 +4,8 @@ import ("github.com/IceWhaleTech/CasaOS/internal/driver")+const ICONURL = "./img/driver/OneDrive.svg"+type Host struct {Oauth stringApi stringdiff --git a/route/v1/cloud.go b/route/v1/cloud.goindex f4ab07b..57870ea 100644--- a/route/v1/cloud.go+++ b/route/v1/cloud.go@@ -6,6 +6,7 @@ import ("github.com/IceWhaleTech/CasaOS-Common/utils/logger""github.com/IceWhaleTech/CasaOS/drivers/dropbox""github.com/IceWhaleTech/CasaOS/drivers/google_drive"+ "github.com/IceWhaleTech/CasaOS/drivers/onedrive""github.com/IceWhaleTech/CasaOS/model""github.com/IceWhaleTech/CasaOS/pkg/utils/common_err""github.com/IceWhaleTech/CasaOS/pkg/utils/httper"@@ -51,6 +52,10 @@ func ListStorages(c *gin.Context) {if dataMap["type"] == "dropbox" {r.MountPoints[i].Icon = dropbox.ICONURL}+ if dataMap["type"] == "onedrive" {++ r.MountPoints[i].Icon = onedrive.ICONURL+ }r.MountPoints[i].Name = dataMap["username"]}list := []httper.MountPoint{}