Rename to casibase
This commit is contained in:
parent
577bd31a25
commit
b453e60eb8
|
@ -1,7 +1,7 @@
|
|||
package casdoor
|
||||
|
||||
import (
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
"xorm.io/core"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
appname = casbase
|
||||
appname = casibase
|
||||
httpport = 14000
|
||||
runmode = dev
|
||||
SessionOn = true
|
||||
copyrequestbody = true
|
||||
driverName = mysql
|
||||
dataSourceName = root:123@tcp(localhost:3306)/
|
||||
dbName = casbase
|
||||
dbName = casibase
|
||||
redisEndpoint =
|
||||
landingFolder = casbase-landing
|
||||
landingFolder = casibase-landing
|
||||
casdoorEndpoint = http://localhost:8000
|
||||
clientId = af6b5aa958822fb9dc33
|
||||
clientSecret = 8bc3010c1c951c8d876b1f311a901ff8deeb93bc
|
||||
casdoorDbName = casdoor
|
||||
casdoorOrganization = "casbin"
|
||||
casdoorApplication = "app-casbase"
|
||||
cacheDir = "C:/casbase_cache"
|
||||
casdoorApplication = "app-casibase"
|
||||
cacheDir = "C:/casibase_cache"
|
||||
appDir = ""
|
|
@ -4,7 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"mime/multipart"
|
||||
|
||||
"github.com/casbin/casbase/object"
|
||||
"github.com/casbin/casibase/object"
|
||||
)
|
||||
|
||||
func (c *ApiController) UpdateFile() {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
)
|
||||
|
||||
var cacheDir string
|
||||
|
|
|
@ -3,7 +3,7 @@ package controllers
|
|||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/casbin/casbase/casdoor"
|
||||
"github.com/casbin/casibase/casdoor"
|
||||
)
|
||||
|
||||
func (c *ApiController) GetPermissions() {
|
||||
|
|
|
@ -3,7 +3,7 @@ package controllers
|
|||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/casbin/casbase/object"
|
||||
"github.com/casbin/casibase/object"
|
||||
)
|
||||
|
||||
func (c *ApiController) GetGlobalStores() {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/astaxie/beego/context"
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
"github.com/casdoor/casdoor-go-sdk/casdoorsdk"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package controllers
|
|||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/casbin/casbase/object"
|
||||
"github.com/casbin/casibase/object"
|
||||
)
|
||||
|
||||
func (c *ApiController) GetGlobalVectorsets() {
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
"io"
|
||||
"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() {
|
||||
|
|
|
@ -3,8 +3,8 @@ package controllers
|
|||
import (
|
||||
"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() {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/casbin/casbase
|
||||
module github.com/casbin/casibase
|
||||
|
||||
go 1.16
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
)
|
||||
|
||||
type I18nData map[string]map[string]string
|
||||
|
|
|
@ -3,7 +3,7 @@ package i18n
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
)
|
||||
|
||||
func getI18nFilePath(language string) string {
|
||||
|
|
6
main.go
6
main.go
|
@ -4,9 +4,9 @@ import (
|
|||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/plugins/cors"
|
||||
_ "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() {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"mime/multipart"
|
||||
"strings"
|
||||
|
||||
"github.com/casbin/casbase/storage"
|
||||
"github.com/casbin/casibase/storage"
|
||||
)
|
||||
|
||||
func UpdateFile(storeId string, key string, file *File) bool {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
"github.com/muesli/clusters"
|
||||
"github.com/muesli/kmeans"
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@ package object
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
"xorm.io/core"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"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) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package object
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
"xorm.io/core"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
)
|
||||
|
||||
func (vectorset *Vectorset) LoadVectors(pathPrefix string) {
|
||||
|
|
|
@ -3,8 +3,8 @@ package object
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casbase/video"
|
||||
"github.com/casbin/casibase/util"
|
||||
"github.com/casbin/casibase/video"
|
||||
"xorm.io/core"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package object
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
"xorm.io/core"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"math"
|
||||
"strconv"
|
||||
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
)
|
||||
|
||||
var graphCache map[string]*Graph
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package object
|
||||
|
||||
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 {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/astaxie/beego/context"
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
)
|
||||
|
||||
func TransparentStatic(ctx *context.Context) {
|
||||
|
|
|
@ -2,7 +2,7 @@ package routers
|
|||
|
||||
import (
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/casbin/casbase/controllers"
|
||||
"github.com/casbin/casibase/controllers"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -3,5 +3,5 @@ package storage
|
|||
import "testing"
|
||||
|
||||
func TestStorage(t *testing.T) {
|
||||
ListObjects("casbase", "")
|
||||
ListObjects("casibase", "")
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/aliyun/alibaba-cloud-sdk-go/services/vod"
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
)
|
||||
|
||||
func GetVideoPlayAuth(videoId string) string {
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
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`.
|
||||
-->
|
||||
<title>Casbase</title>
|
||||
<title>casibase</title>
|
||||
</head>
|
||||
<body>
|
||||
<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": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
|
|
|
@ -392,7 +392,7 @@ class App extends Component {
|
|||
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>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ export const AuthConfig = {
|
|||
// serverUrl: "https://door.casdoor.com",
|
||||
serverUrl: "http://localhost:7001",
|
||||
clientId: "af6b5aa958822fb9dc33",
|
||||
appName: "app-casbase",
|
||||
appName: "app-casibase",
|
||||
organizationName: "casbin",
|
||||
redirectPath: "/callback",
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ class FileTreePage extends React.Component {
|
|||
this.state = {
|
||||
classes: props,
|
||||
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,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -34,8 +34,8 @@ class StoreListPage extends React.Component {
|
|||
name: `store_${this.state.stores.length}`,
|
||||
createdTime: moment().format(),
|
||||
displayName: `Store ${this.state.stores.length}`,
|
||||
bucket: "casbase",
|
||||
domain: "https://github.com/casbin/casbase",
|
||||
bucket: "casibase",
|
||||
domain: "https://github.com/casbin/casibase",
|
||||
propertiesMap: {},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package xlsx
|
||||
|
||||
import (
|
||||
"github.com/casbin/casbase/util"
|
||||
"github.com/casbin/casibase/util"
|
||||
"github.com/tealeg/xlsx"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue