mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
parent
5c24b04c65
commit
7b0fc276f4
|
|
@ -50,7 +50,7 @@ const vmMirList = new Vue({
|
|||
$('.mirror-item-label').popover();
|
||||
},
|
||||
computed: {
|
||||
nowBrowsingMirror: () => {
|
||||
nowBrowsingMirror: function() {
|
||||
var mirrorName = location.pathname.split('/')[1];
|
||||
if (!mirrorName){
|
||||
return false;
|
||||
|
|
@ -64,7 +64,7 @@ const vmMirList = new Vue({
|
|||
}
|
||||
return result;
|
||||
},
|
||||
filteredMirrorList: () => {
|
||||
filteredMirrorList: function() {
|
||||
var filter = this.filter.toLowerCase();
|
||||
return this.mirrorList.filter((m) => {
|
||||
return m.is_master && m.name.toLowerCase().indexOf(filter) !== -1;
|
||||
|
|
@ -83,7 +83,7 @@ const vmMirList = new Vue({
|
|||
if (document.hidden === true) {
|
||||
return;
|
||||
}
|
||||
const self = this;
|
||||
var self = this;
|
||||
$.getJSON("/static/tunasync.json", (status_data) => {
|
||||
const unlisted_mir = unlisted.map(d => processMirrorItem(d))
|
||||
status_data = status_data.map(d => processMirrorItem(d));
|
||||
|
|
@ -209,7 +209,7 @@ var vmIso = new Vue({
|
|||
},
|
||||
availableCategories: []
|
||||
},
|
||||
created: () => {
|
||||
created: function() {
|
||||
var self = this;
|
||||
$.getJSON("/static/status/isoinfo.json", (isoinfo) => {
|
||||
self.distroList = isoinfo;
|
||||
|
|
|
|||
Loading…
Reference in New Issue