feat: add local file system storage provider (#224)

Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
sh1luo
2021-08-08 14:18:44 +08:00
committed by Yang Luo
parent 44150a6781
commit c55fa4f452
9 changed files with 178 additions and 11 deletions

View File

@ -48,6 +48,14 @@ function isLocalhost() {
return hostname === "localhost";
}
export function getFullServerUrl() {
let fullServerUrl = window.location.origin;
if (fullServerUrl === "http://localhost:7001") {
fullServerUrl = "http://localhost:8000";
}
return fullServerUrl;
}
export function isProviderVisible(providerItem) {
if (providerItem.provider === undefined || providerItem.provider === null) {
return false;