mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 01:09:01 +08:00
修复Base64预处理器未能正确处理某些订阅的问题
This commit is contained in:
parent
ff9586f2bd
commit
7ebef72955
@ -862,7 +862,9 @@ var ProxyUtils = (function () {
|
|||||||
function Base64Encoded() {
|
function Base64Encoded() {
|
||||||
const name = "Base64 Pre-processor";
|
const name = "Base64 Pre-processor";
|
||||||
|
|
||||||
const keys = ["dm1lc3M", "c3NyOi8v", "dHJvamFu", "c3M6Ly", "c3NkOi8v"];
|
const keys = ["dm1lc3M", "c3NyOi8v", "dHJvamFu", "c3M6Ly", "c3NkOi8v",
|
||||||
|
"c2hhZG93", "aHR0c"
|
||||||
|
];
|
||||||
|
|
||||||
const test = function (raw) {
|
const test = function (raw) {
|
||||||
return keys.some(k => raw.indexOf(k) !== -1);
|
return keys.some(k => raw.indexOf(k) !== -1);
|
||||||
|
4
backend/sub-store.min.js
vendored
4
backend/sub-store.min.js
vendored
File diff suppressed because one or more lines are too long
@ -108,12 +108,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
refresh() {
|
async refresh() {
|
||||||
axios.post(`/utils/refresh`, {url: this.sub}).then(() => {
|
await axios.post(`/utils/refresh`, {url: this.sub});
|
||||||
this.fetch();
|
await this.fetch();
|
||||||
}).catch(err => {
|
|
||||||
this.$store.commit("SET_ERROR_MESSAGE", err.response.data.message);
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
async fetch() {
|
async fetch() {
|
||||||
|
@ -253,8 +253,13 @@ export default {
|
|||||||
createCol() {
|
createCol() {
|
||||||
this.$router.push("/collection-edit/UNTITLED")
|
this.$router.push("/collection-edit/UNTITLED")
|
||||||
},
|
},
|
||||||
refreshProxyList() {
|
async refreshProxyList() {
|
||||||
this.$refs.proxyList.refresh();
|
try {
|
||||||
|
await this.$refs.proxyList.refresh();
|
||||||
|
this.$store.commit("SET_SUCCESS_MESSAGE", "刷新成功!");
|
||||||
|
} catch (err) {
|
||||||
|
this.$store.commit("SET_ERROR_MESSAGE", err.response.data.message);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getIconClass(url) {
|
getIconClass(url) {
|
||||||
return url.indexOf('#invert') !== -1 && !this.$store.state.settings.theme.darkMode ? 'invert' : ''
|
return url.indexOf('#invert') !== -1 && !this.$store.state.settings.theme.darkMode ? 'invert' : ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user