Browse Source

Rename to casibase

HEAD
Yang Luo 2 years ago
parent
commit
b453e60eb8
36 changed files with 49 additions and 49 deletions
  1. +1
    -1
      README.md
  2. +1
    -1
      casdoor/permission_adapter.go
  3. +5
    -5
      conf/app.conf
  4. +1
    -1
      controllers/file.go
  5. +1
    -1
      controllers/file_cache.go
  6. +1
    -1
      controllers/permission.go
  7. +1
    -1
      controllers/store.go
  8. +1
    -1
      controllers/util_record.go
  9. +1
    -1
      controllers/vectorset.go
  10. +3
    -3
      controllers/video.go
  11. +2
    -2
      controllers/wordset.go
  12. +1
    -1
      go.mod
  13. +1
    -1
      i18n/generate.go
  14. +1
    -1
      i18n/util.go
  15. +3
    -3
      main.go
  16. +1
    -1
      object/file.go
  17. +1
    -1
      object/kmeans.go
  18. +1
    -1
      object/store.go
  19. +1
    -1
      object/store_provider.go
  20. +1
    -1
      object/vectorset.go
  21. +1
    -1
      object/vectorset_upload.go
  22. +2
    -2
      object/video.go
  23. +1
    -1
      object/wordset.go
  24. +1
    -1
      object/wordset_graph.go
  25. +2
    -2
      object/wordset_upload.go
  26. +1
    -1
      routers/filter.go
  27. +1
    -1
      routers/router.go
  28. +1
    -1
      storage/storage_test.go
  29. +1
    -1
      video/vod_api.go
  30. +1
    -1
      web/public/index.html
  31. +2
    -2
      web/public/manifest.json
  32. +1
    -1
      web/src/App.js
  33. +1
    -1
      web/src/Conf.js
  34. +1
    -1
      web/src/FileTreePage.js
  35. +2
    -2
      web/src/StoreListPage.js
  36. +1
    -1
      xlsx/xlsx.go

+ 1
- 1
README.md View File

@@ -1 +1 @@
# casbase
# casibase

+ 1
- 1
casdoor/permission_adapter.go View File

@@ -1,7 +1,7 @@
package casdoor package casdoor


import ( import (
"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
"xorm.io/core" "xorm.io/core"
) )




+ 5
- 5
conf/app.conf View File

@@ -1,18 +1,18 @@
appname = casbase
appname = casibase
httpport = 14000 httpport = 14000
runmode = dev runmode = dev
SessionOn = true SessionOn = true
copyrequestbody = true copyrequestbody = true
driverName = mysql driverName = mysql
dataSourceName = root:123@tcp(localhost:3306)/ dataSourceName = root:123@tcp(localhost:3306)/
dbName = casbase
dbName = casibase
redisEndpoint = redisEndpoint =
landingFolder = casbase-landing
landingFolder = casibase-landing
casdoorEndpoint = http://localhost:8000 casdoorEndpoint = http://localhost:8000
clientId = af6b5aa958822fb9dc33 clientId = af6b5aa958822fb9dc33
clientSecret = 8bc3010c1c951c8d876b1f311a901ff8deeb93bc clientSecret = 8bc3010c1c951c8d876b1f311a901ff8deeb93bc
casdoorDbName = casdoor casdoorDbName = casdoor
casdoorOrganization = "casbin" casdoorOrganization = "casbin"
casdoorApplication = "app-casbase"
cacheDir = "C:/casbase_cache"
casdoorApplication = "app-casibase"
cacheDir = "C:/casibase_cache"
appDir = "" appDir = ""

+ 1
- 1
controllers/file.go View File

@@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"mime/multipart" "mime/multipart"


"github.com/casbin/casbase/object"
"github.com/casbin/casibase/object"
) )


func (c *ApiController) UpdateFile() { func (c *ApiController) UpdateFile() {


+ 1
- 1
controllers/file_cache.go View File

@@ -5,7 +5,7 @@ import (
"strings" "strings"


"github.com/astaxie/beego" "github.com/astaxie/beego"
"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
) )


var cacheDir string var cacheDir string


+ 1
- 1
controllers/permission.go View File

@@ -3,7 +3,7 @@ package controllers
import ( import (
"encoding/json" "encoding/json"


"github.com/casbin/casbase/casdoor"
"github.com/casbin/casibase/casdoor"
) )


func (c *ApiController) GetPermissions() { func (c *ApiController) GetPermissions() {


+ 1
- 1
controllers/store.go View File

@@ -3,7 +3,7 @@ package controllers
import ( import (
"encoding/json" "encoding/json"


"github.com/casbin/casbase/object"
"github.com/casbin/casibase/object"
) )


func (c *ApiController) GetGlobalStores() { func (c *ApiController) GetGlobalStores() {


+ 1
- 1
controllers/util_record.go View File

@@ -5,7 +5,7 @@ import (
"strings" "strings"


"github.com/astaxie/beego/context" "github.com/astaxie/beego/context"
"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
"github.com/casdoor/casdoor-go-sdk/casdoorsdk" "github.com/casdoor/casdoor-go-sdk/casdoorsdk"
) )




+ 1
- 1
controllers/vectorset.go View File

@@ -3,7 +3,7 @@ package controllers
import ( import (
"encoding/json" "encoding/json"


"github.com/casbin/casbase/object"
"github.com/casbin/casibase/object"
) )


func (c *ApiController) GetGlobalVectorsets() { func (c *ApiController) GetGlobalVectorsets() {


+ 3
- 3
controllers/video.go View File

@@ -7,9 +7,9 @@ import (
"io" "io"
"time" "time"


"github.com/casbin/casbase/object"
"github.com/casbin/casbase/util"
"github.com/casbin/casbase/video"
"github.com/casbin/casibase/object"
"github.com/casbin/casibase/util"
"github.com/casbin/casibase/video"
) )


func (c *ApiController) GetGlobalVideos() { func (c *ApiController) GetGlobalVideos() {


+ 2
- 2
controllers/wordset.go View File

@@ -3,8 +3,8 @@ package controllers
import ( import (
"encoding/json" "encoding/json"


"github.com/casbin/casbase/object"
"github.com/casbin/casbase/util"
"github.com/casbin/casibase/object"
"github.com/casbin/casibase/util"
) )


func (c *ApiController) GetGlobalWordsets() { func (c *ApiController) GetGlobalWordsets() {


+ 1
- 1
go.mod View File

@@ -1,4 +1,4 @@
module github.com/casbin/casbase
module github.com/casbin/casibase


go 1.16 go 1.16




+ 1
- 1
i18n/generate.go View File

@@ -7,7 +7,7 @@ import (
"regexp" "regexp"
"strings" "strings"


"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
) )


type I18nData map[string]map[string]string type I18nData map[string]map[string]string


+ 1
- 1
i18n/util.go View File

@@ -3,7 +3,7 @@ package i18n
import ( import (
"fmt" "fmt"


"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
) )


func getI18nFilePath(language string) string { func getI18nFilePath(language string) string {


+ 3
- 3
main.go View File

@@ -4,9 +4,9 @@ import (
"github.com/astaxie/beego" "github.com/astaxie/beego"
"github.com/astaxie/beego/plugins/cors" "github.com/astaxie/beego/plugins/cors"
_ "github.com/astaxie/beego/session/redis" _ "github.com/astaxie/beego/session/redis"
"github.com/casbin/casbase/casdoor"
"github.com/casbin/casbase/object"
"github.com/casbin/casbase/routers"
"github.com/casbin/casibase/casdoor"
"github.com/casbin/casibase/object"
"github.com/casbin/casibase/routers"
) )


func main() { func main() {


+ 1
- 1
object/file.go View File

@@ -7,7 +7,7 @@ import (
"mime/multipart" "mime/multipart"
"strings" "strings"


"github.com/casbin/casbase/storage"
"github.com/casbin/casibase/storage"
) )


func UpdateFile(storeId string, key string, file *File) bool { func UpdateFile(storeId string, key string, file *File) bool {


+ 1
- 1
object/kmeans.go View File

@@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"strings" "strings"


"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
"github.com/muesli/clusters" "github.com/muesli/clusters"
"github.com/muesli/kmeans" "github.com/muesli/kmeans"
) )


+ 1
- 1
object/store.go View File

@@ -3,7 +3,7 @@ package object
import ( import (
"fmt" "fmt"


"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
"xorm.io/core" "xorm.io/core"
) )




+ 1
- 1
object/store_provider.go View File

@@ -6,7 +6,7 @@ import (
"time" "time"


"github.com/aliyun/aliyun-oss-go-sdk/oss" "github.com/aliyun/aliyun-oss-go-sdk/oss"
"github.com/casbin/casbase/storage"
"github.com/casbin/casibase/storage"
) )


func (store *Store) createPathIfNotExisted(tokens []string, size int64, lastModifiedTime string, isLeaf bool) { func (store *Store) createPathIfNotExisted(tokens []string, size int64, lastModifiedTime string, isLeaf bool) {


+ 1
- 1
object/vectorset.go View File

@@ -3,7 +3,7 @@ package object
import ( import (
"fmt" "fmt"


"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
"xorm.io/core" "xorm.io/core"
) )




+ 1
- 1
object/vectorset_upload.go View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"


"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
) )


func (vectorset *Vectorset) LoadVectors(pathPrefix string) { func (vectorset *Vectorset) LoadVectors(pathPrefix string) {


+ 2
- 2
object/video.go View File

@@ -3,8 +3,8 @@ package object
import ( import (
"fmt" "fmt"


"github.com/casbin/casbase/util"
"github.com/casbin/casbase/video"
"github.com/casbin/casibase/util"
"github.com/casbin/casibase/video"
"xorm.io/core" "xorm.io/core"
) )




+ 1
- 1
object/wordset.go View File

@@ -3,7 +3,7 @@ package object
import ( import (
"fmt" "fmt"


"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
"xorm.io/core" "xorm.io/core"
) )




+ 1
- 1
object/wordset_graph.go View File

@@ -6,7 +6,7 @@ import (
"math" "math"
"strconv" "strconv"


"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
) )


var graphCache map[string]*Graph var graphCache map[string]*Graph


+ 2
- 2
object/wordset_upload.go View File

@@ -1,8 +1,8 @@
package object package object


import ( import (
"github.com/casbin/casbase/util"
"github.com/casbin/casbase/xlsx"
"github.com/casbin/casibase/util"
"github.com/casbin/casibase/xlsx"
) )


func uploadVectorNames(owner string, fileId string) bool { func uploadVectorNames(owner string, fileId string) bool {


+ 1
- 1
routers/filter.go View File

@@ -7,7 +7,7 @@ import (


"github.com/astaxie/beego" "github.com/astaxie/beego"
"github.com/astaxie/beego/context" "github.com/astaxie/beego/context"
"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
) )


func TransparentStatic(ctx *context.Context) { func TransparentStatic(ctx *context.Context) {


+ 1
- 1
routers/router.go View File

@@ -2,7 +2,7 @@ package routers


import ( import (
"github.com/astaxie/beego" "github.com/astaxie/beego"
"github.com/casbin/casbase/controllers"
"github.com/casbin/casibase/controllers"
) )


func init() { func init() {


+ 1
- 1
storage/storage_test.go View File

@@ -3,5 +3,5 @@ package storage
import "testing" import "testing"


func TestStorage(t *testing.T) { func TestStorage(t *testing.T) {
ListObjects("casbase", "")
ListObjects("casibase", "")
} }

+ 1
- 1
video/vod_api.go View File

@@ -6,7 +6,7 @@ import (
"time" "time"


"github.com/aliyun/alibaba-cloud-sdk-go/services/vod" "github.com/aliyun/alibaba-cloud-sdk-go/services/vod"
"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
) )


func GetVideoPlayAuth(videoId string) string { func GetVideoPlayAuth(videoId string) string {


+ 1
- 1
web/public/index.html View File

@@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL. work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`. Learn how to configure a non-root public URL by running `npm run build`.
--> -->
<title>Casbase</title>
<title>casibase</title>
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>


+ 2
- 2
web/public/manifest.json View File

@@ -1,6 +1,6 @@
{ {
"short_name": "Casbase",
"name": "Casbase",
"short_name": "casibase",
"name": "casibase",
"icons": [ "icons": [
{ {
"src": "favicon.ico", "src": "favicon.ico",


+ 1
- 1
web/src/App.js View File

@@ -392,7 +392,7 @@ class App extends Component {
textAlign: 'center', textAlign: 'center',
} }
}> }>
Made with <span style={{color: 'rgb(255, 255, 255)'}}>❤️</span> by <a style={{fontWeight: "bold", color: "black"}} target="_blank" rel="noreferrer" href="https://github.com/casbin/casbase">Casbase</a>, { Setting.isMobile() ? "Mobile" : "Desktop" } View
Made with <span style={{color: 'rgb(255, 255, 255)'}}>❤️</span> by <a style={{fontWeight: "bold", color: "black"}} target="_blank" rel="noreferrer" href="https://github.com/casbin/casibase">casibase</a>, { Setting.isMobile() ? "Mobile" : "Desktop" } View
</Footer> </Footer>
) )
} }


+ 1
- 1
web/src/Conf.js View File

@@ -2,7 +2,7 @@ export const AuthConfig = {
// serverUrl: "https://door.casdoor.com", // serverUrl: "https://door.casdoor.com",
serverUrl: "http://localhost:7001", serverUrl: "http://localhost:7001",
clientId: "af6b5aa958822fb9dc33", clientId: "af6b5aa958822fb9dc33",
appName: "app-casbase",
appName: "app-casibase",
organizationName: "casbin", organizationName: "casbin",
redirectPath: "/callback", redirectPath: "/callback",
}; };


+ 1
- 1
web/src/FileTreePage.js View File

@@ -11,7 +11,7 @@ class FileTreePage extends React.Component {
this.state = { this.state = {
classes: props, classes: props,
owner: props.match?.params?.owner !== undefined ? props.match.params.owner : "admin", owner: props.match?.params?.owner !== undefined ? props.match.params.owner : "admin",
storeName: props.match?.params?.storeName !== undefined ? props.match.params.storeName : "casbase",
storeName: props.match?.params?.storeName !== undefined ? props.match.params.storeName : "casibase",
store: null, store: null,
}; };
} }


+ 2
- 2
web/src/StoreListPage.js View File

@@ -34,8 +34,8 @@ class StoreListPage extends React.Component {
name: `store_${this.state.stores.length}`, name: `store_${this.state.stores.length}`,
createdTime: moment().format(), createdTime: moment().format(),
displayName: `Store ${this.state.stores.length}`, displayName: `Store ${this.state.stores.length}`,
bucket: "casbase",
domain: "https://github.com/casbin/casbase",
bucket: "casibase",
domain: "https://github.com/casbin/casibase",
propertiesMap: {}, propertiesMap: {},
} }
} }


+ 1
- 1
xlsx/xlsx.go View File

@@ -1,7 +1,7 @@
package xlsx package xlsx


import ( import (
"github.com/casbin/casbase/util"
"github.com/casbin/casibase/util"
"github.com/tealeg/xlsx" "github.com/tealeg/xlsx"
) )




Loading…
Cancel
Save