diff --git a/docs/assets/js/common.js b/docs/assets/js/common.js
index 704eb5f..7e6c840 100644
--- a/docs/assets/js/common.js
+++ b/docs/assets/js/common.js
@@ -58,7 +58,7 @@ const ComponentSystem = {
try {
component.app.unmount()
} catch (err) {
- console.error('ComponentSystem: unmount previous app error', err)
+ console.error('组件卸载失败', err)
}
component.app = null
}
@@ -126,7 +126,7 @@ const ComponentSystem = {
try {
component.app.unmount()
} catch (err) {
- console.error('ComponentSystem: unmount on reinitialize error', err)
+ console.error('组件初始化失败', err)
}
component.app = null
}
diff --git a/docs/assets/js/components/mirrors-table/index.js b/docs/assets/js/components/mirrors-table/index.js
index b97efd0..4440ed7 100644
--- a/docs/assets/js/components/mirrors-table/index.js
+++ b/docs/assets/js/components/mirrors-table/index.js
@@ -1,78 +1,91 @@
ComponentSystem.register('mirrors-table', {
template: `
-
+
-
-
-
-
-
-
-
-
-
-
-
-
- {{ statusLabels.supported }}
-
-
-
-
-
-
-
-
-
- {{ statusLabels.unsupported }}
-
-
-
-
-
-
-
- {{ statusLabels.incompatible }}
-
-
-
-
-
-
-
-
-
+
+
+ {{ startTitle[0] }} Debian、Ubuntu、CentOS、openEuler {{ startTitle[1] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ statusLabels.supported }}
+
+
+
+
+
+
+
+
+
+ {{ statusLabels.unsupported }}
+
+
+
+
+
+
+
+ {{ statusLabels.incompatible }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ startTitle[0] }} Debian、Ubuntu、CentOS、openEuler {{ startTitle[1] }}
+
-
+
{{ row.officialName }}
@@ -90,13 +103,18 @@ ComponentSystem.register('mirrors-table', {
@@ -122,7 +140,6 @@ ComponentSystem.register('mirrors-table', {
selectedColumnFilters: [],
selectedRowFilters: [],
selectedCellStatuses: ['supported', 'unsupported', 'incompatible'],
- cellStatusEnabled: true,
activeTableFilters: {},
}
},
@@ -146,6 +163,10 @@ ComponentSystem.register('mirrors-table', {
isEn: p.includes('/en'),
}
},
+ startTitle() {
+ const f = this.localeFlags
+ return f.isZhHant ? ['下方列表中的鏡像站均同步了', '軟體倉庫,列表根據單位性質、地理位置、名稱長度排序,與實際下載速度無關。'] : f.isEn ? ['All mirror sites in the list below synchronize the', 'software repositories. The list is sorted by institution type, geographic location, and name length, and is not related to actual download speed.'] : ['下方列表中的镜像站均同步了', '软件仓库,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关。']
+ },
globalConfig() {
const f = this.localeFlags
return {
@@ -243,6 +264,32 @@ ComponentSystem.register('mirrors-table', {
},
},
methods: {
+ dataChange(data) {
+ try {
+ const hasColumnFilters = this.activeTableFilters && Object.keys(this.activeTableFilters).length > 0
+ const hasRowFilters = Array.isArray(this.selectedRowFilters) && this.selectedRowFilters.length > 0
+ if (hasColumnFilters || hasRowFilters) {
+ return
+ }
+ this.data = data
+ } catch {}
+ },
+ onFilterChange() {
+ if (this._debouncedUpdateColumns) this._debouncedUpdateColumns()
+ else this._updateColumns()
+ },
+ onRowFilterChange() {
+ try {
+ if (Array.isArray(this.selectedRowFilters) && this.selectedRowFilters.includes('__all__')) {
+ this.selectedRowFilters = Array.isArray(this.originalData) ? this.originalData.map((r) => r.name) : []
+ }
+ } catch {}
+ if (this._debouncedUpdateRows) this._debouncedUpdateRows()
+ else this._updateRows()
+ },
+ getMirrorSiteBranchUrl(domain, branchName) {
+ return `https://${domain}/${branchName.replace(/_/, '-')}`
+ },
_mapOptionForRow(opt) {
const prefix = '/assets/images/icon/mirrors/'
const copy = Object.assign({}, opt)
@@ -276,30 +323,6 @@ ComponentSystem.register('mirrors-table', {
}
return copy
},
-
- dataChange(data) {
- try {
- const hasColumnFilters = this.activeTableFilters && Object.keys(this.activeTableFilters).length > 0
- const hasRowFilters = Array.isArray(this.selectedRowFilters) && this.selectedRowFilters.length > 0
- if (hasColumnFilters || hasRowFilters) {
- return
- }
- this.data = data
- } catch (e) { console.error('mirrors-table dataChange error', e) }
- },
- onFilterChange() {
- if (this._debouncedUpdateColumns) this._debouncedUpdateColumns()
- else this._updateColumns()
- },
- onRowFilterChange() {
- try {
- if (Array.isArray(this.selectedRowFilters) && this.selectedRowFilters.includes('__all__')) {
- this.selectedRowFilters = Array.isArray(this.originalData) ? this.originalData.map((r) => r.name) : []
- }
- } catch (e) { console.error('mirrors-table onRowFilterChange error', e) }
- if (this._debouncedUpdateRows) this._debouncedUpdateRows()
- else this._updateRows()
- },
onCellStatusChange() {
if (this._debouncedUpdateRows) this._debouncedUpdateRows()
else this._updateRows()
@@ -309,7 +332,7 @@ ComponentSystem.register('mirrors-table', {
this.activeTableFilters = filters || {}
if (this._debouncedUpdateRows) this._debouncedUpdateRows()
else this._updateRows()
- } catch (e) { console.error('mirrors-table onTableFilterChange error', e) }
+ } catch {}
},
_updateColumns() {
try {
@@ -322,12 +345,8 @@ ComponentSystem.register('mirrors-table', {
_updateRows() {
try {
this._computeFilteredData()
- } catch (e) {
- console.error('mirrors-table _updateRows error', e)
- this.data = this.originalData.slice()
- }
+ } catch {}
},
-
_computeFilteredData() {
try {
let rows = Array.isArray(this.originalData) ? this.originalData.slice() : []
@@ -359,10 +378,7 @@ ComponentSystem.register('mirrors-table', {
})
}
this.data = rows
- } catch (e) {
- console.error('mirrors-table _computeFilteredData error', e)
- this.data = this.originalData.slice()
- }
+ } catch {}
},
_flattenFilterKeys(options) {
const set = new Set()
diff --git a/docs/mirrors/index.en.md b/docs/mirrors/index.en.md
index 5c9c32f..9aa223d 100644
--- a/docs/mirrors/index.en.md
+++ b/docs/mirrors/index.en.md
@@ -10,8 +10,6 @@ search:
## Chinese Mainland :flag-CN:
-> All mirror sites in the list below synchronize the `Debian`, `Ubuntu`, `CentOS`, `openEuler` software repositories. The list is sorted by institution type, geographic location, and name length, and is not related to actual download speed.
-
???+ question "Usage Help"
diff --git a/docs/mirrors/index.md b/docs/mirrors/index.md
index 0ab5b81..b9c085c 100644
--- a/docs/mirrors/index.md
+++ b/docs/mirrors/index.md
@@ -10,8 +10,6 @@ search:
## 中国大陆 :flag-CN:
-> 下方列表中的镜像站均同步了 `Debian` `Ubuntu` `CentOS` `openEuler` 软件仓库,列表根据单位性质、地理位置、名称长度进行排序,与实际速度无关
-
???+ question "使用帮助"
diff --git a/docs/mirrors/index.zh-Hant.md b/docs/mirrors/index.zh-Hant.md
index b176a66..0ef08b0 100644
--- a/docs/mirrors/index.zh-Hant.md
+++ b/docs/mirrors/index.zh-Hant.md
@@ -10,8 +10,6 @@ search:
## 中國大陸 :flag-CN:
-> 下方列表中的鏡像站均同步了 `Debian`、`Ubuntu`、`CentOS`、`openEuler` 軟體倉庫,列表根據單位性質、地理位置、名稱長度排序,與實際下載速度無關。
-
???+ question "使用幫助"
diff --git a/docs/other/index.zh-Hant.md b/docs/other/index.zh-Hant.md
index 20f3698..da4efa7 100644
--- a/docs/other/index.zh-Hant.md
+++ b/docs/other/index.zh-Hant.md
@@ -209,7 +209,7 @@ hide:
```
-$ bash <(curl -sSL https://linuxmirrors.cn/main.sh) --help
+$ bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --zh-hant --help
命令選項(名稱/含義/值):
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index 51e4ef9..ed42043 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -711,24 +711,23 @@
color: var(--md-default-fg-color);
}
-[theme-mode="dark"] .t-table {
- --td-component-border: hsla(225deg, 15%, 95%, 0.12) !important;
+.t-tag.t-size-l {
+ height: var(--td-comp-size-xs);
+ padding: 0 var(--td-comp-paddingLR-s);
}
-[theme-mode="dark"] .t-tag {
- --td-warning-color-light: #cf6e2d48 !important;
+.t-tag-input .t-input.t-size-l {
+ min-height: var(--td-comp-size-m);
+ padding: 0 var(--td-comp-paddingLR-s) 0 var(--td-comp-margin-xs);
}
.t-table--hoverable tbody tr:hover {
background-color: rgba(0, 0, 0, 0.016) !important;
}
-[theme-mode="dark"] .t-table--hoverable tbody tr:hover {
- background-color: rgba(240, 241, 244, 0.016) !important;
-}
-
.t-table--column-fixed .t-table__cell--fixed-left {
- z-index: 4;
+ z-index: 3;
+ background-color: var(--md-default-bg-color);
}
.t-table__filter-icon-wrap {
@@ -739,6 +738,18 @@
padding: 6px var(--td-comp-paddingLR-l);
}
+[theme-mode="dark"] .t-table {
+ --td-component-border: hsla(225deg, 15%, 95%, 0.12) !important;
+}
+
+[theme-mode="dark"] .t-tag {
+ --td-warning-color-light: #cf6e2d48 !important;
+}
+
+[theme-mode="dark"] .t-table--hoverable tbody tr:hover {
+ background-color: rgba(240, 241, 244, 0.016) !important;
+}
+
/* termynal 插件 */
.termy {
padding: 65px 25px 35px !important;