From 3dc7ba441f6c76c0fee0fc97dced79e9803c8efb Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 11 Aug 2022 15:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../@default/settings/ip-library/index.html | 36 ------------------- .../@default/settings/ip-library/index.js | 24 ------------- .../settings/ip-library/uploadPopup.html | 26 -------------- .../settings/ip-library/uploadPopup.js | 28 --------------- 4 files changed, 114 deletions(-) delete mode 100644 web/views/@default/settings/ip-library/index.html delete mode 100644 web/views/@default/settings/ip-library/index.js delete mode 100644 web/views/@default/settings/ip-library/uploadPopup.html delete mode 100644 web/views/@default/settings/ip-library/uploadPopup.js diff --git a/web/views/@default/settings/ip-library/index.html b/web/views/@default/settings/ip-library/index.html deleted file mode 100644 index 29dfe2a4..00000000 --- a/web/views/@default/settings/ip-library/index.html +++ /dev/null @@ -1,36 +0,0 @@ -{$layout} - - - {{type.name}} - | - [上传] - - -

暂时还没有上传的IP库,系统会使用自身内置的IP库。

-
-
- - - - - - - - - - - - - - - -
文件名文件尺寸上传时间操作
- {{library.file.filename}} - - - - {{library.file.sizeMB}}MB - - - {{library.createdTime}} - 下载   删除 -
-
\ No newline at end of file diff --git a/web/views/@default/settings/ip-library/index.js b/web/views/@default/settings/ip-library/index.js deleted file mode 100644 index 9b46ec4a..00000000 --- a/web/views/@default/settings/ip-library/index.js +++ /dev/null @@ -1,24 +0,0 @@ -Tea.context(function () { - this.upload = function () { - teaweb.popup("/settings/ip-library/uploadPopup", { - callback: function () { - teaweb.success("上传成功", function () { - teaweb.reload() - }) - } - }) - } - - this.deleteLibrary = function (libraryId) { - let that = this - teaweb.confirm("确定要删除此IP库吗?", function () { - that.$post(".delete") - .params({ - "libraryId": libraryId - }) - .success(function () { - teaweb.reload() - }) - }) - } -}) \ No newline at end of file diff --git a/web/views/@default/settings/ip-library/uploadPopup.html b/web/views/@default/settings/ip-library/uploadPopup.html deleted file mode 100644 index b3363608..00000000 --- a/web/views/@default/settings/ip-library/uploadPopup.html +++ /dev/null @@ -1,26 +0,0 @@ -{$layout "layout_popup"} - -

上传IP库

- -
- - - - - - - - - -
IP库类型 * - -

{{selectedTypeDescription}}

-
选择IP库文件 * - -

请确认IP库文件格式符合IP库类型,否则将导致无法查询IP信息等严重后果。

-
- - -
\ No newline at end of file diff --git a/web/views/@default/settings/ip-library/uploadPopup.js b/web/views/@default/settings/ip-library/uploadPopup.js deleted file mode 100644 index 6d259683..00000000 --- a/web/views/@default/settings/ip-library/uploadPopup.js +++ /dev/null @@ -1,28 +0,0 @@ -Tea.context(function () { - this.isRequesting = false - this.selectedTypeCode = this.types[0].code - this.selectedTypeDescription = this.types[0].description - this.selectedTypeExt = this.types[0].ext - - this.success = NotifyPopup - - this.before = function () { - this.isRequesting = true - } - - this.done = function () { - this.isRequesting = false - } - - this.changeType = function () { - let that = this - let selectedType = this.types.$find(function (k, v) { - return v.code == that.selectedTypeCode - }) - if (selectedType == null) { - return - } - this.selectedTypeDescription = selectedType.description - this.selectedTypeExt = selectedType.ext - } -}) \ No newline at end of file