Skip to content

Commit f828fc5

Browse files
ZZ0YYCopilot
andcommitted
refactor: rename driver to cloudflare_imgbed and fix module structure
- Rename driver identifier and directory to 'cloudflare_imgbed' for consistency. - Remove invalid 'replace' directive in go.mod. - Restore accidentally modified/deleted files in public/dist. - Update driver registration in drivers/all.go. Co-authored-by: Copilot <copilot@github.com>
1 parent 9bdaac8 commit f828fc5

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/all.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import (
8282
_ "github.com/OpenListTeam/OpenList/v4/drivers/wopan"
8383
_ "github.com/OpenListTeam/OpenList/v4/drivers/wps"
8484
_ "github.com/OpenListTeam/OpenList/v4/drivers/yandex_disk"
85-
_ "github.com/OpenListTeam/OpenList/v4/drivers/cfimgbed"
85+
_ "github.com/OpenListTeam/OpenList/v4/drivers/cloudflare_imgbed"
8686
)
8787

8888
// All do nothing,just for import
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cfimgbed
1+
package cloudflare_imgbed
22

33
import (
44
"context"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cfimgbed
1+
package cloudflare_imgbed
22

33
import (
44
"github.com/OpenListTeam/OpenList/v4/internal/driver"
@@ -12,7 +12,7 @@ type Addition struct {
1212
}
1313

1414
var config = driver.Config{
15-
Name: "CFImgBed",
15+
Name: "cloudflare_imgbed",
1616
LocalSort: false,
1717
OnlyProxy: false,
1818
NoCache: false,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cfimgbed
1+
package cloudflare_imgbed
22

33
import (
44
"fmt"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
package cfimgbed
1+
package cloudflare_imgbed
22

33
// do others that not defined in Driver interface

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,4 @@ replace github.com/cronokirby/saferith => github.com/Da3zKi7/saferith v0.33.0-fi
314314

315315
// replace github.com/OpenListTeam/115-sdk-go => ../../OpenListTeam/115-sdk-go
316316

317-
replace github.com/OpenListTeam/OpenList/v4/drivers/cfimgbed => ./drivers/cfimgbed
317+

0 commit comments

Comments
 (0)