@@ -1 +1 @@ | |||||
# casbase | |||||
# casibase |
@@ -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" | ||||
) | ) | ||||
@@ -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 = "" |
@@ -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() { | ||||
@@ -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 | ||||
@@ -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() { | ||||
@@ -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() { | ||||
@@ -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" | ||||
) | ) | ||||
@@ -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() { | ||||
@@ -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() { | ||||
@@ -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,4 +1,4 @@ | |||||
module github.com/casbin/casbase | |||||
module github.com/casbin/casibase | |||||
go 1.16 | go 1.16 | ||||
@@ -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 | ||||
@@ -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 { | ||||
@@ -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() { | ||||
@@ -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 { | ||||
@@ -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" | ||||
) | ) | ||||
@@ -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" | ||||
) | ) | ||||
@@ -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) { | ||||
@@ -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" | ||||
) | ) | ||||
@@ -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) { | ||||
@@ -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" | ||||
) | ) | ||||
@@ -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" | ||||
) | ) | ||||
@@ -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 | ||||
@@ -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 { | ||||
@@ -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) { | ||||
@@ -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() { | ||||
@@ -3,5 +3,5 @@ package storage | |||||
import "testing" | import "testing" | ||||
func TestStorage(t *testing.T) { | func TestStorage(t *testing.T) { | ||||
ListObjects("casbase", "") | |||||
ListObjects("casibase", "") | |||||
} | } |
@@ -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 { | ||||
@@ -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> | ||||
@@ -1,6 +1,6 @@ | |||||
{ | { | ||||
"short_name": "Casbase", | |||||
"name": "Casbase", | |||||
"short_name": "casibase", | |||||
"name": "casibase", | |||||
"icons": [ | "icons": [ | ||||
{ | { | ||||
"src": "favicon.ico", | "src": "favicon.ico", | ||||
@@ -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> | ||||
) | ) | ||||
} | } | ||||
@@ -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", | ||||
}; | }; | ||||
@@ -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, | ||||
}; | }; | ||||
} | } | ||||
@@ -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,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" | ||||
) | ) | ||||