Skip to content

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.

V0.3.3 (#334)

link752134942aef
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d04fd83..3ed5bfa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
-## [0.3.3-pre] -
+## [0.3.3-pre] - 2022-07-01(UTC)
### Added
diff --git a/alpha.md b/alpha.md
index 9009e97..d730c68 100644
--- a/alpha.md
+++ b/alpha.md
@@ -2,7 +2,7 @@
* @Author: LinkLeong [email protected]
* @Date: 2022-06-27 11:37:26
* @LastEditors: LinkLeong
- * @LastEditTime: 2022-06-27 16:57:38
+ * @LastEditTime: 2022-06-30 14:16:31
* @FilePath: /CasaOS/alpha.md
* @Description:
* @Website: https://www.casaos.io
@@ -17,7 +17,7 @@ There is a risk of data loss in non-release versions, so please be careful to ba
## Install/Update
-``` curl -fsSL https://get.casaos.io/casaos_new.sh | bash -v v0.3.3-alpha ```
+``` curl -fsSL https://get.casaos.io | bash -v v0.3.3-alpha ```
## Check change log
@@ -27,7 +27,9 @@ There is a risk of data loss in non-release versions, so please be careful to ba
[Design drawings](https://www.figma.com/file/pvlGobvuWEvbCb3GLqXfim/CasaOS-V0.3.3)
-## 提交issue 需要打标签
+## Feedback questions
+
+Go [here]() to give feedback on your question, note that try to match the picture or video
## Retest after update
diff --git a/conf/conf.conf.sample b/conf/conf.conf.sample
index de399fc..5dfe5a6 100644
--- a/conf/conf.conf.sample
+++ b/conf/conf.conf.sample
@@ -14,7 +14,7 @@ UserDataPath = /var/lib/casaos/conf
TempPath = /var/lib/casaos/temp
[server]
-HttpPort = 8089
+HttpPort = 80
UDPPort =
RunMode = release
ServerApi = https://api.casaos.io/casaos-api
diff --git a/pkg/utils/version/version.go b/pkg/utils/version/version.go
index d2c801a..de857d2 100644
--- a/pkg/utils/version/version.go
+++ b/pkg/utils/version/version.go
@@ -2,7 +2,7 @@
* @Author: LinkLeong [email protected]
* @Date: 2022-05-13 18:15:46
* @LastEditors: LinkLeong
- * @LastEditTime: 2022-06-22 15:24:01
+ * @LastEditTime: 2022-06-29 14:29:34
* @FilePath: /CasaOS/pkg/utils/version/version.go
* @Description:
* @Website: https://www.casaos.io
@@ -39,6 +39,9 @@ func IsNeedUpdate(version model.Version) (bool, model.Version) {
if a > b {
return true, version
}
+ if a < b {
+ return false, version
+ }
}
return false, version
}
diff --git a/route/init.go b/route/init.go
index 77fd0d2..6967c7f 100644
--- a/route/init.go
+++ b/route/init.go
@@ -25,7 +25,7 @@ import (
func InitFunction() {
go checkSystemApp()
- Update2_3()
+ ShellInit()
CheckSerialDiskMount()
CheckToken2_11()
@@ -200,8 +200,12 @@ func CheckSerialDiskMount() {
service.MyService.Disk().RemoveLSBLKCache()
command.OnlyExec("source " + config.AppInfo.ShellPath + "/helper.sh ;AutoRemoveUnuseDir")
}
-func Update2_3() {
- command.OnlyExec("source " + config.AppInfo.ShellPath + "/assist.sh")
+func ShellInit() {
+ command.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/assist.sh | bash")
+ if !file.CheckNotExist("/casaOS") {
+ command.OnlyExec("source /casaOS/server/shell/update.sh ;")
+ command.OnlyExec("source " + config.AppInfo.ShellPath + "/delete-old-service.sh ;")
+ }
}
func CheckToken2_11() {
diff --git a/route/periodical.go b/route/periodical.go
index 4c0d8cc..4ee7d8c 100644
--- a/route/periodical.go
+++ b/route/periodical.go
@@ -1,8 +1,18 @@
+/*
+ * @Author: LinkLeong [email protected]
+ * @Date: 2022-07-01 15:11:36
+ * @LastEditors: LinkLeong
+ * @LastEditTime: 2022-07-01 15:16:00
+ * @FilePath: /CasaOS/route/periodical.go
+ * @Description:
+ * @Website: https://www.casaos.io
+ * Copyright (c) 2022 by icewhale, All Rights Reserved.
+ */
/*
* @Author: LinkLeong [email protected]
* @Date: 2022-05-27 15:55:36
* @LastEditors: LinkLeong
- * @LastEditTime: 2022-06-24 17:18:46
+ * @LastEditTime: 2022-06-29 16:47:19
* @FilePath: /CasaOS/route/periodical.go
* @Description:
* @Website: https://www.casaos.io
@@ -96,16 +106,16 @@ func SendDiskBySocket() {
findSystem += 1
continue
}
- if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || list[i].Tran == "ata" {
+ if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || (list[i].Tran == "ata" && list[i].Type == "disk") {
temp := service.MyService.Disk().SmartCTL(list[i].Path)
if reflect.DeepEqual(temp, model.SmartctlA{}) {
- continue
+ healthy = true
+ } else {
+ healthy = temp.SmartStatus.Passed
}
//list[i].Temperature = temp.Temperature.Current
- if !temp.SmartStatus.Passed {
- healthy = false
- }
+
if len(list[i].Children) > 0 {
for _, v := range list[i].Children {
s, _ := strconv.ParseUint(v.FSSize, 10, 64)
@@ -219,15 +229,12 @@ func SendAllHardwareStatusBySocket() {
findSystem += 1
continue
}
- if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || list[i].Tran == "ata" {
+ if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || (list[i].Tran == "ata" && list[i].Type == "disk") {
temp := service.MyService.Disk().SmartCTL(list[i].Path)
if reflect.DeepEqual(temp, model.SmartctlA{}) {
- continue
- }
-
- //list[i].Temperature = temp.Temperature.Current
- if !temp.SmartStatus.Passed {
- healthy = false
+ healthy = true
+ } else {
+ healthy = temp.SmartStatus.Passed
}
if len(list[i].Children) > 0 {
for _, v := range list[i].Children {
diff --git a/route/v1/disk.go b/route/v1/disk.go
index df18b2e..59afcbc 100644
--- a/route/v1/disk.go
+++ b/route/v1/disk.go
@@ -111,7 +111,7 @@ func GetDiskList(c *gin.Context) {
continue
}
- if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || list[i].Tran == "ata" {
+ if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || (list[i].Tran == "ata" && list[i].Type == "disk") {
temp := service.MyService.Disk().SmartCTL(list[i].Path)
if reflect.DeepEqual(temp, model.SmartctlA{}) {
temp.SmartStatus.Passed = true
diff --git a/route/v1/system.go b/route/v1/system.go
index 026514f..4b57278 100644
--- a/route/v1/system.go
+++ b/route/v1/system.go
@@ -14,6 +14,7 @@ import (
"github.com/IceWhaleTech/CasaOS/model"
"github.com/IceWhaleTech/CasaOS/pkg/config"
"github.com/IceWhaleTech/CasaOS/pkg/utils/common_err"
+ "github.com/IceWhaleTech/CasaOS/pkg/utils/loger"
port2 "github.com/IceWhaleTech/CasaOS/pkg/utils/port"
"github.com/IceWhaleTech/CasaOS/pkg/utils/version"
"github.com/IceWhaleTech/CasaOS/service"
@@ -21,6 +22,7 @@ import (
"github.com/IceWhaleTech/CasaOS/types"
"github.com/gin-gonic/gin"
uuid "github.com/satori/go.uuid"
+ "go.uber.org/zap"
)
// @Summary check version
@@ -66,7 +68,7 @@ func SystemUpdate(c *gin.Context) {
//Get system config
func GetSystemConfig(c *gin.Context) {
- c.JSON(http.StatusOK, model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS), Data: json.RawMessage(config.SystemConfigInfo.ConfigStr)})
+ c.JSON(http.StatusOK, model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS), Data: ""})
}
// @Summary get logs
@@ -344,6 +346,8 @@ func GetSystemUtilization(c *gin.Context) {
s, _ := strconv.ParseUint(v.FSSize, 10, 64)
a, _ := strconv.ParseUint(v.FSAvail, 10, 64)
u, _ := strconv.ParseUint(v.FSUsed, 10, 64)
+ loger.Info("disk info", zap.Any("/ total:", s))
+ loger.Info("disk path", zap.Any("path", v.Path))
summary.Size += s
summary.Avail += a
summary.Used += u
@@ -356,6 +360,8 @@ func GetSystemUtilization(c *gin.Context) {
s, _ := strconv.ParseUint(list[i].Children[j].FSSize, 10, 64)
a, _ := strconv.ParseUint(list[i].Children[j].FSAvail, 10, 64)
u, _ := strconv.ParseUint(list[i].Children[j].FSUsed, 10, 64)
+ loger.Info("disk info", zap.Any("/ total:", s))
+ loger.Info("disk path", zap.Any("path", list[i].Path))
summary.Size += s
summary.Avail += a
summary.Used += u
@@ -370,21 +376,20 @@ func GetSystemUtilization(c *gin.Context) {
findSystem += 1
continue
}
- if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || list[i].Tran == "ata" {
+ if list[i].Tran == "sata" || list[i].Tran == "nvme" || list[i].Tran == "spi" || list[i].Tran == "sas" || strings.Contains(list[i].SubSystems, "virtio") || (list[i].Tran == "ata" && list[i].Type == "disk") {
temp := service.MyService.Disk().SmartCTL(list[i].Path)
if reflect.DeepEqual(temp, model.SmartctlA{}) {
- continue
- }
-
- //list[i].Temperature = temp.Temperature.Current
- if !temp.SmartStatus.Passed {
- healthy = false
+ healthy = true
+ } else {
+ healthy = temp.SmartStatus.Passed
}
if len(list[i].Children) > 0 {
for _, v := range list[i].Children {
s, _ := strconv.ParseUint(v.FSSize, 10, 64)
a, _ := strconv.ParseUint(v.FSAvail, 10, 64)
u, _ := strconv.ParseUint(v.FSUsed, 10, 64)
+ loger.Info("disk info", zap.Any("/ total:", s))
+ loger.Info("disk path", zap.Any("path", list[i].Path))
summary.Size += s
summary.Avail += a
summary.Used += u
@@ -545,9 +550,9 @@ func GetSystemNetInfo(c *gin.Context) {
// @Success 200 {string} string "ok"
// @Router /guide/check [get]
func GetGuideCheck(c *gin.Context) {
- initUser := false
- if !config.UserInfo.Initialized {
- initUser = true
+ initUser := true
+ if service.MyService.User().GetUserCount() > 0 {
+ initUser = false
}
data := make(map[string]interface{}, 1)
data["need_init_user"] = initUser
diff --git a/route/v1/user.go b/route/v1/user.go
index bcf34e4..f9bb4c8 100644
--- a/route/v1/user.go
+++ b/route/v1/user.go
@@ -195,7 +195,7 @@ func PutUserName(c *gin.Context) {
c.BindJSON(&json)
//userName := json["user_name"]
username := json["username"]
- id := json["id"]
+ id := json["user_id"]
if len(username) == 0 {
c.JSON(http.StatusOK, model.Result{Success: common_err.ERROR, Message: common_err.GetMsg(common_err.ERROR)})
return
@@ -225,7 +225,7 @@ func PutUserPwd(c *gin.Context) {
c.BindJSON(&json)
oldPwd := json["old_pwd"]
pwd := json["pwd"]
- id := json["id"]
+ id := json["user_id"]
if len(oldPwd) == 0 || len(pwd) == 0 {
c.JSON(http.StatusOK, model.Result{Success: common_err.INVALID_PARAMS, Message: common_err.GetMsg(common_err.INVALID_PARAMS)})
return
@@ -260,7 +260,7 @@ func PutUserNick(c *gin.Context) {
json := make(map[string]string)
c.BindJSON(&json)
nickName := json["nick_name"]
- id := json["id"]
+ id := json["user_id"]
if len(nickName) == 0 {
c.JSON(http.StatusOK, model.Result{Success: common_err.INVALID_PARAMS, Message: common_err.GetMsg(common_err.INVALID_PARAMS)})
return
@@ -290,7 +290,7 @@ func PutUserDesc(c *gin.Context) {
// id := c.GetHeader("user_id")
json := make(map[string]string)
c.BindJSON(&json)
- id := json["id"]
+ id := json["user_id"]
desc := json["description"]
if len(desc) == 0 {
c.JSON(http.StatusOK, model.Result{Success: common_err.INVALID_PARAMS, Message: common_err.GetMsg(common_err.INVALID_PARAMS)})
@@ -319,18 +319,27 @@ func PutUserDesc(c *gin.Context) {
// @Success 200 {string} string "ok"
// @Router /user/person/info [post]
func PostUserPersonInfo(c *gin.Context) {
- desc := c.PostForm("description")
- nickName := c.PostForm("nick_name")
+ json := make(map[string]string)
+ c.BindJSON(&json)
+ desc := json["description"]
+ nickName := json["nick_name"]
+ id := json["user_id"]
if len(desc) == 0 || len(nickName) == 0 {
c.JSON(http.StatusOK, model.Result{Success: common_err.INVALID_PARAMS, Message: common_err.GetMsg(common_err.INVALID_PARAMS)})
return
}
+ user := service.MyService.User().GetUserInfoById(id)
+ if user.Id == 0 {
+ c.JSON(http.StatusOK,
+ model.Result{Success: common_err.USER_NOT_EXIST, Message: common_err.GetMsg(common_err.USER_NOT_EXIST)})
+ return
+ }
//user_service.SetUser("", "", "", "", desc, nickName)
- data := make(map[string]string, 2)
- data["description"] = config.UserInfo.Description
- data["nick_name"] = config.UserInfo.NickName
+ user.NickName = nickName
+ user.Description = desc
+ service.MyService.User().UpdateUser(user)
go service.MyService.Casa().PushUserInfo()
- c.JSON(http.StatusOK, model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS), Data: data})
+ c.JSON(http.StatusOK, model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS), Data: user})
}
// @Summary get user info
@@ -711,7 +720,7 @@ func Set_Name_Pwd(c *gin.Context) {
}
user := model2.UserDBModel{}
user.UserName = username
- user.Password = encryption.GetMD5ByStr(config.UserInfo.PWD)
+ user.Password = encryption.GetMD5ByStr(pwd)
user.Role = "admin"
user = service.MyService.User().CreateUser(user)
diff --git a/service/system.go b/service/system.go
index b74dbc5..7d693e3 100644
--- a/service/system.go
+++ b/service/system.go
@@ -208,9 +208,8 @@ func (c *systemService) GetNet(physics bool) []string {
}
func (s *systemService) UpdateSystemVersion(version string) {
- //command2.OnlyExec("curl -fsSL https://get.casaos.io | bash")
+ command2.OnlyExec("curl -fsSL https://raw.githubusercontent.com/IceWhaleTech/get/main/update.sh | bash")
//s.log.Error(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version)
- command2.ExecResultStrArray("source " + config.AppInfo.ShellPath + "/tools.sh ;update " + version)
//s.log.Error(command2.ExecResultStr(config.AppInfo.ProjectPath + "/shell/tool.sh -r " + version))
}
func (s *systemService) UpdateAssist() {
diff --git a/shell/assist.sh b/shell/assist.sh
index 8ffde33..7a693aa 100644
--- a/shell/assist.sh
+++ b/shell/assist.sh
@@ -1,50 +1,3 @@
#!/bin/bash
-###
- # @Author: LinkLeong [email protected]
- # @Date: 2022-02-17 18:53:29
- # @LastEditors: LinkLeong
- # @LastEditTime: 2022-06-27 14:14:26
- # @FilePath: /CasaOS/shell/assist.sh
- # @Description:
- # @Website: https://www.casaos.io
- # Copyright (c) 2022 by icewhale, All Rights Reserved.
-###
-
-# add in v0.2.5
-
-readonly CASA_DEPANDS="curl smartmontools parted fdisk ntfs-3g"
-
-version_0_2_5() {
- install_depends "$CASA_DEPANDS"
-}
-version_0_2_11() {
- sysctl -w net.core.rmem_max=2500000
-}
-
-#Install Depends
-install_depends() {
- ((EUID)) && sudo_cmd="sudo"
- if [[ ! -x "$(command -v '$1')" ]]; then
- packagesNeeded=$1
- if [ -x "$(command -v apk)" ]; then
- $sudo_cmd apk add --no-cache $packagesNeeded
- elif [ -x "$(command -v apt-get)" ]; then
- $sudo_cmd apt-get -y -q install $packagesNeeded
- elif [ -x "$(command -v dnf)" ]; then
- $sudo_cmd dnf install $packagesNeeded
- elif [ -x "$(command -v zypper)" ]; then
- $sudo_cmd zypper install $packagesNeeded
- fi
- fi
-}
-
-mvfoder() {
- #移动脚本
-
-}
-
-version_0_2_5
-
-version_0_2_11
diff --git a/shell/delete-old-service.sh b/shell/delete-old-service.sh
new file mode 100644
index 0000000..41ccb88
--- /dev/null
+++ b/shell/delete-old-service.sh
@@ -0,0 +1,105 @@
+#!/bin/bash
+###
+ # @Author: LinkLeong [email protected]
+ # @Date: 2022-06-30 10:08:33
+ # @LastEditors: LinkLeong
+ # @LastEditTime: 2022-07-01 11:17:54
+ # @FilePath: /CasaOS/shell/delete-old-service.sh
+ # @Description:
+###
+
+((EUID)) && sudo_cmd="sudo"
+
+# SYSTEM INFO
+readonly UNAME_M="$(uname -m)"
+
+# CasaOS PATHS
+readonly CASA_REPO=IceWhaleTech/CasaOS
+readonly CASA_UNZIP_TEMP_FOLDER=/tmp/casaos
+readonly CASA_BIN=casaos
+readonly CASA_BIN_PATH=/usr/bin/casaos
+readonly CASA_CONF_PATH=/etc/casaos.conf
+readonly CASA_SERVICE_PATH=/etc/systemd/system/casaos.service
+readonly CASA_HELPER_PATH=/usr/share/casaos/shell/
+readonly CASA_USER_CONF_PATH=/var/lib/casaos/conf/
+readonly CASA_DB_PATH=/var/lib/casaos/db/
+readonly CASA_TEMP_PATH=/var/lib/casaos/temp/
+readonly CASA_LOGS_PATH=/var/log/casaos/
+readonly CASA_PACKAGE_EXT=".tar.gz"
+readonly CASA_RELEASE_API="https://api.github.com/repos/${CASA_REPO}/releases"
+readonly CASA_OPENWRT_DOCS="https://github.com/IceWhaleTech/CasaOS-OpenWrt"
+
+readonly COLOUR_RESET='\e[0m'
+readonly aCOLOUR=(
+ '\e[38;5;154m' # green | Lines, bullets and separators
+ '\e[1m' # Bold white | Main descriptions
+ '\e[90m' # Grey | Credits
+ '\e[91m' # Red | Update notifications Alert
+ '\e[33m' # Yellow | Emphasis
+)
+
+Target_Arch=""
+Target_Distro="debian"
+Target_OS="linux"
+Casa_Tag=""
+
+
+#######################################
+# Custom printing function
+# Globals:
+# None
+# Arguments:
+# $1 0:OK 1:FAILED 2:INFO 3:NOTICE
+# message
+# Returns:
+# None
+#######################################
+
+Show() {
+ # OK
+ if (($1 == 0)); then
+ echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[0]} OK $COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
+ # FAILED
+ elif (($1 == 1)); then
+ echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[3]}FAILED$COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
+ # INFO
+ elif (($1 == 2)); then
+ echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[0]} INFO $COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
+ # NOTICE
+ elif (($1 == 3)); then
+ echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[4]}NOTICE$COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
+ fi
+}
+
+Warn() {
+ echo -e "${aCOLOUR[3]}$1$COLOUR_RESET"
+}
+
+# 0 Check_exist
+Check_Exist() {
+ #Create Dir
+ Show 2 "Create Folders."
+ ${sudo_cmd} mkdir -p ${CASA_HELPER_PATH}
+ ${sudo_cmd} mkdir -p ${CASA_LOGS_PATH}
+ ${sudo_cmd} mkdir -p ${CASA_USER_CONF_PATH}
+ ${sudo_cmd} mkdir -p ${CASA_DB_PATH}
+ ${sudo_cmd} mkdir -p ${CASA_TEMP_PATH}
+
+
+ Show 2 "Start cleaning up the old version."
+
+ ${sudo_cmd} rm -rf /usr/lib/systemd/system/casaos.service
+
+ ${sudo_cmd} rm -rf /lib/systemd/system/casaos.service
+
+ ${sudo_cmd} rm -rf /usr/local/bin/${CASA_BIN}
+
+ #Clean
+ if [[ -d "/casaOS" ]]; then
+ ${sudo_cmd} rm -rf /casaOS
+ fi
+ Show 0 "Clearance completed."
+
+ $sudo_cmd systemctl restart ${CASA_BIN}
+}
+Check_Exist
diff --git a/shell/tools.sh b/shell/tools.sh
deleted file mode 100644
index 8ce62d6..0000000
--- a/shell/tools.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-###
- # @Author: LinkLeong [email protected]
- # @Date: 2021-12-06 17:12:32
- # @LastEditors: LinkLeong
- # @LastEditTime: 2022-06-27 14:23:15
- # @FilePath: /CasaOS/shell/tools.sh
- # @Description:
- # @Website: https://www.casaos.io
- # Copyright (c) 2022 by icewhale, All Rights Reserved.
-###
-
-#######################################
-# Custom printing function
-# Globals:
-# None
-# Arguments:
-# $1 0:OK 1:FAILED
-# message
-# Returns:
-# None
-#######################################
-
-
-run_external_script() {
- assist.sh
-}
-
-update() {
- curl -fsSL https://get.icewhale.io/casaos.sh | bash
- run_external_script
-}
\ No newline at end of file
diff --git a/shell/update.sh b/shell/update.sh
new file mode 100644
index 0000000..bbe5f67
--- /dev/null
+++ b/shell/update.sh
@@ -0,0 +1,268 @@
+#!/bin/bash
+###
+ # @Author: LinkLeong [email protected]
+ # @Date: 2022-06-30 10:08:33
+ # @LastEditors: LinkLeong
+ # @LastEditTime: 2022-07-01 11:18:07
+ # @FilePath: /CasaOS/shell/update.sh
+ # @Description:
+###
+
+((EUID)) && sudo_cmd="sudo"
+
+# SYSTEM INFO
+readonly UNAME_M="$(uname -m)"
+
+# CasaOS PATHS
+readonly CASA_REPO=IceWhaleTech/CasaOS
+readonly CASA_UNZIP_TEMP_FOLDER=/tmp/casaos
+readonly CASA_BIN=casaos
+readonly CASA_BIN_PATH=/usr/bin/casaos
+readonly CASA_CONF_PATH=/etc/casaos.conf
+readonly CASA_SERVICE_PATH=/etc/systemd/system/casaos.service
+readonly CASA_HELPER_PATH=/usr/share/casaos/shell/
+readonly CASA_USER_CONF_PATH=/var/lib/casaos/conf/
+readonly CASA_DB_PATH=/var/lib/casaos/db/
+readonly CASA_TEMP_PATH=/var/lib/casaos/temp/
+readonly CASA_LOGS_PATH=/var/log/casaos/
+readonly CASA_PACKAGE_EXT=".tar.gz"
+readonly CASA_RELEASE_API="https://api.github.com/repos/${CASA_REPO}/releases"
+readonly CASA_OPENWRT_DOCS="https://github.com/IceWhaleTech/CasaOS-OpenWrt"
+
+readonly COLOUR_RESET='\e[0m'
+readonly aCOLOUR=(
+ '\e[38;5;154m' # green | Lines, bullets and separators
+ '\e[1m' # Bold white | Main descriptions
+ '\e[90m' # Grey | Credits
+ '\e[91m' # Red | Update notifications Alert
+ '\e[33m' # Yellow | Emphasis
+)
+
+Target_Arch=""
+Target_Distro="debian"
+Target_OS="linux"
+Casa_Tag=""
+
+
+#######################################
+# Custom printing function
+# Globals:
+# None
+# Arguments:
+# $1 0:OK 1:FAILED 2:INFO 3:NOTICE
+# message
+# Returns:
+# None
+#######################################
+
+Show() {
+ # OK
+ if (($1 == 0)); then
+ echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[0]} OK $COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
+ # FAILED
+ elif (($1 == 1)); then
+ echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[3]}FAILED$COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
+ # INFO
+ elif (($1 == 2)); then
+ echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[0]} INFO $COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
+ # NOTICE
+ elif (($1 == 3)); then
+ echo -e "${aCOLOUR[2]}[$COLOUR_RESET${aCOLOUR[4]}NOTICE$COLOUR_RESET${aCOLOUR[2]}]$COLOUR_RESET $2"
+ fi
+}
+
+Warn() {
+ echo -e "${aCOLOUR[3]}$1$COLOUR_RESET"
+}
+
+# 0 Check_exist
+Check_Exist() {
+ #Create Dir
+ Show 2 "Create Folders."
+ ${sudo_cmd} mkdir -p ${CASA_HELPER_PATH}
+ ${sudo_cmd} mkdir -p ${CASA_LOGS_PATH}
+ ${sudo_cmd} mkdir -p ${CASA_USER_CONF_PATH}
+ ${sudo_cmd} mkdir -p ${CASA_DB_PATH}
+ ${sudo_cmd} mkdir -p ${CASA_TEMP_PATH}
+
+
+ Show 2 "Start cleaning up the old version."
+
+ ${sudo_cmd} rm -rf /usr/lib/systemd/system/casaos.service
+
+ ${sudo_cmd} rm -rf /lib/systemd/system/casaos.service
+
+ if [[ -f "/casaOS/server/conf/conf.ini" ]]; then
+ ${sudo_cmd} cp -rf /casaOS/server/conf/conf.ini ${CASA_CONF_PATH}
+ ${sudo_cmd} cp -rf /casaOS/server/conf/*.json ${CASA_USER_CONF_PATH}
+ fi
+
+ if [[ -d "/casaOS/server/db" ]]; then
+ ${sudo_cmd} cp -rf /casaOS/server/db/* ${CASA_DB_PATH}
+ fi
+
+ Show 0 "Clearance completed."
+
+}
+
+# 1 Check Arch
+Check_Arch() {
+ case $UNAME_M in
+ *aarch64*)
+ Target_Arch="arm64"
+ ;;
+ *64*)
+ Target_Arch="amd64"
+ ;;
+ *armv7*)
+ Target_Arch="arm-7"
+ ;;
+ *)
+ Show 1 "Aborted, unsupported or unknown architecture: $UNAME_M"
+ exit 1
+ ;;
+ esac
+ Show 0 "Your hardware architecture is : $UNAME_M"
+}
+
+
+
+#Download CasaOS Package
+Download_CasaOS() {
+ Show 2 "Downloading CasaOS for ${Target_OS}/${Target_Arch}..."
+ Net_Getter="curl -fsSLk"
+ Casa_Package="${Target_OS}-${Target_Arch}-casaos${CASA_PACKAGE_EXT}"
+ if [[ ! -n "$version" ]]; then
+ Casa_Tag="$(${Net_Getter} ${CASA_RELEASE_API}/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g')"
+ elif [[ $version == "pre" ]]; then
+ Casa_Tag="$(${net_getter} ${CASA_RELEASE_API} | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g' | sed -n '1p')"
+ else
+ Casa_Tag="$version"
+ fi
+ Casa_Package_URL="https://github.com/${CASA_REPO}/releases/download/${Casa_Tag}/${Casa_Package}"
+ echo
+ # Remove Temp File
+ ${sudo_cmd} rm -rf "$PREFIX/tmp/${Casa_Package}"
+ # Download Package
+ ${Net_Getter} "${Casa_Package_URL}" >"$PREFIX/tmp/${Casa_Package}"
+ if [[ $? -ne 0 ]]; then
+ Show 1 "Download failed, Please check if your internet connection is working and retry."
+ exit 1
+ else
+ Show 0 "Download successful!"
+ fi
+ #Extract CasaOS Package
+ Show 2 "Extracting..."
+ case "${Casa_Package}" in
+ *.zip) ${sudo_cmd} unzip -o "$PREFIX/tmp/${Casa_Package}" -d "$PREFIX/tmp/" ;;
+ *.tar.gz) ${sudo_cmd} tar -xzf "$PREFIX/tmp/${Casa_Package}" -C "$PREFIX/tmp/" ;;
+ esac
+ #Setting Executable Permissions
+ ${sudo_cmd} chmod +x "$PREFIX${CASA_UNZIP_TEMP_FOLDER}/${CASA_BIN}"
+
+}
+
+#Install Addons
+Install_Addons() {
+ Show 2 "Installing CasaOS Addons"
+ ${sudo_cmd} cp -rf "$PREFIX${CASA_UNZIP_TEMP_FOLDER}/shell/11-usb-mount.rules" "/etc/udev/rules.d/"
+ ${sudo_cmd} cp -rf "$PREFIX${CASA_UNZIP_TEMP_FOLDER}/shell/[email protected]" "/etc/systemd/system/"
+ sync
+}
+
+#Clean Temp Files
+Clean_Temp_Files() {
+ Show 0 "Clean..."
+ ${sudo_cmd} rm -rf "$PREFIX${CASA_UNZIP_TEMP_FOLDER}"
+ sync
+}
+
+#Install CasaOS
+Install_CasaOS() {
+ Show 2 "Installing..."
+
+ # Install Bin
+ ${sudo_cmd} mv -f $PREFIX${CASA_UNZIP_TEMP_FOLDER}/${CASA_BIN} ${CASA_BIN_PATH}
+
+ # Install Helper
+ if [[ -d ${CASA_HELPER_PATH} ]]; then
+ ${sudo_cmd} rm -rf ${CASA_HELPER_PATH}*
+ fi
+ ${sudo_cmd} cp -rf $PREFIX${CASA_UNZIP_TEMP_FOLDER}/shell/* ${CASA_HELPER_PATH}
+ #Setting Executable Permissions
+ ${sudo_cmd} chmod +x $PREFIX${CASA_HELPER_PATH}*
+
+ # Install Conf
+ if [[ ! -f ${CASA_CONF_PATH} ]]; then
+ if [[ -f $PREFIX${CASA_UNZIP_TEMP_FOLDER}/conf/conf.ini.sample ]]; then
+ ${sudo_cmd} mv -f $PREFIX${CASA_UNZIP_TEMP_FOLDER}/conf/conf.ini.sample ${CASA_CONF_PATH}
+ else
+ ${sudo_cmd} mv -f $PREFIX${CASA_UNZIP_TEMP_FOLDER}/conf/conf.conf.sample ${CASA_CONF_PATH}
+ fi
+
+ fi
+ sync
+
+ if [[ ! -x "$(command -v ${CASA_BIN})" ]]; then
+ Show 1 "Installation failed, please try again."
+ exit 1
+ else
+ Show 0 "CasaOS Successfully installed."
+ fi
+}
+
+#Generate Service File
+Generate_Service() {
+ if [ -f ${CASA_SERVICE_PATH} ]; then
+ Show 2 "Try stop CasaOS system service."
+ # Stop before generation
+ if [[ $(systemctl is-active ${CASA_BIN} &>/dev/null) ]]; then
+ ${sudo_cmd} systemctl stop ${CASA_BIN}
+ fi
+ fi
+ Show 2 "Create system service for CasaOS."
+
+ ${sudo_cmd} tee ${CASA_SERVICE_PATH} >/dev/null <<EOF
+ [Unit]
+ Description=CasaOS Service
+ StartLimitIntervalSec=0
+
+ [Service]
+ Type=simple
+ LimitNOFILE=15210
+ Restart=always
+ RestartSec=1
+ User=root
+ ExecStart=${CASA_BIN_PATH} -c ${CASA_CONF_PATH}
+
+ [Install]
+ WantedBy=multi-user.target
+EOF
+ Show 0 "CasaOS service Successfully created."
+}
+
+# Start CasaOS
+Start_CasaOS() {
+ Show 2 "Create a system startup service for CasaOS."
+ $sudo_cmd systemctl daemon-reload
+ $sudo_cmd systemctl enable ${CASA_BIN}
+}
+
+Check_Arch
+
+# Step 7: Download CasaOS
+Check_Exist
+Download_CasaOS
+
+# Step 8: Install Addon
+Install_Addons
+
+# Step 9: Install CasaOS
+Install_CasaOS
+
+# Step 10: Generate_Service
+Generate_Service
+
+# Step 11: Start CasaOS
+Start_CasaOS
+Clean_Temp_Files
\ No newline at end of file
diff --git a/types/system.go b/types/system.go
index 2d5b1ba..32a4463 100644
--- a/types/system.go
+++ b/types/system.go
@@ -2,7 +2,7 @@
* @Author: LinkLeong [email protected]
* @Date: 2022-02-17 18:53:22
* @LastEditors: LinkLeong
- * @LastEditTime: 2022-06-29 11:08:23
+ * @LastEditTime: 2022-07-01 15:15:09
* @FilePath: /CasaOS/types/system.go
* @Description:
* @Website: https://www.casaos.io
diff --git a/web/index.html b/web/index.html
index 097b965..2ebe764 100644
--- a/web/index.html
+++ b/web/index.html
@@ -1,34 +1,34 @@
-<!DOCTYPE html>
-<html lang="">
-
-<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <meta name="robots" content="noindex">
- <script>
- if (document.URL.indexOf("ui") === -1) {
- window.location.replace("ui")
- }
- </script>
- <link rel="apple-touch-icon" sizes="180x180" href="/ui/img/icon/apple-touch-icon.png">
- <link rel="manifest" href="/ui/site.webmanifest">
- <meta name="msapplication-TileColor" content="#da532c">
- <meta name="theme-color" content="#ffffff">
- <link rel="icon" href="/ui/favicon.svg" type="image/svg+xml">
-
- <title>
- CasaOS
- </title>
-<link href="/ui/css/10.3f6e4ac6.css" rel="prefetch"><link href="/ui/css/11.0cf49524.css" rel="prefetch"><link href="/ui/css/12.515410b8.css" rel="prefetch"><link href="/ui/css/13.8c31370d.css" rel="prefetch"><link href="/ui/css/14.3e385d0d.css" rel="prefetch"><link href="/ui/css/18.4aea6393.css" rel="prefetch"><link href="/ui/css/19.177dd094.css" rel="prefetch"><link href="/ui/css/3.e83a5e52.css" rel="prefetch"><link href="/ui/css/9.5e320549.css" rel="prefetch"><link href="/ui/js/0.js" rel="prefetch"><link href="/ui/js/1.js" rel="prefetch"><link href="/ui/js/10.js" rel="prefetch"><link href="/ui/js/11.js" rel="prefetch"><link href="/ui/js/12.js" rel="prefetch"><link href="/ui/js/13.js" rel="prefetch"><link href="/ui/js/14.js" rel="prefetch"><link href="/ui/js/15.js" rel="prefetch"><link href="/ui/js/16.js" rel="prefetch"><link href="/ui/js/17.js" rel="prefetch"><link href="/ui/js/18.js" rel="prefetch"><link href="/ui/js/19.js" rel="prefetch"><link href="/ui/js/2.js" rel="prefetch"><link href="/ui/js/20.js" rel="prefetch"><link href="/ui/js/3.js" rel="prefetch"><link href="/ui/js/4.js" rel="prefetch"><link href="/ui/js/5.js" rel="prefetch"><link href="/ui/js/6.js" rel="prefetch"><link href="/ui/js/7.js" rel="prefetch"><link href="/ui/js/8.js" rel="prefetch"><link href="/ui/js/9.js" rel="prefetch"><link href="/ui/css/app.1801b673.css" rel="preload" as="style"><link href="/ui/css/vendors~app.3967bc71.css" rel="preload" as="style"><link href="/ui/js/app.js" rel="preload" as="script"><link href="/ui/js/vendors~app.js" rel="preload" as="script"><link href="/ui/css/vendors~app.3967bc71.css" rel="stylesheet"><link href="/ui/css/app.1801b673.css" rel="stylesheet"></head>
-
-<body>
- <noscript>
- <strong>We're sorry but CasaOS doesn't work properly without JavaScript enabled.
- Please enable it to continue.</strong>
- </noscript>
- <div id="app"></div>
- <!-- built files will be auto injected -->
-<script type="text/javascript" src="/ui/js/vendors~app.js"></script><script type="text/javascript" src="/ui/js/app.js"></script></body>
-
-</html>
+<!DOCTYPE html>
+<html lang="">
+
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+ <meta name="robots" content="noindex">
+ <script>
+ if (document.URL.indexOf("ui") === -1) {
+ window.location.replace("ui")
+ }
+ </script>
+ <link rel="apple-touch-icon" sizes="180x180" href="/ui/img/icon/apple-touch-icon.png">
+ <link rel="manifest" href="/ui/site.webmanifest">
+ <meta name="msapplication-TileColor" content="#da532c">
+ <meta name="theme-color" content="#ffffff">
+ <link rel="icon" href="/ui/favicon.svg" type="image/svg+xml">
+
+ <title>
+ CasaOS
+ </title>
+<link href="/ui/css/10.f0cf5fc3.css" rel="prefetch"><link href="/ui/css/11.32be8789.css" rel="prefetch"><link href="/ui/css/12.ee780c90.css" rel="prefetch"><link href="/ui/css/13.dc77452d.css" rel="prefetch"><link href="/ui/css/14.daa8e8be.css" rel="prefetch"><link href="/ui/css/18.1f93b660.css" rel="prefetch"><link href="/ui/css/19.046fd3d8.css" rel="prefetch"><link href="/ui/css/3.623fa25f.css" rel="prefetch"><link href="/ui/css/9.f27e442b.css" rel="prefetch"><link href="/ui/js/0.js" rel="prefetch"><link href="/ui/js/1.js" rel="prefetch"><link href="/ui/js/10.js" rel="prefetch"><link href="/ui/js/11.js" rel="prefetch"><link href="/ui/js/12.js" rel="prefetch"><link href="/ui/js/13.js" rel="prefetch"><link href="/ui/js/14.js" rel="prefetch"><link href="/ui/js/15.js" rel="prefetch"><link href="/ui/js/16.js" rel="prefetch"><link href="/ui/js/17.js" rel="prefetch"><link href="/ui/js/18.js" rel="prefetch"><link href="/ui/js/19.js" rel="prefetch"><link href="/ui/js/2.js" rel="prefetch"><link href="/ui/js/20.js" rel="prefetch"><link href="/ui/js/3.js" rel="prefetch"><link href="/ui/js/4.js" rel="prefetch"><link href="/ui/js/5.js" rel="prefetch"><link href="/ui/js/6.js" rel="prefetch"><link href="/ui/js/7.js" rel="prefetch"><link href="/ui/js/8.js" rel="prefetch"><link href="/ui/js/9.js" rel="prefetch"><link href="/ui/css/app.1fb33240.css" rel="preload" as="style"><link href="/ui/css/vendors~app.6b5df7e4.css" rel="preload" as="style"><link href="/ui/js/app.js" rel="preload" as="script"><link href="/ui/js/vendors~app.js" rel="preload" as="script"><link href="/ui/css/vendors~app.6b5df7e4.css" rel="stylesheet"><link href="/ui/css/app.1fb33240.css" rel="stylesheet"></head>
+
+<body>
+ <noscript>
+ <strong>We're sorry but CasaOS doesn't work properly without JavaScript enabled.
+ Please enable it to continue.</strong>
+ </noscript>
+ <div id="app"></div>
+ <!-- built files will be auto injected -->
+<script type="text/javascript" src="/ui/js/vendors~app.js"></script><script type="text/javascript" src="/ui/js/app.js"></script></body>
+
+</html>
diff --git a/web/js/12.js b/web/js/12.js
index 7c6ab30..3717205 100644
--- a/web/js/12.js
+++ b/web/js/12.js
@@ -18,7 +18,7 @@
/*!**************************************************!*\
!*** ./src/assets/background/preview-widget.svg ***!
\**************************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/preview-widget.e228363c.svg";\n\n//# sourceURL=webpack:///./src/assets/background/preview-widget.svg?')},"./src/assets/background/wallpaper01.jpg":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/preview-widget.5069b926.svg";\n\n//# sourceURL=webpack:///./src/assets/background/preview-widget.svg?')},"./src/assets/background/wallpaper01.jpg":
/*!***********************************************!*\
!*** ./src/assets/background/wallpaper01.jpg ***!
\***********************************************/
diff --git a/web/js/13.js b/web/js/13.js
index e28c42c..a20e228 100644
--- a/web/js/13.js
+++ b/web/js/13.js
@@ -18,7 +18,7 @@
/*!***************************************************!*\
!*** ./src/assets/img/account/default-avatar.svg ***!
\***************************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/default-avatar.d92cd43a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/account/default-avatar.svg?')},"./src/assets/img/logo/casa-dark.svg":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/default-avatar.ab3b9bda.svg";\n\n//# sourceURL=webpack:///./src/assets/img/account/default-avatar.svg?')},"./src/assets/img/logo/casa-dark.svg":
/*!*******************************************!*\
!*** ./src/assets/img/logo/casa-dark.svg ***!
\*******************************************/
@@ -26,7 +26,7 @@
/*!*************************************!*\
!*** ./src/plugins/vee-validate.js ***!
\*************************************/
-/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Welcome.vue":
+/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Welcome.vue":
/*!*******************************!*\
!*** ./src/views/Welcome.vue ***!
\*******************************/
diff --git a/web/js/14.js b/web/js/14.js
index 67927b4..d84f59d 100644
--- a/web/js/14.js
+++ b/web/js/14.js
@@ -14,11 +14,11 @@
/*!***************************************************!*\
!*** ./src/assets/img/account/default-avatar.svg ***!
\***************************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/default-avatar.d92cd43a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/account/default-avatar.svg?')},"./src/plugins/vee-validate.js":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/default-avatar.ab3b9bda.svg";\n\n//# sourceURL=webpack:///./src/assets/img/account/default-avatar.svg?')},"./src/plugins/vee-validate.js":
/*!*************************************!*\
!*** ./src/plugins/vee-validate.js ***!
\*************************************/
-/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Login.vue":
+/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Login.vue":
/*!*****************************!*\
!*** ./src/views/Login.vue ***!
\*****************************/
diff --git a/web/js/3.js b/web/js/3.js
index cf0df61..6e66641 100644
--- a/web/js/3.js
+++ b/web/js/3.js
@@ -78,4 +78,4 @@
/*!*************************************!*\
!*** ./src/plugins/vee-validate.js ***!
\*************************************/
-/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')}}]);
\ No newline at end of file
+/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')}}]);
diff --git a/web/js/4.js b/web/js/4.js
index ec4c3bf..1e25ad2 100644
--- a/web/js/4.js
+++ b/web/js/4.js
@@ -18,7 +18,7 @@
/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AcquaintanceShare/components/GirdView.vue?vue&type=script&lang=js& ***!
\**********************************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _ActionButton_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ActionButton.vue */ "./src/components/AcquaintanceShare/components/ActionButton.vue");\n/* harmony import */ var _ContextMenu_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ContextMenu.vue */ "./src/components/AcquaintanceShare/components/ContextMenu.vue");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\nvar cardWidth = 144;\n/* harmony default export */ __webpack_exports__["default"] = ({\n components: {\n ActionButton: _ActionButton_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n ContextMenu: _ContextMenu_vue__WEBPACK_IMPORTED_MODULE_6__["default"]\n },\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_4__["mixin"]],\n data: function data() {\n return {\n min: 0,\n cols: 1,\n contextIsShow: false,\n colStyle: {\n width: \'33.3333%\'\n }\n };\n },\n model: {\n prop: \'listData\'\n },\n props: {\n listData: Array,\n isLoading: Boolean,\n user: {}\n },\n mounted: function mounted() {\n window.addEventListener(\'resize\', this.onResize);\n this.onResize();\n },\n beforeDestroy: function beforeDestroy() {\n window.removeEventListener(\'resize\', this.onResize);\n },\n methods: {\n onResize: function onResize() {\n var ww = document.getElementById("card-container").clientWidth;\n this.cols = Math.floor(ww / cardWidth);\n this.colStyle.width = (100 / this.cols).toString() + "%";\n },\n\n /**\r\n * @description: Download File\r\n * @param {Object,Object} event item \r\n * @return {void} \r\n */\n clickUserItem: function clickUserItem(event, item) {\n var bounced = event.target.getAttribute(\'class\').includes(\'mdi-dots\');\n\n if (bounced) {\n return false;\n }\n\n if (item.is_dir) {\n this.$emit(\'gotoFolder\', this.user, item.path);\n } else {\n this.$emit(\'showDownloadModal\', this.user, item);\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/AcquaintanceShare/components/GirdView.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/components/HistoryButton.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _ActionButton_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ActionButton.vue */ "./src/components/AcquaintanceShare/components/ActionButton.vue");\n/* harmony import */ var _ContextMenu_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ContextMenu.vue */ "./src/components/AcquaintanceShare/components/ContextMenu.vue");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\nvar cardWidth = 144;\n/* harmony default export */ __webpack_exports__["default"] = ({\n components: {\n ActionButton: _ActionButton_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n ContextMenu: _ContextMenu_vue__WEBPACK_IMPORTED_MODULE_6__["default"]\n },\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_4__["mixin"]],\n data: function data() {\n return {\n min: 0,\n cols: 1,\n contextIsShow: false,\n colStyle: {\n width: \'33.3333%\'\n }\n };\n },\n model: {\n prop: \'listData\'\n },\n props: {\n listData: Array,\n isLoading: Boolean,\n user: {}\n },\n mounted: function mounted() {\n window.addEventListener(\'resize\', this.onResize);\n this.onResize();\n },\n beforeDestroy: function beforeDestroy() {\n window.removeEventListener(\'resize\', this.onResize);\n },\n methods: {\n onResize: function onResize() {\n var ww = document.getElementById("card-container").clientWidth;\n this.cols = Math.floor(ww / cardWidth);\n this.colStyle.width = (100 / this.cols).toString() + "%";\n },\n\n /**\n * @description: Download File\n * @param {Object,Object} event item \n * @return {void} \n */\n clickUserItem: function clickUserItem(event, item) {\n var bounced = event.target.getAttribute(\'class\').includes(\'mdi-dots\');\n\n if (bounced) {\n return false;\n }\n\n if (item.is_dir) {\n this.$emit(\'gotoFolder\', this.user, item.path);\n } else {\n this.$emit(\'showDownloadModal\', this.user, item);\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/AcquaintanceShare/components/GirdView.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/components/HistoryButton.vue?vue&type=script&lang=js&":
/*!***************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AcquaintanceShare/components/HistoryButton.vue?vue&type=script&lang=js& ***!
\***************************************************************************************************************************************************************************************************************************************************************************************/
@@ -34,7 +34,7 @@
/*!************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AcquaintanceShare/modals/AddFriendModal.vue?vue&type=script&lang=js& ***!
\************************************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n shardId: "",\n errorType: "is-success",\n errors: "",\n isLoading: false\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_2__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_2__["ValidationProvider"]\n },\n methods: {\n /**\r\n * @description: Validate form async\r\n * @param {Object} ref ref of component\r\n * @return {Boolean} \r\n */\n checkValid: function checkValid(ref) {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n addFriend: function addFriend() {\n var _this = this;\n\n this.isLoading = true;\n this.checkValid(this.$refs.uuidValid).then(function (val) {\n if (val) {\n _this.$api.person.addFriend(_this.shardId).then(function (res) {\n var message = "";\n var type = "";\n\n if (res.data.success == 200) {\n message = _this.$t(\'Friend Request Sent.\');\n type = "is-success";\n\n _this.$emit("reloadFriendList");\n\n _this.$emit(\'close\');\n } else {\n _this.isLoading = false;\n message = _this.shardId + " " + _this.$t(\'is already your friend.\');\n type = "is-danger";\n }\n\n _this.$buefy.toast.open({\n message: message,\n type: type\n });\n });\n } else {\n _this.isLoading = false;\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/AcquaintanceShare/modals/AddFriendModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/modals/DownloadModal.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n shardId: "",\n errorType: "is-success",\n errors: "",\n isLoading: false\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_2__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_2__["ValidationProvider"]\n },\n methods: {\n /**\n * @description: Validate form async\n * @param {Object} ref ref of component\n * @return {Boolean} \n */\n checkValid: function checkValid(ref) {\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n addFriend: function addFriend() {\n var _this = this;\n\n this.isLoading = true;\n this.checkValid(this.$refs.uuidValid).then(function (val) {\n if (val) {\n _this.$api.person.addFriend(_this.shardId).then(function (res) {\n var message = "";\n var type = "";\n\n if (res.data.success == 200) {\n message = _this.$t(\'Friend Request Sent.\');\n type = "is-success";\n\n _this.$emit("reloadFriendList");\n\n _this.$emit(\'close\');\n } else {\n _this.isLoading = false;\n message = _this.shardId + " " + _this.$t(\'is already your friend.\');\n type = "is-danger";\n }\n\n _this.$buefy.toast.open({\n message: message,\n type: type\n });\n });\n } else {\n _this.isLoading = false;\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/AcquaintanceShare/modals/AddFriendModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/modals/DownloadModal.vue?vue&type=script&lang=js&":
/*!***********************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AcquaintanceShare/modals/DownloadModal.vue?vue&type=script&lang=js& ***!
\***********************************************************************************************************************************************************************************************************************************************************************************/
@@ -46,7 +46,7 @@
/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AcquaintanceShare/modals/InitModal.vue?vue&type=script&lang=js& ***!
\*******************************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _components_fileList_FilePanel_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/fileList/FilePanel.vue */ "./src/components/fileList/FilePanel.vue");\n/* harmony import */ var lodash_remove__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/remove */ "./node_modules/lodash/remove.js");\n/* harmony import */ var lodash_remove__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_remove__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n // import Avatar from \'vue-avatar\'\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_7___default.a],\n props: {\n myInfo: {}\n },\n data: function data() {\n return {\n isWelcomeShow: true,\n isLoading: false,\n activeStep: 0,\n step2Message: "",\n step3Message: "",\n nickname: "",\n description: "",\n shareFolders: [],\n savePath: "/DATA/Downloads",\n publicServer: [],\n choosePublicServer: []\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_5__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_5__["ValidationProvider"] // Avatar\n\n },\n watch: {\n shareFolders: function shareFolders(val) {\n if (val.length > 0) {\n this.step2Message = "";\n }\n }\n },\n created: function created() {\n this.nickname = this.myInfo.user_name;\n this.description = this.myInfo.description;\n this.getPublicServers();\n },\n mounted: function mounted() {\n //Smooth \n this.$smoothReflow({\n el: \'.modal-card\',\n property: [\'height\', \'width\'],\n transition: \'height .25s ease, width .75s ease-out\'\n });\n },\n methods: {\n /**\r\n * @description: Validate form async\r\n * @param {Object} ref ref of component\r\n * @return {Boolean} \r\n */\n checkValid: function checkValid(ref) {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n getShareFolders: function getShareFolders() {},\n chooseServer: function chooseServer(id) {\n if (this.choosePublicServer.indexOf(id) == -1) {\n this.choosePublicServer.push(id);\n } else {\n this.choosePublicServer = lodash_remove__WEBPACK_IMPORTED_MODULE_9___default()(this.choosePublicServer, function (o) {\n return o != id;\n });\n }\n },\n getPublicServers: function getPublicServers() {\n var _this = this;\n\n this.$api.person.publicServer().then(function (res) {\n if (res.data.success == 200) {\n _this.publicServer = res.data.data;\n }\n });\n },\n deleteShareFolderItem: function deleteShareFolderItem(item) {\n this.shareFolders = lodash_remove__WEBPACK_IMPORTED_MODULE_9___default()(this.shareFolders, function (o) {\n return o != item;\n });\n },\n close: function close() {\n this.$emit("close");\n this.$emit("complete");\n },\n nextStep: function nextStep(next) {\n var _this2 = this;\n\n switch (this.activeStep) {\n case 0:\n this.checkValid(this.$refs.accountValid).then(function (val) {\n if (val) {\n _this2.isLoading = true;\n\n _this2.$api.user.personInfo(_this2.nickname, _this2.description).then(function (res) {\n _this2.isLoading = false;\n\n if (res.data.success == 200) {\n next();\n }\n });\n }\n });\n break;\n\n case 1:\n if (this.shareFolders.length == 0) {\n this.$buefy.toast.open({\n message: this.$t(\'Need to add at least one directory\'),\n type: "is-danger"\n });\n } else {\n this.isLoading = true;\n this.$api.person.updateShareList(this.shareFolders).then(function (res) {\n if (res.data.success == 200) {\n _this2.$api.person.updateSavePath(_this2.savePath).then(function (res) {\n _this2.isLoading = false;\n\n if (res.data.success == 200) {\n next();\n } else {\n _this2.$buefy.toast.open({\n message: res.data.message,\n type: "is-danger"\n });\n }\n });\n } else {\n _this2.isLoading = false;\n\n _this2.$buefy.toast.open({\n message: res.data.message,\n type: "is-danger"\n });\n }\n });\n }\n\n break;\n\n case 2:\n if (this.choosePublicServer.length == 0) {\n this.$buefy.toast.open({\n message: this.$t(\'At least one must be selected.\'),\n type: "is-danger"\n });\n } else {\n var joinString = this.choosePublicServer.join(",");\n this.isLoading = true;\n this.$api.person.addFriend(joinString).then(function (res) {\n var message = "";\n var type = "";\n _this2.isLoading = false;\n\n if (res.data.success == 200) {\n next();\n } else {\n message = res.data.message;\n type = "is-danger";\n }\n\n _this2.$buefy.toast.open({\n message: message,\n type: type\n });\n });\n }\n\n break;\n\n default:\n break;\n }\n },\n showFolderModal: function showFolderModal(action, initPath) {\n var _this3 = this;\n\n var itemIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n this.$buefy.modal.open({\n parent: this,\n component: _components_fileList_FilePanel_vue__WEBPACK_IMPORTED_MODULE_8__["default"],\n hasModalCard: true,\n customClass: \'file-sel-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updatePath\': function updatePath(e) {\n if (action == \'add\') {\n if (_this3.shareFolders.indexOf(e) == -1) {\n _this3.shareFolders.push(e);\n }\n } else if (action == "edit") {\n _this3.shareFolders[itemIndex] = e;\n\n _this3.$forceUpdate();\n }\n }\n },\n props: {\n initPath: initPath,\n rootPath: "/DATA",\n showFile: false\n }\n });\n },\n showFileModal: function showFileModal() {\n var _this4 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_fileList_FilePanel_vue__WEBPACK_IMPORTED_MODULE_8__["default"],\n hasModalCard: true,\n customClass: \'file-sel-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updatePath\': function updatePath(e) {\n _this4.savePath = e;\n }\n },\n props: {\n initPath: this.savePath,\n rootPath: this.rootPath,\n showFile: false\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/AcquaintanceShare/modals/InitModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/modals/MyInfoModal.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _components_fileList_FilePanel_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/fileList/FilePanel.vue */ "./src/components/fileList/FilePanel.vue");\n/* harmony import */ var lodash_remove__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/remove */ "./node_modules/lodash/remove.js");\n/* harmony import */ var lodash_remove__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_remove__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n // import Avatar from \'vue-avatar\'\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_7___default.a],\n props: {\n myInfo: {}\n },\n data: function data() {\n return {\n isWelcomeShow: true,\n isLoading: false,\n activeStep: 0,\n step2Message: "",\n step3Message: "",\n nickname: "",\n description: "",\n shareFolders: [],\n savePath: "/DATA/Downloads",\n publicServer: [],\n choosePublicServer: []\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_5__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_5__["ValidationProvider"] // Avatar\n\n },\n watch: {\n shareFolders: function shareFolders(val) {\n if (val.length > 0) {\n this.step2Message = "";\n }\n }\n },\n created: function created() {\n this.nickname = this.myInfo.user_name;\n this.description = this.myInfo.description;\n this.getPublicServers();\n },\n mounted: function mounted() {\n //Smooth \n this.$smoothReflow({\n el: \'.modal-card\',\n property: [\'height\', \'width\'],\n transition: \'height .25s ease, width .75s ease-out\'\n });\n },\n methods: {\n /**\n * @description: Validate form async\n * @param {Object} ref ref of component\n * @return {Boolean} \n */\n checkValid: function checkValid(ref) {\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n getShareFolders: function getShareFolders() {},\n chooseServer: function chooseServer(id) {\n if (this.choosePublicServer.indexOf(id) == -1) {\n this.choosePublicServer.push(id);\n } else {\n this.choosePublicServer = lodash_remove__WEBPACK_IMPORTED_MODULE_9___default()(this.choosePublicServer, function (o) {\n return o != id;\n });\n }\n },\n getPublicServers: function getPublicServers() {\n var _this = this;\n\n this.$api.person.publicServer().then(function (res) {\n if (res.data.success == 200) {\n _this.publicServer = res.data.data;\n }\n });\n },\n deleteShareFolderItem: function deleteShareFolderItem(item) {\n this.shareFolders = lodash_remove__WEBPACK_IMPORTED_MODULE_9___default()(this.shareFolders, function (o) {\n return o != item;\n });\n },\n close: function close() {\n this.$emit("close");\n this.$emit("complete");\n },\n nextStep: function nextStep(next) {\n var _this2 = this;\n\n switch (this.activeStep) {\n case 0:\n this.checkValid(this.$refs.accountValid).then(function (val) {\n if (val) {\n _this2.isLoading = true;\n\n _this2.$api.user.personInfo(_this2.nickname, _this2.description).then(function (res) {\n _this2.isLoading = false;\n\n if (res.data.success == 200) {\n next();\n }\n });\n }\n });\n break;\n\n case 1:\n if (this.shareFolders.length == 0) {\n this.$buefy.toast.open({\n message: this.$t(\'Need to add at least one directory\'),\n type: "is-danger"\n });\n } else {\n this.isLoading = true;\n this.$api.person.updateShareList(this.shareFolders).then(function (res) {\n if (res.data.success == 200) {\n _this2.$api.person.updateSavePath(_this2.savePath).then(function (res) {\n _this2.isLoading = false;\n\n if (res.data.success == 200) {\n next();\n } else {\n _this2.$buefy.toast.open({\n message: res.data.message,\n type: "is-danger"\n });\n }\n });\n } else {\n _this2.isLoading = false;\n\n _this2.$buefy.toast.open({\n message: res.data.message,\n type: "is-danger"\n });\n }\n });\n }\n\n break;\n\n case 2:\n if (this.choosePublicServer.length == 0) {\n this.$buefy.toast.open({\n message: this.$t(\'At least one must be selected.\'),\n type: "is-danger"\n });\n } else {\n var joinString = this.choosePublicServer.join(",");\n this.isLoading = true;\n this.$api.person.addFriend(joinString).then(function (res) {\n var message = "";\n var type = "";\n _this2.isLoading = false;\n\n if (res.data.success == 200) {\n next();\n } else {\n message = res.data.message;\n type = "is-danger";\n }\n\n _this2.$buefy.toast.open({\n message: message,\n type: type\n });\n });\n }\n\n break;\n\n default:\n break;\n }\n },\n showFolderModal: function showFolderModal(action, initPath) {\n var _this3 = this;\n\n var itemIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n this.$buefy.modal.open({\n parent: this,\n component: _components_fileList_FilePanel_vue__WEBPACK_IMPORTED_MODULE_8__["default"],\n hasModalCard: true,\n customClass: \'file-sel-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updatePath\': function updatePath(e) {\n if (action == \'add\') {\n if (_this3.shareFolders.indexOf(e) == -1) {\n _this3.shareFolders.push(e);\n }\n } else if (action == "edit") {\n _this3.shareFolders[itemIndex] = e;\n\n _this3.$forceUpdate();\n }\n }\n },\n props: {\n initPath: initPath,\n rootPath: "/DATA",\n showFile: false\n }\n });\n },\n showFileModal: function showFileModal() {\n var _this4 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_fileList_FilePanel_vue__WEBPACK_IMPORTED_MODULE_8__["default"],\n hasModalCard: true,\n customClass: \'file-sel-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updatePath\': function updatePath(e) {\n _this4.savePath = e;\n }\n },\n props: {\n initPath: this.savePath,\n rootPath: this.rootPath,\n showFile: false\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/AcquaintanceShare/modals/InitModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/modals/MyInfoModal.vue?vue&type=script&lang=js&":
/*!*********************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AcquaintanceShare/modals/MyInfoModal.vue?vue&type=script&lang=js& ***!
\*********************************************************************************************************************************************************************************************************************************************************************************/
@@ -54,7 +54,7 @@
/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AcquaintanceShare/modals/ProfileModal.vue?vue&type=script&lang=js& ***!
\**********************************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! clipboard-copy */ "./node_modules/clipboard-copy/index.js");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n shardId: "",\n errorType: "is-success",\n errors: "",\n nickname: "",\n description: "",\n myID: ""\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_4__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_4__["ValidationProvider"]\n },\n created: function created() {\n var _this = this;\n\n this.$api.user.getUserInfo(localStorage.getItem("user_id")).then(function (res) {\n _this.nickname = res.data.data.nick_name;\n _this.description = res.data.data.description;\n });\n this.getMyShareId();\n },\n methods: {\n // Get MyID\n getMyShareId: function getMyShareId() {\n var _this2 = this;\n\n this.$api.person.getMyShareId().then(function (res) {\n _this2.myID = res.data.data;\n });\n },\n // Copy MyID to clipboard\n copyMyId: function copyMyId() {\n clipboard_copy__WEBPACK_IMPORTED_MODULE_6___default()(this.myID);\n this.$buefy.toast.open({\n message: this.$t(\'Copied to clipboard\'),\n type: \'is-success\'\n });\n },\n\n /**\r\n * @description: Validate form async\r\n * @param {Object} ref ref of component\r\n * @return {Boolean} \r\n */\n checkValid: function checkValid(ref) {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n saveInfo: function saveInfo() {\n var _this3 = this;\n\n this.checkValid(this.$refs.accountValid).then(function (val) {\n if (val) {\n _this3.$api.user.personInfo(_this3.nickname, _this3.description).then(function (res) {\n var message = "";\n var type = "";\n\n if (res.data.success == 200) {\n message = _this3.$t(\'Update successful\');\n type = "is-success";\n\n _this3.$emit(\'close\');\n } else {\n message = _this3.$t(\'Update failed\');\n type = "is-danger";\n }\n\n _this3.$buefy.toast.open({\n message: message,\n type: type\n });\n });\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/AcquaintanceShare/modals/ProfileModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/modals/SettingsModal.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! clipboard-copy */ "./node_modules/clipboard-copy/index.js");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n shardId: "",\n errorType: "is-success",\n errors: "",\n nickname: "",\n description: "",\n myID: ""\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_4__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_4__["ValidationProvider"]\n },\n created: function created() {\n var _this = this;\n\n this.$api.user.getUserInfo(localStorage.getItem("user_id")).then(function (res) {\n _this.nickname = res.data.data.nick_name;\n _this.description = res.data.data.description;\n });\n this.getMyShareId();\n },\n methods: {\n // Get MyID\n getMyShareId: function getMyShareId() {\n var _this2 = this;\n\n this.$api.person.getMyShareId().then(function (res) {\n _this2.myID = res.data.data;\n });\n },\n // Copy MyID to clipboard\n copyMyId: function copyMyId() {\n clipboard_copy__WEBPACK_IMPORTED_MODULE_6___default()(this.myID);\n this.$buefy.toast.open({\n message: this.$t(\'Copied to clipboard\'),\n type: \'is-success\'\n });\n },\n\n /**\n * @description: Validate form async\n * @param {Object} ref ref of component\n * @return {Boolean} \n */\n checkValid: function checkValid(ref) {\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n saveInfo: function saveInfo() {\n var _this3 = this;\n\n this.checkValid(this.$refs.accountValid).then(function (val) {\n if (val) {\n _this3.$api.user.personInfo(_this3.nickname, _this3.description).then(function (res) {\n var message = "";\n var type = "";\n\n if (res.data.success == 200) {\n message = _this3.$t(\'Update successful\');\n type = "is-success";\n\n _this3.$emit(\'close\');\n } else {\n message = _this3.$t(\'Update failed\');\n type = "is-danger";\n }\n\n _this3.$buefy.toast.open({\n message: message,\n type: type\n });\n });\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/AcquaintanceShare/modals/ProfileModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/modals/SettingsModal.vue?vue&type=script&lang=js&":
/*!***********************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AcquaintanceShare/modals/SettingsModal.vue?vue&type=script&lang=js& ***!
\***********************************************************************************************************************************************************************************************************************************************************************************/
@@ -62,7 +62,7 @@
/*!***************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/CasaConnect.vue?vue&type=script&lang=js& ***!
\***************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue_avatar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue-avatar */ "./node_modules/vue-avatar/dist/vue-avatar.min.js");\n/* harmony import */ var vue_avatar__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue_avatar__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var vue_multipane__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vue-multipane */ "./node_modules/vue-multipane/dist/vue-multipane.esm.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _components_AcquaintanceShare_components_DownloadList_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/DownloadList.vue */ "./src/components/AcquaintanceShare/components/DownloadList.vue");\n/* harmony import */ var _components_AcquaintanceShare_components_GirdView_vue__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/GirdView.vue */ "./src/components/AcquaintanceShare/components/GirdView.vue");\n/* harmony import */ var _components_AcquaintanceShare_components_ListView_vue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/ListView.vue */ "./src/components/AcquaintanceShare/components/ListView.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_AddFriendModal_vue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/AddFriendModal.vue */ "./src/components/AcquaintanceShare/modals/AddFriendModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_DownloadModal_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/DownloadModal.vue */ "./src/components/AcquaintanceShare/modals/DownloadModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_ProfileModal_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/ProfileModal.vue */ "./src/components/AcquaintanceShare/modals/ProfileModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_SettingsModal_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/SettingsModal.vue */ "./src/components/AcquaintanceShare/modals/SettingsModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_components_HistoryButton_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/HistoryButton.vue */ "./src/components/AcquaintanceShare/components/HistoryButton.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_MyInfoModal_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/MyInfoModal.vue */ "./src/components/AcquaintanceShare/modals/MyInfoModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_InitModal_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/InitModal.vue */ "./src/components/AcquaintanceShare/modals/InitModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_components_UserContextMenu_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/UserContextMenu.vue */ "./src/components/AcquaintanceShare/components/UserContextMenu.vue");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! clipboard-copy */ "./node_modules/clipboard-copy/index.js");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_23__);\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "casa-connect",\n provide: function provide() {\n return {\n filePanel: this\n };\n },\n components: {\n Multipane: vue_multipane__WEBPACK_IMPORTED_MODULE_8__["Multipane"],\n MultipaneResizer: vue_multipane__WEBPACK_IMPORTED_MODULE_8__["MultipaneResizer"],\n DownloadList: _components_AcquaintanceShare_components_DownloadList_vue__WEBPACK_IMPORTED_MODULE_12__["default"],\n GirdView: _components_AcquaintanceShare_components_GirdView_vue__WEBPACK_IMPORTED_MODULE_13__["default"],\n ListView: _components_AcquaintanceShare_components_ListView_vue__WEBPACK_IMPORTED_MODULE_14__["default"],\n HistoryButton: _components_AcquaintanceShare_components_HistoryButton_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n Avatar: vue_avatar__WEBPACK_IMPORTED_MODULE_7___default.a,\n UserContextMenu: _components_AcquaintanceShare_components_UserContextMenu_vue__WEBPACK_IMPORTED_MODULE_22__["default"]\n },\n data: function data() {\n return {\n isSelfLoading: false,\n open: false,\n timer: 0,\n timeGap: 3,\n isViewGird: true,\n isLoading: false,\n isDownloadShow: false,\n isDragIn: false,\n timeout: null,\n rootPath: "/",\n currentPath: "",\n currentPathName: "",\n listData: [],\n myId: "",\n myInfo: {\n user_name: "",\n nick_name: "",\n description: ""\n },\n myFriendsList: [],\n currentUser: {\n token: ""\n },\n currentUserFileList: {},\n cancelRequest: null,\n downloadListLen: 0,\n steps: [{\n target: \'#v-step-0\',\n content: \'Here is your avatar, where you can change your personal information and get your ID to share with your friends.\'\n }, {\n target: \'#v-step-1\',\n content: "Click \\"+\\" and enter your friend\'s ID to send a friend request."\n }, {\n target: \'#v-step-2\',\n content: \'Browse your download progress and download history here.\'\n }, {\n target: \'#v-step-3\',\n content: \'Modify your shared folders, and default download path here.\'\n }]\n };\n },\n computed: {\n isInit: function isInit() {\n return this.myInfo.nick_name != "" && this.myInfo.description != "";\n },\n viewIcon: function viewIcon() {\n return this.$store.state.isShareViewGird ? "view-grid-outline" : "format-list-bulleted";\n },\n listView: function listView() {\n return this.$store.state.isShareViewGird ? "gird-view" : "list-view";\n },\n isNoneUserSelect: function isNoneUserSelect() {\n return lodash_isEqual__WEBPACK_IMPORTED_MODULE_10___default()(this.currentUser, {\n token: ""\n });\n }\n },\n created: function created() {},\n mounted: function mounted() {\n this.getMyInfo();\n this.getMyShareId(); // if (this.timer)\n // clearInterval(this.timer)\n // this.timer = setInterval(() => {\n // this.getMyFriendList()\n // }, this.timeGap * 1000)\n\n this.getDownloadListLen(); // this.$tours[\'myTour\'].start()\n // Handling drag-and-drop upload events\n\n var tranlatePath = document.getElementById("drag-area");\n tranlatePath.addEventListener("dragenter", this.onDrag, false);\n tranlatePath.addEventListener("dragover", this.onDrag, false);\n tranlatePath.addEventListener("drop", this.onDrop, false);\n },\n methods: {\n /*************************************************\r\n * PART 1 Self Logic\r\n **************************************************/\n // Get My Info\n getMyInfo: function getMyInfo() {\n var _this = this;\n\n this.$api.user.getUserInfo(localStorage.getItem("user_id")).then(function (res) {\n _this.myInfo = res.data.data;\n\n if (!_this.isInit) {\n _this.showInitModal();\n } else {\n _this.getMyFriendList(true);\n }\n });\n },\n // Get MyID\n getMyShareId: function getMyShareId() {\n var _this2 = this;\n\n this.$api.person.getMyShareId().then(function (res) {\n _this2.myId = res.data.data;\n });\n },\n // Copy MyID to clipboard\n copyMyId: function copyMyId() {\n clipboard_copy__WEBPACK_IMPORTED_MODULE_23___default()(this.myId);\n this.$buefy.toast.open({\n message: this.myId + " " + this.$t(\'has been copied to the clipboard\'),\n type: \'is-success\'\n });\n },\n\n /*************************************************\r\n * PART 2 Friends share \r\n **************************************************/\n getMyFriendList: function getMyFriendList() {\n var _this3 = this;\n\n var showFirst = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n this.$api.person.getFriendsList().then(function (res) {\n _this3.myFriendsList = lodash_orderBy__WEBPACK_IMPORTED_MODULE_9___default()(res.data.data, [\'on_line\'], [\'desc\']);\n\n if (showFirst && _this3.myFriendsList.length > 0) {\n var user = lodash_find__WEBPACK_IMPORTED_MODULE_11___default()(_this3.myFriendsList, function (o) {\n return o.on_line;\n });\n\n _this3.getUserFiles(user, _this3.rootPath);\n }\n });\n },\n // Get user Files\n getUserFiles: function getUserFiles(user, path) {\n var _this4 = this;\n\n var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n\n if (!user.on_line) {\n this.$buefy.toast.open({\n message: user.nick_name + " " + this.$t(\'is offline\'),\n type: \'is-danger\'\n });\n return false;\n }\n\n if (this.isDownloadShow) this.isDownloadShow = false;\n this.currentUser = user;\n this.isLoading = true;\n\n if (typeof this.cancelRequest === \'function\') {\n this.cancelRequest();\n }\n\n this.$api.person.getDirectory(this.currentUser.token, path, this).then(function (res) {\n _this4.isLoading = false;\n\n if (res.data.success == 200) {\n _this4.currentPath = path;\n _this4.currentPathName = path.split("/").pop();\n _this4.listData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_9___default()(res.data.data, [\'is_dir\'], [\'desc\']);\n\n if (type == 2) {\n _this4.$refs.historyBar.clearHistory();\n } else if (type == 1) {\n _this4.$refs.historyBar.addHistory(path);\n }\n } else {\n _this4.listData = [];\n }\n\n _this4.$store.commit(\'changeCurrentSharePath\', path);\n }).catch(function (err) {\n console.log(err);\n });\n },\n\n /*************************************************\r\n * PART 2 UI Action\r\n **************************************************/\n // Show user side bar context\n showContext: function showContext($event, user) {\n this.$refs.userContextMenu.open($event, user);\n },\n // Reload current folder\n reload: function reload() {\n this.getUserFiles(this.currentUser, this.currentPath);\n },\n // Show Download List\n showDownloadList: function showDownloadList() {\n this.isDownloadShow = true;\n this.listData = [];\n this.currentUser = {\n token: ""\n };\n },\n // Get download list length\n getDownloadListLen: function getDownloadListLen() {\n var _this5 = this;\n\n this.$api.person.getDownloadList().then(function (res) {\n if (res.data.success == 200) {\n _this5.downloadListLen = res.data.data.filter(function (item) {\n return item.state != 5;\n }).length;\n }\n });\n },\n //Update download list length\n updateListLen: function updateListLen(len) {\n this.downloadListLen = len;\n },\n // Change View\n changeView: function changeView() {\n this.isViewGird = !this.$store.state.isShareViewGird;\n this.$store.commit(\'changeShareViewGird\', this.isViewGird);\n },\n // Handle the multipane resize event\n onPanerResize: function onPanerResize() {\n if (this.isViewGird) this.$refs.views.onResize();\n },\n\n /******************************************\r\n * PART 3 Modals\r\n *******************************************/\n // Show Init Modal\n showInitModal: function showInitModal() {\n var _this6 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_InitModal_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n customClass: "init-modal",\n hasModalCard: true,\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n myInfo: this.myInfo\n },\n events: {\n \'close\': function close() {\n _this6.getMyInfo();\n\n _this6.$tours[\'myTour\'].start();\n\n _this6.getMyFriendList(true);\n }\n }\n });\n },\n // Show Edit My Info Modal\n showEditInfoModal: function showEditInfoModal() {\n var _this7 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_ProfileModal_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'close\': function close() {\n _this7.getMyInfo();\n }\n }\n });\n },\n // Show Settings Modal\n showSettingsModal: function showSettingsModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_SettingsModal_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in"\n });\n },\n // Show my ID Modal\n showMyIdModal: function showMyIdModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_MyInfoModal_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {}\n });\n },\n // Show Add Friend Modal\n showAddFriendModal: function showAddFriendModal() {\n var _this8 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_AddFriendModal_vue__WEBPACK_IMPORTED_MODULE_15__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n "reloadFriendList": function reloadFriendList() {\n _this8.getMyFriendList();\n }\n }\n });\n },\n // Show Download Modal\n showDownloadModal: function showDownloadModal(user, item) {\n var _this9 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_DownloadModal_vue__WEBPACK_IMPORTED_MODULE_16__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n user: user,\n item: item\n },\n events: {\n "update": function update() {\n _this9.getDownloadListLen();\n }\n }\n });\n },\n\n /*************************************************\r\n * PART 4 Drag and Drop\r\n **************************************************/\n onDrag: function onDrag(e) {\n var _this10 = this;\n\n this.isDragIn = true;\n\n if (this.timeout !== null) {\n clearTimeout(this.timeout);\n }\n\n this.timeout = setTimeout(function () {\n _this10.isDragIn = false;\n _this10.timeout = null;\n }, 100);\n e.stopPropagation();\n e.preventDefault();\n },\n onDrop: function onDrop(e) {\n e.stopPropagation();\n e.preventDefault();\n }\n },\n sockets: {\n person_status: function person_status(data) {\n var isOnline = data.type == "OFFLINE" ? false : true;\n this.myFriendsList.forEach(function (item) {\n if (item.token == data.share_id) {\n item.on_line = isOnline;\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/CasaConnect.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5adb896b-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/components/ActionButton.vue?vue&type=template&id=6cb3fb0e&':
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var vue_avatar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue-avatar */ "./node_modules/vue-avatar/dist/vue-avatar.min.js");\n/* harmony import */ var vue_avatar__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue_avatar__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var vue_multipane__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! vue-multipane */ "./node_modules/vue-multipane/dist/vue-multipane.esm.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _components_AcquaintanceShare_components_DownloadList_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/DownloadList.vue */ "./src/components/AcquaintanceShare/components/DownloadList.vue");\n/* harmony import */ var _components_AcquaintanceShare_components_GirdView_vue__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/GirdView.vue */ "./src/components/AcquaintanceShare/components/GirdView.vue");\n/* harmony import */ var _components_AcquaintanceShare_components_ListView_vue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/ListView.vue */ "./src/components/AcquaintanceShare/components/ListView.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_AddFriendModal_vue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/AddFriendModal.vue */ "./src/components/AcquaintanceShare/modals/AddFriendModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_DownloadModal_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/DownloadModal.vue */ "./src/components/AcquaintanceShare/modals/DownloadModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_ProfileModal_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/ProfileModal.vue */ "./src/components/AcquaintanceShare/modals/ProfileModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_SettingsModal_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/SettingsModal.vue */ "./src/components/AcquaintanceShare/modals/SettingsModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_components_HistoryButton_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/HistoryButton.vue */ "./src/components/AcquaintanceShare/components/HistoryButton.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_MyInfoModal_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/MyInfoModal.vue */ "./src/components/AcquaintanceShare/modals/MyInfoModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_modals_InitModal_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../components/AcquaintanceShare/modals/InitModal.vue */ "./src/components/AcquaintanceShare/modals/InitModal.vue");\n/* harmony import */ var _components_AcquaintanceShare_components_UserContextMenu_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../components/AcquaintanceShare/components/UserContextMenu.vue */ "./src/components/AcquaintanceShare/components/UserContextMenu.vue");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! clipboard-copy */ "./node_modules/clipboard-copy/index.js");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_23__);\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "casa-connect",\n provide: function provide() {\n return {\n filePanel: this\n };\n },\n components: {\n Multipane: vue_multipane__WEBPACK_IMPORTED_MODULE_8__["Multipane"],\n MultipaneResizer: vue_multipane__WEBPACK_IMPORTED_MODULE_8__["MultipaneResizer"],\n DownloadList: _components_AcquaintanceShare_components_DownloadList_vue__WEBPACK_IMPORTED_MODULE_12__["default"],\n GirdView: _components_AcquaintanceShare_components_GirdView_vue__WEBPACK_IMPORTED_MODULE_13__["default"],\n ListView: _components_AcquaintanceShare_components_ListView_vue__WEBPACK_IMPORTED_MODULE_14__["default"],\n HistoryButton: _components_AcquaintanceShare_components_HistoryButton_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n Avatar: vue_avatar__WEBPACK_IMPORTED_MODULE_7___default.a,\n UserContextMenu: _components_AcquaintanceShare_components_UserContextMenu_vue__WEBPACK_IMPORTED_MODULE_22__["default"]\n },\n data: function data() {\n return {\n isSelfLoading: false,\n open: false,\n timer: 0,\n timeGap: 3,\n isViewGird: true,\n isLoading: false,\n isDownloadShow: false,\n isDragIn: false,\n timeout: null,\n rootPath: "/",\n currentPath: "",\n currentPathName: "",\n listData: [],\n myId: "",\n myInfo: {\n user_name: "",\n nick_name: "",\n description: ""\n },\n myFriendsList: [],\n currentUser: {\n token: ""\n },\n currentUserFileList: {},\n cancelRequest: null,\n downloadListLen: 0,\n steps: [{\n target: \'#v-step-0\',\n content: \'Here is your avatar, where you can change your personal information and get your ID to share with your friends.\'\n }, {\n target: \'#v-step-1\',\n content: "Click \\"+\\" and enter your friend\'s ID to send a friend request."\n }, {\n target: \'#v-step-2\',\n content: \'Browse your download progress and download history here.\'\n }, {\n target: \'#v-step-3\',\n content: \'Modify your shared folders, and default download path here.\'\n }]\n };\n },\n computed: {\n isInit: function isInit() {\n return this.myInfo.nick_name != "" && this.myInfo.description != "";\n },\n viewIcon: function viewIcon() {\n return this.$store.state.isShareViewGird ? "view-grid-outline" : "format-list-bulleted";\n },\n listView: function listView() {\n return this.$store.state.isShareViewGird ? "gird-view" : "list-view";\n },\n isNoneUserSelect: function isNoneUserSelect() {\n return lodash_isEqual__WEBPACK_IMPORTED_MODULE_10___default()(this.currentUser, {\n token: ""\n });\n }\n },\n created: function created() {},\n mounted: function mounted() {\n this.getMyInfo();\n this.getMyShareId(); // if (this.timer)\n // clearInterval(this.timer)\n // this.timer = setInterval(() => {\n // this.getMyFriendList()\n // }, this.timeGap * 1000)\n\n this.getDownloadListLen(); // this.$tours[\'myTour\'].start()\n // Handling drag-and-drop upload events\n\n var tranlatePath = document.getElementById("drag-area");\n tranlatePath.addEventListener("dragenter", this.onDrag, false);\n tranlatePath.addEventListener("dragover", this.onDrag, false);\n tranlatePath.addEventListener("drop", this.onDrop, false);\n },\n methods: {\n /*************************************************\n * PART 1 Self Logic\n **************************************************/\n // Get My Info\n getMyInfo: function getMyInfo() {\n var _this = this;\n\n this.$api.user.getUserInfo(localStorage.getItem("user_id")).then(function (res) {\n _this.myInfo = res.data.data;\n\n if (!_this.isInit) {\n _this.showInitModal();\n } else {\n _this.getMyFriendList(true);\n }\n });\n },\n // Get MyID\n getMyShareId: function getMyShareId() {\n var _this2 = this;\n\n this.$api.person.getMyShareId().then(function (res) {\n _this2.myId = res.data.data;\n });\n },\n // Copy MyID to clipboard\n copyMyId: function copyMyId() {\n clipboard_copy__WEBPACK_IMPORTED_MODULE_23___default()(this.myId);\n this.$buefy.toast.open({\n message: this.myId + " " + this.$t(\'has been copied to the clipboard\'),\n type: \'is-success\'\n });\n },\n\n /*************************************************\n * PART 2 Friends share \n **************************************************/\n getMyFriendList: function getMyFriendList() {\n var _this3 = this;\n\n var showFirst = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n this.$api.person.getFriendsList().then(function (res) {\n _this3.myFriendsList = lodash_orderBy__WEBPACK_IMPORTED_MODULE_9___default()(res.data.data, [\'on_line\'], [\'desc\']);\n\n if (showFirst && _this3.myFriendsList.length > 0) {\n var user = lodash_find__WEBPACK_IMPORTED_MODULE_11___default()(_this3.myFriendsList, function (o) {\n return o.on_line;\n });\n\n _this3.getUserFiles(user, _this3.rootPath);\n }\n });\n },\n // Get user Files\n getUserFiles: function getUserFiles(user, path) {\n var _this4 = this;\n\n var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n\n if (!user.on_line) {\n this.$buefy.toast.open({\n message: user.nick_name + " " + this.$t(\'is offline\'),\n type: \'is-danger\'\n });\n return false;\n }\n\n if (this.isDownloadShow) this.isDownloadShow = false;\n this.currentUser = user;\n this.isLoading = true;\n\n if (typeof this.cancelRequest === \'function\') {\n this.cancelRequest();\n }\n\n this.$api.person.getDirectory(this.currentUser.token, path, this).then(function (res) {\n _this4.isLoading = false;\n\n if (res.data.success == 200) {\n _this4.currentPath = path;\n _this4.currentPathName = path.split("/").pop();\n _this4.listData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_9___default()(res.data.data, [\'is_dir\'], [\'desc\']);\n\n if (type == 2) {\n _this4.$refs.historyBar.clearHistory();\n } else if (type == 1) {\n _this4.$refs.historyBar.addHistory(path);\n }\n } else {\n _this4.listData = [];\n }\n\n _this4.$store.commit(\'changeCurrentSharePath\', path);\n }).catch(function (err) {\n console.log(err);\n });\n },\n\n /*************************************************\n * PART 2 UI Action\n **************************************************/\n // Show user side bar context\n showContext: function showContext($event, user) {\n this.$refs.userContextMenu.open($event, user);\n },\n // Reload current folder\n reload: function reload() {\n this.getUserFiles(this.currentUser, this.currentPath);\n },\n // Show Download List\n showDownloadList: function showDownloadList() {\n this.isDownloadShow = true;\n this.listData = [];\n this.currentUser = {\n token: ""\n };\n },\n // Get download list length\n getDownloadListLen: function getDownloadListLen() {\n var _this5 = this;\n\n this.$api.person.getDownloadList().then(function (res) {\n if (res.data.success == 200) {\n _this5.downloadListLen = res.data.data.filter(function (item) {\n return item.state != 5;\n }).length;\n }\n });\n },\n //Update download list length\n updateListLen: function updateListLen(len) {\n this.downloadListLen = len;\n },\n // Change View\n changeView: function changeView() {\n this.isViewGird = !this.$store.state.isShareViewGird;\n this.$store.commit(\'changeShareViewGird\', this.isViewGird);\n },\n // Handle the multipane resize event\n onPanerResize: function onPanerResize() {\n if (this.isViewGird) this.$refs.views.onResize();\n },\n\n /******************************************\n * PART 3 Modals\n *******************************************/\n // Show Init Modal\n showInitModal: function showInitModal() {\n var _this6 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_InitModal_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n customClass: "init-modal",\n hasModalCard: true,\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n myInfo: this.myInfo\n },\n events: {\n \'close\': function close() {\n _this6.getMyInfo();\n\n _this6.$tours[\'myTour\'].start();\n\n _this6.getMyFriendList(true);\n }\n }\n });\n },\n // Show Edit My Info Modal\n showEditInfoModal: function showEditInfoModal() {\n var _this7 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_ProfileModal_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'close\': function close() {\n _this7.getMyInfo();\n }\n }\n });\n },\n // Show Settings Modal\n showSettingsModal: function showSettingsModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_SettingsModal_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in"\n });\n },\n // Show my ID Modal\n showMyIdModal: function showMyIdModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_MyInfoModal_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {}\n });\n },\n // Show Add Friend Modal\n showAddFriendModal: function showAddFriendModal() {\n var _this8 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_AddFriendModal_vue__WEBPACK_IMPORTED_MODULE_15__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n "reloadFriendList": function reloadFriendList() {\n _this8.getMyFriendList();\n }\n }\n });\n },\n // Show Download Modal\n showDownloadModal: function showDownloadModal(user, item) {\n var _this9 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _components_AcquaintanceShare_modals_DownloadModal_vue__WEBPACK_IMPORTED_MODULE_16__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n user: user,\n item: item\n },\n events: {\n "update": function update() {\n _this9.getDownloadListLen();\n }\n }\n });\n },\n\n /*************************************************\n * PART 4 Drag and Drop\n **************************************************/\n onDrag: function onDrag(e) {\n var _this10 = this;\n\n this.isDragIn = true;\n\n if (this.timeout !== null) {\n clearTimeout(this.timeout);\n }\n\n this.timeout = setTimeout(function () {\n _this10.isDragIn = false;\n _this10.timeout = null;\n }, 100);\n e.stopPropagation();\n e.preventDefault();\n },\n onDrop: function onDrop(e) {\n e.stopPropagation();\n e.preventDefault();\n }\n },\n sockets: {\n person_status: function person_status(data) {\n var isOnline = data.type == "OFFLINE" ? false : true;\n this.myFriendsList.forEach(function (item) {\n if (item.token == data.share_id) {\n item.on_line = isOnline;\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/CasaConnect.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5adb896b-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/AcquaintanceShare/components/ActionButton.vue?vue&type=template&id=6cb3fb0e&':
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5adb896b-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/AcquaintanceShare/components/ActionButton.vue?vue&type=template&id=6cb3fb0e& ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
diff --git a/web/js/9.js b/web/js/9.js
index d60f83c..008b53c 100644
--- a/web/js/9.js
+++ b/web/js/9.js
@@ -2,15 +2,15 @@
/*!*********************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Apps/AppCard.vue?vue&type=script&lang=js& ***!
\*********************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__);\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "app-card",\n inject: ["homeShowFiles", "openAppStore"],\n data: function data() {\n return {\n hover: false,\n dropState: false,\n isUninstalling: false,\n isRestarting: false,\n isStarting: false,\n isStoping: false,\n isSaving: false\n };\n },\n props: {\n item: {\n type: Object\n },\n isCasa: {\n type: Boolean\n }\n },\n computed: {\n tooltipLable: function tooltipLable() {\n if (!this.isCasa) {\n return this.$t(\'Import to CasaOS\');\n } else {\n if (this.item.type === "system" || this.item.port != "" && this.item.state == \'running\') {\n return this.$t(\'Open\');\n } else {\n return this.$t(\'Setting\');\n }\n }\n },\n tooltipTriger: function tooltipTriger() {\n if (!this.isCasa) {\n return [\'hover\'];\n } else {\n if (this.item.type === "system" || this.item.port != "" && this.item.state == \'running\') {\n return [\'hover\'];\n } else {\n return [];\n }\n }\n }\n },\n methods: {\n /**\r\n * @description: Open app in new windows\r\n * @param {String} state App state\r\n * @param {String} port App access port\r\n * @param {String} index App access index\r\n * @return {*} void\r\n */\n openApp: function openApp(item) {\n if (!this.isCasa) {\n this.$emit("importApp", item.id, item.state, false);\n return false;\n }\n\n if (item.type === "system") {\n this.openSystemApps(item);\n } else {\n this.$refs.dro.isActive = false;\n\n if (item.port != "" && item.state == \'running\') {\n var hostIp = item.host || this.$baseIp;\n var protocol = item.protocol || \'http\';\n var url = "".concat(protocol, "://").concat(hostIp, ":").concat(item.port).concat(item.index);\n\n if (item.image.toLowerCase().indexOf("qbittorrent") == -1) {\n window.open(url, \'_blank\');\n } else {\n var arg = "<script>location.replace(\\"" + url + "\\")<\/script>";\n window.open(\'javascript:window.name;\', arg);\n }\n }\n }\n },\n openSystemApps: function openSystemApps(item) {\n switch (item.name) {\n case "App Store":\n this.openAppStore();\n break;\n\n case "Files":\n this.homeShowFiles();\n break;\n\n case "Connect":\n var url = "".concat(window.location.origin, "/ui/#/connect");\n var arg = "<script>location.replace(\\"" + url + "\\")<\/script>";\n window.open(\'javascript:window.name;\', arg);\n break;\n\n default:\n break;\n }\n },\n\n /**\r\n * @description: Set drop-down menu status\r\n * @param {Boolean} e\r\n * @return {*} void\r\n */\n setDropState: function setDropState(e) {\n this.dropState = e;\n },\n\n /**\r\n * @description: Restart Application\r\n * @return {*} void\r\n */\n restartApp: function restartApp() {\n var _this = this;\n\n this.isRestarting = true;\n this.$api.app.startContainer(this.item.id, {\n state: "restart"\n }).then(function (res) {\n if (res.data.success == 200) {\n _this.updateState();\n }\n\n _this.isRestarting = false;\n });\n },\n\n /**\r\n * @description: Confirm before uninstall\r\n * @return {*} void\r\n */\n uninstallConfirm: function uninstallConfirm() {\n var _this2 = this;\n\n this.$refs.dro.isActive = false;\n this.$buefy.dialog.confirm({\n title: this.$t(\'Attention\'),\n message: this.$t(\'Data cannot be recovered after deletion! <br>Continue on to uninstall this application?\'),\n type: \'is-dark\',\n confirmText: this.$t(\'Uninstall\'),\n cancelText: this.$t(\'Cancel\'),\n onConfirm: function onConfirm() {\n _this2.isUninstalling = true;\n\n _this2.uninstallApp();\n }\n });\n },\n\n /**\r\n * @description: Uninstall app\r\n * @return {*} void\r\n */\n uninstallApp: function uninstallApp() {\n var _this3 = this;\n\n this.isUninstalling = true;\n this.$api.app.uninstall(this.item.id).then(function (res) {\n if (res.data.success == 200) {// this.updateState()\n }\n\n _this3.isUninstalling = false;\n });\n },\n\n /**\r\n * @description: Emit the event that the app has been updated\r\n * @return {*} void\r\n */\n updateState: function updateState() {\n this.$refs.dro.isActive = false;\n this.$emit("updateState");\n },\n\n /**\r\n * @description: Emit the event that the app has been updated with custom_id\r\n * @return {*} void\r\n */\n configApp: function configApp() {\n this.$refs.dro.isActive = false;\n this.$emit("configApp", this.item.id, this.item.state, true);\n },\n\n /**\r\n * @description: Start or Stop a App\r\n * @param {Object} item the app info object\r\n * @return {*} void\r\n */\n toggle: function toggle(item) {\n var _this4 = this;\n\n this.isStarting = true;\n var data = {\n state: item.state == "running" ? "stop" : "start"\n };\n this.$api.app.startContainer(item.id, data).then(function (res) {\n _this4.isStarting = false;\n\n if (res.data.success == 200) {\n item.state = res.data.data;\n\n _this4.updateState();\n } else {\n _this4.$refs.dro.isActive = false;\n\n _this4.$buefy.dialog.alert({\n title: \'Error\',\n message: res.data.data,\n type: \'is-danger\',\n ariaRole: \'alertdialog\',\n ariaModal: true\n });\n }\n });\n }\n },\n watch: {\n hover: function hover(val) {\n if (!val && this.dropState) this.$refs.dro.toggle();\n }\n },\n filters: {\n /**\r\n * @description: Format Dot Class\r\n * @param {String} state\r\n * @return {String}\r\n */\n dotClass: function dotClass(state) {\n if (state === "0") {\n return "start";\n } else {\n return state == \'running\' ? \'start\' : \'stop\';\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppCard.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppPanel.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__);\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "app-card",\n inject: ["homeShowFiles", "openAppStore"],\n data: function data() {\n return {\n hover: false,\n dropState: false,\n isUninstalling: false,\n isRestarting: false,\n isStarting: false,\n isStoping: false,\n isSaving: false\n };\n },\n props: {\n item: {\n type: Object\n },\n isCasa: {\n type: Boolean\n }\n },\n computed: {\n tooltipLable: function tooltipLable() {\n if (!this.isCasa) {\n return this.$t(\'Import to CasaOS\');\n } else {\n if (this.item.type === "system" || this.item.port != "" && this.item.state == \'running\') {\n return this.$t(\'Open\');\n } else {\n return this.$t(\'Setting\');\n }\n }\n },\n tooltipTriger: function tooltipTriger() {\n if (!this.isCasa) {\n return [\'hover\'];\n } else {\n if (this.item.type === "system" || this.item.port != "" && this.item.state == \'running\') {\n return [\'hover\'];\n } else {\n return [];\n }\n }\n }\n },\n methods: {\n /**\n * @description: Open app in new windows\n * @param {String} state App state\n * @param {String} port App access port\n * @param {String} index App access index\n * @return {*} void\n */\n openApp: function openApp(item) {\n if (!this.isCasa) {\n this.$emit("importApp", item.id, item.state, false);\n return false;\n }\n\n if (item.type === "system") {\n this.openSystemApps(item);\n } else {\n this.$refs.dro.isActive = false;\n\n if (item.port != "" && item.state == \'running\') {\n var hostIp = item.host || this.$baseIp;\n var protocol = item.protocol || \'http\';\n var url = "".concat(protocol, "://").concat(hostIp, ":").concat(item.port).concat(item.index);\n\n if (item.image.toLowerCase().indexOf("qbittorrent") == -1) {\n window.open(url, \'_blank\');\n } else {\n var arg = "<script>location.replace(\\"" + url + "\\")<\/script>";\n window.open(\'javascript:window.name;\', arg);\n }\n }\n }\n },\n openSystemApps: function openSystemApps(item) {\n switch (item.name) {\n case "App Store":\n this.openAppStore();\n break;\n\n case "Files":\n this.homeShowFiles();\n break;\n\n case "Connect":\n var url = "".concat(window.location.origin, "/ui/#/connect");\n var arg = "<script>location.replace(\\"" + url + "\\")<\/script>";\n window.open(\'javascript:window.name;\', arg);\n break;\n\n default:\n break;\n }\n },\n\n /**\n * @description: Set drop-down menu status\n * @param {Boolean} e\n * @return {*} void\n */\n setDropState: function setDropState(e) {\n this.dropState = e;\n },\n\n /**\n * @description: Restart Application\n * @return {*} void\n */\n restartApp: function restartApp() {\n var _this = this;\n\n this.isRestarting = true;\n this.$api.app.startContainer(this.item.id, {\n state: "restart"\n }).then(function (res) {\n if (res.data.success == 200) {\n _this.updateState();\n }\n\n _this.isRestarting = false;\n });\n },\n\n /**\n * @description: Confirm before uninstall\n * @return {*} void\n */\n uninstallConfirm: function uninstallConfirm() {\n var _this2 = this;\n\n this.$refs.dro.isActive = false;\n this.$buefy.dialog.confirm({\n title: this.$t(\'Attention\'),\n message: this.$t(\'Data cannot be recovered after deletion! <br>Continue on to uninstall this application?\'),\n type: \'is-dark\',\n confirmText: this.$t(\'Uninstall\'),\n cancelText: this.$t(\'Cancel\'),\n onConfirm: function onConfirm() {\n _this2.isUninstalling = true;\n\n _this2.uninstallApp();\n }\n });\n },\n\n /**\n * @description: Uninstall app\n * @return {*} void\n */\n uninstallApp: function uninstallApp() {\n var _this3 = this;\n\n this.isUninstalling = true;\n this.$api.app.uninstall(this.item.id).then(function (res) {\n if (res.data.success == 200) {// this.updateState()\n }\n\n _this3.isUninstalling = false;\n });\n },\n\n /**\n * @description: Emit the event that the app has been updated\n * @return {*} void\n */\n updateState: function updateState() {\n this.$refs.dro.isActive = false;\n this.$emit("updateState");\n },\n\n /**\n * @description: Emit the event that the app has been updated with custom_id\n * @return {*} void\n */\n configApp: function configApp() {\n this.$refs.dro.isActive = false;\n this.$emit("configApp", this.item.id, this.item.state, true);\n },\n\n /**\n * @description: Start or Stop a App\n * @param {Object} item the app info object\n * @return {*} void\n */\n toggle: function toggle(item) {\n var _this4 = this;\n\n this.isStarting = true;\n var data = {\n state: item.state == "running" ? "stop" : "start"\n };\n this.$api.app.startContainer(item.id, data).then(function (res) {\n _this4.isStarting = false;\n\n if (res.data.success == 200) {\n item.state = res.data.data;\n\n _this4.updateState();\n } else {\n _this4.$refs.dro.isActive = false;\n\n _this4.$buefy.dialog.alert({\n title: \'Error\',\n message: res.data.data,\n type: \'is-danger\',\n ariaRole: \'alertdialog\',\n ariaModal: true\n });\n }\n });\n }\n },\n watch: {\n hover: function hover(val) {\n if (!val && this.dropState) this.$refs.dro.toggle();\n }\n },\n filters: {\n /**\n * @description: Format Dot Class\n * @param {String} state\n * @return {String}\n */\n dotClass: function dotClass(state) {\n if (state === "0") {\n return "start";\n } else {\n return state == \'running\' ? \'start\' : \'stop\';\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppCard.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppPanel.vue?vue&type=script&lang=js&":
/*!**********************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Apps/AppPanel.vue?vue&type=script&lang=js& ***!
\**********************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.array.splice.js */ "./node_modules/core-js/modules/es.array.splice.js");\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _forms_InputGroup_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../forms/InputGroup.vue */ "./src/components/forms/InputGroup.vue");\n/* harmony import */ var _forms_EnvInputGroup_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../forms/EnvInputGroup.vue */ "./src/components/forms/EnvInputGroup.vue");\n/* harmony import */ var _forms_CommandsInput_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../forms/CommandsInput.vue */ "./src/components/forms/CommandsInput.vue");\n/* harmony import */ var _forms_Ports_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../forms/Ports.vue */ "./src/components/forms/Ports.vue");\n/* harmony import */ var _AppSideBar_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./AppSideBar.vue */ "./src/components/Apps/AppSideBar.vue");\n/* harmony import */ var _forms_ImportPanel_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../forms/ImportPanel.vue */ "./src/components/forms/ImportPanel.vue");\n/* harmony import */ var _AppTerminalPanel_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./AppTerminalPanel.vue */ "./src/components/Apps/AppTerminalPanel.vue");\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! vue-slider-component */ "./node_modules/vue-slider-component/dist/vue-slider-component.umd.min.js");\n/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component__WEBPACK_IMPORTED_MODULE_25__);\n/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! vue-slider-component/theme/default.css */ "./node_modules/vue-slider-component/theme/default.css");\n/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_29__);\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_30__);\n/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! lodash/uniq */ "./node_modules/lodash/uniq.js");\n/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_31__);\n/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! lodash/isNull */ "./node_modules/lodash/isNull.js");\n/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(lodash_isNull__WEBPACK_IMPORTED_MODULE_32__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_33__);\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34__);\n/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! lodash/last */ "./node_modules/lodash/last.js");\n/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_35__);\n/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! file-saver */ "./node_modules/file-saver/dist/FileSaver.min.js");\n/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_36__);\n/* harmony import */ var vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! vue-awesome-swiper */ "./node_modules/vue-awesome-swiper/dist/vue-awesome-swiper.js");\n/* harmony import */ var vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar _data = ["AUDIT_CONTROL", "AUDIT_READ", "BLOCK_SUSPEND", "BPF", "CHECKPOINT_RESTORE", "DAC_READ_SEARCH", "IPC_LOCK", "IPC_OWNER", "LEASE", "LINUX_IMMUTABLE", "MAC_ADMIN", "MAC_OVERRIDE", "NET_ADMIN", "NET_BROADCAST", "PERFMON", "SYS_ADMIN", "SYS_BOOT", "SYS_MODULE", "SYS_NICE", "SYS_PACCT", "SYS_PTRACE", "SYS_RAWIO", "SYS_RESOURCE", "SYS_TIME", "SYS_TTY_CONFIG", "SYSLOG", "WAKE_ALARM"];\n/* harmony default export */ __webpack_exports__["default"] = ({\n components: {\n Ports: _forms_Ports_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n InputGroup: _forms_InputGroup_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n EnvInputGroup: _forms_EnvInputGroup_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n CommandsInput: _forms_CommandsInput_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_27__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_27__["ValidationProvider"],\n AppSideBar: _AppSideBar_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_24__["default"],\n VueSlider: vue_slider_component__WEBPACK_IMPORTED_MODULE_25___default.a,\n Swiper: vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__["Swiper"],\n SwiperSlide: vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__["SwiperSlide"]\n },\n props: {\n id: String,\n state: String,\n isCasa: {\n type: Boolean,\n default: true\n },\n runningStatus: String,\n configData: Object,\n settingData: {\n type: Object\n }\n },\n data: function data() {\n return {\n timer: 0,\n data: [],\n isLoading: true,\n isFetching: false,\n isFirst: true,\n errorType: 1,\n currentInstallAppName: null,\n currentInstallAppError: false,\n currentInstallAppType: null,\n currentInstallAppText: "",\n appIcon: "",\n sidebarOpen: false,\n cancelButtonText: "Cancel",\n baseUrl: "",\n totalMemory: 0,\n networks: [],\n tempNetworks: [],\n networkModes: [],\n initData: {\n host: "",\n protocol: "http",\n port_map: null,\n cpu_shares: 10,\n memory: 300,\n restart: "always",\n label: "",\n position: true,\n index: "",\n icon: "",\n network_model: "",\n image: "",\n description: "",\n origin: "custom",\n ports: [],\n volumes: [],\n envs: [],\n devices: [],\n cap_add: [],\n cmd: [],\n privileged: false,\n host_name: ""\n },\n portSelected: null,\n capArray: _data,\n pageIndex: 1,\n pageSize: 5,\n listTotal: 0,\n pageList: {},\n communityList: {},\n recommendList: {},\n currentSlide: 0,\n currentInstallId: 0,\n //Image List Swiper\n disPrev: true,\n disNext: false,\n swiperOptions: {\n loop: false,\n autoplay: true,\n spaceBetween: 24,\n breakpoints: {\n 640: {\n slidesPerView: 1\n },\n 768: {\n slidesPerView: 2\n },\n 1366: {\n slidesPerView: 3\n }\n },\n on: {\n slideChangeTransitionStart: this.handleInfoSlide\n }\n },\n // Featured Swiper\n disFeaturedPrev: true,\n disFeaturedNext: false,\n featureSwiperOptions: {\n loop: false,\n autoplay: true,\n spaceBetween: 24,\n breakpoints: {\n 640: {\n slidesPerView: 1\n },\n 768: {\n slidesPerView: 2\n },\n 1366: {\n slidesPerView: 3\n }\n },\n on: {\n slideChangeTransitionStart: this.handleFeaturedSlide\n }\n },\n searchKey: "",\n currentCate: {},\n currentSort: {},\n cateMenu: [],\n sortMenu: [{\n icon: "",\n slash: "rank",\n name: "Popular"\n }, {\n icon: "",\n slash: "new",\n name: "New"\n }, {\n icon: "",\n slash: "name",\n name: "Name"\n }],\n storeQueryData: {\n index: 1,\n category_id: "",\n type: "rank",\n key: this.searchKey\n },\n // App Detail info\n appDetailData: {}\n };\n },\n created: function created() {\n var _this = this;\n\n // Set Front-end base url\n this.baseUrl = "".concat(document.domain); // this.initData.host = `${document.domain}:`\n //Get Max memory info form device\n\n this.totalMemory = Math.floor(this.configData.memory.total / 1048576);\n this.initData.memory = this.totalMemory; //Handling network types\n\n this.tempNetworks = this.configData.networks;\n this.networkModes = lodash_uniq__WEBPACK_IMPORTED_MODULE_31___default()(this.tempNetworks.map(function (item) {\n return item.driver;\n }));\n this.networks = this.networkModes.map(function (item) {\n var tempitem = {};\n tempitem.driver = item;\n tempitem.networks = _this.tempNetworks.filter(function (net) {\n return net.driver == item;\n });\n return tempitem;\n });\n this.networks = lodash_orderBy__WEBPACK_IMPORTED_MODULE_33___default()(this.networks, [\'driver\'], [\'asc\']); //If it is edit, Init data\n\n if (this.settingData != undefined) {\n this.isLoading = false;\n this.initData = this.preProcessData(this.settingData);\n this.currentSlide = 1;\n } else {\n var gg = lodash_find__WEBPACK_IMPORTED_MODULE_30___default()(this.tempNetworks, function (o) {\n return o.driver == "bridge";\n });\n this.initData.network_model = gg.length > 0 ? gg[0].name : "bridge";\n this.getCategoryList();\n }\n },\n computed: {\n showPorts: function showPorts() {\n if (this.initData.network_model.toLowerCase().indexOf("macvlan") > -1 || this.initData.network_model.indexOf("host") > -1) {\n return false;\n } else {\n return true;\n }\n },\n showHostPort: function showHostPort() {\n if (this.initData.network_model.indexOf("host") > -1) {\n return false;\n } else {\n return true;\n }\n },\n bridgePorts: function bridgePorts() {\n return this.initData.ports.filter(function (item) {\n return item.host != "";\n });\n },\n filteredBeidgePort: function filteredBeidgePort() {\n var _this2 = this;\n\n return this.bridgePorts.filter(function (port) {\n return port.host.indexOf(_this2.initData.port_map) >= 0;\n });\n },\n showImportButton: function showImportButton() {\n return this.currentSlide == 1 && this.state == \'install\';\n },\n showExportButton: function showExportButton() {\n return this.currentSlide == 1 && this.state == \'update\';\n },\n showTerminalButton: function showTerminalButton() {\n return this.currentSlide == 1 && this.state == \'update\' && this.runningStatus == \'running\';\n },\n panelTitle: function panelTitle() {\n if (this.currentSlide == 0) {\n return this.$t("App Store");\n } else if (this.currentSlide == 1) {\n if (!this.isCasa) {\n return this.$t("Import") + " " + this.initData.label;\n } else {\n return this.settingData != undefined ? this.initData.label + " " + this.$t("Setting") : this.$t("Install a new App manually");\n }\n } else {\n return this.$t("Installing") + " " + this.initData.image;\n }\n },\n showDetailSwiper: function showDetailSwiper() {\n return !this.appDetailData.screenshot_link ? false : true;\n },\n currentInstallAppTextClass: function currentInstallAppTextClass() {\n return this.currentInstallAppError ? \'has-text-danger\' : \'has-text-black\';\n }\n },\n watch: {\n // Watch if Icon url has changed\n \'initData.icon\': function initDataIcon(val) {\n this.updateIconUrl(val);\n },\n \'initData.label\': function initDataLabel(val) {\n var newLabel = val.replace(/[^a-zA-Z0-9_.-]/g, "");\n this.updateLabel(newLabel);\n },\n // Watch if Section index changes\n currentSlide: function currentSlide(val) {\n if (val == 1) {\n this.isLoading = false;\n }\n },\n // Watch if initData changes\n initData: {\n handler: function handler(val) {\n if (this.state == \'install\') {\n localStorage.setItem("app_data", JSON.stringify(val));\n }\n },\n deep: true\n },\n // Watch if the query data of app store changes\n storeQueryData: {\n handler: function handler() {\n this.getStoreList();\n },\n deep: true\n },\n // Watch if app cates changes\n currentCate: {\n handler: function handler(val) {\n if (!this.isFirst) {\n this.storeQueryData.category_id = val.id;\n }\n },\n deep: true\n },\n // Watch if app sort changes\n currentSort: {\n handler: function handler(val) {\n if (!this.isFirst) {\n this.storeQueryData.type = val.slash;\n }\n },\n deep: true\n }\n },\n methods: {\n /**\r\n * @description: \r\n * @param {*} function\r\n * @return {*}\r\n */\n updateIconUrl: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (string) {\n this.appIcon = string;\n }, 300),\n updateLabel: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (string) {\n this.initData.label = string;\n }, 50),\n\n /**\r\n * @description: \r\n * @param {*} text\r\n * @return {*}\r\n */\n getFilteredTags: function getFilteredTags(text) {\n this.capArray = _data.filter(function (option) {\n return option.toString().indexOf(text.toUpperCase()) >= 0;\n });\n },\n\n /**\r\n * @description: \r\n * @param {*} swiper\r\n * @return {*}\r\n */\n handleInfoSlide: function handleInfoSlide(swiper) {\n this.disPrev = swiper.activeIndex == 0 ? true : false;\n this.disNext = swiper.isEnd;\n },\n\n /**\r\n * @description: \r\n * @param {*} swiper\r\n * @return {*}\r\n */\n handleFeaturedSlide: function handleFeaturedSlide(swiper) {\n this.disFeaturedPrev = swiper.activeIndex == 0 ? true : false;\n this.disFeaturedNext = swiper.isEnd;\n },\n\n /**\r\n * @description: Get category list\r\n * @param {*} \r\n * @return {*} void\r\n */\n getCategoryList: function getCategoryList() {\n var _this3 = this;\n\n this.$api.app.storeCategoryList().then(function (res) {\n _this3.cateMenu = res.data.data.filter(function (item) {\n return item.count > 0;\n });\n _this3.currentCate = _this3.cateMenu[0];\n _this3.currentSort = _this3.sortMenu[0];\n\n if (_this3.isFirst) {\n _this3.isFirst = false;\n }\n });\n },\n\n /**\r\n * @description: Show the details of app\r\n * @param {id} String\r\n * @return {*} void\r\n */\n showAppDetial: function showAppDetial(id) {\n var _this4 = this;\n\n this.isLoading = true;\n this.$api.app.storeAppInfo(id).then(function (resp) {\n _this4.isLoading = false;\n _this4.sidebarOpen = true;\n _this4.appDetailData = resp.data.data;\n });\n },\n\n /**\r\n * @description: Get App store list\r\n * @param {*}\r\n * @return {*} void\r\n */\n getStoreList: function getStoreList() {\n var _this5 = this;\n\n this.isLoading = true;\n this.$api.app.storeList(this.storeQueryData).then(function (res) {\n _this5.isLoading = false;\n\n if (res.data.success == 200) {\n // this.listTotal = res.data.data.count\n _this5.pageList = res.data.data.list;\n _this5.communityList = res.data.data.community;\n _this5.recommendList = res.data.data.recommend;\n }\n });\n },\n\n /**\r\n * @description: Quick Install App from app store\r\n * @param {*}\r\n * @return {*} void\r\n */\n qucikInstall: function qucikInstall(id) {\n var _this6 = this;\n\n this.currentInstallId = id;\n this.$api.app.storeAppInfo(id).then(function (resp) {\n if (resp.data.success == 200) {\n var respData = resp.data.data;\n _this6.initData.protocol = respData.protocol;\n _this6.initData.host = respData.host;\n _this6.initData.port_map = respData.port_map;\n _this6.initData.cpu_shares = 50;\n _this6.initData.memory = respData.max_memory;\n _this6.initData.restart = "always";\n _this6.initData.label = respData.title;\n _this6.initData.position = true;\n _this6.initData.index = respData.index;\n _this6.initData.icon = respData.icon;\n _this6.initData.network_model = respData.network_model;\n _this6.initData.image = respData.image;\n _this6.initData.description = respData.description;\n _this6.initData.origin = respData.origin;\n _this6.initData.ports = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.ports) ? [] : respData.ports;\n _this6.initData.volumes = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.volumes) ? [] : respData.volumes;\n _this6.initData.envs = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.envs) ? [] : respData.envs;\n _this6.initData.devices = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.devices) ? [] : respData.devices;\n _this6.initData.cap_add = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.cap_add) ? [] : respData.cap_add;\n _this6.initData.cmd = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.cmd) ? [] : respData.cmd;\n _this6.initData.privileged = respData.privileged;\n _this6.initData.host_name = respData.host_name;\n _this6.currentInstallId = 0;\n\n if (respData.tip !== "null" && respData.tip !== "[]" && respData.tip !== "") {\n _this6.$buefy.dialog.confirm({\n title: _this6.$t(\'Attention\'),\n message: _this6.formatTips(respData.tip),\n type: \'is-dark\',\n onConfirm: function onConfirm() {\n _this6.sidebarOpen = false;\n\n _this6.installAppData();\n }\n });\n } else {\n _this6.sidebarOpen = false;\n\n _this6.installAppData();\n }\n }\n });\n },\n\n /**\r\n * @description: Format AppStore tip datas\r\n * @param {data}\r\n * @return {html} Str \r\n */\n formatTips: function formatTips(data) {\n var html = "";\n\n if (!lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data) && data != "") {\n JSON.parse(data).forEach(function (item) {\n html += "<span class=\' is-size-14px un-break-word\'>" + item.content + "</span>";\n\n if (item.value != \'\') {\n html += "<span class=\'tag is-primary ml-1\'>" + item.value + "</span>";\n }\n\n html += "<br/>";\n });\n }\n\n return html;\n },\n\n /**\r\n * @description: Pre-processed data before setting\r\n * @param {ConfigObject} data\r\n * @return {ConfigObject} data\r\n */\n preProcessData: function preProcessData(data) {\n data.ports = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.ports) ? [] : data.ports;\n data.volumes = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.volumes) ? [] : data.volumes;\n data.envs = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.envs) ? [] : data.envs;\n data.devices = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.devices) ? [] : data.devices;\n data.cap_add = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.cap_add) ? [] : data.cap_add;\n data.cmd = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.cmd) ? [] : data.cmd;\n data.port_map = data.port_map === "" ? null : data.port_map;\n data.cpu_shares = data.cpu_shares === 0 || data.cpu_shares > 99 ? 90 : data.cpu_shares;\n data.memory = data.memory === 0 ? this.totalMemory : data.memory;\n data.restart = data.restart === "no" ? "unless-stopped" : data.restart;\n data.network_model = data.network_model === "default" ? "bridge" : data.network_model;\n data.icon = data.icon === "" ? this.getIconFromImage(data.image) : data.icon;\n return data;\n },\n\n /**\r\n * @description: Process the datas before submit\r\n * @param {*}\r\n * @return {*} void\r\n */\n processData: function processData() {\n this.initData.cpu_shares = Number(this.initData.cpu_shares);\n var model = this.initData.network_model.split("-");\n this.initData.network_model = model[0];\n },\n\n /**\r\n * @description: Back to prev Step\r\n * @param {*}\r\n * @return {*} void\r\n */\n prevStep: function prevStep() {\n this.currentSlide--;\n },\n\n /**\r\n * @description: Validate form async\r\n * @param {Object} ref ref of component\r\n * @return {Boolean} \r\n */\n checkStep: function checkStep(ref) {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Submit datas after valid\r\n * @param {*}\r\n * @return {*} void\r\n */\n installApp: function installApp() {\n var _this7 = this;\n\n this.checkStep(this.$refs.ob1).then(function (val) {\n if (val) {\n _this7.installAppData(_this7.id);\n }\n });\n },\n installAppData: function installAppData() {\n var _this8 = this;\n\n this.processData();\n this.isLoading = true; // console.log(this.initData);\n\n this.$api.app.install(this.initData).then(function (res) {\n _this8.isLoading = false;\n\n if (res.data.success == 200) {\n _this8.currentInstallAppName = res.data.data;\n _this8.currentSlide = 2;\n _this8.currentInstallAppText = "Start Installation...";\n _this8.cancelButtonText = \'Continue in background\';\n } else {\n _this8.$buefy.toast.open({\n message: res.data.message,\n type: \'is-warning\'\n });\n }\n });\n },\n\n /**\r\n * @description: Save edit update\r\n * @return {*} void\r\n */\n updateApp: function updateApp() {\n var _this9 = this;\n\n this.processData();\n this.isLoading = true;\n var updateData = this.uuid2var(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default()(this.initData));\n this.$api.app.updateContainerSetting(this.id, updateData).then(function (res) {\n if (res.data.success == 200) {\n _this9.isLoading = false;\n\n _this9.$emit(\'updateState\');\n } else {\n _this9.$buefy.toast.open({\n message: res.data.message,\n type: \'is-warning\'\n });\n }\n\n _this9.$emit(\'close\');\n });\n },\n\n /**\r\n * @description: Show import panel\r\n * @return {*} void\r\n */\n showImportPanel: function showImportPanel() {\n var _this10 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _forms_ImportPanel_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'update\': function update(e) {\n //localStorage.removeItem("app_data")\n _this10.initData = e;\n\n if (_this10.initData.icon == "") {\n _this10.changeIcon(_this10.initData.image);\n }\n\n _this10.$buefy.dialog.alert({\n title: \'⚠️ \' + _this10.$t(\'Attention\'),\n message: \'<div class="nobrk"><h4 class="title is-5">\' + _this10.$t(\'AutoFill only helps you to complete most of the configuration.\') + \'</h4>\' + \'<p class="mb-3">\' + _this10.$t(\'Some configuration information such as:\') + \'</p>\' + \'<ul>\' + \'<li>1. \' + _this10.$t(\'the port and path of the Web UI\') + \'</li>\' + \'<li>2. \' + _this10.$t(\'the mount location of the volume or file\') + \'</li>\' + \'<li>3. \' + _this10.$t(\'the port mapping of the Host\') + \'</li>\' + \'<li>4. \' + _this10.$t(\'optional configuration items\') + \'</li>\' + \'</ul>\' + \'<p class="mt-3">\' + _this10.$t(\'These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>\') + \'</p>\' + \'<p class="mt-3">\' + _this10.$t(\'Feel free to suggest improvements to this feature in Discord Server!\') + \'</p></div>\',\n type: \'is-dark\'\n });\n }\n },\n props: {\n initData: this.initData,\n netWorks: this.networks,\n oriNetWorks: this.tempNetworks,\n deviceMemory: this.totalMemory\n }\n });\n },\n\n /**\r\n * @description: Get remote synchronization information\r\n * @param {*} function\r\n * @return {*} void\r\n */\n getAsyncData: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (name) {\n var _this11 = this;\n\n if (!name.length) {\n this.data = [];\n return;\n }\n\n this.isFetching = true;\n axios__WEBPACK_IMPORTED_MODULE_16___default.a.get("https://hub.docker.com/api/content/v1/products/search?source=community&q=".concat(name, "&page=1&page_size=4")).then(function (_ref) {\n var data = _ref.data;\n _this11.data = [];\n data.summaries.forEach(function (item) {\n return _this11.data.push(item.name);\n });\n }).catch(function (error) {\n _this11.data = [];\n throw error;\n }).finally(function () {\n _this11.isFetching = false;\n });\n }, 500),\n\n /**\r\n * @description: Export AppData to json file\r\n * @param {*} function\r\n * @return {*} void\r\n */\n exportJSON: function exportJSON() {\n var exportData = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default()(this.initData);\n exportData.network_model = this.getNetworkName(this.initData.network_model);\n exportData.version = "1.0";\n exportData = this.uuid2var(exportData);\n delete exportData.memory;\n var data = JSON.stringify(exportData);\n var blob = new Blob([data], {\n type: \'\'\n });\n file_saver__WEBPACK_IMPORTED_MODULE_36___default.a.saveAs(blob, "".concat(exportData.label, ".json"));\n },\n\n /**\r\n * @description: change uuid to var\r\n * @param {*} function\r\n * @return {data} Object\r\n */\n uuid2var: function uuid2var(data) {\n var _this12 = this;\n\n data.volumes.forEach(function (item) {\n item.host = item.host.replace(_this12.id, \'$AppID\');\n });\n data.devices.forEach(function (item) {\n item.host = item.host.replace(_this12.id, \'$AppID\');\n });\n return data;\n },\n\n /**\r\n * @description: Get Network name from network list\r\n * @param {*} \r\n * @return {*} String\r\n */\n getNetworkName: function getNetworkName(netId) {\n if (netId == "") {\n return "bridge";\n } else {\n var network = this.tempNetworks.filter(function (net) {\n return net.name == netId;\n });\n return network[0].name;\n }\n },\n\n /**\r\n * @description: Get App icon form image\r\n * @param {*} image\r\n * @return {*}\r\n */\n getIconFromImage: function getIconFromImage(image) {\n if (image == "") {\n return "";\n } else {\n var appIcon = image.split(":")[0].split("/").pop();\n return "https://icon.casaos.io/main/all/".concat(appIcon, ".png");\n }\n },\n\n /**\r\n * @description: Change App icon when image changed\r\n * @param {String} image\r\n * @return {*} void\r\n */\n changeIcon: function changeIcon(image) {\n this.initData.icon = this.getIconFromImage(image);\n },\n\n /**\r\n * @description: Show Terminal & Logs panel\r\n * @return {*} void\r\n */\n showTerminalPanel: function showTerminalPanel() {\n this.$buefy.modal.open({\n parent: this,\n component: _AppTerminalPanel_vue__WEBPACK_IMPORTED_MODULE_23__["default"],\n hasModalCard: true,\n customClass: \'terminal-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n appid: this.id,\n appName: this.initData.label\n }\n });\n }\n },\n destroyed: function destroyed() {\n clearInterval(this.timer);\n },\n sockets: {\n app_install: function app_install(res) {\n var _this13 = this;\n\n var resData = res.body.data;\n\n if (this.currentInstallAppName != resData.name) {\n return false;\n }\n\n if (!resData.finished) {\n this.currentInstallAppError = !resData.success;\n\n if (resData.success) {\n this.currentInstallAppType = resData.type;\n\n if (resData.message !== "") {\n var messageArray = resData.message.split(/[(\\r\\n)\\r\\n]+/);\n messageArray.forEach(function (item, index) {\n if (!item) {\n messageArray.splice(index, 1);\n }\n });\n var lastMessage = lodash_last__WEBPACK_IMPORTED_MODULE_35___default()(messageArray);\n var info = JSON.parse(lastMessage);\n var id = info.id != undefined ? info.id : "";\n var progress = "";\n\n if (info.progressDetail != undefined) {\n var progressDetail = info.progressDetail;\n\n if (!isNaN(progressDetail.current / progressDetail.total)) {\n progress = "[ ".concat(String(Math.floor(progressDetail.current / progressDetail.total * 100)), "% ]");\n }\n }\n\n var status = info.status;\n this.currentInstallAppText = status + ":" + id + " " + progress;\n }\n } else {\n this.currentInstallAppText = resData.message;\n }\n } else {\n localStorage.removeItem("app_data");\n setTimeout(function () {\n _this13.$emit(\'updateState\');\n\n _this13.$emit(\'close\');\n }, 500);\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppSection.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.array.splice.js */ "./node_modules/core-js/modules/es.array.splice.js");\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _forms_InputGroup_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../forms/InputGroup.vue */ "./src/components/forms/InputGroup.vue");\n/* harmony import */ var _forms_EnvInputGroup_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../forms/EnvInputGroup.vue */ "./src/components/forms/EnvInputGroup.vue");\n/* harmony import */ var _forms_CommandsInput_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../forms/CommandsInput.vue */ "./src/components/forms/CommandsInput.vue");\n/* harmony import */ var _forms_Ports_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../forms/Ports.vue */ "./src/components/forms/Ports.vue");\n/* harmony import */ var _AppSideBar_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./AppSideBar.vue */ "./src/components/Apps/AppSideBar.vue");\n/* harmony import */ var _forms_ImportPanel_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../forms/ImportPanel.vue */ "./src/components/forms/ImportPanel.vue");\n/* harmony import */ var _AppTerminalPanel_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./AppTerminalPanel.vue */ "./src/components/Apps/AppTerminalPanel.vue");\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! vue-slider-component */ "./node_modules/vue-slider-component/dist/vue-slider-component.umd.min.js");\n/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component__WEBPACK_IMPORTED_MODULE_25__);\n/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! vue-slider-component/theme/default.css */ "./node_modules/vue-slider-component/theme/default.css");\n/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_29__);\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_30__);\n/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! lodash/uniq */ "./node_modules/lodash/uniq.js");\n/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_31__);\n/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! lodash/isNull */ "./node_modules/lodash/isNull.js");\n/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(lodash_isNull__WEBPACK_IMPORTED_MODULE_32__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_33__);\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34__);\n/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! lodash/last */ "./node_modules/lodash/last.js");\n/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_35__);\n/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! file-saver */ "./node_modules/file-saver/dist/FileSaver.min.js");\n/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_36__);\n/* harmony import */ var vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! vue-awesome-swiper */ "./node_modules/vue-awesome-swiper/dist/vue-awesome-swiper.js");\n/* harmony import */ var vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar _data = ["AUDIT_CONTROL", "AUDIT_READ", "BLOCK_SUSPEND", "BPF", "CHECKPOINT_RESTORE", "DAC_READ_SEARCH", "IPC_LOCK", "IPC_OWNER", "LEASE", "LINUX_IMMUTABLE", "MAC_ADMIN", "MAC_OVERRIDE", "NET_ADMIN", "NET_BROADCAST", "PERFMON", "SYS_ADMIN", "SYS_BOOT", "SYS_MODULE", "SYS_NICE", "SYS_PACCT", "SYS_PTRACE", "SYS_RAWIO", "SYS_RESOURCE", "SYS_TIME", "SYS_TTY_CONFIG", "SYSLOG", "WAKE_ALARM"];\n/* harmony default export */ __webpack_exports__["default"] = ({\n components: {\n Ports: _forms_Ports_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n InputGroup: _forms_InputGroup_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n EnvInputGroup: _forms_EnvInputGroup_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n CommandsInput: _forms_CommandsInput_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_27__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_27__["ValidationProvider"],\n AppSideBar: _AppSideBar_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_24__["default"],\n VueSlider: vue_slider_component__WEBPACK_IMPORTED_MODULE_25___default.a,\n Swiper: vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__["Swiper"],\n SwiperSlide: vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__["SwiperSlide"]\n },\n props: {\n id: String,\n state: String,\n isCasa: {\n type: Boolean,\n default: true\n },\n runningStatus: String,\n configData: Object,\n settingData: {\n type: Object\n }\n },\n data: function data() {\n return {\n timer: 0,\n data: [],\n isLoading: true,\n isFetching: false,\n isFirst: true,\n errorType: 1,\n currentInstallAppName: null,\n currentInstallAppError: false,\n currentInstallAppType: null,\n currentInstallAppText: "",\n appIcon: "",\n sidebarOpen: false,\n cancelButtonText: "Cancel",\n baseUrl: "",\n totalMemory: 0,\n networks: [],\n tempNetworks: [],\n networkModes: [],\n initData: {\n host: "",\n protocol: "http",\n port_map: null,\n cpu_shares: 10,\n memory: 300,\n restart: "always",\n label: "",\n position: true,\n index: "",\n icon: "",\n network_model: "",\n image: "",\n description: "",\n origin: "custom",\n ports: [],\n volumes: [],\n envs: [],\n devices: [],\n cap_add: [],\n cmd: [],\n privileged: false,\n host_name: ""\n },\n portSelected: null,\n capArray: _data,\n pageIndex: 1,\n pageSize: 5,\n listTotal: 0,\n pageList: {},\n communityList: {},\n recommendList: {},\n currentSlide: 0,\n currentInstallId: 0,\n //Image List Swiper\n disPrev: true,\n disNext: false,\n swiperOptions: {\n loop: false,\n autoplay: true,\n spaceBetween: 24,\n breakpoints: {\n 640: {\n slidesPerView: 1\n },\n 768: {\n slidesPerView: 2\n },\n 1366: {\n slidesPerView: 3\n }\n },\n on: {\n slideChangeTransitionStart: this.handleInfoSlide\n }\n },\n // Featured Swiper\n disFeaturedPrev: true,\n disFeaturedNext: false,\n featureSwiperOptions: {\n loop: false,\n autoplay: true,\n spaceBetween: 24,\n breakpoints: {\n 640: {\n slidesPerView: 1\n },\n 768: {\n slidesPerView: 2\n },\n 1366: {\n slidesPerView: 3\n }\n },\n on: {\n slideChangeTransitionStart: this.handleFeaturedSlide\n }\n },\n searchKey: "",\n currentCate: {},\n currentSort: {},\n cateMenu: [],\n sortMenu: [{\n icon: "",\n slash: "rank",\n name: "Popular"\n }, {\n icon: "",\n slash: "new",\n name: "New"\n }, {\n icon: "",\n slash: "name",\n name: "Name"\n }],\n storeQueryData: {\n index: 1,\n category_id: "",\n type: "rank",\n key: this.searchKey\n },\n // App Detail info\n appDetailData: {}\n };\n },\n created: function created() {\n var _this = this;\n\n // Set Front-end base url\n this.baseUrl = "".concat(document.domain); // this.initData.host = `${document.domain}:`\n //Get Max memory info form device\n\n this.totalMemory = Math.floor(this.configData.memory.total / 1048576);\n this.initData.memory = this.totalMemory; //Handling network types\n\n this.tempNetworks = this.configData.networks;\n this.networkModes = lodash_uniq__WEBPACK_IMPORTED_MODULE_31___default()(this.tempNetworks.map(function (item) {\n return item.driver;\n }));\n this.networks = this.networkModes.map(function (item) {\n var tempitem = {};\n tempitem.driver = item;\n tempitem.networks = _this.tempNetworks.filter(function (net) {\n return net.driver == item;\n });\n return tempitem;\n });\n this.networks = lodash_orderBy__WEBPACK_IMPORTED_MODULE_33___default()(this.networks, [\'driver\'], [\'asc\']); //If it is edit, Init data\n\n if (this.settingData != undefined) {\n this.isLoading = false;\n this.initData = this.preProcessData(this.settingData);\n this.currentSlide = 1;\n } else {\n var gg = lodash_find__WEBPACK_IMPORTED_MODULE_30___default()(this.tempNetworks, function (o) {\n return o.driver == "bridge";\n });\n this.initData.network_model = gg.length > 0 ? gg[0].name : "bridge";\n this.getCategoryList();\n }\n },\n computed: {\n showPorts: function showPorts() {\n if (this.initData.network_model.toLowerCase().indexOf("macvlan") > -1 || this.initData.network_model.indexOf("host") > -1) {\n return false;\n } else {\n return true;\n }\n },\n showHostPort: function showHostPort() {\n if (this.initData.network_model.indexOf("host") > -1) {\n return false;\n } else {\n return true;\n }\n },\n bridgePorts: function bridgePorts() {\n return this.initData.ports.filter(function (item) {\n return item.host != "";\n });\n },\n filteredBeidgePort: function filteredBeidgePort() {\n var _this2 = this;\n\n return this.bridgePorts.filter(function (port) {\n return port.host.indexOf(_this2.initData.port_map) >= 0;\n });\n },\n showImportButton: function showImportButton() {\n return this.currentSlide == 1 && this.state == \'install\';\n },\n showExportButton: function showExportButton() {\n return this.currentSlide == 1 && this.state == \'update\';\n },\n showTerminalButton: function showTerminalButton() {\n return this.currentSlide == 1 && this.state == \'update\' && this.runningStatus == \'running\';\n },\n panelTitle: function panelTitle() {\n if (this.currentSlide == 0) {\n return this.$t("App Store");\n } else if (this.currentSlide == 1) {\n if (!this.isCasa) {\n return this.$t("Import") + " " + this.initData.label;\n } else {\n return this.settingData != undefined ? this.initData.label + " " + this.$t("Setting") : this.$t("Install a new App manually");\n }\n } else {\n return this.$t("Installing") + " " + this.initData.image;\n }\n },\n showDetailSwiper: function showDetailSwiper() {\n return !this.appDetailData.screenshot_link ? false : true;\n },\n currentInstallAppTextClass: function currentInstallAppTextClass() {\n return this.currentInstallAppError ? \'has-text-danger\' : \'has-text-black\';\n }\n },\n watch: {\n // Watch if Icon url has changed\n \'initData.icon\': function initDataIcon(val) {\n this.updateIconUrl(val);\n },\n \'initData.label\': function initDataLabel(val) {\n var newLabel = val.replace(/[^a-zA-Z0-9_.-]/g, "");\n this.updateLabel(newLabel);\n },\n // Watch if Section index changes\n currentSlide: function currentSlide(val) {\n if (val == 1) {\n this.isLoading = false;\n }\n },\n // Watch if initData changes\n initData: {\n handler: function handler(val) {\n if (this.state == \'install\') {\n localStorage.setItem("app_data", JSON.stringify(val));\n }\n },\n deep: true\n },\n // Watch if the query data of app store changes\n storeQueryData: {\n handler: function handler() {\n this.getStoreList();\n },\n deep: true\n },\n // Watch if app cates changes\n currentCate: {\n handler: function handler(val) {\n if (!this.isFirst) {\n this.storeQueryData.category_id = val.id;\n }\n },\n deep: true\n },\n // Watch if app sort changes\n currentSort: {\n handler: function handler(val) {\n if (!this.isFirst) {\n this.storeQueryData.type = val.slash;\n }\n },\n deep: true\n }\n },\n methods: {\n /**\n * @description: \n * @param {*} function\n * @return {*}\n */\n updateIconUrl: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (string) {\n this.appIcon = string;\n }, 300),\n updateLabel: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (string) {\n this.initData.label = string;\n }, 50),\n\n /**\n * @description: \n * @param {*} text\n * @return {*}\n */\n getFilteredTags: function getFilteredTags(text) {\n this.capArray = _data.filter(function (option) {\n return option.toString().indexOf(text.toUpperCase()) >= 0;\n });\n },\n\n /**\n * @description: \n * @param {*} swiper\n * @return {*}\n */\n handleInfoSlide: function handleInfoSlide(swiper) {\n this.disPrev = swiper.activeIndex == 0 ? true : false;\n this.disNext = swiper.isEnd;\n },\n\n /**\n * @description: \n * @param {*} swiper\n * @return {*}\n */\n handleFeaturedSlide: function handleFeaturedSlide(swiper) {\n this.disFeaturedPrev = swiper.activeIndex == 0 ? true : false;\n this.disFeaturedNext = swiper.isEnd;\n },\n\n /**\n * @description: Get category list\n * @param {*} \n * @return {*} void\n */\n getCategoryList: function getCategoryList() {\n var _this3 = this;\n\n this.$api.app.storeCategoryList().then(function (res) {\n _this3.cateMenu = res.data.data.filter(function (item) {\n return item.count > 0;\n });\n _this3.currentCate = _this3.cateMenu[0];\n _this3.currentSort = _this3.sortMenu[0];\n\n if (_this3.isFirst) {\n _this3.isFirst = false;\n }\n });\n },\n\n /**\n * @description: Show the details of app\n * @param {id} String\n * @return {*} void\n */\n showAppDetial: function showAppDetial(id) {\n var _this4 = this;\n\n this.isLoading = true;\n this.$api.app.storeAppInfo(id).then(function (resp) {\n _this4.isLoading = false;\n _this4.sidebarOpen = true;\n _this4.appDetailData = resp.data.data;\n });\n },\n\n /**\n * @description: Get App store list\n * @param {*}\n * @return {*} void\n */\n getStoreList: function getStoreList() {\n var _this5 = this;\n\n this.isLoading = true;\n this.$api.app.storeList(this.storeQueryData).then(function (res) {\n _this5.isLoading = false;\n\n if (res.data.success == 200) {\n // this.listTotal = res.data.data.count\n _this5.pageList = res.data.data.list;\n _this5.communityList = res.data.data.community;\n _this5.recommendList = res.data.data.recommend;\n }\n });\n },\n\n /**\n * @description: Quick Install App from app store\n * @param {*}\n * @return {*} void\n */\n qucikInstall: function qucikInstall(id) {\n var _this6 = this;\n\n this.currentInstallId = id;\n this.$api.app.storeAppInfo(id).then(function (resp) {\n if (resp.data.success == 200) {\n var respData = resp.data.data;\n _this6.initData.protocol = respData.protocol;\n _this6.initData.host = respData.host;\n _this6.initData.port_map = respData.port_map;\n _this6.initData.cpu_shares = 50;\n _this6.initData.memory = respData.max_memory;\n _this6.initData.restart = "always";\n _this6.initData.label = respData.title;\n _this6.initData.position = true;\n _this6.initData.index = respData.index;\n _this6.initData.icon = respData.icon;\n _this6.initData.network_model = respData.network_model;\n _this6.initData.image = respData.image;\n _this6.initData.description = respData.description;\n _this6.initData.origin = respData.origin;\n _this6.initData.ports = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.ports) ? [] : respData.ports;\n _this6.initData.volumes = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.volumes) ? [] : respData.volumes;\n _this6.initData.envs = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.envs) ? [] : respData.envs;\n _this6.initData.devices = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.devices) ? [] : respData.devices;\n _this6.initData.cap_add = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.cap_add) ? [] : respData.cap_add;\n _this6.initData.cmd = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.cmd) ? [] : respData.cmd;\n _this6.initData.privileged = respData.privileged;\n _this6.initData.host_name = respData.host_name;\n _this6.currentInstallId = 0;\n\n if (respData.tip !== "null" && respData.tip !== "[]" && respData.tip !== "") {\n _this6.$buefy.dialog.confirm({\n title: _this6.$t(\'Attention\'),\n message: _this6.formatTips(respData.tip),\n type: \'is-dark\',\n onConfirm: function onConfirm() {\n _this6.sidebarOpen = false;\n\n _this6.installAppData();\n }\n });\n } else {\n _this6.sidebarOpen = false;\n\n _this6.installAppData();\n }\n }\n });\n },\n\n /**\n * @description: Format AppStore tip datas\n * @param {data}\n * @return {html} Str \n */\n formatTips: function formatTips(data) {\n var html = "";\n\n if (!lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data) && data != "") {\n JSON.parse(data).forEach(function (item) {\n html += "<span class=\' is-size-14px un-break-word\'>" + item.content + "</span>";\n\n if (item.value != \'\') {\n html += "<span class=\'tag is-primary ml-1\'>" + item.value + "</span>";\n }\n\n html += "<br/>";\n });\n }\n\n return html;\n },\n\n /**\n * @description: Pre-processed data before setting\n * @param {ConfigObject} data\n * @return {ConfigObject} data\n */\n preProcessData: function preProcessData(data) {\n data.ports = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.ports) ? [] : data.ports;\n data.volumes = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.volumes) ? [] : data.volumes;\n data.envs = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.envs) ? [] : data.envs;\n data.devices = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.devices) ? [] : data.devices;\n data.cap_add = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.cap_add) ? [] : data.cap_add;\n data.cmd = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.cmd) ? [] : data.cmd;\n data.port_map = data.port_map === "" ? null : data.port_map;\n data.cpu_shares = data.cpu_shares === 0 || data.cpu_shares > 99 ? 90 : data.cpu_shares;\n data.memory = data.memory === 0 ? this.totalMemory : data.memory;\n data.restart = data.restart === "no" ? "unless-stopped" : data.restart;\n data.network_model = data.network_model === "default" ? "bridge" : data.network_model;\n data.icon = data.icon === "" ? this.getIconFromImage(data.image) : data.icon;\n return data;\n },\n\n /**\n * @description: Process the datas before submit\n * @param {*}\n * @return {*} void\n */\n processData: function processData() {\n this.initData.cpu_shares = Number(this.initData.cpu_shares);\n var model = this.initData.network_model.split("-");\n this.initData.network_model = model[0];\n },\n\n /**\n * @description: Back to prev Step\n * @param {*}\n * @return {*} void\n */\n prevStep: function prevStep() {\n this.currentSlide--;\n },\n\n /**\n * @description: Validate form async\n * @param {Object} ref ref of component\n * @return {Boolean} \n */\n checkStep: function checkStep(ref) {\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\n * @description: Submit datas after valid\n * @param {*}\n * @return {*} void\n */\n installApp: function installApp() {\n var _this7 = this;\n\n this.checkStep(this.$refs.ob1).then(function (val) {\n if (val) {\n _this7.installAppData(_this7.id);\n }\n });\n },\n installAppData: function installAppData() {\n var _this8 = this;\n\n this.processData();\n this.isLoading = true; // console.log(this.initData);\n\n this.$api.app.install(this.initData).then(function (res) {\n _this8.isLoading = false;\n\n if (res.data.success == 200) {\n _this8.currentInstallAppName = res.data.data;\n _this8.currentSlide = 2;\n _this8.currentInstallAppText = "Start Installation...";\n _this8.cancelButtonText = \'Continue in background\';\n } else {\n _this8.$buefy.toast.open({\n message: res.data.message,\n type: \'is-warning\'\n });\n }\n });\n },\n\n /**\n * @description: Save edit update\n * @return {*} void\n */\n updateApp: function updateApp() {\n var _this9 = this;\n\n this.processData();\n this.isLoading = true;\n var updateData = this.uuid2var(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default()(this.initData));\n this.$api.app.updateContainerSetting(this.id, updateData).then(function (res) {\n if (res.data.success == 200) {\n _this9.isLoading = false;\n\n _this9.$emit(\'updateState\');\n } else {\n _this9.$buefy.toast.open({\n message: res.data.message,\n type: \'is-warning\'\n });\n }\n\n _this9.$emit(\'close\');\n });\n },\n\n /**\n * @description: Show import panel\n * @return {*} void\n */\n showImportPanel: function showImportPanel() {\n var _this10 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _forms_ImportPanel_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'update\': function update(e) {\n //localStorage.removeItem("app_data")\n _this10.initData = e;\n\n if (_this10.initData.icon == "") {\n _this10.changeIcon(_this10.initData.image);\n }\n\n _this10.$buefy.dialog.alert({\n title: \'⚠️ \' + _this10.$t(\'Attention\'),\n message: \'<div class="nobrk"><h4 class="title is-5">\' + _this10.$t(\'AutoFill only helps you to complete most of the configuration.\') + \'</h4>\' + \'<p class="mb-3">\' + _this10.$t(\'Some configuration information such as:\') + \'</p>\' + \'<ul>\' + \'<li>1. \' + _this10.$t(\'the port and path of the Web UI\') + \'</li>\' + \'<li>2. \' + _this10.$t(\'the mount location of the volume or file\') + \'</li>\' + \'<li>3. \' + _this10.$t(\'the port mapping of the Host\') + \'</li>\' + \'<li>4. \' + _this10.$t(\'optional configuration items\') + \'</li>\' + \'</ul>\' + \'<p class="mt-3">\' + _this10.$t(\'These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>\') + \'</p>\' + \'<p class="mt-3">\' + _this10.$t(\'Feel free to suggest improvements to this feature in Discord Server!\') + \'</p></div>\',\n type: \'is-dark\'\n });\n }\n },\n props: {\n initData: this.initData,\n netWorks: this.networks,\n oriNetWorks: this.tempNetworks,\n deviceMemory: this.totalMemory\n }\n });\n },\n\n /**\n * @description: Get remote synchronization information\n * @param {*} function\n * @return {*} void\n */\n getAsyncData: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (name) {\n var _this11 = this;\n\n if (!name.length) {\n this.data = [];\n return;\n }\n\n this.isFetching = true;\n axios__WEBPACK_IMPORTED_MODULE_16___default.a.get("https://hub.docker.com/api/content/v1/products/search?source=community&q=".concat(name, "&page=1&page_size=4")).then(function (_ref) {\n var data = _ref.data;\n _this11.data = [];\n data.summaries.forEach(function (item) {\n return _this11.data.push(item.name);\n });\n }).catch(function (error) {\n _this11.data = [];\n throw error;\n }).finally(function () {\n _this11.isFetching = false;\n });\n }, 500),\n\n /**\n * @description: Export AppData to json file\n * @param {*} function\n * @return {*} void\n */\n exportJSON: function exportJSON() {\n var exportData = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default()(this.initData);\n exportData.network_model = this.getNetworkName(this.initData.network_model);\n exportData.version = "1.0";\n exportData = this.uuid2var(exportData);\n delete exportData.memory;\n var data = JSON.stringify(exportData);\n var blob = new Blob([data], {\n type: \'\'\n });\n file_saver__WEBPACK_IMPORTED_MODULE_36___default.a.saveAs(blob, "".concat(exportData.label, ".json"));\n },\n\n /**\n * @description: change uuid to var\n * @param {*} function\n * @return {data} Object\n */\n uuid2var: function uuid2var(data) {\n var _this12 = this;\n\n data.volumes.forEach(function (item) {\n item.host = item.host.replace(_this12.id, \'$AppID\');\n });\n data.devices.forEach(function (item) {\n item.host = item.host.replace(_this12.id, \'$AppID\');\n });\n return data;\n },\n\n /**\n * @description: Get Network name from network list\n * @param {*} \n * @return {*} String\n */\n getNetworkName: function getNetworkName(netId) {\n if (netId == "") {\n return "bridge";\n } else {\n var network = this.tempNetworks.filter(function (net) {\n return net.name == netId;\n });\n return network[0].name;\n }\n },\n\n /**\n * @description: Get App icon form image\n * @param {*} image\n * @return {*}\n */\n getIconFromImage: function getIconFromImage(image) {\n if (image == "") {\n return "";\n } else {\n var appIcon = image.split(":")[0].split("/").pop();\n return "https://icon.casaos.io/main/all/".concat(appIcon, ".png");\n }\n },\n\n /**\n * @description: Change App icon when image changed\n * @param {String} image\n * @return {*} void\n */\n changeIcon: function changeIcon(image) {\n this.initData.icon = this.getIconFromImage(image);\n },\n\n /**\n * @description: Show Terminal & Logs panel\n * @return {*} void\n */\n showTerminalPanel: function showTerminalPanel() {\n this.$buefy.modal.open({\n parent: this,\n component: _AppTerminalPanel_vue__WEBPACK_IMPORTED_MODULE_23__["default"],\n hasModalCard: true,\n customClass: \'terminal-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n appid: this.id,\n appName: this.initData.label\n }\n });\n }\n },\n destroyed: function destroyed() {\n clearInterval(this.timer);\n },\n sockets: {\n app_install: function app_install(res) {\n var _this13 = this;\n\n var resData = res.body.data;\n\n if (this.currentInstallAppName != resData.name) {\n return false;\n }\n\n if (!resData.finished) {\n this.currentInstallAppError = !resData.success;\n\n if (resData.success) {\n this.currentInstallAppType = resData.type;\n\n if (resData.message !== "") {\n var messageArray = resData.message.split(/[(\\r\\n)\\r\\n]+/);\n messageArray.forEach(function (item, index) {\n if (!item) {\n messageArray.splice(index, 1);\n }\n });\n var lastMessage = lodash_last__WEBPACK_IMPORTED_MODULE_35___default()(messageArray);\n var info = JSON.parse(lastMessage);\n var id = info.id != undefined ? info.id : "";\n var progress = "";\n\n if (info.progressDetail != undefined) {\n var progressDetail = info.progressDetail;\n\n if (!isNaN(progressDetail.current / progressDetail.total)) {\n progress = "[ ".concat(String(Math.floor(progressDetail.current / progressDetail.total * 100)), "% ]");\n }\n }\n\n var status = info.status;\n this.currentInstallAppText = status + ":" + id + " " + progress;\n }\n } else {\n this.currentInstallAppText = resData.message;\n }\n } else {\n localStorage.removeItem("app_data");\n setTimeout(function () {\n _this13.$emit(\'updateState\');\n\n _this13.$emit(\'close\');\n }, 500);\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppSection.vue?vue&type=script&lang=js&":
/*!************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Apps/AppSection.vue?vue&type=script&lang=js& ***!
\************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.match.js */ "./node_modules/core-js/modules/es.string.match.js");\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.sort.js */ "./node_modules/core-js/modules/es.array.sort.js");\n/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _AppCard_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AppCard.vue */ "./src/components/Apps/AppCard.vue");\n/* harmony import */ var _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AppPanel.vue */ "./src/components/Apps/AppPanel.vue");\n/* harmony import */ var _AppSectionTitleTip_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AppSectionTitleTip.vue */ "./src/components/Apps/AppSectionTitleTip.vue");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vuedraggable */ "./node_modules/vuedraggable/dist/vuedraggable.umd.js");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(vuedraggable__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_xor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/xor */ "./node_modules/lodash/xor.js");\n/* harmony import */ var lodash_xor__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_xor__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/concat */ "./node_modules/lodash/concat.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_concat__WEBPACK_IMPORTED_MODULE_11__);\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\nvar builtInApplications = [{\n id: "1",\n name: "App Store",\n icon: __webpack_require__(/*! @/assets/img/app/appstore.svg */ "./src/assets/img/app/appstore.svg"),\n state: "0",\n custom_id: "1",\n type: "system"\n}, {\n id: "2",\n name: "Files",\n icon: __webpack_require__(/*! @/assets/img/app/files.svg */ "./src/assets/img/app/files.svg"),\n state: "0",\n custom_id: "2",\n type: "system"\n}, {\n id: "3",\n name: "Connect",\n icon: __webpack_require__(/*! @/assets/img/share/folder-publicshare.svg */ "./src/assets/img/share/folder-publicshare.svg"),\n state: "0",\n custom_id: "3",\n type: "system"\n}];\nvar orderConfig = "app_order";\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n user_id: localStorage.getItem("user_id"),\n appList: [],\n notImportedList: [],\n appConfig: {},\n drag: false,\n isLoading: true,\n isShowing: false,\n importHelpText: "Click icon to import.",\n appHelpText: \'Drag icons to sort.\',\n draggable: ".handle"\n };\n },\n components: {\n AppCard: _AppCard_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n draggable: vuedraggable__WEBPACK_IMPORTED_MODULE_9___default.a,\n AppSectionTitleTip: _AppSectionTitleTip_vue__WEBPACK_IMPORTED_MODULE_8__["default"]\n },\n provide: function provide() {\n return {\n openAppStore: this.showInstall\n };\n },\n computed: {\n dragOptions: function dragOptions() {\n return {\n animation: 300,\n group: "description",\n disabled: false,\n ghostClass: "ghost"\n };\n },\n showDragTip: function showDragTip() {\n return this.draggable == ".handle";\n }\n },\n created: function created() {\n this.getList();\n this.draggable = this.isMobile() ? "" : ".handle";\n },\n methods: {\n isMobile: function isMobile() {\n var flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);\n return flag;\n },\n\n /**\r\n * @description: Fetch the list of installed apps\r\n * @return {*} void\r\n */\n getList: function getList() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var listRes, orgAppList, casaAppList, sortRes, sortList, newList;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.app.myAppList();\n\n case 2:\n listRes = _context.sent;\n\n if (!(listRes.data.success == 200)) {\n _context.next = 13;\n break;\n }\n\n orgAppList = listRes.data.data.list;\n casaAppList = lodash_concat__WEBPACK_IMPORTED_MODULE_11___default()(builtInApplications, orgAppList);\n casaAppList.reverse();\n _context.next = 9;\n return _this.$api.user.getCustomConfig(_this.user_id, orderConfig);\n\n case 9:\n sortRes = _context.sent;\n\n if (sortRes.data.success == 200) {\n sortList = sortRes.data.data.data;\n newList = casaAppList.map(function (item) {\n return item.custom_id;\n });\n\n if (sortList != "") {\n // Resort list\n sortList = _this.getNewSortList(sortList, newList);\n casaAppList.sort(function (a, b) {\n return sortList.indexOf(a.custom_id) - sortList.indexOf(b.custom_id);\n });\n }\n\n _this.appList = casaAppList;\n\n if (lodash_xor__WEBPACK_IMPORTED_MODULE_10___default()(sortList, newList).length > 0) {\n _this.saveSortData();\n }\n } else {\n _this.appList = casaAppList;\n }\n\n _this.notImportedList = listRes.data.data.local;\n _this.isLoading = false;\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: \r\n * @param {Array} oriList\r\n * @param {Array} newList\r\n * @return {*}\r\n */\n getNewSortList: function getNewSortList(oriList, newList) {\n var xorList = lodash_xor__WEBPACK_IMPORTED_MODULE_10___default()(oriList, newList);\n xorList.reverse();\n return lodash_concat__WEBPACK_IMPORTED_MODULE_11___default()(oriList, xorList);\n },\n\n /**\r\n * @description: Save Sort Table\r\n * @param {*}\r\n * @return {*}\r\n */\n saveSortData: function saveSortData() {\n var newList = this.appList.map(function (item) {\n return item.custom_id;\n });\n var data = {\n data: newList\n };\n this.$api.user.postCustomConfig(this.user_id, orderConfig, data);\n },\n\n /**\r\n * @description: Handle on Sort End\r\n * @param {*}\r\n * @return {*}\r\n */\n onSortEnd: function onSortEnd() {\n this.drag = false;\n this.saveSortData();\n },\n\n /**\r\n * @description: Show Install Panel Programmatic\r\n * @return {*} void\r\n */\n showInstall: function showInstall() {\n var _this2 = this;\n\n this.isShowing = true;\n this.$api.app.appConfig().then(function (res) {\n _this2.isShowing = false;\n\n if (res.data.success == 200) {\n _this2.$buefy.modal.open({\n parent: _this2,\n component: _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n customClass: \'app-panel\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updateState\': function updateState() {\n _this2.getList();\n }\n },\n props: {\n id: "0",\n state: "install",\n configData: res.data.data\n }\n });\n }\n });\n },\n\n /**\r\n * @description: Show Settings Panel Programmatic\r\n * @param {String} id\r\n * @param {String} status\r\n * @param {Boolean} isCasa \r\n * @return {*}\r\n */\n showConfigPanel: function showConfigPanel(id, status, isCasa) {\n var _this3 = this;\n\n this.$api.app.getContainerSettingdata(id).then(function (ret) {\n _this3.$api.app.appConfig().then(function (res) {\n if (res.data.success == 200) {\n _this3.$buefy.modal.open({\n parent: _this3,\n component: _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updateState\': function updateState() {\n _this3.getList();\n }\n },\n props: {\n id: id,\n state: "update",\n isCasa: isCasa,\n runningStatus: status,\n configData: res.data.data,\n settingData: ret.data.data\n }\n });\n }\n });\n });\n }\n },\n sockets: {\n app_install: function app_install(res) {\n var data = res.body.data;\n\n if (data.finished) {\n this.getList();\n }\n },\n app_uninstall: function app_uninstall() {\n this.getList();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppSection.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppSectionTitleTip.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.match.js */ "./node_modules/core-js/modules/es.string.match.js");\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.sort.js */ "./node_modules/core-js/modules/es.array.sort.js");\n/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _AppCard_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AppCard.vue */ "./src/components/Apps/AppCard.vue");\n/* harmony import */ var _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AppPanel.vue */ "./src/components/Apps/AppPanel.vue");\n/* harmony import */ var _AppSectionTitleTip_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AppSectionTitleTip.vue */ "./src/components/Apps/AppSectionTitleTip.vue");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vuedraggable */ "./node_modules/vuedraggable/dist/vuedraggable.umd.js");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(vuedraggable__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_xor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/xor */ "./node_modules/lodash/xor.js");\n/* harmony import */ var lodash_xor__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_xor__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/concat */ "./node_modules/lodash/concat.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_concat__WEBPACK_IMPORTED_MODULE_11__);\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\nvar builtInApplications = [{\n id: "1",\n name: "App Store",\n icon: __webpack_require__(/*! @/assets/img/app/appstore.svg */ "./src/assets/img/app/appstore.svg"),\n state: "0",\n custom_id: "1",\n type: "system"\n}, {\n id: "2",\n name: "Files",\n icon: __webpack_require__(/*! @/assets/img/app/files.svg */ "./src/assets/img/app/files.svg"),\n state: "0",\n custom_id: "2",\n type: "system"\n}, {\n id: "3",\n name: "Connect",\n icon: __webpack_require__(/*! @/assets/img/share/folder-publicshare.svg */ "./src/assets/img/share/folder-publicshare.svg"),\n state: "0",\n custom_id: "3",\n type: "system"\n}];\nvar orderConfig = "app_order";\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n user_id: localStorage.getItem("user_id"),\n appList: [],\n notImportedList: [],\n appConfig: {},\n drag: false,\n isLoading: true,\n isShowing: false,\n importHelpText: "Click icon to import.",\n appHelpText: \'Drag icons to sort.\',\n draggable: ".handle"\n };\n },\n components: {\n AppCard: _AppCard_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n draggable: vuedraggable__WEBPACK_IMPORTED_MODULE_9___default.a,\n AppSectionTitleTip: _AppSectionTitleTip_vue__WEBPACK_IMPORTED_MODULE_8__["default"]\n },\n provide: function provide() {\n return {\n openAppStore: this.showInstall\n };\n },\n computed: {\n dragOptions: function dragOptions() {\n return {\n animation: 300,\n group: "description",\n disabled: false,\n ghostClass: "ghost"\n };\n },\n showDragTip: function showDragTip() {\n return this.draggable == ".handle";\n }\n },\n created: function created() {\n this.getList();\n this.draggable = this.isMobile() ? "" : ".handle";\n },\n methods: {\n isMobile: function isMobile() {\n var flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);\n return flag;\n },\n\n /**\n * @description: Fetch the list of installed apps\n * @return {*} void\n */\n getList: function getList() {\n var _this = this;\n\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var listRes, orgAppList, casaAppList, sortRes, sortList, newList;\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.app.myAppList();\n\n case 2:\n listRes = _context.sent;\n\n if (!(listRes.data.success == 200)) {\n _context.next = 13;\n break;\n }\n\n orgAppList = listRes.data.data.list;\n casaAppList = lodash_concat__WEBPACK_IMPORTED_MODULE_11___default()(builtInApplications, orgAppList);\n casaAppList.reverse();\n _context.next = 9;\n return _this.$api.user.getCustomConfig(_this.user_id, orderConfig);\n\n case 9:\n sortRes = _context.sent;\n\n if (sortRes.data.success == 200) {\n sortList = sortRes.data.data.data;\n newList = casaAppList.map(function (item) {\n return item.custom_id;\n });\n\n if (sortList != "") {\n // Resort list\n sortList = _this.getNewSortList(sortList, newList);\n casaAppList.sort(function (a, b) {\n return sortList.indexOf(a.custom_id) - sortList.indexOf(b.custom_id);\n });\n }\n\n _this.appList = casaAppList;\n\n if (lodash_xor__WEBPACK_IMPORTED_MODULE_10___default()(sortList, newList).length > 0) {\n _this.saveSortData();\n }\n } else {\n _this.appList = casaAppList;\n }\n\n _this.notImportedList = listRes.data.data.local;\n _this.isLoading = false;\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\n * @description: \n * @param {Array} oriList\n * @param {Array} newList\n * @return {*}\n */\n getNewSortList: function getNewSortList(oriList, newList) {\n var xorList = lodash_xor__WEBPACK_IMPORTED_MODULE_10___default()(oriList, newList);\n xorList.reverse();\n return lodash_concat__WEBPACK_IMPORTED_MODULE_11___default()(oriList, xorList);\n },\n\n /**\n * @description: Save Sort Table\n * @param {*}\n * @return {*}\n */\n saveSortData: function saveSortData() {\n var newList = this.appList.map(function (item) {\n return item.custom_id;\n });\n var data = {\n data: newList\n };\n this.$api.user.postCustomConfig(this.user_id, orderConfig, data);\n },\n\n /**\n * @description: Handle on Sort End\n * @param {*}\n * @return {*}\n */\n onSortEnd: function onSortEnd() {\n this.drag = false;\n this.saveSortData();\n },\n\n /**\n * @description: Show Install Panel Programmatic\n * @return {*} void\n */\n showInstall: function showInstall() {\n var _this2 = this;\n\n this.isShowing = true;\n this.$api.app.appConfig().then(function (res) {\n _this2.isShowing = false;\n\n if (res.data.success == 200) {\n _this2.$buefy.modal.open({\n parent: _this2,\n component: _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n customClass: \'app-panel\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updateState\': function updateState() {\n _this2.getList();\n }\n },\n props: {\n id: "0",\n state: "install",\n configData: res.data.data\n }\n });\n }\n });\n },\n\n /**\n * @description: Show Settings Panel Programmatic\n * @param {String} id\n * @param {String} status\n * @param {Boolean} isCasa \n * @return {*}\n */\n showConfigPanel: function showConfigPanel(id, status, isCasa) {\n var _this3 = this;\n\n this.$api.app.getContainerSettingdata(id).then(function (ret) {\n _this3.$api.app.appConfig().then(function (res) {\n if (res.data.success == 200) {\n _this3.$buefy.modal.open({\n parent: _this3,\n component: _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updateState\': function updateState() {\n _this3.getList();\n }\n },\n props: {\n id: id,\n state: "update",\n isCasa: isCasa,\n runningStatus: status,\n configData: res.data.data,\n settingData: ret.data.data\n }\n });\n }\n });\n });\n }\n },\n sockets: {\n app_install: function app_install(res) {\n var data = res.body.data;\n\n if (data.finished) {\n this.getList();\n }\n },\n app_uninstall: function app_uninstall() {\n this.getList();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppSection.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppSectionTitleTip.vue?vue&type=script&lang=js&":
/*!********************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Apps/AppSectionTitleTip.vue?vue&type=script&lang=js& ***!
\********************************************************************************************************************************************************************************************************************************************************************/
@@ -30,11 +30,11 @@
/*!******************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SearchBar.vue?vue&type=script&lang=js& ***!
\******************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "search-bar",\n data: function data() {\n return {\n isFocus: false,\n keyText: "" // searchEngine:this.$store.state.searchEngine\n\n };\n },\n computed: {\n searchEngine: function searchEngine() {\n return this.$store.state.searchEngine == "" ? "https://duckduckgo.com/?q=" : this.$store.state.searchEngine;\n }\n },\n methods: {\n /**\r\n * @description: Handle Focus event\r\n * @return {*} void\r\n */\n onFocus: function onFocus() {\n this.isFocus = true;\n },\n\n /**\r\n * @description: Handle Blur event\r\n * @return {*} void\r\n */\n onBlur: function onBlur() {\n if (this.keyText == "") this.isFocus = false;\n },\n\n /**\r\n * @description: Pop up a new window and jump to google search\r\n * @return {*} void\r\n */\n gotoSearch: function gotoSearch() {\n window.open(this.searchEngine + this.keyText, \'_blank\');\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/SearchBar.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/SideBar.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "search-bar",\n data: function data() {\n return {\n isFocus: false,\n keyText: "" // searchEngine:this.$store.state.searchEngine\n\n };\n },\n computed: {\n searchEngine: function searchEngine() {\n return this.$store.state.searchEngine == "" ? "https://duckduckgo.com/?q=" : this.$store.state.searchEngine;\n }\n },\n methods: {\n /**\n * @description: Handle Focus event\n * @return {*} void\n */\n onFocus: function onFocus() {\n this.isFocus = true;\n },\n\n /**\n * @description: Handle Blur event\n * @return {*} void\n */\n onBlur: function onBlur() {\n if (this.keyText == "") this.isFocus = false;\n },\n\n /**\n * @description: Pop up a new window and jump to google search\n * @return {*} void\n */\n gotoSearch: function gotoSearch() {\n window.open(this.searchEngine + this.keyText, \'_blank\');\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/SearchBar.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/SideBar.vue?vue&type=script&lang=js&":
/*!****************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SideBar.vue?vue&type=script&lang=js& ***!
\****************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/lowerFirst */ "./node_modules/lodash/lowerFirst.js");\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var lodash_camelCase__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/camelCase */ "./node_modules/lodash/camelCase.js");\n/* harmony import */ var lodash_camelCase__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_camelCase__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _components_widgets_Settings_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/components/widgets/Settings.vue */ "./src/components/widgets/Settings.vue");\n/* harmony import */ var vue_custom_scrollbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-custom-scrollbar */ "./node_modules/vue-custom-scrollbar/dist/vueScrollbar.umd.min.js");\n/* harmony import */ var vue_custom_scrollbar__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(vue_custom_scrollbar__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var vue_custom_scrollbar_dist_vueScrollbar_css__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! vue-custom-scrollbar/dist/vueScrollbar.css */ "./node_modules/vue-custom-scrollbar/dist/vueScrollbar.css");\n/* harmony import */ var vue_custom_scrollbar_dist_vueScrollbar_css__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(vue_custom_scrollbar_dist_vueScrollbar_css__WEBPACK_IMPORTED_MODULE_14__);\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\nvar widgetsComponents = __webpack_require__("./src/widgets sync .vue$");\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: \'side-bar\',\n components: {\n Settings: _components_widgets_Settings_vue__WEBPACK_IMPORTED_MODULE_12__["default"],\n vueCustomScrollbar: vue_custom_scrollbar__WEBPACK_IMPORTED_MODULE_13___default.a\n },\n data: function data() {\n return {\n isLoading: true,\n comps: [],\n apps: [],\n scrollSettings: {\n suppressScrollY: false,\n suppressScrollX: true,\n wheelPropagation: false\n },\n widgetsSettings: []\n };\n },\n computed: {\n activeApps: function activeApps() {\n var _this = this;\n\n var newArray = this.widgetsSettings.map(function (item) {\n var obj = lodash_find__WEBPACK_IMPORTED_MODULE_10___default()(_this.apps, function (o) {\n return o.app.name == item.name;\n });\n return obj;\n });\n return newArray;\n },\n sidebarOpen: function sidebarOpen() {\n return this.$store.state.sidebarOpen;\n }\n },\n created: function created() {\n var _this2 = this;\n\n widgetsComponents.keys().forEach(function (fileName) {\n var componentName = lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_8___default()(lodash_camelCase__WEBPACK_IMPORTED_MODULE_9___default()(fileName.split(\'/\').pop().replace(/\\.\\w+$/, \'\')));\n\n _this2.comps.push(componentName);\n\n _this2.apps.push({\n app: __webpack_require__("./src/widgets sync recursive ^\\\\.\\\\/.*$")("./".concat(fileName.replace("./", ""))).default\n });\n });\n },\n mounted: function mounted() {\n this.getConfig();\n },\n methods: {\n /**\r\n * @description: Get Widgets Configs\r\n * @return {*} void\r\n */\n getConfig: function getConfig() {\n var _this3 = this;\n\n var initData = this.getInitData();\n this.$api.info.widgetsConfig().then(function (res) {\n if (res.status === 200) {\n if (res.data === "") {\n _this3.saveData(initData);\n\n _this3.widgetsSettings = initData;\n _this3.isLoading = false;\n } else {\n _this3.diffAndCombineData(initData, res.data.data);\n }\n }\n });\n },\n diffAndCombineData: function diffAndCombineData(initData, remoteData) {\n var newData = initData.map(function (item) {\n var remoteItem = lodash_find__WEBPACK_IMPORTED_MODULE_10___default()(remoteData, function (el) {\n return el.name == item.name;\n });\n\n if (remoteItem && item.name === remoteItem.name) {\n return {\n name: item.name,\n show: item.show === remoteItem.show ? item.show : remoteItem.show\n };\n } else {\n return {\n name: item.name,\n show: item.show\n };\n }\n });\n this.widgetsSettings = newData;\n\n if (!lodash_isEqual__WEBPACK_IMPORTED_MODULE_11___default()(newData, remoteData)) {\n this.saveData(newData);\n }\n\n this.isLoading = false;\n },\n\n /**\r\n * @description: Get Local widgets datas\r\n * @return {Array} array of widgets\r\n */\n getInitData: function getInitData() {\n return this.apps.map(function (item) {\n return {\n name: item.app.name,\n show: item.app.initShow\n };\n });\n },\n\n /**\r\n * @description: Save Widgets Configs\r\n * @return {*} void\r\n */\n saveData: function saveData(data) {\n var _this4 = this;\n\n this.$api.info.saveWidgetsConfig(data).then(function (res) {\n if (res.data.success == 200) {\n _this4.widgetsSettings = res.data.data;\n }\n });\n },\n handleChange: function handleChange(data) {\n this.widgetsSettings = data;\n this.saveData(this.widgetsSettings);\n },\n checkShow: function checkShow(name) {\n var obj = lodash_find__WEBPACK_IMPORTED_MODULE_10___default()(this.widgetsSettings, function (o) {\n return name == o.name;\n });\n return obj.show;\n },\n blockClass: function blockClass(index, array) {\n return index === array.length - 1 ? "last-block" : "";\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/SideBar.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Storage/DriveItem.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/lowerFirst */ "./node_modules/lodash/lowerFirst.js");\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var lodash_camelCase__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/camelCase */ "./node_modules/lodash/camelCase.js");\n/* harmony import */ var lodash_camelCase__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_camelCase__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _components_widgets_Settings_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/components/widgets/Settings.vue */ "./src/components/widgets/Settings.vue");\n/* harmony import */ var vue_custom_scrollbar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-custom-scrollbar */ "./node_modules/vue-custom-scrollbar/dist/vueScrollbar.umd.min.js");\n/* harmony import */ var vue_custom_scrollbar__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(vue_custom_scrollbar__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var vue_custom_scrollbar_dist_vueScrollbar_css__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! vue-custom-scrollbar/dist/vueScrollbar.css */ "./node_modules/vue-custom-scrollbar/dist/vueScrollbar.css");\n/* harmony import */ var vue_custom_scrollbar_dist_vueScrollbar_css__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(vue_custom_scrollbar_dist_vueScrollbar_css__WEBPACK_IMPORTED_MODULE_14__);\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\nvar widgetsComponents = __webpack_require__("./src/widgets sync .vue$");\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: \'side-bar\',\n components: {\n Settings: _components_widgets_Settings_vue__WEBPACK_IMPORTED_MODULE_12__["default"],\n vueCustomScrollbar: vue_custom_scrollbar__WEBPACK_IMPORTED_MODULE_13___default.a\n },\n data: function data() {\n return {\n isLoading: true,\n comps: [],\n apps: [],\n scrollSettings: {\n suppressScrollY: false,\n suppressScrollX: true,\n wheelPropagation: false\n },\n widgetsSettings: []\n };\n },\n computed: {\n activeApps: function activeApps() {\n var _this = this;\n\n var newArray = this.widgetsSettings.map(function (item) {\n var obj = lodash_find__WEBPACK_IMPORTED_MODULE_10___default()(_this.apps, function (o) {\n return o.app.name == item.name;\n });\n return obj;\n });\n return newArray;\n },\n sidebarOpen: function sidebarOpen() {\n return this.$store.state.sidebarOpen;\n }\n },\n created: function created() {\n var _this2 = this;\n\n widgetsComponents.keys().forEach(function (fileName) {\n var componentName = lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_8___default()(lodash_camelCase__WEBPACK_IMPORTED_MODULE_9___default()(fileName.split(\'/\').pop().replace(/\\.\\w+$/, \'\')));\n\n _this2.comps.push(componentName);\n\n _this2.apps.push({\n app: __webpack_require__("./src/widgets sync recursive ^\\\\.\\\\/.*$")("./".concat(fileName.replace("./", ""))).default\n });\n });\n },\n mounted: function mounted() {\n this.getConfig();\n },\n methods: {\n /**\n * @description: Get Widgets Configs\n * @return {*} void\n */\n getConfig: function getConfig() {\n var _this3 = this;\n\n var initData = this.getInitData();\n this.$api.info.widgetsConfig().then(function (res) {\n if (res.status === 200) {\n if (res.data === "") {\n _this3.saveData(initData);\n\n _this3.widgetsSettings = initData;\n _this3.isLoading = false;\n } else {\n _this3.diffAndCombineData(initData, res.data.data);\n }\n }\n });\n },\n diffAndCombineData: function diffAndCombineData(initData, remoteData) {\n var newData = initData.map(function (item) {\n var remoteItem = lodash_find__WEBPACK_IMPORTED_MODULE_10___default()(remoteData, function (el) {\n return el.name == item.name;\n });\n\n if (remoteItem && item.name === remoteItem.name) {\n return {\n name: item.name,\n show: item.show === remoteItem.show ? item.show : remoteItem.show\n };\n } else {\n return {\n name: item.name,\n show: item.show\n };\n }\n });\n this.widgetsSettings = newData;\n\n if (!lodash_isEqual__WEBPACK_IMPORTED_MODULE_11___default()(newData, remoteData)) {\n this.saveData(newData);\n }\n\n this.isLoading = false;\n },\n\n /**\n * @description: Get Local widgets datas\n * @return {Array} array of widgets\n */\n getInitData: function getInitData() {\n return this.apps.map(function (item) {\n return {\n name: item.app.name,\n show: item.app.initShow\n };\n });\n },\n\n /**\n * @description: Save Widgets Configs\n * @return {*} void\n */\n saveData: function saveData(data) {\n var _this4 = this;\n\n this.$api.info.saveWidgetsConfig(data).then(function (res) {\n if (res.data.success == 200) {\n _this4.widgetsSettings = res.data.data;\n }\n });\n },\n handleChange: function handleChange(data) {\n this.widgetsSettings = data;\n this.saveData(this.widgetsSettings);\n },\n checkShow: function checkShow(name) {\n var obj = lodash_find__WEBPACK_IMPORTED_MODULE_10___default()(this.widgetsSettings, function (o) {\n return name == o.name;\n });\n return obj.show;\n },\n blockClass: function blockClass(index, array) {\n return index === array.length - 1 ? "last-block" : "";\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/SideBar.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Storage/DriveItem.vue?vue&type=script&lang=js&":
/*!**************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Storage/DriveItem.vue?vue&type=script&lang=js& ***!
\**************************************************************************************************************************************************************************************************************************************************************/
@@ -46,11 +46,11 @@
/*!************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Storage/StorageManagerPanel.vue?vue&type=script&lang=js& ***!
\************************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.regexp.test.js */ "./node_modules/core-js/modules/es.regexp.test.js");\n/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/delay */ "./node_modules/lodash/delay.js");\n/* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_delay__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var lodash_max__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lodash/max */ "./node_modules/lodash/max.js");\n/* harmony import */ var lodash_max__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(lodash_max__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _DriveItem_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./DriveItem.vue */ "./src/components/Storage/DriveItem.vue");\n/* harmony import */ var _StorageItem_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./StorageItem.vue */ "./src/components/Storage/StorageItem.vue");\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "storage-manager-panel",\n components: {\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_10__["default"],\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_15__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_15__["ValidationProvider"],\n DriveItem: _DriveItem_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n StorageItem: _StorageItem_vue__WEBPACK_IMPORTED_MODULE_18__["default"]\n },\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_11___default.a, _mixins_mixin__WEBPACK_IMPORTED_MODULE_16__["mixin"]],\n data: function data() {\n return {\n isLoading: true,\n creatIsShow: false,\n isCreating: false,\n isValiding: false,\n activeTab: 0,\n activeDisk: "",\n createStorageName: "",\n createStoragePath: "",\n createStorageSeiral: "",\n createStorageType: "",\n diskData: [],\n unDiskData: [],\n storageData: []\n };\n },\n computed: {\n title: function title() {\n return this.creatIsShow ? this.$t(\'Create Storage\') : this.$t(\'Storage Manager\');\n }\n },\n mounted: function mounted() {\n //Smooth \n this.$smoothReflow({\n el: \'.modal-card\',\n property: [\'height\', \'width\'],\n transition: \'height .25s ease, width .75s ease-out\'\n }); //Get disk list\n\n var _this = this;\n\n lodash_delay__WEBPACK_IMPORTED_MODULE_12___default()(function () {\n _this.getDiskList();\n }, 150);\n },\n methods: {\n /**\r\n * @description: Get disk list\r\n * @param {} \r\n * @return {void} \r\n */\n getDiskList: function getDiskList() {\n var _this2 = this;\n\n var showDefault = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n this.$api.disk.diskList().then(function (res) {\n if (res.data.success === 200) {\n _this2.diskData = res.data.data.drive;\n _this2.unDiskData = res.data.data.avail;\n _this2.storageData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_14___default()(res.data.data.storage, [\'create_at\'], [\'asc\']).map(function (disk) {\n return {\n name: disk.name,\n isSystem: disk.name == "System",\n fsType: disk.type,\n size: disk.size,\n availSize: disk.avail,\n usePercent: 100 - Math.floor(disk.avail * 100 / disk.size),\n diskName: disk.drive_name,\n path: disk.path,\n mount_point: disk.mountpoint\n };\n });\n\n var diskNumArray = _this2.storageData.map(function (disk) {\n if (disk.name.includes("Storage")) {\n var diskNum = disk.name.replace("Storage", "");\n return /^\\d+$/.test(diskNum) ? Number(diskNum) : 0;\n } else {\n return 0;\n }\n });\n\n var nextMaxNum = lodash_max__WEBPACK_IMPORTED_MODULE_13___default()(diskNumArray) + 1;\n\n if (_this2.unDiskData.length > 0) {\n _this2.createStoragePath = _this2.unDiskData[0].path;\n _this2.createStorageSeiral = _this2.unDiskData[0].serial;\n _this2.createStorageType = _this2.getDiskType(_this2.unDiskData[0].need_format);\n _this2.createStorageName = "Storage" + nextMaxNum;\n _this2.activeDisk = 0;\n }\n\n if (showDefault) {\n _this2.showDefault();\n\n _this2.isCreating = false;\n _this2.createStorageName = "";\n }\n\n _this2.isLoading = false;\n }\n });\n },\n\n /**\r\n * @description: Disk choose handle\r\n * @param {int} evt index of select \r\n * @return {void} \r\n */\n onDiskChoose: function onDiskChoose(index) {\n this.createStoragePath = this.unDiskData[index].path;\n this.createStorageSeiral = this.unDiskData[index].serial;\n this.createStorageType = this.getDiskType(this.unDiskData[index].need_format);\n },\n showDefault: function showDefault() {\n this.creatIsShow = false;\n },\n showCreate: function showCreate() {\n this.creatIsShow = true;\n var diskNumArray = this.storageData.map(function (disk) {\n if (disk.name.includes("Storage")) {\n var diskNum = disk.name.replace("Storage", "");\n return /^\\d+$/.test(diskNum) ? Number(diskNum) : 0;\n } else {\n return 0;\n }\n });\n var nextMaxNum = lodash_max__WEBPACK_IMPORTED_MODULE_13___default()(diskNumArray) + 1;\n this.createStorageName = "Storage" + nextMaxNum;\n },\n\n /**\r\n * @description: Validate form async\r\n * @param {Object} ref ref of component\r\n * @return {Boolean} \r\n */\n checkStep: function checkStep(ref) {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Create a new storage\r\n * @param {} \r\n * @return {void} \r\n */\n createStorge: function createStorge(needFormat) {\n var _this3 = this;\n\n this.isValiding = true;\n this.checkStep(this.$refs.ob1).then(function (val) {\n _this3.isValiding = false;\n\n if (val) {\n _this3.submitCreate(needFormat);\n }\n });\n },\n submitCreate: function submitCreate(format) {\n var _this4 = this;\n\n this.isCreating = true;\n var data = {\n path: this.createStoragePath,\n serial: this.createStorageSeiral,\n name: this.createStorageName,\n format: format\n };\n this.$api.disk.addStorage(data).then(function (res) {\n if (res.data.success != 200) {\n _this4.isCreating = false;\n\n _this4.$buefy.toast.open({\n duration: 3000,\n message: res.data.message,\n type: \'is-danger\'\n });\n } else {\n _this4.getDiskList(true);\n }\n });\n },\n getDiskType: function getDiskType(need_format) {\n return need_format ? "format" : "mountable";\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Storage/StorageManagerPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/TopBar.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.regexp.test.js */ "./node_modules/core-js/modules/es.regexp.test.js");\n/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/delay */ "./node_modules/lodash/delay.js");\n/* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_delay__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var lodash_max__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lodash/max */ "./node_modules/lodash/max.js");\n/* harmony import */ var lodash_max__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(lodash_max__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _DriveItem_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./DriveItem.vue */ "./src/components/Storage/DriveItem.vue");\n/* harmony import */ var _StorageItem_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./StorageItem.vue */ "./src/components/Storage/StorageItem.vue");\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "storage-manager-panel",\n components: {\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_10__["default"],\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_15__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_15__["ValidationProvider"],\n DriveItem: _DriveItem_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n StorageItem: _StorageItem_vue__WEBPACK_IMPORTED_MODULE_18__["default"]\n },\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_11___default.a, _mixins_mixin__WEBPACK_IMPORTED_MODULE_16__["mixin"]],\n data: function data() {\n return {\n isLoading: true,\n creatIsShow: false,\n isCreating: false,\n isValiding: false,\n activeTab: 0,\n activeDisk: "",\n createStorageName: "",\n createStoragePath: "",\n createStorageSeiral: "",\n createStorageType: "",\n diskData: [],\n unDiskData: [],\n storageData: []\n };\n },\n computed: {\n title: function title() {\n return this.creatIsShow ? this.$t(\'Create Storage\') : this.$t(\'Storage Manager\');\n }\n },\n mounted: function mounted() {\n //Smooth \n this.$smoothReflow({\n el: \'.modal-card\',\n property: [\'height\', \'width\'],\n transition: \'height .25s ease, width .75s ease-out\'\n }); //Get disk list\n\n var _this = this;\n\n lodash_delay__WEBPACK_IMPORTED_MODULE_12___default()(function () {\n _this.getDiskList();\n }, 150);\n },\n methods: {\n /**\n * @description: Get disk list\n * @param {} \n * @return {void} \n */\n getDiskList: function getDiskList() {\n var _this2 = this;\n\n var showDefault = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n this.$api.disk.diskList().then(function (res) {\n if (res.data.success === 200) {\n _this2.diskData = res.data.data.drive;\n _this2.unDiskData = res.data.data.avail;\n _this2.storageData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_14___default()(res.data.data.storage, [\'create_at\'], [\'asc\']).map(function (disk) {\n return {\n name: disk.name,\n isSystem: disk.name == "System",\n fsType: disk.type,\n size: disk.size,\n availSize: disk.avail,\n usePercent: 100 - Math.floor(disk.avail * 100 / disk.size),\n diskName: disk.drive_name,\n path: disk.path,\n mount_point: disk.mountpoint\n };\n });\n\n var diskNumArray = _this2.storageData.map(function (disk) {\n if (disk.name.includes("Storage")) {\n var diskNum = disk.name.replace("Storage", "");\n return /^\\d+$/.test(diskNum) ? Number(diskNum) : 0;\n } else {\n return 0;\n }\n });\n\n var nextMaxNum = lodash_max__WEBPACK_IMPORTED_MODULE_13___default()(diskNumArray) + 1;\n\n if (_this2.unDiskData.length > 0) {\n _this2.createStoragePath = _this2.unDiskData[0].path;\n _this2.createStorageSeiral = _this2.unDiskData[0].serial;\n _this2.createStorageType = _this2.getDiskType(_this2.unDiskData[0].need_format);\n _this2.createStorageName = "Storage" + nextMaxNum;\n _this2.activeDisk = 0;\n }\n\n if (showDefault) {\n _this2.showDefault();\n\n _this2.isCreating = false;\n _this2.createStorageName = "";\n }\n\n _this2.isLoading = false;\n }\n });\n },\n\n /**\n * @description: Disk choose handle\n * @param {int} evt index of select \n * @return {void} \n */\n onDiskChoose: function onDiskChoose(index) {\n this.createStoragePath = this.unDiskData[index].path;\n this.createStorageSeiral = this.unDiskData[index].serial;\n this.createStorageType = this.getDiskType(this.unDiskData[index].need_format);\n },\n showDefault: function showDefault() {\n this.creatIsShow = false;\n },\n showCreate: function showCreate() {\n this.creatIsShow = true;\n var diskNumArray = this.storageData.map(function (disk) {\n if (disk.name.includes("Storage")) {\n var diskNum = disk.name.replace("Storage", "");\n return /^\\d+$/.test(diskNum) ? Number(diskNum) : 0;\n } else {\n return 0;\n }\n });\n var nextMaxNum = lodash_max__WEBPACK_IMPORTED_MODULE_13___default()(diskNumArray) + 1;\n this.createStorageName = "Storage" + nextMaxNum;\n },\n\n /**\n * @description: Validate form async\n * @param {Object} ref ref of component\n * @return {Boolean} \n */\n checkStep: function checkStep(ref) {\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var isValid;\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context.sent;\n return _context.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\n * @description: Create a new storage\n * @param {} \n * @return {void} \n */\n createStorge: function createStorge(needFormat) {\n var _this3 = this;\n\n this.isValiding = true;\n this.checkStep(this.$refs.ob1).then(function (val) {\n _this3.isValiding = false;\n\n if (val) {\n _this3.submitCreate(needFormat);\n }\n });\n },\n submitCreate: function submitCreate(format) {\n var _this4 = this;\n\n this.isCreating = true;\n var data = {\n path: this.createStoragePath,\n serial: this.createStorageSeiral,\n name: this.createStorageName,\n format: format\n };\n this.$api.disk.addStorage(data).then(function (res) {\n if (res.data.success != 200) {\n _this4.isCreating = false;\n\n _this4.$buefy.toast.open({\n duration: 3000,\n message: res.data.message,\n type: \'is-danger\'\n });\n } else {\n _this4.getDiskList(true);\n }\n });\n },\n getDiskType: function getDiskType(need_format) {\n return need_format ? "format" : "mountable";\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Storage/StorageManagerPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/TopBar.vue?vue&type=script&lang=js&":
/*!***************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TopBar.vue?vue&type=script&lang=js& ***!
\***************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _account_AccountPanel_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./account/AccountPanel.vue */ "./src/components/account/AccountPanel.vue");\n/* harmony import */ var _logsAndTerminal_TerminalPanel_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./logsAndTerminal/TerminalPanel.vue */ "./src/components/logsAndTerminal/TerminalPanel.vue");\n/* harmony import */ var _settings_PortPanel_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./settings/PortPanel.vue */ "./src/components/settings/PortPanel.vue");\n/* harmony import */ var _settings_UpdateModal_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./settings/UpdateModal.vue */ "./src/components/settings/UpdateModal.vue");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../mixins/mixin */ "./src/mixins/mixin.js");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\nvar systemConfigName = "system";\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "top-bar",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_8__["mixin"]],\n data: function data() {\n return {\n timer: 0,\n user_id: localStorage.getItem("user_id") ? localStorage.getItem("user_id") : 1,\n barData: {\n lang: this.getInitLang(),\n search_engine: "https://duckduckgo.com/?q=",\n search_switch: true,\n recommend_switch: true,\n shortcuts_switch: false,\n // Not used\n widgets_switch: false // Not used\n\n },\n updateInfo: {\n current_version: \'0\',\n is_need: false,\n version: Object\n },\n isUpdating: false,\n latestText: "Currently the latest version",\n updateText: "A new version is available!",\n userInfo: this.$store.state.userinfo,\n port: "",\n autoUsbMount: false,\n deviceModel: "",\n // Language Sets\n languages: [{\n lang: "de_de",\n name: "Deutsch"\n }, {\n lang: "en_us",\n name: "English"\n }, {\n lang: "es_es",\n name: "Español"\n }, {\n lang: "fr_fr",\n name: "Français"\n }, {\n lang: "it_it",\n name: "Italiano"\n }, {\n lang: "ru_ru",\n name: "Русский"\n }, {\n lang: "pl_pl",\n name: "Polska"\n }, {\n lang: "pt_br",\n name: "Português (Brasil)"\n }, {\n lang: "zh_cn",\n name: "简体中文"\n }],\n // Search Engine Sets\n searchEngines: [{\n url: "https://duckduckgo.com/?q=",\n name: "DuckDuckGo"\n }, {\n url: "https://www.google.com/search?q=",\n name: "Google"\n }, {\n url: "https://www.bing.com/search?q=",\n name: "Bing"\n }]\n };\n },\n props: {\n initBarData: {\n type: Object\n }\n },\n computed: {\n sidebarIcon: function sidebarIcon() {\n return this.$store.state.sidebarOpen ? "close" : "menu";\n },\n sidebarIconLabel: function sidebarIconLabel() {\n return this.$store.state.sidebarOpen ? "Hide Sidebar" : "Show SideBar";\n },\n isRaspberryPi: function isRaspberryPi() {\n return this.deviceModel.toLowerCase().indexOf("raspberry") >= 0;\n }\n },\n watch: {\n \'barData.lang\': {\n handler: function handler(val) {\n var lang = val.includes("_") ? val : "en_us";\n this.setLang(lang);\n },\n deep: true\n },\n \'barData.search_engine\': {\n handler: function handler(val) {\n this.$store.commit(\'changeSearchEngine\', val);\n },\n deep: true\n },\n \'barData.search_switch\': {\n handler: function handler(val) {\n this.$store.commit(\'changeSearchEngineSwitch\', val);\n },\n deep: true\n },\n \'barData.recommend_switch\': {\n handler: function handler(val) {\n this.$store.commit(\'changeRecommendSwitch\', val);\n },\n deep: true\n }\n },\n created: function created() {\n this.barData = this.initBarData; // this.getConfig();\n\n this.getPort();\n },\n mounted: function mounted() {\n this.checkVersion();\n this.getUserInfo();\n this.getUsbMountState();\n this.getHardwareInfo();\n },\n methods: {\n /*************************************************\r\n * PART 0 Common\r\n **************************************************/\n\n /**\r\n * @description: Save CasaOs Configs\r\n * @param {*}\r\n * @return {*}\r\n */\n saveData: function saveData() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var saveRes;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.user.postCustomConfig(_this.user_id, systemConfigName, _this.barData);\n\n case 2:\n saveRes = _context.sent;\n\n if (saveRes.data.success === 200) {\n _this.barData = saveRes.data.data;\n }\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Handle Dropmenu state\r\n * @param {Boolean} isOpen\r\n * @return {*}\r\n */\n onOpen: function onOpen(isOpen) {\n if (isOpen) {\n this.$store.commit(\'closeSideBar\');\n this.checkVersion();\n }\n },\n\n /**\r\n * @description: Show SideBar\r\n * @param {*}\r\n * @return {*}\r\n */\n showSideBar: function showSideBar() {\n this.$store.commit(\'changeSideBarState\');\n },\n\n /*************************************************\r\n * PART 1-2 Dashboard Setting - Language\r\n **************************************************/\n\n /**\r\n * @description: Get Initnal Language\r\n * @param {*}\r\n * @return {String} lang\r\n */\n getInitLang: function getInitLang() {\n var lang = localStorage.getItem(\'lang\') ? localStorage.getItem(\'lang\') : this.getLangFromBrowser();\n lang = lang.includes("_") ? lang : "en_us";\n return lang;\n },\n\n /*************************************************\r\n * PART 1-3 Dashboard Setting - Web UI Port\r\n **************************************************/\n\n /**\r\n * @description: Get CasaOs WebUI port\r\n * @return {*} \r\n */\n getPort: function getPort() {\n var _this2 = this;\n\n this.$api.info.getSystemPort().then(function (res) {\n if (res.data.success == 200) {\n _this2.port = res.data.data;\n }\n });\n },\n\n /**\r\n * @description: Show Port panel\r\n * @return {*} \r\n */\n showPortPanel: function showPortPanel() {\n this.$refs.settingsDrop.toggle();\n this.$buefy.modal.open({\n parent: this,\n component: _settings_PortPanel_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n hasModalCard: true,\n customClass: \'account-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n initPort: this.port\n }\n });\n },\n showChangeWallpaperModal: function showChangeWallpaperModal() {\n this.$EventBus.$emit("showChangeWallpaperModal");\n this.$refs.settingsDrop.toggle();\n },\n\n /*************************************************\r\n * PART 1-4 Dashboard Setting - Auto USB Mount Switch\r\n **************************************************/\n\n /**\r\n * @description: Get Auto USB Mount State\r\n * @return {*} \r\n */\n getUsbMountState: function getUsbMountState() {\n var _this3 = this;\n\n this.$api.info.getUsbMountState().then(function (res) {\n if (res.data.success == 200) {\n _this3.autoUsbMount = res.data.data === "True";\n }\n });\n },\n\n /**\r\n * @description: Enable or Disable USB Auto Mount\r\n * @param {*}\r\n * @return {*}\r\n */\n usbAutoMount: function usbAutoMount() {\n if (this.autoUsbMount) {\n this.$api.info.setUsbMountOn(); // Show \n\n if (this.isRaspberryPi) {\n this.$buefy.snackbar.open({\n message: this.$t(\'Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB\'),\n type: \'is-warning\',\n position: \'is-top\'\n });\n }\n } else {\n this.$api.info.setUsbMountOff();\n }\n },\n\n /**\r\n * @description: Get Hardware Info etc. Board Info\r\n * @param {*}\r\n * @return {*}\r\n */\n getHardwareInfo: function getHardwareInfo() {\n var _this4 = this;\n\n this.$api.info.hardwareInfo().then(function (res) {\n if (res.data.success == 200) {\n _this4.deviceModel = res.data.data.drive_model;\n }\n });\n },\n\n /*************************************************\r\n * PART 1-5 Dashboard Setting - Update\r\n **************************************************/\n\n /**\r\n * @description: Get Version info \r\n * @return {*} void\r\n */\n checkVersion: function checkVersion() {\n var _this5 = this;\n\n this.$api.info.checkVersion().then(function (res) {\n if (res.data.success == 200) {\n _this5.updateInfo = res.data.data;\n }\n });\n },\n\n /**\r\n * @description: Open Update Modal\r\n * @return {*} void\r\n */\n showUpdateModal: function showUpdateModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _settings_UpdateModal_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: \'keep\',\n animation: \'zoom-in\',\n props: {\n changeLog: this.updateInfo.version.change_log\n }\n });\n },\n\n /*************************************************\r\n * PART 2 Userinfo\r\n **************************************************/\n\n /**\r\n * @description: Get user info\r\n * @return {*} void\r\n */\n getUserInfo: function getUserInfo() {\n var _this6 = this;\n\n this.$store.commit(\'closeSideBar\');\n\n if (!this.$store.userinfo) {\n var user_id = localStorage.getItem(\'user_id\') ? localStorage.getItem(\'user_id\') : 1;\n localStorage.setItem("user_id", user_id);\n this.$api.user.getUserInfo(user_id).then(function (res) {\n if (res.data.success == 200) {\n _this6.$store.commit(\'changeUserInfo\', res.data.data);\n\n _this6.userInfo = res.data.data;\n }\n });\n }\n },\n\n /**\r\n * @description: Show Account panel\r\n * @return {*} void\r\n */\n showAccountPanel: function showAccountPanel() {\n this.$buefy.modal.open({\n parent: this,\n component: _account_AccountPanel_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n hasModalCard: true,\n customClass: \'account-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in"\n });\n },\n logout: function logout() {\n this.$store.commit(\'setDefaultWallpaper\');\n this.$router.push("/logout");\n },\n\n /*************************************************\r\n * PART 3 Terminal\r\n **************************************************/\n\n /**\r\n * @description: Show Terminal panel\r\n * @return {*} void\r\n */\n showTerminalPanel: function showTerminalPanel() {\n this.$store.commit(\'closeSideBar\');\n this.$buefy.modal.open({\n parent: this,\n component: _logsAndTerminal_TerminalPanel_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n hasModalCard: true,\n customClass: \'terminal-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in"\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/TopBar.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/account/AccountPanel.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _account_AccountPanel_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./account/AccountPanel.vue */ "./src/components/account/AccountPanel.vue");\n/* harmony import */ var _logsAndTerminal_TerminalPanel_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./logsAndTerminal/TerminalPanel.vue */ "./src/components/logsAndTerminal/TerminalPanel.vue");\n/* harmony import */ var _settings_PortPanel_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./settings/PortPanel.vue */ "./src/components/settings/PortPanel.vue");\n/* harmony import */ var _settings_UpdateModal_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./settings/UpdateModal.vue */ "./src/components/settings/UpdateModal.vue");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../mixins/mixin */ "./src/mixins/mixin.js");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\nvar systemConfigName = "system";\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "top-bar",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_8__["mixin"]],\n data: function data() {\n return {\n timer: 0,\n user_id: localStorage.getItem("user_id") ? localStorage.getItem("user_id") : 1,\n barData: {\n lang: this.getInitLang(),\n search_engine: "https://duckduckgo.com/?q=",\n search_switch: true,\n recommend_switch: true,\n shortcuts_switch: false,\n // Not used\n widgets_switch: false // Not used\n\n },\n updateInfo: {\n current_version: \'0\',\n is_need: false,\n version: Object\n },\n isUpdating: false,\n latestText: "Currently the latest version",\n updateText: "A new version is available!",\n userInfo: this.$store.state.userinfo,\n port: "",\n autoUsbMount: false,\n deviceModel: "",\n // Language Sets\n languages: [{\n lang: "de_de",\n name: "Deutsch"\n }, {\n lang: "en_us",\n name: "English"\n }, {\n lang: "es_es",\n name: "Español"\n }, {\n lang: "fr_fr",\n name: "Français"\n }, {\n lang: "it_it",\n name: "Italiano"\n }, {\n lang: "ru_ru",\n name: "Русский"\n }, {\n lang: "pl_pl",\n name: "Polska"\n }, {\n lang: "pt_br",\n name: "Português (Brasil)"\n }, {\n lang: "zh_cn",\n name: "简体中文"\n }],\n // Search Engine Sets\n searchEngines: [{\n url: "https://duckduckgo.com/?q=",\n name: "DuckDuckGo"\n }, {\n url: "https://www.google.com/search?q=",\n name: "Google"\n }, {\n url: "https://www.bing.com/search?q=",\n name: "Bing"\n }]\n };\n },\n props: {\n initBarData: {\n type: Object\n }\n },\n computed: {\n sidebarIcon: function sidebarIcon() {\n return this.$store.state.sidebarOpen ? "close" : "menu";\n },\n sidebarIconLabel: function sidebarIconLabel() {\n return this.$store.state.sidebarOpen ? "Hide Sidebar" : "Show SideBar";\n },\n isRaspberryPi: function isRaspberryPi() {\n return this.deviceModel.toLowerCase().indexOf("raspberry") >= 0;\n }\n },\n watch: {\n \'barData.lang\': {\n handler: function handler(val) {\n var lang = val.includes("_") ? val : "en_us";\n this.setLang(lang);\n },\n deep: true\n },\n \'barData.search_engine\': {\n handler: function handler(val) {\n this.$store.commit(\'changeSearchEngine\', val);\n },\n deep: true\n },\n \'barData.search_switch\': {\n handler: function handler(val) {\n this.$store.commit(\'changeSearchEngineSwitch\', val);\n },\n deep: true\n },\n \'barData.recommend_switch\': {\n handler: function handler(val) {\n this.$store.commit(\'changeRecommendSwitch\', val);\n },\n deep: true\n }\n },\n created: function created() {\n this.barData = this.initBarData; // this.getConfig();\n\n this.getPort();\n },\n mounted: function mounted() {\n this.checkVersion();\n this.getUserInfo();\n this.getUsbMountState();\n this.getHardwareInfo();\n },\n methods: {\n /*************************************************\n * PART 0 Common\n **************************************************/\n\n /**\n * @description: Save CasaOs Configs\n * @param {*}\n * @return {*}\n */\n saveData: function saveData() {\n var _this = this;\n\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var saveRes;\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.user.postCustomConfig(_this.user_id, systemConfigName, _this.barData);\n\n case 2:\n saveRes = _context.sent;\n\n if (saveRes.data.success === 200) {\n _this.barData = saveRes.data.data;\n }\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\n * @description: Handle Dropmenu state\n * @param {Boolean} isOpen\n * @return {*}\n */\n onOpen: function onOpen(isOpen) {\n if (isOpen) {\n this.$store.commit(\'closeSideBar\');\n this.checkVersion();\n }\n },\n\n /**\n * @description: Show SideBar\n * @param {*}\n * @return {*}\n */\n showSideBar: function showSideBar() {\n this.$store.commit(\'changeSideBarState\');\n },\n\n /*************************************************\n * PART 1-2 Dashboard Setting - Language\n **************************************************/\n\n /**\n * @description: Get Initnal Language\n * @param {*}\n * @return {String} lang\n */\n getInitLang: function getInitLang() {\n var lang = localStorage.getItem(\'lang\') ? localStorage.getItem(\'lang\') : this.getLangFromBrowser();\n lang = lang.includes("_") ? lang : "en_us";\n return lang;\n },\n\n /*************************************************\n * PART 1-3 Dashboard Setting - Web UI Port\n **************************************************/\n\n /**\n * @description: Get CasaOs WebUI port\n * @return {*} \n */\n getPort: function getPort() {\n var _this2 = this;\n\n this.$api.info.getSystemPort().then(function (res) {\n if (res.data.success == 200) {\n _this2.port = res.data.data;\n }\n });\n },\n\n /**\n * @description: Show Port panel\n * @return {*} \n */\n showPortPanel: function showPortPanel() {\n this.$refs.settingsDrop.toggle();\n this.$buefy.modal.open({\n parent: this,\n component: _settings_PortPanel_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n hasModalCard: true,\n customClass: \'account-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n initPort: this.port\n }\n });\n },\n showChangeWallpaperModal: function showChangeWallpaperModal() {\n this.$EventBus.$emit("showChangeWallpaperModal");\n this.$refs.settingsDrop.toggle();\n },\n\n /*************************************************\n * PART 1-4 Dashboard Setting - Auto USB Mount Switch\n **************************************************/\n\n /**\n * @description: Get Auto USB Mount State\n * @return {*} \n */\n getUsbMountState: function getUsbMountState() {\n var _this3 = this;\n\n this.$api.info.getUsbMountState().then(function (res) {\n if (res.data.success == 200) {\n _this3.autoUsbMount = res.data.data === "True";\n }\n });\n },\n\n /**\n * @description: Enable or Disable USB Auto Mount\n * @param {*}\n * @return {*}\n */\n usbAutoMount: function usbAutoMount() {\n if (this.autoUsbMount) {\n this.$api.info.setUsbMountOn(); // Show \n\n if (this.isRaspberryPi) {\n this.$buefy.snackbar.open({\n message: this.$t(\'Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB\'),\n type: \'is-warning\',\n position: \'is-top\'\n });\n }\n } else {\n this.$api.info.setUsbMountOff();\n }\n },\n\n /**\n * @description: Get Hardware Info etc. Board Info\n * @param {*}\n * @return {*}\n */\n getHardwareInfo: function getHardwareInfo() {\n var _this4 = this;\n\n this.$api.info.hardwareInfo().then(function (res) {\n if (res.data.success == 200) {\n _this4.deviceModel = res.data.data.drive_model;\n }\n });\n },\n\n /*************************************************\n * PART 1-5 Dashboard Setting - Update\n **************************************************/\n\n /**\n * @description: Get Version info \n * @return {*} void\n */\n checkVersion: function checkVersion() {\n var _this5 = this;\n\n this.$api.info.checkVersion().then(function (res) {\n if (res.data.success == 200) {\n _this5.updateInfo = res.data.data;\n }\n });\n },\n\n /**\n * @description: Open Update Modal\n * @return {*} void\n */\n showUpdateModal: function showUpdateModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _settings_UpdateModal_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: \'keep\',\n animation: \'zoom-in\',\n props: {\n changeLog: this.updateInfo.version.change_log\n }\n });\n },\n\n /*************************************************\n * PART 2 Userinfo\n **************************************************/\n\n /**\n * @description: Get user info\n * @return {*} void\n */\n getUserInfo: function getUserInfo() {\n var _this6 = this;\n\n this.$store.commit(\'closeSideBar\');\n\n if (!this.$store.userinfo) {\n var user_id = localStorage.getItem(\'user_id\') ? localStorage.getItem(\'user_id\') : 1;\n localStorage.setItem("user_id", user_id);\n this.$api.user.getUserInfo(user_id).then(function (res) {\n if (res.data.success == 200) {\n _this6.$store.commit(\'changeUserInfo\', res.data.data);\n\n _this6.userInfo = res.data.data;\n }\n });\n }\n },\n\n /**\n * @description: Show Account panel\n * @return {*} void\n */\n showAccountPanel: function showAccountPanel() {\n this.$buefy.modal.open({\n parent: this,\n component: _account_AccountPanel_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n hasModalCard: true,\n customClass: \'account-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in"\n });\n },\n logout: function logout() {\n this.$store.commit(\'setDefaultWallpaper\');\n this.$router.push("/logout");\n },\n\n /*************************************************\n * PART 3 Terminal\n **************************************************/\n\n /**\n * @description: Show Terminal panel\n * @return {*} void\n */\n showTerminalPanel: function showTerminalPanel() {\n this.$store.commit(\'closeSideBar\');\n this.$buefy.modal.open({\n parent: this,\n component: _logsAndTerminal_TerminalPanel_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n hasModalCard: true,\n customClass: \'terminal-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in"\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/TopBar.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/account/AccountPanel.vue?vue&type=script&lang=js&":
/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/account/AccountPanel.vue?vue&type=script&lang=js& ***!
\*****************************************************************************************************************************************************************************************************************************************************************/
@@ -58,7 +58,7 @@
/*!******************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/FilePanel.vue?vue&type=script&lang=js& ***!
\******************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/dropRight */ "./node_modules/lodash/dropRight.js");\n/* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_dropRight__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _sidebar_TreeList_vue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./sidebar/TreeList.vue */ "./src/components/filebrowser/sidebar/TreeList.vue");\n/* harmony import */ var _components_GirdView_vue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/GirdView.vue */ "./src/components/filebrowser/components/GirdView.vue");\n/* harmony import */ var _components_ListView_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/ListView.vue */ "./src/components/filebrowser/components/ListView.vue");\n/* harmony import */ var _components_FileBreadcrumb_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/FileBreadcrumb.vue */ "./src/components/filebrowser/components/FileBreadcrumb.vue");\n/* harmony import */ var _components_EmptyHolder_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/EmptyHolder.vue */ "./src/components/filebrowser/components/EmptyHolder.vue");\n/* harmony import */ var _modals_DetailModal_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./modals/DetailModal.vue */ "./src/components/filebrowser/modals/DetailModal.vue");\n/* harmony import */ var _modals_NewFolderModal_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./modals/NewFolderModal.vue */ "./src/components/filebrowser/modals/NewFolderModal.vue");\n/* harmony import */ var _modals_NewFileModal_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./modals/NewFileModal.vue */ "./src/components/filebrowser/modals/NewFileModal.vue");\n/* harmony import */ var _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./modals/RenameModal.vue */ "./src/components/filebrowser/modals/RenameModal.vue");\n/* harmony import */ var _uploader_components_uploader_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./uploader/components/uploader.vue */ "./src/components/filebrowser/uploader/components/uploader.vue");\n/* harmony import */ var _uploader_components_unsupport_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./uploader/components/unsupport.vue */ "./src/components/filebrowser/uploader/components/unsupport.vue");\n/* harmony import */ var _uploader_components_list_vue__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./uploader/components/list.vue */ "./src/components/filebrowser/uploader/components/list.vue");\n/* harmony import */ var _components_OperationToolbar_vue__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/OperationToolbar.vue */ "./src/components/filebrowser/components/OperationToolbar.vue");\n/* harmony import */ var _components_OperationStatusBar_vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/OperationStatusBar.vue */ "./src/components/filebrowser/components/OperationStatusBar.vue");\n/* harmony import */ var _components_GlobalActionButton_vue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/GlobalActionButton.vue */ "./src/components/filebrowser/components/GlobalActionButton.vue");\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "file-panel",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_13__["mixin"]],\n provide: function provide() {\n return {\n filePanel: this\n };\n },\n components: {\n ListView: _components_ListView_vue__WEBPACK_IMPORTED_MODULE_16__["default"],\n GirdView: _components_GirdView_vue__WEBPACK_IMPORTED_MODULE_15__["default"],\n FileBreadcrumb: _components_FileBreadcrumb_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n TreeList: _sidebar_TreeList_vue__WEBPACK_IMPORTED_MODULE_14__["default"],\n Uploader: _uploader_components_uploader_vue__WEBPACK_IMPORTED_MODULE_23__["default"],\n UploaderUnsupport: _uploader_components_unsupport_vue__WEBPACK_IMPORTED_MODULE_24__["default"],\n UploaderList: _uploader_components_list_vue__WEBPACK_IMPORTED_MODULE_25__["default"],\n CodeEditor: function CodeEditor() {\n return Promise.all(/*! import() */[__webpack_require__.e(11), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, /*! ./viewers/CodeEditor.vue */ "./src/components/filebrowser/viewers/CodeEditor.vue"));\n },\n VideoPlayer: function VideoPlayer() {\n return Promise.all(/*! import() */[__webpack_require__.e(19), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, /*! ./viewers/VideoPlayer.vue */ "./src/components/filebrowser/viewers/VideoPlayer.vue"));\n },\n ImageViewer: function ImageViewer() {\n return Promise.all(/*! import() */[__webpack_require__.e(18), __webpack_require__.e(16)]).then(__webpack_require__.bind(null, /*! ./viewers/ImageViewer.vue */ "./src/components/filebrowser/viewers/ImageViewer.vue"));\n },\n EmptyHolder: _components_EmptyHolder_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n OperationToolbar: _components_OperationToolbar_vue__WEBPACK_IMPORTED_MODULE_26__["default"],\n RenameModal: _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n OperationStatusBar: _components_OperationStatusBar_vue__WEBPACK_IMPORTED_MODULE_27__["default"],\n GlobalActionButton: _components_GlobalActionButton_vue__WEBPACK_IMPORTED_MODULE_28__["default"]\n },\n data: function data() {\n return {\n isLoading: true,\n isModalOpen: false,\n isDragIn: false,\n isPasting: false,\n isShowDetial: false,\n panelType: null,\n currentItem: null,\n rootPath: "/DATA",\n currentPath: "",\n currentPathName: "",\n isViewGird: true,\n listData: [],\n selectedArray: [],\n file: null,\n timeout: null,\n uploadPercentage: 0,\n hasPasteData: this.$store.state.operateObject != null,\n uploaderInstance: {},\n selectState: "none",\n isSelectAll: false,\n selectLabel: "",\n isToolbarShow: false,\n options: {\n target: this.getTargetUrl(),\n testChunks: true,\n uploadMethod: "POST",\n successStatuses: [200, 201, 202, 2002],\n allowDuplicateUploads: true // chunkSize: 1024 * 1024 * 1024 * 1024\n\n },\n attrs: {\n accept: \'*\'\n },\n // Uploader List\n showUploadList: false,\n uploaderListHeaderText: "Uploading"\n };\n },\n computed: {\n viewIcon: function viewIcon() {\n return this.$store.state.isViewGird ? "view-grid-outline" : "format-list-bulleted";\n },\n listView: function listView() {\n return this.$store.state.isViewGird ? "gird-view" : "list-view";\n }\n },\n watch: {\n \'$store.state.operateObject\': {\n handler: function handler(val) {\n this.hasPasteData = val != null;\n },\n deep: true\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n this.init();\n this.setUploaderOpts();\n document.addEventListener(\'contextmenu\', this.hideContextMenu); // Listen to ESC button to exit preview\n\n document.onkeyup = function (e) {\n switch (e.code) {\n case \'Escape\':\n if (_this.isShowDetial) {\n _this.$refs.previewPanel.close();\n }\n\n break;\n\n case \'Backspace\':\n _this.backLevel();\n\n break;\n\n default:\n break;\n }\n }; // paste\n\n\n document.onpaste = function () {\n _this.paste(\'overwrite\');\n };\n },\n destroyed: function destroyed() {\n this.uploaderInstance.off(\'dragover\');\n this.uploaderInstance.off(\'uploadStart\');\n document.removeEventListener(\'contextmenu\', this.hideContextMenu);\n this.$store.commit(\'changeOperateObject\', null);\n document.onpaste = null;\n document.onkeyup = null;\n },\n methods: {\n /*************************************************\r\n * PART 0 Self\r\n **************************************************/\n\n /**\r\n * @description: Init Funtion\r\n * @return {*}\r\n */\n init: function init() {\n this.getFileList(this.rootPath);\n },\n\n /**\r\n * @description: Get File Tree List\r\n * @param {String} path\r\n * @return {*}\r\n */\n getFileList: function getFileList(path) {\n var _this2 = this;\n\n this.isLoading = true; // path = path.replace("//", "/")\n\n this.$api.file.dirPath(path).then(function (res) {\n if (res.data.success == 200) {\n _this2.isLoading = false;\n _this2.currentPath = path;\n _this2.currentPathName = path.split("/").pop();\n _this2.uploaderInstance.opts.query = {\n path: _this2.currentPath\n };\n\n _this2.$store.commit(\'changeCurrentPath\', path);\n\n var fileList = res.data.data;\n var newFileList = fileList.map(function (item) {\n return {\n date: item.data,\n isSelected: false,\n is_dir: item.is_dir,\n name: item.name,\n path: item.path,\n size: item.size,\n write: item.write\n };\n });\n _this2.listData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_11___default()(newFileList, [\'is_dir\'], [\'desc\']);\n\n _this2.handelListChange(_this2.listData);\n }\n });\n },\n\n /**\r\n * @description: Reload current folder\r\n * @return {*}\r\n */\n reload: function reload() {\n this.getFileList(this.currentPath);\n },\n\n /**\r\n * @description: Change View List/Gird\r\n * @return {*}\r\n */\n changeView: function changeView() {\n this.isViewGird = !this.$store.state.isViewGird;\n this.$store.commit(\'changeViewGird\', this.isViewGird);\n },\n\n /**\r\n * @description: Handle Select All Action\r\n * @param {*} bool\r\n * @return {*}\r\n */\n handleSelect: function handleSelect(bool) {\n var _this3 = this;\n\n if (bool) {\n this.listData.forEach(function (item, index) {\n item.isSelected = true;\n\n _this3.$refs.listview.selectList.push(index);\n });\n } else {\n this.listData.forEach(function (item) {\n item.isSelected = false;\n });\n this.$refs.listview.selectList = [];\n }\n\n this.handelListChange(this.listData);\n },\n\n /**\r\n * @description: Handle List data change (Selected State)\r\n * @param {*} list\r\n * @return {*}\r\n */\n handelListChange: function handelListChange(list) {\n this.selectedArray = list.filter(function (item) {\n return item.isSelected;\n });\n\n if (this.selectedArray.length == list.length && list.length > 0) {\n this.selectState = "all";\n this.isSelectAll = true;\n this.selectLabel = this.$t("select-items", {\n num: list.length\n });\n this.isToolbarShow = true;\n } else if (this.selectedArray.length < list.length && this.selectedArray.length > 0) {\n this.selectState = "part";\n this.isSelectAll = false;\n this.selectLabel = this.$t("select-items", {\n num: this.selectedArray.length\n });\n this.isToolbarShow = true;\n } else {\n this.selectState = "none";\n this.isSelectAll = false;\n this.selectLabel = this.$t("total-items", {\n num: list.length\n });\n this.isToolbarShow = false;\n }\n },\n\n /**\r\n * @description: Handle Backspace Event Back to upper level\r\n * @return {*}\r\n */\n backLevel: function backLevel() {\n if (this.isModalOpen) return false;\n var pathArr = this.$store.state.currentPath.substr(1).split("/");\n\n if (pathArr.length == 1) {\n return false;\n }\n\n var newPath = "/" + lodash_dropRight__WEBPACK_IMPORTED_MODULE_12___default()(pathArr).join("/");\n this.getFileList(newPath);\n },\n\n /**\r\n * @description: Paste Files\r\n * @return {*}\r\n */\n paste: function paste() {\n var _this4 = this;\n\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "overwrite";\n this.isPasting = true;\n var operateObject = this.$store.state.operateObject;\n operateObject.to = this.$store.state.currentPath;\n operateObject.style = style;\n this.$api.file.operate(operateObject).then(function (res) {\n _this4.isPasting = false;\n\n if (res.data.success == 200) {\n _this4.$store.commit(\'changeOperateObject\', null);\n } else {\n _this4.$buefy.toast.open({\n message: res.data.message,\n type: \'is-danger\'\n });\n }\n });\n },\n\n /**\r\n * @description: Hide Context Menu\r\n * @return {*}\r\n */\n hideContextMenu: function hideContextMenu() {\n if (this.$refs.moreBtn) {\n this.$refs.moreBtn.isActive = false;\n }\n },\n\n /*************************************************\r\n * PART 1 Uploader\r\n **************************************************/\n\n /**\r\n * @description: Get Uploader Target URL\r\n * @return {*}\r\n */\n getTargetUrl: function getTargetUrl() {\n return "http://".concat(this.$baseURL, "/v1/file/upload?token=").concat(this.$store.state.token);\n },\n\n /**\r\n * @description: Set Uploader Options\r\n * @return {*}\r\n */\n setUploaderOpts: function setUploaderOpts() {\n var _this5 = this;\n\n this.uploaderInstance = this.$refs.uploader.uploader;\n this.assignUploadButtons(); // Drag Over\n\n this.uploaderInstance.on(\'dragover\', function (event) {\n _this5.isDragIn = true;\n\n if (_this5.timeout !== null) {\n clearTimeout(_this5.timeout);\n }\n\n _this5.timeout = setTimeout(function () {\n _this5.isDragIn = false;\n _this5.timeout = null;\n }, 120);\n event.stopPropagation();\n event.preventDefault();\n });\n this.uploaderInstance.on(\'uploadStart\', function () {\n _this5.isDragIn = false;\n _this5.showUploadList = true;\n _this5.uploaderListHeaderText = "Uploading";\n });\n this.uploaderInstance.on(\'complete\', function () {\n _this5.getFileList(_this5.currentPath);\n\n _this5.uploaderListHeaderText = "Completed";\n });\n },\n\n /**\r\n * @description: Close Uploader List \r\n * @return {*}\r\n */\n closeUploaderList: function closeUploaderList() {\n this.showUploadList = false;\n this.uploaderInstance.cancel();\n },\n\n /**\r\n * @description: Assig nUpload Buttons\r\n * @return {*}\r\n */\n assignUploadButtons: function assignUploadButtons() {\n this.uploaderInstance.assignDrop(document.getElementById(\'dropTarget\'));\n },\n\n /*************************************************\r\n * PART 2 Modals\r\n **************************************************/\n\n /**\r\n * @description: Show Detail Modal\r\n * @param {Object} item\r\n * @return {*}\r\n */\n showDetailModal: function showDetailModal(item) {\n var _this6 = this;\n\n this.isModalOpen = true;\n this.panelType = this.getPanelType(item);\n\n if (this.panelType !== null) {\n this.currentItem = item;\n this.isShowDetial = true;\n } else {\n this.$buefy.modal.open({\n parent: this,\n component: _modals_DetailModal_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n hasModalCard: true,\n customClass: \'detail-panel file-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n item: item\n },\n events: {\n \'close\': function close() {\n _this6.isModalOpen = false;\n }\n }\n });\n }\n },\n\n /**\r\n * @description: Show New Folder Modal\r\n * @return {*}\r\n */\n showNewFolderModal: function showNewFolderModal() {\n var _this7 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_NewFolderModal_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n hasModalCard: true,\n customClass: \'new-folder-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n currentPath: this.currentPath\n },\n events: {\n \'reload\': function reload() {\n _this7.reload();\n },\n \'close\': function close() {\n _this7.isModalOpen = false;\n }\n }\n });\n },\n\n /**\r\n * @description: Show New File Modal\r\n * @return {*}\r\n */\n showNewFileModal: function showNewFileModal() {\n var _this8 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_NewFileModal_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n hasModalCard: true,\n customClass: \'new-folder-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n currentPath: this.currentPath\n },\n events: {\n \'reload\': function reload() {\n _this8.reload();\n },\n \'close\': function close() {\n _this8.isModalOpen = false;\n }\n }\n });\n },\n\n /**\r\n * @description: Show Rename Modal\r\n * @param {Object} item\r\n * @return {*}\r\n */\n showRenameModal: function showRenameModal(item) {\n var _this9 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n hasModalCard: true,\n customClass: \'rename-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'reload\': function reload() {\n _this9.reload();\n },\n \'close\': function close() {\n _this9.isModalOpen = false;\n }\n },\n props: {\n item: item\n }\n });\n },\n\n /*************************************************\r\n * PART 3 Toolbar Action\r\n **************************************************/\n\n /**\r\n * @description: handle Toolbar Close\r\n * @return {*}\r\n */\n handleClose: function handleClose() {\n this.isSelectAll = false;\n this.handleSelect(this.isSelectAll);\n },\n\n /**\r\n * @description: handle Toolbar Remove\r\n * @return {*}\r\n */\n handleRemove: function handleRemove() {\n var _this10 = this;\n\n this.$buefy.dialog.confirm({\n title: this.$t(\'Deleting files\'),\n message: this.$t(\'Are you sure you want to <b>delete</b> these files? This action cannot be undone.\'),\n confirmText: this.$t(\'Delete\'),\n type: \'is-danger\',\n hasIcon: true,\n onConfirm: function onConfirm() {\n _this10.deleteItem(_this10.selectedArray);\n\n _this10.handleClose();\n }\n });\n },\n\n /**\r\n * @description: Handle Toolbar Move\r\n * @return {*}\r\n */\n handleMove: function handleMove() {\n this.operate(\'move\', this.selectedArray);\n this.handleClose();\n },\n\n /**\r\n * @description: Handle Toolbar copy\r\n * @return {*}\r\n */\n handleCopy: function handleCopy() {\n this.operate(\'copy\', this.selectedArray);\n this.handleClose();\n },\n\n /**\r\n * @description: handle Toolbar Download\r\n * @return {*}\r\n */\n handleDownload: function handleDownload() {\n var downItem = this.selectedArray.length == 1 ? this.selectedArray[0] : this.selectedArray;\n this.downloadFile(downItem);\n this.handleClose();\n }\n },\n sockets: {\n file_operate: function file_operate(data) {\n var _this11 = this;\n\n var taskList = data.body.file_operate.data;\n taskList.forEach(function (task) {\n if (task.finished && task.to === _this11.currentPath) {\n _this11.reload();\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/FilePanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/components/ActionButton.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/dropRight */ "./node_modules/lodash/dropRight.js");\n/* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_dropRight__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _sidebar_TreeList_vue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./sidebar/TreeList.vue */ "./src/components/filebrowser/sidebar/TreeList.vue");\n/* harmony import */ var _components_GirdView_vue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/GirdView.vue */ "./src/components/filebrowser/components/GirdView.vue");\n/* harmony import */ var _components_ListView_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/ListView.vue */ "./src/components/filebrowser/components/ListView.vue");\n/* harmony import */ var _components_FileBreadcrumb_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/FileBreadcrumb.vue */ "./src/components/filebrowser/components/FileBreadcrumb.vue");\n/* harmony import */ var _components_EmptyHolder_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/EmptyHolder.vue */ "./src/components/filebrowser/components/EmptyHolder.vue");\n/* harmony import */ var _modals_DetailModal_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./modals/DetailModal.vue */ "./src/components/filebrowser/modals/DetailModal.vue");\n/* harmony import */ var _modals_NewFolderModal_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./modals/NewFolderModal.vue */ "./src/components/filebrowser/modals/NewFolderModal.vue");\n/* harmony import */ var _modals_NewFileModal_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./modals/NewFileModal.vue */ "./src/components/filebrowser/modals/NewFileModal.vue");\n/* harmony import */ var _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./modals/RenameModal.vue */ "./src/components/filebrowser/modals/RenameModal.vue");\n/* harmony import */ var _uploader_components_uploader_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./uploader/components/uploader.vue */ "./src/components/filebrowser/uploader/components/uploader.vue");\n/* harmony import */ var _uploader_components_unsupport_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./uploader/components/unsupport.vue */ "./src/components/filebrowser/uploader/components/unsupport.vue");\n/* harmony import */ var _uploader_components_list_vue__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./uploader/components/list.vue */ "./src/components/filebrowser/uploader/components/list.vue");\n/* harmony import */ var _components_OperationToolbar_vue__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/OperationToolbar.vue */ "./src/components/filebrowser/components/OperationToolbar.vue");\n/* harmony import */ var _components_OperationStatusBar_vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/OperationStatusBar.vue */ "./src/components/filebrowser/components/OperationStatusBar.vue");\n/* harmony import */ var _components_GlobalActionButton_vue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/GlobalActionButton.vue */ "./src/components/filebrowser/components/GlobalActionButton.vue");\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "file-panel",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_13__["mixin"]],\n provide: function provide() {\n return {\n filePanel: this\n };\n },\n components: {\n ListView: _components_ListView_vue__WEBPACK_IMPORTED_MODULE_16__["default"],\n GirdView: _components_GirdView_vue__WEBPACK_IMPORTED_MODULE_15__["default"],\n FileBreadcrumb: _components_FileBreadcrumb_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n TreeList: _sidebar_TreeList_vue__WEBPACK_IMPORTED_MODULE_14__["default"],\n Uploader: _uploader_components_uploader_vue__WEBPACK_IMPORTED_MODULE_23__["default"],\n UploaderUnsupport: _uploader_components_unsupport_vue__WEBPACK_IMPORTED_MODULE_24__["default"],\n UploaderList: _uploader_components_list_vue__WEBPACK_IMPORTED_MODULE_25__["default"],\n CodeEditor: function CodeEditor() {\n return Promise.all(/*! import() */[__webpack_require__.e(11), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, /*! ./viewers/CodeEditor.vue */ "./src/components/filebrowser/viewers/CodeEditor.vue"));\n },\n VideoPlayer: function VideoPlayer() {\n return Promise.all(/*! import() */[__webpack_require__.e(19), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, /*! ./viewers/VideoPlayer.vue */ "./src/components/filebrowser/viewers/VideoPlayer.vue"));\n },\n ImageViewer: function ImageViewer() {\n return Promise.all(/*! import() */[__webpack_require__.e(18), __webpack_require__.e(16)]).then(__webpack_require__.bind(null, /*! ./viewers/ImageViewer.vue */ "./src/components/filebrowser/viewers/ImageViewer.vue"));\n },\n EmptyHolder: _components_EmptyHolder_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n OperationToolbar: _components_OperationToolbar_vue__WEBPACK_IMPORTED_MODULE_26__["default"],\n RenameModal: _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n OperationStatusBar: _components_OperationStatusBar_vue__WEBPACK_IMPORTED_MODULE_27__["default"],\n GlobalActionButton: _components_GlobalActionButton_vue__WEBPACK_IMPORTED_MODULE_28__["default"]\n },\n data: function data() {\n return {\n isLoading: true,\n isModalOpen: false,\n isDragIn: false,\n isPasting: false,\n isShowDetial: false,\n panelType: null,\n currentItem: null,\n rootPath: "/DATA",\n currentPath: "",\n currentPathName: "",\n isViewGird: true,\n listData: [],\n selectedArray: [],\n file: null,\n timeout: null,\n uploadPercentage: 0,\n hasPasteData: this.$store.state.operateObject != null,\n uploaderInstance: {},\n selectState: "none",\n isSelectAll: false,\n selectLabel: "",\n isToolbarShow: false,\n options: {\n target: this.getTargetUrl(),\n testChunks: true,\n uploadMethod: "POST",\n successStatuses: [200, 201, 202, 2002],\n allowDuplicateUploads: true // chunkSize: 1024 * 1024 * 1024 * 1024\n\n },\n attrs: {\n accept: \'*\'\n },\n // Uploader List\n showUploadList: false,\n uploaderListHeaderText: "Uploading"\n };\n },\n computed: {\n viewIcon: function viewIcon() {\n return this.$store.state.isViewGird ? "view-grid-outline" : "format-list-bulleted";\n },\n listView: function listView() {\n return this.$store.state.isViewGird ? "gird-view" : "list-view";\n }\n },\n watch: {\n \'$store.state.operateObject\': {\n handler: function handler(val) {\n this.hasPasteData = val != null;\n },\n deep: true\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n this.init();\n this.setUploaderOpts();\n document.addEventListener(\'contextmenu\', this.hideContextMenu); // Listen to ESC button to exit preview\n\n document.onkeyup = function (e) {\n switch (e.code) {\n case \'Escape\':\n if (_this.isShowDetial) {\n _this.$refs.previewPanel.close();\n }\n\n break;\n\n case \'Backspace\':\n _this.backLevel();\n\n break;\n\n default:\n break;\n }\n }; // paste\n\n\n document.onpaste = function () {\n _this.paste(\'overwrite\');\n };\n },\n destroyed: function destroyed() {\n this.uploaderInstance.off(\'dragover\');\n this.uploaderInstance.off(\'uploadStart\');\n document.removeEventListener(\'contextmenu\', this.hideContextMenu);\n this.$store.commit(\'changeOperateObject\', null);\n document.onpaste = null;\n document.onkeyup = null;\n },\n methods: {\n /*************************************************\n * PART 0 Self\n **************************************************/\n\n /**\n * @description: Init Funtion\n * @return {*}\n */\n init: function init() {\n this.getFileList(this.rootPath);\n },\n\n /**\n * @description: Get File Tree List\n * @param {String} path\n * @return {*}\n */\n getFileList: function getFileList(path) {\n var _this2 = this;\n\n this.isLoading = true; // path = path.replace("//", "/")\n\n this.$api.file.dirPath(path).then(function (res) {\n if (res.data.success == 200) {\n _this2.isLoading = false;\n _this2.currentPath = path;\n _this2.currentPathName = path.split("/").pop();\n _this2.uploaderInstance.opts.query = {\n path: _this2.currentPath\n };\n\n _this2.$store.commit(\'changeCurrentPath\', path);\n\n var fileList = res.data.data;\n var newFileList = fileList.map(function (item) {\n return {\n date: item.data,\n isSelected: false,\n is_dir: item.is_dir,\n name: item.name,\n path: item.path,\n size: item.size,\n write: item.write\n };\n });\n _this2.listData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_11___default()(newFileList, [\'is_dir\'], [\'desc\']);\n\n _this2.handelListChange(_this2.listData);\n }\n });\n },\n\n /**\n * @description: Reload current folder\n * @return {*}\n */\n reload: function reload() {\n this.getFileList(this.currentPath);\n },\n\n /**\n * @description: Change View List/Gird\n * @return {*}\n */\n changeView: function changeView() {\n this.isViewGird = !this.$store.state.isViewGird;\n this.$store.commit(\'changeViewGird\', this.isViewGird);\n },\n\n /**\n * @description: Handle Select All Action\n * @param {*} bool\n * @return {*}\n */\n handleSelect: function handleSelect(bool) {\n var _this3 = this;\n\n if (bool) {\n this.listData.forEach(function (item, index) {\n item.isSelected = true;\n\n _this3.$refs.listview.selectList.push(index);\n });\n } else {\n this.listData.forEach(function (item) {\n item.isSelected = false;\n });\n this.$refs.listview.selectList = [];\n }\n\n this.handelListChange(this.listData);\n },\n\n /**\n * @description: Handle List data change (Selected State)\n * @param {*} list\n * @return {*}\n */\n handelListChange: function handelListChange(list) {\n this.selectedArray = list.filter(function (item) {\n return item.isSelected;\n });\n\n if (this.selectedArray.length == list.length && list.length > 0) {\n this.selectState = "all";\n this.isSelectAll = true;\n this.selectLabel = this.$t("select-items", {\n num: list.length\n });\n this.isToolbarShow = true;\n } else if (this.selectedArray.length < list.length && this.selectedArray.length > 0) {\n this.selectState = "part";\n this.isSelectAll = false;\n this.selectLabel = this.$t("select-items", {\n num: this.selectedArray.length\n });\n this.isToolbarShow = true;\n } else {\n this.selectState = "none";\n this.isSelectAll = false;\n this.selectLabel = this.$t("total-items", {\n num: list.length\n });\n this.isToolbarShow = false;\n }\n },\n\n /**\n * @description: Handle Backspace Event Back to upper level\n * @return {*}\n */\n backLevel: function backLevel() {\n if (this.isModalOpen) return false;\n var pathArr = this.$store.state.currentPath.substr(1).split("/");\n\n if (pathArr.length == 1) {\n return false;\n }\n\n var newPath = "/" + lodash_dropRight__WEBPACK_IMPORTED_MODULE_12___default()(pathArr).join("/");\n this.getFileList(newPath);\n },\n\n /**\n * @description: Paste Files\n * @return {*}\n */\n paste: function paste() {\n var _this4 = this;\n\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "overwrite";\n this.isPasting = true;\n var operateObject = this.$store.state.operateObject;\n operateObject.to = this.$store.state.currentPath;\n operateObject.style = style;\n this.$api.file.operate(operateObject).then(function (res) {\n _this4.isPasting = false;\n\n if (res.data.success == 200) {\n _this4.$store.commit(\'changeOperateObject\', null);\n } else {\n _this4.$buefy.toast.open({\n message: res.data.message,\n type: \'is-danger\'\n });\n }\n });\n },\n\n /**\n * @description: Hide Context Menu\n * @return {*}\n */\n hideContextMenu: function hideContextMenu() {\n if (this.$refs.moreBtn) {\n this.$refs.moreBtn.isActive = false;\n }\n },\n\n /*************************************************\n * PART 1 Uploader\n **************************************************/\n\n /**\n * @description: Get Uploader Target URL\n * @return {*}\n */\n getTargetUrl: function getTargetUrl() {\n return "http://".concat(this.$baseURL, "/v1/file/upload?token=").concat(this.$store.state.token);\n },\n\n /**\n * @description: Set Uploader Options\n * @return {*}\n */\n setUploaderOpts: function setUploaderOpts() {\n var _this5 = this;\n\n this.uploaderInstance = this.$refs.uploader.uploader;\n this.assignUploadButtons(); // Drag Over\n\n this.uploaderInstance.on(\'dragover\', function (event) {\n _this5.isDragIn = true;\n\n if (_this5.timeout !== null) {\n clearTimeout(_this5.timeout);\n }\n\n _this5.timeout = setTimeout(function () {\n _this5.isDragIn = false;\n _this5.timeout = null;\n }, 120);\n event.stopPropagation();\n event.preventDefault();\n });\n this.uploaderInstance.on(\'uploadStart\', function () {\n _this5.isDragIn = false;\n _this5.showUploadList = true;\n _this5.uploaderListHeaderText = "Uploading";\n });\n this.uploaderInstance.on(\'complete\', function () {\n _this5.getFileList(_this5.currentPath);\n\n _this5.uploaderListHeaderText = "Completed";\n });\n },\n\n /**\n * @description: Close Uploader List \n * @return {*}\n */\n closeUploaderList: function closeUploaderList() {\n this.showUploadList = false;\n this.uploaderInstance.cancel();\n },\n\n /**\n * @description: Assig nUpload Buttons\n * @return {*}\n */\n assignUploadButtons: function assignUploadButtons() {\n this.uploaderInstance.assignDrop(document.getElementById(\'dropTarget\'));\n },\n\n /*************************************************\n * PART 2 Modals\n **************************************************/\n\n /**\n * @description: Show Detail Modal\n * @param {Object} item\n * @return {*}\n */\n showDetailModal: function showDetailModal(item) {\n var _this6 = this;\n\n this.isModalOpen = true;\n this.panelType = this.getPanelType(item);\n\n if (this.panelType !== null) {\n this.currentItem = item;\n this.isShowDetial = true;\n } else {\n this.$buefy.modal.open({\n parent: this,\n component: _modals_DetailModal_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n hasModalCard: true,\n customClass: \'detail-panel file-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n item: item\n },\n events: {\n \'close\': function close() {\n _this6.isModalOpen = false;\n }\n }\n });\n }\n },\n\n /**\n * @description: Show New Folder Modal\n * @return {*}\n */\n showNewFolderModal: function showNewFolderModal() {\n var _this7 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_NewFolderModal_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n hasModalCard: true,\n customClass: \'new-folder-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n currentPath: this.currentPath\n },\n events: {\n \'reload\': function reload() {\n _this7.reload();\n },\n \'close\': function close() {\n _this7.isModalOpen = false;\n }\n }\n });\n },\n\n /**\n * @description: Show New File Modal\n * @return {*}\n */\n showNewFileModal: function showNewFileModal() {\n var _this8 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_NewFileModal_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n hasModalCard: true,\n customClass: \'new-folder-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n currentPath: this.currentPath\n },\n events: {\n \'reload\': function reload() {\n _this8.reload();\n },\n \'close\': function close() {\n _this8.isModalOpen = false;\n }\n }\n });\n },\n\n /**\n * @description: Show Rename Modal\n * @param {Object} item\n * @return {*}\n */\n showRenameModal: function showRenameModal(item) {\n var _this9 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n hasModalCard: true,\n customClass: \'rename-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'reload\': function reload() {\n _this9.reload();\n },\n \'close\': function close() {\n _this9.isModalOpen = false;\n }\n },\n props: {\n item: item\n }\n });\n },\n\n /*************************************************\n * PART 3 Toolbar Action\n **************************************************/\n\n /**\n * @description: handle Toolbar Close\n * @return {*}\n */\n handleClose: function handleClose() {\n this.isSelectAll = false;\n this.handleSelect(this.isSelectAll);\n },\n\n /**\n * @description: handle Toolbar Remove\n * @return {*}\n */\n handleRemove: function handleRemove() {\n var _this10 = this;\n\n this.$buefy.dialog.confirm({\n title: this.$t(\'Deleting files\'),\n message: this.$t(\'Are you sure you want to <b>delete</b> these files? This action cannot be undone.\'),\n confirmText: this.$t(\'Delete\'),\n type: \'is-danger\',\n hasIcon: true,\n onConfirm: function onConfirm() {\n _this10.deleteItem(_this10.selectedArray);\n\n _this10.handleClose();\n }\n });\n },\n\n /**\n * @description: Handle Toolbar Move\n * @return {*}\n */\n handleMove: function handleMove() {\n this.operate(\'move\', this.selectedArray);\n this.handleClose();\n },\n\n /**\n * @description: Handle Toolbar copy\n * @return {*}\n */\n handleCopy: function handleCopy() {\n this.operate(\'copy\', this.selectedArray);\n this.handleClose();\n },\n\n /**\n * @description: handle Toolbar Download\n * @return {*}\n */\n handleDownload: function handleDownload() {\n var downItem = this.selectedArray.length == 1 ? this.selectedArray[0] : this.selectedArray;\n this.downloadFile(downItem);\n this.handleClose();\n }\n },\n sockets: {\n file_operate: function file_operate(data) {\n var _this11 = this;\n\n var taskList = data.body.file_operate.data;\n taskList.forEach(function (task) {\n if (task.finished && task.to === _this11.currentPath) {\n _this11.reload();\n }\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/FilePanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/components/ActionButton.vue?vue&type=script&lang=js&":
/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/components/ActionButton.vue?vue&type=script&lang=js& ***!
\********************************************************************************************************************************************************************************************************************************************************************************/
@@ -150,7 +150,7 @@
/*!*************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/uploader/components/uploader.vue?vue&type=script&lang=js& ***!
\*************************************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ "./node_modules/core-js/modules/es.array.slice.js");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! simple-uploader.js */ "./node_modules/simple-uploader.js/src/uploader.js");\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(simple_uploader_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/utils */ "./src/components/filebrowser/uploader/common/utils.js");\n/* harmony import */ var _btn_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./btn.vue */ "./src/components/filebrowser/uploader/components/btn.vue");\n/* harmony import */ var _drop_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./drop.vue */ "./src/components/filebrowser/uploader/components/drop.vue");\n/* harmony import */ var _unsupport_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./unsupport.vue */ "./src/components/filebrowser/uploader/components/unsupport.vue");\n/* harmony import */ var _list_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./list.vue */ "./src/components/filebrowser/uploader/components/list.vue");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n // import UploaderFiles from \'./files.vue\'\n// import UploaderFile from \'./file.vue\'\n\nvar COMPONENT_NAME = \'uploader\';\nvar FILE_ADDED_EVENT = \'fileAdded\';\nvar FILES_ADDED_EVENT = \'filesAdded\';\nvar UPLOAD_START_EVENT = \'uploadStart\';\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: COMPONENT_NAME,\n provide: function provide() {\n return {\n uploader: this\n };\n },\n props: {\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n autoStart: {\n type: Boolean,\n default: true\n },\n fileStatusText: {\n type: [Object, Function],\n default: function _default() {\n return {\n success: \'success\',\n error: \'error\',\n uploading: \'uploading\',\n paused: \'paused\',\n waiting: \'waiting\'\n };\n }\n }\n },\n data: function data() {\n return {\n started: false,\n files: [],\n fileList: []\n };\n },\n methods: {\n uploadStart: function uploadStart() {\n this.started = true;\n },\n fileAdded: function fileAdded(file) {\n this.$emit(Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(FILE_ADDED_EVENT), file);\n\n if (file.ignored) {\n // is ignored, filter it\n return false;\n }\n },\n filesAdded: function filesAdded(files, fileList) {\n this.$emit(Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(FILES_ADDED_EVENT), files, fileList);\n\n if (files.ignored || fileList.ignored) {\n // is ignored, filter it\n return false;\n }\n },\n fileRemoved: function fileRemoved() {\n this.files = this.uploader.files;\n this.fileList = this.uploader.fileList;\n },\n filesSubmitted: function filesSubmitted() {\n this.files = this.uploader.files;\n this.fileList = this.uploader.fileList;\n\n if (this.autoStart) {\n this.uploader.upload();\n }\n },\n allEvent: function allEvent() {\n var _EVENTSMAP;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var name = args[0];\n var EVENTSMAP = (_EVENTSMAP = {}, Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, FILE_ADDED_EVENT, true), Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, FILES_ADDED_EVENT, true), Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, UPLOAD_START_EVENT, \'uploadStart\'), _EVENTSMAP);\n var handler = EVENTSMAP[name];\n\n if (handler) {\n if (handler === true) {\n return;\n }\n\n this[handler].apply(this, args.slice(1));\n }\n\n args[0] = Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(name);\n this.$emit.apply(this, args);\n }\n },\n created: function created() {\n // eslint-disable-next-line vue/no-mutating-props\n this.options.initialPaused = !this.autoStart;\n var uploader = new simple_uploader_js__WEBPACK_IMPORTED_MODULE_2___default.a(this.options);\n this.uploader = uploader;\n this.uploader.fileStatusText = this.fileStatusText;\n uploader.on(\'catchAll\', this.allEvent);\n uploader.on(FILE_ADDED_EVENT, this.fileAdded);\n uploader.on(FILES_ADDED_EVENT, this.filesAdded);\n uploader.on(\'fileRemoved\', this.fileRemoved);\n uploader.on(\'filesSubmitted\', this.filesSubmitted);\n },\n destroyed: function destroyed() {\n var uploader = this.uploader;\n uploader.off(\'catchAll\', this.allEvent);\n uploader.off(FILE_ADDED_EVENT, this.fileAdded);\n uploader.off(FILES_ADDED_EVENT, this.filesAdded);\n uploader.off(\'fileRemoved\', this.fileRemoved);\n uploader.off(\'filesSubmitted\', this.filesSubmitted);\n this.uploader = null;\n },\n components: {\n UploaderBtn: _btn_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n UploaderDrop: _drop_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n UploaderUnsupport: _unsupport_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n UploaderList: _list_vue__WEBPACK_IMPORTED_MODULE_7__["default"] // UploaderFiles,\n // UploaderFile\n\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/uploader/components/uploader.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/forms/CommandsInput.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ "./node_modules/core-js/modules/es.array.slice.js");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! simple-uploader.js */ "./node_modules/simple-uploader.js/src/uploader.js");\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(simple_uploader_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/utils */ "./src/components/filebrowser/uploader/common/utils.js");\n/* harmony import */ var _btn_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./btn.vue */ "./src/components/filebrowser/uploader/components/btn.vue");\n/* harmony import */ var _drop_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./drop.vue */ "./src/components/filebrowser/uploader/components/drop.vue");\n/* harmony import */ var _unsupport_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./unsupport.vue */ "./src/components/filebrowser/uploader/components/unsupport.vue");\n/* harmony import */ var _list_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./list.vue */ "./src/components/filebrowser/uploader/components/list.vue");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n // import UploaderFiles from \'./files.vue\'\n// import UploaderFile from \'./file.vue\'\n\nvar COMPONENT_NAME = \'uploader\';\nvar FILE_ADDED_EVENT = \'fileAdded\';\nvar FILES_ADDED_EVENT = \'filesAdded\';\nvar UPLOAD_START_EVENT = \'uploadStart\';\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: COMPONENT_NAME,\n provide: function provide() {\n return {\n uploader: this\n };\n },\n props: {\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n autoStart: {\n type: Boolean,\n default: true\n },\n fileStatusText: {\n type: [Object, Function],\n default: function _default() {\n return {\n success: \'success\',\n error: \'error\',\n uploading: \'uploading\',\n paused: \'paused\',\n waiting: \'waiting\'\n };\n }\n }\n },\n data: function data() {\n return {\n started: false,\n files: [],\n fileList: []\n };\n },\n methods: {\n uploadStart: function uploadStart() {\n this.started = true;\n },\n fileAdded: function fileAdded(file) {\n this.$emit(Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(FILE_ADDED_EVENT), file);\n\n if (file.ignored) {\n // is ignored, filter it\n return false;\n }\n },\n filesAdded: function filesAdded(files, fileList) {\n this.$emit(Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(FILES_ADDED_EVENT), files, fileList);\n\n if (files.ignored || fileList.ignored) {\n // is ignored, filter it\n return false;\n }\n },\n fileRemoved: function fileRemoved() {\n this.files = this.uploader.files;\n this.fileList = this.uploader.fileList;\n },\n filesSubmitted: function filesSubmitted() {\n this.files = this.uploader.files;\n this.fileList = this.uploader.fileList;\n\n if (this.autoStart) {\n this.uploader.upload();\n }\n },\n allEvent: function allEvent() {\n var _EVENTSMAP;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var name = args[0];\n var EVENTSMAP = (_EVENTSMAP = {}, Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, FILE_ADDED_EVENT, true), Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, FILES_ADDED_EVENT, true), Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, UPLOAD_START_EVENT, \'uploadStart\'), _EVENTSMAP);\n var handler = EVENTSMAP[name];\n\n if (handler) {\n if (handler === true) {\n return;\n }\n\n this[handler].apply(this, args.slice(1));\n }\n\n args[0] = Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(name);\n this.$emit.apply(this, args);\n }\n },\n created: function created() {\n // eslint-disable-next-line vue/no-mutating-props\n this.options.initialPaused = !this.autoStart;\n var uploader = new simple_uploader_js__WEBPACK_IMPORTED_MODULE_2___default.a(this.options);\n this.uploader = uploader;\n this.uploader.fileStatusText = this.fileStatusText;\n uploader.on(\'catchAll\', this.allEvent);\n uploader.on(FILE_ADDED_EVENT, this.fileAdded);\n uploader.on(FILES_ADDED_EVENT, this.filesAdded);\n uploader.on(\'fileRemoved\', this.fileRemoved);\n uploader.on(\'filesSubmitted\', this.filesSubmitted);\n },\n destroyed: function destroyed() {\n var uploader = this.uploader;\n uploader.off(\'catchAll\', this.allEvent);\n uploader.off(FILE_ADDED_EVENT, this.fileAdded);\n uploader.off(FILES_ADDED_EVENT, this.filesAdded);\n uploader.off(\'fileRemoved\', this.fileRemoved);\n uploader.off(\'filesSubmitted\', this.filesSubmitted);\n this.uploader = null;\n },\n components: {\n UploaderBtn: _btn_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n UploaderDrop: _drop_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n UploaderUnsupport: _unsupport_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n UploaderList: _list_vue__WEBPACK_IMPORTED_MODULE_7__["default"] // UploaderFiles,\n // UploaderFile\n\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/uploader/components/uploader.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/forms/CommandsInput.vue?vue&type=script&lang=js&":
/*!****************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/forms/CommandsInput.vue?vue&type=script&lang=js& ***!
\****************************************************************************************************************************************************************************************************************************************************************/
@@ -166,7 +166,7 @@
/*!**************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/forms/ImportPanel.vue?vue&type=script&lang=js& ***!
\**************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.string.trim.js */ "./node_modules/core-js/modules/es.string.trim.js");\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.object.values.js */ "./node_modules/core-js/modules/es.object.values.js");\n/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.object.entries.js */ "./node_modules/core-js/modules/es.object.entries.js");\n/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.array.from.js */ "./node_modules/core-js/modules/es.array.from.js");\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.array.splice.js */ "./node_modules/core-js/modules/es.array.splice.js");\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! lodash/upperFirst */ "./node_modules/lodash/upperFirst.js");\n/* harmony import */ var lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! lodash/lowerFirst */ "./node_modules/lodash/lowerFirst.js");\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var yargs_parser__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! yargs-parser */ "./node_modules/yargs-parser/build/lib/index.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! lodash/concat */ "./node_modules/lodash/concat.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(lodash_concat__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_24__);\n/* harmony import */ var yamljs__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! yamljs */ "./node_modules/yamljs/lib/Yaml.js");\n/* harmony import */ var yamljs__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(yamljs__WEBPACK_IMPORTED_MODULE_25__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n activeTab: 0,\n file: {},\n dropFiles: {},\n dockerCliCommands: "",\n dockerComposeCommands: "",\n parseError: false,\n appFileLoaded: false,\n errors: "",\n dropText: this.$t(\'Drop your app file here or click to upload\'),\n updateData: this.initData\n };\n },\n props: {\n initData: Object,\n netWorks: Array,\n oriNetWorks: Array,\n deviceMemory: Number\n },\n created: function created() {//console.log(this.oriNetWorks);\n },\n methods: {\n /**\r\n * @description: Emit Event to tell parent Update\r\n * @param {*}\r\n * @return {*} void\r\n */\n emitSubmit: function emitSubmit() {\n if (this.activeTab == 0) {\n if (this.parseCli()) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please fill correct command line\');\n this.parseError = true;\n }\n } else if (this.activeTab == 1) {\n if (this.parseComposeYaml()) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please fill correct compose YAML\');\n this.parseError = true;\n }\n } else if (this.activeTab == 2) {\n if (this.appFileLoaded) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please import a valid App file\');\n this.parseError = true;\n }\n }\n },\n volumeAutoCheck: function volumeAutoCheck(containerPath, hostPath, appName) {\n var finalHostPath = hostPath;\n var rootDir = "/DATA";\n var checkArray = [{\n keywords: ["config"],\n value: "/AppData/".concat(appName).concat(containerPath)\n }, {\n keywords: ["tvshows", "TV", "tv"],\n value: "/Media/TV Shows"\n }, {\n keywords: ["movies", "Movie", "movie"],\n value: "/Media/Movies"\n }, {\n keywords: ["Music", "music"],\n value: "/Media/Music"\n }, {\n keywords: ["download"],\n value: "/Downloads"\n }, {\n keywords: ["pictures", "photo"],\n value: "/Gallery"\n }, {\n keywords: ["media"],\n value: "/Media"\n }];\n checkArray.forEach(function (item) {\n if (item.keywords.some(function (keywordsItem) {\n return containerPath.includes(keywordsItem);\n })) {\n finalHostPath = rootDir + item.value;\n return;\n }\n });\n return finalHostPath;\n },\n\n /**\r\n * @description: Parse Import Docker Cli Commands\r\n * @return {Boolean} \r\n */\n parseCli: function parseCli() {\n var _this2 = this;\n\n var formattedInput = this.dockerCliCommands.replace(/<[^>]*>/g, \'Custom_data\').replace(/[\\r\\n]/g, "").replace(/\\\\/g, "\\\\ ").replace("-d", "").replace(/[\\\\]/g, \'\').trim();\n var parsedInput = Object(yargs_parser__WEBPACK_IMPORTED_MODULE_22__["default"])(formattedInput);\n var command = parsedInput._;\n\n if (command[0] !== \'docker\' || command[1] !== \'run\' && command[1] !== \'create\') {\n return false;\n } else {\n //Image\n this.updateData.image = Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(command).pop(); //Label\n\n if (parsedInput.name != undefined) {\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default()(parsedInput.name);\n } else {\n var imageArray = this.updateData.image.split("/");\n\n var lastNode = Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(imageArray).pop();\n\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default()(lastNode.split(":")[0]);\n } //Envs\n\n\n var env = lodash_concat__WEBPACK_IMPORTED_MODULE_23___default()(this.makeArray(parsedInput.e), this.makeArray(parsedInput.env));\n this.updateData.envs = env.map(function (item) {\n var ii = item.split("=");\n return {\n host: ii[1].replace(/"/g, ""),\n container: ii[0]\n };\n }); //Ports\n\n var ports = lodash_concat__WEBPACK_IMPORTED_MODULE_23___default()(this.makeArray(parsedInput.p), this.makeArray(parsedInput.publish));\n this.updateData.ports = ports.map(function (item) {\n var pArray = item.split(":");\n var endArray = pArray[1].split("/");\n var protocol = endArray[1] ? endArray[1] : \'tcp\';\n return {\n container: endArray[0],\n host: pArray[0],\n protocol: protocol\n };\n }); //Volume\n\n var volumes = lodash_concat__WEBPACK_IMPORTED_MODULE_23___default()(this.makeArray(parsedInput.v), this.makeArray(parsedInput.volume));\n this.updateData.volumes = volumes.map(function (item) {\n var ii = item.split(":");\n\n if (ii.length > 1) {\n // console.log(this.volumeAutoCheck(ii[1],ii[0], _.lowerFirst(this.updateData.label)));\n return {\n container: ii[1],\n host: _this2.volumeAutoCheck(ii[1], ii[0], lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default()(_this2.updateData.label))\n };\n } else {\n return {\n container: ii[0],\n host: _this2.volumeAutoCheck(ii[0], "", lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default()(_this2.updateData.label))\n };\n }\n }); // Devices\n\n this.updateData.devices = this.makeArray(parsedInput.device).map(function (item) {\n var ii = item.split(":");\n return {\n container: ii[1],\n host: ii[0]\n };\n }); //Network\n\n var pnetwork = parsedInput.network != undefined ? parsedInput.network : parsedInput.net;\n\n if (pnetwork != undefined) {\n var network = pnetwork == \'physical\' ? \'macvlan\' : pnetwork;\n var seletNetworks = this.netWorks.filter(function (item) {\n if (item.driver == network) {\n return true;\n }\n });\n\n if (seletNetworks.length > 0) {\n this.updateData.network_model = seletNetworks[0].networks[0].name;\n }\n } //privileged\n\n\n this.updateData.privileged = parsedInput.privileged != undefined; //cap-add\n\n this.updateData.cap_add = this.makeArray(parsedInput.capAdd); //hostname\n\n if (parsedInput.hostname != undefined) {\n this.updateData.host_name = parsedInput.hostname;\n } else {\n if (parsedInput.h != undefined) {\n this.updateData.host_name = parsedInput.h;\n } else {\n this.updateData.host_name = "";\n }\n } //Restart\n\n\n if (parsedInput.restart != undefined) {\n this.updateData.restart = parsedInput.restart;\n }\n\n return true;\n }\n },\n\n /**\r\n * @description: Make String to Array\r\n * @param {*}\r\n * @return {Array}\r\n */\n makeArray: function makeArray(foo) {\n var newArray = typeof foo == "string" ? [foo] : foo;\n return newArray == undefined ? [] : newArray;\n },\n\n /**\r\n * @description: Parse Import Docker Compose Commands\r\n * @return {Boolean} \r\n */\n parseComposeYaml: function parseComposeYaml() {\n var _this3 = this;\n\n try {\n var yaml = yamljs__WEBPACK_IMPORTED_MODULE_25___default.a.parse(this.dockerComposeCommands);\n\n if (yaml.version === undefined) {\n return false;\n }\n\n var parsedInput = Object.values(yaml.services)[0]; // Image\n\n this.updateData.image = parsedInput.image; // Label\n\n if (parsedInput.container_name != undefined) {\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default()(parsedInput.container_name);\n } else {\n var imageArray = parsedInput.image.split("/");\n\n var lastNode = Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(imageArray).pop();\n\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default()(lastNode.split(":")[0]);\n } // Envs\n\n\n if (parsedInput.environment) {\n var envArray = Array.isArray(parsedInput.environment) ? parsedInput.environment : Object.entries(parsedInput.environment);\n this.updateData.envs = envArray.map(function (item) {\n var ii = Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(item) === "object" ? Array.from(item) : item.split("=");\n return {\n host: ii[1].replace(/"/g, ""),\n container: ii[0]\n };\n });\n } else {\n this.updateData.envs = [];\n } //Ports\n\n\n this.updateData.ports = this.makeArray(parsedInput.ports).map(function (item) {\n var pArray = item.split(":");\n var endArray = pArray[1].split("/");\n var protocol = endArray[1] ? endArray[1] : \'tcp\';\n return {\n container: endArray[0],\n host: pArray[0],\n protocol: protocol\n };\n }); //Volume\n\n this.updateData.volumes = this.makeArray(parsedInput.volumes).map(function (item) {\n var ii = item.split(":");\n\n if (ii.length > 1) {\n return {\n container: ii[1],\n host: _this3.volumeAutoCheck(ii[1], ii[0], lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default()(_this3.updateData.label))\n };\n } else {\n return {\n container: ii[0],\n host: _this3.volumeAutoCheck(ii[0], "", lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default()(_this3.updateData.label))\n };\n }\n }); // Devices\n\n this.updateData.devices = this.makeArray(parsedInput.device).map(function (item) {\n var ii = item.split(":");\n return {\n container: ii[1],\n host: ii[0]\n };\n }); //Network\n\n var pnetwork = parsedInput.network_mode != undefined ? parsedInput.network_mode : parsedInput.network != undefined ? parsedInput.network[0] : undefined;\n\n if (pnetwork != undefined) {\n var network = pnetwork == \'physical\' ? \'macvlan\' : pnetwork;\n var seletNetworks = this.netWorks.filter(function (item) {\n if (item.driver == network) {\n return true;\n }\n });\n\n if (seletNetworks.length > 0) {\n this.updateData.network_model = seletNetworks[0].networks[0].name;\n }\n } //hostname\n\n\n this.updateData.host_name = parsedInput.hostname != undefined ? parsedInput.hostname : ""; // privileged\n\n this.updateData.privileged = parsedInput.privileged != undefined; //cap-add\n\n if (parsedInput.cap_add != undefined) {\n this.updateData.cap_add = parsedInput.cap_add;\n } //Restart\n\n\n if (parsedInput.restart != undefined) {\n this.updateData.restart = parsedInput.restart;\n }\n\n return true;\n } catch (error) {\n console.log(error);\n return false;\n }\n },\n // Delete Drop file\n deleteDropFile: function deleteDropFile(index) {\n this.dropFiles.splice(index, 1);\n },\n onSelect: function onSelect(val) {\n var _this = this;\n\n var reader = new FileReader();\n\n if (typeof FileReader === "undefined") {\n this.$buefy.toast.open({\n duration: 3000,\n message: this.$t(\'Your browser does not support file reading.\'),\n type: \'is-danger\'\n });\n return;\n }\n\n reader.readAsText(val);\n\n reader.onload = function () {\n try {\n _this.updateData = JSON.parse(this.result);\n\n if (_this.updateData.version === undefined) {\n _this.$buefy.toast.open({\n duration: 3000,\n message: _this.$t(\'This is not a valid App file.\'),\n type: \'is-danger\'\n });\n\n _this.appFileLoaded = false;\n return false;\n } else {\n delete _this.updateData.versison;\n _this.updateData.network_model = _this.getNetworkModel(_this.updateData.network_model);\n _this.updateData.memory = _this.deviceMemory;\n\n if (!lodash_has__WEBPACK_IMPORTED_MODULE_24___default()(_this.updateData, \'protocol\')) {\n _this.updateData.protocol = "http";\n }\n\n _this.dropText = val.name + " " + _this.$t(\'has been selected\');\n _this.appFileLoaded = true;\n return true;\n }\n } catch (e) {\n _this.$buefy.toast.open({\n duration: 3000,\n message: _this.$t(\'This is not a valid json file.\'),\n type: \'is-danger\'\n });\n\n _this.appFileLoaded = false;\n return false;\n }\n };\n },\n getNetworkModel: function getNetworkModel(netName) {\n var network = this.oriNetWorks.filter(function (net) {\n return net.name == netName;\n });\n return network.length > 0 ? network[0].name : this.oriNetWorks[0].name;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/forms/ImportPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/forms/InputGroup.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.string.trim.js */ "./node_modules/core-js/modules/es.string.trim.js");\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.object.values.js */ "./node_modules/core-js/modules/es.object.values.js");\n/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.object.entries.js */ "./node_modules/core-js/modules/es.object.entries.js");\n/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.array.from.js */ "./node_modules/core-js/modules/es.array.from.js");\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.array.splice.js */ "./node_modules/core-js/modules/es.array.splice.js");\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! lodash/upperFirst */ "./node_modules/lodash/upperFirst.js");\n/* harmony import */ var lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! lodash/lowerFirst */ "./node_modules/lodash/lowerFirst.js");\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var yargs_parser__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! yargs-parser */ "./node_modules/yargs-parser/build/lib/index.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! lodash/concat */ "./node_modules/lodash/concat.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(lodash_concat__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_24__);\n/* harmony import */ var yamljs__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! yamljs */ "./node_modules/yamljs/lib/Yaml.js");\n/* harmony import */ var yamljs__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(yamljs__WEBPACK_IMPORTED_MODULE_25__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n activeTab: 0,\n file: {},\n dropFiles: {},\n dockerCliCommands: "",\n dockerComposeCommands: "",\n parseError: false,\n appFileLoaded: false,\n errors: "",\n dropText: this.$t(\'Drop your app file here or click to upload\'),\n updateData: this.initData\n };\n },\n props: {\n initData: Object,\n netWorks: Array,\n oriNetWorks: Array,\n deviceMemory: Number\n },\n created: function created() {//console.log(this.oriNetWorks);\n },\n methods: {\n /**\n * @description: Emit Event to tell parent Update\n * @param {*}\n * @return {*} void\n */\n emitSubmit: function emitSubmit() {\n if (this.activeTab == 0) {\n if (this.parseCli()) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please fill correct command line\');\n this.parseError = true;\n }\n } else if (this.activeTab == 1) {\n if (this.parseComposeYaml()) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please fill correct compose YAML\');\n this.parseError = true;\n }\n } else if (this.activeTab == 2) {\n if (this.appFileLoaded) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please import a valid App file\');\n this.parseError = true;\n }\n }\n },\n volumeAutoCheck: function volumeAutoCheck(containerPath, hostPath, appName) {\n var finalHostPath = hostPath;\n var rootDir = "/DATA";\n var checkArray = [{\n keywords: ["config"],\n value: "/AppData/".concat(appName).concat(containerPath)\n }, {\n keywords: ["tvshows", "TV", "tv"],\n value: "/Media/TV Shows"\n }, {\n keywords: ["movies", "Movie", "movie"],\n value: "/Media/Movies"\n }, {\n keywords: ["Music", "music"],\n value: "/Media/Music"\n }, {\n keywords: ["download"],\n value: "/Downloads"\n }, {\n keywords: ["pictures", "photo"],\n value: "/Gallery"\n }, {\n keywords: ["media"],\n value: "/Media"\n }];\n checkArray.forEach(function (item) {\n if (item.keywords.some(function (keywordsItem) {\n return containerPath.includes(keywordsItem);\n })) {\n finalHostPath = rootDir + item.value;\n return;\n }\n });\n return finalHostPath;\n },\n\n /**\n * @description: Parse Import Docker Cli Commands\n * @return {Boolean} \n */\n parseCli: function parseCli() {\n var _this2 = this;\n\n var formattedInput = this.dockerCliCommands.replace(/<[^>]*>/g, \'Custom_data\').replace(/[\\r\\n]/g, "").replace(/\\\\/g, "\\\\ ").replace("-d", "").replace(/[\\\\]/g, \'\').trim();\n var parsedInput = Object(yargs_parser__WEBPACK_IMPORTED_MODULE_22__["default"])(formattedInput);\n var command = parsedInput._;\n\n if (command[0] !== \'docker\' || command[1] !== \'run\' && command[1] !== \'create\') {\n return false;\n } else {\n //Image\n this.updateData.image = Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(command).pop(); //Label\n\n if (parsedInput.name != undefined) {\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default()(parsedInput.name);\n } else {\n var imageArray = this.updateData.image.split("/");\n\n var lastNode = Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(imageArray).pop();\n\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default()(lastNode.split(":")[0]);\n } //Envs\n\n\n var env = lodash_concat__WEBPACK_IMPORTED_MODULE_23___default()(this.makeArray(parsedInput.e), this.makeArray(parsedInput.env));\n this.updateData.envs = env.map(function (item) {\n var ii = item.split("=");\n return {\n host: ii[1].replace(/"/g, ""),\n container: ii[0]\n };\n }); //Ports\n\n var ports = lodash_concat__WEBPACK_IMPORTED_MODULE_23___default()(this.makeArray(parsedInput.p), this.makeArray(parsedInput.publish));\n this.updateData.ports = ports.map(function (item) {\n var pArray = item.split(":");\n var endArray = pArray[1].split("/");\n var protocol = endArray[1] ? endArray[1] : \'tcp\';\n return {\n container: endArray[0],\n host: pArray[0],\n protocol: protocol\n };\n }); //Volume\n\n var volumes = lodash_concat__WEBPACK_IMPORTED_MODULE_23___default()(this.makeArray(parsedInput.v), this.makeArray(parsedInput.volume));\n this.updateData.volumes = volumes.map(function (item) {\n var ii = item.split(":");\n\n if (ii.length > 1) {\n // console.log(this.volumeAutoCheck(ii[1],ii[0], _.lowerFirst(this.updateData.label)));\n return {\n container: ii[1],\n host: _this2.volumeAutoCheck(ii[1], ii[0], lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default()(_this2.updateData.label))\n };\n } else {\n return {\n container: ii[0],\n host: _this2.volumeAutoCheck(ii[0], "", lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default()(_this2.updateData.label))\n };\n }\n }); // Devices\n\n this.updateData.devices = this.makeArray(parsedInput.device).map(function (item) {\n var ii = item.split(":");\n return {\n container: ii[1],\n host: ii[0]\n };\n }); //Network\n\n var pnetwork = parsedInput.network != undefined ? parsedInput.network : parsedInput.net;\n\n if (pnetwork != undefined) {\n var network = pnetwork == \'physical\' ? \'macvlan\' : pnetwork;\n var seletNetworks = this.netWorks.filter(function (item) {\n if (item.driver == network) {\n return true;\n }\n });\n\n if (seletNetworks.length > 0) {\n this.updateData.network_model = seletNetworks[0].networks[0].name;\n }\n } //privileged\n\n\n this.updateData.privileged = parsedInput.privileged != undefined; //cap-add\n\n this.updateData.cap_add = this.makeArray(parsedInput.capAdd); //hostname\n\n if (parsedInput.hostname != undefined) {\n this.updateData.host_name = parsedInput.hostname;\n } else {\n if (parsedInput.h != undefined) {\n this.updateData.host_name = parsedInput.h;\n } else {\n this.updateData.host_name = "";\n }\n } //Restart\n\n\n if (parsedInput.restart != undefined) {\n this.updateData.restart = parsedInput.restart;\n }\n\n return true;\n }\n },\n\n /**\n * @description: Make String to Array\n * @param {*}\n * @return {Array}\n */\n makeArray: function makeArray(foo) {\n var newArray = typeof foo == "string" ? [foo] : foo;\n return newArray == undefined ? [] : newArray;\n },\n\n /**\n * @description: Parse Import Docker Compose Commands\n * @return {Boolean} \n */\n parseComposeYaml: function parseComposeYaml() {\n var _this3 = this;\n\n try {\n var yaml = yamljs__WEBPACK_IMPORTED_MODULE_25___default.a.parse(this.dockerComposeCommands);\n\n if (yaml.version === undefined) {\n return false;\n }\n\n var parsedInput = Object.values(yaml.services)[0]; // Image\n\n this.updateData.image = parsedInput.image; // Label\n\n if (parsedInput.container_name != undefined) {\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default()(parsedInput.container_name);\n } else {\n var imageArray = parsedInput.image.split("/");\n\n var lastNode = Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(imageArray).pop();\n\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_20___default()(lastNode.split(":")[0]);\n } // Envs\n\n\n if (parsedInput.environment) {\n var envArray = Array.isArray(parsedInput.environment) ? parsedInput.environment : Object.entries(parsedInput.environment);\n this.updateData.envs = envArray.map(function (item) {\n var ii = Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(item) === "object" ? Array.from(item) : item.split("=");\n return {\n host: ii[1].replace(/"/g, ""),\n container: ii[0]\n };\n });\n } else {\n this.updateData.envs = [];\n } //Ports\n\n\n this.updateData.ports = this.makeArray(parsedInput.ports).map(function (item) {\n var pArray = item.split(":");\n var endArray = pArray[1].split("/");\n var protocol = endArray[1] ? endArray[1] : \'tcp\';\n return {\n container: endArray[0],\n host: pArray[0],\n protocol: protocol\n };\n }); //Volume\n\n this.updateData.volumes = this.makeArray(parsedInput.volumes).map(function (item) {\n var ii = item.split(":");\n\n if (ii.length > 1) {\n return {\n container: ii[1],\n host: _this3.volumeAutoCheck(ii[1], ii[0], lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default()(_this3.updateData.label))\n };\n } else {\n return {\n container: ii[0],\n host: _this3.volumeAutoCheck(ii[0], "", lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_21___default()(_this3.updateData.label))\n };\n }\n }); // Devices\n\n this.updateData.devices = this.makeArray(parsedInput.device).map(function (item) {\n var ii = item.split(":");\n return {\n container: ii[1],\n host: ii[0]\n };\n }); //Network\n\n var pnetwork = parsedInput.network_mode != undefined ? parsedInput.network_mode : parsedInput.network != undefined ? parsedInput.network[0] : undefined;\n\n if (pnetwork != undefined) {\n var network = pnetwork == \'physical\' ? \'macvlan\' : pnetwork;\n var seletNetworks = this.netWorks.filter(function (item) {\n if (item.driver == network) {\n return true;\n }\n });\n\n if (seletNetworks.length > 0) {\n this.updateData.network_model = seletNetworks[0].networks[0].name;\n }\n } //hostname\n\n\n this.updateData.host_name = parsedInput.hostname != undefined ? parsedInput.hostname : ""; // privileged\n\n this.updateData.privileged = parsedInput.privileged != undefined; //cap-add\n\n if (parsedInput.cap_add != undefined) {\n this.updateData.cap_add = parsedInput.cap_add;\n } //Restart\n\n\n if (parsedInput.restart != undefined) {\n this.updateData.restart = parsedInput.restart;\n }\n\n return true;\n } catch (error) {\n console.log(error);\n return false;\n }\n },\n // Delete Drop file\n deleteDropFile: function deleteDropFile(index) {\n this.dropFiles.splice(index, 1);\n },\n onSelect: function onSelect(val) {\n var _this = this;\n\n var reader = new FileReader();\n\n if (typeof FileReader === "undefined") {\n this.$buefy.toast.open({\n duration: 3000,\n message: this.$t(\'Your browser does not support file reading.\'),\n type: \'is-danger\'\n });\n return;\n }\n\n reader.readAsText(val);\n\n reader.onload = function () {\n try {\n _this.updateData = JSON.parse(this.result);\n\n if (_this.updateData.version === undefined) {\n _this.$buefy.toast.open({\n duration: 3000,\n message: _this.$t(\'This is not a valid App file.\'),\n type: \'is-danger\'\n });\n\n _this.appFileLoaded = false;\n return false;\n } else {\n delete _this.updateData.versison;\n _this.updateData.network_model = _this.getNetworkModel(_this.updateData.network_model);\n _this.updateData.memory = _this.deviceMemory;\n\n if (!lodash_has__WEBPACK_IMPORTED_MODULE_24___default()(_this.updateData, \'protocol\')) {\n _this.updateData.protocol = "http";\n }\n\n _this.dropText = val.name + " " + _this.$t(\'has been selected\');\n _this.appFileLoaded = true;\n return true;\n }\n } catch (e) {\n _this.$buefy.toast.open({\n duration: 3000,\n message: _this.$t(\'This is not a valid json file.\'),\n type: \'is-danger\'\n });\n\n _this.appFileLoaded = false;\n return false;\n }\n };\n },\n getNetworkModel: function getNetworkModel(netName) {\n var network = this.oriNetWorks.filter(function (net) {\n return net.name == netName;\n });\n return network.length > 0 ? network[0].name : this.oriNetWorks[0].name;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/forms/ImportPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/forms/InputGroup.vue?vue&type=script&lang=js&":
/*!*************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/forms/InputGroup.vue?vue&type=script&lang=js& ***!
\*************************************************************************************************************************************************************************************************************************************************************/
@@ -194,7 +194,7 @@
/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/settings/UpdateModal.vue?vue&type=script&lang=js& ***!
\*****************************************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! marked */ "./node_modules/marked/lib/marked.umd.js");\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(marked__WEBPACK_IMPORTED_MODULE_0__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n changeLog: {\n type: String,\n default: ""\n }\n },\n data: function data() {\n return {\n timer: 0,\n isUpdating: false,\n markdown: ""\n };\n },\n computed: {\n markdownToHtml: function markdownToHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_0__["marked"].parse(this.changeLog);\n }\n },\n methods: {\n /**\r\n * @description: Update System Version and check update state\r\n * @return {*} void\r\n */\n updateSystem: function updateSystem() {\n this.isUpdating = true;\n this.$api.info.updateSystem();\n this.checkUpdateState();\n },\n\n /**\r\n * @description: check update state if is_need is false then reload page\r\n * @return {*} void\r\n */\n checkUpdateState: function checkUpdateState() {\n var _this = this;\n\n this.timer = setInterval(function () {\n _this.$api.info.checkVersion().then(function (res) {\n if (res.data.success == 200) {\n if (!res.data.data.is_need) {\n clearInterval(_this.timer);\n location.reload();\n }\n }\n });\n }, 3000);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/settings/UpdateModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/smartHome/SmartBlock.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! marked */ "./node_modules/marked/lib/marked.umd.js");\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(marked__WEBPACK_IMPORTED_MODULE_0__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n changeLog: {\n type: String,\n default: ""\n }\n },\n data: function data() {\n return {\n timer: 0,\n isUpdating: false,\n markdown: ""\n };\n },\n computed: {\n markdownToHtml: function markdownToHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_0__["marked"].parse(this.changeLog);\n }\n },\n methods: {\n /**\n * @description: Update System Version and check update state\n * @return {*} void\n */\n updateSystem: function updateSystem() {\n this.isUpdating = true;\n this.$api.info.updateSystem();\n this.checkUpdateState();\n },\n\n /**\n * @description: check update state if is_need is false then reload page\n * @return {*} void\n */\n checkUpdateState: function checkUpdateState() {\n var _this = this;\n\n this.timer = setInterval(function () {\n _this.$api.info.checkVersion().then(function (res) {\n if (res.data.success == 200) {\n if (!res.data.data.is_need) {\n clearInterval(_this.timer);\n location.reload();\n }\n }\n });\n }, 3000);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/settings/UpdateModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/smartHome/SmartBlock.vue?vue&type=script&lang=js&":
/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/smartHome/SmartBlock.vue?vue&type=script&lang=js& ***!
\*****************************************************************************************************************************************************************************************************************************************************************/
@@ -214,7 +214,7 @@
/*!********************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Home.vue?vue&type=script&lang=js& ***!
\********************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var _components_SearchBar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/SearchBar.vue */ "./src/components/SearchBar.vue");\n/* harmony import */ var _components_SideBar_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/SideBar.vue */ "./src/components/SideBar.vue");\n/* harmony import */ var _components_TopBar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/components/TopBar.vue */ "./src/components/TopBar.vue");\n/* harmony import */ var _components_CoreService_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/CoreService.vue */ "./src/components/CoreService.vue");\n/* harmony import */ var _components_Apps_AppSection_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/Apps/AppSection.vue */ "./src/components/Apps/AppSection.vue");\n/* harmony import */ var _components_filebrowser_FilePanel_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/filebrowser/FilePanel.vue */ "./src/components/filebrowser/FilePanel.vue");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n //import Shortcuts from \'@/components/Shortcuts.vue\'\n\n\nvar wallpaperConfig = "wallpaper";\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "home-page",\n components: {\n SideBar: _components_SideBar_vue__WEBPACK_IMPORTED_MODULE_3__["default"],\n SearchBar: _components_SearchBar_vue__WEBPACK_IMPORTED_MODULE_2__["default"],\n AppSection: _components_Apps_AppSection_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n TopBar: _components_TopBar_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n CoreService: _components_CoreService_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n //Shortcuts,\n FilePanel: _components_filebrowser_FilePanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"]\n },\n data: function data() {\n return {\n isLoading: true,\n hardwareInfoLoading: true,\n user_id: localStorage.getItem("user_id") ? localStorage.getItem("user_id") : 1,\n isFileActive: false,\n barData: {},\n topBarAni: {\n classes: \'fadeInDown\',\n duration: 800\n }\n };\n },\n provide: function provide() {\n return {\n homeShowFiles: this.showFiles\n };\n },\n computed: {\n sidebarOpen: function sidebarOpen() {\n return this.$store.state.sidebarOpen;\n },\n searchbarShow: function searchbarShow() {\n return this.$store.state.searchEngineSwitch;\n },\n recommendShow: function recommendShow() {\n return this.$store.state.recommendSwitch;\n }\n },\n created: function created() {\n this.getHardwareInfo();\n this.getWallpaperConfig();\n this.getConfig();\n },\n mounted: function mounted() {\n window.addEventListener("resize", this.onResize);\n this.onResize();\n },\n methods: {\n /**\r\n * @description: Get CasaOS Configs\r\n * @param {*}\r\n * @return {*}\r\n */\n getConfig: function getConfig() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var systemConfig, oldData, barData, saveRes;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.user.getCustomConfig(_this.user_id, "system");\n\n case 2:\n systemConfig = _context.sent;\n\n if (!(systemConfig.data.success != 200 || systemConfig.data.data == "")) {\n _context.next = 14;\n break;\n }\n\n oldData = systemConfig.data.data;\n _context.next = 7;\n return _this.$api.info.systemConfig();\n\n case 7:\n systemConfig = _context.sent;\n\n if (!(oldData == "")) {\n _context.next = 14;\n break;\n }\n\n barData = {\n lang: systemConfig.data.data.lang,\n search_engine: systemConfig.data.data.search_engine,\n search_switch: true,\n recommend_switch: true,\n shortcuts_switch: systemConfig.data.data.shortcuts_switch,\n widgets_switch: systemConfig.data.data.widgets_switch\n }; // save\n\n _context.next = 12;\n return _this.$api.user.postCustomConfig(_this.user_id, "system", barData);\n\n case 12:\n saveRes = _context.sent;\n\n if (saveRes.data.success === 200) {\n _this.barData = saveRes.data.data;\n }\n\n case 14:\n _this.$store.commit(\'changeSearchEngineSwitch\', systemConfig.data.data.search_switch);\n\n _this.$store.commit(\'changeRecommendSwitch\', systemConfig.data.data.recommend_switch);\n\n _this.barData = systemConfig.data.data;\n _this.isLoading = false;\n\n case 18:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Show SideBar\r\n * @param {*}\r\n * @return {*} void\r\n */\n showSideBar: function showSideBar() {\n console.log("showSidebar");\n },\n\n /**\r\n * @description: Show Files\r\n * @param {*}\r\n * @return {*} void\r\n */\n showFiles: function showFiles() {\n this.isFileActive = true;\n },\n\n /**\r\n * @description: Window Resize Handler\r\n * @param {*}\r\n * @return {*} void\r\n */\n onResize: function onResize() {\n if (window.innerWidth > 480 && this.sidebarOpen) {\n this.$store.commit(\'closeSideBar\');\n }\n },\n\n /**\r\n * @description: Get Hardware info and save to store\r\n * @param {*}\r\n * @return {*} void\r\n */\n getHardwareInfo: function getHardwareInfo() {\n var _this2 = this;\n\n this.$api.info.utilization().then(function (res) {\n if (res.data.success === 200) {\n _this2.hardwareInfoLoading = false;\n\n _this2.$store.commit(\'changeHardwareInfo\', res.data.data);\n }\n });\n },\n openHomeContaxtMenu: function openHomeContaxtMenu(e) {\n // console.log(e.target);\n this.$EventBus.$emit("showHomeContextMenu", e);\n },\n getWallpaperConfig: function getWallpaperConfig() {\n var _this3 = this;\n\n this.$api.user.getCustomConfig(this.user_id, wallpaperConfig).then(function (res) {\n if (res.data.success === 200 && res.data.data != "") {\n _this3.$store.commit(\'changeWallpaper\', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n }\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n window.removeEventListener("resize", this.onResize);\n }\n});\n\n//# sourceURL=webpack:///./src/views/Home.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/widgets/Clock.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var _components_SearchBar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/SearchBar.vue */ "./src/components/SearchBar.vue");\n/* harmony import */ var _components_SideBar_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/SideBar.vue */ "./src/components/SideBar.vue");\n/* harmony import */ var _components_TopBar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/components/TopBar.vue */ "./src/components/TopBar.vue");\n/* harmony import */ var _components_CoreService_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/CoreService.vue */ "./src/components/CoreService.vue");\n/* harmony import */ var _components_Apps_AppSection_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/Apps/AppSection.vue */ "./src/components/Apps/AppSection.vue");\n/* harmony import */ var _components_filebrowser_FilePanel_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/filebrowser/FilePanel.vue */ "./src/components/filebrowser/FilePanel.vue");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n //import Shortcuts from \'@/components/Shortcuts.vue\'\n\n\nvar wallpaperConfig = "wallpaper";\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "home-page",\n components: {\n SideBar: _components_SideBar_vue__WEBPACK_IMPORTED_MODULE_3__["default"],\n SearchBar: _components_SearchBar_vue__WEBPACK_IMPORTED_MODULE_2__["default"],\n AppSection: _components_Apps_AppSection_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n TopBar: _components_TopBar_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n CoreService: _components_CoreService_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n //Shortcuts,\n FilePanel: _components_filebrowser_FilePanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"]\n },\n data: function data() {\n return {\n isLoading: true,\n hardwareInfoLoading: true,\n user_id: localStorage.getItem("user_id") ? localStorage.getItem("user_id") : 1,\n isFileActive: false,\n barData: {},\n topBarAni: {\n classes: \'fadeInDown\',\n duration: 800\n }\n };\n },\n provide: function provide() {\n return {\n homeShowFiles: this.showFiles\n };\n },\n computed: {\n sidebarOpen: function sidebarOpen() {\n return this.$store.state.sidebarOpen;\n },\n searchbarShow: function searchbarShow() {\n return this.$store.state.searchEngineSwitch;\n },\n recommendShow: function recommendShow() {\n return this.$store.state.recommendSwitch;\n }\n },\n created: function created() {\n this.getHardwareInfo();\n this.getWallpaperConfig();\n this.getConfig();\n },\n mounted: function mounted() {\n window.addEventListener("resize", this.onResize);\n this.onResize();\n },\n methods: {\n /**\n * @description: Get CasaOS Configs\n * @param {*}\n * @return {*}\n */\n getConfig: function getConfig() {\n var _this = this;\n\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var systemConfig, oldData, barData, saveRes;\n return Object(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.user.getCustomConfig(_this.user_id, "system");\n\n case 2:\n systemConfig = _context.sent;\n\n if (!(systemConfig.data.success != 200 || systemConfig.data.data == "")) {\n _context.next = 14;\n break;\n }\n\n oldData = systemConfig.data.data;\n _context.next = 7;\n return _this.$api.info.systemConfig();\n\n case 7:\n systemConfig = _context.sent;\n\n if (!(oldData == "")) {\n _context.next = 14;\n break;\n }\n\n barData = {\n lang: systemConfig.data.data.lang,\n search_engine: systemConfig.data.data.search_engine,\n search_switch: true,\n recommend_switch: true,\n shortcuts_switch: systemConfig.data.data.shortcuts_switch,\n widgets_switch: systemConfig.data.data.widgets_switch\n }; // save\n\n _context.next = 12;\n return _this.$api.user.postCustomConfig(_this.user_id, "system", barData);\n\n case 12:\n saveRes = _context.sent;\n\n if (saveRes.data.success === 200) {\n _this.barData = saveRes.data.data;\n }\n\n case 14:\n _this.$store.commit(\'changeSearchEngineSwitch\', systemConfig.data.data.search_switch);\n\n _this.$store.commit(\'changeRecommendSwitch\', systemConfig.data.data.recommend_switch);\n\n _this.barData = systemConfig.data.data;\n _this.isLoading = false;\n\n case 18:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\n * @description: Show SideBar\n * @param {*}\n * @return {*} void\n */\n showSideBar: function showSideBar() {\n console.log("showSidebar");\n },\n\n /**\n * @description: Show Files\n * @param {*}\n * @return {*} void\n */\n showFiles: function showFiles() {\n this.isFileActive = true;\n },\n\n /**\n * @description: Window Resize Handler\n * @param {*}\n * @return {*} void\n */\n onResize: function onResize() {\n if (window.innerWidth > 480 && this.sidebarOpen) {\n this.$store.commit(\'closeSideBar\');\n }\n },\n\n /**\n * @description: Get Hardware info and save to store\n * @param {*}\n * @return {*} void\n */\n getHardwareInfo: function getHardwareInfo() {\n var _this2 = this;\n\n this.$api.info.utilization().then(function (res) {\n if (res.data.success === 200) {\n _this2.hardwareInfoLoading = false;\n\n _this2.$store.commit(\'changeHardwareInfo\', res.data.data);\n }\n });\n },\n openHomeContaxtMenu: function openHomeContaxtMenu(e) {\n // console.log(e.target);\n this.$EventBus.$emit("showHomeContextMenu", e);\n },\n getWallpaperConfig: function getWallpaperConfig() {\n var _this3 = this;\n\n this.$api.user.getCustomConfig(this.user_id, wallpaperConfig).then(function (res) {\n if (res.data.success === 200 && res.data.data != "") {\n _this3.$store.commit(\'changeWallpaper\', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n }\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n window.removeEventListener("resize", this.onResize);\n }\n});\n\n//# sourceURL=webpack:///./src/views/Home.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/widgets/Clock.vue?vue&type=script&lang=js&":
/*!***********************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/widgets/Clock.vue?vue&type=script&lang=js& ***!
\***********************************************************************************************************************************************************************************************************************************************/
@@ -222,7 +222,7 @@
/*!*********************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/widgets/Cpu.vue?vue&type=script&lang=js& ***!
\*********************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"./node_modules/core-js/modules/es.string.iterator.js\");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"./node_modules/core-js/modules/web.dom-collections.iterator.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-smooth-reflow */ \"./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js\");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/orderBy */ \"./node_modules/lodash/orderBy.js\");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/has */ \"./node_modules/lodash/has.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var lodash_slice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/slice */ \"./node_modules/lodash/slice.js\");\n/* harmony import */ var lodash_slice__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_slice__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../mixins/mixin */ \"./src/mixins/mixin.js\");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import VueApexCharts from 'vue-apexcharts'\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n // eslint-disable-next-line vue/multi-word-component-names\n name: 'cpu',\n icon: \"cog\",\n title: \"System Status\",\n initShow: true,\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4___default.a, _mixins_mixin__WEBPACK_IMPORTED_MODULE_8__[\"mixin\"]],\n components: {\n apexchart: function apexchart() {\n return __webpack_require__.e(/*! import() */ 8).then(__webpack_require__.t.bind(null, /*! vue-apexcharts */ \"./node_modules/vue-apexcharts/dist/vue-apexcharts.js\", 7));\n }\n },\n data: function data() {\n return {\n timmer: null,\n activeTab: 0,\n showMore: false,\n cpuCores: 0,\n totalMemory: 0,\n barHeight: 132,\n cpuSeries: [0],\n ramSeries: [0],\n chartOptions: {\n chart: {\n type: 'radialBar',\n width: '100%'\n },\n grid: {\n padding: {\n left: 0,\n right: 0,\n top: -6,\n bottom: -15\n }\n },\n states: {\n hover: {\n filter: {\n type: 'none'\n }\n },\n active: {\n filter: {\n type: 'none'\n }\n }\n },\n plotOptions: {\n radialBar: {\n startAngle: 0,\n endAngle: 360,\n offsetX: 0,\n offsetY: 0,\n hollow: {\n margin: 0,\n size: '60%',\n image: undefined,\n imageOffsetX: 0,\n imageOffsetY: 0,\n position: 'front',\n dropShadow: {\n enabled: false,\n top: 3,\n left: 0,\n blur: 4,\n opacity: 0.24\n }\n },\n track: {\n background: '#fff',\n strokeWidth: '100%',\n margin: 0,\n // margin is in pixels\n opacity: 0.4\n },\n dataLabels: {\n show: true,\n value: {\n formatter: function formatter(val) {\n return parseInt(val) + \"%\";\n },\n offsetY: -10,\n color: '#fff',\n fontSize: '20px',\n show: true\n }\n }\n }\n },\n fill: {\n type: 'image',\n image: {\n src: [__webpack_require__(/*! @/assets/img/widgets/gradient.png */ \"./src/assets/img/widgets/gradient.png\")]\n }\n },\n stroke: {\n lineCap: 'round'\n },\n labels: ['']\n },\n containerCpuList: [],\n containerRamList: []\n };\n },\n created: function created() {\n var _this = this;\n\n this.cpuCores = this.$store.state.hardwareInfo.cpu.num;\n this.totalMemory = this.$store.state.hardwareInfo.mem.total;\n this.updateCharts(this.$store.state.hardwareInfo);\n this.getDockerUsage();\n this.timer = setInterval(function () {\n if (_this.showMore) {\n _this.getDockerUsage();\n }\n }, 1000);\n },\n mounted: function mounted() {\n this.$smoothReflow({\n el: '.widget',\n property: ['height']\n });\n },\n beforeDestroy: function beforeDestroy() {\n clearInterval(this.timer);\n },\n methods: {\n /**\r\n * @description: Update cpu and memory usage\r\n * @param {*}\r\n * @return {*} void\r\n */\n updateCharts: function updateCharts(hardwareInfo) {\n this.cpuSeries = [hardwareInfo.cpu.percent];\n this.ramSeries = [hardwareInfo.mem.usedPercent];\n\n if (this.showMore) {\n this.getDockerUsage();\n }\n },\n\n /**\r\n * @description: Get Docker apps cpu and memory usage\r\n * @param {*}\r\n * @return {*} void\r\n */\n getDockerUsage: function getDockerUsage() {\n var _this2 = this;\n\n this.$api.app.getAppUsage().then(function (res) {\n var id = 0;\n _this2.containerCpuList = res.data.data.map(function (item) {\n var usage = 0;\n\n if (item.pre == null) {\n usage = 0;\n } else {\n // Look at here https://docs.docker.com/engine/api/v1.41/#operation/ContainerStats\n var cpu_delta = item.data.cpu_stats.cpu_usage.total_usage - item.pre.cpu_stats.cpu_usage.total_usage;\n var system_cpu_delta = item.data.cpu_stats.system_cpu_usage - item.pre.cpu_stats.system_cpu_usage + 1; // const number_cpus = item.data.cpu_stats.online_cpus\n\n usage = Math.floor(cpu_delta / system_cpu_delta * 1000) / 10;\n }\n\n id++;\n return {\n id: id,\n usage: isNaN(usage) || usage < 0 ? 0 : usage,\n icon: item.icon,\n title: item.title\n };\n });\n _this2.containerRamList = res.data.data.map(function (item) {\n var cache = 0;\n var id = 0;\n\n if (lodash_has__WEBPACK_IMPORTED_MODULE_6___default()(item.data.memory_stats.stats, 'inactive_file')) {\n cache = item.data.memory_stats.stats.inactive_file;\n } else {\n if (lodash_has__WEBPACK_IMPORTED_MODULE_6___default()(item.data.memory_stats.stats, 'cache')) {\n cache = item.data.memory_stats.stats.cache;\n } else if (lodash_has__WEBPACK_IMPORTED_MODULE_6___default()(item.data.memory_stats.stats, 'total_inactive_file')) {\n cache = item.data.memory_stats.stats.total_inactive_file;\n }\n }\n\n var used_memory = \"stats\" in item.data.memory_stats ? item.data.memory_stats.usage - cache : NaN;\n id++;\n return {\n id: id,\n usage: isNaN(used_memory) ? 0 : used_memory,\n icon: item.icon,\n title: item.title\n };\n });\n _this2.containerCpuList = lodash_slice__WEBPACK_IMPORTED_MODULE_7___default()(lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default()(_this2.containerCpuList, ['usage'], ['desc']), 0, 8);\n _this2.containerRamList = lodash_slice__WEBPACK_IMPORTED_MODULE_7___default()(lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default()(_this2.containerRamList, ['usage'], ['desc']), 0, 8);\n });\n },\n\n /**\r\n * @description: Toggle more info\r\n * @param {*}\r\n * @return {*} void\r\n */\n showMoreInfo: function showMoreInfo() {\n this.showMore = !this.showMore;\n }\n },\n sockets: {\n sys_cpu: function sys_cpu(data) {\n this.cpuCores = data.body.data.num;\n this.cpuSeries = [data.body.data.percent];\n\n if (this.showMore) {\n this.getDockerUsage();\n }\n },\n sys_mem: function sys_mem(data) {\n this.totalMemory = data.body.data.total;\n this.ramSeries = [data.body.data.usedPercent];\n },\n sys_hardware_status: function sys_hardware_status(data) {\n // CPU\n this.cpuCores = data.body.sys_cpu.num;\n this.cpuSeries = [data.body.sys_cpu.percent]; // Memory\n\n this.totalMemory = data.body.sys_mem.total;\n this.ramSeries = [data.body.sys_mem.usedPercent];\n }\n }\n});\n\n//# sourceURL=webpack:///./src/widgets/Cpu.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options")},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/widgets/Disks.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"./node_modules/core-js/modules/es.string.iterator.js\");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"./node_modules/core-js/modules/web.dom-collections.iterator.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-smooth-reflow */ \"./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js\");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/orderBy */ \"./node_modules/lodash/orderBy.js\");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/has */ \"./node_modules/lodash/has.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var lodash_slice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/slice */ \"./node_modules/lodash/slice.js\");\n/* harmony import */ var lodash_slice__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_slice__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../mixins/mixin */ \"./src/mixins/mixin.js\");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import VueApexCharts from 'vue-apexcharts'\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n // eslint-disable-next-line vue/multi-word-component-names\n name: 'cpu',\n icon: \"cog\",\n title: \"System Status\",\n initShow: true,\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4___default.a, _mixins_mixin__WEBPACK_IMPORTED_MODULE_8__[\"mixin\"]],\n components: {\n apexchart: function apexchart() {\n return __webpack_require__.e(/*! import() */ 8).then(__webpack_require__.t.bind(null, /*! vue-apexcharts */ \"./node_modules/vue-apexcharts/dist/vue-apexcharts.js\", 7));\n }\n },\n data: function data() {\n return {\n timmer: null,\n activeTab: 0,\n showMore: false,\n cpuCores: 0,\n totalMemory: 0,\n barHeight: 132,\n cpuSeries: [0],\n ramSeries: [0],\n chartOptions: {\n chart: {\n type: 'radialBar',\n width: '100%'\n },\n grid: {\n padding: {\n left: 0,\n right: 0,\n top: -6,\n bottom: -15\n }\n },\n states: {\n hover: {\n filter: {\n type: 'none'\n }\n },\n active: {\n filter: {\n type: 'none'\n }\n }\n },\n plotOptions: {\n radialBar: {\n startAngle: 0,\n endAngle: 360,\n offsetX: 0,\n offsetY: 0,\n hollow: {\n margin: 0,\n size: '60%',\n image: undefined,\n imageOffsetX: 0,\n imageOffsetY: 0,\n position: 'front',\n dropShadow: {\n enabled: false,\n top: 3,\n left: 0,\n blur: 4,\n opacity: 0.24\n }\n },\n track: {\n background: '#fff',\n strokeWidth: '100%',\n margin: 0,\n // margin is in pixels\n opacity: 0.4\n },\n dataLabels: {\n show: true,\n value: {\n formatter: function formatter(val) {\n return parseInt(val) + \"%\";\n },\n offsetY: -10,\n color: '#fff',\n fontSize: '20px',\n show: true\n }\n }\n }\n },\n fill: {\n type: 'image',\n image: {\n src: [__webpack_require__(/*! @/assets/img/widgets/gradient.png */ \"./src/assets/img/widgets/gradient.png\")]\n }\n },\n stroke: {\n lineCap: 'round'\n },\n labels: ['']\n },\n containerCpuList: [],\n containerRamList: []\n };\n },\n created: function created() {\n var _this = this;\n\n this.cpuCores = this.$store.state.hardwareInfo.cpu.num;\n this.totalMemory = this.$store.state.hardwareInfo.mem.total;\n this.updateCharts(this.$store.state.hardwareInfo);\n this.getDockerUsage();\n this.timer = setInterval(function () {\n if (_this.showMore) {\n _this.getDockerUsage();\n }\n }, 1000);\n },\n mounted: function mounted() {\n this.$smoothReflow({\n el: '.widget',\n property: ['height']\n });\n },\n beforeDestroy: function beforeDestroy() {\n clearInterval(this.timer);\n },\n methods: {\n /**\n * @description: Update cpu and memory usage\n * @param {*}\n * @return {*} void\n */\n updateCharts: function updateCharts(hardwareInfo) {\n this.cpuSeries = [hardwareInfo.cpu.percent];\n this.ramSeries = [hardwareInfo.mem.usedPercent];\n\n if (this.showMore) {\n this.getDockerUsage();\n }\n },\n\n /**\n * @description: Get Docker apps cpu and memory usage\n * @param {*}\n * @return {*} void\n */\n getDockerUsage: function getDockerUsage() {\n var _this2 = this;\n\n this.$api.app.getAppUsage().then(function (res) {\n var id = 0;\n _this2.containerCpuList = res.data.data.map(function (item) {\n var usage = 0;\n\n if (item.pre == null) {\n usage = 0;\n } else {\n // Look at here https://docs.docker.com/engine/api/v1.41/#operation/ContainerStats\n var cpu_delta = item.data.cpu_stats.cpu_usage.total_usage - item.pre.cpu_stats.cpu_usage.total_usage;\n var system_cpu_delta = item.data.cpu_stats.system_cpu_usage - item.pre.cpu_stats.system_cpu_usage + 1; // const number_cpus = item.data.cpu_stats.online_cpus\n\n usage = Math.floor(cpu_delta / system_cpu_delta * 1000) / 10;\n }\n\n id++;\n return {\n id: id,\n usage: isNaN(usage) || usage < 0 ? 0 : usage,\n icon: item.icon,\n title: item.title\n };\n });\n _this2.containerRamList = res.data.data.map(function (item) {\n var cache = 0;\n var id = 0;\n\n if (lodash_has__WEBPACK_IMPORTED_MODULE_6___default()(item.data.memory_stats.stats, 'inactive_file')) {\n cache = item.data.memory_stats.stats.inactive_file;\n } else {\n if (lodash_has__WEBPACK_IMPORTED_MODULE_6___default()(item.data.memory_stats.stats, 'cache')) {\n cache = item.data.memory_stats.stats.cache;\n } else if (lodash_has__WEBPACK_IMPORTED_MODULE_6___default()(item.data.memory_stats.stats, 'total_inactive_file')) {\n cache = item.data.memory_stats.stats.total_inactive_file;\n }\n }\n\n var used_memory = \"stats\" in item.data.memory_stats ? item.data.memory_stats.usage - cache : NaN;\n id++;\n return {\n id: id,\n usage: isNaN(used_memory) ? 0 : used_memory,\n icon: item.icon,\n title: item.title\n };\n });\n _this2.containerCpuList = lodash_slice__WEBPACK_IMPORTED_MODULE_7___default()(lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default()(_this2.containerCpuList, ['usage'], ['desc']), 0, 8);\n _this2.containerRamList = lodash_slice__WEBPACK_IMPORTED_MODULE_7___default()(lodash_orderBy__WEBPACK_IMPORTED_MODULE_5___default()(_this2.containerRamList, ['usage'], ['desc']), 0, 8);\n });\n },\n\n /**\n * @description: Toggle more info\n * @param {*}\n * @return {*} void\n */\n showMoreInfo: function showMoreInfo() {\n this.showMore = !this.showMore;\n }\n },\n sockets: {\n sys_cpu: function sys_cpu(data) {\n this.cpuCores = data.body.data.num;\n this.cpuSeries = [data.body.data.percent];\n\n if (this.showMore) {\n this.getDockerUsage();\n }\n },\n sys_mem: function sys_mem(data) {\n this.totalMemory = data.body.data.total;\n this.ramSeries = [data.body.data.usedPercent];\n },\n sys_hardware_status: function sys_hardware_status(data) {\n // CPU\n this.cpuCores = data.body.sys_cpu.num;\n this.cpuSeries = [data.body.sys_cpu.percent]; // Memory\n\n this.totalMemory = data.body.sys_mem.total;\n this.ramSeries = [data.body.sys_mem.usedPercent];\n }\n }\n});\n\n//# sourceURL=webpack:///./src/widgets/Cpu.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options")},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/widgets/Disks.vue?vue&type=script&lang=js&":
/*!***********************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/widgets/Disks.vue?vue&type=script&lang=js& ***!
\***********************************************************************************************************************************************************************************************************************************************/
@@ -602,11 +602,11 @@
/*!***************************************************!*\
!*** ./src/assets/img/account/default-avatar.svg ***!
\***************************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/default-avatar.d92cd43a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/account/default-avatar.svg?')},"./src/assets/img/app/appstore.svg":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/default-avatar.ab3b9bda.svg";\n\n//# sourceURL=webpack:///./src/assets/img/account/default-avatar.svg?')},"./src/assets/img/app/appstore.svg":
/*!*****************************************!*\
!*** ./src/assets/img/app/appstore.svg ***!
\*****************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/appstore.88e37ed0.svg";\n\n//# sourceURL=webpack:///./src/assets/img/app/appstore.svg?')},"./src/assets/img/app/default.png":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/appstore.57e32f7e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/app/appstore.svg?')},"./src/assets/img/app/default.png":
/*!****************************************!*\
!*** ./src/assets/img/app/default.png ***!
\****************************************/
@@ -614,7 +614,7 @@
/*!**************************************!*\
!*** ./src/assets/img/app/files.svg ***!
\**************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/files.6587da91.svg";\n\n//# sourceURL=webpack:///./src/assets/img/app/files.svg?')},"./src/assets/img/app/swiper_placeholder.png":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/files.25391a43.svg";\n\n//# sourceURL=webpack:///./src/assets/img/app/files.svg?')},"./src/assets/img/app/swiper_placeholder.png":
/*!***************************************************!*\
!*** ./src/assets/img/app/swiper_placeholder.png ***!
\***************************************************/
@@ -626,7 +626,7 @@
/*!*********************************************!*\
!*** ./src/assets/img/smart/smart_icon.svg ***!
\*********************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/smart_icon.af74998a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/smart/smart_icon.svg?')},"./src/assets/img/storage/USB.png":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/smart_icon.65a3f64c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/smart/smart_icon.svg?')},"./src/assets/img/storage/USB.png":
/*!****************************************!*\
!*** ./src/assets/img/storage/USB.png ***!
\****************************************/
@@ -650,7 +650,7 @@
/*!**********************************************!*\
!*** ./src/assets/img/syncthing/android.svg ***!
\**********************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/android.48a6cf16.svg";\n\n//# sourceURL=webpack:///./src/assets/img/syncthing/android.svg?')},"./src/assets/img/syncthing/device.png":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/android.149f5693.svg";\n\n//# sourceURL=webpack:///./src/assets/img/syncthing/android.svg?')},"./src/assets/img/syncthing/device.png":
/*!*********************************************!*\
!*** ./src/assets/img/syncthing/device.png ***!
\*********************************************/
@@ -662,15 +662,15 @@
/*!********************************************!*\
!*** ./src/assets/img/syncthing/macos.svg ***!
\********************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/macos.6403eda3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/syncthing/macos.svg?')},"./src/assets/img/syncthing/sync_icon.svg":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/macos.da8469ce.svg";\n\n//# sourceURL=webpack:///./src/assets/img/syncthing/macos.svg?')},"./src/assets/img/syncthing/sync_icon.svg":
/*!************************************************!*\
!*** ./src/assets/img/syncthing/sync_icon.svg ***!
\************************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/sync_icon.e2c98b0e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/syncthing/sync_icon.svg?')},"./src/assets/img/syncthing/syncthing-logo.svg":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/sync_icon.742e123c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/syncthing/sync_icon.svg?')},"./src/assets/img/syncthing/syncthing-logo.svg":
/*!*****************************************************!*\
!*** ./src/assets/img/syncthing/syncthing-logo.svg ***!
\*****************************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/syncthing-logo.27d25cad.svg";\n\n//# sourceURL=webpack:///./src/assets/img/syncthing/syncthing-logo.svg?')},"./src/assets/img/syncthing/syncthing.svg":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/syncthing-logo.e6163faa.svg";\n\n//# sourceURL=webpack:///./src/assets/img/syncthing/syncthing-logo.svg?')},"./src/assets/img/syncthing/syncthing.svg":
/*!************************************************!*\
!*** ./src/assets/img/syncthing/syncthing.svg ***!
\************************************************/
@@ -1506,11 +1506,11 @@
/*!******************************************!*\
!*** ./src/mixins/IconContainerMixin.js ***!
\******************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/*\r\n * @Author: Jerryk [email protected]\r\n * @Date: 2022-05-30 09:19:57\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-05-30 09:24:26\r\n * @FilePath: \\CasaOS-UI\\src\\mixins\\IconContainerMixin.js\r\n * @Description: \r\n * \r\n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \r\n */\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n item: {}\n },\n data: function data() {\n return {\n isLoaded: false,\n imageData: \"\",\n isWide: true,\n io: {},\n inViewPort: false\n };\n },\n computed: {\n showThumb: function showThumb() {\n return this.isLoaded && this.hasThumb(this.item);\n }\n },\n watch: {\n inViewPort: function inViewPort(value) {\n if (value) {\n this.loadImage();\n }\n }\n },\n created: function created() {\n var _this = this;\n\n this.io = new IntersectionObserver(function (events) {\n var _events$ = events[0],\n target = _events$.target,\n isIntersecting = _events$.isIntersecting;\n\n if (isIntersecting && !_this.inViewPort) {\n _this.inViewPort = true;\n\n _this.io.unobserve(target);\n }\n });\n },\n mounted: function mounted() {\n if (this.hasThumb(this.item)) {\n this.io.observe(this.$el);\n }\n },\n methods: {\n loadImage: function loadImage() {\n var _this2 = this;\n\n var imgUrl = this.getThumbUrl(this.item);\n var img = new Image();\n img.crossOrigin = location.host;\n img.src = imgUrl;\n\n img.onload = function () {\n var canvas = document.createElement('canvas');\n canvas.width = img.width;\n canvas.height = img.height;\n var ctx = canvas.getContext('2d');\n ctx.drawImage(img, 0, 0, img.width, img.height);\n _this2.isWide = img.width > img.height;\n _this2.isLoaded = true;\n _this2.imageData = canvas.toDataURL('image/png');\n };\n\n img.onerror = function (e, s) {\n console.log(e, s);\n };\n }\n }\n});\n\n//# sourceURL=webpack:///./src/mixins/IconContainerMixin.js?")},"./src/mixins/ListViewMixin.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/*\n * @Author: Jerryk [email protected]\n * @Date: 2022-05-30 09:19:57\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-05-30 09:24:26\n * @FilePath: \\CasaOS-UI\\src\\mixins\\IconContainerMixin.js\n * @Description: \n * \n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \n */\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n item: {}\n },\n data: function data() {\n return {\n isLoaded: false,\n imageData: \"\",\n isWide: true,\n io: {},\n inViewPort: false\n };\n },\n computed: {\n showThumb: function showThumb() {\n return this.isLoaded && this.hasThumb(this.item);\n }\n },\n watch: {\n inViewPort: function inViewPort(value) {\n if (value) {\n this.loadImage();\n }\n }\n },\n created: function created() {\n var _this = this;\n\n this.io = new IntersectionObserver(function (events) {\n var _events$ = events[0],\n target = _events$.target,\n isIntersecting = _events$.isIntersecting;\n\n if (isIntersecting && !_this.inViewPort) {\n _this.inViewPort = true;\n\n _this.io.unobserve(target);\n }\n });\n },\n mounted: function mounted() {\n if (this.hasThumb(this.item)) {\n this.io.observe(this.$el);\n }\n },\n methods: {\n loadImage: function loadImage() {\n var _this2 = this;\n\n var imgUrl = this.getThumbUrl(this.item);\n var img = new Image();\n img.crossOrigin = location.host;\n img.src = imgUrl;\n\n img.onload = function () {\n var canvas = document.createElement('canvas');\n canvas.width = img.width;\n canvas.height = img.height;\n var ctx = canvas.getContext('2d');\n ctx.drawImage(img, 0, 0, img.width, img.height);\n _this2.isWide = img.width > img.height;\n _this2.isLoaded = true;\n _this2.imageData = canvas.toDataURL('image/png');\n };\n\n img.onerror = function (e, s) {\n console.log(e, s);\n };\n }\n }\n});\n\n//# sourceURL=webpack:///./src/mixins/IconContainerMixin.js?")},"./src/mixins/ListViewMixin.js":
/*!*************************************!*\
!*** ./src/mixins/ListViewMixin.js ***!
\*************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"./node_modules/core-js/modules/es.regexp.to-string.js\");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/core-js/modules/es.array.includes.js\");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/core-js/modules/es.string.includes.js\");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.splice.js */ \"./node_modules/core-js/modules/es.array.splice.js\");\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"./node_modules/core-js/modules/es.number.constructor.js\");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var lodash_pull__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/pull */ \"./node_modules/lodash/pull.js\");\n/* harmony import */ var lodash_pull__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_pull__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var hitbox_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! hitbox-js */ \"./node_modules/hitbox-js/index.js\");\n\n\n\n\n\n\n\n\n/*\r\n * @Author: Jerryk [email protected]\r\n * @Date: 2022-05-20 19:18:19\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-16 17:47:23\r\n * @FilePath: \\CasaOS-UI\\src\\mixins\\ListViewMixin.js\r\n * @Description: \r\n * \r\n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \r\n */\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n model: {\n prop: 'listData',\n event: 'change'\n },\n props: {\n listData: Array,\n isLoading: Boolean\n },\n data: function data() {\n return {\n selectBox: null,\n selectList: [],\n isShift: false,\n // If Press SHIFT\n isCtrl: false,\n // If Press CTRL\n isShowSeBox: false,\n lipL: 0,\n lipT: 0,\n hitboxWatcher: null,\n isMobile: false\n };\n },\n mounted: function mounted() {\n this.selectBox = document.getElementById(this.SELECT_BOX);\n this.parentBox = document.getElementById(this.PARENT_BOX);\n window.addEventListener('resize', this.onResize);\n this.onResize();\n this.hitboxCheck();\n window.addEventListener('keydown', this.onKeydown);\n window.addEventListener('keyup', this.onKeyup);\n },\n methods: {\n /*************************************************\r\n * PART 1 Alignment Method\r\n **************************************************/\n\n /**\r\n * @description: Changes the arrangement of the list when the view size changes.\r\n * @return {*}\r\n */\n onResize: function onResize() {\n if (this.isGird) {\n var cw = document.getElementById(this.CARD_CONTAINER).clientWidth;\n this.cols = Math.floor(cw / this.CARD_WIDTH);\n this.colStyle.width = (100 / this.cols).toString() + \"%\";\n }\n\n var ww = document.body.clientWidth;\n this.isMobile = ww <= this.M_WIDTH;\n },\n\n /*************************************************\r\n * PART 2 Select and drag selection\r\n **************************************************/\n\n /**\r\n * @description: Handle Checkbox value change\r\n * @param {Boolean} value\r\n * @param {Int} index\r\n * @return {*}\r\n */\n handleCheckboxInput: function handleCheckboxInput(value, index) {\n if (value) {\n this.selectList.push(index);\n } else {\n lodash_pull__WEBPACK_IMPORTED_MODULE_7___default()(this.selectList, index);\n }\n\n this.updateDatas();\n },\n\n /**\r\n * @description: Update parent box horizontal and vertical coordinates in real time when the page scrolls\r\n * @return {*}\r\n */\n onScroll: function onScroll() {\n this.lipT = document.querySelector('.select-parent').getBoundingClientRect().top;\n this.lipL = document.querySelector('.select-parent').getBoundingClientRect().left;\n },\n\n /**\r\n * @description: Handling keyboard press events\r\n * @param {Event} event\r\n * @return {*}\r\n */\n onKeydown: function onKeydown(event) {\n switch (event.keyCode) {\n case 16:\n this.isShift = true;\n break;\n\n case 17:\n // window Keyboard\n this.isCtrl = true;\n break;\n\n case 91:\n // mac command \n this.isCtrl = true;\n break;\n }\n },\n\n /**\r\n * @description: Handling keyboard release events\r\n * @return {*}\r\n */\n onKeyup: function onKeyup() {\n this.isShift = false;\n this.isCtrl = false;\n },\n\n /**\r\n * @description: Handling drag and drop selection \r\n * @param {Event} event\r\n * @return {*}\r\n */\n onDragSelectionStart: function onDragSelectionStart(event) {\n // if target is action bution or select return false\n var targetClass = event.target.getAttribute('class');\n\n if (targetClass.includes('mdi-dots') || targetClass.includes('check')) {\n return false;\n }\n\n if (!this.isCtrl && !this.isShift && this.selectList.length != 0) {\n this.selectList = [];\n this.process();\n }\n\n this.onScroll();\n this.downX = event.clientX - this.lipL;\n this.downY = event.clientY - this.lipT;\n this.selectBox.style.left = this.downX + \"px\";\n this.selectBox.style.top = this.downY + \"px\";\n document.body.addEventListener('mousemove', this.onDragSelection);\n document.body.addEventListener('mouseup', this.onDragSelectionStop);\n this.parentBox.addEventListener(\"scroll\", this.onScroll);\n },\n\n /**\r\n * @description: Handling events on mouse movement\r\n * @param {Event} event\r\n * @return {*}\r\n */\n onDragSelection: function onDragSelection(event) {\n this.isShowSeBox = true;\n this.selectBox.style.left = Math.min(event.clientX - this.lipL, this.downX) + \"px\";\n this.selectBox.style.top = Math.min(event.clientY - this.lipT, this.downY) + \"px\";\n this.selectBox.style.width = Math.abs(this.downX - (event.clientX - this.lipL)) + \"px\";\n this.selectBox.style.height = Math.abs(this.downY - (event.clientY - this.lipT)) + \"px\";\n },\n\n /**\r\n * @description: Handles events at the end of mouse movement\r\n * @return {*}\r\n */\n onDragSelectionStop: function onDragSelectionStop() {\n this.isShowSeBox = false;\n this.selectBox.style.width = 0 + \"px\";\n this.selectBox.style.height = 0 + \"px\";\n document.body.removeEventListener('mousemove', this.onDragSelection);\n document.body.removeEventListener('mouseup', this.onDragSelectionStop);\n },\n\n /**\r\n * @description: Handle the mouse click event of the card\r\n * @param {Event} event\r\n * @param {Obejct} item\r\n * @param {Int} index\r\n * @return {*}\r\n */\n onCardClick: function onCardClick(event, item, index) {\n // If SHIFT key is down\n if (this.isShift) {\n if (this.selectList.indexOf(index) == -1) {\n this.selectList.push(index);\n }\n\n if (this.selectList.length > 1) {\n var le = this.selectList.length;\n var min = Math.min(this.selectList[0], this.selectList[le - 1]);\n var max = Math.max(this.selectList[0], this.selectList[le - 1]);\n this.selectList = [];\n\n for (var i = min; i <= max; i++) {\n this.selectList.push(i);\n }\n }\n\n this.process();\n } else if (this.isCtrl) {\n // If CTRL key is down \n if (this.selectList.indexOf(index) == -1) {\n this.selectList.push(index);\n } else {\n this.selectList.splice(this.selectList.indexOf(index), 1);\n }\n\n this.process();\n } else {\n // Normal Click\n var bounced = event.target.getAttribute('class').includes('mdi-dots') || event.target.getAttribute('class').includes('check') || event.target.getAttribute('class').includes('background');\n\n if (!bounced) {\n if (item.is_dir) {\n this.$emit('gotoFolder', item.path);\n } else {\n this.$emit('showDetailModal', item);\n }\n }\n }\n },\n\n /**\r\n * @description: Detect if the box is covered\r\n * @return {*}\r\n */\n hitboxCheck: function hitboxCheck() {\n var _this = this;\n\n this.hitboxWatcher = new hitbox_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"]({\n elements: this.selectBox,\n targetElements: this.SELECT_ITEM\n });\n this.hitboxWatcher.onCollisionStart(function (collision) {\n var index = collision.targetElement.getAttribute(\"data-rel\");\n\n _this.selectList.push(Number(index));\n\n _this.process();\n });\n this.hitboxWatcher.onCollisionEnd(function (collision) {\n var index = collision.targetElement.getAttribute(\"data-rel\");\n\n if (_this.isShowSeBox) {\n lodash_pull__WEBPACK_IMPORTED_MODULE_7___default()(_this.selectList, Number(index));\n\n _this.process();\n }\n });\n },\n\n /**\r\n * @description: Reset all selected states\r\n * @return {*}\r\n */\n process: function process() {\n var _this2 = this;\n\n this.listData.forEach(function (item, index) {\n item.isSelected = false;\n\n _this2.selectList.forEach(function (o) {\n if (o === index) {\n item.isSelected = true;\n }\n });\n });\n this.updateDatas();\n },\n\n /**\r\n * @description: Update the view and notify the parent component\r\n * @return {*}\r\n */\n updateDatas: function updateDatas() {\n // this.$forceUpdate()\n this.$emit(\"change\", this.listData);\n },\n\n /**\r\n * @description: Check file or folder state\r\n * @param {object} item\r\n * @return {void} \r\n */\n getCardState: function getCardState(item) {\n if (this.$store.state.operateObject != null && this.$store.state.operateObject.type == \"move\") {\n return this.$store.state.operateObject.item.some(function (obj) {\n return obj.from == item.path;\n });\n } else {\n return false;\n }\n }\n },\n beforeDestroy: function beforeDestroy() {\n document.body.removeEventListener('mousemove', this.onDragSelection);\n document.body.removeEventListener('mouseup', this.onDragSelectionStop);\n this.parentBox.removeEventListener(\"scroll\", this.onScroll);\n window.removeEventListener('keydown', this.onKeydown);\n window.removeEventListener('keyup', this.onKeyup);\n window.removeEventListener('resize', this.onResize);\n }\n});\n\n//# sourceURL=webpack:///./src/mixins/ListViewMixin.js?")},"./src/views/Home.vue":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"./node_modules/core-js/modules/es.regexp.to-string.js\");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/core-js/modules/es.array.includes.js\");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/core-js/modules/es.string.includes.js\");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.splice.js */ \"./node_modules/core-js/modules/es.array.splice.js\");\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"./node_modules/core-js/modules/es.number.constructor.js\");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var lodash_pull__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/pull */ \"./node_modules/lodash/pull.js\");\n/* harmony import */ var lodash_pull__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_pull__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var hitbox_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! hitbox-js */ \"./node_modules/hitbox-js/index.js\");\n\n\n\n\n\n\n\n\n/*\n * @Author: Jerryk [email protected]\n * @Date: 2022-05-20 19:18:19\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-16 17:47:23\n * @FilePath: \\CasaOS-UI\\src\\mixins\\ListViewMixin.js\n * @Description: \n * \n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \n */\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n model: {\n prop: 'listData',\n event: 'change'\n },\n props: {\n listData: Array,\n isLoading: Boolean\n },\n data: function data() {\n return {\n selectBox: null,\n selectList: [],\n isShift: false,\n // If Press SHIFT\n isCtrl: false,\n // If Press CTRL\n isShowSeBox: false,\n lipL: 0,\n lipT: 0,\n hitboxWatcher: null,\n isMobile: false\n };\n },\n mounted: function mounted() {\n this.selectBox = document.getElementById(this.SELECT_BOX);\n this.parentBox = document.getElementById(this.PARENT_BOX);\n window.addEventListener('resize', this.onResize);\n this.onResize();\n this.hitboxCheck();\n window.addEventListener('keydown', this.onKeydown);\n window.addEventListener('keyup', this.onKeyup);\n },\n methods: {\n /*************************************************\n * PART 1 Alignment Method\n **************************************************/\n\n /**\n * @description: Changes the arrangement of the list when the view size changes.\n * @return {*}\n */\n onResize: function onResize() {\n if (this.isGird) {\n var cw = document.getElementById(this.CARD_CONTAINER).clientWidth;\n this.cols = Math.floor(cw / this.CARD_WIDTH);\n this.colStyle.width = (100 / this.cols).toString() + \"%\";\n }\n\n var ww = document.body.clientWidth;\n this.isMobile = ww <= this.M_WIDTH;\n },\n\n /*************************************************\n * PART 2 Select and drag selection\n **************************************************/\n\n /**\n * @description: Handle Checkbox value change\n * @param {Boolean} value\n * @param {Int} index\n * @return {*}\n */\n handleCheckboxInput: function handleCheckboxInput(value, index) {\n if (value) {\n this.selectList.push(index);\n } else {\n lodash_pull__WEBPACK_IMPORTED_MODULE_7___default()(this.selectList, index);\n }\n\n this.updateDatas();\n },\n\n /**\n * @description: Update parent box horizontal and vertical coordinates in real time when the page scrolls\n * @return {*}\n */\n onScroll: function onScroll() {\n this.lipT = document.querySelector('.select-parent').getBoundingClientRect().top;\n this.lipL = document.querySelector('.select-parent').getBoundingClientRect().left;\n },\n\n /**\n * @description: Handling keyboard press events\n * @param {Event} event\n * @return {*}\n */\n onKeydown: function onKeydown(event) {\n switch (event.keyCode) {\n case 16:\n this.isShift = true;\n break;\n\n case 17:\n // window Keyboard\n this.isCtrl = true;\n break;\n\n case 91:\n // mac command \n this.isCtrl = true;\n break;\n }\n },\n\n /**\n * @description: Handling keyboard release events\n * @return {*}\n */\n onKeyup: function onKeyup() {\n this.isShift = false;\n this.isCtrl = false;\n },\n\n /**\n * @description: Handling drag and drop selection \n * @param {Event} event\n * @return {*}\n */\n onDragSelectionStart: function onDragSelectionStart(event) {\n // if target is action bution or select return false\n var targetClass = event.target.getAttribute('class');\n\n if (targetClass.includes('mdi-dots') || targetClass.includes('check')) {\n return false;\n }\n\n if (!this.isCtrl && !this.isShift && this.selectList.length != 0) {\n this.selectList = [];\n this.process();\n }\n\n this.onScroll();\n this.downX = event.clientX - this.lipL;\n this.downY = event.clientY - this.lipT;\n this.selectBox.style.left = this.downX + \"px\";\n this.selectBox.style.top = this.downY + \"px\";\n document.body.addEventListener('mousemove', this.onDragSelection);\n document.body.addEventListener('mouseup', this.onDragSelectionStop);\n this.parentBox.addEventListener(\"scroll\", this.onScroll);\n },\n\n /**\n * @description: Handling events on mouse movement\n * @param {Event} event\n * @return {*}\n */\n onDragSelection: function onDragSelection(event) {\n this.isShowSeBox = true;\n this.selectBox.style.left = Math.min(event.clientX - this.lipL, this.downX) + \"px\";\n this.selectBox.style.top = Math.min(event.clientY - this.lipT, this.downY) + \"px\";\n this.selectBox.style.width = Math.abs(this.downX - (event.clientX - this.lipL)) + \"px\";\n this.selectBox.style.height = Math.abs(this.downY - (event.clientY - this.lipT)) + \"px\";\n },\n\n /**\n * @description: Handles events at the end of mouse movement\n * @return {*}\n */\n onDragSelectionStop: function onDragSelectionStop() {\n this.isShowSeBox = false;\n this.selectBox.style.width = 0 + \"px\";\n this.selectBox.style.height = 0 + \"px\";\n document.body.removeEventListener('mousemove', this.onDragSelection);\n document.body.removeEventListener('mouseup', this.onDragSelectionStop);\n },\n\n /**\n * @description: Handle the mouse click event of the card\n * @param {Event} event\n * @param {Obejct} item\n * @param {Int} index\n * @return {*}\n */\n onCardClick: function onCardClick(event, item, index) {\n // If SHIFT key is down\n if (this.isShift) {\n if (this.selectList.indexOf(index) == -1) {\n this.selectList.push(index);\n }\n\n if (this.selectList.length > 1) {\n var le = this.selectList.length;\n var min = Math.min(this.selectList[0], this.selectList[le - 1]);\n var max = Math.max(this.selectList[0], this.selectList[le - 1]);\n this.selectList = [];\n\n for (var i = min; i <= max; i++) {\n this.selectList.push(i);\n }\n }\n\n this.process();\n } else if (this.isCtrl) {\n // If CTRL key is down \n if (this.selectList.indexOf(index) == -1) {\n this.selectList.push(index);\n } else {\n this.selectList.splice(this.selectList.indexOf(index), 1);\n }\n\n this.process();\n } else {\n // Normal Click\n var bounced = event.target.getAttribute('class').includes('mdi-dots') || event.target.getAttribute('class').includes('check') || event.target.getAttribute('class').includes('background');\n\n if (!bounced) {\n if (item.is_dir) {\n this.$emit('gotoFolder', item.path);\n } else {\n this.$emit('showDetailModal', item);\n }\n }\n }\n },\n\n /**\n * @description: Detect if the box is covered\n * @return {*}\n */\n hitboxCheck: function hitboxCheck() {\n var _this = this;\n\n this.hitboxWatcher = new hitbox_js__WEBPACK_IMPORTED_MODULE_8__[\"default\"]({\n elements: this.selectBox,\n targetElements: this.SELECT_ITEM\n });\n this.hitboxWatcher.onCollisionStart(function (collision) {\n var index = collision.targetElement.getAttribute(\"data-rel\");\n\n _this.selectList.push(Number(index));\n\n _this.process();\n });\n this.hitboxWatcher.onCollisionEnd(function (collision) {\n var index = collision.targetElement.getAttribute(\"data-rel\");\n\n if (_this.isShowSeBox) {\n lodash_pull__WEBPACK_IMPORTED_MODULE_7___default()(_this.selectList, Number(index));\n\n _this.process();\n }\n });\n },\n\n /**\n * @description: Reset all selected states\n * @return {*}\n */\n process: function process() {\n var _this2 = this;\n\n this.listData.forEach(function (item, index) {\n item.isSelected = false;\n\n _this2.selectList.forEach(function (o) {\n if (o === index) {\n item.isSelected = true;\n }\n });\n });\n this.updateDatas();\n },\n\n /**\n * @description: Update the view and notify the parent component\n * @return {*}\n */\n updateDatas: function updateDatas() {\n // this.$forceUpdate()\n this.$emit(\"change\", this.listData);\n },\n\n /**\n * @description: Check file or folder state\n * @param {object} item\n * @return {void} \n */\n getCardState: function getCardState(item) {\n if (this.$store.state.operateObject != null && this.$store.state.operateObject.type == \"move\") {\n return this.$store.state.operateObject.item.some(function (obj) {\n return obj.from == item.path;\n });\n } else {\n return false;\n }\n }\n },\n beforeDestroy: function beforeDestroy() {\n document.body.removeEventListener('mousemove', this.onDragSelection);\n document.body.removeEventListener('mouseup', this.onDragSelectionStop);\n this.parentBox.removeEventListener(\"scroll\", this.onScroll);\n window.removeEventListener('keydown', this.onKeydown);\n window.removeEventListener('keyup', this.onKeyup);\n window.removeEventListener('resize', this.onResize);\n }\n});\n\n//# sourceURL=webpack:///./src/mixins/ListViewMixin.js?")},"./src/views/Home.vue":
/*!****************************!*\
!*** ./src/views/Home.vue ***!
\****************************/
diff --git a/web/js/app.js b/web/js/app.js
index b3bd96a..5d3260b 100644
--- a/web/js/app.js
+++ b/web/js/app.js
@@ -1,8 +1,8 @@
-(function(e){function n(n){for(var s,a,i=n[0],_=n[1],l=n[2],d=0,c=[];d<i.length;d++)a=i[d],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&c.push(r[a][0]),r[a]=0;for(s in _)Object.prototype.hasOwnProperty.call(_,s)&&(e[s]=_[s]);p&&p(n);while(c.length)c.shift()();return t.push.apply(t,l||[]),o()}function o(){for(var e,n=0;n<t.length;n++){for(var o=t[n],s=!0,a=1;a<o.length;a++){var i=o[a];0!==r[i]&&(s=!1)}s&&(t.splice(n--,1),e=_(_.s=o[0]))}return e}var s={},a={app:0},r={app:0},t=[];function i(e){return _.p+"js/"+({}[e]||e)+".js"}function _(n){if(s[n])return s[n].exports;var o=s[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,_),o.l=!0,o.exports}_.e=function(e){var n=[],o={3:1,9:1,10:1,11:1,12:1,13:1,14:1,18:1,19:1};a[e]?n.push(a[e]):0!==a[e]&&o[e]&&n.push(a[e]=new Promise((function(n,o){for(var s="css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"e83a5e52",4:"31d6cfe0",5:"31d6cfe0",6:"31d6cfe0",7:"31d6cfe0",8:"31d6cfe0",9:"5e320549",10:"3f6e4ac6",11:"0cf49524",12:"515410b8",13:"8c31370d",14:"3e385d0d",15:"31d6cfe0",16:"31d6cfe0",17:"31d6cfe0",18:"4aea6393",19:"177dd094",20:"31d6cfe0"}[e]+".css",r=_.p+s,t=document.getElementsByTagName("link"),i=0;i<t.length;i++){var l=t[i],d=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(d===s||d===r))return n()}var c=document.getElementsByTagName("style");for(i=0;i<c.length;i++){l=c[i],d=l.getAttribute("data-href");if(d===s||d===r)return n()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=n,p.onerror=function(n){var s=n&&n.target&&n.target.src||r,t=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");t.code="CSS_CHUNK_LOAD_FAILED",t.request=s,delete a[e],p.parentNode.removeChild(p),o(t)},p.href=r;var u=document.getElementsByTagName("head")[0];u.appendChild(p)})).then((function(){a[e]=0})));var s=r[e];if(0!==s)if(s)n.push(s[2]);else{var t=new Promise((function(n,o){s=r[e]=[n,o]}));n.push(s[2]=t);var l,d=document.createElement("script");d.charset="utf-8",d.timeout=120,_.nc&&d.setAttribute("nonce",_.nc),d.src=i(e);var c=new Error;l=function(n){d.onerror=d.onload=null,clearTimeout(p);var o=r[e];if(0!==o){if(o){var s=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+e+" failed.\n("+s+": "+a+")",c.name="ChunkLoadError",c.type=s,c.request=a,o[1](c)}r[e]=void 0}};var p=setTimeout((function(){l({type:"timeout",target:d})}),12e4);d.onerror=d.onload=l,document.head.appendChild(d)}return Promise.all(n)},_.m=e,_.c=s,_.d=function(e,n,o){_.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},_.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_.t=function(e,n){if(1&n&&(e=_(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(_.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var s in e)_.d(o,s,function(n){return e[n]}.bind(null,s));return o},_.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return _.d(n,"a",n),n},_.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},_.p="/ui/",_.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],d=l.push.bind(l);l.push=n,l=l.slice();for(var c=0;c<l.length;c++)n(l[c]);var p=d;t.push([0,"vendors~app"]),o()})({"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js&":
+(function(e){function n(n){for(var o,a,i=n[0],_=n[1],l=n[2],d=0,c=[];d<i.length;d++)a=i[d],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&c.push(r[a][0]),r[a]=0;for(o in _)Object.prototype.hasOwnProperty.call(_,o)&&(e[o]=_[o]);p&&p(n);while(c.length)c.shift()();return t.push.apply(t,l||[]),s()}function s(){for(var e,n=0;n<t.length;n++){for(var s=t[n],o=!0,a=1;a<s.length;a++){var i=s[a];0!==r[i]&&(o=!1)}o&&(t.splice(n--,1),e=_(_.s=s[0]))}return e}var o={},a={app:0},r={app:0},t=[];function i(e){return _.p+"js/"+({}[e]||e)+".js"}function _(n){if(o[n])return o[n].exports;var s=o[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,_),s.l=!0,s.exports}_.e=function(e){var n=[],s={3:1,9:1,10:1,11:1,12:1,13:1,14:1,18:1,19:1};a[e]?n.push(a[e]):0!==a[e]&&s[e]&&n.push(a[e]=new Promise((function(n,s){for(var o="css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"623fa25f",4:"31d6cfe0",5:"31d6cfe0",6:"31d6cfe0",7:"31d6cfe0",8:"31d6cfe0",9:"f27e442b",10:"f0cf5fc3",11:"32be8789",12:"ee780c90",13:"dc77452d",14:"daa8e8be",15:"31d6cfe0",16:"31d6cfe0",17:"31d6cfe0",18:"1f93b660",19:"046fd3d8",20:"31d6cfe0"}[e]+".css",r=_.p+o,t=document.getElementsByTagName("link"),i=0;i<t.length;i++){var l=t[i],d=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(d===o||d===r))return n()}var c=document.getElementsByTagName("style");for(i=0;i<c.length;i++){l=c[i],d=l.getAttribute("data-href");if(d===o||d===r)return n()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=n,p.onerror=function(n){var o=n&&n.target&&n.target.src||r,t=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");t.code="CSS_CHUNK_LOAD_FAILED",t.request=o,delete a[e],p.parentNode.removeChild(p),s(t)},p.href=r;var u=document.getElementsByTagName("head")[0];u.appendChild(p)})).then((function(){a[e]=0})));var o=r[e];if(0!==o)if(o)n.push(o[2]);else{var t=new Promise((function(n,s){o=r[e]=[n,s]}));n.push(o[2]=t);var l,d=document.createElement("script");d.charset="utf-8",d.timeout=120,_.nc&&d.setAttribute("nonce",_.nc),d.src=i(e);var c=new Error;l=function(n){d.onerror=d.onload=null,clearTimeout(p);var s=r[e];if(0!==s){if(s){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,s[1](c)}r[e]=void 0}};var p=setTimeout((function(){l({type:"timeout",target:d})}),12e4);d.onerror=d.onload=l,document.head.appendChild(d)}return Promise.all(n)},_.m=e,_.c=o,_.d=function(e,n,s){_.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:s})},_.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_.t=function(e,n){if(1&n&&(e=_(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(_.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)_.d(s,o,function(n){return e[n]}.bind(null,o));return s},_.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return _.d(n,"a",n),n},_.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},_.p="/ui/",_.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],d=l.push.bind(l);l.push=n,l=l.slice();for(var c=0;c<l.length;c++)n(l[c]);var p=d;t.push([0,"vendors~app"]),s()})({"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js&":
/*!*************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js& ***!
\*************************************************************************************************************************************************************************************************************************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/core-js/modules/es.array.includes.js\");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/core-js/modules/es.string.includes.js\");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _components_BrandBar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/BrandBar.vue */ \"./src/components/BrandBar.vue\");\n/* harmony import */ var _components_ContactBar_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/ContactBar.vue */ \"./src/components/ContactBar.vue\");\n/* harmony import */ var _components_wallpaper_CasaWallpaper_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/wallpaper/CasaWallpaper.vue */ \"./src/components/wallpaper/CasaWallpaper.vue\");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mixins/mixin */ \"./src/mixins/mixin.js\");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvar customIconConfig = {\n customIconPacks: {\n 'casa': {\n sizes: {\n 'default': 'is-size-4',\n 'is-20': 'is-size-5',\n 'is-small': '',\n 'is-medium': 'is-size-3',\n 'is-large': 'is-size-1'\n },\n iconPrefix: 'casa-',\n internalIcons: {\n 'check': 'checkmark',\n 'information': 'information',\n 'check-circle': 'checkmark-circle-outline',\n 'alert': 'alert',\n 'alert-circle': 'alert',\n 'arrow-up': 'arrow-up',\n 'chevron-right': 'arrow-right',\n 'chevron-left': 'arrow-back',\n 'chevron-down': 'arrow-down',\n 'eye': 'eye',\n 'eye-off': 'eye-off',\n 'menu-down': 'arrow-dropdown',\n 'menu-up': 'arrow-dropup',\n 'close-circle': 'close-circle-outline'\n }\n }\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: {\n BrandBar: _components_BrandBar_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n ContactBar: _components_ContactBar_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n CasaWallpaper: _components_wallpaper_CasaWallpaper_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_5__[\"mixin\"]],\n data: function data() {\n return {\n //isLoading: true,\n steps: [],\n isWelcome: false,\n noneAni: {\n classes: 'fadeIn',\n duration: 500\n },\n initAni: {\n classes: 'zoomOutIn',\n duration: 2500\n },\n brandAni: {\n classes: \"fadeInLeft\",\n duration: 700\n },\n contactAni: {\n classes: \"fadeInRight\",\n duration: 700\n },\n isNotSharing: true\n };\n },\n computed: {\n isLoading: function isLoading() {\n return this.$store.state.siteLoading;\n }\n },\n watch: {\n $route: function $route() {\n this.isNotSharing = this.$route.path != \"/connect\";\n }\n },\n created: function created() {\n console.log(\"%c\\n_____ _____ _____ \\n| |___ ___ ___| | __|\\n| --| .'|_ -| .'| | |__ |\\n|_____|__,|___|__,|_____|_____|\\n-- Made by IceWhale with YOU --\\n\", \"font-family: monospace\");\n this.$buefy.config.setOptions(customIconConfig);\n this.checkInit();\n },\n mounted: function mounted() {\n this.setInitLang();\n window.addEventListener('resize', this.onWindowResize);\n this.onWindowResize();\n },\n methods: {\n /**\r\n * @description: Check if System need init first\r\n * @return {*} void\r\n */\n checkInit: function checkInit() {\n var _this = this;\n\n this.$api.info.guideCheck().then(function (res) {\n if (res.data.success == 200 && res.data.data.need_init_user) {\n _this.isWelcome = true;\n\n _this.$store.commit('changeSiteLoading');\n\n _this.$store.commit('changeInitialization', true);\n\n localStorage.removeItem(\"user_token\");\n\n _this.$router.push(\"/welcome\");\n } else {\n _this.isWelcome = false;\n }\n });\n },\n\n /**\r\n * @description: Get and Set default language \r\n * @return {*} void\r\n */\n setInitLang: function setInitLang() {\n var lang = localStorage.getItem('lang') ? localStorage.getItem('lang') : this.getLangFromBrowser();\n lang = lang.includes(\"_\") ? lang : \"en_us\";\n this.setLang(lang);\n },\n\n /**\r\n * @description: Handle on Window reize\r\n * @return {*}\r\n */\n onWindowResize: function onWindowResize() {\n if (document.body.clientWidth >= 480) {\n this.$store.commit('setIsMobile', false);\n } else {\n this.$store.commit('setIsMobile', true);\n }\n }\n },\n sockets: {\n connect: function connect() {\n console.log('socket connected');\n }\n }\n});\n\n//# sourceURL=webpack:///./src/App.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options")},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/BrandBar.vue?vue&type=script&lang=js&":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/core-js/modules/es.array.includes.js\");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/core-js/modules/es.string.includes.js\");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _components_BrandBar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/BrandBar.vue */ \"./src/components/BrandBar.vue\");\n/* harmony import */ var _components_ContactBar_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/ContactBar.vue */ \"./src/components/ContactBar.vue\");\n/* harmony import */ var _components_wallpaper_CasaWallpaper_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/wallpaper/CasaWallpaper.vue */ \"./src/components/wallpaper/CasaWallpaper.vue\");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./mixins/mixin */ \"./src/mixins/mixin.js\");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvar customIconConfig = {\n customIconPacks: {\n 'casa': {\n sizes: {\n 'default': 'is-size-4',\n 'is-20': 'is-size-5',\n 'is-small': '',\n 'is-medium': 'is-size-3',\n 'is-large': 'is-size-1'\n },\n iconPrefix: 'casa-',\n internalIcons: {\n 'check': 'checkmark',\n 'information': 'information',\n 'check-circle': 'checkmark-circle-outline',\n 'alert': 'alert',\n 'alert-circle': 'alert',\n 'arrow-up': 'arrow-up',\n 'chevron-right': 'arrow-right',\n 'chevron-left': 'arrow-back',\n 'chevron-down': 'arrow-down',\n 'eye': 'eye',\n 'eye-off': 'eye-off',\n 'menu-down': 'arrow-dropdown',\n 'menu-up': 'arrow-dropup',\n 'close-circle': 'close-circle-outline'\n }\n }\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: {\n BrandBar: _components_BrandBar_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n ContactBar: _components_ContactBar_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n CasaWallpaper: _components_wallpaper_CasaWallpaper_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_5__[\"mixin\"]],\n data: function data() {\n return {\n //isLoading: true,\n steps: [],\n isWelcome: false,\n noneAni: {\n classes: 'fadeIn',\n duration: 500\n },\n initAni: {\n classes: 'zoomOutIn',\n duration: 2500\n },\n brandAni: {\n classes: \"fadeInLeft\",\n duration: 700\n },\n contactAni: {\n classes: \"fadeInRight\",\n duration: 700\n },\n isNotSharing: true\n };\n },\n computed: {\n isLoading: function isLoading() {\n return this.$store.state.siteLoading;\n }\n },\n watch: {\n $route: function $route() {\n this.isNotSharing = this.$route.path != \"/connect\";\n }\n },\n created: function created() {\n console.log(\"%c\\n_____ _____ _____ \\n| |___ ___ ___| | __|\\n| --| .'|_ -| .'| | |__ |\\n|_____|__,|___|__,|_____|_____|\\n-- Made by IceWhale with YOU --\\n\", \"font-family: monospace\");\n this.$buefy.config.setOptions(customIconConfig);\n this.checkInit();\n },\n mounted: function mounted() {\n this.setInitLang();\n window.addEventListener('resize', this.onWindowResize);\n this.onWindowResize();\n },\n methods: {\n /**\n * @description: Check if System need init first\n * @return {*} void\n */\n checkInit: function checkInit() {\n var _this = this;\n\n this.$api.info.guideCheck().then(function (res) {\n if (res.data.success == 200 && res.data.data.need_init_user) {\n _this.isWelcome = true;\n\n _this.$store.commit('changeSiteLoading');\n\n _this.$store.commit('changeInitialization', true);\n\n localStorage.removeItem(\"user_token\");\n\n _this.$router.push(\"/welcome\");\n } else {\n _this.isWelcome = false;\n }\n });\n },\n\n /**\n * @description: Get and Set default language \n * @return {*} void\n */\n setInitLang: function setInitLang() {\n var lang = localStorage.getItem('lang') ? localStorage.getItem('lang') : this.getLangFromBrowser();\n lang = lang.includes(\"_\") ? lang : \"en_us\";\n this.setLang(lang);\n },\n\n /**\n * @description: Handle on Window reize\n * @return {*}\n */\n onWindowResize: function onWindowResize() {\n if (document.body.clientWidth >= 480) {\n this.$store.commit('setIsMobile', false);\n } else {\n this.$store.commit('setIsMobile', true);\n }\n }\n },\n sockets: {\n connect: function connect() {\n console.log('socket connected');\n }\n }\n});\n\n//# sourceURL=webpack:///./src/App.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options")},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/BrandBar.vue?vue&type=script&lang=js&":
/*!*****************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/BrandBar.vue?vue&type=script&lang=js& ***!
\*****************************************************************************************************************************************************************************************************************************************************/
@@ -278,7 +278,7 @@
/*!************************************************************!*\
!*** ./src/assets/img/filebrowser/application-x-apple.svg ***!
\************************************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-apple.5eb295b2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-apple.svg?')},"./src/assets/img/filebrowser/application-x-ar.svg":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-apple.500bd1f9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-apple.svg?')},"./src/assets/img/filebrowser/application-x-ar.svg":
/*!*********************************************************!*\
!*** ./src/assets/img/filebrowser/application-x-ar.svg ***!
\*********************************************************/
@@ -582,7 +582,7 @@
/*!***************************************************!*\
!*** ./src/assets/img/filebrowser/folder-hdd.svg ***!
\***************************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-hdd.42e0a4ee.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-hdd.svg?')},"./src/assets/img/filebrowser/folder-open.svg":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-hdd.adcf549a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-hdd.svg?')},"./src/assets/img/filebrowser/folder-open.svg":
/*!****************************************************!*\
!*** ./src/assets/img/filebrowser/folder-open.svg ***!
\****************************************************/
@@ -598,7 +598,7 @@
/*!***************************************************!*\
!*** ./src/assets/img/filebrowser/folder-usb.svg ***!
\***************************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-usb.1011b135.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-usb.svg?')},"./src/assets/img/filebrowser/folder-video.svg":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-usb.84d5b55d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-usb.svg?')},"./src/assets/img/filebrowser/folder-video.svg":
/*!*****************************************************!*\
!*** ./src/assets/img/filebrowser/folder-video.svg ***!
\*****************************************************/
@@ -990,15 +990,15 @@
/*!********************************************!*\
!*** ./src/assets/img/logo/casa-white.svg ***!
\********************************************/
-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/casa-white.f250568a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/logo/casa-white.svg?')},"./src/assets/lang/de_de.js":
+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/casa-white.2579f069.svg";\n\n//# sourceURL=webpack:///./src/assets/img/logo/casa-white.svg?')},"./src/assets/lang/de_de.js":
/*!**********************************!*\
!*** ./src/assets/lang/de_de.js ***!
\**********************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// German\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Abbrechen",\n "Submit": "Speichern",\n "Back": "Zurück",\n "Edit": "Bearbeiten",\n "Update": "Aktualisieren",\n "Create": "Erstellen",\n "Next": "Weiter",\n "Close": "Schließen",\n "Select": "Auswählen",\n "Save": "Speichern",\n "Add": "Hinzufügen",\n "Go": "Loslegen",\n "Import": "Importieren",\n "Low": "Niedrig",\n "Medium": "Mittel",\n "High": "Hoch",\n "Language": "Sprache",\n "This field is required": "Dieses Feld ist erforderlich",\n "This field must be a valid email": "Dieses Feld beinhaltet keine gültige E-Mail-Adresse",\n "This field confirmation does not match": "Dieses Feld stimmt nicht überein",\n "This field must have 2 options": "Dieses Feld muss 2 Optionen enthalten",\n "This field must have more than 5 characters": "Dieses Feld muss mehr als 5 Zeichen enthalten",\n "You entered an invalid RFC1123 hostname": "Du hast einen falschen RFC1123 Hostnamen eingegeben",\n // Init Page\n "Welcome to CasaOS": "Willkommen im CasaOS",\n "Let\'s create your initial account": "Erstelle deinen Account",\n "Go →": "Loslegen →",\n "Create Account": "Account erstellen",\n "Username": "Benutzername",\n "Confirm Password": "Passwort bestätigen",\n "Username or Password error!": "Fehler bei Benutzername oder Passwort!",\n "All things done!": "Alles erledigt!",\n // Login\n "Login": "Anmelden",\n "Password error!": "Passwort fehlerhaft!",\n // Account\n "Account": "Account",\n "Logout": "Abmelden",\n "Name": "Name",\n "Password": "Passwort",\n "Change name": "Name ändern",\n "Change Password": "Passwort ändern",\n "Original password": "Aktuelles Passwort",\n "New password": "Neues Passwort",\n "Confirm the new password again": "Neues Passwort bestätigen",\n // Dashboard Settings\n "Settings": "Einstellungen",\n "Dashboard Setting": "Dashboard-Einstellungen",\n "Search Engine": "Suchmaschine",\n "WebUI Port": "Web-UI-Port",\n "Currently the latest version": "Aktuellste Version installiert",\n "A new version is available!": "Neue Version verfügbar!",\n "Edit Web UI port": "Web-UI-Port ändern",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminal & Logs",\n "Terminal": "Terminal",\n "Logs": "Logs",\n // Widgets\n "Widgets Settings": "Widget-Einstellungen",\n "Time": "Uhrzeit",\n "Cores": "Cores",\n "System Status": "System-Status",\n "Storage Status": "Storage Status",\n "Network Status": "Netzwerk-Status",\n "available of": "{avl} von {total} verfügbar",\n // Search\n "Search...": "Suchen...",\n // Sync\n "Sync your data": "Synchronisiere deine Daten",\n "Follow the guide to start syncing your files across multiple devices.": "Folge der Anleitung, um deine Dateien auf mehreren Geräten zu synchronisieren.",\n "Go !": "Loslegen!",\n "Sync Guide": "Synchronisation einrichten",\n "Install": "Installation",\n "Config": "Konfiguration",\n "Complete": "Abschluss",\n "Download Syncthing on the device you want to sync with CasaOS": "Installiere Syncthing auf dem Gerät, das du mit CasaOS synchronisieren möchtest.",\n "Get Syncthing for": "Installiere Syncthing für {os}",\n "Download APK": "APK herunterladen",\n "Show all Platforms": "Alle Plattformen anzeigen",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Installiere und öffne die heruntergeladene App und klicke dann auf "Weiter".\',\n "Device ID": "Geräte-ID",\n "Fill in your Device ID to continue": "Trage deine Geräte-ID zum Fortfahren ein",\n "How to get Device ID": "Device-ID auslesen",\n "What do I need to do on my device?": "Was muss ich auf meinem Gerät tun?",\n "Open the SyncTrayzor": "Öffne den SyncTrayzor",\n "Find the Device ID": "Finde deine Geräte-ID",\n "Add new device on your device": "Neues Gerät auf deinem aktuellen Gerät hinzufügen",\n "Add new folder on your device": "Neuen Ordner auf deinem aktuellen Gerät hinzufügen",\n "Done!": "Fertig!",\n "Open Syncthing in the Launchpad": "Öffne Syncthing im Launchpad",\n "Find the Syncthing icon in the menubar": "Finde das Syncthing-Icon in der Menüleiste",\n "Open Syncthing": "Öffne Syncthing",\n "Open the menu": "Öffne das Menü",\n \'Choose "Show device ID"\': \'Wähle "Geräte-ID anzeigen" aus\',\n "Copy the Device ID": "Kopiere die Geräte-ID",\n "There you go!": "Und schon kann es losgehen!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "Deine Dateien synchronisieren sich nun.<br>Das dauert einen kleinen Moment.",\n "Up to Date": "Aktuell",\n "Synchronizing": "Synchronisiere",\n "Synchronized": "Sychronisiert",\n "Total": "Gesamt",\n "Add New Device": "Neues Gerät hinzufügen",\n // Iot\n "Have an idea? Shoot it on Discord!": "Du hast eine Idee? Besuche uns im Discord!",\n "Smarten up your home": "Mach dein Zuhause smart",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Wir wollen dir ein Smart-Home-Erlebnis mit Privatsphäre, hoher Geschwindigkeit und lokalem Speicher anbieten.",\n "In development": "In Entwicklung",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "Öffnen",\n "Setting": "Einstellungen",\n "Uninstall": "Deinstallieren",\n "Attention": "Achtung",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Deine Daten können nach der Deinstallation nicht wiederhergestellt werden! <br>Willst du mit der Deinstallation der App fortfahren?",\n "Featured Apps": "Vorgestellte Apps",\n "Custom Install": "Eigene Installation",\n "Continue in background": "Im Hintergrund fortfahren",\n "Install a new App manually": "Neue App manuell installieren",\n "Docker Image": "Docker-Image",\n "App name": "App-Name",\n "Icon URL": "Icon-URL",\n "Network": "Netzwerk",\n "Privileged": "Privilegiert",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Ressourcen (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname des App Containers",\n "Ports": "Ports",\n "Volumes": "Volumes",\n "Environment Variables": "Umgebungsvariablen",\n "Devices": "Geräte",\n "Memory Limit": "Speicherlimit",\n "CPU Shares": "CPU-Anteile",\n "Restart Policy": "Neustartrichtlinie",\n "App Description": "App-Beschreibung",\n "No ports now, click “+” to add one.": "Keine Ports vorhanden. Klicke auf “+” zum Hinzuzufügen.",\n "No volumes now, click “+” to add one.": "Keine Volumes vorhanden. Klicke auf “+” zum Hinzuzufügen.",\n "No environment variables now, click “+” to add one.": "Keine Umgebungsvariablen vorhanden. Klicke auf “+” zum Hinzuzufügen.",\n "No devices now, click “+” to add one.": "Keine Geräte vorhanden. Klicke auf “+” zum Hinzuzufügen.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "z.B. hallo-welt:latest",\n "Your custom App Name": "Dein eigener App-Name",\n "Your custom icon URL": "Deine eigene Icon-URL",\n "Installing": "Installiere",\n "Export AppFile": "AppFile exportieren",\n "AppFile": "AppFile",\n "Drop your app file here or click to upload": "Lege dein AppFile hier ab oder klicke zum Hochladen",\n "Host": "Host",\n "Container": "Container",\n "Key": "Schlüssel",\n "Value": "Wert",\n "Protocol": "Protokoll",\n "This is not a valid json file.": "Das ist keine valide JSON-Datei.",\n "Your browser does not support file reading.": "Dein Browser unterstützt das Auslesen von Dateien nicht.",\n "has been selected": "wurde ausgewählt",\n "Please fill correct command line": "Bitte gib das korrekte Kommando ein",\n "Please import a valid App file": "Bitte importiere ein valides AppFile",\n "AutoFill only helps you to complete most of the configuration.": "AutoFill hilft dir beim Ausfüllen des größten Teils der Konfiguration.",\n "Some configuration information such as:": "Einige Konfigurationsparameter wie:",\n "the port and path of the Web UI": "den Port und den Pfad der Web-UI",\n "the mount location of the volume or file": "den Speicherort des Volumes oder der Datei",\n "the port mapping of the Host": "die Portzuordnung des Hosts",\n "optional configuration items": "optionale Konfigurationsparameter",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "Dazu gehören unter anderem diese Fälle, die <b>noch bestätigt oder geändert werden müssen</b>.",\n "Feel free to suggest improvements to this feature in Discord Server!": "Du kannst gerne Verbesserungen für diese Funktion auf dem Discord-Server vorschlagen!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Die Verwendung von localhost oder 127.0.0.1 führt dazu, dass die Anwendung nicht aufrufbar ist. Bitte verwende die echte IP-Adresse für den Zugriff.",\n "CATEGORY": "KATEGORIE",\n "DEVELOPER": "ENTWICKLER",\n "REQUIRE": "ERFORDERLICHER",\n "MEMORY": "RAM",\n "DISK": "SPEICHER",\n "App Store": "App Store",\n "Community Apps": "Community Apps",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "Von der Community zur Verfügung gestellt, aber nicht für CasaOS optimiert. Grundlegende App-Funktionen sind jedoch problemlos nutzbar.",\n "Sort by": "Sortieren nach",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Speicher anlegen",\n "Storage Manager": "Speicherverwaltung",\n "Storage": "Speicher",\n "Drive": "Laufwerk",\n "Single Drive Storage": "Einzelnes Speicherlaufwerk",\n "Format": "Formartieren",\n "Remove": "Entfernen",\n "Available Total": "{name} | Verfügbar: {avl} (Insgesamt: {total})",\n "Health": "Gesundheit",\n "Healthy": "Gesund",\n "Damage": "Defekt",\n "Temp": "Temperatur",\n "WARNING!": "WARNUNG!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "Das ausgewählte Laufwerk wird gelöscht, wenn sich Daten darauf befinden. Vergewissere dich, dass sich keine wichtigen ungesicherten Daten auf dem ausgewählten Laufwerk befinden. Wenn Daten zu migrieren sind, werden die zugehörigen Anwendungen während des Migrationsprozesses gestoppt.",\n "Creation in progress": "Wird erstellt",\n "Apply": "Übernehmen",\n "Just Mount": "Nur einhängen",\n "Storage Name": "Speichername",\n "Choose Drive": "Laufwerk auswählen",\n "Enter the password to continue:": "Gib das Passwort ein, um fortzufahren:",\n "Used": "Verwendet",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserviert 1% des Speicherplatzes, wenn das EXT4-Format ausgwählt wird.",\n "The selected drive will be emptied.": "Das ausgewählte Laufwerk wird geleert.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Überprüfe noch einmal, dass sich auf dem ausgewählten Laufwerk keine wichtigen Daten befinden, die gesichert werden müssen.",\n "The drive you select can be used directly as storage.": "Das von dir ausgewählte Laufwerk kann direkt als Speicher verwendet werden.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "Du kannst auch auswählen, dass es nach der Formatierung erstellt wird. Beim Formatieren wird das ausgewählte Laufwerk geleert.",\n "Format and Create": "Formatieren und erstellen",\n // Feedback\n "Join Discord": "Discord beitreten",\n "Visit our Github": "GitHub durchsuchen",\n "Bug report": "Fehler melden",\n "Title": "Titel",\n "Describe the bug": "Beschreibe den Fehler",\n "A clear and concise description of what the bug is.": "Eine klare und prägnante Beschreibung des Fehlers.",\n "System infomation": "System-Informationen",\n // Files\n "Files": "Dateien",\n "Upload or Create": "Hochladen oder erstellen",\n "Upload Files": "Dateien hochladen",\n "Upload Folder": "Ordner hochladen",\n "New Folder": "Neuer Ordner",\n "New File": "Neue Datei",\n "Change View": "Ansicht ändern",\n "Upload to": "Hochladen zu",\n "Uploading": "wird hochgeladen",\n "Completed": "Vollständig",\n "success": "Erfolgreich",\n "error": "Fehler",\n "uploading": "wird hochgeladen",\n "paused": "Pausiert",\n "waiting": "Wartet",\n "Download": "Runterladen",\n "Copy Path": "Pfad kopieren",\n "Rename": "Umbenennen",\n "Cut": "Ausschneiden",\n "Copy": "Kopieren",\n "Delete": "Entfernen",\n "Are you sure?": "Bist du sicher?",\n "Paste": "Einfügen",\n "Refresh": "aktualisieren",\n "Code Editor": "Code Editor",\n "Saved": "Gespeichert",\n "Want to save?": "Willst du speichern?",\n "Your changes will be lost if you don’t save them.": "Deine Änderungen gehen verloren, wenn du nicht speicherst.",\n "Don’t Save": "Nicht sichern",\n "Drop your files here to upload": "Dateien zum Hochladen hier ablegen",\n "or": "oder",\n "Date Modified": "geändertes Datum",\n "Size": "Größe",\n "Play in IINA": "Spiele in IINA",\n "Play in PotPlayer": "Spiele in PotPlayer",\n "Play in VLC": "Spiele in VLC",\n "Download in preparation...": "Download wird vorbereitet...",\n "Copied to clipboard": "In Zwischenablage kopiert",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\r\n * Share Section\r\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "Weitere Infos",\n "Edit Info": "Infos ändern",\n "Copy My Share ID": "Kopiere meine Share ID",\n "Add Friend": "Freund hinzufügen",\n "Friends": "Freunde",\n "Downloads": "Downloads",\n "Notification": "Benachrichtigung",\n "Upload not supported!": "Upload nicht unterstützt!",\n "Select a friend to view his share.": "Wähle einen Freund, um dessen Share anzusehen.",\n "There are no files in the current folder.": "Im aktuellen Verzeichnis sind keine Dateien.",\n "has been copied to the clipboard": "wurde in die Zwischenablage kopiert",\n "is offline": "ist offline",\n "Home": "Home",\n "Forward": "Weiterleiten",\n // User Context\n "Edit remark": "Bemerkung ändern",\n "Unblock this friend": "Freund entblocken",\n "Block this friend": "Freund blocken",\n "Delete friend": "Freund löschen",\n "Blocked this friend": "Freund wurde geblockt",\n "Unblocked this friend": "Freund wurde entblockt",\n "Blocked failed": "Blocken fehlgeschlagen",\n "Deleted this friend": "Freund löschen",\n "Delete failed": "Löschen fehlgeschlagen",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Überspringen",\n "Prev": "Vorheriges",\n "Let\'s Go": "Los gehts",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Hier ist dein Avatar, wo du deine persönlichen Informationen ändern kannst und deine ID zum Weitergeben an deine Freunde findest.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Klicke auf das \\"+\\" und trag die ID deines Freundes ein, um eine Freundschaftsanfrage zu schicken.",\n "Browse your download progress and download history here.": "Den Download-Fortschritt und deine Download-Historie findest du hier.",\n "Modify your shared folders, and default download path here.": "Ändere deine geteilten Verzeichnisse und deinen Standard-Download-Pfad hier.",\n "Well, let\'s start using it!": "Los gehts",\n // Download List\n "Downloading": "Downloade",\n "D-Completed": "Vollständig",\n "D-Total": "Gesamt",\n "D-Name": "Name",\n "D-Size": "Größe",\n "D-Progress": "Fortschritt",\n "D-Retry": "Neustarten",\n "Cancel Download": "Download abbrechen",\n "Delete this record": "Eintrag löschen",\n "Finishing": "Fertigstellen",\n "Error": "Error",\n "Download was cancelled": "Download wurde abgebrochen",\n "Cancel download failed": "Download abbrechen fehlgeschlagen",\n "Record deleted": "Eintrag gelöscht",\n "Delete record failed": "Eintrag löschen fehlgeschlagen",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Willkommen zu CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "Mit diesem Feature kannst du ganz einfach Peer-to-Peer-Filesharing mit deinen Freunden nutzen.",\n "You need to do some simple setup.": "Einige einfache Schritte sind zur Einrichtung erforderlich.",\n "Let\'s Start": "Los gehts",\n "Share-Account": "Account",\n "Share-Setting": "Einstellung",\n "Share-Recommend": "Empfehlen",\n "Share-Finish": "Fertigstellen",\n "Nickname": "Nickname",\n "Please enter your nickname.": "Trag deinen Nickname ein.",\n "Description": "Beschreibung",\n "Please enter your Description.": "Bitte gib deine Beschreibung ein.",\n "Shared folders": "Geteilte Verzeichnisse",\n "Default download path": "Standard-Download-Pfad",\n "Need to add at least one directory.": "Du benötigst mindestens ein Verzeichnis.",\n "Change": "Ändern",\n "We have prepared some public servers.": "Wir haben einige öffentliche Server für dich vorbereitet.",\n "You need to choose one of them to start with.": "Zum Starten musst du dir einen aussuchen.",\n "At least one must be selected.": "Mindestens einer muss ausgewählt werden.",\n "Share is ready!": "Share ist fertig!",\n "You have completed the initial setup.": "Du hast die Einrichtung abgeschlossen.",\n "Next you can follow the use guide to learn how to use it.": "In der Anleitung kannst du nachlesen, wie du es benutzt.",\n "Share-Go": "Los",\n // Add Friend Modal\n "Send Friend Request": "Freundschaftsanfrage senden",\n "Friend\'s ID": "ID deines Freundes",\n "Please enter friend\'s Share ID.": "Gib die ID des Shares deines Freundes ein.",\n "Friend Request Sent.": "Freundschaftsanfrage gesendet.",\n "is already your friend.": "ist schon dein Freund.",\n // Download Modal\n "Download to": "{file} downloaden nach",\n "Download path": "Download-Pfad",\n "Set as default download path": "Als Standard-Download-Pfad setzen",\n "Download has started": "Download gestartet",\n "Download failed": "Download fehlgeschlagen",\n // Remark Modal\n "Please enter the remark.": "Bitte trag die Bemerkung ein.",\n "Remark saved": "Bemerkung gespeichert",\n "Remark save failed": "Bemerkung speichern fehlgeschlagen",\n // Profile Modal \n "Edit My Info": "Meine Info verändern",\n "My ID": "Meine ID",\n "Update successful": "Update erfolgreich",\n "Update failed": "Update fehlgeschlagen"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/de_de.js?')},"./src/assets/lang/en_us.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// German\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Abbrechen",\n "Submit": "Speichern",\n "Back": "Zurück",\n "Edit": "Bearbeiten",\n "Update": "Aktualisieren",\n "Create": "Erstellen",\n "Next": "Weiter",\n "Close": "Schließen",\n "Select": "Auswählen",\n "Save": "Speichern",\n "Add": "Hinzufügen",\n "Go": "Loslegen",\n "Import": "Importieren",\n "Low": "Niedrig",\n "Medium": "Mittel",\n "High": "Hoch",\n "Language": "Sprache",\n "This field is required": "Dieses Feld ist erforderlich",\n "This field must be a valid email": "Dieses Feld beinhaltet keine gültige E-Mail-Adresse",\n "This field confirmation does not match": "Dieses Feld stimmt nicht überein",\n "This field must have 2 options": "Dieses Feld muss 2 Optionen enthalten",\n "This field must have more than 5 characters": "Dieses Feld muss mehr als 5 Zeichen enthalten",\n "You entered an invalid RFC1123 hostname": "Du hast einen falschen RFC1123 Hostnamen eingegeben",\n // Init Page\n "Welcome to CasaOS": "Willkommen im CasaOS",\n "Let\'s create your initial account": "Erstelle deinen Account",\n "Go →": "Loslegen →",\n "Create Account": "Account erstellen",\n "Username": "Benutzername",\n "Confirm Password": "Passwort bestätigen",\n "Username or Password error!": "Fehler bei Benutzername oder Passwort!",\n "All things done!": "Alles erledigt!",\n // Login\n "Login": "Anmelden",\n "Password error!": "Passwort fehlerhaft!",\n // Account\n "Account": "Account",\n "Logout": "Abmelden",\n "Name": "Name",\n "Password": "Passwort",\n "Change name": "Name ändern",\n "Change Password": "Passwort ändern",\n "Original password": "Aktuelles Passwort",\n "New password": "Neues Passwort",\n "Confirm the new password again": "Neues Passwort bestätigen",\n // Dashboard Settings\n "Settings": "Einstellungen",\n "Dashboard Setting": "Dashboard-Einstellungen",\n "Search Engine": "Suchmaschine",\n "WebUI Port": "Web-UI-Port",\n "Currently the latest version": "Aktuellste Version installiert",\n "A new version is available!": "Neue Version verfügbar!",\n "Edit Web UI port": "Web-UI-Port ändern",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminal & Logs",\n "Terminal": "Terminal",\n "Logs": "Logs",\n // Widgets\n "Widgets Settings": "Widget-Einstellungen",\n "Time": "Uhrzeit",\n "Cores": "Cores",\n "System Status": "System-Status",\n "Storage Status": "Storage Status",\n "Network Status": "Netzwerk-Status",\n "available of": "{avl} von {total} verfügbar",\n // Search\n "Search...": "Suchen...",\n // Sync\n "Sync your data": "Synchronisiere deine Daten",\n "Follow the guide to start syncing your files across multiple devices.": "Folge der Anleitung, um deine Dateien auf mehreren Geräten zu synchronisieren.",\n "Go !": "Loslegen!",\n "Sync Guide": "Synchronisation einrichten",\n "Install": "Installation",\n "Config": "Konfiguration",\n "Complete": "Abschluss",\n "Download Syncthing on the device you want to sync with CasaOS": "Installiere Syncthing auf dem Gerät, das du mit CasaOS synchronisieren möchtest.",\n "Get Syncthing for": "Installiere Syncthing für {os}",\n "Download APK": "APK herunterladen",\n "Show all Platforms": "Alle Plattformen anzeigen",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Installiere und öffne die heruntergeladene App und klicke dann auf "Weiter".\',\n "Device ID": "Geräte-ID",\n "Fill in your Device ID to continue": "Trage deine Geräte-ID zum Fortfahren ein",\n "How to get Device ID": "Device-ID auslesen",\n "What do I need to do on my device?": "Was muss ich auf meinem Gerät tun?",\n "Open the SyncTrayzor": "Öffne den SyncTrayzor",\n "Find the Device ID": "Finde deine Geräte-ID",\n "Add new device on your device": "Neues Gerät auf deinem aktuellen Gerät hinzufügen",\n "Add new folder on your device": "Neuen Ordner auf deinem aktuellen Gerät hinzufügen",\n "Done!": "Fertig!",\n "Open Syncthing in the Launchpad": "Öffne Syncthing im Launchpad",\n "Find the Syncthing icon in the menubar": "Finde das Syncthing-Icon in der Menüleiste",\n "Open Syncthing": "Öffne Syncthing",\n "Open the menu": "Öffne das Menü",\n \'Choose "Show device ID"\': \'Wähle "Geräte-ID anzeigen" aus\',\n "Copy the Device ID": "Kopiere die Geräte-ID",\n "There you go!": "Und schon kann es losgehen!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "Deine Dateien synchronisieren sich nun.<br>Das dauert einen kleinen Moment.",\n "Up to Date": "Aktuell",\n "Synchronizing": "Synchronisiere",\n "Synchronized": "Sychronisiert",\n "Total": "Gesamt",\n "Add New Device": "Neues Gerät hinzufügen",\n // Iot\n "Have an idea? Shoot it on Discord!": "Du hast eine Idee? Besuche uns im Discord!",\n "Smarten up your home": "Mach dein Zuhause smart",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Wir wollen dir ein Smart-Home-Erlebnis mit Privatsphäre, hoher Geschwindigkeit und lokalem Speicher anbieten.",\n "In development": "In Entwicklung",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "Öffnen",\n "Setting": "Einstellungen",\n "Uninstall": "Deinstallieren",\n "Attention": "Achtung",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Deine Daten können nach der Deinstallation nicht wiederhergestellt werden! <br>Willst du mit der Deinstallation der App fortfahren?",\n "Featured Apps": "Vorgestellte Apps",\n "Custom Install": "Eigene Installation",\n "Continue in background": "Im Hintergrund fortfahren",\n "Install a new App manually": "Neue App manuell installieren",\n "Docker Image": "Docker-Image",\n "App name": "App-Name",\n "Icon URL": "Icon-URL",\n "Network": "Netzwerk",\n "Privileged": "Privilegiert",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Ressourcen (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname des App Containers",\n "Ports": "Ports",\n "Volumes": "Volumes",\n "Environment Variables": "Umgebungsvariablen",\n "Devices": "Geräte",\n "Memory Limit": "Speicherlimit",\n "CPU Shares": "CPU-Anteile",\n "Restart Policy": "Neustartrichtlinie",\n "App Description": "App-Beschreibung",\n "No ports now, click “+” to add one.": "Keine Ports vorhanden. Klicke auf “+” zum Hinzuzufügen.",\n "No volumes now, click “+” to add one.": "Keine Volumes vorhanden. Klicke auf “+” zum Hinzuzufügen.",\n "No environment variables now, click “+” to add one.": "Keine Umgebungsvariablen vorhanden. Klicke auf “+” zum Hinzuzufügen.",\n "No devices now, click “+” to add one.": "Keine Geräte vorhanden. Klicke auf “+” zum Hinzuzufügen.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "z.B. hallo-welt:latest",\n "Your custom App Name": "Dein eigener App-Name",\n "Your custom icon URL": "Deine eigene Icon-URL",\n "Installing": "Installiere",\n "Export AppFile": "AppFile exportieren",\n "AppFile": "AppFile",\n "Drop your app file here or click to upload": "Lege dein AppFile hier ab oder klicke zum Hochladen",\n "Host": "Host",\n "Container": "Container",\n "Key": "Schlüssel",\n "Value": "Wert",\n "Protocol": "Protokoll",\n "This is not a valid json file.": "Das ist keine valide JSON-Datei.",\n "Your browser does not support file reading.": "Dein Browser unterstützt das Auslesen von Dateien nicht.",\n "has been selected": "wurde ausgewählt",\n "Please fill correct command line": "Bitte gib das korrekte Kommando ein",\n "Please import a valid App file": "Bitte importiere ein valides AppFile",\n "AutoFill only helps you to complete most of the configuration.": "AutoFill hilft dir beim Ausfüllen des größten Teils der Konfiguration.",\n "Some configuration information such as:": "Einige Konfigurationsparameter wie:",\n "the port and path of the Web UI": "den Port und den Pfad der Web-UI",\n "the mount location of the volume or file": "den Speicherort des Volumes oder der Datei",\n "the port mapping of the Host": "die Portzuordnung des Hosts",\n "optional configuration items": "optionale Konfigurationsparameter",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "Dazu gehören unter anderem diese Fälle, die <b>noch bestätigt oder geändert werden müssen</b>.",\n "Feel free to suggest improvements to this feature in Discord Server!": "Du kannst gerne Verbesserungen für diese Funktion auf dem Discord-Server vorschlagen!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Die Verwendung von localhost oder 127.0.0.1 führt dazu, dass die Anwendung nicht aufrufbar ist. Bitte verwende die echte IP-Adresse für den Zugriff.",\n "CATEGORY": "KATEGORIE",\n "DEVELOPER": "ENTWICKLER",\n "REQUIRE": "ERFORDERLICHER",\n "MEMORY": "RAM",\n "DISK": "SPEICHER",\n "App Store": "App Store",\n "Community Apps": "Community Apps",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "Von der Community zur Verfügung gestellt, aber nicht für CasaOS optimiert. Grundlegende App-Funktionen sind jedoch problemlos nutzbar.",\n "Sort by": "Sortieren nach",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Speicher anlegen",\n "Storage Manager": "Speicherverwaltung",\n "Storage": "Speicher",\n "Drive": "Laufwerk",\n "Single Drive Storage": "Einzelnes Speicherlaufwerk",\n "Format": "Formartieren",\n "Remove": "Entfernen",\n "Available Total": "{name} | Verfügbar: {avl} (Insgesamt: {total})",\n "Health": "Gesundheit",\n "Healthy": "Gesund",\n "Damage": "Defekt",\n "Temp": "Temperatur",\n "WARNING!": "WARNUNG!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "Das ausgewählte Laufwerk wird gelöscht, wenn sich Daten darauf befinden. Vergewissere dich, dass sich keine wichtigen ungesicherten Daten auf dem ausgewählten Laufwerk befinden. Wenn Daten zu migrieren sind, werden die zugehörigen Anwendungen während des Migrationsprozesses gestoppt.",\n "Creation in progress": "Wird erstellt",\n "Apply": "Übernehmen",\n "Just Mount": "Nur einhängen",\n "Storage Name": "Speichername",\n "Choose Drive": "Laufwerk auswählen",\n "Enter the password to continue:": "Gib das Passwort ein, um fortzufahren:",\n "Used": "Verwendet",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserviert 1% des Speicherplatzes, wenn das EXT4-Format ausgwählt wird.",\n "The selected drive will be emptied.": "Das ausgewählte Laufwerk wird geleert.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Überprüfe noch einmal, dass sich auf dem ausgewählten Laufwerk keine wichtigen Daten befinden, die gesichert werden müssen.",\n "The drive you select can be used directly as storage.": "Das von dir ausgewählte Laufwerk kann direkt als Speicher verwendet werden.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "Du kannst auch auswählen, dass es nach der Formatierung erstellt wird. Beim Formatieren wird das ausgewählte Laufwerk geleert.",\n "Format and Create": "Formatieren und erstellen",\n // Feedback\n "Join Discord": "Discord beitreten",\n "Visit our Github": "GitHub durchsuchen",\n "Bug report": "Fehler melden",\n "Title": "Titel",\n "Describe the bug": "Beschreibe den Fehler",\n "A clear and concise description of what the bug is.": "Eine klare und prägnante Beschreibung des Fehlers.",\n "System infomation": "System-Informationen",\n // Files\n "Files": "Dateien",\n "Upload or Create": "Hochladen oder erstellen",\n "Upload Files": "Dateien hochladen",\n "Upload Folder": "Ordner hochladen",\n "New Folder": "Neuer Ordner",\n "New File": "Neue Datei",\n "Change View": "Ansicht ändern",\n "Upload to": "Hochladen zu",\n "Uploading": "wird hochgeladen",\n "Completed": "Vollständig",\n "success": "Erfolgreich",\n "error": "Fehler",\n "uploading": "wird hochgeladen",\n "paused": "Pausiert",\n "waiting": "Wartet",\n "Download": "Runterladen",\n "Copy Path": "Pfad kopieren",\n "Rename": "Umbenennen",\n "Cut": "Ausschneiden",\n "Copy": "Kopieren",\n "Delete": "Entfernen",\n "Are you sure?": "Bist du sicher?",\n "Paste": "Einfügen",\n "Refresh": "aktualisieren",\n "Code Editor": "Code Editor",\n "Saved": "Gespeichert",\n "Want to save?": "Willst du speichern?",\n "Your changes will be lost if you don’t save them.": "Deine Änderungen gehen verloren, wenn du nicht speicherst.",\n "Don’t Save": "Nicht sichern",\n "Drop your files here to upload": "Dateien zum Hochladen hier ablegen",\n "or": "oder",\n "Date Modified": "geändertes Datum",\n "Size": "Größe",\n "Play in IINA": "Spiele in IINA",\n "Play in PotPlayer": "Spiele in PotPlayer",\n "Play in VLC": "Spiele in VLC",\n "Download in preparation...": "Download wird vorbereitet...",\n "Copied to clipboard": "In Zwischenablage kopiert",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\n * Share Section\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "Weitere Infos",\n "Edit Info": "Infos ändern",\n "Copy My Share ID": "Kopiere meine Share ID",\n "Add Friend": "Freund hinzufügen",\n "Friends": "Freunde",\n "Downloads": "Downloads",\n "Notification": "Benachrichtigung",\n "Upload not supported!": "Upload nicht unterstützt!",\n "Select a friend to view his share.": "Wähle einen Freund, um dessen Share anzusehen.",\n "There are no files in the current folder.": "Im aktuellen Verzeichnis sind keine Dateien.",\n "has been copied to the clipboard": "wurde in die Zwischenablage kopiert",\n "is offline": "ist offline",\n "Home": "Home",\n "Forward": "Weiterleiten",\n // User Context\n "Edit remark": "Bemerkung ändern",\n "Unblock this friend": "Freund entblocken",\n "Block this friend": "Freund blocken",\n "Delete friend": "Freund löschen",\n "Blocked this friend": "Freund wurde geblockt",\n "Unblocked this friend": "Freund wurde entblockt",\n "Blocked failed": "Blocken fehlgeschlagen",\n "Deleted this friend": "Freund löschen",\n "Delete failed": "Löschen fehlgeschlagen",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Überspringen",\n "Prev": "Vorheriges",\n "Let\'s Go": "Los gehts",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Hier ist dein Avatar, wo du deine persönlichen Informationen ändern kannst und deine ID zum Weitergeben an deine Freunde findest.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Klicke auf das \\"+\\" und trag die ID deines Freundes ein, um eine Freundschaftsanfrage zu schicken.",\n "Browse your download progress and download history here.": "Den Download-Fortschritt und deine Download-Historie findest du hier.",\n "Modify your shared folders, and default download path here.": "Ändere deine geteilten Verzeichnisse und deinen Standard-Download-Pfad hier.",\n "Well, let\'s start using it!": "Los gehts",\n // Download List\n "Downloading": "Downloade",\n "D-Completed": "Vollständig",\n "D-Total": "Gesamt",\n "D-Name": "Name",\n "D-Size": "Größe",\n "D-Progress": "Fortschritt",\n "D-Retry": "Neustarten",\n "Cancel Download": "Download abbrechen",\n "Delete this record": "Eintrag löschen",\n "Finishing": "Fertigstellen",\n "Error": "Error",\n "Download was cancelled": "Download wurde abgebrochen",\n "Cancel download failed": "Download abbrechen fehlgeschlagen",\n "Record deleted": "Eintrag gelöscht",\n "Delete record failed": "Eintrag löschen fehlgeschlagen",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Willkommen zu CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "Mit diesem Feature kannst du ganz einfach Peer-to-Peer-Filesharing mit deinen Freunden nutzen.",\n "You need to do some simple setup.": "Einige einfache Schritte sind zur Einrichtung erforderlich.",\n "Let\'s Start": "Los gehts",\n "Share-Account": "Account",\n "Share-Setting": "Einstellung",\n "Share-Recommend": "Empfehlen",\n "Share-Finish": "Fertigstellen",\n "Nickname": "Nickname",\n "Please enter your nickname.": "Trag deinen Nickname ein.",\n "Description": "Beschreibung",\n "Please enter your Description.": "Bitte gib deine Beschreibung ein.",\n "Shared folders": "Geteilte Verzeichnisse",\n "Default download path": "Standard-Download-Pfad",\n "Need to add at least one directory.": "Du benötigst mindestens ein Verzeichnis.",\n "Change": "Ändern",\n "We have prepared some public servers.": "Wir haben einige öffentliche Server für dich vorbereitet.",\n "You need to choose one of them to start with.": "Zum Starten musst du dir einen aussuchen.",\n "At least one must be selected.": "Mindestens einer muss ausgewählt werden.",\n "Share is ready!": "Share ist fertig!",\n "You have completed the initial setup.": "Du hast die Einrichtung abgeschlossen.",\n "Next you can follow the use guide to learn how to use it.": "In der Anleitung kannst du nachlesen, wie du es benutzt.",\n "Share-Go": "Los",\n // Add Friend Modal\n "Send Friend Request": "Freundschaftsanfrage senden",\n "Friend\'s ID": "ID deines Freundes",\n "Please enter friend\'s Share ID.": "Gib die ID des Shares deines Freundes ein.",\n "Friend Request Sent.": "Freundschaftsanfrage gesendet.",\n "is already your friend.": "ist schon dein Freund.",\n // Download Modal\n "Download to": "{file} downloaden nach",\n "Download path": "Download-Pfad",\n "Set as default download path": "Als Standard-Download-Pfad setzen",\n "Download has started": "Download gestartet",\n "Download failed": "Download fehlgeschlagen",\n // Remark Modal\n "Please enter the remark.": "Bitte trag die Bemerkung ein.",\n "Remark saved": "Bemerkung gespeichert",\n "Remark save failed": "Bemerkung speichern fehlgeschlagen",\n // Profile Modal \n "Edit My Info": "Meine Info verändern",\n "My ID": "Meine ID",\n "Update successful": "Update erfolgreich",\n "Update failed": "Update fehlgeschlagen"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/de_de.js?')},"./src/assets/lang/en_us.js":
/*!**********************************!*\
!*** ./src/assets/lang/en_us.js ***!
\**********************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// English\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Cancel",\n "Submit": "Submit",\n "Back": "Back",\n "Edit": "Edit",\n "Update": "Update",\n "Create": "Create",\n "Next": "Next",\n "Close": "Close",\n "Select": "Select",\n "Save": "Save",\n "Add": "Add",\n "Go": "Go",\n "Import": "Import",\n "Low": "Low",\n "Medium": "Medium",\n "High": "High",\n "Language": "Language",\n "This field is required": "This field is required",\n "This field must be a valid email": "This field must be a valid email",\n "This field confirmation does not match": "This field confirmation does not match",\n "This field must have 2 options": "This field must have 2 options",\n "This field must have more than 5 characters": "This field must have more than 5 characters",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Welcome to CasaOS",\n "Let\'s create your initial account": "Let\'s create your initial account",\n "Go →": "Go →",\n "Create Account": "Create Account",\n "Username": "Username",\n "Confirm Password": "Confirm Password",\n "Username or Password error!": "Username or Password error!",\n "All things done!": "All things done!",\n // Login\n "Login": "Login",\n "Password error!": "Password error!",\n // Account\n "Account": "Account",\n "Logout": "Logout",\n "Name": "Name",\n "Password": "Password",\n "Change name": "Change name",\n "Change Password": "Change Password",\n "Original password": "Original password",\n "New password": "New password",\n "Confirm the new password again": "Confirm the new password again",\n // Dashboard Settings\n "Settings": "Settings",\n "Dashboard Setting": "Dashboard Setting",\n "Search Engine": "Search Engine",\n "WebUI Port": "WebUI Port",\n "Currently the latest version": "Currently the latest version",\n "A new version is available!": "A new version is available!",\n "Edit Web UI port": "Edit WebUI port",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminal & Logs",\n "Terminal": "Terminal",\n "Logs": "Logs",\n // Widgets\n "Widgets Settings": "Widgets Settings",\n "Time": "Time",\n "Cores": "Cores",\n "System Status": "System Status",\n "Storage Status": "Storage Status",\n "Network Status": "Network Status",\n "available of": "{avl} available of {total}",\n // Search \n "Search...": "Search...",\n // Sync\n "Sync your data": "Sync your data",\n "Follow the guide to start syncing your files across multiple devices.": "Follow the guide to start syncing your files across multiple devices.",\n "Go !": "Go !",\n "Sync Guide": "Sync Guide",\n "Install": "Install",\n "Config": "Config",\n "Complete": "Complete",\n "Download Syncthing on the device you want to sync with CasaOS": "Download Syncthing on the device you want to sync with CasaOS",\n "Get Syncthing for": "Get Syncthing for {os}",\n "Download APK": "Download APK",\n "Show all Platforms": "Show all Platforms",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Install and open the downloaded application, then click the "Next" button.\',\n "Device ID": "Device ID",\n "Fill in your Device ID to continue": "Fill in your Device ID to continue",\n "How to get Device ID": "How to get Device ID",\n "What do I need to do on my device?": "What do I need to do on my device?",\n "Open the SyncTrayzor": "Open the SyncTrayzor",\n "Find the Device ID": "Find the Device ID",\n "Add new device on your device": "Add new device on your device",\n "Add new folder on your device": "Add new folder on your device",\n "Done!": "Done!",\n "Open Syncthing in the Launchpad": "Open Syncthing in the Launchpad",\n "Find the Syncthing icon in the menubar": "Find the Syncthing icon in the menubar",\n "Open Syncthing": "Open Syncthing",\n "Open the menu": "Open the menu",\n \'Choose "Show device ID"\': \'Choose "Show device ID"\',\n "Copy the Device ID": "Copy the Device ID",\n "There you go!": "There you go!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "Your data has started to sync.<br>It may take some minutes to fulfill synchronization.",\n "Up to Date": "Up to Date",\n "Synchronizing": "Synchronizing",\n "Synchronized": "Synchronized",\n "Total": "Total",\n "Add New Device": "Add New Device",\n // Iot\n "Have an idea? Shoot it on Discord!": "Have an idea? Shoot it on Discord!",\n "Smarten up your home": "Smarten up your home",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "We want to give you a smart home experience with privacy, high speed, and localized storage.",\n "In development": "In development",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "Open",\n "Setting": "Setting",\n "Uninstall": "Uninstall",\n "Attention": "Attention",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?",\n "Featured Apps": "Featured Apps",\n "Custom Install": "Custom Install",\n "Continue in background": "Continue in background",\n "Install a new App manually": "Install a new App manually",\n "Docker Image": "Docker Image",\n "App name": "App name",\n "Icon URL": "Icon URL",\n "Network": "Network",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Ports",\n "Volumes": "Volumes",\n "Environment Variables": "Environment Variables",\n "Devices": "Devices",\n "Memory Limit": "Memory Limit",\n "CPU Shares": "CPU Shares",\n "Restart Policy": "Restart Policy",\n "App Description": "App Description",\n "No ports now, click “+” to add one.": "No ports now, click “+” to add one.",\n "No volumes now, click “+” to add one.": "No volumes now, click “+” to add one.",\n "No environment variables now, click “+” to add one.": "No environment variables now, click “+” to add one.",\n "No devices now, click “+” to add one.": "No devices now, click “+” to add one.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "e.g.,hello-world:latest",\n "Your custom App Name": "Your custom App Name",\n "Your custom icon URL": "Your custom icon URL",\n "Installing": "Installing",\n "Export AppFile": "Export AppFile",\n "AppFile": "AppFile",\n "Drop your app file here or click to upload": "Drop your app file here or click to upload",\n "Host": "Host",\n "Container": "Container",\n "Key": "Key",\n "Value": "Value",\n "Protocol": "Protocol",\n "This is not a valid json file.": "This is not a valid json file.",\n "Your browser does not support file reading.": "Your browser does not support file reading.",\n "has been selected": "has been selected",\n "Please fill correct command line": "Please fill correct command line",\n "Please import a valid App file": "Please import a valid App file",\n "AutoFill only helps you to complete most of the configuration.": "AutoFill only helps you to complete most of the configuration.",\n "Some configuration information such as:": "Some configuration information such as:",\n "the port and path of the Web UI": "the port and path of the Web UI",\n "the mount location of the volume or file": "the mount location of the volume or file",\n "the port mapping of the Host": "the port mapping of the Host",\n "optional configuration items": "optional configuration items",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Feel free to suggest improvements to this feature in Discord Server!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.",\n "CATEGORY": "CATEGORY",\n "DEVELOPER": "DEVELOPER",\n "REQUIRE": "REQUIRE",\n "MEMORY": "MEMORY",\n "DISK": "DISK",\n "App Store": "App Store",\n "Community Apps": "Community Apps",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "From community contributors, not optimized for CasaOS, but provides a basic App experience.",\n "Sort by": "Sort by",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Create Storage",\n "Storage Manager": "Storage Manager",\n "Storage": "Storage",\n "Drive": "Drive",\n "Single Drive Storage": "Single Drive Storage",\n "Format": "Format",\n "Remove": "Remove",\n "Available Total": "{name} | Available: {avl} (Total: {total})",\n "Health": "Health",\n "Healthy": "Healthy",\n "Damage": "Damage",\n "Temp": "Temp",\n "WARNING!": "WARNING!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.",\n "Creation in progress": "Creation in progress",\n "Apply": "Apply",\n "Just Mount": "Just Mount",\n "Storage Name": "Storage Name",\n "Choose Drive": "Choose Drive",\n "Enter the password to continue:": "Enter the password to continue:",\n "Used": "Used",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserves 1% of file space when creating storage in EXT4 format.",\n "The selected drive will be emptied.": "The selected drive will be emptied.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Please make sure again that there is no important data on the selected drive that needs to be backed up.",\n "The drive you select can be used directly as storage.": "The drive you select can be used directly as storage.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.",\n "Format and Create": "Format and Create",\n // Feedback\n "Join Discord": "Join Discord",\n "Visit our Github": "Visit our Github",\n "Bug report": "Bug report",\n "Title": "Title",\n "Describe the bug": "Describe the bug",\n "A clear and concise description of what the bug is.": "A clear and concise description of what the bug is.",\n "System infomation": "System infomation",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don\'t save them.",\n "Don’t Save": "Don\'t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\r\n * Share Section\r\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/en_us.js?')},"./src/assets/lang/es_es.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// English\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Cancel",\n "Submit": "Submit",\n "Back": "Back",\n "Edit": "Edit",\n "Update": "Update",\n "Create": "Create",\n "Next": "Next",\n "Close": "Close",\n "Select": "Select",\n "Save": "Save",\n "Add": "Add",\n "Go": "Go",\n "Import": "Import",\n "Low": "Low",\n "Medium": "Medium",\n "High": "High",\n "Language": "Language",\n "This field is required": "This field is required",\n "This field must be a valid email": "This field must be a valid email",\n "This field confirmation does not match": "This field confirmation does not match",\n "This field must have 2 options": "This field must have 2 options",\n "This field must have more than 5 characters": "This field must have more than 5 characters",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Welcome to CasaOS",\n "Let\'s create your initial account": "Let\'s create your initial account",\n "Go →": "Go →",\n "Create Account": "Create Account",\n "Username": "Username",\n "Confirm Password": "Confirm Password",\n "Username or Password error!": "Username or Password error!",\n "All things done!": "All things done!",\n // Login\n "Login": "Login",\n "Password error!": "Password error!",\n // Account\n "Account": "Account",\n "Logout": "Logout",\n "Name": "Name",\n "Password": "Password",\n "Change name": "Change name",\n "Change Password": "Change Password",\n "Original password": "Original password",\n "New password": "New password",\n "Confirm the new password again": "Confirm the new password again",\n // Dashboard Settings\n "Settings": "Settings",\n "Dashboard Setting": "Dashboard Setting",\n "Search Engine": "Search Engine",\n "WebUI Port": "WebUI Port",\n "Currently the latest version": "Currently the latest version",\n "A new version is available!": "A new version is available!",\n "Edit Web UI port": "Edit WebUI port",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminal & Logs",\n "Terminal": "Terminal",\n "Logs": "Logs",\n // Widgets\n "Widgets Settings": "Widgets Settings",\n "Time": "Time",\n "Cores": "Cores",\n "System Status": "System Status",\n "Storage Status": "Storage Status",\n "Network Status": "Network Status",\n "available of": "{avl} available of {total}",\n // Search \n "Search...": "Search...",\n // Sync\n "Sync your data": "Sync your data",\n "Follow the guide to start syncing your files across multiple devices.": "Follow the guide to start syncing your files across multiple devices.",\n "Go !": "Go !",\n "Sync Guide": "Sync Guide",\n "Install": "Install",\n "Config": "Config",\n "Complete": "Complete",\n "Download Syncthing on the device you want to sync with CasaOS": "Download Syncthing on the device you want to sync with CasaOS",\n "Get Syncthing for": "Get Syncthing for {os}",\n "Download APK": "Download APK",\n "Show all Platforms": "Show all Platforms",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Install and open the downloaded application, then click the "Next" button.\',\n "Device ID": "Device ID",\n "Fill in your Device ID to continue": "Fill in your Device ID to continue",\n "How to get Device ID": "How to get Device ID",\n "What do I need to do on my device?": "What do I need to do on my device?",\n "Open the SyncTrayzor": "Open the SyncTrayzor",\n "Find the Device ID": "Find the Device ID",\n "Add new device on your device": "Add new device on your device",\n "Add new folder on your device": "Add new folder on your device",\n "Done!": "Done!",\n "Open Syncthing in the Launchpad": "Open Syncthing in the Launchpad",\n "Find the Syncthing icon in the menubar": "Find the Syncthing icon in the menubar",\n "Open Syncthing": "Open Syncthing",\n "Open the menu": "Open the menu",\n \'Choose "Show device ID"\': \'Choose "Show device ID"\',\n "Copy the Device ID": "Copy the Device ID",\n "There you go!": "There you go!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "Your data has started to sync.<br>It may take some minutes to fulfill synchronization.",\n "Up to Date": "Up to Date",\n "Synchronizing": "Synchronizing",\n "Synchronized": "Synchronized",\n "Total": "Total",\n "Add New Device": "Add New Device",\n // Iot\n "Have an idea? Shoot it on Discord!": "Have an idea? Shoot it on Discord!",\n "Smarten up your home": "Smarten up your home",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "We want to give you a smart home experience with privacy, high speed, and localized storage.",\n "In development": "In development",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "Open",\n "Setting": "Setting",\n "Uninstall": "Uninstall",\n "Attention": "Attention",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?",\n "Featured Apps": "Featured Apps",\n "Custom Install": "Custom Install",\n "Continue in background": "Continue in background",\n "Install a new App manually": "Install a new App manually",\n "Docker Image": "Docker Image",\n "App name": "App name",\n "Icon URL": "Icon URL",\n "Network": "Network",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Ports",\n "Volumes": "Volumes",\n "Environment Variables": "Environment Variables",\n "Devices": "Devices",\n "Memory Limit": "Memory Limit",\n "CPU Shares": "CPU Shares",\n "Restart Policy": "Restart Policy",\n "App Description": "App Description",\n "No ports now, click “+” to add one.": "No ports now, click “+” to add one.",\n "No volumes now, click “+” to add one.": "No volumes now, click “+” to add one.",\n "No environment variables now, click “+” to add one.": "No environment variables now, click “+” to add one.",\n "No devices now, click “+” to add one.": "No devices now, click “+” to add one.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "e.g.,hello-world:latest",\n "Your custom App Name": "Your custom App Name",\n "Your custom icon URL": "Your custom icon URL",\n "Installing": "Installing",\n "Export AppFile": "Export AppFile",\n "AppFile": "AppFile",\n "Drop your app file here or click to upload": "Drop your app file here or click to upload",\n "Host": "Host",\n "Container": "Container",\n "Key": "Key",\n "Value": "Value",\n "Protocol": "Protocol",\n "This is not a valid json file.": "This is not a valid json file.",\n "Your browser does not support file reading.": "Your browser does not support file reading.",\n "has been selected": "has been selected",\n "Please fill correct command line": "Please fill correct command line",\n "Please import a valid App file": "Please import a valid App file",\n "AutoFill only helps you to complete most of the configuration.": "AutoFill only helps you to complete most of the configuration.",\n "Some configuration information such as:": "Some configuration information such as:",\n "the port and path of the Web UI": "the port and path of the Web UI",\n "the mount location of the volume or file": "the mount location of the volume or file",\n "the port mapping of the Host": "the port mapping of the Host",\n "optional configuration items": "optional configuration items",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Feel free to suggest improvements to this feature in Discord Server!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.",\n "CATEGORY": "CATEGORY",\n "DEVELOPER": "DEVELOPER",\n "REQUIRE": "REQUIRE",\n "MEMORY": "MEMORY",\n "DISK": "DISK",\n "App Store": "App Store",\n "Community Apps": "Community Apps",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "From community contributors, not optimized for CasaOS, but provides a basic App experience.",\n "Sort by": "Sort by",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Create Storage",\n "Storage Manager": "Storage Manager",\n "Storage": "Storage",\n "Drive": "Drive",\n "Single Drive Storage": "Single Drive Storage",\n "Format": "Format",\n "Remove": "Remove",\n "Available Total": "{name} | Available: {avl} (Total: {total})",\n "Health": "Health",\n "Healthy": "Healthy",\n "Damage": "Damage",\n "Temp": "Temp",\n "WARNING!": "WARNING!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.",\n "Creation in progress": "Creation in progress",\n "Apply": "Apply",\n "Just Mount": "Just Mount",\n "Storage Name": "Storage Name",\n "Choose Drive": "Choose Drive",\n "Enter the password to continue:": "Enter the password to continue:",\n "Used": "Used",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserves 1% of file space when creating storage in EXT4 format.",\n "The selected drive will be emptied.": "The selected drive will be emptied.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Please make sure again that there is no important data on the selected drive that needs to be backed up.",\n "The drive you select can be used directly as storage.": "The drive you select can be used directly as storage.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.",\n "Format and Create": "Format and Create",\n // Feedback\n "Join Discord": "Join Discord",\n "Visit our Github": "Visit our Github",\n "Bug report": "Bug report",\n "Title": "Title",\n "Describe the bug": "Describe the bug",\n "A clear and concise description of what the bug is.": "A clear and concise description of what the bug is.",\n "System infomation": "System infomation",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don\'t save them.",\n "Don’t Save": "Don\'t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\n * Share Section\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/en_us.js?')},"./src/assets/lang/es_es.js":
/*!**********************************!*\
!*** ./src/assets/lang/es_es.js ***!
\**********************************/
@@ -1014,23 +1014,23 @@
/*!**********************************!*\
!*** ./src/assets/lang/it_it.js ***!
\**********************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Italiano\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Cancella",\n "Submit": "Invia",\n "Back": "Indietro",\n "Edit": "Modifica",\n "Update": "Update",\n "Create": "Create",\n "Next": "Prossimo",\n "Close": "Chiudi",\n "Select": "Seleziona",\n "Save": "Salva",\n "Add": "Aggiungi",\n "Go": "Vai",\n "Import": "Importa",\n "Low": "Basso",\n "Medium": "Medio",\n "High": "Alto",\n "Language": "Lingua",\n "This field is required": "Questo campo è obbligatorio",\n "This field must be a valid email": "Questo campo deve avere un e-mail valida",\n "This field confirmation does not match": "La conferma di questo campo non corrisponde",\n "This field must have 2 options": "Questo campo deve avere 2 opzioni",\n "This field must have more than 5 characters": "Questo campo deve contenere più di 5 caratteri",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Benvenuto in CasaOS",\n "Let\'s create your initial account": "Creiamo il tuo primo account",\n "Go →": "Vai →",\n "Create Account": "Crea Account",\n "Username": "Nome Utente",\n "Confirm Password": "Conferma Password",\n "Username or Password error!": "Nome utente o password errati!",\n "All things done!": "Tutto fatto!",\n // Login\n "Login": "Login",\n "Password error!": "Password errata!",\n // Account\n "Account": "Account",\n "Logout": "Logout",\n "Name": "Nome",\n "Password": "Password",\n "Change name": "Cambia Nome",\n "Change Password": "Cambia Password",\n "Original password": "Password originale",\n "New password": "Nuova password",\n "Confirm the new password again": "Conferma di nuovo la nuova password",\n // Dashboard Settings\n "Settings": "Impostazioni",\n "Dashboard Setting": "Impostazione della Dashboard",\n "Search Engine": "Motore di ricerca",\n "WebUI port": "Porta WebUI",\n "Currently the latest version": "Attualmente l\'ultima versione",\n "A new version is available!": "È disponibile una nuova versione!",\n "Edit Web UI port": "Modifica porta WebUI",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminale & Log",\n "Terminal": "Terminale",\n "Logs": "Log",\n // Widgets\n "Widgets Settings": "Impostazioni widget",\n "Time": "Time",\n "Cores": "Cores",\n "System Status": "Stato del sistema",\n "Storage Status": "Storage Status",\n "Network Status": "Stato della rete",\n "available of": "{avl} disponibile di {total}",\n // Search \n "Search...": "Cerca...",\n // Sync\n "Sync your data": "Sincronizza i tuoi dati",\n "Follow the guide to start syncing your files across multiple devices.": "Segui la guida per iniziare a sincronizzare i tuoi file su più dispositivi.",\n "Go !": "Andiamo !",\n "Sync Guide": "Guida alla sincronizzazione",\n "Install": "Installa",\n "Config": "Configura",\n "Complete": "Completa",\n "Download Syncthing on the device you want to sync with CasaOS": "Scarica Syncthing sul dispositivo che desideri sincronizzare con CasaOS",\n "Get Syncthing for": "Ottieni Syncthing per {os}",\n "Download APK": "Download APK",\n "Show all Platforms": "Mostra tutte le piattaforme",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Installa e apri l\\\'applicazione scaricata, quindi fai clic sul pulsante "Avanti".\',\n "Device ID": "ID del dispositivo",\n "Fill in your Device ID to continue": "Inserisci il tuo ID dispositivo per continuare",\n "How to get Device ID": "Come ottenere l\'ID del dispositivo",\n "What do I need to do on my device?": "Cosa devo fare sul mio dispositivo?",\n "Open the SyncTrayzor": "Apri il SyncTrayzor",\n "Find the Device ID": "Trova l\'ID del dispositivo",\n "Add new device on your device": "Aggiungi un nuovo dispositivo sul tuo dispositivo",\n "Add new folder on your device": "Aggiungi una nuova cartella sul tuo dispositivo",\n "Done!": "Fatto!",\n "Open Syncthing in the Launchpad": "Apri Syncthing nel Launchpad",\n "Find the Syncthing icon in the menubar": "Trova l\'icona Syncthing nella barra dei menu",\n "Open Syncthing": "Opri Syncthing",\n "Open the menu": "Apri il menu",\n \'Choose "Show device ID"\': \'Scegli "Mostra ID dispositivo"\',\n "Copy the Device ID": "Copia l\'ID del dispositivo",\n "There you go!": "Ecco fatto!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "La sincronizzazione dei tuoi dati è iniziata.<br>Potrebbero essere necessari alcuni minuti per completare la sincronizzazione.",\n "Up to Date": "Aggiornato",\n "Synchronizing": "Sincronizzazione",\n "Synchronized": "Sincronizzato",\n "Total": "Totale",\n "Add New Device": "Aggiungi nuovo dispositivo",\n // Iot\n "Have an idea? Shoot it on Discord!": "Hai un\'idea? Girala su Discord!",\n "Smarten up your home": "Rendi più Smart la tua casa",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Vogliamo offrirti un\'esperienza di casa intelligente con privacy, alta velocità e spazio di archiviazione localizzato.",\n "In development": "In sviluppo",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "Opri",\n "Setting": "Impostazione",\n "Uninstall": "Disinstalla",\n "Attention": "Attenzione",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "I dati non possono essere recuperati dopo la cancellazione! <br>Continuare a disinstallare questa applicazione?",\n "Featured Apps": "App in evidenza",\n "Custom Install": "Installazione personalizzata",\n "Continue in background": "Continua in background",\n "Install a new App manually": "Installa una nuova app manualmente",\n "Docker Image": "Immagine Docker",\n "App name": "Nome App",\n "Icon URL": "Icona URL",\n "Network": "Rete",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Porte",\n "Volumes": "Volume",\n "Environment Variables": "Variabili d\'ambiente",\n "Devices": "Dispositivi",\n "Memory Limit": "Limite di memoria",\n "CPU Shares": "CPU condivise",\n "Restart Policy": "Riavvia Policy",\n "App Description": "Descriptione App",\n "No ports now, click “+” to add one.": "Nessuna porta ora, fai clic su “+” per aggiungerne una.",\n "No volumes now, click “+” to add one.": "Nessun volume ora, fai clic su “+” per aggiungerne uno.",\n "No environment variables now, click “+” to add one.": "Nessuna variabile d\'ambiente ora, fai clic su “+” per aggiungerne una.",\n "No devices now, click “+” to add one.": "Nessun dispositivo ora, fai clic su “+” per aggiungerne uno.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "ad es.,hello-world:più recente",\n "Your custom App Name": "Il nome della tua app personalizzata",\n "Your custom icon URL": "La tua icona personalizzata URL",\n "Installing": "Installazione",\n "Export AppFile": "Esporta FileApp",\n "AppFile": "FileApp",\n "Drop your app file here or click to upload": "Trascina qui il file dell\'app o fai clic per caricarlo",\n "Host": "Host",\n "Container": "Container",\n "Key": "Chiave",\n "Value": "Valore",\n "Protocol": "Protocollo",\n "This is not a valid json file.": "Questo non è un file json valido.",\n "Your browser does not support file reading.": "Il tuo browser non supporta la lettura dei file.",\n "has been selected": "è stato selezionato",\n "Please fill correct command line": "Si prega di compilare la riga di comando corretta",\n "Please import a valid App file": "Si prega di importare un file App valido",\n "AutoFill only helps you to complete most of the configuration.": "La compilazione automatica ti aiuta solo a completare la maggior parte della configurazione.",\n "Some configuration information such as:": "Alcune informazioni di configurazione come:",\n "the port and path of the Web UI": "la porta e il percorso dell\'interfaccia utente Web",\n "the mount location of the volume or file": "la posizione di montaggio del volume o del file",\n "the port mapping of the Host": "la mappatura delle porte dell\'host",\n "optional configuration items": "elementi di configurazione opzionali",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "Questi includono ma non sono limitati a questi casi e <b> devono ancora essere confermati o modificati da te.</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Sentiti libero di suggerire miglioramenti a questa funzione in Discord Server!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "L\'utilizzo di localhost o 127.0.0.1 renderà l\'applicazione inaccessibile, utilizzare l\'ip reale per accedere.",\n "CATEGORY": "CATEGORIA",\n "DEVELOPER": "SVILUPPATORE",\n "REQUIRE": "RICHIEDERE",\n "MEMORY": "MEMORIA",\n "DISK": "DISCO",\n "App Store": "App Store",\n "Community Apps": "App della Comunità",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "Da contributori della community, non ottimizzato per CasaOS, ma fornisce un\'esperienza di base dell\'app.",\n "Sort by": "Ordina per",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Create Storage",\n "Storage Manager": "Storage Manager",\n "Storage": "Storage",\n "Drive": "Drive",\n "Single Drive Storage": "Single Drive Storage",\n "Format": "Format",\n "Remove": "Remove",\n "Available Total": "{name} | Available: {avl} (Total: {total})",\n "Health": "Health",\n "Healthy": "Healthy",\n "Damage": "Damage",\n "Temp": "Temp",\n "WARNING!": "WARNING!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.",\n "Creation in progress": "Creation in progress",\n "Apply": "Apply",\n "Just Mount": "Just Mount",\n "Storage Name": "Storage Name",\n "Choose Drive": "Choose Drive",\n "Enter the password to continue:": "Enter the password to continue:",\n "Used": "Used",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserves 1% of file space when creating storage in EXT4 format.",\n "The selected drive will be emptied.": "The selected drive will be emptied.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Please make sure again that there is no important data on the selected drive that needs to be backed up.",\n "The drive you select can be used directly as storage.": "The drive you select can be used directly as storage.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.",\n "Format and Create": "Format and Create",\n // Feedback\n "Join Discord": "Join Discord",\n "Visit our Github": "Visit our Github",\n "Bug report": "Bug report",\n "Title": "Title",\n "Describe the bug": "Describe the bug",\n "A clear and concise description of what the bug is.": "A clear and concise description of what the bug is.",\n "System infomation": "System infomation",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don’t save them.",\n "Don’t Save": "Don’t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\r\n * Share Section\r\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/it_it.js?')},"./src/assets/lang/pl_pl.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Italiano\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Cancella",\n "Submit": "Invia",\n "Back": "Indietro",\n "Edit": "Modifica",\n "Update": "Update",\n "Create": "Create",\n "Next": "Prossimo",\n "Close": "Chiudi",\n "Select": "Seleziona",\n "Save": "Salva",\n "Add": "Aggiungi",\n "Go": "Vai",\n "Import": "Importa",\n "Low": "Basso",\n "Medium": "Medio",\n "High": "Alto",\n "Language": "Lingua",\n "This field is required": "Questo campo è obbligatorio",\n "This field must be a valid email": "Questo campo deve avere un e-mail valida",\n "This field confirmation does not match": "La conferma di questo campo non corrisponde",\n "This field must have 2 options": "Questo campo deve avere 2 opzioni",\n "This field must have more than 5 characters": "Questo campo deve contenere più di 5 caratteri",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Benvenuto in CasaOS",\n "Let\'s create your initial account": "Creiamo il tuo primo account",\n "Go →": "Vai →",\n "Create Account": "Crea Account",\n "Username": "Nome Utente",\n "Confirm Password": "Conferma Password",\n "Username or Password error!": "Nome utente o password errati!",\n "All things done!": "Tutto fatto!",\n // Login\n "Login": "Login",\n "Password error!": "Password errata!",\n // Account\n "Account": "Account",\n "Logout": "Logout",\n "Name": "Nome",\n "Password": "Password",\n "Change name": "Cambia Nome",\n "Change Password": "Cambia Password",\n "Original password": "Password originale",\n "New password": "Nuova password",\n "Confirm the new password again": "Conferma di nuovo la nuova password",\n // Dashboard Settings\n "Settings": "Impostazioni",\n "Dashboard Setting": "Impostazione della Dashboard",\n "Search Engine": "Motore di ricerca",\n "WebUI port": "Porta WebUI",\n "Currently the latest version": "Attualmente l\'ultima versione",\n "A new version is available!": "È disponibile una nuova versione!",\n "Edit Web UI port": "Modifica porta WebUI",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminale & Log",\n "Terminal": "Terminale",\n "Logs": "Log",\n // Widgets\n "Widgets Settings": "Impostazioni widget",\n "Time": "Time",\n "Cores": "Cores",\n "System Status": "Stato del sistema",\n "Storage Status": "Storage Status",\n "Network Status": "Stato della rete",\n "available of": "{avl} disponibile di {total}",\n // Search \n "Search...": "Cerca...",\n // Sync\n "Sync your data": "Sincronizza i tuoi dati",\n "Follow the guide to start syncing your files across multiple devices.": "Segui la guida per iniziare a sincronizzare i tuoi file su più dispositivi.",\n "Go !": "Andiamo !",\n "Sync Guide": "Guida alla sincronizzazione",\n "Install": "Installa",\n "Config": "Configura",\n "Complete": "Completa",\n "Download Syncthing on the device you want to sync with CasaOS": "Scarica Syncthing sul dispositivo che desideri sincronizzare con CasaOS",\n "Get Syncthing for": "Ottieni Syncthing per {os}",\n "Download APK": "Download APK",\n "Show all Platforms": "Mostra tutte le piattaforme",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Installa e apri l\\\'applicazione scaricata, quindi fai clic sul pulsante "Avanti".\',\n "Device ID": "ID del dispositivo",\n "Fill in your Device ID to continue": "Inserisci il tuo ID dispositivo per continuare",\n "How to get Device ID": "Come ottenere l\'ID del dispositivo",\n "What do I need to do on my device?": "Cosa devo fare sul mio dispositivo?",\n "Open the SyncTrayzor": "Apri il SyncTrayzor",\n "Find the Device ID": "Trova l\'ID del dispositivo",\n "Add new device on your device": "Aggiungi un nuovo dispositivo sul tuo dispositivo",\n "Add new folder on your device": "Aggiungi una nuova cartella sul tuo dispositivo",\n "Done!": "Fatto!",\n "Open Syncthing in the Launchpad": "Apri Syncthing nel Launchpad",\n "Find the Syncthing icon in the menubar": "Trova l\'icona Syncthing nella barra dei menu",\n "Open Syncthing": "Opri Syncthing",\n "Open the menu": "Apri il menu",\n \'Choose "Show device ID"\': \'Scegli "Mostra ID dispositivo"\',\n "Copy the Device ID": "Copia l\'ID del dispositivo",\n "There you go!": "Ecco fatto!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "La sincronizzazione dei tuoi dati è iniziata.<br>Potrebbero essere necessari alcuni minuti per completare la sincronizzazione.",\n "Up to Date": "Aggiornato",\n "Synchronizing": "Sincronizzazione",\n "Synchronized": "Sincronizzato",\n "Total": "Totale",\n "Add New Device": "Aggiungi nuovo dispositivo",\n // Iot\n "Have an idea? Shoot it on Discord!": "Hai un\'idea? Girala su Discord!",\n "Smarten up your home": "Rendi più Smart la tua casa",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Vogliamo offrirti un\'esperienza di casa intelligente con privacy, alta velocità e spazio di archiviazione localizzato.",\n "In development": "In sviluppo",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "Opri",\n "Setting": "Impostazione",\n "Uninstall": "Disinstalla",\n "Attention": "Attenzione",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "I dati non possono essere recuperati dopo la cancellazione! <br>Continuare a disinstallare questa applicazione?",\n "Featured Apps": "App in evidenza",\n "Custom Install": "Installazione personalizzata",\n "Continue in background": "Continua in background",\n "Install a new App manually": "Installa una nuova app manualmente",\n "Docker Image": "Immagine Docker",\n "App name": "Nome App",\n "Icon URL": "Icona URL",\n "Network": "Rete",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Porte",\n "Volumes": "Volume",\n "Environment Variables": "Variabili d\'ambiente",\n "Devices": "Dispositivi",\n "Memory Limit": "Limite di memoria",\n "CPU Shares": "CPU condivise",\n "Restart Policy": "Riavvia Policy",\n "App Description": "Descriptione App",\n "No ports now, click “+” to add one.": "Nessuna porta ora, fai clic su “+” per aggiungerne una.",\n "No volumes now, click “+” to add one.": "Nessun volume ora, fai clic su “+” per aggiungerne uno.",\n "No environment variables now, click “+” to add one.": "Nessuna variabile d\'ambiente ora, fai clic su “+” per aggiungerne una.",\n "No devices now, click “+” to add one.": "Nessun dispositivo ora, fai clic su “+” per aggiungerne uno.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "ad es.,hello-world:più recente",\n "Your custom App Name": "Il nome della tua app personalizzata",\n "Your custom icon URL": "La tua icona personalizzata URL",\n "Installing": "Installazione",\n "Export AppFile": "Esporta FileApp",\n "AppFile": "FileApp",\n "Drop your app file here or click to upload": "Trascina qui il file dell\'app o fai clic per caricarlo",\n "Host": "Host",\n "Container": "Container",\n "Key": "Chiave",\n "Value": "Valore",\n "Protocol": "Protocollo",\n "This is not a valid json file.": "Questo non è un file json valido.",\n "Your browser does not support file reading.": "Il tuo browser non supporta la lettura dei file.",\n "has been selected": "è stato selezionato",\n "Please fill correct command line": "Si prega di compilare la riga di comando corretta",\n "Please import a valid App file": "Si prega di importare un file App valido",\n "AutoFill only helps you to complete most of the configuration.": "La compilazione automatica ti aiuta solo a completare la maggior parte della configurazione.",\n "Some configuration information such as:": "Alcune informazioni di configurazione come:",\n "the port and path of the Web UI": "la porta e il percorso dell\'interfaccia utente Web",\n "the mount location of the volume or file": "la posizione di montaggio del volume o del file",\n "the port mapping of the Host": "la mappatura delle porte dell\'host",\n "optional configuration items": "elementi di configurazione opzionali",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "Questi includono ma non sono limitati a questi casi e <b> devono ancora essere confermati o modificati da te.</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Sentiti libero di suggerire miglioramenti a questa funzione in Discord Server!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "L\'utilizzo di localhost o 127.0.0.1 renderà l\'applicazione inaccessibile, utilizzare l\'ip reale per accedere.",\n "CATEGORY": "CATEGORIA",\n "DEVELOPER": "SVILUPPATORE",\n "REQUIRE": "RICHIEDERE",\n "MEMORY": "MEMORIA",\n "DISK": "DISCO",\n "App Store": "App Store",\n "Community Apps": "App della Comunità",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "Da contributori della community, non ottimizzato per CasaOS, ma fornisce un\'esperienza di base dell\'app.",\n "Sort by": "Ordina per",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Create Storage",\n "Storage Manager": "Storage Manager",\n "Storage": "Storage",\n "Drive": "Drive",\n "Single Drive Storage": "Single Drive Storage",\n "Format": "Format",\n "Remove": "Remove",\n "Available Total": "{name} | Available: {avl} (Total: {total})",\n "Health": "Health",\n "Healthy": "Healthy",\n "Damage": "Damage",\n "Temp": "Temp",\n "WARNING!": "WARNING!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.",\n "Creation in progress": "Creation in progress",\n "Apply": "Apply",\n "Just Mount": "Just Mount",\n "Storage Name": "Storage Name",\n "Choose Drive": "Choose Drive",\n "Enter the password to continue:": "Enter the password to continue:",\n "Used": "Used",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserves 1% of file space when creating storage in EXT4 format.",\n "The selected drive will be emptied.": "The selected drive will be emptied.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Please make sure again that there is no important data on the selected drive that needs to be backed up.",\n "The drive you select can be used directly as storage.": "The drive you select can be used directly as storage.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.",\n "Format and Create": "Format and Create",\n // Feedback\n "Join Discord": "Join Discord",\n "Visit our Github": "Visit our Github",\n "Bug report": "Bug report",\n "Title": "Title",\n "Describe the bug": "Describe the bug",\n "A clear and concise description of what the bug is.": "A clear and concise description of what the bug is.",\n "System infomation": "System infomation",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don’t save them.",\n "Don’t Save": "Don’t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\n * Share Section\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/it_it.js?')},"./src/assets/lang/pl_pl.js":
/*!**********************************!*\
!*** ./src/assets/lang/pl_pl.js ***!
\**********************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Polish\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Anuluj",\n "Submit": "Prześlij",\n "Back": "Powrót",\n "Edit": "Edytuj",\n "Update": "Aktualizuj",\n "Create": "Utwórz",\n "Next": "Dalej",\n "Close": "Zamknij",\n "Select": "Wybierz",\n "Save": "Zapisz",\n "Add": "Dodaj",\n "Go": "Idź",\n "Import": "Import",\n "Low": "Niski",\n "Medium": "Średni",\n "High": "Wysoki",\n "Language": "Język",\n "This field is required": "To pole jest wymagane",\n "This field must be a valid email": "W tym polu musi znajdować się prawidłowy adres e-mail",\n "This field confirmation does not match": "To potwierdzenie nie jest zgodne",\n "This field must have 2 options": "To pole musi mieć 2 opcje",\n "This field must have more than 5 characters": "To pole musi mieć więcej niż 5 znaków",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Witamy w CasaOS",\n "Let\'s create your initial account": "Załóż swoje pierwsze konto",\n "Go →": "Idź →",\n "Create Account": "Utwórz konto",\n "Username": "Nazwa użytkownika",\n "Confirm Password": "Potwierdź hasło",\n "Username or Password error!": "Błąd nazwy użytkownika lub hasła!",\n "All things done!": "Wszystko gotowe!",\n // Login\n "Login": "Logowanie",\n "Password error!": "Błąd hasła!",\n // Account\n "Account": "Konto użytkownika",\n "Logout": "Wyloguj",\n "Name": "Użytkownik",\n "Password": "Hasło",\n "Change name": "Zmiana nazwy użytkownika",\n "Change Password": "Zmiana hasła",\n "Original password": "Dotychczasowe hasło",\n "New password": "Nowe hasło",\n "Confirm the new password again": "Ponownie potwierdź nowe hasło",\n // Dashboard Settings\n "Settings": "Ustawienia",\n "Dashboard Setting": "Ustawienia panelu kontrolnego",\n "Search Engine": "Wyszukiwarka",\n "WebUI Port": "Port interfejsu WebUI",\n "Currently the latest version": "Aktualnie najnowsza wersja",\n "A new version is available!": "Dostępna jest nowa wersja!",\n "Edit Web UI port": "Edycja portu WebUI",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminal i logi",\n "Terminal": "Terminal",\n "Logs": "Logi",\n // Widgets\n "Widgets Settings": "Ustawienia widgetów",\n "Time": "Time",\n "Cores": "Cores",\n "System Status": "Stan systemu",\n "Disk Status": "Stan dysku",\n "Network Status": "Stan sieci",\n "available of": "{avl} dostępny z {total}",\n // Search \n "Search...": "Szukaj...",\n // Sync\n "Sync your data": "Zsynchronizuj swoje dane",\n "Follow the guide to start syncing your files across multiple devices.": "Postępuj zgodnie z instrukcją, aby rozpocząć synchronizację plików na wielu urządzeniach.",\n "Go !": "Idź!",\n "Sync Guide": "Podręcznik synchronizacji",\n "Install": "Zainstaluj",\n "Config": "Konfiguracja",\n "Complete": "Zakończenie",\n "Download Syncthing on the device you want to sync with CasaOS": "Pobierz Syncthing na urządzenie, które chcesz zsynchronizować z CasaOS",\n "Get Syncthing for": "Pobierz Syncthing dla {os}",\n "Download APK": "Pobierz APK",\n "Show all Platforms": "Pokaż wszystkie platformy",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Zainstaluj i otwórz pobraną aplikację, a następnie kliknij przycisk "Dalej".\',\n "Device ID": "ID urządzenia",\n "Fill in your Device ID to continue": "Uzupełnij ID urządzenia, aby kontynuować",\n "How to get Device ID": "Jak uzyskać ID urządzenia",\n "What do I need to do on my device?": "Co muszę zrobić na moim urządzeniu?",\n "Open the SyncTrayzor": "Otwórz SyncTrayzor",\n "Find the Device ID": "Znajdź ID urządzenia",\n "Add new device on your device": "Dodaj nowe urządzenie na swoim urządzeniu",\n "Add new folder on your device": "Dodaj nowy folder na swoim urządzeniu",\n "Done!": "Gotowe!",\n "Open Syncthing in the Launchpad": "Otwórz Syncthing w Launchpad",\n "Find the Syncthing icon in the menubar": "Znajdź ikonę Syncthing w menubar.",\n "Open Syncthing": "Open Syncthing",\n "Open the menu": "Otwórz menu",\n \'Choose "Show device ID"\': \'Wybierz "Pokaż ID urządzenia"\',\n "Copy the Device ID": "Skopiuj ID urządzenia",\n "There you go!": "Proszę bardzo!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "Twoje dane zaczęły się synchronizować.<br>Synchronizacja może potrwać kilka minut.",\n "Up to Date": "Aktualne",\n "Synchronizing": "Synchronizacja",\n "Synchronized": "Dane zsynchronizowane",\n "Total": "Razem",\n "Add New Device": "Dodaj nowe urządzenie",\n // Iot\n "Have an idea? Shoot it on Discord!": "Masz pomysł? Przedstaw go na Discord!",\n "Smarten up your home": "Inteligentny dom",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Chcemy dać Ci możliwość korzystania z inteligentnego domu z prywatnością, dużą prędkością i lokalną infrastrukturą dyskową.",\n "In development": "W przygotowaniu",\n // Apps\n "Apps": "Aplikacje",\n "App": "Aplikacja",\n "Open": "Otwórz",\n "Setting": "Ustawienie",\n "Uninstall": "Odinstaluj",\n "Attention": "Uwaga",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Po usunięciu danych nie można ich odzyskać! <br>Czy chcesz dalej odinstalować tę aplikację?",\n "Featured Apps": "Polecane aplikacje",\n "Custom Install": "Własna instalacja",\n "Continue in background": "Kontynuuj w tle",\n "Install a new App manually": "Ręczna instalacja nowej aplikacji",\n "Docker Image": "Obraz Dockera",\n "App name": "Nazwa aplikacji",\n "Icon URL": "URL ikony",\n "Network": "Sieć",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Porty",\n "Volumes": "Woluminy",\n "Environment Variables": "Zmienne środowiskowe",\n "Devices": "Urządzenia",\n "Memory Limit": "Limit pamięci",\n "CPU Shares": "Udział CPU",\n "Restart Policy": "Polityka restartu",\n "App Description": "Opis aplikacji",\n "No ports now, click “+” to add one.": "Nie ma teraz portów, kliknij “+” aby dodać jeden.",\n "No volumes now, click “+” to add one.": "Nie ma teraz woluminów, kliknij “+” aby dodać jeden.",\n "No environment variables now, click “+” to add one.": "Nie ma teraz zmiennych środowiskowych, kliknij “+” aby je dodać.",\n "No devices now, click “+” to add one.": "Nie ma teraz żadnych urządzeń, kliknij “+” aby dodać jedno.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "e.g.,hello-world:latest",\n "Your custom App Name": "Twoja nazwa aplikacji",\n "Your custom icon URL": "Twój adres URL ikony",\n "Installing": "Instalacja",\n "Export AppFile": "Eksportuj plik AppFile",\n "AppFile": "AppFile",\n "Drop your app file here or click to upload": "Opuść swój plik aplikacji tutaj lub kliknij, aby przesłać",\n "Host": "Host",\n "Container": "Kontener",\n "Key": "Klucz",\n "Value": "Wartość",\n "Protocol": "Protokół",\n "This is not a valid json file.": "To nie jest prawidłowy plik json.",\n "Your browser does not support file reading.": "Twoja przeglądarka nie obsługuje odczytu plików.",\n "has been selected": "został wybrany",\n "Please fill correct command line": "Proszę wpisać poprawną linię komend",\n "Please import a valid App file": "Proszę zaimportować poprawny Appfile",\n "AutoFill only helps you to complete most of the configuration.": "Funkcja AutoFill pomaga jedynie w przeprowadzeniu większości czynności konfiguracyjnych.",\n "Some configuration information such as:": "Niektóre informacje konfiguracyjne, takie jak:",\n "the port and path of the Web UI": "port i ścieżka dostępu do interfejsu Web UI",\n "the mount location of the volume or file": "miejsce montowania woluminu lub pliku",\n "the port mapping of the Host": "mapowanie portów hosta",\n "optional configuration items": "opcjonalne elementy konfiguracji",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "Dotyczy to, ale nie ogranicza się do tych przypadków i <b>należy je jeszcze potwierdzić lub zmodyfikować.</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Zachęcamy do sugerowania ulepszeń tej funkcji na serwerze Discord!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Użycie localhost lub 127.0.0.1 spowoduje, że aplikacja będzie niedostępna, proszę użyć prawdziwego ip, aby uzyskać dostęp.",\n "CATEGORY": "KATEGORIA",\n "DEVELOPER": "DEWELOPER",\n "REQUIRE": "WYMAGANE",\n "MEMORY": "PAMIĘĆ",\n "DISK": "DYSK",\n "App Store": "Sklep App Store",\n "Community Apps": "Aplikacje społeczności",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "Od społeczności , nie zoptymalizowane dla CasaOS, ale zapewnia podstawową obsługę.",\n "Sort by": "Sortuj według",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Utwórz miejsce przechowywania",\n "Storage Manager": "Menedżer pamięci dyskowej",\n "Storage": "Pamięć",\n "Drive": "Dysk",\n "Single Drive Storage": "Dysk pojedynczy",\n "Format": "Formatuj",\n "Remove": "Usuń",\n "Available Total": "{name} | Dostępne: {avl} (Razem: {total})",\n "Health": "Kondycja",\n "Healthy": "Zdrowy",\n "Damage": "Uszkodzony",\n "Temp": "Temperatura",\n "WARNING!": "OSTRZEŻENIE!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "Wybrany dysk zostanie opróżniony, jeśli znajdują się na nim dane. Upewnij się ponownie, że na wybranym dysku nie ma żadnych ważnych danych, które nie zostały umieszczone w kopii zapasowej. Jeśli dane mają zostać zmigrowane, powiązane aplikacje zostaną zatrzymane podczas procesu migracji.",\n "Creation in progress": "Tworzenie w toku",\n "Apply": "Zastosuj",\n "Just Mount": "Po prostu zamontuj",\n "Storage Name": "Storage Name",\n "Choose Drive": "Wybierz dysk",\n "Enter the password to continue:": "Wprowadź hasło, aby kontynuować:",\n "Used": "Użyte",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS rezerwuje 1% przestrzeni na pliki podczas tworzenia przestrzeni dyskowej w formacie EXT4.",\n "The selected drive will be emptied.": "Wybrany dysk zostanie opróżniony.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Upewnij się ponownie, że na wybranym dysku nie ma ważnych danych, które wymagają utworzenia kopii zapasowej.",\n "The drive you select can be used directly as storage.": "Wybrany dysk może być używany bezpośrednio jako miejsce przechowywania danych.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "Można również wybrać utworzenie go po sformatowaniu. W przypadku formatowania wybrany dysk zostanie opróżniony.",\n "Format and Create": "Formatuj i utwórz",\n // Feedback\n "Join Discord": "Dołącz do Discorda",\n "Visit our Github": "Odwiedź nasz Github",\n "Bug report": "Raport o błędzie",\n "Title": "Tytuł",\n "Describe the bug": "Opisz błąd",\n "A clear and concise description of what the bug is.": "Jasny i zwięzły opis błędu.",\n "System infomation": "Informacja o systemie",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don’t save them.",\n "Don’t Save": "Don’t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\r\n * Share Section\r\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/pl_pl.js?')},"./src/assets/lang/pt_br.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Polish\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Anuluj",\n "Submit": "Prześlij",\n "Back": "Powrót",\n "Edit": "Edytuj",\n "Update": "Aktualizuj",\n "Create": "Utwórz",\n "Next": "Dalej",\n "Close": "Zamknij",\n "Select": "Wybierz",\n "Save": "Zapisz",\n "Add": "Dodaj",\n "Go": "Idź",\n "Import": "Import",\n "Low": "Niski",\n "Medium": "Średni",\n "High": "Wysoki",\n "Language": "Język",\n "This field is required": "To pole jest wymagane",\n "This field must be a valid email": "W tym polu musi znajdować się prawidłowy adres e-mail",\n "This field confirmation does not match": "To potwierdzenie nie jest zgodne",\n "This field must have 2 options": "To pole musi mieć 2 opcje",\n "This field must have more than 5 characters": "To pole musi mieć więcej niż 5 znaków",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Witamy w CasaOS",\n "Let\'s create your initial account": "Załóż swoje pierwsze konto",\n "Go →": "Idź →",\n "Create Account": "Utwórz konto",\n "Username": "Nazwa użytkownika",\n "Confirm Password": "Potwierdź hasło",\n "Username or Password error!": "Błąd nazwy użytkownika lub hasła!",\n "All things done!": "Wszystko gotowe!",\n // Login\n "Login": "Logowanie",\n "Password error!": "Błąd hasła!",\n // Account\n "Account": "Konto użytkownika",\n "Logout": "Wyloguj",\n "Name": "Użytkownik",\n "Password": "Hasło",\n "Change name": "Zmiana nazwy użytkownika",\n "Change Password": "Zmiana hasła",\n "Original password": "Dotychczasowe hasło",\n "New password": "Nowe hasło",\n "Confirm the new password again": "Ponownie potwierdź nowe hasło",\n // Dashboard Settings\n "Settings": "Ustawienia",\n "Dashboard Setting": "Ustawienia panelu kontrolnego",\n "Search Engine": "Wyszukiwarka",\n "WebUI Port": "Port interfejsu WebUI",\n "Currently the latest version": "Aktualnie najnowsza wersja",\n "A new version is available!": "Dostępna jest nowa wersja!",\n "Edit Web UI port": "Edycja portu WebUI",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminal i logi",\n "Terminal": "Terminal",\n "Logs": "Logi",\n // Widgets\n "Widgets Settings": "Ustawienia widgetów",\n "Time": "Time",\n "Cores": "Cores",\n "System Status": "Stan systemu",\n "Disk Status": "Stan dysku",\n "Network Status": "Stan sieci",\n "available of": "{avl} dostępny z {total}",\n // Search \n "Search...": "Szukaj...",\n // Sync\n "Sync your data": "Zsynchronizuj swoje dane",\n "Follow the guide to start syncing your files across multiple devices.": "Postępuj zgodnie z instrukcją, aby rozpocząć synchronizację plików na wielu urządzeniach.",\n "Go !": "Idź!",\n "Sync Guide": "Podręcznik synchronizacji",\n "Install": "Zainstaluj",\n "Config": "Konfiguracja",\n "Complete": "Zakończenie",\n "Download Syncthing on the device you want to sync with CasaOS": "Pobierz Syncthing na urządzenie, które chcesz zsynchronizować z CasaOS",\n "Get Syncthing for": "Pobierz Syncthing dla {os}",\n "Download APK": "Pobierz APK",\n "Show all Platforms": "Pokaż wszystkie platformy",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Zainstaluj i otwórz pobraną aplikację, a następnie kliknij przycisk "Dalej".\',\n "Device ID": "ID urządzenia",\n "Fill in your Device ID to continue": "Uzupełnij ID urządzenia, aby kontynuować",\n "How to get Device ID": "Jak uzyskać ID urządzenia",\n "What do I need to do on my device?": "Co muszę zrobić na moim urządzeniu?",\n "Open the SyncTrayzor": "Otwórz SyncTrayzor",\n "Find the Device ID": "Znajdź ID urządzenia",\n "Add new device on your device": "Dodaj nowe urządzenie na swoim urządzeniu",\n "Add new folder on your device": "Dodaj nowy folder na swoim urządzeniu",\n "Done!": "Gotowe!",\n "Open Syncthing in the Launchpad": "Otwórz Syncthing w Launchpad",\n "Find the Syncthing icon in the menubar": "Znajdź ikonę Syncthing w menubar.",\n "Open Syncthing": "Open Syncthing",\n "Open the menu": "Otwórz menu",\n \'Choose "Show device ID"\': \'Wybierz "Pokaż ID urządzenia"\',\n "Copy the Device ID": "Skopiuj ID urządzenia",\n "There you go!": "Proszę bardzo!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "Twoje dane zaczęły się synchronizować.<br>Synchronizacja może potrwać kilka minut.",\n "Up to Date": "Aktualne",\n "Synchronizing": "Synchronizacja",\n "Synchronized": "Dane zsynchronizowane",\n "Total": "Razem",\n "Add New Device": "Dodaj nowe urządzenie",\n // Iot\n "Have an idea? Shoot it on Discord!": "Masz pomysł? Przedstaw go na Discord!",\n "Smarten up your home": "Inteligentny dom",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Chcemy dać Ci możliwość korzystania z inteligentnego domu z prywatnością, dużą prędkością i lokalną infrastrukturą dyskową.",\n "In development": "W przygotowaniu",\n // Apps\n "Apps": "Aplikacje",\n "App": "Aplikacja",\n "Open": "Otwórz",\n "Setting": "Ustawienie",\n "Uninstall": "Odinstaluj",\n "Attention": "Uwaga",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Po usunięciu danych nie można ich odzyskać! <br>Czy chcesz dalej odinstalować tę aplikację?",\n "Featured Apps": "Polecane aplikacje",\n "Custom Install": "Własna instalacja",\n "Continue in background": "Kontynuuj w tle",\n "Install a new App manually": "Ręczna instalacja nowej aplikacji",\n "Docker Image": "Obraz Dockera",\n "App name": "Nazwa aplikacji",\n "Icon URL": "URL ikony",\n "Network": "Sieć",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Porty",\n "Volumes": "Woluminy",\n "Environment Variables": "Zmienne środowiskowe",\n "Devices": "Urządzenia",\n "Memory Limit": "Limit pamięci",\n "CPU Shares": "Udział CPU",\n "Restart Policy": "Polityka restartu",\n "App Description": "Opis aplikacji",\n "No ports now, click “+” to add one.": "Nie ma teraz portów, kliknij “+” aby dodać jeden.",\n "No volumes now, click “+” to add one.": "Nie ma teraz woluminów, kliknij “+” aby dodać jeden.",\n "No environment variables now, click “+” to add one.": "Nie ma teraz zmiennych środowiskowych, kliknij “+” aby je dodać.",\n "No devices now, click “+” to add one.": "Nie ma teraz żadnych urządzeń, kliknij “+” aby dodać jedno.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "e.g.,hello-world:latest",\n "Your custom App Name": "Twoja nazwa aplikacji",\n "Your custom icon URL": "Twój adres URL ikony",\n "Installing": "Instalacja",\n "Export AppFile": "Eksportuj plik AppFile",\n "AppFile": "AppFile",\n "Drop your app file here or click to upload": "Opuść swój plik aplikacji tutaj lub kliknij, aby przesłać",\n "Host": "Host",\n "Container": "Kontener",\n "Key": "Klucz",\n "Value": "Wartość",\n "Protocol": "Protokół",\n "This is not a valid json file.": "To nie jest prawidłowy plik json.",\n "Your browser does not support file reading.": "Twoja przeglądarka nie obsługuje odczytu plików.",\n "has been selected": "został wybrany",\n "Please fill correct command line": "Proszę wpisać poprawną linię komend",\n "Please import a valid App file": "Proszę zaimportować poprawny Appfile",\n "AutoFill only helps you to complete most of the configuration.": "Funkcja AutoFill pomaga jedynie w przeprowadzeniu większości czynności konfiguracyjnych.",\n "Some configuration information such as:": "Niektóre informacje konfiguracyjne, takie jak:",\n "the port and path of the Web UI": "port i ścieżka dostępu do interfejsu Web UI",\n "the mount location of the volume or file": "miejsce montowania woluminu lub pliku",\n "the port mapping of the Host": "mapowanie portów hosta",\n "optional configuration items": "opcjonalne elementy konfiguracji",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "Dotyczy to, ale nie ogranicza się do tych przypadków i <b>należy je jeszcze potwierdzić lub zmodyfikować.</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Zachęcamy do sugerowania ulepszeń tej funkcji na serwerze Discord!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Użycie localhost lub 127.0.0.1 spowoduje, że aplikacja będzie niedostępna, proszę użyć prawdziwego ip, aby uzyskać dostęp.",\n "CATEGORY": "KATEGORIA",\n "DEVELOPER": "DEWELOPER",\n "REQUIRE": "WYMAGANE",\n "MEMORY": "PAMIĘĆ",\n "DISK": "DYSK",\n "App Store": "Sklep App Store",\n "Community Apps": "Aplikacje społeczności",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "Od społeczności , nie zoptymalizowane dla CasaOS, ale zapewnia podstawową obsługę.",\n "Sort by": "Sortuj według",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Utwórz miejsce przechowywania",\n "Storage Manager": "Menedżer pamięci dyskowej",\n "Storage": "Pamięć",\n "Drive": "Dysk",\n "Single Drive Storage": "Dysk pojedynczy",\n "Format": "Formatuj",\n "Remove": "Usuń",\n "Available Total": "{name} | Dostępne: {avl} (Razem: {total})",\n "Health": "Kondycja",\n "Healthy": "Zdrowy",\n "Damage": "Uszkodzony",\n "Temp": "Temperatura",\n "WARNING!": "OSTRZEŻENIE!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "Wybrany dysk zostanie opróżniony, jeśli znajdują się na nim dane. Upewnij się ponownie, że na wybranym dysku nie ma żadnych ważnych danych, które nie zostały umieszczone w kopii zapasowej. Jeśli dane mają zostać zmigrowane, powiązane aplikacje zostaną zatrzymane podczas procesu migracji.",\n "Creation in progress": "Tworzenie w toku",\n "Apply": "Zastosuj",\n "Just Mount": "Po prostu zamontuj",\n "Storage Name": "Storage Name",\n "Choose Drive": "Wybierz dysk",\n "Enter the password to continue:": "Wprowadź hasło, aby kontynuować:",\n "Used": "Użyte",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS rezerwuje 1% przestrzeni na pliki podczas tworzenia przestrzeni dyskowej w formacie EXT4.",\n "The selected drive will be emptied.": "Wybrany dysk zostanie opróżniony.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Upewnij się ponownie, że na wybranym dysku nie ma ważnych danych, które wymagają utworzenia kopii zapasowej.",\n "The drive you select can be used directly as storage.": "Wybrany dysk może być używany bezpośrednio jako miejsce przechowywania danych.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "Można również wybrać utworzenie go po sformatowaniu. W przypadku formatowania wybrany dysk zostanie opróżniony.",\n "Format and Create": "Formatuj i utwórz",\n // Feedback\n "Join Discord": "Dołącz do Discorda",\n "Visit our Github": "Odwiedź nasz Github",\n "Bug report": "Raport o błędzie",\n "Title": "Tytuł",\n "Describe the bug": "Opisz błąd",\n "A clear and concise description of what the bug is.": "Jasny i zwięzły opis błędu.",\n "System infomation": "Informacja o systemie",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don’t save them.",\n "Don’t Save": "Don’t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\n * Share Section\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/pl_pl.js?')},"./src/assets/lang/pt_br.js":
/*!**********************************!*\
!*** ./src/assets/lang/pt_br.js ***!
\**********************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Brazilian Portuguese\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Cancelar",\n "Submit": "Salvar",\n "Back": "Voltar",\n "Edit": "Editar",\n "Update": "Atualizar",\n "Create": "Criar",\n "Next": "Próximo",\n "Close": "Fechar",\n "Select": "Selecionar",\n "Save": "Salvar",\n "Add": "Adicionar",\n "Go": "Ir",\n "Import": "Importar",\n "Low": "Baixo",\n "Medium": "Médio",\n "High": "Alto",\n "Language": "Língua",\n "This field is required": "Este campo é obrigatório",\n "This field must be a valid email": "Este campo deve ser um email válido",\n "This field confirmation does not match": "A confirmação deste campo não está batendo",\n "This field must have 2 options": "Este campo precisa de duas opções",\n "This field must have more than 5 characters": "Este campo precisa de mais de 5 caracteres",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Bem-vindo(a) ao CasaOS",\n "Let\'s create your initial account": "Vamos criar sua primeira conta",\n "Go →": "Ir →",\n "Create Account": "Criar Conta",\n "Username": "Nome de Usuário",\n "Confirm Password": "Confirmar Senha",\n "Username or Password error!": "Erro de usuário ou senha!",\n "All things done!": "Tudo pronto!",\n // Login\n "Login": "Login",\n "Password error!": "Erro de senha!",\n // Account\n "Account": "Conta",\n "Logout": "Sair",\n "Name": "Nome",\n "Password": "Senha",\n "Change name": "Trocar nome",\n "Change Password": "Trocar senha",\n "Original password": "Senha original",\n "New password": "Nova senha",\n "Confirm the new password again": "Confirme a nova senha",\n // Dashboard Settings\n "Settings": "Configurações",\n "Dashboard Setting": "Configurações do Painel",\n "Search Engine": "Mecanismo de Busca",\n "WebUI Port": "Porta da WebUI",\n "Currently the latest version": "Atualmente a versão mais recente",\n "A new version is available!": "Uma nova versão está disponível!",\n "Edit Web UI port": "Editar a porta da WebUI",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminal & Logs",\n "Terminal": "Terminal",\n "Logs": "Logs",\n // Widgets\n "Widgets Settings": "Configurações de Widgets",\n "Time": "Hora",\n "Cores": "Cores",\n "System Status": "Status do Sistema",\n "Disk Status": "Status do Disco",\n "Network Status": "Status da Rede",\n "available of": "{avl} disponível de {total}",\n // Search\n "Search...": "Localizar...",\n // Sync\n "Sync your data": "Sincronizar seus dados",\n "Follow the guide to start syncing your files across multiple devices.": "Siga o guia para iniciar a sincronização dos seus arquivos entre diversos dispositivos.",\n "Go !": "Ir !",\n "Sync Guide": "Guia de Sincronização",\n "Install": "Instalar",\n "Config": "Configurar",\n "Complete": "Finalizado",\n "Download Syncthing on the device you want to sync with CasaOS": "Baixe o Syncthing no dispositivo que você quer sincronizar com o CasaOS",\n "Get Syncthing for": "Obter o Syncthing para {os}",\n "Download APK": "Baixar APK",\n "Show all Platforms": "Mostrar todas Plataformas",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Instale e abra o app baixado, então clique no botão "Próximo".\',\n "Device ID": "ID do Dispositivo",\n "Fill in your Device ID to continue": "Preencha o ID do Dispositivo para continuar",\n "How to get Device ID": "Como obter o ID do Dispositivo",\n "What do I need to do on my device?": "O que eu preciso fazer no meu dispositivo?",\n "Open the SyncTrayzor": "Abra o SyncTrayzor",\n "Find the Device ID": "Encontre o ID do Dispositivo",\n "Add new device on your device": "Adicione um novo dispositivo no seu dispositivo",\n "Add new folder on your device": "Adicione uma nova pasta no seu dispositivo",\n "Done!": "Pronto!",\n "Open Syncthing in the Launchpad": "Abrir Syncthing no Launchpad",\n "Find the Syncthing icon in the menubar": "Encontre o ícone do Syncthing na barra de menu",\n "Open Syncthing": "Abra Syncthing",\n "Open the menu": "Abra o menu",\n \'Choose "Show device ID"\': \'Escolha "Mostrar ID do Dispositivo"\',\n "Copy the Device ID": "Copiar o ID do Dispositivo",\n "There you go!": "Prontinho!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "A sincronização dos seus dados começou.<br>Pode levar alguns minutos até terminar.",\n "Up to Date": "Atualizado",\n "Synchronizing": "Sincronizando",\n "Synchronized": "Sincronizado",\n "Total": "Total",\n "Add New Device": "Adicionar Novo Dispositivo",\n // Iot\n "Have an idea? Shoot it on Discord!": "Tem uma ideia? Manda no Discord!",\n "Smarten up your home": "Tornando sua casa inteligente",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Nós queremos te dar uma experiência de casa inteligente com privacidade, alta velocidade e armazenamento local.",\n "In development": "Em desenvolvimento",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "Abrir",\n "Setting": "Configuração",\n "Uninstall": "Desinstalar",\n "Attention": "Atenção",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Dados não podem ser recuperados depois de apagados! <br>Continuar com a desinstalação da aplicação?",\n "Featured Apps": "Apps em Destaque",\n "Custom Install": "Install Personalizada",\n "Continue in background": "Continue em segundo plano",\n "Install a new App manually": "Instalar um novo App manualmente",\n "Docker Image": "Imagem Docker",\n "App name": "Nome do App",\n "Icon URL": "URL do Ícone",\n "Network": "Rede",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Portas",\n "Volumes": "Drives de Armazenamento",\n "Environment Variables": "Variáveis de Ambiente",\n "Devices": "Dispositivos",\n "Memory Limit": "Limite de Memória",\n "CPU Shares": "Compartilhamento de CPU",\n "Restart Policy": "Política de Reinicialização",\n "App Description": "Descrição do App",\n "No ports now, click “+” to add one.": "Sem portas por enquanto, clique no “+” para adicionar uma.",\n "No volumes now, click “+” to add one.": "Sem drives de armazenamento por enquanto, clique no “+” para adicionar um.",\n "No environment variables now, click “+” to add one.": "Sem variáveis de ambiente por enquanto, clique no “+” para adicionar uma.",\n "No devices now, click “+” to add one.": "Sem dispositivos por enquanto, clique no “+” para adicionar um.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "e.g.,hello-world:latest",\n "Your custom App Name": "Seu Nome de App personalizado",\n "Your custom icon URL": "Sua URL de Ícone Personalizado",\n "Installing": "Instalando",\n "Export AppFile": "Exportar Arquivo de App",\n "AppFile": "Arquivo de App",\n "Drop your app file here or click to upload": "Solte o arquivo do seu app aqui ou clique para fazer o upload",\n "Host": "Host",\n "Container": "Container",\n "Key": "Chave",\n "Value": "Valor",\n "Protocol": "Protocolo",\n "This is not a valid json file.": "Esse não é um arquivo json válido.",\n "Your browser does not support file reading.": "Seu navegador não suporta a leitura de arquivos.",\n "has been selected": "foi selecionado",\n "Please fill correct command line": "Por favor preencha a linha de comando corretamente",\n "Please import a valid App file": "Por favor importe um Arquivo de App válido",\n "AutoFill only helps you to complete most of the configuration.": "Autocompletar só te ajuda a completar a maioria das configurações.",\n "Some configuration information such as:": "Algumas informações sobre configuração como:",\n "the port and path of the Web UI": "a porta e o caminho da Web UI",\n "the mount location of the volume or file": "o ponto de montagem do drive de armazenamento ou arquivo",\n "the port mapping of the Host": "o mapeamento de portas do Host",\n "optional configuration items": "itens de configuração optionais",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "Estes incluem mas não se restringem a esses casos <b>ainda precisam ser confirmados ou modificados por você.</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Sinta-se a vontade para sugerir melhorias para essa funcionalidade no nosso Servidor do Discord!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Usar localhost ou 127.0.0.1 vai tornar a aplicação inacessível, por favor use o ip verdadeiro para acessar.",\n "CATEGORY": "CATEGORIA",\n "DEVELOPER": "DESENVOLVEDOR",\n "REQUIRE": "REQUIRE",\n "MEMORY": "MEMÓRIA",\n "DISK": "DISCO",\n "App Store": "Loja de Apps",\n "Community Apps": "Apps da Comunidade",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "Para contribuidores da comunidade, não otimizado para o CasaOS, mas fornece uma experiência básica do App.",\n "Sort by": "Ordenar por",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Criar Armazenamento",\n "Storage Manager": "Gerenciador de Armazenamento",\n "Storage": "Armazenamento",\n "Drive": "Drive",\n "Single Drive Storage": "Drive de Armazenamento Individual",\n "Format": "Formatar",\n "Remove": "Remover",\n "Available Total": "{name} | Disponível: {avl} (Total: {total})",\n "Health": "Saúde",\n "Healthy": "Saudável",\n "Damage": "Danificado",\n "Temp": "Temp",\n "WARNING!": "ATENÇÃO!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "O drive selecionado será esvaziado. Confira novamente se não há informações importantes nele que ainda não tenham sido salvas. Se ainda existirem dados a serem migrados, os apps relacionados serão interrompidos durante o processo de migração.",\n "Creation in progress": "Criação em progresso",\n "Apply": "Aplicar",\n "Just Mount": "Apenas Monte",\n "Storage Name": "Nome do Armazenamento",\n "Choose Drive": "Escolher Drive",\n "Enter the password to continue:": "Entre com a senha para continuar:",\n "Used": "Usado",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "O CasaOS separa 1% do espaço de arquivos quando cria o armazenamento no formato EXT4.",\n "The selected drive will be emptied.": "O drive selecionado será esvaziado.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Por favor, verifique novamente que não há informações importantes no drive selecionado que precisem ser salvas.",\n "The drive you select can be used directly as storage.": "O drive que você selecionou pode ser usado diretamente como armazenamento.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "Você também pode optar por criar depois da formatação. Se formatado, o drive selecionado será esvaziado.",\n "Format and Create": "Formatar e Criar",\n // Feedback\n "Join Discord": "Entrar no Discord",\n "Visit our Github": "Visitar nosso Github",\n "Bug report": "Reportar bug",\n "Title": "Título",\n "Describe the bug": "Descreva o bug",\n "A clear and concise description of what the bug is.": "Uma descrição clara e suscinta sobre o que o bug é.",\n "System infomation": "Informações sobre o sistema",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don’t save them.",\n "Don’t Save": "Don’t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\r\n * Share Section\r\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/pt_br.js?')},"./src/assets/lang/ru_ru.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Brazilian Portuguese\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "OK",\n "Cancel": "Cancelar",\n "Submit": "Salvar",\n "Back": "Voltar",\n "Edit": "Editar",\n "Update": "Atualizar",\n "Create": "Criar",\n "Next": "Próximo",\n "Close": "Fechar",\n "Select": "Selecionar",\n "Save": "Salvar",\n "Add": "Adicionar",\n "Go": "Ir",\n "Import": "Importar",\n "Low": "Baixo",\n "Medium": "Médio",\n "High": "Alto",\n "Language": "Língua",\n "This field is required": "Este campo é obrigatório",\n "This field must be a valid email": "Este campo deve ser um email válido",\n "This field confirmation does not match": "A confirmação deste campo não está batendo",\n "This field must have 2 options": "Este campo precisa de duas opções",\n "This field must have more than 5 characters": "Este campo precisa de mais de 5 caracteres",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Bem-vindo(a) ao CasaOS",\n "Let\'s create your initial account": "Vamos criar sua primeira conta",\n "Go →": "Ir →",\n "Create Account": "Criar Conta",\n "Username": "Nome de Usuário",\n "Confirm Password": "Confirmar Senha",\n "Username or Password error!": "Erro de usuário ou senha!",\n "All things done!": "Tudo pronto!",\n // Login\n "Login": "Login",\n "Password error!": "Erro de senha!",\n // Account\n "Account": "Conta",\n "Logout": "Sair",\n "Name": "Nome",\n "Password": "Senha",\n "Change name": "Trocar nome",\n "Change Password": "Trocar senha",\n "Original password": "Senha original",\n "New password": "Nova senha",\n "Confirm the new password again": "Confirme a nova senha",\n // Dashboard Settings\n "Settings": "Configurações",\n "Dashboard Setting": "Configurações do Painel",\n "Search Engine": "Mecanismo de Busca",\n "WebUI Port": "Porta da WebUI",\n "Currently the latest version": "Atualmente a versão mais recente",\n "A new version is available!": "Uma nova versão está disponível!",\n "Edit Web UI port": "Editar a porta da WebUI",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Terminal & Logs",\n "Terminal": "Terminal",\n "Logs": "Logs",\n // Widgets\n "Widgets Settings": "Configurações de Widgets",\n "Time": "Hora",\n "Cores": "Cores",\n "System Status": "Status do Sistema",\n "Disk Status": "Status do Disco",\n "Network Status": "Status da Rede",\n "available of": "{avl} disponível de {total}",\n // Search\n "Search...": "Localizar...",\n // Sync\n "Sync your data": "Sincronizar seus dados",\n "Follow the guide to start syncing your files across multiple devices.": "Siga o guia para iniciar a sincronização dos seus arquivos entre diversos dispositivos.",\n "Go !": "Ir !",\n "Sync Guide": "Guia de Sincronização",\n "Install": "Instalar",\n "Config": "Configurar",\n "Complete": "Finalizado",\n "Download Syncthing on the device you want to sync with CasaOS": "Baixe o Syncthing no dispositivo que você quer sincronizar com o CasaOS",\n "Get Syncthing for": "Obter o Syncthing para {os}",\n "Download APK": "Baixar APK",\n "Show all Platforms": "Mostrar todas Plataformas",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Instale e abra o app baixado, então clique no botão "Próximo".\',\n "Device ID": "ID do Dispositivo",\n "Fill in your Device ID to continue": "Preencha o ID do Dispositivo para continuar",\n "How to get Device ID": "Como obter o ID do Dispositivo",\n "What do I need to do on my device?": "O que eu preciso fazer no meu dispositivo?",\n "Open the SyncTrayzor": "Abra o SyncTrayzor",\n "Find the Device ID": "Encontre o ID do Dispositivo",\n "Add new device on your device": "Adicione um novo dispositivo no seu dispositivo",\n "Add new folder on your device": "Adicione uma nova pasta no seu dispositivo",\n "Done!": "Pronto!",\n "Open Syncthing in the Launchpad": "Abrir Syncthing no Launchpad",\n "Find the Syncthing icon in the menubar": "Encontre o ícone do Syncthing na barra de menu",\n "Open Syncthing": "Abra Syncthing",\n "Open the menu": "Abra o menu",\n \'Choose "Show device ID"\': \'Escolha "Mostrar ID do Dispositivo"\',\n "Copy the Device ID": "Copiar o ID do Dispositivo",\n "There you go!": "Prontinho!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "A sincronização dos seus dados começou.<br>Pode levar alguns minutos até terminar.",\n "Up to Date": "Atualizado",\n "Synchronizing": "Sincronizando",\n "Synchronized": "Sincronizado",\n "Total": "Total",\n "Add New Device": "Adicionar Novo Dispositivo",\n // Iot\n "Have an idea? Shoot it on Discord!": "Tem uma ideia? Manda no Discord!",\n "Smarten up your home": "Tornando sua casa inteligente",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Nós queremos te dar uma experiência de casa inteligente com privacidade, alta velocidade e armazenamento local.",\n "In development": "Em desenvolvimento",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "Abrir",\n "Setting": "Configuração",\n "Uninstall": "Desinstalar",\n "Attention": "Atenção",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Dados não podem ser recuperados depois de apagados! <br>Continuar com a desinstalação da aplicação?",\n "Featured Apps": "Apps em Destaque",\n "Custom Install": "Install Personalizada",\n "Continue in background": "Continue em segundo plano",\n "Install a new App manually": "Instalar um novo App manualmente",\n "Docker Image": "Imagem Docker",\n "App name": "Nome do App",\n "Icon URL": "URL do Ícone",\n "Network": "Rede",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Portas",\n "Volumes": "Drives de Armazenamento",\n "Environment Variables": "Variáveis de Ambiente",\n "Devices": "Dispositivos",\n "Memory Limit": "Limite de Memória",\n "CPU Shares": "Compartilhamento de CPU",\n "Restart Policy": "Política de Reinicialização",\n "App Description": "Descrição do App",\n "No ports now, click “+” to add one.": "Sem portas por enquanto, clique no “+” para adicionar uma.",\n "No volumes now, click “+” to add one.": "Sem drives de armazenamento por enquanto, clique no “+” para adicionar um.",\n "No environment variables now, click “+” to add one.": "Sem variáveis de ambiente por enquanto, clique no “+” para adicionar uma.",\n "No devices now, click “+” to add one.": "Sem dispositivos por enquanto, clique no “+” para adicionar um.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "e.g.,hello-world:latest",\n "Your custom App Name": "Seu Nome de App personalizado",\n "Your custom icon URL": "Sua URL de Ícone Personalizado",\n "Installing": "Instalando",\n "Export AppFile": "Exportar Arquivo de App",\n "AppFile": "Arquivo de App",\n "Drop your app file here or click to upload": "Solte o arquivo do seu app aqui ou clique para fazer o upload",\n "Host": "Host",\n "Container": "Container",\n "Key": "Chave",\n "Value": "Valor",\n "Protocol": "Protocolo",\n "This is not a valid json file.": "Esse não é um arquivo json válido.",\n "Your browser does not support file reading.": "Seu navegador não suporta a leitura de arquivos.",\n "has been selected": "foi selecionado",\n "Please fill correct command line": "Por favor preencha a linha de comando corretamente",\n "Please import a valid App file": "Por favor importe um Arquivo de App válido",\n "AutoFill only helps you to complete most of the configuration.": "Autocompletar só te ajuda a completar a maioria das configurações.",\n "Some configuration information such as:": "Algumas informações sobre configuração como:",\n "the port and path of the Web UI": "a porta e o caminho da Web UI",\n "the mount location of the volume or file": "o ponto de montagem do drive de armazenamento ou arquivo",\n "the port mapping of the Host": "o mapeamento de portas do Host",\n "optional configuration items": "itens de configuração optionais",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "Estes incluem mas não se restringem a esses casos <b>ainda precisam ser confirmados ou modificados por você.</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Sinta-se a vontade para sugerir melhorias para essa funcionalidade no nosso Servidor do Discord!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Usar localhost ou 127.0.0.1 vai tornar a aplicação inacessível, por favor use o ip verdadeiro para acessar.",\n "CATEGORY": "CATEGORIA",\n "DEVELOPER": "DESENVOLVEDOR",\n "REQUIRE": "REQUIRE",\n "MEMORY": "MEMÓRIA",\n "DISK": "DISCO",\n "App Store": "Loja de Apps",\n "Community Apps": "Apps da Comunidade",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "Para contribuidores da comunidade, não otimizado para o CasaOS, mas fornece uma experiência básica do App.",\n "Sort by": "Ordenar por",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Criar Armazenamento",\n "Storage Manager": "Gerenciador de Armazenamento",\n "Storage": "Armazenamento",\n "Drive": "Drive",\n "Single Drive Storage": "Drive de Armazenamento Individual",\n "Format": "Formatar",\n "Remove": "Remover",\n "Available Total": "{name} | Disponível: {avl} (Total: {total})",\n "Health": "Saúde",\n "Healthy": "Saudável",\n "Damage": "Danificado",\n "Temp": "Temp",\n "WARNING!": "ATENÇÃO!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "O drive selecionado será esvaziado. Confira novamente se não há informações importantes nele que ainda não tenham sido salvas. Se ainda existirem dados a serem migrados, os apps relacionados serão interrompidos durante o processo de migração.",\n "Creation in progress": "Criação em progresso",\n "Apply": "Aplicar",\n "Just Mount": "Apenas Monte",\n "Storage Name": "Nome do Armazenamento",\n "Choose Drive": "Escolher Drive",\n "Enter the password to continue:": "Entre com a senha para continuar:",\n "Used": "Usado",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "O CasaOS separa 1% do espaço de arquivos quando cria o armazenamento no formato EXT4.",\n "The selected drive will be emptied.": "O drive selecionado será esvaziado.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Por favor, verifique novamente que não há informações importantes no drive selecionado que precisem ser salvas.",\n "The drive you select can be used directly as storage.": "O drive que você selecionou pode ser usado diretamente como armazenamento.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "Você também pode optar por criar depois da formatação. Se formatado, o drive selecionado será esvaziado.",\n "Format and Create": "Formatar e Criar",\n // Feedback\n "Join Discord": "Entrar no Discord",\n "Visit our Github": "Visitar nosso Github",\n "Bug report": "Reportar bug",\n "Title": "Título",\n "Describe the bug": "Descreva o bug",\n "A clear and concise description of what the bug is.": "Uma descrição clara e suscinta sobre o que o bug é.",\n "System infomation": "Informações sobre o sistema",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don’t save them.",\n "Don’t Save": "Don’t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\n * Share Section\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/pt_br.js?')},"./src/assets/lang/ru_ru.js":
/*!**********************************!*\
!*** ./src/assets/lang/ru_ru.js ***!
\**********************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Russian localize by t.me/im_ostrovskiy\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "ОК",\n "Cancel": "Отмена",\n "Submit": "Принять",\n "Back": "Назад",\n "Edit": "Редактировать",\n "Update": "Обновить",\n "Create": "Создать",\n "Next": "Дальше",\n "Close": "Закрыть",\n "Select": "Выбрать",\n "Save": "Сохранить",\n "Add": "Добавить",\n "Go": "Перейти",\n "Import": "Импорт",\n "Low": "Низкий",\n "Medium": "Средний",\n "High": "Высокий",\n "Language": "Язык",\n "This field is required": "Это поле обязательно",\n "This field must be a valid email": "В этом поле должен быть действующий адрес электронной почты.",\n "This field confirmation does not match": "Подтверждение в этом поле не совпадает",\n "This field must have 2 options": "В этом поле должно быть 2 опции",\n "This field must have more than 5 characters": "В этом поле должно быть больше чем 5 символов",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Добро пожаловать в CasaOS",\n "Let\'s create your initial account": "Давайте создадим ваш аккаунт",\n "Go →": "Поехали →",\n "Create Account": "Создать аккаунт",\n "Username": "Имя пользователя",\n "Confirm Password": "Подтвердить пароль",\n "Username or Password error!": "Ошибка имени пользователя или пароля!",\n "All things done!": "Все готово!",\n // Login\n "Login": "Логин",\n "Password error!": "Неверный пароль!",\n // Account\n "Account": "Аккаунт",\n "Logout": "Выйти",\n "Name": "Имя",\n "Password": "Пароль",\n "Change name": "Изменить имя",\n "Change Password": "Изменить пароль",\n "Original password": "Текуший пароль",\n "New password": "Новый пароль",\n "Confirm the new password again": "Подтвердите новый пароль еще раз",\n // Dashboard Settings\n "Settings": "Настройки",\n "Dashboard Setting": "Настройка панели",\n "Search Engine": "Поисковой движок",\n "WebUI Port": "Порт Веб-Интерфейса",\n "Currently the latest version": "На данный момент последняя версия",\n "A new version is available!": "Доступна новая версия!",\n "Edit Web UI port": "Изменить порт Веб-Интерфейса",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Терминал и Логи",\n "Terminal": "Терминал",\n "Logs": "Логи",\n // Widgets\n "Widgets Settings": "Настройки виджетов",\n "Time": "Время",\n "Cores": "Cores",\n "System Status": "Состояние системы",\n "Storage Status": "Storage Status",\n "Network Status": "Состояние сети",\n "available of": "{avl} доступно из {total}",\n // Search \n "Search...": "Поиск...",\n // Sync\n "Sync your data": "Синхронизируйте ваши данные",\n "Follow the guide to start syncing your files across multiple devices.": "Следуйте инструкциям, чтобы начать синхронизацию файлов на нескольких устройствах.",\n "Go !": "Поехали !",\n "Sync Guide": "Руководство по синхронизации",\n "Install": "Установить",\n "Config": "Настройка",\n "Complete": "Готово",\n "Download Syncthing on the device you want to sync with CasaOS": "Загрузите Syncthing на устройство, которое хотите синхронизировать данные с CasaOS.",\n "Get Syncthing for": "Загрузить Syncthing для {os}",\n "Download APK": "Скачать APK",\n "Show all Platforms": "Показать все платформы",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Установите и откройте загруженное приложение, затем нажмите кнопку «Далее».\',\n "Device ID": "ID устройства",\n "Fill in your Device ID to continue": "Введите свой ID устройства, чтобы продолжить",\n "How to get Device ID": "Как получить ID устройства",\n "What do I need to do on my device?": "Что мне нужно делать на моем устройстве?",\n "Open the SyncTrayzor": "Откройте SyncTrayzor",\n "Find the Device ID": "Найдите ID устройства",\n "Add new device on your device": "Добавить новое устройство на ваше устройство",\n "Add new folder on your device": "Добавить новую папку на вашем устройстве",\n "Done!": "Готово!",\n "Open Syncthing in the Launchpad": "Откройте Syncthing в Launchpad",\n "Find the Syncthing icon in the menubar": "Найдите значок Syncthing в строке меню.",\n "Open Syncthing": "Откройте Syncthing",\n "Open the menu": "Откройте меню",\n \'Choose "Show device ID"\': \'Выберите «Показать ID устройства».\',\n "Copy the Device ID": "Скопируйте ID устройства",\n "There you go!": "Готово!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "Ваши данные начали синхронизироваться.<br>Синхронизация может занять несколько минут.",\n "Up to Date": "Обновленно",\n "Synchronizing": "Синхронизация",\n "Synchronized": "Синхронизировано",\n "Total": "Всего",\n "Add New Device": "Добавить новое устройство",\n // Iot\n "Have an idea? Shoot it on Discord!": "Есть идея? Напиши её в Discord!",\n "Smarten up your home": "Сделайте свой дом умнее",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Мы хотим дать вам опыт умного дома с конфиденциальностью, высокой скоростью и локализованным хранилищем.",\n "In development": "В разработке",\n // Apps\n "Apps": "Приложения",\n "App": "Приложение",\n "Open": "Открыть",\n "Setting": "Настройка",\n "Uninstall": "Удалить",\n "Attention": "Внимание",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Данные не подлежат восстановлению после удаления!<br>Продолжить, чтобы удалить это приложение?",\n "Featured Apps": "Популярные приложения",\n "Custom Install": "Своё приложение",\n "Continue in background": "Продолжить в фоне",\n "Install a new App manually": "Установить новое приложение вручную",\n "Docker Image": "Docker-Образ",\n "App name": "Имя приложения",\n "Icon URL": "URL значка",\n "Network": "Сеть",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Порты",\n "Volumes": "Тома",\n "Environment Variables": "Переменные среды",\n "Devices": "Устройства",\n "Memory Limit": "Ограничение памяти",\n "CPU Shares": "Доли ЦП",\n "Restart Policy": "Политика перезагрузки",\n "App Description": "Описание приложения",\n "No ports now, click “+” to add one.": "Сейчас портов нет, нажмите “+”, чтобы добавить его.",\n "No volumes now, click “+” to add one.": "Томов сейчас нет, нажмите “+”, чтобы добавить его.",\n "No environment variables now, click “+” to add one.": "Переменных среды сейчас нет, нажмите “+”, чтобы добавить их.",\n "No devices now, click “+” to add one.": "Устройств сейчас нет, нажмите “+”, чтобы добавить их.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "например,hello-world:latest",\n "Your custom App Name": "Ваше собственное имя приложения",\n "Your custom icon URL": "URL вашего собственного значка",\n "Installing": "Установка",\n "Export AppFile": "Экспорт файла приложения",\n "AppFile": "Файл приложения",\n "Drop your app file here or click to upload": "Перетащите файл приложения сюда или нажмите, чтобы загрузить",\n "Host": "Хост",\n "Container": "Контейнер",\n "Key": "Ключ",\n "Value": "Значение",\n "Protocol": "Протокол",\n "This is not a valid json file.": "Это недопустимый файл json.",\n "Your browser does not support file reading.": "Ваш браузер не поддерживает чтение файлов.",\n "has been selected": "был выбран",\n "Please fill correct command line": "Пожалуйста, заполните командную строку правильно",\n "Please import a valid App file": "Пожалуйста, импортируйте правильный файл приложения",\n "AutoFill only helps you to complete most of the configuration.": "Автозаполнение только помогает выполнить большую часть настройки.",\n "Some configuration information such as:": "Некоторая информация о конфигурации, такая как:",\n "the port and path of the Web UI": "порт и путь веб-интерфейса",\n "the mount location of the volume or file": "место монтирования тома или файла",\n "the port mapping of the Host": "отображение портов хоста",\n "optional configuration items": "дополнительные элементы конфигурации",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "К ним относятся, но не ограничиваются этими случаями, и <b> вы все равно должны подтвердить или изменить их. </b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Не стесняйтесь предлагать улучшения этой функции в Discord!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Использование localhost или 127.0.0.1 приведет к тому, что приложение станет недоступным, используйте для доступа реальный IP-адрес.",\n "CATEGORY": "КАТЕГОРИЯ",\n "DEVELOPER": "РАЗРАБОТЧИК",\n "REQUIRE": "ТРЕБУЕТСЯ",\n "MEMORY": "ПАМЯТИ",\n "DISK": "МЕСТА",\n "App Store": "Магазин приложений",\n "Community Apps": "Пользовательские приложения",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "От участников сообщества, не оптимизированы для CasaOS, но предоставляют базовые возможности приложения.",\n "Sort by": "Сортировать по",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Create Storage",\n "Storage Manager": "Storage Manager",\n "Storage": "Storage",\n "Drive": "Drive",\n "Single Drive Storage": "Single Drive Storage",\n "Format": "Format",\n "Remove": "Remove",\n "Available Total": "{name} | Available: {avl} (Total: {total})",\n "Health": "Health",\n "Healthy": "Healthy",\n "Damage": "Damage",\n "Temp": "Temp",\n "WARNING!": "WARNING!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.",\n "Creation in progress": "Creation in progress",\n "Apply": "Apply",\n "Just Mount": "Just Mount",\n "Storage Name": "Storage Name",\n "Choose Drive": "Choose Drive",\n "Enter the password to continue:": "Enter the password to continue:",\n "Used": "Used",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserves 1% of file space when creating storage in EXT4 format.",\n "The selected drive will be emptied.": "The selected drive will be emptied.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Please make sure again that there is no important data on the selected drive that needs to be backed up.",\n "The drive you select can be used directly as storage.": "The drive you select can be used directly as storage.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.",\n "Format and Create": "Format and Create",\n // Feedback\n "Join Discord": "Join Discord",\n "Visit our Github": "Visit our Github",\n "Bug report": "Bug report",\n "Title": "Title",\n "Describe the bug": "Describe the bug",\n "A clear and concise description of what the bug is.": "A clear and concise description of what the bug is.",\n "System infomation": "System infomation",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don’t save them.",\n "Don’t Save": "Don’t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\r\n * Share Section\r\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/ru_ru.js?')},"./src/assets/lang/zh_cn.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Russian localize by t.me/im_ostrovskiy\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "ОК",\n "Cancel": "Отмена",\n "Submit": "Принять",\n "Back": "Назад",\n "Edit": "Редактировать",\n "Update": "Обновить",\n "Create": "Создать",\n "Next": "Дальше",\n "Close": "Закрыть",\n "Select": "Выбрать",\n "Save": "Сохранить",\n "Add": "Добавить",\n "Go": "Перейти",\n "Import": "Импорт",\n "Low": "Низкий",\n "Medium": "Средний",\n "High": "Высокий",\n "Language": "Язык",\n "This field is required": "Это поле обязательно",\n "This field must be a valid email": "В этом поле должен быть действующий адрес электронной почты.",\n "This field confirmation does not match": "Подтверждение в этом поле не совпадает",\n "This field must have 2 options": "В этом поле должно быть 2 опции",\n "This field must have more than 5 characters": "В этом поле должно быть больше чем 5 символов",\n "You entered an invalid RFC1123 hostname": "You entered an invalid RFC1123 hostname",\n // Init Page\n "Welcome to CasaOS": "Добро пожаловать в CasaOS",\n "Let\'s create your initial account": "Давайте создадим ваш аккаунт",\n "Go →": "Поехали →",\n "Create Account": "Создать аккаунт",\n "Username": "Имя пользователя",\n "Confirm Password": "Подтвердить пароль",\n "Username or Password error!": "Ошибка имени пользователя или пароля!",\n "All things done!": "Все готово!",\n // Login\n "Login": "Логин",\n "Password error!": "Неверный пароль!",\n // Account\n "Account": "Аккаунт",\n "Logout": "Выйти",\n "Name": "Имя",\n "Password": "Пароль",\n "Change name": "Изменить имя",\n "Change Password": "Изменить пароль",\n "Original password": "Текуший пароль",\n "New password": "Новый пароль",\n "Confirm the new password again": "Подтвердите новый пароль еще раз",\n // Dashboard Settings\n "Settings": "Настройки",\n "Dashboard Setting": "Настройка панели",\n "Search Engine": "Поисковой движок",\n "WebUI Port": "Порт Веб-Интерфейса",\n "Currently the latest version": "На данный момент последняя версия",\n "A new version is available!": "Доступна новая версия!",\n "Edit Web UI port": "Изменить порт Веб-Интерфейса",\n "Automount USB Drive": "Automount USB Drive",\n "Wallpaper": "Wallpaper",\n "Change wallpaper": "Change wallpaper",\n "Show Search Bar": "Show Search Bar",\n "Show Recommended Apps": "Show Recommended Apps",\n "Upgrade Now": "Upgrade Now",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB",\n // Terminal & Logs\n "Terminal & Logs": "Терминал и Логи",\n "Terminal": "Терминал",\n "Logs": "Логи",\n // Widgets\n "Widgets Settings": "Настройки виджетов",\n "Time": "Время",\n "Cores": "Cores",\n "System Status": "Состояние системы",\n "Storage Status": "Storage Status",\n "Network Status": "Состояние сети",\n "available of": "{avl} доступно из {total}",\n // Search \n "Search...": "Поиск...",\n // Sync\n "Sync your data": "Синхронизируйте ваши данные",\n "Follow the guide to start syncing your files across multiple devices.": "Следуйте инструкциям, чтобы начать синхронизацию файлов на нескольких устройствах.",\n "Go !": "Поехали !",\n "Sync Guide": "Руководство по синхронизации",\n "Install": "Установить",\n "Config": "Настройка",\n "Complete": "Готово",\n "Download Syncthing on the device you want to sync with CasaOS": "Загрузите Syncthing на устройство, которое хотите синхронизировать данные с CasaOS.",\n "Get Syncthing for": "Загрузить Syncthing для {os}",\n "Download APK": "Скачать APK",\n "Show all Platforms": "Показать все платформы",\n \'Install and open the downloaded application, then click the "Next" button.\': \'Установите и откройте загруженное приложение, затем нажмите кнопку «Далее».\',\n "Device ID": "ID устройства",\n "Fill in your Device ID to continue": "Введите свой ID устройства, чтобы продолжить",\n "How to get Device ID": "Как получить ID устройства",\n "What do I need to do on my device?": "Что мне нужно делать на моем устройстве?",\n "Open the SyncTrayzor": "Откройте SyncTrayzor",\n "Find the Device ID": "Найдите ID устройства",\n "Add new device on your device": "Добавить новое устройство на ваше устройство",\n "Add new folder on your device": "Добавить новую папку на вашем устройстве",\n "Done!": "Готово!",\n "Open Syncthing in the Launchpad": "Откройте Syncthing в Launchpad",\n "Find the Syncthing icon in the menubar": "Найдите значок Syncthing в строке меню.",\n "Open Syncthing": "Откройте Syncthing",\n "Open the menu": "Откройте меню",\n \'Choose "Show device ID"\': \'Выберите «Показать ID устройства».\',\n "Copy the Device ID": "Скопируйте ID устройства",\n "There you go!": "Готово!",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "Ваши данные начали синхронизироваться.<br>Синхронизация может занять несколько минут.",\n "Up to Date": "Обновленно",\n "Synchronizing": "Синхронизация",\n "Synchronized": "Синхронизировано",\n "Total": "Всего",\n "Add New Device": "Добавить новое устройство",\n // Iot\n "Have an idea? Shoot it on Discord!": "Есть идея? Напиши её в Discord!",\n "Smarten up your home": "Сделайте свой дом умнее",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "Мы хотим дать вам опыт умного дома с конфиденциальностью, высокой скоростью и локализованным хранилищем.",\n "In development": "В разработке",\n // Apps\n "Apps": "Приложения",\n "App": "Приложение",\n "Open": "Открыть",\n "Setting": "Настройка",\n "Uninstall": "Удалить",\n "Attention": "Внимание",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "Данные не подлежат восстановлению после удаления!<br>Продолжить, чтобы удалить это приложение?",\n "Featured Apps": "Популярные приложения",\n "Custom Install": "Своё приложение",\n "Continue in background": "Продолжить в фоне",\n "Install a new App manually": "Установить новое приложение вручную",\n "Docker Image": "Docker-Образ",\n "App name": "Имя приложения",\n "Icon URL": "URL значка",\n "Network": "Сеть",\n "Privileged": "Privileged",\n "Container Command": "Container Command",\n "Container Capabilities (cap-add)": "Container Capabilities (cap-add)",\n "Container Hostname": "Container Hostname",\n "Hostname of app container": "Hostname of app container",\n "Ports": "Порты",\n "Volumes": "Тома",\n "Environment Variables": "Переменные среды",\n "Devices": "Устройства",\n "Memory Limit": "Ограничение памяти",\n "CPU Shares": "Доли ЦП",\n "Restart Policy": "Политика перезагрузки",\n "App Description": "Описание приложения",\n "No ports now, click “+” to add one.": "Сейчас портов нет, нажмите “+”, чтобы добавить его.",\n "No volumes now, click “+” to add one.": "Томов сейчас нет, нажмите “+”, чтобы добавить его.",\n "No environment variables now, click “+” to add one.": "Переменных среды сейчас нет, нажмите “+”, чтобы добавить их.",\n "No devices now, click “+” to add one.": "Устройств сейчас нет, нажмите “+”, чтобы добавить их.",\n "No commands now, click “+” to add one.": "No commands now, click “+” to add one.",\n "e.g.,hello-world:latest": "например,hello-world:latest",\n "Your custom App Name": "Ваше собственное имя приложения",\n "Your custom icon URL": "URL вашего собственного значка",\n "Installing": "Установка",\n "Export AppFile": "Экспорт файла приложения",\n "AppFile": "Файл приложения",\n "Drop your app file here or click to upload": "Перетащите файл приложения сюда или нажмите, чтобы загрузить",\n "Host": "Хост",\n "Container": "Контейнер",\n "Key": "Ключ",\n "Value": "Значение",\n "Protocol": "Протокол",\n "This is not a valid json file.": "Это недопустимый файл json.",\n "Your browser does not support file reading.": "Ваш браузер не поддерживает чтение файлов.",\n "has been selected": "был выбран",\n "Please fill correct command line": "Пожалуйста, заполните командную строку правильно",\n "Please import a valid App file": "Пожалуйста, импортируйте правильный файл приложения",\n "AutoFill only helps you to complete most of the configuration.": "Автозаполнение только помогает выполнить большую часть настройки.",\n "Some configuration information such as:": "Некоторая информация о конфигурации, такая как:",\n "the port and path of the Web UI": "порт и путь веб-интерфейса",\n "the mount location of the volume or file": "место монтирования тома или файла",\n "the port mapping of the Host": "отображение портов хоста",\n "optional configuration items": "дополнительные элементы конфигурации",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "К ним относятся, но не ограничиваются этими случаями, и <b> вы все равно должны подтвердить или изменить их. </b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "Не стесняйтесь предлагать улучшения этой функции в Discord!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "Использование localhost или 127.0.0.1 приведет к тому, что приложение станет недоступным, используйте для доступа реальный IP-адрес.",\n "CATEGORY": "КАТЕГОРИЯ",\n "DEVELOPER": "РАЗРАБОТЧИК",\n "REQUIRE": "ТРЕБУЕТСЯ",\n "MEMORY": "ПАМЯТИ",\n "DISK": "МЕСТА",\n "App Store": "Магазин приложений",\n "Community Apps": "Пользовательские приложения",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "От участников сообщества, не оптимизированы для CasaOS, но предоставляют базовые возможности приложения.",\n "Sort by": "Сортировать по",\n "Click icon to import.": "Click icon to import.",\n "Drag icons to sort.": "Drag icons to sort.",\n "Import to CasaOS": "Import to CasaOS",\n "Existing Docker Apps": "Existing Docker Apps",\n "Port [Please add a ports set first]": "Port [Please add a ports set first]",\n "[Optional]": "[Optional]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "Notice: If there are multiple services, only the first set can be analyzed correctly",\n "Port": "Port",\n //Storage\n "Create Storage": "Create Storage",\n "Storage Manager": "Storage Manager",\n "Storage": "Storage",\n "Drive": "Drive",\n "Single Drive Storage": "Single Drive Storage",\n "Format": "Format",\n "Remove": "Remove",\n "Available Total": "{name} | Available: {avl} (Total: {total})",\n "Health": "Health",\n "Healthy": "Healthy",\n "Damage": "Damage",\n "Temp": "Temp",\n "WARNING!": "WARNING!",\n "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.": "This selected drive will be emptied if there is data on it. Make sure again that there is no important data on the selected drive that has not been backed up. If there is data to be migrated, the related apps will be stopped during the migration process.",\n "Creation in progress": "Creation in progress",\n "Apply": "Apply",\n "Just Mount": "Just Mount",\n "Storage Name": "Storage Name",\n "Choose Drive": "Choose Drive",\n "Enter the password to continue:": "Enter the password to continue:",\n "Used": "Used",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS reserves 1% of file space when creating storage in EXT4 format.",\n "The selected drive will be emptied.": "The selected drive will be emptied.",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "Please make sure again that there is no important data on the selected drive that needs to be backed up.",\n "The drive you select can be used directly as storage.": "The drive you select can be used directly as storage.",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.",\n "Format and Create": "Format and Create",\n // Feedback\n "Join Discord": "Join Discord",\n "Visit our Github": "Visit our Github",\n "Bug report": "Bug report",\n "Title": "Title",\n "Describe the bug": "Describe the bug",\n "A clear and concise description of what the bug is.": "A clear and concise description of what the bug is.",\n "System infomation": "System infomation",\n // Files\n "Files": "Files",\n "Upload or Create": "Upload or Create",\n "Upload Files": "Upload Files",\n "Upload Folder": "Upload Folder",\n "New Folder": "New Folder",\n "New File": "New File",\n "Change View": "Change View",\n "Upload to": "Upload to",\n "Uploading": "Uploading",\n "Completed": "Completed",\n "success": "Success",\n "error": "Error",\n "uploading": "Uploading",\n "paused": "Paused",\n "waiting": "Waiting",\n "Download": "Download",\n "Copy Path": "Copy Path",\n "Rename": "Rename",\n "Cut": "Cut",\n "Copy": "Copy",\n "Delete": "Delete",\n "Are you sure?": "Are you sure?",\n "Paste": "Paste",\n "Refresh": "Refresh",\n "Code Editor": "Code Editor",\n "Saved": "Saved",\n "Want to save?": "Want to save?",\n "Your changes will be lost if you don’t save them.": "Your changes will be lost if you don’t save them.",\n "Don’t Save": "Don’t Save",\n "Drop your files here to upload": "Drop your files here to upload",\n "or": "or",\n "Date Modified": "Date Modified",\n "Size": "Size",\n "Play in IINA": "Play in IINA",\n "Play in PotPlayer": "Play in PotPlayer",\n "Play in VLC": "Play in VLC",\n "Download in preparation...": "Download in preparation...",\n "Copied to clipboard": "Copied to clipboard",\n "Previous": "Previous",\n "Zoom in": "Zoom in",\n "Rotate": "Rotate",\n "Reset": "Reset",\n "Zoom out": "Zoom out",\n "INext": "Next",\n "Move": "Move",\n "Current Tasks": "Current Tasks",\n "Deleting files": "Deleting files",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "Are you sure you want to <b>delete</b> these files? This action cannot be undone.",\n "select-items": "Select {num} items",\n "total-items": "Total {num} items",\n "cancel-all": "Cancel All",\n "Paste - Overwrite": "Paste - Overwrite",\n "Paste - Skip": "Paste - Skip",\n "Set as wallpaper": "Set as wallpaper",\n "Set wallpaper successfully.": "Set wallpaper successfully.",\n "Save failed, please try again!": "Save failed, please try again!",\n "Upload failed, please try again!": "Upload failed, please try again!",\n\n /* ******************************\n * Share Section\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "More info",\n "Edit Info": "Edit Info",\n "Copy My Share ID": "Copy My Share ID",\n "Add Friend": "Add Friend",\n "Friends": "Friends",\n "Downloads": "Downloads",\n "Notification": "Notification",\n "Upload not supported!": "Upload not supporte!",\n "Select a friend to view his share.": "Select a friend to view his share.",\n //\n "There are no files in the current folder.": "There are no files in the current folder.",\n "has been copied to the clipboard": "has been copied to the clipboard",\n "is offline": "is offline",\n "Home": "Home",\n "Forward": "Forward",\n // User Context\n "Edit remark": "Edit remark",\n "Unblock this friend": "Unblock this friend",\n "Block this friend": "Block this friend",\n "Delete friend": "Delete friend",\n "Blocked this friend": "Blocked this friend",\n "Unblocked this friend": "Unblocked this friend",\n "Blocked failed": "Blocked failed",\n "Deleted this friend": "Deleted this friend",\n "Delete failed": "Delete failed",\n "Copy friend\'s ID": "Copy friend\'s ID",\n // Tour\n "Skip": "Skip",\n "Prev": "Prev",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "Here is your avatar, where you can change your personal information and get your ID to share with your friends.",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "Click \\"+\\" and enter your friend\'s ID to send a friend request.",\n "Browse your download progress and download history here.": "Browse your download progress and download history here.",\n "Modify your shared folders, and default download path here.": "Modify your shared folders, and default download path here.",\n "Well, let\'s start using it!": "Well, let\'s start using it!",\n // Download List\n "Downloading": "Downloading",\n "D-Completed": "Completed",\n "D-Total": "Total",\n "D-Name": "Name",\n "D-Size": "Size",\n "D-Progress": "Progress",\n "D-Retry": "Retry",\n "Cancel Download": "Cancel Download",\n "Delete this record": "Delete this record",\n "Finishing": "Finishing",\n "Error": "Error",\n "Download was cancelled": "Download was cancelled",\n "Cancel download failed": "Cancel download failed",\n "Record deleted": "Record deleted",\n "Delete record failed": "Delete record failed",\n // Init Modal\n "Share Initialization Wizard": "Share Initialization Wizard",\n "Welcome to CasaConnect": "Welcome to CasaConnect",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.",\n "You need to do some simple setup.": "You need to do some simple setup.",\n "Let\'s Start": "Let\'s Start",\n "Share-Account": "Account",\n "Share-Setting": "Setting",\n "Share-Recommend": "Recommend",\n "Share-Finish": "Finish",\n "Nickname": "Name",\n "Please enter your nickname.": "Please enter your nickname.",\n "Description": "Description",\n "Please enter your Description.": "Please enter your Description.",\n "Shared folders": "Shared folders",\n "Default download path": "Default download path",\n "Need to add at least one directory.": "Need to add at least one directory.",\n "Change": "Change",\n "We have prepared some public servers.": "We have prepared some public servers.",\n "You need to choose one of them to start with.": "You need to choose one of them to start with.",\n "At least one must be selected.": "At least one must be selected.",\n "Share is ready!": "Share is ready!",\n "You have completed the initial setup.": "You have completed the initial setup.",\n "Next you can follow the use guide to learn how to use it.": "Next you can follow the use guide to learn how to use it.",\n "Share-Go": "Go",\n // Add Friend Modal\n "Send Friend Request": "Send Friend Request",\n "Friend\'s ID": "Friend\'s ID",\n "Please enter friend\'s Share ID.": "Please enter friend\'s Share ID.",\n "Friend Request Sent.": "Friend Request Sent.",\n "is already your friend.": "is already your friend.",\n // Download Modal\n "Download to": "Download {file} to",\n "Download path": "Download path",\n "Set as default download path": "Set as default download path",\n "Download has started": "Download has started",\n "Download failed": "Download failed",\n // Remark Modal\n "Please enter the remark.": "Please enter the remark.",\n "Remark saved": "Remark saved",\n "Remark save failed": "Remark save failed",\n // Profile Modal \n "Edit My Info": "Edit My Info",\n "My ID": "My ID",\n "Update successful": "Update successful",\n "Update failed": "Update failed"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/ru_ru.js?')},"./src/assets/lang/zh_cn.js":
/*!**********************************!*\
!*** ./src/assets/lang/zh_cn.js ***!
\**********************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Chinese\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "好",\n "Cancel": "取消",\n "Submit": "提交",\n "Back": "返回",\n "Edit": "编辑",\n "Update": "更新",\n "Create": "创建",\n "Next": "下一步",\n "Close": "关闭",\n "Select": "选择",\n "Save": "保存",\n "Add": "添加",\n "Go": "访问",\n "Import": "导入",\n "Low": "低",\n "Medium": "中",\n "High": "高",\n "Language": "语言",\n "This field is required": "此字段是必填项",\n "This field must be a valid email": "此字段必须是有效的电子邮件",\n "This field confirmation does not match": "此字段确认不匹配",\n "This field must have 2 options": "此字段必须有 2 个选项",\n "This field must have more than 5 characters": "此字段不少于 5 个字符",\n "You entered an invalid RFC1123 hostname": "你输入的不是一个有效的RFC1123主机名",\n // Init Page\n "Welcome to CasaOS": "欢迎进入CasaOS",\n "Let\'s create your initial account": "让我们来创建你的初始账户",\n "Go →": "开始 →",\n "Create Account": "创建账户",\n "Username": "用户名",\n "Confirm Password": "确认密码",\n "Username or Password error!": "用户名或密码错误!",\n "All things done!": "一切就绪!",\n // Login\n "Login": "登录",\n "Password error!": "密码错误!",\n // Account\n "Account": "用户",\n "Logout": "退出账户",\n "Name": "用户名",\n "Password": "密码",\n "Change name": "更改用户名",\n "Change Password": "更改密码",\n "Original password": "原密码",\n "New password": "新密码",\n "Confirm the new password again": "确认新密码",\n // Dashboard Settings\n "Settings": "系统设置",\n "Dashboard Setting": "系统设置",\n "Search Engine": "搜索引擎",\n "WebUI Port": "网页界面端口",\n "Currently the latest version": "当前已经是最新版",\n "A new version is available!": "有新的可用版本!",\n "Edit Web UI port": "修改网页界面端口",\n "Automount USB Drive": "自动挂载USB磁盘",\n "Wallpaper": "壁纸",\n "Change wallpaper": "更改壁纸",\n "Show Search Bar": "显示搜索栏",\n "Show Recommended Apps": "显示推荐应用",\n "Upgrade Now": "立刻升级",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "当 Raspberry Pi 设备使用USB启动时,启用此项可能会导致启动故障。",\n // Terminal & Logs\n "Terminal & Logs": "终端与日志",\n "Terminal": "终端",\n "Logs": "日志",\n // Widgets\n "Widgets Settings": "小组件设置",\n "Time": "时间",\n "Cores": "核",\n "System Status": "系统状态",\n "Storage Status": "存储空间状态",\n "Network Status": "网络状况",\n "available of": "{avl}可用(共{total})",\n // Search \n "Search...": "搜索...",\n // Sync\n "Sync your data": "同步你的数据",\n "Follow the guide to start syncing your files across multiple devices.": "跟随指引在多个设备之间同步你的文件。",\n "Go !": "开始 !",\n "Sync Guide": "同步向导",\n "Install": "安装",\n "Config": "配置",\n "Complete": "完成",\n "Download Syncthing on the device you want to sync with CasaOS": "在要与 CasaOS 同步的设备上下载 Syncthing",\n "Get Syncthing for": "下载 {os} 版",\n "Download APK": "下载 APK",\n "Show all Platforms": "显示所有平台",\n \'Install and open the downloaded application, then click the "Next" button.\': \'安装并打开下载的应用程序,然后单击“下一步”按钮。\',\n "Device ID": "设备ID",\n "Fill in your Device ID to continue": "填入你的设备ID以继续",\n "How to get Device ID": "如何获取设备ID",\n "What do I need to do on my device?": "我需要在我的设备上做什么?",\n "Open the SyncTrayzor": "打开SyncTrayzor",\n "Find the Device ID": "找到设备ID",\n "Add new device on your device": "在你的设备上添加新设备",\n "Add new folder on your device": "在你的设备上添加新文件夹",\n "Done!": "完成!",\n "Open Syncthing in the Launchpad": "在启动板中打开 Syncthing",\n "Find the Syncthing icon in the menubar": "在菜单栏中找到 Syncthing 的图标",\n "Open Syncthing": "打开 Syncthing",\n "Open the menu": "打开菜单",\n \'Choose "Show device ID"\': \'选择 "显示设备ID"\',\n "Copy the Device ID": "复制设备ID",\n "There you go!": "一切就绪",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "你的数据已经开始同步,完成同步可能需要几分钟时间。",\n "Up to Date": "已同步",\n "Synchronizing": "同步中",\n "Synchronized": "同步完成",\n "Total": "总计",\n "Add New Device": "添加新设备",\n // Iot\n "Have an idea? Shoot it on Discord!": "有想法?在 Discord 上告诉我们!",\n "Smarten up your home": "智能化你的家庭",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "我们希望为你提供隐私、高速和本地化存储的智能家居体验。",\n "In development": "正在开发中",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "打开",\n "Setting": "设置",\n "Uninstall": "卸载",\n "Attention": "注意",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "删除后数据无法恢复! 继续卸载App?",\n "Featured Apps": "精选App",\n "Custom Install": "自定义安装",\n "Continue in background": "在后台继续",\n "Install a new App manually": "手动安装App",\n "Docker Image": "Docker 镜像",\n "App name": "App名称",\n "Icon URL": "图标路径",\n "Network": "网络",\n "Privileged": "特权",\n "Container Command": "容器命令",\n "Container Capabilities (cap-add)": "容器能力 (cap-add)",\n "Container Hostname": "容器主机名",\n "Hostname of app container": "App容器的主机名",\n "Ports": "端口",\n "Volumes": "卷",\n "Environment Variables": "环境变量",\n "Devices": "设备",\n "Memory Limit": "内存限制",\n "CPU Shares": "CPU 限制",\n "Restart Policy": "重启策略",\n "App Description": "App简介",\n "No ports now, click “+” to add one.": "目前没有端口,点击 + 添加一个。",\n "No volumes now, click “+” to add one.": "目前没有卷,点击 + 添加一个。",\n "No environment variables now, click “+” to add one.": "目前没有环境变量,点击 + 添加一个。",\n "No devices now, click “+” to add one.": "目前没有设备,点击 + 添加一个。",\n "No commands now, click “+” to add one.": "目前没有命令,点击 + 来添加一个。",\n "e.g.,hello-world:latest": "例如: hello-world:latest",\n "Your custom App Name": "自定义App名称",\n "Your custom icon URL": "自定义图标路径",\n "Installing": "正在安装",\n "Export AppFile": "导出AppFile",\n "AppFile": "AppFile",\n "Drop your app file here or click to upload": "将你的AppFile拖放到此处或点击上传",\n "Host": "主机",\n "Container": "容器",\n "Key": "键",\n "Value": "值",\n "Protocol": "协议",\n "This is not a valid json file.": "这不是有效的 json 文件。",\n "Your browser does not support file reading.": "你的浏览器不支持文件读取。",\n "has been selected": "已被选中",\n "Please fill correct command line": "请填写正确的命令行",\n "Please import a valid App file": "请导入有效的AppFile",\n "AutoFill only helps you to complete most of the configuration.": "自动填写仅会帮助你完成大部分配置。",\n "Some configuration information such as:": "一些配置信息,例如:",\n "the port and path of the Web UI": "Web UI 的端口和路径",\n "the mount location of the volume or file": "卷或文件的安装位置",\n "the port mapping of the Host": "Host的端口映射",\n "optional configuration items": "可选配置项",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "这些包括但不限于这些情况,<b>还需要你确认或修改。</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "欢迎随时随时在 Discord 中对此功能提出改进建议!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "当你使用 localhost 或 127.0.0.1 时将会导致App无法打开, 请使用实际IP地址来访问。",\n "CATEGORY": "分类",\n "DEVELOPER": "开发者",\n "REQUIRE": "需要",\n "MEMORY": "内存",\n "DISK": "磁盘",\n "App Store": "应用中心",\n "Community Apps": "社区App",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "来自社区贡献者。提供了基础的App体验,但不是专门为CasaOS优化的。",\n "Sort by": "排序",\n "Click icon to import.": "点击图标来导入。",\n "Drag icons to sort.": "拖拽图标来排序。",\n "Import to CasaOS": "导入到 CasaOS",\n "Existing Docker Apps": "原有的 Docker Apps",\n "Port [Please add a ports set first]": "端口 [请先添加一组端口]",\n "[Optional]": "[可选]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "注意:如果存在多个服务只有第一组服务能够被正确的解析",\n "Port": "端口",\n //Storage\n "Create Storage": "创建存储空间",\n "Storage Manager": "存储空间管理器",\n "Storage": "存储空间",\n "Drive": "硬盘",\n "Single Drive Storage": "单硬盘存储空间",\n "Format": "格式化",\n "Remove": "移除",\n "Available Total": "{name} | {avl} 可用 (共计 {total})",\n "Health": "健康度",\n "Healthy": "健康",\n "Damage": "损毁",\n "Temp": "温度",\n "Warning": "警告",\n "Creation in progress": "正在创建中",\n "Apply": "提交",\n "Just Mount": "只挂载",\n "Storage Name": "存储空间名称",\n "Choose Drive": "选择硬盘",\n "Enter the password to continue:": "输入密码以继续:",\n "Used": "已用",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS在创建EXT4格式的存储空间时会预留 1% 的文件空间。",\n "The selected drive will be emptied.": "选中的硬盘将会被清空。",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "请再次确保所选的硬盘上没有需要备份的重要数据。",\n "The drive you select can be used directly as storage.": "你所选择的硬盘可以直接作为存储空间使用。",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "你也可以选择在格式化后创建。如果格式化的话,选中的硬盘将会被清空。",\n "Format and Create": "格式化并创建",\n // Feedback\n "Join Discord": "加入Discord",\n "Visit our Github": "访问我们的Github",\n "Bug report": "错误报告",\n "Title": "标题",\n "Describe the bug": "描述一下这个错误",\n "A clear and concise description of what the bug is.": "清晰而简明地描述什么是错误。",\n "System infomation": "系统信息",\n // Files\n "Files": "文件",\n "Upload or Create": "上传或创建",\n "Upload Files": "上传文件",\n "Upload Folder": "上传文件夹",\n "New Folder": "新建文件夹",\n "New File": "新建文件",\n "Change View": "切换视图",\n "Upload to": "上传到",\n "Uploading": "上传中",\n "Completed": "已完成",\n "success": "成功",\n "error": "错误",\n "uploading": "上传中",\n "paused": "已暂停",\n "waiting": "等待中",\n "Download": "下载",\n "Copy Path": "复制路径",\n "Rename": "重命名",\n "Cut": "剪切",\n "Copy": "复制",\n "Delete": "删除",\n "Are you sure?": "你确定吗?",\n "Paste": "粘贴",\n "Refresh": "刷新",\n "Code Editor": "代码编辑器",\n "Saved": "已保存",\n "Want to save?": "要保存吗?",\n "Your changes will be lost if you don’t save them.": "如果不保存,你更改的内容将会丢失。",\n "Don’t Save": "不保存",\n "Drop your files here to upload": "把你的文件拖放到这里",\n "or": "或者",\n "Date Modified": "修改日期",\n "Size": "大小",\n "Play in IINA": "在IINA中播放",\n "Play in PotPlayer": "在PotPlayer中播放",\n "Play in VLC": "在VLC中播放",\n "Download in preparation...": "下载准备中...",\n "Copied to clipboard": "已复制到剪贴板",\n "Previous": "上一张",\n "Zoom in": "放大",\n "Rotate": "旋转",\n "Reset": "复位",\n "Zoom out": "缩小",\n "INext": "下一张",\n "Move": "Move",\n "Current Tasks": "当前任务",\n "Deleting files": "删除文件",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "你确定要<b>删除</b>这些文件吗?这个动作无法撤销。",\n "select-items": "选择 {num} 项",\n "total-items": "共 {num} 项",\n "cancel-all": "全部取消",\n "Paste - Overwrite": "粘贴 - 覆盖",\n "Paste - Skip": "粘贴 - 忽略",\n "Set as wallpaper": "设为壁纸",\n "Set wallpaper successfully.": "成功设为壁纸.",\n "Save failed, please try again!": "保存失败,请重试!",\n "Upload failed, please try again!": "上传失败,请重试!",\n\n /* ******************************\r\n * Share Section\r\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "更多信息",\n "Edit Info": "编辑信息",\n "Copy My Share ID": "复制我的分享ID",\n "Add Friend": "添加好友",\n "Friends": "好友",\n "Downloads": "下载",\n "Notification": "通知",\n "Upload not supported!": "不支持上传!",\n "Select a friend to view his share.": "选择一个好友查看他的分享。",\n "There are no files in the current folder.": "当前文件夹中没有文件。",\n "has been copied to the clipboard": "已复制到剪贴板",\n "is offline": "已离线",\n "Home": "主页",\n "Forward": "前进",\n // User Context\n "Edit remark": "编辑备注",\n "Unblock this friend": "解除屏蔽这个好友",\n "Block this friend": "屏蔽这个好友",\n "Delete friend": "删除好友",\n "Blocked this friend": "已屏蔽这个好友。",\n "Unblocked this friend": "已解除屏蔽这个好友。",\n "Blocked failed": "屏蔽失败。",\n "Deleted this friend": "已删除这个好友。",\n "Delete failed": "删除失败",\n "Copy friend\'s ID": "复制朋友的 ID",\n // Tour\n "Skip": "跳过",\n "Prev": "上一步",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "这里是你的头像,你可以在这里修改你的个人信息,获取你的ID分享给你的好友。",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "点击“+”,输入你好友的ID,发送好友请求。",\n "Browse your download progress and download history here.": "在这里浏览你的下载进度和下载记录。",\n "Modify your shared folders, and default download path here.": "在这里修改你分享的文件夹以及默认下载路径",\n "Well, let\'s start using it!": "好了,开始使用吧!",\n // Download List\n "Downloading": "下载中",\n "D-Completed": "已完成",\n "D-Total": "总计",\n "D-Name": "名称",\n "D-Size": "大小",\n "D-Progress": "进度",\n "D-Retry": "重试",\n "Cancel Download": "取消下载",\n "Delete this record": "删除这条记录",\n "Finishing": "正在完成",\n "Error": "错误",\n "Download was cancelled": "下载已取消",\n "Cancel download failed": "取消下载失败",\n "Record deleted": "记录已删除",\n "Delete record failed": "删除记录失败",\n // Init Modal\n "Share Initialization Wizard": "分享初始化向导",\n "Welcome to acquaintance sharing": "欢迎使用熟人分享",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "通过这个功能,你可以方便在你和你的好友之间进行点对点的文件共享传输。",\n "You need to do some simple setup.": "你需要进行一些简单的设置。",\n "Let\'s Start": "开始吧",\n "Share-Account": "账户",\n "Share-Setting": "设置",\n "Share-Recommend": "推荐",\n "Share-Finish": "搞定",\n "Nickname": "昵称",\n "Please enter your nickname.": "请输入你的昵称。",\n "Description": "描述",\n "Please enter your Description.": "请输入你的描述。",\n "Shared folders": "分享的文件夹",\n "Default download path": "默认下载路径",\n "Need to add at least one directory.": "需要添加至少一个文件夹。",\n "Change": "更改",\n "We have prepared some public servers.": "我们准备了一些公共服务器。",\n "You need to choose one of them to start with.": "你需要选择一个服务器来开始使用。",\n "At least one must be selected.": "至少需要选择一个。",\n "Share is ready!": "分享已经就绪",\n "You have completed the initial setup.": "你已经完成了初始化设置。",\n "Next you can follow the use guide to learn how to use it.": "接下来可以跟随使用引导来了解如何使用。",\n "Share-Go": "开始",\n // Add Friend Modal\n "Send Friend Request": "发送好友请求",\n "Friend\'s ID": "好友的 ID",\n "Please enter friend\'s Share ID.": "请输入好友的 ID。",\n "Friend Request Sent.": "已发送好友请求",\n "is already your friend.": "已经是你的好友了。",\n // Download Modal\n "Download to": "下载 {file} 到",\n "Download path": "下载路径",\n "Set as default download path": "设置为默认下载路径",\n "Download has started": "已开始下载",\n "Download failed": "下载失败",\n // Remark Modal\n "Please enter the remark.": "请输入好友的备注。",\n "Remark saved": "备注已保存",\n "Remark save failed": "备注保存失败",\n // Profile Modal \n "Edit My Info": "编辑我的信息",\n "My ID": "我的 ID",\n "Update successful": "更新成功",\n "Update failed": "更新失败"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/zh_cn.js?')},"./src/assets/scss/app.scss":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n// Chinese\n/* harmony default export */ __webpack_exports__["default"] = ({\n // Commons\n "": "",\n "OK": "好",\n "Cancel": "取消",\n "Submit": "提交",\n "Back": "返回",\n "Edit": "编辑",\n "Update": "更新",\n "Create": "创建",\n "Next": "下一步",\n "Close": "关闭",\n "Select": "选择",\n "Save": "保存",\n "Add": "添加",\n "Go": "访问",\n "Import": "导入",\n "Low": "低",\n "Medium": "中",\n "High": "高",\n "Language": "语言",\n "This field is required": "此字段是必填项",\n "This field must be a valid email": "此字段必须是有效的电子邮件",\n "This field confirmation does not match": "此字段确认不匹配",\n "This field must have 2 options": "此字段必须有 2 个选项",\n "This field must have more than 5 characters": "此字段不少于 5 个字符",\n "You entered an invalid RFC1123 hostname": "你输入的不是一个有效的RFC1123主机名",\n // Init Page\n "Welcome to CasaOS": "欢迎进入CasaOS",\n "Let\'s create your initial account": "让我们来创建你的初始账户",\n "Go →": "开始 →",\n "Create Account": "创建账户",\n "Username": "用户名",\n "Confirm Password": "确认密码",\n "Username or Password error!": "用户名或密码错误!",\n "All things done!": "一切就绪!",\n // Login\n "Login": "登录",\n "Password error!": "密码错误!",\n // Account\n "Account": "用户",\n "Logout": "退出账户",\n "Name": "用户名",\n "Password": "密码",\n "Change name": "更改用户名",\n "Change Password": "更改密码",\n "Original password": "原密码",\n "New password": "新密码",\n "Confirm the new password again": "确认新密码",\n // Dashboard Settings\n "Settings": "系统设置",\n "Dashboard Setting": "系统设置",\n "Search Engine": "搜索引擎",\n "WebUI Port": "网页界面端口",\n "Currently the latest version": "当前已经是最新版",\n "A new version is available!": "有新的可用版本!",\n "Edit Web UI port": "修改网页界面端口",\n "Automount USB Drive": "自动挂载USB磁盘",\n "Wallpaper": "壁纸",\n "Change wallpaper": "更改壁纸",\n "Show Search Bar": "显示搜索栏",\n "Show Recommended Apps": "显示推荐应用",\n "Upgrade Now": "立刻升级",\n "Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB": "当 Raspberry Pi 设备使用USB启动时,启用此项可能会导致启动故障。",\n // Terminal & Logs\n "Terminal & Logs": "终端与日志",\n "Terminal": "终端",\n "Logs": "日志",\n // Widgets\n "Widgets Settings": "小组件设置",\n "Time": "时间",\n "Cores": "核",\n "System Status": "系统状态",\n "Storage Status": "存储空间状态",\n "Network Status": "网络状况",\n "available of": "{avl}可用(共{total})",\n // Search \n "Search...": "搜索...",\n // Sync\n "Sync your data": "同步你的数据",\n "Follow the guide to start syncing your files across multiple devices.": "跟随指引在多个设备之间同步你的文件。",\n "Go !": "开始 !",\n "Sync Guide": "同步向导",\n "Install": "安装",\n "Config": "配置",\n "Complete": "完成",\n "Download Syncthing on the device you want to sync with CasaOS": "在要与 CasaOS 同步的设备上下载 Syncthing",\n "Get Syncthing for": "下载 {os} 版",\n "Download APK": "下载 APK",\n "Show all Platforms": "显示所有平台",\n \'Install and open the downloaded application, then click the "Next" button.\': \'安装并打开下载的应用程序,然后单击“下一步”按钮。\',\n "Device ID": "设备ID",\n "Fill in your Device ID to continue": "填入你的设备ID以继续",\n "How to get Device ID": "如何获取设备ID",\n "What do I need to do on my device?": "我需要在我的设备上做什么?",\n "Open the SyncTrayzor": "打开SyncTrayzor",\n "Find the Device ID": "找到设备ID",\n "Add new device on your device": "在你的设备上添加新设备",\n "Add new folder on your device": "在你的设备上添加新文件夹",\n "Done!": "完成!",\n "Open Syncthing in the Launchpad": "在启动板中打开 Syncthing",\n "Find the Syncthing icon in the menubar": "在菜单栏中找到 Syncthing 的图标",\n "Open Syncthing": "打开 Syncthing",\n "Open the menu": "打开菜单",\n \'Choose "Show device ID"\': \'选择 "显示设备ID"\',\n "Copy the Device ID": "复制设备ID",\n "There you go!": "一切就绪",\n "Your data has started to sync.It may take some minutes to fulfill synchronization.": "你的数据已经开始同步,完成同步可能需要几分钟时间。",\n "Up to Date": "已同步",\n "Synchronizing": "同步中",\n "Synchronized": "同步完成",\n "Total": "总计",\n "Add New Device": "添加新设备",\n // Iot\n "Have an idea? Shoot it on Discord!": "有想法?在 Discord 上告诉我们!",\n "Smarten up your home": "智能化你的家庭",\n "We want to give you a smart home experience with privacy, high speed, and localized storage.": "我们希望为你提供隐私、高速和本地化存储的智能家居体验。",\n "In development": "正在开发中",\n // Apps\n "Apps": "Apps",\n "App": "App",\n "Open": "打开",\n "Setting": "设置",\n "Uninstall": "卸载",\n "Attention": "注意",\n "Data cannot be recovered after deletion! <br>Continue on to uninstall this application?": "删除后数据无法恢复! 继续卸载App?",\n "Featured Apps": "精选App",\n "Custom Install": "自定义安装",\n "Continue in background": "在后台继续",\n "Install a new App manually": "手动安装App",\n "Docker Image": "Docker 镜像",\n "App name": "App名称",\n "Icon URL": "图标路径",\n "Network": "网络",\n "Privileged": "特权",\n "Container Command": "容器命令",\n "Container Capabilities (cap-add)": "容器能力 (cap-add)",\n "Container Hostname": "容器主机名",\n "Hostname of app container": "App容器的主机名",\n "Ports": "端口",\n "Volumes": "卷",\n "Environment Variables": "环境变量",\n "Devices": "设备",\n "Memory Limit": "内存限制",\n "CPU Shares": "CPU 限制",\n "Restart Policy": "重启策略",\n "App Description": "App简介",\n "No ports now, click “+” to add one.": "目前没有端口,点击 + 添加一个。",\n "No volumes now, click “+” to add one.": "目前没有卷,点击 + 添加一个。",\n "No environment variables now, click “+” to add one.": "目前没有环境变量,点击 + 添加一个。",\n "No devices now, click “+” to add one.": "目前没有设备,点击 + 添加一个。",\n "No commands now, click “+” to add one.": "目前没有命令,点击 + 来添加一个。",\n "e.g.,hello-world:latest": "例如: hello-world:latest",\n "Your custom App Name": "自定义App名称",\n "Your custom icon URL": "自定义图标路径",\n "Installing": "正在安装",\n "Export AppFile": "导出AppFile",\n "AppFile": "AppFile",\n "Drop your app file here or click to upload": "将你的AppFile拖放到此处或点击上传",\n "Host": "主机",\n "Container": "容器",\n "Key": "键",\n "Value": "值",\n "Protocol": "协议",\n "This is not a valid json file.": "这不是有效的 json 文件。",\n "Your browser does not support file reading.": "你的浏览器不支持文件读取。",\n "has been selected": "已被选中",\n "Please fill correct command line": "请填写正确的命令行",\n "Please import a valid App file": "请导入有效的AppFile",\n "AutoFill only helps you to complete most of the configuration.": "自动填写仅会帮助你完成大部分配置。",\n "Some configuration information such as:": "一些配置信息,例如:",\n "the port and path of the Web UI": "Web UI 的端口和路径",\n "the mount location of the volume or file": "卷或文件的安装位置",\n "the port mapping of the Host": "Host的端口映射",\n "optional configuration items": "可选配置项",\n "These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>": "这些包括但不限于这些情况,<b>还需要你确认或修改。</b>",\n "Feel free to suggest improvements to this feature in Discord Server!": "欢迎随时随时在 Discord 中对此功能提出改进建议!",\n "Using localhost or 127.0.0.1 will cause the application to be inaccessible, please use the real ip to access.": "当你使用 localhost 或 127.0.0.1 时将会导致App无法打开, 请使用实际IP地址来访问。",\n "CATEGORY": "分类",\n "DEVELOPER": "开发者",\n "REQUIRE": "需要",\n "MEMORY": "内存",\n "DISK": "磁盘",\n "App Store": "应用中心",\n "Community Apps": "社区App",\n "From community contributors, not optimized for CasaOS, but provides a basic App experience.": "来自社区贡献者。提供了基础的App体验,但不是专门为CasaOS优化的。",\n "Sort by": "排序",\n "Click icon to import.": "点击图标来导入。",\n "Drag icons to sort.": "拖拽图标来排序。",\n "Import to CasaOS": "导入到 CasaOS",\n "Existing Docker Apps": "原有的 Docker Apps",\n "Port [Please add a ports set first]": "端口 [请先添加一组端口]",\n "[Optional]": "[可选]",\n "Notice: If there are multiple services, only the first set can be analyzed correctly": "注意:如果存在多个服务只有第一组服务能够被正确的解析",\n "Port": "端口",\n //Storage\n "Create Storage": "创建存储空间",\n "Storage Manager": "存储空间管理器",\n "Storage": "存储空间",\n "Drive": "硬盘",\n "Single Drive Storage": "单硬盘存储空间",\n "Format": "格式化",\n "Remove": "移除",\n "Available Total": "{name} | {avl} 可用 (共计 {total})",\n "Health": "健康度",\n "Healthy": "健康",\n "Damage": "损毁",\n "Temp": "温度",\n "Warning": "警告",\n "Creation in progress": "正在创建中",\n "Apply": "提交",\n "Just Mount": "只挂载",\n "Storage Name": "存储空间名称",\n "Choose Drive": "选择硬盘",\n "Enter the password to continue:": "输入密码以继续:",\n "Used": "已用",\n "CasaOS reserves 1% of file space when creating storage in EXT4 format.": "CasaOS在创建EXT4格式的存储空间时会预留 1% 的文件空间。",\n "The selected drive will be emptied.": "选中的硬盘将会被清空。",\n "Please make sure again that there is no important data on the selected drive that needs to be backed up.": "请再次确保所选的硬盘上没有需要备份的重要数据。",\n "The drive you select can be used directly as storage.": "你所选择的硬盘可以直接作为存储空间使用。",\n "You can also choose to create it after formatting. If formatted, the selected drive will be emptied.": "你也可以选择在格式化后创建。如果格式化的话,选中的硬盘将会被清空。",\n "Format and Create": "格式化并创建",\n // Feedback\n "Join Discord": "加入Discord",\n "Visit our Github": "访问我们的Github",\n "Bug report": "错误报告",\n "Title": "标题",\n "Describe the bug": "描述一下这个错误",\n "A clear and concise description of what the bug is.": "清晰而简明地描述什么是错误。",\n "System infomation": "系统信息",\n // Files\n "Files": "文件",\n "Upload or Create": "上传或创建",\n "Upload Files": "上传文件",\n "Upload Folder": "上传文件夹",\n "New Folder": "新建文件夹",\n "New File": "新建文件",\n "Change View": "切换视图",\n "Upload to": "上传到",\n "Uploading": "上传中",\n "Completed": "已完成",\n "success": "成功",\n "error": "错误",\n "uploading": "上传中",\n "paused": "已暂停",\n "waiting": "等待中",\n "Download": "下载",\n "Copy Path": "复制路径",\n "Rename": "重命名",\n "Cut": "剪切",\n "Copy": "复制",\n "Delete": "删除",\n "Are you sure?": "你确定吗?",\n "Paste": "粘贴",\n "Refresh": "刷新",\n "Code Editor": "代码编辑器",\n "Saved": "已保存",\n "Want to save?": "要保存吗?",\n "Your changes will be lost if you don’t save them.": "如果不保存,你更改的内容将会丢失。",\n "Don’t Save": "不保存",\n "Drop your files here to upload": "把你的文件拖放到这里",\n "or": "或者",\n "Date Modified": "修改日期",\n "Size": "大小",\n "Play in IINA": "在IINA中播放",\n "Play in PotPlayer": "在PotPlayer中播放",\n "Play in VLC": "在VLC中播放",\n "Download in preparation...": "下载准备中...",\n "Copied to clipboard": "已复制到剪贴板",\n "Previous": "上一张",\n "Zoom in": "放大",\n "Rotate": "旋转",\n "Reset": "复位",\n "Zoom out": "缩小",\n "INext": "下一张",\n "Move": "Move",\n "Current Tasks": "当前任务",\n "Deleting files": "删除文件",\n "Are you sure you want to <b>delete</b> these files? This action cannot be undone.": "你确定要<b>删除</b>这些文件吗?这个动作无法撤销。",\n "select-items": "选择 {num} 项",\n "total-items": "共 {num} 项",\n "cancel-all": "全部取消",\n "Paste - Overwrite": "粘贴 - 覆盖",\n "Paste - Skip": "粘贴 - 忽略",\n "Set as wallpaper": "设为壁纸",\n "Set wallpaper successfully.": "成功设为壁纸.",\n "Save failed, please try again!": "保存失败,请重试!",\n "Upload failed, please try again!": "上传失败,请重试!",\n\n /* ******************************\n * Share Section\n ********************************/\n "Share module name": "CasaConnect",\n // Main\n "More info": "更多信息",\n "Edit Info": "编辑信息",\n "Copy My Share ID": "复制我的分享ID",\n "Add Friend": "添加好友",\n "Friends": "好友",\n "Downloads": "下载",\n "Notification": "通知",\n "Upload not supported!": "不支持上传!",\n "Select a friend to view his share.": "选择一个好友查看他的分享。",\n "There are no files in the current folder.": "当前文件夹中没有文件。",\n "has been copied to the clipboard": "已复制到剪贴板",\n "is offline": "已离线",\n "Home": "主页",\n "Forward": "前进",\n // User Context\n "Edit remark": "编辑备注",\n "Unblock this friend": "解除屏蔽这个好友",\n "Block this friend": "屏蔽这个好友",\n "Delete friend": "删除好友",\n "Blocked this friend": "已屏蔽这个好友。",\n "Unblocked this friend": "已解除屏蔽这个好友。",\n "Blocked failed": "屏蔽失败。",\n "Deleted this friend": "已删除这个好友。",\n "Delete failed": "删除失败",\n "Copy friend\'s ID": "复制朋友的 ID",\n // Tour\n "Skip": "跳过",\n "Prev": "上一步",\n "Let\'s Go": "Let\'s Go",\n "Here is your avatar, where you can change your personal information and get your ID to share with your friends.": "这里是你的头像,你可以在这里修改你的个人信息,获取你的ID分享给你的好友。",\n "Click \\"+\\" and enter your friend\'s ID to send a friend request.": "点击“+”,输入你好友的ID,发送好友请求。",\n "Browse your download progress and download history here.": "在这里浏览你的下载进度和下载记录。",\n "Modify your shared folders, and default download path here.": "在这里修改你分享的文件夹以及默认下载路径",\n "Well, let\'s start using it!": "好了,开始使用吧!",\n // Download List\n "Downloading": "下载中",\n "D-Completed": "已完成",\n "D-Total": "总计",\n "D-Name": "名称",\n "D-Size": "大小",\n "D-Progress": "进度",\n "D-Retry": "重试",\n "Cancel Download": "取消下载",\n "Delete this record": "删除这条记录",\n "Finishing": "正在完成",\n "Error": "错误",\n "Download was cancelled": "下载已取消",\n "Cancel download failed": "取消下载失败",\n "Record deleted": "记录已删除",\n "Delete record failed": "删除记录失败",\n // Init Modal\n "Share Initialization Wizard": "分享初始化向导",\n "Welcome to acquaintance sharing": "欢迎使用熟人分享",\n "With this feature you can easily create peer-to-peer file sharing transfers between you and your friends.": "通过这个功能,你可以方便在你和你的好友之间进行点对点的文件共享传输。",\n "You need to do some simple setup.": "你需要进行一些简单的设置。",\n "Let\'s Start": "开始吧",\n "Share-Account": "账户",\n "Share-Setting": "设置",\n "Share-Recommend": "推荐",\n "Share-Finish": "搞定",\n "Nickname": "昵称",\n "Please enter your nickname.": "请输入你的昵称。",\n "Description": "描述",\n "Please enter your Description.": "请输入你的描述。",\n "Shared folders": "分享的文件夹",\n "Default download path": "默认下载路径",\n "Need to add at least one directory.": "需要添加至少一个文件夹。",\n "Change": "更改",\n "We have prepared some public servers.": "我们准备了一些公共服务器。",\n "You need to choose one of them to start with.": "你需要选择一个服务器来开始使用。",\n "At least one must be selected.": "至少需要选择一个。",\n "Share is ready!": "分享已经就绪",\n "You have completed the initial setup.": "你已经完成了初始化设置。",\n "Next you can follow the use guide to learn how to use it.": "接下来可以跟随使用引导来了解如何使用。",\n "Share-Go": "开始",\n // Add Friend Modal\n "Send Friend Request": "发送好友请求",\n "Friend\'s ID": "好友的 ID",\n "Please enter friend\'s Share ID.": "请输入好友的 ID。",\n "Friend Request Sent.": "已发送好友请求",\n "is already your friend.": "已经是你的好友了。",\n // Download Modal\n "Download to": "下载 {file} 到",\n "Download path": "下载路径",\n "Set as default download path": "设置为默认下载路径",\n "Download has started": "已开始下载",\n "Download failed": "下载失败",\n // Remark Modal\n "Please enter the remark.": "请输入好友的备注。",\n "Remark saved": "备注已保存",\n "Remark save failed": "备注保存失败",\n // Profile Modal \n "Edit My Info": "编辑我的信息",\n "My ID": "我的 ID",\n "Update successful": "更新成功",\n "Update failed": "更新失败"\n});\n\n//# sourceURL=webpack:///./src/assets/lang/zh_cn.js?')},"./src/assets/scss/app.scss":
/*!**********************************!*\
!*** ./src/assets/scss/app.scss ***!
\**********************************/
@@ -1118,11 +1118,11 @@
/*!*********************!*\
!*** ./src/main.js ***!
\*********************/
-/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.promise.js */ "./node_modules/core-js/modules/es.promise.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.promise.finally.js */ "./node_modules/core-js/modules/es.promise.finally.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! intersection-observer */ "./node_modules/intersection-observer/intersection-observer.js");\n/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(intersection_observer__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");\n/* harmony import */ var _App_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/App.vue */ "./src/App.vue");\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/router */ "./src/router/index.js");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/store */ "./src/store/index.js");\n/* harmony import */ var _plugins_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/plugins/i18n */ "./src/plugins/i18n.js");\n/* harmony import */ var _service_api_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/service/api.js */ "./src/service/api.js");\n/* harmony import */ var buefy__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! buefy */ "./node_modules/buefy/dist/esm/index.js");\n/* harmony import */ var vue_fullscreen__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-fullscreen */ "./node_modules/vue-fullscreen/dist/vue-fullscreen.min.js");\n/* harmony import */ var vue_fullscreen__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(vue_fullscreen__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var vue2_touch_events__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! vue2-touch-events */ "./node_modules/vue2-touch-events/index.js");\n/* harmony import */ var vue2_touch_events__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(vue2_touch_events__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var vue_tour__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! vue-tour */ "./node_modules/vue-tour/dist/vue-tour.umd.js");\n/* harmony import */ var vue_tour__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(vue_tour__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var vue_socket_io_extended__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! vue-socket.io-extended */ "./node_modules/vue-socket.io-extended/dist/vue-socket.io-ext.esm.js");\n/* harmony import */ var _assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/assets/scss/app.scss */ "./src/assets/scss/app.scss");\n/* harmony import */ var _assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! vue-tour/dist/vue-tour.css */ "./node_modules/vue-tour/dist/vue-tour.css");\n/* harmony import */ var vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var v_animate_css__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! v-animate-css */ "./node_modules/v-animate-css/index.js");\n\n\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-22 14:24:43\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-21 22:25:38\r\n * @Description: \r\n * @FilePath: \\CasaOS-UI\\src\\main.js\r\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar io = __webpack_require__(/*! socket.io-client */ "./node_modules/socket.io-client/lib/index.js"); // Import Styles\n\n\n\n\n\n_service_api_js__WEBPACK_IMPORTED_MODULE_11__["default"].info.getSocketPort().then(function (res) {\n var wsPort = res.data.data;\n var devIp = Object({"NODE_ENV":"prod","BASE_URL":"/ui/"}).VUE_APP_DEV_IP;\n var devPort = Object({"NODE_ENV":"prod","BASE_URL":"/ui/"}).VUE_APP_DEV_PORT;\n var localhost = document.location.host;\n var localhostName = document.location.hostname;\n var baseIp = false ? undefined : "".concat(localhostName);\n var baseURL = false ? undefined : "".concat(localhost);\n var wsURL = "ws://".concat(baseIp, ":").concat(wsPort);\n var socket = io(wsURL, {\n transports: [\'websocket\', \'polling\']\n });\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(buefy__WEBPACK_IMPORTED_MODULE_12__["default"]);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_fullscreen__WEBPACK_IMPORTED_MODULE_13___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(v_animate_css__WEBPACK_IMPORTED_MODULE_19__["default"]);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue2_touch_events__WEBPACK_IMPORTED_MODULE_14___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_tour__WEBPACK_IMPORTED_MODULE_15___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_socket_io_extended__WEBPACK_IMPORTED_MODULE_16__["default"], socket);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].config.productionTip = false;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$api = _service_api_js__WEBPACK_IMPORTED_MODULE_11__["default"];\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$baseIp = baseIp;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$baseURL = baseURL; // Create an EventBus\n\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$EventBus = new vue__WEBPACK_IMPORTED_MODULE_6__["default"]();\n new vue__WEBPACK_IMPORTED_MODULE_6__["default"]({\n router: _router__WEBPACK_IMPORTED_MODULE_8__["default"],\n i18n: _plugins_i18n__WEBPACK_IMPORTED_MODULE_10__["default"],\n store: _store__WEBPACK_IMPORTED_MODULE_9__["default"],\n render: function render(h) {\n return h(_App_vue__WEBPACK_IMPORTED_MODULE_7__["default"]);\n }\n }).$mount(\'#app\');\n});\n\n//# sourceURL=webpack:///./src/main.js?')},"./src/mixins/mixin.js":
+/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.promise.js */ "./node_modules/core-js/modules/es.promise.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.promise.finally.js */ "./node_modules/core-js/modules/es.promise.finally.js");\n/* harmony import */ var _Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Users_liangjianli_go_CasaOSNew_CasaOS_UI_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! intersection-observer */ "./node_modules/intersection-observer/intersection-observer.js");\n/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(intersection_observer__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");\n/* harmony import */ var _App_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/App.vue */ "./src/App.vue");\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/router */ "./src/router/index.js");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/store */ "./src/store/index.js");\n/* harmony import */ var _plugins_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/plugins/i18n */ "./src/plugins/i18n.js");\n/* harmony import */ var _service_api_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/service/api.js */ "./src/service/api.js");\n/* harmony import */ var buefy__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! buefy */ "./node_modules/buefy/dist/esm/index.js");\n/* harmony import */ var vue_fullscreen__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-fullscreen */ "./node_modules/vue-fullscreen/dist/vue-fullscreen.min.js");\n/* harmony import */ var vue_fullscreen__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(vue_fullscreen__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var vue2_touch_events__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! vue2-touch-events */ "./node_modules/vue2-touch-events/index.js");\n/* harmony import */ var vue2_touch_events__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(vue2_touch_events__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var vue_tour__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! vue-tour */ "./node_modules/vue-tour/dist/vue-tour.umd.js");\n/* harmony import */ var vue_tour__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(vue_tour__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var vue_socket_io_extended__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! vue-socket.io-extended */ "./node_modules/vue-socket.io-extended/dist/vue-socket.io-ext.esm.js");\n/* harmony import */ var _assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/assets/scss/app.scss */ "./src/assets/scss/app.scss");\n/* harmony import */ var _assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! vue-tour/dist/vue-tour.css */ "./node_modules/vue-tour/dist/vue-tour.css");\n/* harmony import */ var vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var v_animate_css__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! v-animate-css */ "./node_modules/v-animate-css/index.js");\n\n\n\n\n\n\n/*\n * @Author: JerryK\n * @Date: 2021-09-22 14:24:43\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-21 22:25:38\n * @Description: \n * @FilePath: \\CasaOS-UI\\src\\main.js\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar io = __webpack_require__(/*! socket.io-client */ "./node_modules/socket.io-client/lib/index.js"); // Import Styles\n\n\n\n\n\n_service_api_js__WEBPACK_IMPORTED_MODULE_11__["default"].info.getSocketPort().then(function (res) {\n var wsPort = res.data.data;\n var devIp = Object({"NODE_ENV":"prod","BASE_URL":"/ui/"}).VUE_APP_DEV_IP;\n var devPort = Object({"NODE_ENV":"prod","BASE_URL":"/ui/"}).VUE_APP_DEV_PORT;\n var localhost = document.location.host;\n var localhostName = document.location.hostname;\n var baseIp = false ? undefined : "".concat(localhostName);\n var baseURL = false ? undefined : "".concat(localhost);\n var wsURL = "ws://".concat(baseIp, ":").concat(wsPort);\n var socket = io(wsURL, {\n transports: [\'websocket\', \'polling\']\n });\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(buefy__WEBPACK_IMPORTED_MODULE_12__["default"]);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_fullscreen__WEBPACK_IMPORTED_MODULE_13___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(v_animate_css__WEBPACK_IMPORTED_MODULE_19__["default"]);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue2_touch_events__WEBPACK_IMPORTED_MODULE_14___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_tour__WEBPACK_IMPORTED_MODULE_15___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_socket_io_extended__WEBPACK_IMPORTED_MODULE_16__["default"], socket);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].config.productionTip = false;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$api = _service_api_js__WEBPACK_IMPORTED_MODULE_11__["default"];\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$baseIp = baseIp;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$baseURL = baseURL; // Create an EventBus\n\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$EventBus = new vue__WEBPACK_IMPORTED_MODULE_6__["default"]();\n new vue__WEBPACK_IMPORTED_MODULE_6__["default"]({\n router: _router__WEBPACK_IMPORTED_MODULE_8__["default"],\n i18n: _plugins_i18n__WEBPACK_IMPORTED_MODULE_10__["default"],\n store: _store__WEBPACK_IMPORTED_MODULE_9__["default"],\n render: function render(h) {\n return h(_App_vue__WEBPACK_IMPORTED_MODULE_7__["default"]);\n }\n }).$mount(\'#app\');\n});\n\n//# sourceURL=webpack:///./src/main.js?')},"./src/mixins/mixin.js":
/*!*****************************!*\
!*** ./src/mixins/mixin.js ***!
\*****************************/
-/*! exports provided: wallpaperType, mixin */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"wallpaperType\", function() { return wallpaperType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mixin\", function() { return mixin; });\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"./node_modules/core-js/modules/es.number.to-fixed.js\");\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ \"./node_modules/core-js/modules/es.string.replace.js\");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/core-js/modules/es.array.includes.js\");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/core-js/modules/es.function.name.js\");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ \"./node_modules/core-js/modules/es.object.keys.js\");\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ \"./node_modules/core-js/modules/es.array.join.js\");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/core-js/modules/es.string.includes.js\");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/core-js/modules/es.json.stringify.js\");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/has */ \"./node_modules/lodash/has.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lodash/union */ \"./node_modules/lodash/union.js\");\n/* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash_union__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! clipboard-copy */ \"./node_modules/clipboard-copy/index.js\");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_17__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2022-01-20 12:01:07\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-27 09:14:50\r\n * @Description: \r\n * @FilePath: \\CasaOS-UI\\src\\mixins\\mixin.js\r\n */\n\n\n\n\n\nvar typeMap = {\n \"image-x-generic\": ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'svg', 'tiff'],\n \"video-x-generic\": ['mkv', 'mp4', '3gp', 'avi', 'm2ts', 'webm', 'flv', 'vob', 'ts', 'mts', 'mov', 'wmv', 'rm', 'rmvb', 'asf', 'wmv', 'mpg', 'm4v', 'mpeg', 'f4v'],\n \"audio-x-generic\": ['aac', 'aiff', 'alac', 'amr', 'ape', 'flac', 'm4a', 'mp3', 'ogg', 'opus', 'wma', 'wav'],\n \"text-x-generic\": ['txt', 'log', 'pages', 'md', 'conf', 'list', 'ini'],\n \"text-css\": ['php', 'css', 'less', 'scss', 'sass', 'aspx', 'lua', 'vue', 'js', 'go', 'asp', 'bat', 'c', 'cpp', 'cs', 'json', 'py', 'perl', 'sh', 'xml', 'yaml', 'vb', 'vbs', 'sql', 'swift', 'rust', 'rs', 'jsp', 'yml'],\n \"text-html\": ['html', 'htm', 'shtml', 'shtm'],\n \"application-vnd.ms-word\": ['doc', 'docx', 'wps'],\n \"application-vnd.ms-excel\": ['xls', 'xlsx', 'csv'],\n \"application-vnd.ms-powerpoint\": ['ppt', 'pptx'],\n \"application-pdf\": ['pdf'],\n \"application-photoshop\": ['psd', 'psb'],\n \"application-illustrator\": ['ai', 'eps'],\n \"application-x-wine-extension-cpl\": ['exe'],\n \"application-apk\": ['apk'],\n \"application-x-zip\": ['zip', 'rar', '7z', 'gz', 'ace', 'xz'],\n \"application-x-cd-image\": ['iso', 'img', 'vmdk', 'raw', 'vhd'],\n \"application-x-apple\": ['dmg', 'ipa', 'pkg'],\n \"application-x-pem-key\": ['pem', 'crt', 'ca-bundle', 'p7b', 'p7s', 'der', 'cer', 'pfx', 'p12'],\n \"text-x-cmake\": ['makefile', 'cmake', 'dockerfile'],\n \"text-dockerfile\": ['dockerfile']\n};\nvar hasThumbType = ['png', 'jpg', 'jpeg', 'bmp', 'gif']; // eslint-disable-next-line no-unused-vars\n\nvar filePanelMap = {\n 'code-editor': lodash_union__WEBPACK_IMPORTED_MODULE_15___default()(typeMap['text-x-generic'], typeMap['text-css'], typeMap['text-html'], typeMap['text-x-cmake'], typeMap['text-dockerfile']),\n \"video-player\": lodash_union__WEBPACK_IMPORTED_MODULE_15___default()(typeMap['video-x-generic'], typeMap['audio-x-generic']),\n \"image-viewer\": typeMap['image-x-generic'] // \"pdf-viewer\": typeMap['application-pdf'],\n\n};\nvar wallpaperType = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'svg'];\nvar wallpaperConfig = \"wallpaper\";\nvar mixin = {\n data: function data() {\n return {\n baseUrl: \"http://\".concat(this.$baseURL, \"/v1/\")\n };\n },\n mounted: function mounted() {\n this.typeMap = typeMap;\n },\n methods: {\n /**\r\n * @description: Format size output\r\n * @param {int} bytes size value\r\n * @return {String} \r\n */\n renderSize: function renderSize(bytes) {\n var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];\n if (bytes === 0) return '0 Bytes';\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);\n if (i === 0) return \"\".concat(bytes, \" \").concat(sizes[i]);\n return \"\".concat(parseFloat((bytes / Math.pow(1024, i)).toFixed(2)), \" \").concat(sizes[i]);\n },\n\n /**\r\n * @description: Get Default Lang from browser\r\n * @return {String} lang \r\n */\n getLangFromBrowser: function getLangFromBrowser() {\n var lang = navigator.language || navigator.userLanguage;\n lang = lang.toLowerCase().replace(\"-\", \"_\");\n return lang;\n },\n\n /**\r\n * @description: Set Default Lang from browser\r\n * @param {String} lang \r\n * @return {void} \r\n */\n // \n setLang: function setLang(lang) {\n localStorage.setItem('lang', lang);\n this.$i18n.locale = lang;\n },\n\n /**\r\n * @description: Get file icon from file name\r\n * @param {Object} item \r\n * @return {Object} \r\n */\n // \n getIconFile: function getIconFile(item) {\n var isDir = false;\n\n if (lodash_has__WEBPACK_IMPORTED_MODULE_14___default()(item, 'is_dir') || lodash_has__WEBPACK_IMPORTED_MODULE_14___default()(item, \"isFolder\")) {\n isDir = item.is_dir;\n }\n\n if (isDir) {\n var folder = \"folder-default\";\n\n if (item.type == \"application\") {\n folder = \"folder-application\";\n } else if (item.type == \"usb\") {\n folder = \"folder-usb\";\n } else if ([\"sata\", \"nvme\", \"spi\", \"sas\"].includes(item.type)) {\n folder = \"folder-hdd\";\n } else if (item.type == \"home\") {\n folder = \"folder-root\";\n } else if (item.name == \"Media\") {\n folder = \"folder-video\";\n } else if (item.name == \"Downloads\") {\n folder = \"folder-download\";\n } else if (item.name == \"Documents\") {\n folder = \"folder-documents\";\n } else if (item.name == \"Gallery\") {\n folder = \"folder-pictures\";\n } else if (item.name == \"AppData\") {\n folder = \"folder-application\";\n } else {\n folder = \"folder-default\";\n }\n\n return __webpack_require__(\"./src/assets/img/filebrowser sync recursive ^\\\\.\\\\/.*\\\\.svg$\")(\"./\".concat(folder, \".svg\"));\n } else {\n var ext = this.getFileExt(item);\n var type = \"unknown\";\n Object.keys(typeMap).forEach(function (_type) {\n var extensions = typeMap[_type];\n\n if (extensions.indexOf(ext.toLowerCase()) > -1) {\n type = _type;\n }\n });\n return __webpack_require__(\"./src/assets/img/filebrowser sync recursive ^\\\\.\\\\/.*\\\\.svg$\")(\"./\".concat(type, \".svg\"));\n }\n },\n getPanelType: function getPanelType(item) {\n var ext = this.getFileExt(item);\n var type = null;\n Object.keys(filePanelMap).forEach(function (_type) {\n var extensions = filePanelMap[_type];\n\n if (extensions.indexOf(ext.toLowerCase()) > -1) {\n type = _type;\n }\n });\n return type;\n },\n getFileExt: function getFileExt(item) {\n return item.name.substring(item.name.lastIndexOf('.') + 1);\n },\n\n /**\r\n * @description: Download File\r\n * @param {Object,Array} items\r\n * @return {void} \r\n */\n downloadFile: function downloadFile(items) {\n this.$buefy.toast.open({\n message: this.$t('Download in preparation...'),\n type: 'is-light'\n });\n var url = this.getFileUrl(items);\n window.open(url, '_blank');\n },\n playVideo: function playVideo(item, player) {\n var url = player + this.getFileUrl(item);\n window.open(url, '_self');\n },\n // Get File Download URL\n getFileUrl: function getFileUrl(items) {\n var apiUrl = \"\".concat(this.baseUrl, \"file/download\");\n var path = \"\";\n var parameters = {\n token: this.$store.state.token\n };\n\n if (items.constructor === Object) {\n if (items.is_dir) {\n path = items.path;\n parameters.files = path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n } else {\n return apiUrl + items.path + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n }\n } else if (items.constructor === Array) {\n var pathArray = items.map(function (o) {\n return o.path;\n });\n path = pathArray.join(\",\");\n parameters.files = path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n }\n },\n // check if has thumb\n hasThumb: function hasThumb(item) {\n if (item.is_dir) {\n return false;\n } else {\n var ext = this.getFileExt(item);\n return hasThumbType.indexOf(ext.toLowerCase()) > -1;\n }\n },\n // Get Image Thumb URL\n getThumbUrl: function getThumbUrl(item) {\n var apiUrl = \"\".concat(this.baseUrl, \"file/image?\");\n var parameters = {\n path: item.path,\n token: this.$store.state.token,\n type: \"thumbnail\"\n };\n return apiUrl + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n },\n // Download Button Action\n download: function download() {\n this.$refs.dropDown.toggle();\n this.downloadFile(this.item);\n },\n // Copy Path\n copyPath: function copyPath() {\n this.$refs.dropDown.toggle();\n clipboard_copy__WEBPACK_IMPORTED_MODULE_16___default()(this.item.path);\n this.$buefy.toast.open({\n message: this.$t('Copied to clipboard'),\n type: 'is-success'\n });\n },\n\n /**\r\n * @description: Download File\r\n * @param {Object,Object} event item \r\n * @return {void} \r\n */\n clickItem: function clickItem(event, item) {\n var bounced = event.target.getAttribute('class').includes('mdi-dots');\n\n if (bounced) {\n return false;\n }\n\n if (item.is_dir) {\n this.$emit('gotoFolder', item.path);\n } else {\n this.$emit('showDetailModal', item);\n }\n },\n\n /**\r\n * @description: Open Context Menu\r\n * @param {Object,Object} event item \r\n * @return {void} \r\n */\n openContextMenu: function openContextMenu(e, item) {\n if (item) {\n e.cancelBubble = true;\n document.dispatchEvent(new CustomEvent('contextmenu'));\n }\n\n this.$refs.ctxMenu.open(e, item);\n },\n\n /**\r\n * @description: Copy Or Cut File\r\n * @param {String} type\r\n * @param {Object,Array} items\r\n * @return {void} \r\n */\n operate: function operate(type, items) {\n var operateObject = {\n type: type\n };\n\n if (items.constructor === Object) {\n operateObject.item = [{\n from: items.path\n }];\n } else if (items.constructor === Array) {\n operateObject.item = items.map(function (o) {\n return {\n from: o.path\n };\n });\n }\n\n this.$store.commit('changeOperateObject', operateObject);\n\n if (this.$refs.dropDown !== undefined) {\n this.$refs.dropDown.toggle();\n }\n },\n\n /**\r\n * @description: Delete File\r\n * @param {Object,Array} items\r\n * @return {void} \r\n */\n deleteItem: function deleteItem(items) {\n var _this = this;\n\n var path = \"\";\n\n if (items.constructor === Object) {\n path = [items.path];\n } else if (items.constructor === Array) {\n path = items.map(function (o) {\n return o.path;\n });\n }\n\n this.$api.file.delete(JSON.stringify(path)).then(function (res) {\n if (res.data.success === 200) {\n if (_this.$refs.dropDown !== undefined) {\n _this.$refs.dropDown.toggle();\n\n _this.$emit(\"reload\");\n }\n\n try {\n if (typeof eval(_this.reload) === \"function\") {\n _this.reload();\n }\n } catch (e) {\n console.log(\"Delete Error\");\n }\n } else {\n _this.$buefy.toast.open({\n message: res.data.message,\n type: 'is-danger'\n });\n }\n });\n },\n\n /**\r\n * @description: Set an image as wallpaper\r\n * @param {*} item\r\n * @return {*}\r\n */\n setAsWallpaper: function setAsWallpaper(item) {\n var _this2 = this;\n\n var user_id = localStorage.getItem('user_id');\n var postData = {\n path: item.path\n };\n this.$api.user.postFileImage(user_id, wallpaperConfig, postData).then(function (res) {\n if (res.data.success === 200) {\n var resData = res.data.data;\n var wallpaperData = {\n path: \"http://\" + _this2.$baseURL + resData.online_path + \"&time=\" + new Date().getTime(),\n from: \"Files\"\n };\n\n _this2.$api.user.postCustomConfig(user_id, wallpaperConfig, wallpaperData).then(function (res) {\n if (res.data.success === 200) {\n _this2.$store.commit('changeWallpaper', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n\n _this2.$buefy.toast.open({\n message: _this2.$t('Set wallpaper successfully.'),\n type: 'is-success'\n });\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t('Save failed, please try again!'),\n type: 'is-danger'\n });\n }\n });\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t('Save failed, please try again!'),\n type: 'is-danger'\n });\n }\n });\n\n if (this.$refs.dropDown !== undefined) {\n this.$refs.dropDown.toggle();\n }\n }\n },\n filters: {\n /**\r\n * @description: Format size output\r\n * @param {int} value size value\r\n * @return {String} \r\n */\n renderBps: function renderBps(value) {\n if (null == value || value == '' || value == 0) {\n return \"0 bps\";\n }\n\n var unitArr = new Array(\"bps\", \"Kbps\", \"Mbps\", \"Gbps\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\");\n var index = 0,\n srcsize = parseFloat(value);\n index = Math.floor(Math.log(srcsize) / Math.log(1024));\n var size = srcsize / Math.pow(1024, index);\n size = size.toFixed(2);\n return size + \" \" + unitArr[index];\n },\n\n /**\r\n * @description: Format size output\r\n * @param {int} value size value\r\n * @return {String} \r\n */\n renderSize: function renderSize(bytes) {\n var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];\n if (bytes === 0) return '0 Bytes';\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);\n if (i === 0) return \"\".concat(bytes, \" \").concat(sizes[i]);\n return \"\".concat(parseFloat((bytes / Math.pow(1024, i)).toFixed(2)), \" \").concat(sizes[i]);\n },\n toFahrenheit: function toFahrenheit(value) {\n return (32 + value * 1.8).toFixed(1);\n },\n formatNum: function formatNum(number) {\n return new Intl.NumberFormat().format(number);\n },\n getProgressType: function getProgressType(per) {\n if (per >= 0 && per < 80) {\n return \"is-primary\";\n } else if (per >= 80 && per < 90) {\n return \"is-warning\";\n } else {\n return \"is-danger\";\n }\n },\n getTextType: function getTextType(per) {\n if (per >= 0 && per < 80) {\n return \"has-text-success\";\n } else if (per >= 80 && per < 90) {\n return \"has-text-warning\";\n } else {\n return \"has-text-danger\";\n }\n },\n dateFmt: function dateFmt(value) {\n if (dayjs__WEBPACK_IMPORTED_MODULE_17___default()().isSame(value, 'year')) {\n return dayjs__WEBPACK_IMPORTED_MODULE_17___default()(value).format('DD/MM hh:mm');\n } else {\n return dayjs__WEBPACK_IMPORTED_MODULE_17___default()(value).format('DD/MM/YYYY hh:mm');\n }\n },\n coverType: function coverType(item) {\n return item.is_dir ? \"folder-cover\" : \"file-cover\";\n },\n iconType: function iconType(item) {\n return item.is_dir ? \"folder-icon\" : \"files-icon\";\n }\n }\n};\n\n//# sourceURL=webpack:///./src/mixins/mixin.js?")},"./src/plugins/i18n.js":
+/*! exports provided: wallpaperType, mixin */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"wallpaperType\", function() { return wallpaperType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mixin\", function() { return mixin; });\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"./node_modules/core-js/modules/es.number.to-fixed.js\");\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ \"./node_modules/core-js/modules/es.string.replace.js\");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/core-js/modules/es.array.includes.js\");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/core-js/modules/es.function.name.js\");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ \"./node_modules/core-js/modules/es.object.keys.js\");\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ \"./node_modules/core-js/modules/es.array.join.js\");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/core-js/modules/es.string.includes.js\");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/core-js/modules/es.json.stringify.js\");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/has */ \"./node_modules/lodash/has.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lodash/union */ \"./node_modules/lodash/union.js\");\n/* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash_union__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! clipboard-copy */ \"./node_modules/clipboard-copy/index.js\");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_17__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * @Author: JerryK\n * @Date: 2022-01-20 12:01:07\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-27 09:14:50\n * @Description: \n * @FilePath: \\CasaOS-UI\\src\\mixins\\mixin.js\n */\n\n\n\n\n\nvar typeMap = {\n \"image-x-generic\": ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'svg', 'tiff'],\n \"video-x-generic\": ['mkv', 'mp4', '3gp', 'avi', 'm2ts', 'webm', 'flv', 'vob', 'ts', 'mts', 'mov', 'wmv', 'rm', 'rmvb', 'asf', 'wmv', 'mpg', 'm4v', 'mpeg', 'f4v'],\n \"audio-x-generic\": ['aac', 'aiff', 'alac', 'amr', 'ape', 'flac', 'm4a', 'mp3', 'ogg', 'opus', 'wma', 'wav'],\n \"text-x-generic\": ['txt', 'log', 'pages', 'md', 'conf', 'list', 'ini'],\n \"text-css\": ['php', 'css', 'less', 'scss', 'sass', 'aspx', 'lua', 'vue', 'js', 'go', 'asp', 'bat', 'c', 'cpp', 'cs', 'json', 'py', 'perl', 'sh', 'xml', 'yaml', 'vb', 'vbs', 'sql', 'swift', 'rust', 'rs', 'jsp', 'yml'],\n \"text-html\": ['html', 'htm', 'shtml', 'shtm'],\n \"application-vnd.ms-word\": ['doc', 'docx', 'wps'],\n \"application-vnd.ms-excel\": ['xls', 'xlsx', 'csv'],\n \"application-vnd.ms-powerpoint\": ['ppt', 'pptx'],\n \"application-pdf\": ['pdf'],\n \"application-photoshop\": ['psd', 'psb'],\n \"application-illustrator\": ['ai', 'eps'],\n \"application-x-wine-extension-cpl\": ['exe'],\n \"application-apk\": ['apk'],\n \"application-x-zip\": ['zip', 'rar', '7z', 'gz', 'ace', 'xz'],\n \"application-x-cd-image\": ['iso', 'img', 'vmdk', 'raw', 'vhd'],\n \"application-x-apple\": ['dmg', 'ipa', 'pkg'],\n \"application-x-pem-key\": ['pem', 'crt', 'ca-bundle', 'p7b', 'p7s', 'der', 'cer', 'pfx', 'p12'],\n \"text-x-cmake\": ['makefile', 'cmake', 'dockerfile'],\n \"text-dockerfile\": ['dockerfile']\n};\nvar hasThumbType = ['png', 'jpg', 'jpeg', 'bmp', 'gif']; // eslint-disable-next-line no-unused-vars\n\nvar filePanelMap = {\n 'code-editor': lodash_union__WEBPACK_IMPORTED_MODULE_15___default()(typeMap['text-x-generic'], typeMap['text-css'], typeMap['text-html'], typeMap['text-x-cmake'], typeMap['text-dockerfile']),\n \"video-player\": lodash_union__WEBPACK_IMPORTED_MODULE_15___default()(typeMap['video-x-generic'], typeMap['audio-x-generic']),\n \"image-viewer\": typeMap['image-x-generic'] // \"pdf-viewer\": typeMap['application-pdf'],\n\n};\nvar wallpaperType = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'svg'];\nvar wallpaperConfig = \"wallpaper\";\nvar mixin = {\n data: function data() {\n return {\n baseUrl: \"http://\".concat(this.$baseURL, \"/v1/\")\n };\n },\n mounted: function mounted() {\n this.typeMap = typeMap;\n },\n methods: {\n /**\n * @description: Format size output\n * @param {int} bytes size value\n * @return {String} \n */\n renderSize: function renderSize(bytes) {\n var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];\n if (bytes === 0) return '0 Bytes';\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);\n if (i === 0) return \"\".concat(bytes, \" \").concat(sizes[i]);\n return \"\".concat(parseFloat((bytes / Math.pow(1024, i)).toFixed(2)), \" \").concat(sizes[i]);\n },\n\n /**\n * @description: Get Default Lang from browser\n * @return {String} lang \n */\n getLangFromBrowser: function getLangFromBrowser() {\n var lang = navigator.language || navigator.userLanguage;\n lang = lang.toLowerCase().replace(\"-\", \"_\");\n return lang;\n },\n\n /**\n * @description: Set Default Lang from browser\n * @param {String} lang \n * @return {void} \n */\n // \n setLang: function setLang(lang) {\n localStorage.setItem('lang', lang);\n this.$i18n.locale = lang;\n },\n\n /**\n * @description: Get file icon from file name\n * @param {Object} item \n * @return {Object} \n */\n // \n getIconFile: function getIconFile(item) {\n var isDir = false;\n\n if (lodash_has__WEBPACK_IMPORTED_MODULE_14___default()(item, 'is_dir') || lodash_has__WEBPACK_IMPORTED_MODULE_14___default()(item, \"isFolder\")) {\n isDir = item.is_dir;\n }\n\n if (isDir) {\n var folder = \"folder-default\";\n\n if (item.type == \"application\") {\n folder = \"folder-application\";\n } else if (item.type == \"usb\") {\n folder = \"folder-usb\";\n } else if ([\"sata\", \"nvme\", \"spi\", \"sas\"].includes(item.type)) {\n folder = \"folder-hdd\";\n } else if (item.type == \"home\") {\n folder = \"folder-root\";\n } else if (item.name == \"Media\") {\n folder = \"folder-video\";\n } else if (item.name == \"Downloads\") {\n folder = \"folder-download\";\n } else if (item.name == \"Documents\") {\n folder = \"folder-documents\";\n } else if (item.name == \"Gallery\") {\n folder = \"folder-pictures\";\n } else if (item.name == \"AppData\") {\n folder = \"folder-application\";\n } else {\n folder = \"folder-default\";\n }\n\n return __webpack_require__(\"./src/assets/img/filebrowser sync recursive ^\\\\.\\\\/.*\\\\.svg$\")(\"./\".concat(folder, \".svg\"));\n } else {\n var ext = this.getFileExt(item);\n var type = \"unknown\";\n Object.keys(typeMap).forEach(function (_type) {\n var extensions = typeMap[_type];\n\n if (extensions.indexOf(ext.toLowerCase()) > -1) {\n type = _type;\n }\n });\n return __webpack_require__(\"./src/assets/img/filebrowser sync recursive ^\\\\.\\\\/.*\\\\.svg$\")(\"./\".concat(type, \".svg\"));\n }\n },\n getPanelType: function getPanelType(item) {\n var ext = this.getFileExt(item);\n var type = null;\n Object.keys(filePanelMap).forEach(function (_type) {\n var extensions = filePanelMap[_type];\n\n if (extensions.indexOf(ext.toLowerCase()) > -1) {\n type = _type;\n }\n });\n return type;\n },\n getFileExt: function getFileExt(item) {\n return item.name.substring(item.name.lastIndexOf('.') + 1);\n },\n\n /**\n * @description: Download File\n * @param {Object,Array} items\n * @return {void} \n */\n downloadFile: function downloadFile(items) {\n this.$buefy.toast.open({\n message: this.$t('Download in preparation...'),\n type: 'is-light'\n });\n var url = this.getFileUrl(items);\n window.open(url, '_blank');\n },\n playVideo: function playVideo(item, player) {\n var url = player + this.getFileUrl(item);\n window.open(url, '_self');\n },\n // Get File Download URL\n getFileUrl: function getFileUrl(items) {\n var apiUrl = \"\".concat(this.baseUrl, \"file/download\");\n var path = \"\";\n var parameters = {\n token: this.$store.state.token\n };\n\n if (items.constructor === Object) {\n if (items.is_dir) {\n path = items.path;\n parameters.files = path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n } else {\n return apiUrl + items.path + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n }\n } else if (items.constructor === Array) {\n var pathArray = items.map(function (o) {\n return o.path;\n });\n path = pathArray.join(\",\");\n parameters.files = path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n }\n },\n // check if has thumb\n hasThumb: function hasThumb(item) {\n if (item.is_dir) {\n return false;\n } else {\n var ext = this.getFileExt(item);\n return hasThumbType.indexOf(ext.toLowerCase()) > -1;\n }\n },\n // Get Image Thumb URL\n getThumbUrl: function getThumbUrl(item) {\n var apiUrl = \"\".concat(this.baseUrl, \"file/image?\");\n var parameters = {\n path: item.path,\n token: this.$store.state.token,\n type: \"thumbnail\"\n };\n return apiUrl + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n },\n // Download Button Action\n download: function download() {\n this.$refs.dropDown.toggle();\n this.downloadFile(this.item);\n },\n // Copy Path\n copyPath: function copyPath() {\n this.$refs.dropDown.toggle();\n clipboard_copy__WEBPACK_IMPORTED_MODULE_16___default()(this.item.path);\n this.$buefy.toast.open({\n message: this.$t('Copied to clipboard'),\n type: 'is-success'\n });\n },\n\n /**\n * @description: Download File\n * @param {Object,Object} event item \n * @return {void} \n */\n clickItem: function clickItem(event, item) {\n var bounced = event.target.getAttribute('class').includes('mdi-dots');\n\n if (bounced) {\n return false;\n }\n\n if (item.is_dir) {\n this.$emit('gotoFolder', item.path);\n } else {\n this.$emit('showDetailModal', item);\n }\n },\n\n /**\n * @description: Open Context Menu\n * @param {Object,Object} event item \n * @return {void} \n */\n openContextMenu: function openContextMenu(e, item) {\n if (item) {\n e.cancelBubble = true;\n document.dispatchEvent(new CustomEvent('contextmenu'));\n }\n\n this.$refs.ctxMenu.open(e, item);\n },\n\n /**\n * @description: Copy Or Cut File\n * @param {String} type\n * @param {Object,Array} items\n * @return {void} \n */\n operate: function operate(type, items) {\n var operateObject = {\n type: type\n };\n\n if (items.constructor === Object) {\n operateObject.item = [{\n from: items.path\n }];\n } else if (items.constructor === Array) {\n operateObject.item = items.map(function (o) {\n return {\n from: o.path\n };\n });\n }\n\n this.$store.commit('changeOperateObject', operateObject);\n\n if (this.$refs.dropDown !== undefined) {\n this.$refs.dropDown.toggle();\n }\n },\n\n /**\n * @description: Delete File\n * @param {Object,Array} items\n * @return {void} \n */\n deleteItem: function deleteItem(items) {\n var _this = this;\n\n var path = \"\";\n\n if (items.constructor === Object) {\n path = [items.path];\n } else if (items.constructor === Array) {\n path = items.map(function (o) {\n return o.path;\n });\n }\n\n this.$api.file.delete(JSON.stringify(path)).then(function (res) {\n if (res.data.success === 200) {\n if (_this.$refs.dropDown !== undefined) {\n _this.$refs.dropDown.toggle();\n\n _this.$emit(\"reload\");\n }\n\n try {\n if (typeof eval(_this.reload) === \"function\") {\n _this.reload();\n }\n } catch (e) {\n console.log(\"Delete Error\");\n }\n } else {\n _this.$buefy.toast.open({\n message: res.data.message,\n type: 'is-danger'\n });\n }\n });\n },\n\n /**\n * @description: Set an image as wallpaper\n * @param {*} item\n * @return {*}\n */\n setAsWallpaper: function setAsWallpaper(item) {\n var _this2 = this;\n\n var user_id = localStorage.getItem('user_id');\n var postData = {\n path: item.path\n };\n this.$api.user.postFileImage(user_id, wallpaperConfig, postData).then(function (res) {\n if (res.data.success === 200) {\n var resData = res.data.data;\n var wallpaperData = {\n path: \"http://\" + _this2.$baseURL + resData.online_path + \"&time=\" + new Date().getTime(),\n from: \"Files\"\n };\n\n _this2.$api.user.postCustomConfig(user_id, wallpaperConfig, wallpaperData).then(function (res) {\n if (res.data.success === 200) {\n _this2.$store.commit('changeWallpaper', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n\n _this2.$buefy.toast.open({\n message: _this2.$t('Set wallpaper successfully.'),\n type: 'is-success'\n });\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t('Save failed, please try again!'),\n type: 'is-danger'\n });\n }\n });\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t('Save failed, please try again!'),\n type: 'is-danger'\n });\n }\n });\n\n if (this.$refs.dropDown !== undefined) {\n this.$refs.dropDown.toggle();\n }\n }\n },\n filters: {\n /**\n * @description: Format size output\n * @param {int} value size value\n * @return {String} \n */\n renderBps: function renderBps(value) {\n if (null == value || value == '' || value == 0) {\n return \"0 bps\";\n }\n\n var unitArr = new Array(\"bps\", \"Kbps\", \"Mbps\", \"Gbps\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\");\n var index = 0,\n srcsize = parseFloat(value);\n index = Math.floor(Math.log(srcsize) / Math.log(1024));\n var size = srcsize / Math.pow(1024, index);\n size = size.toFixed(2);\n return size + \" \" + unitArr[index];\n },\n\n /**\n * @description: Format size output\n * @param {int} value size value\n * @return {String} \n */\n renderSize: function renderSize(bytes) {\n var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];\n if (bytes === 0) return '0 Bytes';\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);\n if (i === 0) return \"\".concat(bytes, \" \").concat(sizes[i]);\n return \"\".concat(parseFloat((bytes / Math.pow(1024, i)).toFixed(2)), \" \").concat(sizes[i]);\n },\n toFahrenheit: function toFahrenheit(value) {\n return (32 + value * 1.8).toFixed(1);\n },\n formatNum: function formatNum(number) {\n return new Intl.NumberFormat().format(number);\n },\n getProgressType: function getProgressType(per) {\n if (per >= 0 && per < 80) {\n return \"is-primary\";\n } else if (per >= 80 && per < 90) {\n return \"is-warning\";\n } else {\n return \"is-danger\";\n }\n },\n getTextType: function getTextType(per) {\n if (per >= 0 && per < 80) {\n return \"has-text-success\";\n } else if (per >= 80 && per < 90) {\n return \"has-text-warning\";\n } else {\n return \"has-text-danger\";\n }\n },\n dateFmt: function dateFmt(value) {\n if (dayjs__WEBPACK_IMPORTED_MODULE_17___default()().isSame(value, 'year')) {\n return dayjs__WEBPACK_IMPORTED_MODULE_17___default()(value).format('DD/MM hh:mm');\n } else {\n return dayjs__WEBPACK_IMPORTED_MODULE_17___default()(value).format('DD/MM/YYYY hh:mm');\n }\n },\n coverType: function coverType(item) {\n return item.is_dir ? \"folder-cover\" : \"file-cover\";\n },\n iconType: function iconType(item) {\n return item.is_dir ? \"folder-icon\" : \"files-icon\";\n }\n }\n};\n\n//# sourceURL=webpack:///./src/mixins/mixin.js?")},"./src/plugins/i18n.js":
/*!*****************************!*\
!*** ./src/plugins/i18n.js ***!
\*****************************/
@@ -1130,63 +1130,63 @@
/*!*****************************!*\
!*** ./src/router/index.js ***!
\*****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");\n/* harmony import */ var vue_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-router */ "./node_modules/vue-router/dist/vue-router.esm.js");\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-28 14:36:41\r\n * @Description: \r\n * @FilePath: \\CasaOS-UI\\src\\router\\index.js\r\n */\n\n\nvue__WEBPACK_IMPORTED_MODULE_3__["default"].use(vue_router__WEBPACK_IMPORTED_MODULE_4__["default"]);\nvar routes = [{\n path: \'/login\',\n name: \'Login\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, /*! @/views/Login.vue */ "./src/views/Login.vue"));\n },\n meta: {\n requireAuth: false\n }\n}, {\n path: \'/welcome\',\n name: \'Welcome\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(7), __webpack_require__.e(13)]).then(__webpack_require__.bind(null, /*! @/views/Welcome.vue */ "./src/views/Welcome.vue"));\n },\n meta: {\n requireAuth: false\n }\n}, {\n path: \'/connect\',\n name: \'CasaConnect\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(6), __webpack_require__.e(3), __webpack_require__.e(4)]).then(__webpack_require__.bind(null, /*! @/views/CasaConnect.vue */ "./src/views/CasaConnect.vue"));\n },\n meta: {\n requireAuth: true\n }\n}, {\n path: \'/a-sharing\',\n name: \'CasaConnect1\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(6), __webpack_require__.e(3), __webpack_require__.e(4)]).then(__webpack_require__.bind(null, /*! @/views/CasaConnect.vue */ "./src/views/CasaConnect.vue"));\n },\n meta: {\n requireAuth: true\n }\n}, {\n path: \'/\',\n name: \'Home\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(7), __webpack_require__.e(2), __webpack_require__.e(5), __webpack_require__.e(10), __webpack_require__.e(3), __webpack_require__.e(9)]).then(__webpack_require__.bind(null, /*! @/views/Home.vue */ "./src/views/Home.vue"));\n },\n meta: {\n requireAuth: true\n }\n}];\nvar router = new vue_router__WEBPACK_IMPORTED_MODULE_4__["default"]({\n mode: \'hash\',\n base: "/ui/",\n routes: routes\n});\nvar originalPush = vue_router__WEBPACK_IMPORTED_MODULE_4__["default"].prototype.push;\n\nvue_router__WEBPACK_IMPORTED_MODULE_4__["default"].prototype.push = function push(location) {\n return originalPush.call(this, location).catch(function (err) {\n return err;\n });\n};\n\nrouter.beforeEach(function (to, from, next) {\n var localUser = localStorage.getItem("user_token"); //Check if have a verison string in localStorage when access home page\n\n var version = localStorage.getItem("version");\n\n if (to.path == "/" && version == null) {\n localStorage.removeItem("user_token");\n next({\n path: \'/login\'\n });\n }\n\n if (to.path == "/logout") {\n localStorage.removeItem("user_token");\n localStorage.removeItem("wallpaper");\n next({\n path: \'/login\'\n });\n }\n\n if (to.meta.requireAuth) {\n if (localUser) {\n next();\n } else {\n next({\n path: \'/login\'\n });\n }\n } else {\n if (localUser) {\n if (to.path == "/login") {\n next({\n path: \'/\'\n });\n } else {\n next();\n }\n } else {\n next();\n }\n }\n});\n/* harmony default export */ __webpack_exports__["default"] = (router);\n\n//# sourceURL=webpack:///./src/router/index.js?')},"./src/service/api.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");\n/* harmony import */ var vue_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-router */ "./node_modules/vue-router/dist/vue-router.esm.js");\n\n\n\n\n/*\n * @Author: JerryK\n * @Date: 2021-09-18 21:32:13\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-28 14:36:41\n * @Description: \n * @FilePath: \\CasaOS-UI\\src\\router\\index.js\n */\n\n\nvue__WEBPACK_IMPORTED_MODULE_3__["default"].use(vue_router__WEBPACK_IMPORTED_MODULE_4__["default"]);\nvar routes = [{\n path: \'/login\',\n name: \'Login\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, /*! @/views/Login.vue */ "./src/views/Login.vue"));\n },\n meta: {\n requireAuth: false\n }\n}, {\n path: \'/welcome\',\n name: \'Welcome\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(7), __webpack_require__.e(13)]).then(__webpack_require__.bind(null, /*! @/views/Welcome.vue */ "./src/views/Welcome.vue"));\n },\n meta: {\n requireAuth: false\n }\n}, {\n path: \'/connect\',\n name: \'CasaConnect\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(6), __webpack_require__.e(3), __webpack_require__.e(4)]).then(__webpack_require__.bind(null, /*! @/views/CasaConnect.vue */ "./src/views/CasaConnect.vue"));\n },\n meta: {\n requireAuth: true\n }\n}, {\n path: \'/a-sharing\',\n name: \'CasaConnect1\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(6), __webpack_require__.e(3), __webpack_require__.e(4)]).then(__webpack_require__.bind(null, /*! @/views/CasaConnect.vue */ "./src/views/CasaConnect.vue"));\n },\n meta: {\n requireAuth: true\n }\n}, {\n path: \'/\',\n name: \'Home\',\n hidden: true,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(7), __webpack_require__.e(2), __webpack_require__.e(5), __webpack_require__.e(10), __webpack_require__.e(3), __webpack_require__.e(9)]).then(__webpack_require__.bind(null, /*! @/views/Home.vue */ "./src/views/Home.vue"));\n },\n meta: {\n requireAuth: true\n }\n}];\nvar router = new vue_router__WEBPACK_IMPORTED_MODULE_4__["default"]({\n mode: \'hash\',\n base: "/ui/",\n routes: routes\n});\nvar originalPush = vue_router__WEBPACK_IMPORTED_MODULE_4__["default"].prototype.push;\n\nvue_router__WEBPACK_IMPORTED_MODULE_4__["default"].prototype.push = function push(location) {\n return originalPush.call(this, location).catch(function (err) {\n return err;\n });\n};\n\nrouter.beforeEach(function (to, from, next) {\n var localUser = localStorage.getItem("user_token"); //Check if have a verison string in localStorage when access home page\n\n var version = localStorage.getItem("version");\n\n if (to.path == "/" && version == null) {\n localStorage.removeItem("user_token");\n next({\n path: \'/login\'\n });\n }\n\n if (to.path == "/logout") {\n localStorage.removeItem("user_token");\n localStorage.removeItem("wallpaper");\n next({\n path: \'/login\'\n });\n }\n\n if (to.meta.requireAuth) {\n if (localUser) {\n next();\n } else {\n next({\n path: \'/login\'\n });\n }\n } else {\n if (localUser) {\n if (to.path == "/login") {\n next({\n path: \'/\'\n });\n } else {\n next();\n }\n } else {\n next();\n }\n }\n});\n/* harmony default export */ __webpack_exports__["default"] = (router);\n\n//# sourceURL=webpack:///./src/router/index.js?')},"./src/service/api.js":
/*!****************************!*\
!*** ./src/service/api.js ***!
\****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _app_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app.js */ "./src/service/app.js");\n/* harmony import */ var _disk_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./disk.js */ "./src/service/disk.js");\n/* harmony import */ var _file_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./file.js */ "./src/service/file.js");\n/* harmony import */ var _info_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./info.js */ "./src/service/info.js");\n/* harmony import */ var _sync_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sync.js */ "./src/service/sync.js");\n/* harmony import */ var _user_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./user.js */ "./src/service/user.js");\n/* harmony import */ var _person_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./person.js */ "./src/service/person.js");\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-22 23:43:04\r\n * @Description: \r\n * @FilePath: \\CasaOS-UI\\src\\service\\api.js\r\n */\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n app: _app_js__WEBPACK_IMPORTED_MODULE_0__["default"],\n info: _info_js__WEBPACK_IMPORTED_MODULE_3__["default"],\n disk: _disk_js__WEBPACK_IMPORTED_MODULE_1__["default"],\n file: _file_js__WEBPACK_IMPORTED_MODULE_2__["default"],\n user: _user_js__WEBPACK_IMPORTED_MODULE_5__["default"],\n sync: _sync_js__WEBPACK_IMPORTED_MODULE_4__["default"],\n person: _person_js__WEBPACK_IMPORTED_MODULE_6__["default"]\n});\n\n//# sourceURL=webpack:///./src/service/api.js?')},"./src/service/app.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _app_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app.js */ "./src/service/app.js");\n/* harmony import */ var _disk_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./disk.js */ "./src/service/disk.js");\n/* harmony import */ var _file_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./file.js */ "./src/service/file.js");\n/* harmony import */ var _info_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./info.js */ "./src/service/info.js");\n/* harmony import */ var _sync_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./sync.js */ "./src/service/sync.js");\n/* harmony import */ var _user_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./user.js */ "./src/service/user.js");\n/* harmony import */ var _person_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./person.js */ "./src/service/person.js");\n/*\n * @Author: JerryK\n * @Date: 2021-09-18 21:32:13\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-22 23:43:04\n * @Description: \n * @FilePath: \\CasaOS-UI\\src\\service\\api.js\n */\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n app: _app_js__WEBPACK_IMPORTED_MODULE_0__["default"],\n info: _info_js__WEBPACK_IMPORTED_MODULE_3__["default"],\n disk: _disk_js__WEBPACK_IMPORTED_MODULE_1__["default"],\n file: _file_js__WEBPACK_IMPORTED_MODULE_2__["default"],\n user: _user_js__WEBPACK_IMPORTED_MODULE_5__["default"],\n sync: _sync_js__WEBPACK_IMPORTED_MODULE_4__["default"],\n person: _person_js__WEBPACK_IMPORTED_MODULE_6__["default"]\n});\n\n//# sourceURL=webpack:///./src/service/api.js?')},"./src/service/app.js":
/*!****************************!*\
!*** ./src/service/app.js ***!
\****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-01 18:52:07\r\n * @Description: Application API\r\n * @FilePath: \\CasaOS-UI\\src\\service\\app.js\r\n */\n\nvar app = {\n //Get Install Info\n appConfig: function appConfig() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/install/config");\n },\n //Store List\n storeList: function storeList(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/list", data);\n },\n //Store App Info\n storeAppInfo: function storeAppInfo(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/appinfo/".concat(id));\n },\n //Store Category List\n storeCategoryList: function storeCategoryList() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/category");\n },\n //Check Port\n checkPort: function checkPort(port, type) {\n var data = {\n type: type\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/check/".concat(port), data);\n },\n // Get a free port\n getPort: function getPort() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/app/getport\');\n },\n // Get app Running State\n getState: function getState(id, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/state/".concat(id), data);\n },\n //Install App\n install: function install(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/app/install\', data);\n },\n // Uninstall App\n uninstall: function uninstall(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].delete("/app/uninstall/".concat(id));\n },\n //My App List\n myAppList: function myAppList(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/app/my/list\', data);\n },\n //Container info\n getContainerInfo: function getContainerInfo(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/info/".concat(id));\n },\n //Container Log\n getContainerLogs: function getContainerLogs(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/logs/".concat(id));\n },\n //Start Or Stop Or Restart A Container with ID\n startContainer: function startContainer(id, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put("/app/state/".concat(id), data);\n },\n getContainerSettingdata: function getContainerSettingdata(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/update/".concat(id, "/info"));\n },\n //Update Container Settings\n updateContainerSetting: function updateContainerSetting(id, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put("/app/update/".concat(id, "/setting"), data);\n },\n //Get all Usage\n getAppUsage: function getAppUsage() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/app/usage\');\n },\n // Get App list order\n getAppListOrder: function getAppListOrder() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/app/order\');\n },\n // Save App list order\n saveAppListOrder: function saveAppListOrder(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/app/order\', data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (app);\n\n//# sourceURL=webpack:///./src/service/app.js?')},"./src/service/disk.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\n * @Author: JerryK\n * @Date: 2021-09-18 21:32:13\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-01 18:52:07\n * @Description: Application API\n * @FilePath: \\CasaOS-UI\\src\\service\\app.js\n */\n\nvar app = {\n //Get Install Info\n appConfig: function appConfig() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/install/config");\n },\n //Store List\n storeList: function storeList(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/list", data);\n },\n //Store App Info\n storeAppInfo: function storeAppInfo(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/appinfo/".concat(id));\n },\n //Store Category List\n storeCategoryList: function storeCategoryList() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/category");\n },\n //Check Port\n checkPort: function checkPort(port, type) {\n var data = {\n type: type\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/check/".concat(port), data);\n },\n // Get a free port\n getPort: function getPort() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/app/getport\');\n },\n // Get app Running State\n getState: function getState(id, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/state/".concat(id), data);\n },\n //Install App\n install: function install(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/app/install\', data);\n },\n // Uninstall App\n uninstall: function uninstall(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].delete("/app/uninstall/".concat(id));\n },\n //My App List\n myAppList: function myAppList(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/app/my/list\', data);\n },\n //Container info\n getContainerInfo: function getContainerInfo(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/info/".concat(id));\n },\n //Container Log\n getContainerLogs: function getContainerLogs(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/logs/".concat(id));\n },\n //Start Or Stop Or Restart A Container with ID\n startContainer: function startContainer(id, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put("/app/state/".concat(id), data);\n },\n getContainerSettingdata: function getContainerSettingdata(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/app/update/".concat(id, "/info"));\n },\n //Update Container Settings\n updateContainerSetting: function updateContainerSetting(id, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put("/app/update/".concat(id, "/setting"), data);\n },\n //Get all Usage\n getAppUsage: function getAppUsage() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/app/usage\');\n },\n // Get App list order\n getAppListOrder: function getAppListOrder() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/app/order\');\n },\n // Save App list order\n saveAppListOrder: function saveAppListOrder(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/app/order\', data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (app);\n\n//# sourceURL=webpack:///./src/service/app.js?')},"./src/service/disk.js":
/*!*****************************!*\
!*** ./src/service/disk.js ***!
\*****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: JerryK\r\n * @LastEditTime: 2022-01-18 14:42:04\r\n * @Description: Disk API\r\n * @FilePath: /CasaOS-UI/src/service/disk.js\r\n */\n\nvar disk = {\n // get Path list\n diskInfo: function diskInfo() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/disk/info\');\n },\n diskList: function diskList() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/disk/list\');\n },\n addStorage: function addStorage(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/disk/storage\', data);\n },\n removeStorage: function removeStorage(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/disk/umount\', data);\n },\n formatStorage: function formatStorage(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/disk/format\', data);\n },\n // System path\n renamePath: function renamePath(oldpath, path) {\n var data = {\n oldpath: oldpath,\n newpath: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/zima/rename\', data);\n },\n // Make a new Dir\n mkdir: function mkdir(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/zima/mkdir\', data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (disk);\n\n//# sourceURL=webpack:///./src/service/disk.js?')},"./src/service/file.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\n * @Author: JerryK\n * @Date: 2021-09-18 21:32:13\n * @LastEditors: JerryK\n * @LastEditTime: 2022-01-18 14:42:04\n * @Description: Disk API\n * @FilePath: /CasaOS-UI/src/service/disk.js\n */\n\nvar disk = {\n // get Path list\n diskInfo: function diskInfo() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/disk/info\');\n },\n diskList: function diskList() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/disk/list\');\n },\n addStorage: function addStorage(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/disk/storage\', data);\n },\n removeStorage: function removeStorage(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/disk/umount\', data);\n },\n formatStorage: function formatStorage(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/disk/format\', data);\n },\n // System path\n renamePath: function renamePath(oldpath, path) {\n var data = {\n oldpath: oldpath,\n newpath: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/zima/rename\', data);\n },\n // Make a new Dir\n mkdir: function mkdir(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/zima/mkdir\', data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (disk);\n\n//# sourceURL=webpack:///./src/service/disk.js?')},"./src/service/file.js":
/*!*****************************!*\
!*** ./src/service/file.js ***!
\*****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: Please set LastEditors\r\n * @LastEditTime: 2022-06-08 19:15:22\r\n * @Description: File API\r\n * @FilePath: \\CasaOS-UI\\src\\service\\file.js\r\n */\n\nvar file = {\n /**\r\n * @description: get Path list\r\n * @param {String} path\r\n * @return {*}\r\n */\n dirPath: function dirPath(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/file/dirpath\', data);\n },\n // Rename file path\n renamePath: function renamePath(oldpath, path) {\n var data = {\n oldpath: oldpath,\n newpath: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/file/rename\', data);\n },\n // Make a new Dir\n mkdir: function mkdir(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/file/mkdir\', data);\n },\n // Create a new File\n create: function create(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/file/create\', data);\n },\n // Download File\n download: function download(path) {\n var data = {\n files: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/file/download\', data);\n },\n // Thumbnail Data\n getThumb: function getThumb(path) {\n var data = {\n path: path,\n type: "thumbnail",\n responseType: \'arraybuffer\'\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/file/image\', data);\n },\n // Update File\n update: function update(path, content) {\n var data = {\n path: path,\n content: content\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/file/update\', data);\n },\n // Copy or Move File\n operate: function operate(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/file/operate\', data);\n },\n // cancel operate\n cancel: function cancel(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].delete("/file/operate/".concat(id));\n },\n // Delete file or folder\n delete: function _delete(pathArray) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].delete(\'/file/delete\', pathArray);\n },\n // Upload File\n upload: function upload() {},\n getFileShare: function getFileShare() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/file/share\');\n },\n setFileShare: function setFileShare(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/file/share\', data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (file);\n\n//# sourceURL=webpack:///./src/service/file.js?')},"./src/service/info.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\n * @Author: JerryK\n * @Date: 2021-09-18 21:32:13\n * @LastEditors: Please set LastEditors\n * @LastEditTime: 2022-06-08 19:15:22\n * @Description: File API\n * @FilePath: \\CasaOS-UI\\src\\service\\file.js\n */\n\nvar file = {\n /**\n * @description: get Path list\n * @param {String} path\n * @return {*}\n */\n dirPath: function dirPath(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/file/dirpath\', data);\n },\n // Rename file path\n renamePath: function renamePath(oldpath, path) {\n var data = {\n oldpath: oldpath,\n newpath: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/file/rename\', data);\n },\n // Make a new Dir\n mkdir: function mkdir(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/file/mkdir\', data);\n },\n // Create a new File\n create: function create(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/file/create\', data);\n },\n // Download File\n download: function download(path) {\n var data = {\n files: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/file/download\', data);\n },\n // Thumbnail Data\n getThumb: function getThumb(path) {\n var data = {\n path: path,\n type: "thumbnail",\n responseType: \'arraybuffer\'\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/file/image\', data);\n },\n // Update File\n update: function update(path, content) {\n var data = {\n path: path,\n content: content\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/file/update\', data);\n },\n // Copy or Move File\n operate: function operate(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/file/operate\', data);\n },\n // cancel operate\n cancel: function cancel(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].delete("/file/operate/".concat(id));\n },\n // Delete file or folder\n delete: function _delete(pathArray) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].delete(\'/file/delete\', pathArray);\n },\n // Upload File\n upload: function upload() {},\n getFileShare: function getFileShare() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/file/share\');\n },\n setFileShare: function setFileShare(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/file/share\', data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (file);\n\n//# sourceURL=webpack:///./src/service/file.js?')},"./src/service/info.js":
/*!*****************************!*\
!*** ./src/service/info.js ***!
\*****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-13 19:31:31\r\n * @Description: System HardWare Info API\r\n * @FilePath: \\CasaOS-UI\\src\\service\\info.js\r\n */\n\nvar info = {\n //All Info\n utilization: function utilization() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/utilization\');\n },\n // Hardware Info\n hardwareInfo: function hardwareInfo() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'sys/hardware/info\');\n },\n //Get CasaOS Config\n systemConfig: function systemConfig() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/config\');\n },\n //Save CasaOs Config\n saveSystemConfig: function saveSystemConfig(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/sys/config\', data);\n },\n // Check Verison\n checkVersion: function checkVersion() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/version/check\');\n },\n // Get websocket port\n getSocketPort: function getSocketPort() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/socket/port\');\n },\n //Update System\n updateSystem: function updateSystem() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/sys/update\');\n },\n //ip\n getIp: function getIp() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'https://ipapi.co/json/\');\n },\n //Get CasaOS Config\n widgetsConfig: function widgetsConfig() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/widget/config\');\n },\n //Save CasaOs Config\n saveWidgetsConfig: function saveWidgetsConfig(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/sys/widget/config\', data);\n },\n // Get System logs\n systemLogs: function systemLogs() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/error/logs\');\n },\n // Get System Port\n getSystemPort: function getSystemPort() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/port\');\n },\n // Save System Port\n saveSystemPort: function saveSystemPort(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/sys/port\', data);\n },\n //Stop CasaOS\n stopCasaOS: function stopCasaOS() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/sys/stop\');\n },\n // Get Usb mount State\n getUsbMountState: function getUsbMountState() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/sys/usb/status");\n },\n // Set usb mount off\n setUsbMountOff: function setUsbMountOff() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/sys/usb/off\');\n },\n // Set usb mount on\n setUsbMountOn: function setUsbMountOn() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/sys/usb/on\');\n },\n //Check web ui Port\n checkUiPort: function checkUiPort(url) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(url);\n },\n //Get Debug Info\n getDebugInfo: function getDebugInfo() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'debug\');\n },\n // Get System state\n guideCheck: function guideCheck() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/guide/check\');\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (info);\n\n//# sourceURL=webpack:///./src/service/info.js?')},"./src/service/person.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\n * @Author: JerryK\n * @Date: 2021-09-18 21:32:13\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-13 19:31:31\n * @Description: System HardWare Info API\n * @FilePath: \\CasaOS-UI\\src\\service\\info.js\n */\n\nvar info = {\n //All Info\n utilization: function utilization() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/utilization\');\n },\n // Hardware Info\n hardwareInfo: function hardwareInfo() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'sys/hardware/info\');\n },\n //Get CasaOS Config\n systemConfig: function systemConfig() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/config\');\n },\n //Save CasaOs Config\n saveSystemConfig: function saveSystemConfig(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/sys/config\', data);\n },\n // Check Verison\n checkVersion: function checkVersion() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/version/check\');\n },\n // Get websocket port\n getSocketPort: function getSocketPort() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/socket/port\');\n },\n //Update System\n updateSystem: function updateSystem() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/sys/update\');\n },\n //ip\n getIp: function getIp() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'https://ipapi.co/json/\');\n },\n //Get CasaOS Config\n widgetsConfig: function widgetsConfig() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/widget/config\');\n },\n //Save CasaOs Config\n saveWidgetsConfig: function saveWidgetsConfig(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/sys/widget/config\', data);\n },\n // Get System logs\n systemLogs: function systemLogs() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/error/logs\');\n },\n // Get System Port\n getSystemPort: function getSystemPort() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/sys/port\');\n },\n // Save System Port\n saveSystemPort: function saveSystemPort(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/sys/port\', data);\n },\n //Stop CasaOS\n stopCasaOS: function stopCasaOS() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].post(\'/sys/stop\');\n },\n // Get Usb mount State\n getUsbMountState: function getUsbMountState() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/sys/usb/status");\n },\n // Set usb mount off\n setUsbMountOff: function setUsbMountOff() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/sys/usb/off\');\n },\n // Set usb mount on\n setUsbMountOn: function setUsbMountOn() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].put(\'/sys/usb/on\');\n },\n //Check web ui Port\n checkUiPort: function checkUiPort(url) {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(url);\n },\n //Get Debug Info\n getDebugInfo: function getDebugInfo() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'debug\');\n },\n // Get System state\n guideCheck: function guideCheck() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get(\'/guide/check\');\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (info);\n\n//# sourceURL=webpack:///./src/service/info.js?')},"./src/service/person.js":
/*!*******************************!*\
!*** ./src/service/person.js ***!
\*******************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n\n\nvar CATE = "/person";\nvar person = {\n /**************************\r\n * User\'s API \r\n **************************/\n // Add Firend\n addFriend: function addFriend(shareId) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("".concat(CATE, "/user/").concat(shareId));\n },\n // Get Friends List\n getFriendsList: function getFriendsList() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/users"));\n },\n // Edit Friend\'s Remarks\n updateFriendRemarks: function updateFriendRemarks(shareId, remarks) {\n var data = {\n token: shareId,\n remarks: remarks\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("".concat(CATE, "/remarks/").concat(shareId), data);\n },\n // Block Friend\n blockFriend: function blockFriend(shareId, block) {\n var data = {\n block: block\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("".concat(CATE, "/block/").concat(shareId), data);\n },\n // Delete Friend\n deleteFriend: function deleteFriend(shareId) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].delete("".concat(CATE, "/user/").concat(shareId));\n },\n //Get Public Server\n publicServer: function publicServer() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/public"));\n },\n\n /**************************\r\n * Files\'s API \r\n **************************/\n // get person Directory\n getDirectory: function getDirectory(shareId, path, _this) {\n var data = {\n share_id: shareId,\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/directory"), data, _this);\n },\n\n /**************************\r\n * Download API \r\n **************************/\n // Get file Download List\n getDownloadList: function getDownloadList(state) {\n var data = {\n state: state\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/list"), data);\n },\n // Download file\n downloadFile: function downloadFile(shareId, path, localPath, fileName) {\n var data = {\n share_id: shareId,\n path: path,\n local_path: localPath,\n file_name: fileName\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/file"), data);\n },\n // If download faild you can retry\n reDownload: function reDownload(fileId) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/refile/").concat(fileId));\n },\n // Delete download file records\n deleteDownloadRecord: function deleteDownloadRecord(fileId) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].delete("".concat(CATE, "/file/").concat(fileId));\n },\n\n /**************************\r\n * Host user\'s API\r\n **************************/\n // Get own share ID\n getMyShareId: function getMyShareId() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("user/shareid");\n },\n // Get own share folder or file list\n getMyShareList: function getMyShareList() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/share"));\n },\n // Update a file or folder for share list\n updateShareList: function updateShareList(pathArray) {\n var data = {\n share: JSON.stringify(pathArray)\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("".concat(CATE, "/share"), data);\n },\n // Get save path\n getSavePath: function getSavePath() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/down/dir"));\n },\n // Update save path\n updateSavePath: function updateSavePath(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("".concat(CATE, "/down/dir"), data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (person);\n\n//# sourceURL=webpack:///./src/service/person.js?')},"./src/service/service.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n\n\nvar CATE = "/person";\nvar person = {\n /**************************\n * User\'s API \n **************************/\n // Add Firend\n addFriend: function addFriend(shareId) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("".concat(CATE, "/user/").concat(shareId));\n },\n // Get Friends List\n getFriendsList: function getFriendsList() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/users"));\n },\n // Edit Friend\'s Remarks\n updateFriendRemarks: function updateFriendRemarks(shareId, remarks) {\n var data = {\n token: shareId,\n remarks: remarks\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("".concat(CATE, "/remarks/").concat(shareId), data);\n },\n // Block Friend\n blockFriend: function blockFriend(shareId, block) {\n var data = {\n block: block\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("".concat(CATE, "/block/").concat(shareId), data);\n },\n // Delete Friend\n deleteFriend: function deleteFriend(shareId) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].delete("".concat(CATE, "/user/").concat(shareId));\n },\n //Get Public Server\n publicServer: function publicServer() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/public"));\n },\n\n /**************************\n * Files\'s API \n **************************/\n // get person Directory\n getDirectory: function getDirectory(shareId, path, _this) {\n var data = {\n share_id: shareId,\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/directory"), data, _this);\n },\n\n /**************************\n * Download API \n **************************/\n // Get file Download List\n getDownloadList: function getDownloadList(state) {\n var data = {\n state: state\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/list"), data);\n },\n // Download file\n downloadFile: function downloadFile(shareId, path, localPath, fileName) {\n var data = {\n share_id: shareId,\n path: path,\n local_path: localPath,\n file_name: fileName\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/file"), data);\n },\n // If download faild you can retry\n reDownload: function reDownload(fileId) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/refile/").concat(fileId));\n },\n // Delete download file records\n deleteDownloadRecord: function deleteDownloadRecord(fileId) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].delete("".concat(CATE, "/file/").concat(fileId));\n },\n\n /**************************\n * Host user\'s API\n **************************/\n // Get own share ID\n getMyShareId: function getMyShareId() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("user/shareid");\n },\n // Get own share folder or file list\n getMyShareList: function getMyShareList() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/share"));\n },\n // Update a file or folder for share list\n updateShareList: function updateShareList(pathArray) {\n var data = {\n share: JSON.stringify(pathArray)\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("".concat(CATE, "/share"), data);\n },\n // Get save path\n getSavePath: function getSavePath() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("".concat(CATE, "/down/dir"));\n },\n // Update save path\n updateSavePath: function updateSavePath(path) {\n var data = {\n path: path\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("".concat(CATE, "/down/dir"), data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (person);\n\n//# sourceURL=webpack:///./src/service/person.js?')},"./src/service/service.js":
/*!********************************!*\
!*** ./src/service/service.js ***!
\********************************/
-/*! exports provided: api */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "api", function() { return api; });\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/router */ "./src/router/index.js");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/store */ "./src/store/index.js");\n\n\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-28 09:32:59\r\n * @Description: \r\n * @FilePath: \\CasaOS-UI\\src\\service\\service.js\r\n */\n\n\n\n // Set Post Headers\n\naxios__WEBPACK_IMPORTED_MODULE_5___default.a.defaults.headers.post[\'Content-Type\'] = \'application/x-www-form-urlencoded;charset=UTF-8\';\naxios__WEBPACK_IMPORTED_MODULE_5___default.a.defaults.withCredentials = false;\n\nif (false) {} else {\n axios__WEBPACK_IMPORTED_MODULE_5___default.a.defaults.baseURL = "/v1";\n} //Create a axios instance, And set timeout to 30s\n\n\nvar instance = axios__WEBPACK_IMPORTED_MODULE_5___default.a.create({\n timeout: 60000\n});\n\nvar getLangFromBrowser = function getLangFromBrowser() {\n var lang = navigator.language || navigator.userLanguage;\n lang = lang.toLowerCase().replace("-", "_");\n return lang;\n};\n\nvar getInitLang = function getInitLang() {\n var lang = localStorage.getItem(\'lang\') || getLangFromBrowser();\n return lang;\n}; // Interception before request initiation\n\n\ninstance.interceptors.request.use(function (config) {\n var token = \'\';\n\n if (localStorage.getItem("user_token")) {\n token = localStorage.getItem("user_token");\n }\n\n config.headers.Authorization = token;\n config.headers.common["Language"] = getInitLang();\n _store__WEBPACK_IMPORTED_MODULE_8__["default"].commit(\'setToken\', token);\n return config;\n}, function (error) {\n // Do something with request error\n return Promise.reject(error);\n}); // Response interception\n\ninstance.interceptors.response.use(function (response) {\n return response;\n}, function (error) {\n if (error.response) {\n switch (error.response.status) {\n case 401:\n localStorage.removeItem(\'user_token\'); //Maybe the token is expired, clear it\n\n _router__WEBPACK_IMPORTED_MODULE_7__["default"].replace({\n //Jump to the login page\n path: \'/login\'\n });\n break;\n\n case 404:\n _store__WEBPACK_IMPORTED_MODULE_8__["default"].commit(\'setServiceError\', true);\n break;\n\n case 500:\n break;\n }\n } else {\n _store__WEBPACK_IMPORTED_MODULE_8__["default"].commit(\'setServiceError\', true);\n }\n\n return Promise.reject(error);\n});\nvar CancelToken = axios__WEBPACK_IMPORTED_MODULE_5___default.a.CancelToken; // Wrapping of axios by request type\n\nvar api = {\n get: function get(url, data, _this) {\n if (_this) {\n return instance.get(url, {\n params: data,\n cancelToken: new CancelToken(function executor(c) {\n _this.cancelRequest = c;\n })\n });\n } else {\n return instance.get(url, {\n params: data\n });\n }\n },\n post: function post(url, data) {\n return instance.post(url, this._processData(url, data));\n },\n put: function put(url, data) {\n return instance.put(url, this._processData(url, data));\n },\n delete: function _delete(url, data) {\n return instance.delete(url, {\n data: data\n });\n },\n _processData: function _processData(url, data) {\n var isJSON = url.indexOf("setting") > 0 || url.indexOf("install") > 0 || url.indexOf("sys") > 0 || url.indexOf("file") > 0 || url.indexOf("user") > 0;\n var payload, contentType;\n\n if (isJSON) {\n contentType = \'application/json\';\n payload = JSON.stringify(data);\n } else {\n contentType = \'application/x-www-form-urlencoded;charset=UTF-8\';\n payload = qs__WEBPACK_IMPORTED_MODULE_6___default.a.stringify(data);\n }\n\n axios__WEBPACK_IMPORTED_MODULE_5___default.a.defaults.headers.post[\'Content-Type\'] = contentType;\n return payload;\n }\n};\n\n\n//# sourceURL=webpack:///./src/service/service.js?')},"./src/service/sync.js":
+/*! exports provided: api */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "api", function() { return api; });\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/router */ "./src/router/index.js");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/store */ "./src/store/index.js");\n\n\n\n\n\n\n/*\n * @Author: JerryK\n * @Date: 2021-09-18 21:32:13\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-28 09:32:59\n * @Description: \n * @FilePath: \\CasaOS-UI\\src\\service\\service.js\n */\n\n\n\n // Set Post Headers\n\naxios__WEBPACK_IMPORTED_MODULE_5___default.a.defaults.headers.post[\'Content-Type\'] = \'application/x-www-form-urlencoded;charset=UTF-8\';\naxios__WEBPACK_IMPORTED_MODULE_5___default.a.defaults.withCredentials = false;\n\nif (false) {} else {\n axios__WEBPACK_IMPORTED_MODULE_5___default.a.defaults.baseURL = "/v1";\n} //Create a axios instance, And set timeout to 30s\n\n\nvar instance = axios__WEBPACK_IMPORTED_MODULE_5___default.a.create({\n timeout: 60000\n});\n\nvar getLangFromBrowser = function getLangFromBrowser() {\n var lang = navigator.language || navigator.userLanguage;\n lang = lang.toLowerCase().replace("-", "_");\n return lang;\n};\n\nvar getInitLang = function getInitLang() {\n var lang = localStorage.getItem(\'lang\') || getLangFromBrowser();\n return lang;\n}; // Interception before request initiation\n\n\ninstance.interceptors.request.use(function (config) {\n var token = \'\';\n\n if (localStorage.getItem("user_token")) {\n token = localStorage.getItem("user_token");\n }\n\n config.headers.Authorization = token;\n config.headers.common["Language"] = getInitLang();\n _store__WEBPACK_IMPORTED_MODULE_8__["default"].commit(\'setToken\', token);\n return config;\n}, function (error) {\n // Do something with request error\n return Promise.reject(error);\n}); // Response interception\n\ninstance.interceptors.response.use(function (response) {\n return response;\n}, function (error) {\n if (error.response) {\n switch (error.response.status) {\n case 401:\n localStorage.removeItem(\'user_token\'); //Maybe the token is expired, clear it\n\n _router__WEBPACK_IMPORTED_MODULE_7__["default"].replace({\n //Jump to the login page\n path: \'/login\'\n });\n break;\n\n case 404:\n _store__WEBPACK_IMPORTED_MODULE_8__["default"].commit(\'setServiceError\', true);\n break;\n\n case 500:\n break;\n }\n } else {\n _store__WEBPACK_IMPORTED_MODULE_8__["default"].commit(\'setServiceError\', true);\n }\n\n return Promise.reject(error);\n});\nvar CancelToken = axios__WEBPACK_IMPORTED_MODULE_5___default.a.CancelToken; // Wrapping of axios by request type\n\nvar api = {\n get: function get(url, data, _this) {\n if (_this) {\n return instance.get(url, {\n params: data,\n cancelToken: new CancelToken(function executor(c) {\n _this.cancelRequest = c;\n })\n });\n } else {\n return instance.get(url, {\n params: data\n });\n }\n },\n post: function post(url, data) {\n return instance.post(url, this._processData(url, data));\n },\n put: function put(url, data) {\n return instance.put(url, this._processData(url, data));\n },\n delete: function _delete(url, data) {\n return instance.delete(url, {\n data: data\n });\n },\n _processData: function _processData(url, data) {\n var isJSON = url.indexOf("setting") > 0 || url.indexOf("install") > 0 || url.indexOf("sys") > 0 || url.indexOf("file") > 0 || url.indexOf("user") > 0;\n var payload, contentType;\n\n if (isJSON) {\n contentType = \'application/json\';\n payload = JSON.stringify(data);\n } else {\n contentType = \'application/x-www-form-urlencoded;charset=UTF-8\';\n payload = qs__WEBPACK_IMPORTED_MODULE_6___default.a.stringify(data);\n }\n\n axios__WEBPACK_IMPORTED_MODULE_5___default.a.defaults.headers.post[\'Content-Type\'] = contentType;\n return payload;\n }\n};\n\n\n//# sourceURL=webpack:///./src/service/service.js?')},"./src/service/sync.js":
/*!*****************************!*\
!*** ./src/service/sync.js ***!
\*****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-11-11 14:40:38\r\n * @LastEditors: JerryK\r\n * @LastEditTime: 2021-11-24 16:20:12\r\n * @Description: \r\n * @FilePath: /CasaOS-UI/src/service/sync.js\r\n */\n\nvar sync = {\n //Configs\n getConfig: function getConfig() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/sync/config");\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (sync);\n\n//# sourceURL=webpack:///./src/service/sync.js?')},"./src/service/user.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n/*\n * @Author: JerryK\n * @Date: 2021-11-11 14:40:38\n * @LastEditors: JerryK\n * @LastEditTime: 2021-11-24 16:20:12\n * @Description: \n * @FilePath: /CasaOS-UI/src/service/sync.js\n */\n\nvar sync = {\n //Configs\n getConfig: function getConfig() {\n return _service_js__WEBPACK_IMPORTED_MODULE_0__["api"].get("/sync/config");\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (sync);\n\n//# sourceURL=webpack:///./src/service/sync.js?')},"./src/service/user.js":
/*!*****************************!*\
!*** ./src/service/user.js ***!
\*****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-25 11:43:30\r\n * @Description: User API\r\n * @FilePath: \\CasaOS-UI\\src\\service\\user.js\r\n */\n\nvar user = {\n // Get All User Name\n getAllUserName: function getAllUserName() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("/user/all/name");\n },\n //login\n login: function login(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/login", data);\n },\n // Create UserName and Password\n createUsernameAndPaword: function createUsernameAndPaword(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/setusernamepwd", data);\n },\n // Change User Avatar\n changeAvatar: function changeAvatar(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/changhead", data);\n },\n // Change UserName\n changeUserName: function changeUserName(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("/user/username", data);\n },\n // Change User Password\n changePassword: function changePassword(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("/user/password", data);\n },\n // Get user info\n getUserInfo: function getUserInfo(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("/user/info/".concat(id));\n },\n // Change User Info\n changeUserInfo: function changeUserInfo(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post(\'/user/changuserinfo\', data);\n },\n // Edit User nickname\n setNickname: function setNickname(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put(\'/user/nick\', data);\n },\n // Set User Desc\n setDesc: function setDesc(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put(\'/user/desc\', data);\n },\n // Get Self Token\n getPrivateID: function getPrivateID() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get(\'/user/token\');\n },\n // Edit my nick name\n updateMyNick: function updateMyNick(nickname) {\n var data = {\n name: nickname\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("/user/nick", data);\n },\n // Modify user person information\n personInfo: function personInfo(nickname, description) {\n var data = {\n nick_name: nickname,\n description: description\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/person/info", data);\n },\n getCustomConfig: function getCustomConfig(id, key) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("/user/custom/".concat(id, "/").concat(key));\n },\n postCustomConfig: function postCustomConfig(id, key, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/custom/".concat(id, "/").concat(key), data);\n },\n deleteCustomConfig: function deleteCustomConfig(id, key) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].delete("/user/custom/".concat(id, "/").concat(key));\n },\n postFileImage: function postFileImage(id, key, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/file/image/".concat(id, "/").concat(key), data);\n },\n deletePostImage: function deletePostImage(id, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].delete("/user/image/".concat(id), data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (user);\n\n//# sourceURL=webpack:///./src/service/user.js?')},"./src/store/actions.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _service_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./service.js */ "./src/service/service.js");\n\n\n/*\n * @Author: JerryK\n * @Date: 2021-09-18 21:32:13\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-25 11:43:30\n * @Description: User API\n * @FilePath: \\CasaOS-UI\\src\\service\\user.js\n */\n\nvar user = {\n // Get All User Name\n getAllUserName: function getAllUserName() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("/user/all/name");\n },\n //login\n login: function login(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/login", data);\n },\n // Create UserName and Password\n createUsernameAndPaword: function createUsernameAndPaword(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/setusernamepwd", data);\n },\n // Change User Avatar\n changeAvatar: function changeAvatar(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/changhead", data);\n },\n // Change UserName\n changeUserName: function changeUserName(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("/user/username", data);\n },\n // Change User Password\n changePassword: function changePassword(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("/user/password", data);\n },\n // Get user info\n getUserInfo: function getUserInfo(id) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("/user/info/".concat(id));\n },\n // Change User Info\n changeUserInfo: function changeUserInfo(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post(\'/user/changuserinfo\', data);\n },\n // Edit User nickname\n setNickname: function setNickname(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put(\'/user/nick\', data);\n },\n // Set User Desc\n setDesc: function setDesc(data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put(\'/user/desc\', data);\n },\n // Get Self Token\n getPrivateID: function getPrivateID() {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get(\'/user/token\');\n },\n // Edit my nick name\n updateMyNick: function updateMyNick(nickname) {\n var data = {\n name: nickname\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].put("/user/nick", data);\n },\n // Modify user person information\n personInfo: function personInfo(nickname, description) {\n var data = {\n nick_name: nickname,\n description: description\n };\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/person/info", data);\n },\n getCustomConfig: function getCustomConfig(id, key) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].get("/user/custom/".concat(id, "/").concat(key));\n },\n postCustomConfig: function postCustomConfig(id, key, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/custom/".concat(id, "/").concat(key), data);\n },\n deleteCustomConfig: function deleteCustomConfig(id, key) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].delete("/user/custom/".concat(id, "/").concat(key));\n },\n postFileImage: function postFileImage(id, key, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].post("/user/file/image/".concat(id, "/").concat(key), data);\n },\n deletePostImage: function deletePostImage(id, data) {\n return _service_js__WEBPACK_IMPORTED_MODULE_1__["api"].delete("/user/image/".concat(id), data);\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (user);\n\n//# sourceURL=webpack:///./src/service/user.js?')},"./src/store/actions.js":
/*!******************************!*\
!*** ./src/store/actions.js ***!
\******************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/*\r\n * @Author: Jerryk [email protected]\r\n * @Date: 2022-06-02 19:50:08\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-02 19:50:24\r\n * @FilePath: \\CasaOS-UI\\src\\store\\actions.js\r\n * @Description: \r\n * \r\n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \r\n */\nvar actions = {};\n/* harmony default export */ __webpack_exports__["default"] = (actions);\n\n//# sourceURL=webpack:///./src/store/actions.js?')},"./src/store/getters.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/*\n * @Author: Jerryk [email protected]\n * @Date: 2022-06-02 19:50:08\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-02 19:50:24\n * @FilePath: \\CasaOS-UI\\src\\store\\actions.js\n * @Description: \n * \n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \n */\nvar actions = {};\n/* harmony default export */ __webpack_exports__["default"] = (actions);\n\n//# sourceURL=webpack:///./src/store/actions.js?')},"./src/store/getters.js":
/*!******************************!*\
!*** ./src/store/getters.js ***!
\******************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/*\r\n * @Author: Jerryk [email protected]\r\n * @Date: 2022-06-02 19:49:06\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-02 19:49:18\r\n * @FilePath: \\CasaOS-UI\\src\\store\\getter.js\r\n * @Description: \r\n * \r\n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \r\n */\nvar getters = {};\n/* harmony default export */ __webpack_exports__["default"] = (getters);\n\n//# sourceURL=webpack:///./src/store/getters.js?')},"./src/store/index.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/*\n * @Author: Jerryk [email protected]\n * @Date: 2022-06-02 19:49:06\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-02 19:49:18\n * @FilePath: \\CasaOS-UI\\src\\store\\getter.js\n * @Description: \n * \n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \n */\nvar getters = {};\n/* harmony default export */ __webpack_exports__["default"] = (getters);\n\n//# sourceURL=webpack:///./src/store/getters.js?')},"./src/store/index.js":
/*!****************************!*\
!*** ./src/store/index.js ***!
\****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./state */ "./src/store/state.js");\n/* harmony import */ var _getters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getters */ "./src/store/getters.js");\n/* harmony import */ var _mutations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mutations */ "./src/store/mutations.js");\n/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./actions */ "./src/store/actions.js");\n/*\r\n * @Author: Jerryk [email protected]\r\n * @Date: 2022-03-02 22:48:28\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-02 19:54:35\r\n * @FilePath: \\CasaOS-UI\\src\\store\\index.js\r\n * @Description: \r\n * \r\n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \r\n */\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__["default"].use(vuex__WEBPACK_IMPORTED_MODULE_1__["default"]);\n/* harmony default export */ __webpack_exports__["default"] = (new vuex__WEBPACK_IMPORTED_MODULE_1__["default"].Store({\n state: _state__WEBPACK_IMPORTED_MODULE_2__["default"],\n getters: _getters__WEBPACK_IMPORTED_MODULE_3__["default"],\n mutations: _mutations__WEBPACK_IMPORTED_MODULE_4__["default"],\n actions: _actions__WEBPACK_IMPORTED_MODULE_5__["default"]\n}));\n\n//# sourceURL=webpack:///./src/store/index.js?')},"./src/store/mutations.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./state */ "./src/store/state.js");\n/* harmony import */ var _getters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getters */ "./src/store/getters.js");\n/* harmony import */ var _mutations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mutations */ "./src/store/mutations.js");\n/* harmony import */ var _actions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./actions */ "./src/store/actions.js");\n/*\n * @Author: Jerryk [email protected]\n * @Date: 2022-03-02 22:48:28\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-02 19:54:35\n * @FilePath: \\CasaOS-UI\\src\\store\\index.js\n * @Description: \n * \n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \n */\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_0__["default"].use(vuex__WEBPACK_IMPORTED_MODULE_1__["default"]);\n/* harmony default export */ __webpack_exports__["default"] = (new vuex__WEBPACK_IMPORTED_MODULE_1__["default"].Store({\n state: _state__WEBPACK_IMPORTED_MODULE_2__["default"],\n getters: _getters__WEBPACK_IMPORTED_MODULE_3__["default"],\n mutations: _mutations__WEBPACK_IMPORTED_MODULE_4__["default"],\n actions: _actions__WEBPACK_IMPORTED_MODULE_5__["default"]\n}));\n\n//# sourceURL=webpack:///./src/store/index.js?')},"./src/store/mutations.js":
/*!********************************!*\
!*** ./src/store/mutations.js ***!
\********************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/*\r\n * @Author: Jerryk [email protected]\r\n * @Date: 2022-06-02 19:49:36\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-28 14:41:25\r\n * @FilePath: \\CasaOS-UI\\src\\store\\mutations.js\r\n * @Description: \r\n * \r\n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \r\n */\nvar mutations = {\n setToken: function setToken(state, val) {\n state.token = val;\n },\n setServiceError: function setServiceError(state, val) {\n state.serviceError = val;\n },\n changeUserInfo: function changeUserInfo(state, val) {\n state.userinfo = val;\n },\n changeSideBarState: function changeSideBarState(state) {\n state.sidebarOpen = !state.sidebarOpen;\n },\n closeSideBar: function closeSideBar(state) {\n state.sidebarOpen = false;\n },\n changeSyncthingInfo: function changeSyncthingInfo(state, val) {\n state.syncthingKey = val.key;\n state.syncthingPort = val.port;\n },\n // System Config\n changeSearchEngine: function changeSearchEngine(state, val) {\n state.searchEngine = val;\n },\n changeSearchEngineSwitch: function changeSearchEngineSwitch(state, val) {\n state.searchEngineSwitch = val;\n },\n changeRecommendSwitch: function changeRecommendSwitch(state, val) {\n state.recommendSwitch = val;\n },\n changeSiteLoading: function changeSiteLoading(state) {\n state.siteLoading = false;\n },\n changeInitialization: function changeInitialization(state, val) {\n state.needInitialization = val;\n },\n changeHardwareInfo: function changeHardwareInfo(state, val) {\n state.hardwareInfo = val;\n },\n changePasteFiles: function changePasteFiles(state, val) {\n state.pasteFiles = val;\n },\n changeOperateObject: function changeOperateObject(state, val) {\n state.operateObject = val;\n },\n changeCurrentPath: function changeCurrentPath(state, val) {\n state.currentPath = val;\n },\n changeViewGird: function changeViewGird(state, val) {\n state.isViewGird = val;\n },\n changeShareViewGird: function changeShareViewGird(state, val) {\n state.isShareViewGird = val;\n },\n changeCurrentSharePath: function changeCurrentSharePath(state, val) {\n state.currentSharePath = val;\n },\n // Set if isMobile or not\n setIsMobile: function setIsMobile(state, val) {\n state.isMobile = val;\n },\n // Set new Wallpaper Object\n changeWallpaper: function changeWallpaper(state, val) {\n localStorage.setItem(\'wallpaper\', val.path);\n state.wallpaperObject = val;\n },\n setDefaultWallpaper: function setDefaultWallpaper(state) {\n state.wallpaperObject = {\n path: __webpack_require__(/*! @/assets/background/default_wallpaper.jpg */ "./src/assets/background/default_wallpaper.jpg"),\n from: "Built-in" //Built-in, Upload, Files\n\n };\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (mutations);\n\n//# sourceURL=webpack:///./src/store/mutations.js?')},"./src/store/state.js":
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/*\n * @Author: Jerryk [email protected]\n * @Date: 2022-06-02 19:49:36\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-28 14:41:25\n * @FilePath: \\CasaOS-UI\\src\\store\\mutations.js\n * @Description: \n * \n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \n */\nvar mutations = {\n setToken: function setToken(state, val) {\n state.token = val;\n },\n setServiceError: function setServiceError(state, val) {\n state.serviceError = val;\n },\n changeUserInfo: function changeUserInfo(state, val) {\n state.userinfo = val;\n },\n changeSideBarState: function changeSideBarState(state) {\n state.sidebarOpen = !state.sidebarOpen;\n },\n closeSideBar: function closeSideBar(state) {\n state.sidebarOpen = false;\n },\n changeSyncthingInfo: function changeSyncthingInfo(state, val) {\n state.syncthingKey = val.key;\n state.syncthingPort = val.port;\n },\n // System Config\n changeSearchEngine: function changeSearchEngine(state, val) {\n state.searchEngine = val;\n },\n changeSearchEngineSwitch: function changeSearchEngineSwitch(state, val) {\n state.searchEngineSwitch = val;\n },\n changeRecommendSwitch: function changeRecommendSwitch(state, val) {\n state.recommendSwitch = val;\n },\n changeSiteLoading: function changeSiteLoading(state) {\n state.siteLoading = false;\n },\n changeInitialization: function changeInitialization(state, val) {\n state.needInitialization = val;\n },\n changeHardwareInfo: function changeHardwareInfo(state, val) {\n state.hardwareInfo = val;\n },\n changePasteFiles: function changePasteFiles(state, val) {\n state.pasteFiles = val;\n },\n changeOperateObject: function changeOperateObject(state, val) {\n state.operateObject = val;\n },\n changeCurrentPath: function changeCurrentPath(state, val) {\n state.currentPath = val;\n },\n changeViewGird: function changeViewGird(state, val) {\n state.isViewGird = val;\n },\n changeShareViewGird: function changeShareViewGird(state, val) {\n state.isShareViewGird = val;\n },\n changeCurrentSharePath: function changeCurrentSharePath(state, val) {\n state.currentSharePath = val;\n },\n // Set if isMobile or not\n setIsMobile: function setIsMobile(state, val) {\n state.isMobile = val;\n },\n // Set new Wallpaper Object\n changeWallpaper: function changeWallpaper(state, val) {\n localStorage.setItem(\'wallpaper\', val.path);\n state.wallpaperObject = val;\n },\n setDefaultWallpaper: function setDefaultWallpaper(state) {\n state.wallpaperObject = {\n path: __webpack_require__(/*! @/assets/background/default_wallpaper.jpg */ "./src/assets/background/default_wallpaper.jpg"),\n from: "Built-in" //Built-in, Upload, Files\n\n };\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (mutations);\n\n//# sourceURL=webpack:///./src/store/mutations.js?')},"./src/store/state.js":
/*!****************************!*\
!*** ./src/store/state.js ***!
\****************************/
-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/*\r\n * @Author: Jerryk [email protected]\r\n * @Date: 2022-06-02 19:48:26\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-06-28 14:16:20\r\n * @FilePath: \\CasaOS-UI\\src\\store\\state.js\r\n * @Description: \r\n * \r\n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \r\n */\nvar state = {\n token: "",\n serviceError: false,\n userinfo: {},\n sidebarOpen: false,\n syncthingKey: \'\',\n syncthingPort: \'\',\n // System Config\n searchEngine: \'\',\n searchEngineSwitch: true,\n recommendSwitch: true,\n siteLoading: true,\n needInitialization: false,\n hardwareInfo: {},\n isMobile: false,\n // Files\n pasteFiles: "",\n operateObject: null,\n currentPath: "",\n isViewGird: true,\n // Conenct\n isShareViewGird: true,\n currentSharePath: "",\n // Wallpaper\n wallpaperObject: {\n path: __webpack_require__(/*! @/assets/background/default_wallpaper.jpg */ "./src/assets/background/default_wallpaper.jpg"),\n from: "Built-in" //Built-in, Upload, Files\n\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (state);\n\n//# sourceURL=webpack:///./src/store/state.js?')},0:
+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/*\n * @Author: Jerryk [email protected]\n * @Date: 2022-06-02 19:48:26\n * @LastEditors: Jerryk [email protected]\n * @LastEditTime: 2022-06-28 14:16:20\n * @FilePath: \\CasaOS-UI\\src\\store\\state.js\n * @Description: \n * \n * Copyright (c) 2022 by IceWhale, All Rights Reserved. \n */\nvar state = {\n token: "",\n serviceError: false,\n userinfo: {},\n sidebarOpen: false,\n syncthingKey: \'\',\n syncthingPort: \'\',\n // System Config\n searchEngine: \'\',\n searchEngineSwitch: true,\n recommendSwitch: true,\n siteLoading: true,\n needInitialization: false,\n hardwareInfo: {},\n isMobile: false,\n // Files\n pasteFiles: "",\n operateObject: null,\n currentPath: "",\n isViewGird: true,\n // Conenct\n isShareViewGird: true,\n currentSharePath: "",\n // Wallpaper\n wallpaperObject: {\n path: __webpack_require__(/*! @/assets/background/default_wallpaper.jpg */ "./src/assets/background/default_wallpaper.jpg"),\n from: "Built-in" //Built-in, Upload, Files\n\n }\n};\n/* harmony default export */ __webpack_exports__["default"] = (state);\n\n//# sourceURL=webpack:///./src/store/state.js?')},0:
/*!***************************!*\
!*** multi ./src/main.js ***!
\***************************/