Files
blog/themes/Ying/static/js/mypjax.js
T
2024-07-11 08:59:32 +08:00

3547 lines
259 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 定义pjax 预设pjax
var pjax = new Pjax({
// 这里填写页面中改变的部分(和 CSS 选择器用法一样)
selectors: ["#pjax-container"],
cacheBust: false,
elements: "a",
});
// 设置友圈的回调函数
function fcircle_pjax() {
(function (e) {
function t(t) {
for (var c, n, r = t[0], i = t[1], s = t[2], p = 0, b = []; p < r.length; p++) n = r[p], Object.prototype.hasOwnProperty.call(o, n) && o[n] && b.push(o[n][0]), o[n] = 0;
for (c in i) Object.prototype.hasOwnProperty.call(i, c) && (e[c] = i[c]);
d && d(t);
while (b.length) b.shift()();
return l.push.apply(l, s || []), a()
}
function a() {
for (var e, t = 0; t < l.length; t++) {
for (var a = l[t], c = !0, r = 1; r < a.length; r++) {
var i = a[r];
0 !== o[i] && (c = !1)
}
c && (l.splice(t--, 1), e = n(n.s = a[0]))
}
return e
}
var c = {},
o = {
app: 0
},
l = [];
function n(t) {
if (c[t]) return c[t].exports;
var a = c[t] = {
i: t,
l: !1,
exports: {}
};
return e[t].call(a.exports, a, a.exports, n), a.l = !0, a.exports
}
n.m = e, n.c = c, n.d = function (e, t, a) {
n.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: a
})
}, n.r = function (e) {
"undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, n.t = function (e, t) {
if (1 & t && (e = n(e)), 8 & t) return e;
if (4 & t && "object" === typeof e && e && e.__esModule) return e;
var a = Object.create(null);
if (n.r(a), Object.defineProperty(a, "default", {
enumerable: !0,
value: e
}), 2 & t && "string" != typeof e)
for (var c in e) n.d(a, c, function (t) {
return e[t]
}.bind(null, c));
return a
}, n.n = function (e) {
var t = e && e.__esModule ? function () {
return e["default"]
} : function () {
return e
};
return n.d(t, "a", t), t
}, n.o = function (e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, n.p = "";
var r = window["webpackJsonp"] = window["webpackJsonp"] || [],
i = r.push.bind(r);
r.push = t, r = r.slice();
for (var s = 0; s < r.length; s++) t(r[s]);
var d = i;
l.push([0, "chunk-vendors"]), a()
})({
0: function (e, t, a) {
e.exports = a("56d7")
},
1799: function (e, t, a) {
var c = a("4ec8");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("4b3a8dae", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
"1b92": function (e, t, a) {
var c = a("2313");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("220edc25", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
"1feb": function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, "#cf-change{font-size:14px;display:block;padding:12px 0 4px;width:100%;text-align:center}#cf-container{width:100%;height:auto;margin:auto;background:var(--pyq-background);max-width:1500px;border-radius:12px}#cf-container a{text-decoration:none;line-height:1.3;color:var(--pyq-fontcolor);transition:.3s}#cf-container a:hover{color:var(--heo-main)}.cf-time-created,.cf-time-updated{display:inline-block;text-align:left;white-space:nowrap}.cf-time-created i.far,.cf-time-updated i.fas{padding-right:8px}#cf-footer{margin-right:8px;margin-bottom:8px;text-align:right;font-size:13px}.cf-data-lastupdated{font-size:13px;text-align:right;display:block}#cf-footer-info{display:flex}#cf-footer-info div{margin-left:.5rem}.cf-article .cf-article-title:hover{color:var(--heo-main)!important}#cf-more,#cf-state{background:var(--pyq-backgroundplus)}#cf-change,#cf-more,#cf-state,.cf-article-author,.cf-article-floor,.cf-article:hover .cf-article-floor,.cf-article a.cf-article-title,.cf-time-created,.cf-time-updated{color:var(--pyq-fontcolor)}.cf-article{background:var(--pyq-backgroundplus)}#cf-change span:hover{color:var(--heo-main);cursor:pointer}.cf-overshow p a:hover{color:var(--heo-main)!important}.cf-overshow p span{color:var(--pyq-secondtext)}.cf-setting-btn{color:var(--pyq-fontcolor);cursor:pointer;transition:.3s}.cf-setting-btn:hover{color:var(--heo-main)}.dark-theme #cf-overlay,.theme-dark #cf-overlay{background-color:rgba(59,61,66,.42)}.dark-theme .cf-overshow,.theme-dark .cf-overshow{background:#292a2d}.dark-theme .cf-overshow p a,.theme-dark .cf-overshow p a{color:var(--pyq-fontcolor)}.dark-theme .cf-overshow .cf-overshow-content,.theme-dark .cf-overshow .cf-overshow-content{background:#eaeaea}.dark-theme #cf-more,.dark-theme #cf-state,.theme-dark #cf-more,.theme-dark #cf-state{background:var(--lmm-dack-background);color:var(--lmm-dark-fontcolor)}.dark-theme #cf-change,.dark-theme .cf-article-floor,.dark-theme .cf-time-created,.dark-theme .cf-time-updated,.theme-dark #cf-change,.theme-dark .cf-article-floor,.theme-dark .cf-time-created,.theme-dark .cf-time-updated{color:var(--lmm-dark-floorcolor)}.dark-theme .cf-article-author,.dark-theme .cf-article a.cf-article-title,.theme-dark .cf-article-author,.theme-dark .cf-article a.cf-article-title{color:var(--lmm-dark-fontcolor)}.dark-theme .cf-article,.theme-dark .cf-article{background:var(--lmm-dack-background)}.dark-theme .cf-article:hover .cf-article-floor,.dark-theme .cf-article:hover .cf-time-created,.dark-theme .cf-article:hover .cf-time-updated,.dark-theme .cf-overshow p span,.theme-dark .cf-article:hover .cf-article-floor,.theme-dark .cf-article:hover .cf-time-created,.theme-dark .cf-article:hover .cf-time-updated,.theme-dark .cf-overshow p span{color:var(--lmm-dark-fontcolor)}@media screen and (max-width:400px){#cf-state{font-size:14px}.cf-article-time i{display:none}}@media screen and (max-width:300px){#cf-state,.cf-article-time{display:none}}", ""]), e.exports = t
},
2313: function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, ".ManagePanelMain[data-v-668b627c]{padding:0 10px}.ManagePanelMain .cf-manage-top[data-v-668b627c]{display:flex;align-items:center;justify-content:space-between;width:100%}.cf-manage-title[data-v-668b627c]{overflow-wrap:break-word;color:#fff;font-size:24px;font-family:PingFangSC-Regular;text-align:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cf-manage-exit-btn[data-v-668b627c]{font-size:16px}.cf-manage-tabs-area[data-v-668b627c]{position:relative;margin:10px 0}[data-v-668b627c] .el-tabs__nav-next,[data-v-668b627c] .el-tabs__nav-prev{color:#fff!important}", ""]), e.exports = t
},
2375: function (e, t, a) {
var c = a("4a06");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("58d813eb", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
"2ac5": function (e, t, a) {
var c = a("be21");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("5be240ce", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
"4a06": function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, "@media screen and (max-width:1200px){.el-container.cf-manage-pannel[data-v-34921c7c]{width:90%;padding:45px 0 0}}#cf-manage-overlay[data-v-34921c7c]{top:0;left:0;background-color:hsla(0,0%,100%,.42);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);overflow-y:auto;pointer-events:all;transition:all .1s ease;z-index:998}#cf-manage-overlay[data-v-34921c7c],.cf-manage-pannel[data-v-34921c7c]{position:fixed;width:100%;height:100%}.cf-manage-pannel[data-v-34921c7c]{text-align:center;background-color:#8c8788;border-radius:10px;max-width:1200px;max-height:800px;z-index:999;transform:translate(-50%,-50%);left:50%;top:50%;padding:45px}.cf-manage-close-btn[data-v-34921c7c]{position:absolute;max-width:30px;color:#fff;cursor:pointer;right:2%;top:5px}.cf-manage-close-btn[data-v-34921c7c]:hover{color:#49b1f5}.cf-pannel-area[data-v-34921c7c]{width:100%;height:100%;overflow-y:scroll;overflow-x:hidden}[data-v-34921c7c]::-webkit-scrollbar-thumb{background-color:rgba(52,218,177,.85);background-image:-webkit-linear-gradient(45deg,hsla(0,7%,86%,.4) 25%,transparent 0,transparent 50%,hsla(0,8%,64%,.4) 0,rgba(66,220,5,.4) 75%,transparent 0,transparent)!important;border-radius:2em!important}[data-v-34921c7c]::-webkit-scrollbar{width:8px;height:8px}[data-v-34921c7c]::-webkit-scrollbar-track{background-color:#b6b2b4;border-radius:2em}[data-v-34921c7c]::-webkit-scrollbar-corner{background-color:transparent}", ""]), e.exports = t
},
"4ae4": function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, '.cf-article-group[data-v-56cae500]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.cf-article-item[data-v-56cae500]{width:25%}@media screen and (max-width:1400px){.cf-article-item[data-v-56cae500]{width:50%}@media screen and (max-width:1200px){.cf-article-item[data-v-56cae500]{width:50%}.cf-article-title[data-v-56cae500]{-webkit-line-clamp:2!important}}@media screen and (max-width:768px){.cf-article-item[data-v-56cae500]{width:100%}}.cf-article[data-v-56cae500]{margin:8px;border-radius:8px;font-weight:bolder;overflow:hidden;transition:all .3s ease-out;position:relative;padding:1rem;border:var(--pyq-boder);height:160px;display:flex;align-content:space-between;flex-direction:column;justify-content:space-between;box-shadow:var(--heo-shadow-border)}.cf-article[data-v-56cae500]:hover{transition:transform .3s}.cf-article-avatar[data-v-56cae500]{line-height:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;position:relative;z-index:1}.cf-img-avatar[data-v-56cae500]{display:inline-block!important;position:absolute;width:40%;border-radius:50%;margin:0 0 -4px!important;background:#fff;opacity:.1;z-index:0;right:-20px;bottom:-20px}.cf-article-author[data-v-56cae500],.cf-img-avatar[data-v-56cae500]{align-self:center;text-align:center;transition:.3s}.cf-article-author[data-v-56cae500]{line-height:1;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap;overflow:hidden;z-index:1;color:var(--pyq-fontcolor);font-size:.7rem;background-color:var(--heo-gray-op);padding:8px;border-radius:20px;display:flex;align-items:center}.cf-article-author[data-v-56cae500]:hover{background:var(--heo-main);color:var(--heo-white)}.cf-article-floor[data-v-56cae500]{position:absolute;top:0;right:.5rem;font-style:italic;font-size:3rem;line-height:1.5rem;z-index:1;font-weight:400;transition:.3s}.cf-article-title[data-v-56cae500]{font-weight:500;position:relative;z-index:2;width:100%;display:block;letter-spacing:1.5px;font-size:18px;align-self:start;text-align:left;line-height:40px;padding:0;margin-bottom:10px;transition:.3s;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box!important;-webkit-box-orient:vertical}.cf-article-time[data-v-56cae500]{font-size:12px;text-align:right;float:right;font-weight:400;transition:.3s;margin-left:auto;z-index:1}#cf-footer[data-v-56cae500]{width:100%;margin-top:.5rem;align-items:flex-end;color:var(--pyq-secondtext)}#cf-footer[data-v-56cae500],#cf-more[data-v-56cae500]{display:flex;flex-direction:column}#cf-more[data-v-56cae500]{width:40%;max-width:810px;height:30px;margin:auto;border-radius:12px;font-weight:bolder;text-align:center;justify-content:space-around;cursor:pointer;transition:.3s;border:var(--pyq-boder);box-shadow:var(--heo-shadow-border)}#cf-more[data-v-56cae500]:hover{width:60%;background:var(--heo-main);color:var(--heo-white)}#cf-more i.fas[data-v-56cae500]:before{content:"∞"}', ""]), e.exports = t
},
"4ec8": function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, "@media screen and (max-width:1200px){.settings-item[data-v-75620860]{flex-direction:column}}.settings-item[data-v-75620860],.settings-item .item-col[data-v-75620860]{display:flex}.cf-manage-main-add-btn[data-v-75620860]{margin-left:30px}", ""]), e.exports = t
},
"4ee4": function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, "#cf-state[data-v-0ed50aaf]{position:relative;font-size:16px;border-radius:8px;box-shadow:none;overflow:hidden;display:flex;flex-direction:row;flex-wrap:wrap;padding:8px 0;width:100%}#cf-change .cf-change-now[data-v-0ed50aaf]{color:var(--heo-main);font-weight:800}.cf-state-data[data-v-0ed50aaf]{width:100%;display:flex}.cf-data-active[data-v-0ed50aaf],.cf-data-article[data-v-0ed50aaf],.cf-data-friends[data-v-0ed50aaf]{height:60px;background:transparent;display:flex;flex-direction:column;width:33%;cursor:pointer}.cf-label[data-v-0ed50aaf]{font-size:16px;width:100%;height:30px}.cf-label[data-v-0ed50aaf],.cf-message[data-v-0ed50aaf]{padding:0 3%;align-self:center;text-align:center}.cf-message[data-v-0ed50aaf]{width:50%;font-size:20px}#panel-btn[data-v-0ed50aaf]{position:absolute;right:0;bottom:0}#cf-state-box[data-v-0ed50aaf]{display:none}", ""]), e.exports = t
},
5145: function (e, t, a) {
var c = a("4ee4");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("69d28853", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
"56d7": function (e, t, a) {
"use strict";
a.r(t);
var c = a("f2bf");
const o = {
key: 2
},
l = {
id: "cf-container"
},
n = {
key: 3
};
function r(e, t, a, r, i, s) {
const d = Object(c["resolveComponent"])("ManagePanel"),
p = Object(c["resolveComponent"])("ArticleCard"),
b = Object(c["resolveComponent"])("Header"),
m = Object(c["resolveComponent"])("ArticleBody");
return Object(c["openBlock"])(), Object(c["createElementBlock"])("div", null, [i.manage_panel_open ? (Object(c["openBlock"])(), Object(c["createBlock"])(d, {
key: 0,
Config: i.Config,
onClose_manage_panel: s.close_manage_panel
}, null, 8, ["Config", "onClose_manage_panel"])) : Object(c["createCommentVNode"])("", !0), i.article_card_data.open ? (Object(c["openBlock"])(), Object(c["createBlock"])(p, {
key: 1,
article_card_data: i.article_card_data.data,
Config: i.Config,
onClose_article_card: s.close_article_card
}, null, 8, ["article_card_data", "Config", "onClose_article_card"])) : Object(c["createCommentVNode"])("", !0), i.change_map[i.Config.sort_rule] ? (Object(c["openBlock"])(), Object(c["createElementBlock"])("div", o, [Object(c["createElementVNode"])("div", l, [Object(c["createVNode"])(b, {
Config: i.Config,
all_data: i.change_map[i.Config.sort_rule],
onWatch_sort_rule: s.change_sort_rule,
onShow_article_card: s.open_article_card,
onToggle_api_url: s.toggle_api_url,
onOpen_manage_panel: s.open_manage_panel
}, null, 8, ["Config", "all_data", "onWatch_sort_rule", "onShow_article_card", "onToggle_api_url", "onOpen_manage_panel"]), Object(c["createVNode"])(m, {
Config: i.Config,
all_data: i.change_map[i.Config.sort_rule],
onShow_article_card: s.open_article_card,
onOpen_manage_panel: s.open_manage_panel
}, null, 8, ["Config", "all_data", "onShow_article_card", "onOpen_manage_panel"])])])) : (Object(c["openBlock"])(), Object(c["createElementBlock"])("span", n, "与主机通讯中……"))])
}
const i = e => (Object(c["pushScopeId"])("data-v-0ed50aaf"), e = e(), Object(c["popScopeId"])(), e),
s = {
id: "cf-state-box"
},
d = {
id: "cf-state",
class: "cf-new-add"
},
p = {
class: "cf-state-data"
},
b = i(() => Object(c["createElementVNode"])("span", {
class: "cf-label"
}, "订阅", -1)),
m = {
class: "cf-message"
},
f = i(() => Object(c["createElementVNode"])("span", {
class: "cf-label"
}, "活跃", -1)),
u = {
class: "cf-message"
},
h = i(() => Object(c["createElementVNode"])("span", {
class: "cf-label"
}, "日志", -1)),
g = {
class: "cf-message"
};
function O(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("Setting"),
i = Object(c["resolveComponent"])("el-icon"),
O = Object(c["resolveComponent"])("el-button"),
C = Object(c["resolveComponent"])("el-tooltip");
return Object(c["openBlock"])(), Object(c["createElementBlock"])("div", s, [Object(c["createElementVNode"])("div", d, [Object(c["createVNode"])(O, {
id: "panel-btn",
circle: "",
onClick: n.open_manage_panel
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(r)]),
_: 1
})]),
_: 1
}, 8, ["onClick"]), Object(c["createElementVNode"])("div", p, [Object(c["createVNode"])(C, {
content: "点击获取一篇随机文章",
placement: "bottom",
effect: "light"
}, {
default: Object(c["withCtx"])(() => [Object(c["createElementVNode"])("div", {
class: "cf-data-friends",
onClick: t[0] || (t[0] = (...e) => n.open_article_card && n.open_article_card(...e))
}, [b, Object(c["createElementVNode"])("span", m, Object(c["toDisplayString"])(a.all_data.statistical_data.friends_num), 1)])]),
_: 1
}), Object(c["createVNode"])(C, {
content: "点击切换公共库/私有库",
placement: "top",
effect: "light"
}, {
default: Object(c["withCtx"])(() => [Object(c["createElementVNode"])("div", {
class: "cf-data-active",
onClick: t[1] || (t[1] = (...e) => n.toggle_api_url && n.toggle_api_url(...e))
}, [f, Object(c["createElementVNode"])("span", u, Object(c["toDisplayString"])(a.all_data.statistical_data.active_num), 1)])]),
_: 1
}), Object(c["createVNode"])(C, {
content: "点击清空缓存",
placement: "bottom",
effect: "light"
}, {
default: Object(c["withCtx"])(() => [Object(c["createElementVNode"])("div", {
class: "cf-data-article",
onClick: t[2] || (t[2] = (...e) => n.clear_session_storage && n.clear_session_storage(...e))
}, [h, Object(c["createElementVNode"])("span", g, Object(c["toDisplayString"])(a.all_data.statistical_data.article_num), 1)])]),
_: 1
})])])])
}
var C = {
name: "Header",
emits: ["watch_sort_rule", "show_article_card", "toggle_api_url", "open_manage_panel"],
methods: {
change_sort_rule() {
let e = "created" === this.Config.sort_rule ? "updated" : "created";
this.$emit("watch_sort_rule", e)
},
open_article_card() {
this.$emit("show_article_card", "")
},
toggle_api_url() {
this.$emit("toggle_api_url")
},
clear_session_storage() {
sessionStorage.clear(), location.reload()
},
open_manage_panel() {
this.$emit("open_manage_panel")
}
},
props: {
all_data: {
type: Object,
default: () => ({
statistical_data: {
friends_num: 0,
active_num: 0,
article_num: 0
}
})
},
Config: Object
}
},
j = (a("ea03"), a("6b0d")),
v = a.n(j);
const _ = v()(C, [
["render", O],
["__scopeId", "data-v-0ed50aaf"]
]);
var x = _;
const w = e => (Object(c["pushScopeId"])("data-v-56cae500"), e = e(), Object(c["popScopeId"])(), e),
k = {
class: "cf-article-group"
},
V = {
class: "cf-article"
},
A = ["href", "data-title"],
N = {
class: "cf-article-avatar no-lightbox flink-item-icon"
},
E = ["src"],
y = ["onClick"],
B = {
class: "cf-article-time"
},
L = {
key: 0,
class: "cf-time-created"
},
I = w(() => Object(c["createElementVNode"])("i", {
class: "far fa-calendar-alt"
}, null, -1)),
M = {
key: 1,
class: "cf-time-updated"
},
S = w(() => Object(c["createElementVNode"])("i", {
class: "fas fa-history"
}, "更新于", -1)),
T = {
id: "cf-footer"
},
D = {
key: 0
},
F = {
key: 1,
class: "fas fa-angle-double-down"
},
P = {
id: "cf-footer",
class: "cf-new-add"
},
R = w(() => Object(c["createElementVNode"])("span", {
id: "cf-version-up",
onclick: "checkVersion()"
}, null, -1)),
Y = w(() => Object(c["createElementVNode"])("div", null, [Object(c["createTextVNode"])("Powered by "), Object(c["createElementVNode"])("a", {
href: "https://github.com/Rock-Candy-Tea/hexo-circle-of-friends",
target: "_blank"
}, "FriendCircle")], -1)),
Q = w(() => Object(c["createElementVNode"])("div", null, [Object(c["createTextVNode"])("Design by "), Object(c["createElementVNode"])("a", {
href: "https://zhheo.com/",
target: "_blank"
}, "Heo")], -1)),
K = {
id: "cf-footer-info"
},
z = {
class: "cf-data-friends"
},
U = w(() => Object(c["createElementVNode"])("span", {
class: "cf-label"
}, "订阅", -1)),
Z = {
class: "cf-message"
},
G = {
class: "cf-data-active"
},
J = w(() => Object(c["createElementVNode"])("span", {
class: "cf-label"
}, "活跃", -1)),
H = {
class: "cf-message"
},
q = {
class: "cf-data-article"
},
X = w(() => Object(c["createElementVNode"])("span", {
class: "cf-label"
}, "日志", -1)),
W = {
class: "cf-message"
},
$ = {
style: {
display: "flex"
}
},
ee = {
class: "cf-data-lastupdated"
},
te = w(() => Object(c["createElementVNode"])("div", {
id: "cf-overlay",
class: "cf-new-add",
onclick: "closeShow()"
}, null, -1)),
ae = w(() => Object(c["createElementVNode"])("div", {
id: "cf-overshow",
class: "cf-new-add"
}, null, -1));
function ce(e, t, a, o, l, n) {
return Object(c["openBlock"])(), Object(c["createElementBlock"])("div", k, [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(a.all_data["article_data"].slice(0, l.current_arcitle_num), (e, o) => (Object(c["openBlock"])(), Object(c["createElementBlock"])("div", {
key: o,
class: "cf-article-item"
}, [Object(c["createElementVNode"])("div", V, [Object(c["createElementVNode"])("a", {
class: "cf-article-title",
href: e.link,
target: "_blank",
rel: "noopener nofollow",
"data-title": e.title
}, Object(c["toDisplayString"])(e.title), 9, A), Object(c["createElementVNode"])("div", N, [Object(c["createElementVNode"])("img", {
class: "cf-img-avatar avatar no-lightbox",
src: e.avatar,
alt: "avatar",
onError: t[0] || (t[0] = e => n.loadDefaultImg(e))
}, null, 40, E), Object(c["createElementVNode"])("span", {
class: "cf-article-author",
onClick: t => n.open_article_card(e.link)
}, Object(c["toDisplayString"])(e.author), 9, y), Object(c["createElementVNode"])("span", B, ["created" === a.Config.sort_rule ? (Object(c["openBlock"])(), Object(c["createElementBlock"])("span", L, [I, Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.created), 1)])) : Object(c["createCommentVNode"])("", !0), "updated" === a.Config.sort_rule ? (Object(c["openBlock"])(), Object(c["createElementBlock"])("span", M, [S, Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.updated), 1)])) : Object(c["createCommentVNode"])("", !0)])])])]))), 128)), Object(c["createElementVNode"])("div", T, [Object(c["createElementVNode"])("div", {
id: "cf-more",
class: "cf-new-add",
onClick: t[1] || (t[1] = e => n.loadMoreArticle())
}, [l.is_ended ? (Object(c["openBlock"])(), Object(c["createElementBlock"])("small", D, "一切皆有尽头!")) : (Object(c["openBlock"])(), Object(c["createElementBlock"])("i", F))]), Object(c["createElementVNode"])("div", P, [R, Y, Q, Object(c["createElementVNode"])("div", K, [Object(c["createElementVNode"])("div", z, [U, Object(c["createElementVNode"])("span", Z, Object(c["toDisplayString"])(a.all_data.statistical_data.friends_num), 1)]), Object(c["createElementVNode"])("div", G, [J, Object(c["createElementVNode"])("span", H, Object(c["toDisplayString"])(a.all_data.statistical_data.active_num), 1)]), Object(c["createElementVNode"])("div", q, [X, Object(c["createElementVNode"])("span", W, Object(c["toDisplayString"])(a.all_data.statistical_data.article_num), 1)])]), Object(c["createElementVNode"])("div", $, [Object(c["createElementVNode"])("span", ee, "更新于:" + Object(c["toDisplayString"])(a.all_data["statistical_data"]["last_updated_time"]), 1), Object(c["createElementVNode"])("span", {
class: "cf-setting-btn",
style: {
"margin-left": "8px"
},
onClick: t[2] || (t[2] = e => n.open_manage_panel())
}, "设置")])]), te, ae])])
}
var oe = {
name: "ArticleBody",
emits: ["show_article_card", "open_manage_panel"],
data() {
return {
current_arcitle_num: this.all_data["statistical_data"]["article_num"] > 20 ? 20 : this.all_data["statistical_data"]["article_num"],
is_ended: this.all_data["statistical_data"]["article_num"] <= 20
}
},
methods: {
loadMoreArticle() {
this.current_arcitle_num += this.Config.page_turning_number, this.current_arcitle_num >= this.all_data["statistical_data"]["article_num"] && (this.is_ended = !0), console.log(this.is_ended)
},
loadDefaultImg(e) {
e.target.setAttribute("src", this.Config.error_img)
},
open_article_card(e) {
this.$emit("show_article_card", e)
},
open_manage_panel() {
this.$emit("open_manage_panel")
}
},
props: ["Config", "all_data"]
};
a("ff61");
const le = v()(oe, [
["render", ce],
["__scopeId", "data-v-56cae500"]
]);
var ne = le;
const re = e => (Object(c["pushScopeId"])("data-v-31c20c7f"), e = e(), Object(c["popScopeId"])(), e),
ie = {
id: "cf-overlay-group"
},
se = {
key: 0,
class: "cf-overshow"
},
de = {
class: "cf-overshow-head"
},
pe = ["src"],
be = ["href"],
me = {
key: 0
},
fe = re(() => Object(c["createElementVNode"])("div", {
class: "cf-overshow-content-tail"
}, [Object(c["createElementVNode"])("span", {
style: {
"font-style": "italic",
"font-size": "16px",
color: "gray"
}
}, "该作者最近暂无文章喵=^ω^=")], -1)),
ue = [fe],
he = {
key: 1
},
ge = ["href", "data-title"];
function Oe(e, t, a, o, l, n) {
return Object(c["openBlock"])(), Object(c["createElementBlock"])("div", ie, [Object(c["createElementVNode"])("div", {
id: "cf-overlay",
onClick: t[0] || (t[0] = (...e) => n.close_article_card && n.close_article_card(...e))
}), Object(c["createVNode"])(c["Transition"], {
name: "fade"
}, {
default: Object(c["withCtx"])(() => [l.show ? (Object(c["openBlock"])(), Object(c["createElementBlock"])("div", se, [Object(c["createElementVNode"])("div", de, [Object(c["createElementVNode"])("img", {
class: "cf-img-avatar avatar",
src: a.article_card_data.statistical_data.avatar,
onError: t[1] || (t[1] = e => n.loadDefaultImg(e)),
alt: "avatar"
}, null, 40, pe), Object(c["createElementVNode"])("a", {
class: "",
target: "_blank",
rel: "noopener nofollow",
href: a.article_card_data.statistical_data.link
}, Object(c["toDisplayString"])(a.article_card_data.statistical_data.name), 9, be)]), 0 === a.article_card_data.article_data.length ? (Object(c["openBlock"])(), Object(c["createElementBlock"])("div", me, ue)) : (Object(c["openBlock"])(), Object(c["createElementBlock"])("div", he, [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(a.article_card_data.article_data, (e, t) => (Object(c["openBlock"])(), Object(c["createElementBlock"])("div", {
key: t,
class: Object(c["normalizeClass"])(a.article_card_data.article_data.length - 1 === t ? "cf-overshow-content-tail" : "cf-overshow-content")
}, [Object(c["createElementVNode"])("p", null, [Object(c["createElementVNode"])("a", {
class: "cf-article-title",
href: e.link,
target: "_blank",
rel: "noopener nofollow",
"data-title": e.title
}, Object(c["toDisplayString"])(e.title), 9, ge), Object(c["createElementVNode"])("span", null, Object(c["toDisplayString"])(e.created), 1)])], 2))), 128))]))])) : Object(c["createCommentVNode"])("", !0)]),
_: 1
})])
}
var Ce = {
name: "ArticleCard",
emits: ["close_article_card"],
data() {
return {
show: !1
}
},
methods: {
close_article_card() {
this.show = !1, setTimeout(() => this.$emit("close_article_card"), 0)
},
loadDefaultImg(e) {
e.target.setAttribute("src", this.Config.error_img)
}
},
mounted() {
setTimeout(() => this.show = !0, 100)
},
props: ["Config", "article_card_data"]
};
a("7d5b");
const je = v()(Ce, [
["render", Oe],
["__scopeId", "data-v-31c20c7f"]
]);
var ve = je;
const _e = e => (Object(c["pushScopeId"])("data-v-34921c7c"), e = e(), Object(c["popScopeId"])(), e),
xe = _e(() => Object(c["createElementVNode"])("div", {
id: "cf-manage-overlay"
}, null, -1)),
we = {
class: "cf-pannel-area"
},
ke = _e(() => Object(c["createElementVNode"])("path", {
fill: "currentColor",
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
}, null, -1)),
Ve = [ke];
function Ae(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("ManagePanelLogin"),
i = Object(c["resolveComponent"])("ManagePanelMain"),
s = Object(c["resolveComponent"])("el-container");
return Object(c["openBlock"])(), Object(c["createElementBlock"])("div", null, [xe, Object(c["createVNode"])(s, {
class: "cf-manage-pannel"
}, {
default: Object(c["withCtx"])(() => [Object(c["createElementVNode"])("div", we, [(Object(c["openBlock"])(), Object(c["createElementBlock"])("svg", {
class: "cf-manage-close-btn",
onClick: t[0] || (t[0] = (...e) => n.close_manage_panel && n.close_manage_panel(...e)),
viewBox: "0 0 1024 1024",
xmlns: "http://www.w3.org/2000/svg",
"data-v-029747aa": ""
}, Ve)), l.show_login_page ? (Object(c["openBlock"])(), Object(c["createBlock"])(r, {
key: 0,
Config: a.Config,
onLogin_success: n.login_success
}, null, 8, ["Config", "onLogin_success"])) : (Object(c["openBlock"])(), Object(c["createBlock"])(i, {
key: 1,
Config: a.Config,
onLogout: n.logout
}, null, 8, ["Config", "onLogout"]))])]),
_: 1
})])
}
const Ne = e => (Object(c["pushScopeId"])("data-v-735984d8"), e = e(), Object(c["popScopeId"])(), e),
Ee = Ne(() => Object(c["createElementVNode"])("svg", {
class: "cf-manage-logo",
version: "1.1",
width: "49px",
height: "53px",
viewBox: "0 0 49.0 53.0",
xmlns: "http://www.w3.org/2000/svg",
"xmlns:xlink": "http://www.w3.org/1999/xlink"
}, [Object(c["createElementVNode"])("defs", null, [Object(c["createElementVNode"])("clipPath", {
id: "10910911211111355521089995"
}, [Object(c["createElementVNode"])("path", {
d: "M1000,0 L1000,1235 L0,1235 L0,0 L1000,0 Z"
})]), Object(c["createElementVNode"])("filter", {
id: "104106489998559712197112",
x: "-10.4038184%",
y: "-8.78844516%",
filterUnits: "userSpaceOnUse",
width: "126.009546%",
height: "121.971113%"
}, [Object(c["createElementVNode"])("feGaussianBlur", {
stdDeviation: "1",
in: "SourceAlpha",
result: "103112104511175211312010049"
}), Object(c["createElementVNode"])("feOffset", {
dx: "1",
dy: "1",
in: "103112104511175211312010049",
result: "1001171155611757555056104"
}), Object(c["createElementVNode"])("feColorMatrix", {
values: "0 0 0 0.0 0 0 0 0 0.4855076886605525 0 0 0 0 0.39303003367759 0 0 0 0 0.618950263603584 0",
type: "matrix",
in: "1001171155611757555056104"
})]), Object(c["createElementVNode"])("clipPath", {
id: "12251106104121101109106107109"
}, [Object(c["createElementVNode"])("path", {
d: "M35.5554004,0 C37.1526201,-4.54925271e-15 38.4474225,1.2948024 38.4474225,2.8920221 L38.4474225,42.6222859 C38.4474225,44.2195056 37.1526201,45.514308 35.5554004,45.514308 L2.8920221,45.514308 C1.2948024,45.514308 2.41604905e-15,44.2195056 0,42.6222859 L0,2.8920221 C-1.95603e-16,1.2948024 1.2948024,2.95793976e-15 2.8920221,0 L35.5554004,0 Z"
})]), Object(c["createElementVNode"])("clipPath", {
id: "109114106101120501221195451"
}, [Object(c["createElementVNode"])("path", {
d: "M32.2238978,39.012264 C32.4393566,39.012264 32.6140205,39.1869279 32.6140205,39.4023867 C32.6140205,39.6178454 32.4393566,39.7925093 32.2238978,39.7925093 L0.39012264,39.7925093 C0.174663855,39.7925093 2.63860911e-17,39.6178454 0,39.4023867 C-2.63860911e-17,39.1869279 0.174663855,39.012264 0.39012264,39.012264 L32.2238978,39.012264 Z M32.2238978,35.761242 C32.4393566,35.761242 32.6140205,35.9359059 32.6140205,36.1513647 C32.6140205,36.3668234 32.4393566,36.5414873 32.2238978,36.5414873 L0.39012264,36.5414873 C0.174663855,36.5414873 2.63860911e-17,36.3668234 0,36.1513647 C-2.63860911e-17,35.9359059 0.174663855,35.761242 0.39012264,35.761242 L32.2238978,35.761242 Z M32.2238978,32.51022 C32.4393566,32.51022 32.6140205,32.6848839 32.6140205,32.9003427 C32.6140205,33.1158014 32.4393566,33.2904653 32.2238978,33.2904653 L0.39012264,33.2904653 C0.174663855,33.2904653 4.58326451e-13,33.1158014 4.58300065e-13,32.9003427 C4.58273678e-13,32.6848839 0.174663855,32.51022 0.39012264,32.51022 L32.2238978,32.51022 Z M32.2238978,29.259198 C32.4393566,29.259198 32.6140205,29.4338619 32.6140205,29.6493207 C32.6140205,29.8647794 32.4393566,30.0394433 32.2238978,30.0394433 L0.39012264,30.0394433 C0.174663855,30.0394433 2.63860911e-17,29.8647794 0,29.6493207 C-2.63860911e-17,29.4338619 0.174663855,29.259198 0.39012264,29.259198 L32.2238978,29.259198 Z M32.2238978,26.008176 C32.4393566,26.008176 32.6140205,26.1828399 32.6140205,26.3982987 C32.6140205,26.6137574 32.4393566,26.7884213 32.2238978,26.7884213 L0.39012264,26.7884213 C0.174663855,26.7884213 4.58326451e-13,26.6137574 4.58300065e-13,26.3982987 C4.58273678e-13,26.1828399 0.174663855,26.008176 0.39012264,26.008176 L32.2238978,26.008176 Z M32.2238978,22.757154 C32.4393566,22.757154 32.6140205,22.9318179 32.6140205,23.1472767 C32.6140205,23.3627354 32.4393566,23.5373993 32.2238978,23.5373993 L0.39012264,23.5373993 C0.174663855,23.5373993 2.63860911e-17,23.3627354 0,23.1472767 C-2.63860911e-17,22.9318179 0.174663855,22.757154 0.39012264,22.757154 L32.2238978,22.757154 Z M32.2238978,19.506132 C32.4393566,19.506132 32.6140205,19.6807959 32.6140205,19.8962547 C32.6140205,20.1117134 32.4393566,20.2863773 32.2238978,20.2863773 L0.39012264,20.2863773 C0.174663855,20.2863773 4.58326451e-13,20.1117134 4.58300065e-13,19.8962547 C4.58273678e-13,19.6807959 0.174663855,19.506132 0.39012264,19.506132 L32.2238978,19.506132 Z M32.2238978,16.25511 C32.4393566,16.25511 32.6140205,16.4297739 32.6140205,16.6452326 C32.6140205,16.8606914 32.4393566,17.0353553 32.2238978,17.0353553 L0.39012264,17.0353553 C0.174663855,17.0353553 2.63860911e-17,16.8606914 0,16.6452326 C-2.63860911e-17,16.4297739 0.174663855,16.25511 0.39012264,16.25511 L32.2238978,16.25511 Z M32.2238978,13.004088 C32.4393566,13.004088 32.6140205,13.1787519 32.6140205,13.3942106 C32.6140205,13.6096694 32.4393566,13.7843333 32.2238978,13.7843333 L0.39012264,13.7843333 C0.174663855,13.7843333 4.58326451e-13,13.6096694 4.58300065e-13,13.3942106 C4.58273678e-13,13.1787519 0.174663855,13.004088 0.39012264,13.004088 L32.2238978,13.004088 Z M32.2238978,9.753066 C32.4393566,9.753066 32.6140205,9.92772986 32.6140205,10.1431886 C32.6140205,10.3586474 32.4393566,10.5333113 32.2238978,10.5333113 L0.39012264,10.5333113 C0.174663855,10.5333113 4.58326451e-13,10.3586474 4.58300065e-13,10.1431886 C4.58273678e-13,9.92772986 0.174663855,9.753066 0.39012264,9.753066 L32.2238978,9.753066 Z M32.2238978,6.502044 C32.4393566,6.502044 32.6140205,6.67670786 32.6140205,6.89216664 C32.6140205,7.10762543 32.4393566,7.28228928 32.2238978,7.28228928 L0.39012264,7.28228928 C0.174663855,7.28228928 2.63860911e-17,7.10762543 0,6.89216664 C-2.63860911e-17,6.67670786 0.174663855,6.502044 0.39012264,6.502044 L32.2238978,6.502044 Z M32.2238978,3.251022 C32.4393566,3.251022 32.6140205,3.42568586 32.6140205,3.64114464 C32.6140205,3.85660343 32.4393566,4.03126728 32.2238978,4.03126728 L0.39012264,4.03126728 C0.174663855,4.03126728 4.58326451e-13,3.85660343 4.58300065e-13,3.64114464 C4.58273678e-13,3.42568586 0.174663855,3.251022 0.39012264,3.251022 L32.2238978,3.251022 Z M32.2238978,0 C32.4393566,2.90251188e-15 32.6140205,0.174663855 32.6140205,0.39012264 C32.6140205,0.605581425 32.4393566,0.78024528 32.2238978,0.78024528 L0.39012264,0.78024528 C0.174663855,0.78024528 2.63860911e-17,0.605581425 0,0.39012264 C-2.63860911e-17,0.174663855 0.174663855,3.95791367e-17 0.39012264,0 L32.2238978,0 Z"
})]), Object(c["createElementVNode"])("clipPath", {
id: "5399112495657099106120"
}, [Object(c["createElementVNode"])("path", {
d: "M18.5516738,7.75655388 C19.2710242,7.75655388 19.9040525,7.84647267 20.4507588,8.02631026 C20.997465,8.20614785 21.5441713,8.46151723 22.0908776,8.79241839 C22.3786177,8.99383649 22.5224878,9.25280262 22.5224878,9.56931678 C22.5224878,9.78512189 22.4361658,9.98653999 22.2635217,10.1735711 C22.0908776,10.3606022 21.896653,10.4541177 21.6808479,10.4541177 C21.5369778,10.4541177 21.3787207,10.4109567 21.2060766,10.3246347 C20.7025314,10.0656685 20.2853082,9.88583094 19.954407,9.78512189 C19.6235059,9.68441284 19.2134762,9.63405831 18.7243179,9.63405831 C17.5158093,9.63405831 16.5554766,9.98294324 15.8433197,10.6807131 C15.1311629,11.3784829 14.7750844,12.3172352 14.7750844,13.4969697 C14.7750844,14.6767043 15.1311629,15.6154566 15.8433197,16.3132264 C16.5554766,17.0109963 17.5158093,17.3598812 18.7243179,17.3598812 C19.2134762,17.3598812 19.6235059,17.3095267 19.954407,17.2088176 C20.2853082,17.1081086 20.7025314,16.928271 21.2060766,16.6693048 C21.3787207,16.5829828 21.5369778,16.5398218 21.6808479,16.5398218 C21.896653,16.5398218 22.0908776,16.6333373 22.2635217,16.8203684 C22.4361658,17.0073995 22.5224878,17.2088176 22.5224878,17.4246227 C22.5224878,17.7411369 22.3786177,18.000103 22.0908776,18.2015211 C21.5441713,18.5324223 20.997465,18.7877916 20.4507588,18.9676292 C19.9040525,19.1474668 19.2710242,19.2373856 18.5516738,19.2373856 C17.5301963,19.2373856 16.5734603,19.0071935 15.6814659,18.5468093 C14.7750844,18.072038 14.0629276,17.3958487 13.5449953,16.5182413 C13.0270631,15.6406338 12.7680969,14.6335433 12.7680969,13.4969697 C12.7680969,12.3316222 13.0342566,11.3101447 13.5665758,10.4325372 C14.0845081,9.58370379 14.7786812,8.92549821 15.6490951,8.45792048 C16.5195091,7.99034274 17.4870353,7.75655388 18.5516738,7.75655388 Z M11.4592512,3.91522295 C11.7182174,3.91522295 11.941216,4.0087385 12.1282471,4.19576959 C12.3152782,4.38280069 12.4087937,4.6057993 12.4087937,4.86476543 C12.4087937,5.12373156 12.3152782,5.34313342 12.1282471,5.52297101 C11.941216,5.7028086 11.7182174,5.79272739 11.4592512,5.79272739 L4.33768267,5.79272739 C4.16503858,5.79272739 4.07871654,5.87904944 4.07871654,6.05169352 L4.07871654,10.5188593 L10.7039334,10.5188593 C10.9628995,10.5188593 11.1858981,10.6123748 11.3729292,10.7994059 C11.5599603,10.986437 11.6534758,11.2094356 11.6534758,11.4684017 C11.6534758,11.7273679 11.5599603,11.9467697 11.3729292,12.1266073 C11.1858981,12.3064449 10.9628995,12.3963637 10.7039334,12.3963637 L4.07871654,12.3963637 L4.07871654,18.1367796 C4.07871654,18.4101327 3.97800749,18.6439216 3.77658939,18.8381462 C3.57517129,19.0323708 3.33778567,19.1294831 3.06443253,19.1294831 C2.7910794,19.1294831 2.55729053,19.0323708 2.36306593,18.8381462 C2.16884133,18.6439216 2.07172904,18.4101327 2.07172904,18.1367796 L2.07172904,4.92950696 C2.07172904,4.65615382 2.16884133,4.41876821 2.36306593,4.21735011 C2.55729053,4.015932 2.7910794,3.91522295 3.06443253,3.91522295 L11.4592512,3.91522295 Z"
})]), Object(c["createElementVNode"])("clipPath", {
id: "1024511854541210110121103"
}, [Object(c["createElementVNode"])("path", {
d: "M24.9684989,1.4692119 L24.9684989,21.6833967 L-0.374282015,21.6833967 L-0.374282015,1.4692119 L24.9684989,1.4692119 Z M18.5516738,7.75655388 C17.4870353,7.75655388 16.5195091,7.99034274 15.6490951,8.45792048 C14.7786812,8.92549821 14.0845081,9.58370379 13.5665758,10.4325372 C13.0342566,11.3101447 12.7680969,12.3316222 12.7680969,13.4969697 C12.7680969,14.6335433 13.0270631,15.6406338 13.5449953,16.5182413 C14.0629276,17.3958487 14.7750844,18.072038 15.6814659,18.5468093 C16.5734603,19.0071935 17.5301963,19.2373856 18.5516738,19.2373856 C19.2710242,19.2373856 19.9040525,19.1474668 20.4507588,18.9676292 C20.997465,18.7877916 21.5441713,18.5324223 22.0908776,18.2015211 C22.3786177,18.000103 22.5224878,17.7411369 22.5224878,17.4246227 C22.5224878,17.2088176 22.4361658,17.0073995 22.2635217,16.8203684 C22.0908776,16.6333373 21.896653,16.5398218 21.6808479,16.5398218 C21.5369778,16.5398218 21.3787207,16.5829828 21.2060766,16.6693048 C20.7025314,16.928271 20.2853082,17.1081086 19.954407,17.2088176 C19.6235059,17.3095267 19.2134762,17.3598812 18.7243179,17.3598812 C17.5158093,17.3598812 16.5554766,17.0109963 15.8433197,16.3132264 C15.1311629,15.6154566 14.7750844,14.6767043 14.7750844,13.4969697 C14.7750844,12.3172352 15.1311629,11.3784829 15.8433197,10.6807131 C16.5554766,9.98294324 17.5158093,9.63405831 18.7243179,9.63405831 C19.2134762,9.63405831 19.6235059,9.68441284 19.954407,9.78512189 C20.2853082,9.88583094 20.7025314,10.0656685 21.2060766,10.3246347 C21.3787207,10.4109567 21.5369778,10.4541177 21.6808479,10.4541177 C21.896653,10.4541177 22.0908776,10.3606022 22.2635217,10.1735711 C22.4361658,9.98653999 22.5224878,9.78512189 22.5224878,9.56931678 C22.5224878,9.25280262 22.3786177,8.99383649 22.0908776,8.79241839 C21.5441713,8.46151723 20.997465,8.20614785 20.4507588,8.02631026 C19.9040525,7.84647267 19.2710242,7.75655388 18.5516738,7.75655388 Z M11.4592512,3.91522295 L3.06443253,3.91522295 C2.7910794,3.91522295 2.55729053,4.015932 2.36306593,4.21735011 C2.16884133,4.41876821 2.07172904,4.65615382 2.07172904,4.92950696 L2.07172904,18.1367796 C2.07172904,18.4101327 2.16884133,18.6439216 2.36306593,18.8381462 C2.55729053,19.0323708 2.7910794,19.1294831 3.06443253,19.1294831 C3.33778567,19.1294831 3.57517129,19.0323708 3.77658939,18.8381462 C3.97800749,18.6439216 4.07871654,18.4101327 4.07871654,18.1367796 L4.07871654,12.3963637 L10.7039334,12.3963637 C10.9628995,12.3963637 11.1858981,12.3064449 11.3729292,12.1266073 C11.5599603,11.9467697 11.6534758,11.7273679 11.6534758,11.4684017 C11.6534758,11.2094356 11.5599603,10.986437 11.3729292,10.7994059 C11.1858981,10.6123748 10.9628995,10.5188593 10.7039334,10.5188593 L4.07871654,10.5188593 L4.07871654,6.05169352 C4.07871654,5.87904944 4.16503858,5.79272739 4.33768267,5.79272739 L11.4592512,5.79272739 C11.7182174,5.79272739 11.941216,5.7028086 12.1282471,5.52297101 C12.3152782,5.34313342 12.4087937,5.12373156 12.4087937,4.86476543 C12.4087937,4.6057993 12.3152782,4.38280069 12.1282471,4.19576959 C11.941216,4.0087385 11.7182174,3.91522295 11.4592512,3.91522295 Z"
})]), Object(c["createElementVNode"])("filter", {
id: "48109491091221001025211656",
x: "-10.0570244%",
y: "-8.78844516%",
filterUnits: "userSpaceOnUse",
width: "125.142561%",
height: "121.971113%"
}, [Object(c["createElementVNode"])("feGaussianBlur", {
stdDeviation: "1",
in: "SourceAlpha",
result: "1201031101179748101455153"
}), Object(c["createElementVNode"])("feOffset", {
dx: "1",
dy: "1",
in: "1201031101179748101455153",
result: "113110975101124950122114"
}), Object(c["createElementVNode"])("feColorMatrix", {
values: "0 0 0 0.09411764705882353 0 0 0 0 0.6 0 0 0 0 0.9098039215686274 0 0 0 0 1.0 0",
type: "matrix",
in: "113110975101124950122114"
})]), Object(c["createElementVNode"])("clipPath", {
id: "116995310511811611411712249"
}, [Object(c["createElementVNode"])("path", {
d: "M36.8811736,0 C38.4783933,3.51835451e-15 39.7731957,1.2948024 39.7731957,2.8920221 L39.7731957,42.6222859 C39.7731957,44.2195056 38.4783933,45.514308 36.8811736,45.514308 L2.8920221,45.514308 C1.2948024,45.514308 6.67189726e-15,44.2195056 0,42.6222859 L0,2.8920221 C-6.3969221e-16,1.2948024 1.2948024,-1.03886313e-15 2.8920221,0 L36.8811736,0 Z"
})]), Object(c["createElementVNode"])("linearGradient", {
id: "1135410501015012010910899",
x1: "5.53187308px",
y1: "45.514308px",
x2: "38.862465px",
y2: "0px",
gradientUnits: "userSpaceOnUse"
}, [Object(c["createElementVNode"])("stop", {
"stop-color": "#1599D9",
offset: "0%"
}), Object(c["createElementVNode"])("stop", {
"stop-color": "#1C96FF",
offset: "100%"
})]), Object(c["createElementVNode"])("clipPath", {
id: "11211055514954565695104"
}, [Object(c["createElementVNode"])("path", {
d: "M10.4058698,0 C10.6929283,0 10.9401176,0.101676806 11.1474376,0.305030419 C11.3547576,0.508384032 11.4584176,0.750844109 11.4584176,1.03241065 C11.4584176,1.31397719 11.3547576,1.55252662 11.1474376,1.74805894 C10.9401176,1.94359126 10.6929283,2.04135742 10.4058698,2.04135742 L2.51176168,2.04135742 C2.32038936,2.04135742 2.22470321,2.13521294 2.22470321,2.32292396 L2.22470321,7.17994679 L9.56861594,7.17994679 C9.85567441,7.17994679 10.1028637,7.2816236 10.3101837,7.48497721 C10.5175037,7.68833083 10.6211637,7.9307909 10.6211637,8.21235744 C10.6211637,8.49392398 10.5175037,8.73247342 10.3101837,8.92800574 C10.1028637,9.12353806 9.85567441,9.22130422 9.56861594,9.22130422 L2.22470321,9.22130422 L2.22470321,15.4626959 C2.22470321,15.759905 2.11306935,16.014097 1.88980165,16.2252719 C1.66653394,16.4364468 1.403397,16.5420343 1.10039083,16.5420343 C0.797384661,16.5420343 0.538234646,16.4364468 0.322940788,16.2252719 C0.107646929,16.014097 0,15.759905 0,15.4626959 L0,1.10280229 C0,0.805593159 0.107646929,0.547490496 0.322940788,0.328494298 C0.538234646,0.109498099 0.797384661,0 1.10039083,0 L10.4058698,0 Z"
})]), Object(c["createElementVNode"])("clipPath", {
id: "99971031031051041175097104"
}, [Object(c["createElementVNode"])("path", {
d: "M6.41097268,0 C7.20835734,0 7.91005584,0.09776616 8.51606818,0.29329848 C9.12208053,0.4888308 9.72809287,0.766486695 10.3341052,1.12626616 C10.6530591,1.34526236 10.812536,1.6268289 10.812536,1.97096579 C10.812536,2.20560457 10.7168498,2.42460077 10.5254775,2.62795438 C10.3341052,2.83130799 10.1188114,2.9329848 9.87959595,2.9329848 C9.72011902,2.9329848 9.5446944,2.88605704 9.35332208,2.79220153 C8.79515281,2.51063499 8.33266971,2.31510267 7.96587277,2.20560457 C7.59907582,2.09610647 7.14456657,2.04135742 6.602345,2.04135742 C5.26273876,2.04135742 4.19823024,2.42069012 3.40881943,3.17935552 C2.61940861,3.93802093 2.22470321,4.95869964 2.22470321,6.24139166 C2.22470321,7.52408368 2.61940861,8.54476239 3.40881943,9.30342779 C4.19823024,10.0620932 5.26273876,10.4414259 6.602345,10.4414259 C7.14456657,10.4414259 7.59907582,10.3866768 7.96587277,10.2771787 C8.33266971,10.1676806 8.79515281,9.97214832 9.35332208,9.69058178 C9.5446944,9.59672627 9.72011902,9.54979851 9.87959595,9.54979851 C10.1188114,9.54979851 10.3341052,9.65147532 10.5254775,9.85482893 C10.7168498,10.0581825 10.812536,10.2771787 10.812536,10.5118175 C10.812536,10.8559544 10.6530591,11.137521 10.3341052,11.3565172 C9.72809287,11.7162966 9.12208053,11.9939525 8.51606818,12.1894848 C7.91005584,12.3850172 7.20835734,12.4827833 6.41097268,12.4827833 C5.27868646,12.4827833 4.21816486,12.2325019 3.22940788,11.7319392 C2.22470321,11.2157339 1.43529239,10.4805324 0.861175434,9.52633463 C0.287058478,8.57213691 0,7.47715592 0,6.24139166 C0,4.97434222 0.295032325,3.86371865 0.885096974,2.90952092 C1.45921393,1.98660837 2.22869013,1.27096008 3.19352557,0.762576048 C4.15836101,0.254192016 5.23084338,0 6.41097268,0 Z"
})]), Object(c["createElementVNode"])("clipPath", {
id: "1071161211041001135511749100"
}, [Object(c["createElementVNode"])("path", {
d: "M33.4170937,39.012264 C33.6325525,39.012264 33.8072163,39.1869279 33.8072163,39.4023867 C33.8072163,39.6178454 33.6325525,39.7925093 33.4170937,39.7925093 L0.39012264,39.7925093 C0.174663855,39.7925093 1.43329237e-14,39.6178454 1.42108547e-14,39.4023867 C1.40887857e-14,39.1869279 0.174663855,39.012264 0.39012264,39.012264 L33.4170937,39.012264 Z M33.4170937,35.761242 C33.6325525,35.761242 33.8072163,35.9359059 33.8072163,36.1513647 C33.8072163,36.3668234 33.6325525,36.5414873 33.4170937,36.5414873 L0.39012264,36.5414873 C0.174663855,36.5414873 1.43329237e-14,36.3668234 1.42108547e-14,36.1513647 C1.40887857e-14,35.9359059 0.174663855,35.761242 0.39012264,35.761242 L33.4170937,35.761242 Z M33.4170937,32.51022 C33.6325525,32.51022 33.8072163,32.6848839 33.8072163,32.9003427 C33.8072163,33.1158014 33.6325525,33.2904653 33.4170937,33.2904653 L0.39012264,33.2904653 C0.174663855,33.2904653 1.43329237e-14,33.1158014 1.42108547e-14,32.9003427 C1.40887857e-14,32.6848839 0.174663855,32.51022 0.39012264,32.51022 L33.4170937,32.51022 Z M9.018,29.259 L20.4403818,29.2613708 C21.2278252,29.6485228 22.0507902,29.9083432 22.9059208,30.0410822 L0.39012264,30.0394433 C0.174663855,30.0394433 1.43329237e-14,29.8647794 1.42108547e-14,29.6493207 C1.40887857e-14,29.4338619 0.174663855,29.259198 0.39012264,29.259198 L5.20389429,29.2600463 C5.718023,29.7595623 6.38089349,30.0277851 7.10500243,30.0277851 C7.82576573,30.0277851 8.48693174,29.7624828 9.00702418,29.27056 L9.018,29.259 Z M33.4170937,29.259198 C33.6325525,29.259198 33.8072163,29.4338619 33.8072163,29.6493207 C33.8072163,29.8647794 33.6325525,30.0394433 33.4170937,30.0394433 L25.7302627,30.0403828 C26.1327193,29.9789465 26.5154259,29.8901411 26.8782359,29.773079 C27.3056312,29.6351781 27.7300823,29.4644485 28.1515269,29.2613979 L33.4170937,29.259198 Z M9.832,26.008 L17.1147613,26.0092683 C17.1860601,26.14672 17.2618302,26.2821536 17.3420787,26.4155287 C17.4188676,26.5431539 17.4988339,26.6678036 17.5819479,26.7894511 L9.832,26.788 L9.832,26.008 Z M4.401,26.008 L4.401,26.788 L0.39012264,26.7884213 C0.174663855,26.7884213 7.13181345e-15,26.6137574 7.10542736e-15,26.3982987 C7.07904127e-15,26.1828399 0.174663855,26.008176 0.39012264,26.008176 L4.401,26.008 Z M33.4170937,26.008176 C33.6325525,26.008176 33.8072163,26.1828399 33.8072163,26.3982987 C33.8072163,26.6137574 33.6325525,26.7884213 33.4170937,26.7884213 L30.2701508,26.7883211 C30.2745141,26.7268404 30.2767178,26.6646946 30.2767178,26.6019318 C30.2767178,26.3978062 30.2511397,26.1993099 30.201982,26.0081116 L33.4170937,26.008176 Z M33.4170937,22.757154 C33.6325525,22.757154 33.8072163,22.9318179 33.8072163,23.1472767 C33.8072163,23.3627354 33.6325525,23.5373993 33.4170937,23.5373993 L21.8952011,23.5385629 C21.8012501,23.308749 21.7391891,23.0499954 21.7094227,22.7572055 L33.4170937,22.757154 Z M4.401,22.757 L4.401,23.537 L0.39012264,23.5373993 C0.174663855,23.5373993 1.43329237e-14,23.3627354 1.42108547e-14,23.1472767 C1.40887857e-14,22.9318179 0.174663855,22.757154 0.39012264,22.757154 L4.401,22.757 Z M9.832,22.757 L16.2681945,22.758323 C16.2803928,23.0226669 16.3040329,23.2825346 16.3391444,23.5377581 L9.832,23.537 L9.832,22.757 Z M33.4170937,19.506132 C33.6325525,19.506132 33.8072163,19.6807959 33.8072163,19.8962547 C33.8072163,20.1117134 33.6325525,20.2863773 33.4170937,20.2863773 L28.9244679,20.2878786 C29.1584801,20.1572036 29.3733991,19.9876187 29.564583,19.7844653 C29.6481809,19.6956336 29.7251644,19.603038 29.79513,19.5070154 L33.4170937,19.506132 Z M4.401,19.506 L4.401,20.286 L0.39012264,20.2863773 C0.174663855,20.2863773 2.63860911e-17,20.1117134 0,19.8962547 C-2.63860911e-17,19.6807959 0.174663855,19.506132 0.39012264,19.506132 L4.401,19.506 Z M24.4636541,19.7036786 C24.8586715,19.7036786 25.1601018,19.7399881 25.3604869,19.7998081 C25.6107291,19.8745117 25.9689129,20.0245955 26.4195399,20.2493492 L26.493,20.286 L22.5108335,20.2861368 C22.9312832,19.9367822 23.487479,19.7411743 24.2343844,19.7085629 L24.4636541,19.7036786 Z M4.401,16.255 L4.401,17.035 L0.39012264,17.0353553 C0.174663855,17.0353553 1.43329237e-14,16.8606914 1.42108547e-14,16.6452326 C1.40887857e-14,16.4297739 0.174663855,16.25511 0.39012264,16.25511 L4.401,16.255 Z M19.0877089,16.2543923 C18.7876916,16.4929014 18.5077773,16.7530896 18.248466,17.0344686 L9.832,17.035 L9.832,16.255 L19.0877089,16.2543923 Z M29.5123785,16.254847 L33.4170937,16.25511 C33.6325525,16.25511 33.8072163,16.4297739 33.8072163,16.6452326 C33.8072163,16.8606914 33.6325525,17.0353553 33.4170937,17.0353553 L30.0605773,17.0353624 C29.9311928,16.7470709 29.7462051,16.484445 29.5123785,16.254847 Z M19.0659018,12.9459546 L19.063,13.004 L33.4170937,13.004088 C33.6325525,13.004088 33.8072163,13.1787519 33.8072163,13.3942106 C33.8072163,13.6096694 33.6325525,13.7843333 33.4170937,13.7843333 L18.9253501,13.7851804 C19.0180834,13.5203286 19.0659018,13.2383895 19.0659018,12.9459546 Z M4.401,13.004 L4.401,13.784 L0.39012264,13.7843333 C0.174663855,13.7843333 1.43329237e-14,13.6096694 1.42108547e-14,13.3942106 C1.40887857e-14,13.1787519 0.174663855,13.004088 0.39012264,13.004088 L4.401,13.004 Z M33.4170937,9.753066 C33.6325525,9.753066 33.8072163,9.92772986 33.8072163,10.1431886 C33.8072163,10.3586474 33.6325525,10.5333113 33.4170937,10.5333113 L17.4153587,10.5335234 C17.1022423,10.4070754 16.7637674,10.341337 16.4104814,10.341337 L7.10500243,10.341337 C6.75033818,10.341337 6.41088073,10.406625 6.09681056,10.532172 L0.39012264,10.5333113 C0.174663855,10.5333113 7.13181345e-15,10.3586474 7.10542736e-15,10.1431886 C7.07904127e-15,9.92772986 0.174663855,9.753066 0.39012264,9.753066 L33.4170937,9.753066 Z M33.4170937,6.502044 C33.6325525,6.502044 33.8072163,6.67670786 33.8072163,6.89216664 C33.8072163,7.10762543 33.6325525,7.28228928 33.4170937,7.28228928 L0.39012264,7.28228928 C0.174663855,7.28228928 1.42372408e-14,7.10762543 1.42108547e-14,6.89216664 C1.41844686e-14,6.67670786 0.174663855,6.502044 0.39012264,6.502044 L33.4170937,6.502044 Z M33.4170937,3.251022 C33.6325525,3.251022 33.8072163,3.42568586 33.8072163,3.64114464 C33.8072163,3.85660343 33.6325525,4.03126728 33.4170937,4.03126728 L0.39012264,4.03126728 C0.174663855,4.03126728 1.42372408e-14,3.85660343 1.42108547e-14,3.64114464 C1.41844686e-14,3.42568586 0.174663855,3.251022 0.39012264,3.251022 L33.4170937,3.251022 Z M33.4170937,0 C33.6325525,2.73597842e-15 33.8072163,0.174663855 33.8072163,0.39012264 C33.8072163,0.605581425 33.6325525,0.78024528 33.4170937,0.78024528 L0.39012264,0.78024528 C0.174663855,0.78024528 1.42372408e-14,0.605581425 1.42108547e-14,0.39012264 C1.41844686e-14,0.174663855 0.174663855,3.95791367e-17 0.39012264,0 L33.4170937,0 Z"
})])]), Object(c["createElementVNode"])("g", {
transform: "translate(-69.0 -70.0)"
}, [Object(c["createElementVNode"])("g", {
"clip-path": "url(#10910911211111355521089995)"
}, [Object(c["createElementVNode"])("g", {
transform: "translate(70.88649839612333 70.21254090036508) rotate(2.0)"
}, [Object(c["createElementVNode"])("g", {
transform: "translate(7.552577486285102 0.0)"
}, [Object(c["createElementVNode"])("g", {
transform: "translate(8.505264770349575 11.774721389520693)"
}, [Object(c["createElementVNode"])("g", {
transform: "translate(0.08497514808244233 0.0)"
}, [Object(c["createElementVNode"])("text", {
transform: "translate(0.0 19.0)",
"font-family": "MaoKenTangYuan-beta, MaoKenTangYuan (beta)",
"font-size": "22.09844305416875",
"font-weight": "normal",
fill: "#FFFFFF",
"text-anchor": "left"
}, "Fc")])]), Object(c["createElementVNode"])("path", {
d: "M35.5554004,2 C35.8017255,2 36.024731,2.09984297 36.1861553,2.26126722 C36.3475795,2.42269147 36.4474225,2.645697 36.4474225,2.8920221 L36.4474225,42.6222859 C36.4474225,42.868611 36.3475795,43.0916165 36.1861553,43.2530408 C36.024731,43.414465 35.8017255,43.514308 35.5554004,43.514308 L2.8920221,43.514308 C2.645697,43.514308 2.42269147,43.414465 2.26126722,43.2530408 C2.09984297,43.0916165 2,42.868611 2,42.6222859 L2,2.8920221 C2,2.645697 2.09984297,2.42269147 2.26126722,2.26126722 C2.42269147,2.09984297 2.645697,2 2.8920221,2 Z",
stroke: "none",
fill: "#000000",
filter: "url(#104106489998559712197112)"
}), Object(c["createElementVNode"])("g", {
"clip-path": "url(#12251106104121101109106107109)"
}, [Object(c["createElementVNode"])("polygon", {
points: "4.54747351e-13,0 38.4474225,0 38.4474225,45.514308 4.54747351e-13,45.514308 4.54747351e-13,0",
stroke: "none",
fill: "#15D9B4"
}), Object(c["createElementVNode"])("g", {
transform: "translate(-6.628588771465857 11.10450350534563)"
}, [Object(c["createElementVNode"])("image", {
x: "-14px",
y: "-54px",
width: "64px",
height: "68px",
transform: "scale(1.0 -1.0)",
"xlink:href": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAABFCAYAAAAVZotTAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAQaADAAQAAAABAAAARQAA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mMiyvCKAKj/FcTBRwoXO/d0YnHIOmKr/ZSbTADBYnWiozPEYAtiKm6Y+uYHV+9Yzfp5ofdHXueRC5hERwjYFpYJcA0g6IpOg4WQgsxYlIHuLcLumX0EXeVLrAtmzSbfD2kfANJn9PXIZ0YcsM8g/9gaiPDzYTVO6Gt2YvEXNO9DrvgCRLjNBc8XfjFiU8+cBb7CWqxVE47hobaGTB2boUgrHKRU6Z4zS96uf3LIGsdn2g3iAlbDpccxd4/muOSy+zggLI3HmNrXuMPyBsf2Km3b7fRoSQlqgDR5BT3Qk9LVOP94xbxzg4uFt3Ef/+EJvs3U/j3sAgYgxLFNqylLgKltcOu1Yd9ryAHpG0zoAIugi97Sgf3JNnwCCJg5FmbaFhtgfiv8/znLw7rl7nR7RvwuIPw1n7G/rwvKYFYQgfOUriYOfU1HGsSdI4wNTP4fCpcmD+wFnswWxKwlOVRTLkgw+RAxwXe4zcyvYUVmbhY3sCZl8YnnQ7ssg9kVXgeEljXyDLGY4UWtsRg5Rky2mPWvIX6ed+1pelgWRBC+rxF9EABqgIF8YLiAKw4wmxKRKcfhM27wfc3R+CF3h+AGOGDop8TqtdW6iFDZLScE3QAIn+rAJD+HYK4NEydZbK/F20N3gx9Qo1N+qnwN9vdq534+HIS+scIV3dM+7d6TBcGnKIDog+4JzPy2y79iEZ6+07cIVrkR65POPYdwBWl9sf0+eSk+BaqvKPul3ru/7wzk3SIrvlniDIGhsEfU7bECit5cFnaZbW6adZ/fJlyvPx7x/Rg+Pgh9y0qXAOk/9MD0zxel/Wz33z4+4X3LSv9/QTjfU593YM4e+tzpUD4Si5+1e5O7QeAGgRUQ+D9/ylovbi364QAAAABJRU5ErkJggg=="
})]), Object(c["createElementVNode"])("g", {
transform: "translate(9.674135661700834 -5.831263514332488)"
}, [Object(c["createElementVNode"])("image", {
x: "-13px",
y: "-35px",
width: "63px",
height: "48px",
transform: "scale(1.0 -1.0)",
"xlink:href": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE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0491975747738422 2.8563610001774755)"
}, [Object(c["createElementVNode"])("g", {
"clip-path": "url(#109114106101120501221195451)"
}, [Object(c["createElementVNode"])("polygon", {
points: "4.54747351e-13,0 32.6140205,0 32.6140205,39.7925093 4.54747351e-13,39.7925093 4.54747351e-13,0",
stroke: "none",
fill: "rgba(255, 255, 255, 0.323907)"
})])]), Object(c["createElementVNode"])("g", {
transform: "translate(8.313637900593676 11.7130532738862)"
}, [Object(c["createElementVNode"])("g", {
"clip-path": "url(#5399112495657099106120)"
}, [Object(c["createElementVNode"])("polygon", {
points: "2.07172904,3.91522295 22.5224878,3.91522295 22.5224878,19.2373856 2.07172904,19.2373856 2.07172904,3.91522295",
stroke: "none",
fill: "#FFFFFF"
})]), Object(c["createElementVNode"])("g", {
"clip-path": "url(#1024511854541210110121103)"
}, [Object(c["createElementVNode"])("path", {
d: "M3.06443253,19.1294831 C2.7910794,19.1294831 2.55729053,19.0323708 2.36306593,18.8381462 C2.16884133,18.6439216 2.07172904,18.4101327 2.07172904,18.1367796 L2.07172904,4.92950696 C2.07172904,4.65615382 2.16884133,4.41876821 2.36306593,4.21735011 C2.55729053,4.015932 2.7910794,3.91522295 3.06443253,3.91522295 L11.4592512,3.91522295 C11.7182174,3.91522295 11.941216,4.0087385 12.1282471,4.19576959 C12.3152782,4.38280069 12.4087937,4.6057993 12.4087937,4.86476543 C12.4087937,5.12373156 12.3152782,5.34313342 12.1282471,5.52297101 C11.941216,5.7028086 11.7182174,5.79272739 11.4592512,5.79272739 L4.33768267,5.79272739 C4.16503858,5.79272739 4.07871654,5.87904944 4.07871654,6.05169352 L4.07871654,10.5188593 L10.7039334,10.5188593 C10.9628995,10.5188593 11.1858981,10.6123748 11.3729292,10.7994059 C11.5599603,10.986437 11.6534758,11.2094356 11.6534758,11.4684017 C11.6534758,11.7273679 11.5599603,11.9467697 11.3729292,12.1266073 C11.1858981,12.3064449 10.9628995,12.3963637 10.7039334,12.3963637 L4.07871654,12.3963637 L4.07871654,18.1367796 C4.07871654,18.4101327 3.97800749,18.6439216 3.77658939,18.8381462 C3.57517129,19.0323708 3.33778567,19.1294831 3.06443253,19.1294831 Z M15.6814659,18.5468093 C14.7750844,18.072038 14.0629276,17.3958487 13.5449953,16.5182413 C13.0270631,15.6406338 12.7680969,14.6335433 12.7680969,13.4969697 C12.7680969,12.3316222 13.0342566,11.3101447 13.5665758,10.4325372 C14.0845081,9.58370379 14.7786812,8.92549821 15.6490951,8.45792048 C16.5195091,7.99034274 17.4870353,7.75655388 18.5516738,7.75655388 C19.2710242,7.75655388 19.9040525,7.84647267 20.4507588,8.02631026 C20.997465,8.20614785 21.5441713,8.46151723 22.0908776,8.79241839 C22.3786177,8.99383649 22.5224878,9.25280262 22.5224878,9.56931678 C22.5224878,9.78512189 22.4361658,9.98653999 22.2635217,10.1735711 C22.0908776,10.3606022 21.896653,10.4541177 21.6808479,10.4541177 C21.5369778,10.4541177 21.3787207,10.4109567 21.2060766,10.3246347 C20.7025314,10.0656685 20.2853082,9.88583094 19.954407,9.78512189 C19.6235059,9.68441284 19.2134762,9.63405831 18.7243179,9.63405831 C17.5158093,9.63405831 16.5554766,9.98294324 15.8433197,10.6807131 C15.1311629,11.3784829 14.7750844,12.3172352 14.7750844,13.4969697 C14.7750844,14.6767043 15.1311629,15.6154566 15.8433197,16.3132264 C16.5554766,17.0109963 17.5158093,17.3598812 18.7243179,17.3598812 C19.2134762,17.3598812 19.6235059,17.3095267 19.954407,17.2088176 C20.2853082,17.1081086 20.7025314,16.928271 21.2060766,16.6693048 C21.3787207,16.5829828 21.5369778,16.5398218 21.6808479,16.5398218 C21.896653,16.5398218 22.0908776,16.6333373 22.2635217,16.8203684 C22.4361658,17.0073995 22.5224878,17.2088176 22.5224878,17.4246227 C22.5224878,17.7411369 22.3786177,18.000103 22.0908776,18.2015211 C21.5441713,18.5324223 20.997465,18.7877916 20.4507588,18.9676292 C19.9040525,19.1474668 19.2710242,19.2373856 18.5516738,19.2373856 C17.5301963,19.2373856 16.5734603,19.0071935 15.6814659,18.5468093 Z",
stroke: "#3CFBCF",
"stroke-width": "2.8920221",
fill: "none",
"stroke-miterlimit": "5"
})])])]), Object(c["createElementVNode"])("g", {
transform: "translate(0.02473429089858925 4.617845277710796) rotate(-4.0)"
}, [Object(c["createElementVNode"])("g", {
transform: "translate(8.77528857764526 11.74914203594166)"
}, [Object(c["createElementVNode"])("g", {
transform: ""
}, [Object(c["createElementVNode"])("g", {
transform: "translate(0.08497514808244588 -2.842170943040401e-14)"
}, [Object(c["createElementVNode"])("text", {
transform: "translate(0.0 19.0)",
"font-family": "MaoKenTangYuan-beta, MaoKenTangYuan (beta)",
"font-size": "22.09844305416875",
"font-weight": "normal",
fill: "#FFFFFF",
"text-anchor": "left"
}, "Fc")])])]), Object(c["createElementVNode"])("g", {
transform: ""
}, [Object(c["createElementVNode"])("path", {
d: "M36.8811736,2 C37.1274987,2 37.3505042,2.09984297 37.5119285,2.26126722 C37.6733527,2.42269147 37.7731957,2.645697 37.7731957,2.8920221 L37.7731957,42.6222859 C37.7731957,42.868611 37.6733527,43.0916165 37.5119285,43.2530408 C37.3505042,43.414465 37.1274987,43.514308 36.8811736,43.514308 L2.8920221,43.514308 C2.645697,43.514308 2.42269147,43.414465 2.26126722,43.2530408 C2.09984297,43.0916165 2,42.868611 2,42.6222859 L2,2.8920221 C2,2.645697 2.09984297,2.42269147 2.26126722,2.26126722 C2.42269147,2.09984297 2.645697,2 2.8920221,2 Z",
stroke: "none",
fill: "#000000",
filter: "url(#48109491091221001025211656)"
}), Object(c["createElementVNode"])("g", {
"clip-path": "url(#116995310511811611411712249)"
}, [Object(c["createElementVNode"])("polygon", {
points: "-4.54747351e-13,0 39.7731957,0 39.7731957,45.514308 -4.54747351e-13,45.514308 -4.54747351e-13,0",
stroke: "none",
fill: "url(#1135410501015012010910899)"
})])]), Object(c["createElementVNode"])("g", {
transform: "translate(9.190972988500762 14.65128915858139)"
}, [Object(c["createElementVNode"])("g", {
"clip-path": "url(#11211055514954565695104)"
}, [Object(c["createElementVNode"])("polygon", {
points: "0,-1.42108547e-14 11.4584176,-1.42108547e-14 11.4584176,16.5420343 0,16.5420343 0,-1.42108547e-14",
stroke: "none",
fill: "#FFFFFF"
})]), Object(c["createElementVNode"])("g", {
transform: "translate(11.85669755051606 4.176570357211289)"
}, [Object(c["createElementVNode"])("g", {
"clip-path": "url(#99971031031051041175097104)"
}, [Object(c["createElementVNode"])("polygon", {
points: "0,0 10.812536,0 10.812536,12.4827833 0,12.4827833 0,0",
stroke: "none",
fill: "#FFFFFF"
})])])]), Object(c["createElementVNode"])("g", {
transform: "translate(3.186361394234229 2.7377452406648572)"
}, [Object(c["createElementVNode"])("g", {
"clip-path": "url(#1071161211041001135511749100)"
}, [Object(c["createElementVNode"])("polygon", {
points: "0,0 33.8072163,0 33.8072163,39.7925093 0,39.7925093 0,0",
stroke: "none",
fill: "rgba(255, 255, 255, 0.323907)"
})])])])])])])], -1)),
ye = Ne(() => Object(c["createElementVNode"])("span", {
class: "cf-manage-title"
}, "友链朋友圈管理面板", -1));
function Be(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("el-input"),
i = Object(c["resolveComponent"])("el-button");
return Object(c["openBlock"])(), Object(c["createElementBlock"])("div", null, [Ee, ye, Object(c["createVNode"])(r, {
class: "cf-manage-input",
size: "large",
onKeyup: Object(c["withKeys"])(n.login, ["enter"]),
modelValue: l.password,
"onUpdate:modelValue": t[0] || (t[0] = e => l.password = e),
type: "password",
clearable: "",
"show-password": "",
placeholder: "请输入密码"
}, null, 8, ["onKeyup", "modelValue"]), Object(c["createVNode"])(i, {
onClick: n.login,
class: "cf-manage-login-btn",
round: ""
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("立即登录")]),
_: 1
}, 8, ["onClick"])])
}
function Le(e) {
return {
headers: {
Authorization: e
}
}
}
function Ie() {
return localStorage.getItem("fcircle-token") ? "Bearer " + localStorage.getItem("fcircle-token") : ""
}
var Me = a("3ef4"),
Se = {
name: "ManagePanelLogin",
emits: ["login_success"],
data() {
return {
password: ""
}
},
methods: {
login() {
let e = {
password: this.password
};
this.$axios.post(this.Config.private_api_url + "login", e).then(e => {
let t = e.data;
200 === t.code ? (localStorage.setItem("fcircle-token", t.token), this.$emit("login_success"), this.$message.success({
title: "成功",
message: "登录成功"
})) : this.$message.error({
title: "错误",
message: "密码错误"
})
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
})
})
}
},
created() {
let e = Ie();
if (e) {
let t = Le(e);
this.$axios.get(this.Config.private_api_url + "login_with_token", t).then(e => {
let t = e.data;
200 === t.code && this.$emit("login_success")
}).catch(e => {})
}
},
props: ["Config"]
};
a("5974");
const Te = v()(Se, [
["render", Be],
["__scopeId", "data-v-735984d8"]
]);
var De = Te;
const Fe = e => (Object(c["pushScopeId"])("data-v-668b627c"), e = e(), Object(c["popScopeId"])(), e),
Pe = {
class: "ManagePanelMain"
},
Re = {
class: "cf-manage-top"
},
Ye = Fe(() => Object(c["createElementVNode"])("span", {
class: "cf-manage-title"
}, "友链朋友圈管理面板", -1));
function Qe(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("el-button"),
i = Object(c["resolveComponent"])("ManagePanelMain_settings"),
s = Object(c["resolveComponent"])("el-tab-pane"),
d = Object(c["resolveComponent"])("ManagePanelMain_envs"),
p = Object(c["resolveComponent"])("ManagePanelMain_links"),
b = Object(c["resolveComponent"])("ManagePanelMain_switchdb"),
m = Object(c["resolveComponent"])("ManagePanelMain_status"),
f = Object(c["resolveComponent"])("ManagePanelMain_about"),
u = Object(c["resolveComponent"])("el-tabs");
return Object(c["openBlock"])(), Object(c["createElementBlock"])("div", Pe, [Object(c["createElementVNode"])("div", Re, [Ye, Object(c["createVNode"])(r, {
onClick: n.logout,
class: "cf-manage-exit-btn",
round: ""
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("退出登录")]),
_: 1
}, 8, ["onClick"])]), Object(c["createVNode"])(u, {
modelValue: l.current_tab,
"onUpdate:modelValue": t[0] || (t[0] = e => l.current_tab = e),
type: "card",
class: "cf-manage-tabs-area"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
label: "配置管理",
name: "settings"
}, {
default: Object(c["withCtx"])(() => [null !== l.current_settings ? (Object(c["openBlock"])(), Object(c["createBlock"])(i, {
Config: a.Config,
current_settings: l.current_settings,
key: l.component_keys.settings,
onRefresh: n.refresh_component
}, null, 8, ["Config", "current_settings", "onRefresh"])) : Object(c["createCommentVNode"])("", !0)]),
_: 1
}), Object(c["createVNode"])(s, {
label: "环境变量管理",
name: "envs"
}, {
default: Object(c["withCtx"])(() => [null !== l.current_settings ? (Object(c["openBlock"])(), Object(c["createBlock"])(d, {
Config: a.Config,
current_settings: l.current_settings,
key: l.component_keys.envs,
onRefresh: n.refresh_component
}, null, 8, ["Config", "current_settings", "onRefresh"])) : Object(c["createCommentVNode"])("", !0)]),
_: 1
}), Object(c["createVNode"])(s, {
label: "自定义友链管理",
name: "links"
}, {
default: Object(c["withCtx"])(() => [null !== l.current_settings ? (Object(c["openBlock"])(), Object(c["createBlock"])(p, {
Config: a.Config,
current_settings: l.current_settings,
key: l.component_keys.links,
onRefresh: n.refresh_component
}, null, 8, ["Config", "current_settings", "onRefresh"])) : Object(c["createCommentVNode"])("", !0)]),
_: 1
}), Object(c["createVNode"])(s, {
label: "数据库管理",
name: "switchsb"
}, {
default: Object(c["withCtx"])(() => [null !== l.current_settings ? (Object(c["openBlock"])(), Object(c["createBlock"])(b, {
Config: a.Config,
current_settings: l.current_settings,
key: l.component_keys.switchdb,
onRefresh: n.refresh_component
}, null, 8, ["Config", "current_settings", "onRefresh"])) : Object(c["createCommentVNode"])("", !0)]),
_: 1
}), Object(c["createVNode"])(s, {
label: "状态监控",
name: "status"
}, {
default: Object(c["withCtx"])(() => [(Object(c["openBlock"])(), Object(c["createBlock"])(m, {
Config: a.Config,
key: l.component_keys.status
}, null, 8, ["Config"]))]),
_: 1
}), Object(c["createVNode"])(s, {
label: "关于",
name: "about"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(f)]),
_: 1
})]),
_: 1
}, 8, ["modelValue"])])
}
const Ke = {
class: "item-col"
},
ze = {
class: "item-col"
};
function Ue(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("el-input"),
i = Object(c["resolveComponent"])("el-tooltip"),
s = Object(c["resolveComponent"])("el-form-item"),
d = Object(c["resolveComponent"])("el-option"),
p = Object(c["resolveComponent"])("el-option-group"),
b = Object(c["resolveComponent"])("el-select"),
m = Object(c["resolveComponent"])("Plus"),
f = Object(c["resolveComponent"])("el-icon"),
u = Object(c["resolveComponent"])("el-button"),
h = Object(c["resolveComponent"])("Minus"),
g = Object(c["resolveComponent"])("el-col"),
O = Object(c["resolveComponent"])("el-row"),
C = Object(c["resolveComponent"])("el-switch"),
j = Object(c["resolveComponent"])("el-form");
return Object(c["openBlock"])(), Object(c["createBlock"])(j, {
model: l.form,
"label-width": "120px"
}, {
default: Object(c["withCtx"])(() => [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(l.form.LINK, (e, t) => (Object(c["openBlock"])(), Object(c["createElementBlock"])("div", {
key: t,
class: "settings-item"
}, [Object(c["createElementVNode"])("div", Ke, [Object(c["createVNode"])(s, {
label: "link"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
content: "爬取起始页面,填写你的友链页地址",
placement: "left",
"hide-after": 50,
effect: "light"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(r, {
modelValue: l.form.LINK[t].link,
"onUpdate:modelValue": e => l.form.LINK[t].link = e,
placeholder: "示例:https://example.com/link/"
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1024)]),
_: 2
}, 1024)]), Object(c["createElementVNode"])("div", ze, [Object(c["createVNode"])(s, {
label: "theme"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
content: "爬取起始页面的主题",
placement: "left",
"hide-after": 50,
effect: "light"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, {
modelValue: l.form.LINK[t].theme,
"onUpdate:modelValue": e => l.form.LINK[t].theme = e,
placeholder: "Select"
}, {
default: Object(c["withCtx"])(() => [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(l.theme_options, e => (Object(c["openBlock"])(), Object(c["createBlock"])(p, {
key: e.label,
label: e.label
}, {
default: Object(c["withCtx"])(() => [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(e.options, e => (Object(c["openBlock"])(), Object(c["createBlock"])(d, {
key: e.value,
value: e.value
}, null, 8, ["value"]))), 128))]),
_: 2
}, 1032, ["label"]))), 128))]),
_: 2
}, 1032, ["modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1024)]),
_: 2
}, 1024), 0 === t ? (Object(c["openBlock"])(), Object(c["createBlock"])(u, {
key: 0,
circle: "",
class: "cf-manage-main-add-btn",
onClick: n.add_link
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(f, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(m)]),
_: 1
})]),
_: 1
}, 8, ["onClick"])) : Object(c["createCommentVNode"])("", !0), 0 !== t ? (Object(c["openBlock"])(), Object(c["createBlock"])(u, {
key: 1,
circle: "",
class: "cf-manage-main-add-btn",
onClick: e => n.del_link(t)
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(f, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(h)]),
_: 1
})]),
_: 2
}, 1032, ["onClick"])) : Object(c["createCommentVNode"])("", !0)])]))), 128)), (Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(l.form.BLOCK_SITE, (e, t) => (Object(c["openBlock"])(), Object(c["createBlock"])(O, {
key: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(g, {
span: 22,
xs: 15,
sm: 17,
md: 17,
lg: 12,
xl: 12
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
label: "BLOCK_SITE"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
content: "屏蔽站点,支持正则表达式",
placement: "left",
effect: "light"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(r, {
placeholder: "非必填,示例:https://example.com/",
modelValue: l.form.BLOCK_SITE[t],
"onUpdate:modelValue": e => l.form.BLOCK_SITE[t] = e
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1024)]),
_: 2
}, 1024)]),
_: 2
}, 1024), Object(c["createVNode"])(g, {
span: 2
}, {
default: Object(c["withCtx"])(() => [0 === t ? (Object(c["openBlock"])(), Object(c["createBlock"])(u, {
key: 0,
circle: "",
class: "cf-manage-main-add-btn",
onClick: n.add_blocksite
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(f, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(m)]),
_: 1
})]),
_: 1
}, 8, ["onClick"])) : Object(c["createCommentVNode"])("", !0), 0 !== t ? (Object(c["openBlock"])(), Object(c["createBlock"])(u, {
key: 1,
circle: "",
class: "cf-manage-main-add-btn",
onClick: e => n.del_blocksite(t)
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(f, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(h)]),
_: 1
})]),
_: 2
}, 1032, ["onClick"])) : Object(c["createCommentVNode"])("", !0)]),
_: 2
}, 1024)]),
_: 2
}, 1024))), 128)), Object(c["createVNode"])(O, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(g, {
span: 24
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
label: "OUTDATE_CLEAN",
"label-width": "auto"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
content: "数据库文章过期清除时间",
placement: "left",
effect: "light"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(r, {
placeholder: "示例:60",
modelValue: l.form.OUTDATE_CLEAN,
"onUpdate:modelValue": t[0] || (t[0] = e => l.form.OUTDATE_CLEAN = e)
}, null, 8, ["modelValue"])]),
_: 1
})]),
_: 1
})]),
_: 1
})]),
_: 1
}), Object(c["createVNode"])(O, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(g, {
span: 24
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
label: "HTTP_PROXY"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
content: "是否开启http代理,如需开启,打开此选项同时还要在环境变量配置一个代理地址",
placement: "left",
effect: "light"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(C, {
modelValue: l.form.HTTP_PROXY,
"onUpdate:modelValue": t[1] || (t[1] = e => l.form.HTTP_PROXY = e)
}, null, 8, ["modelValue"])]),
_: 1
})]),
_: 1
})]),
_: 1
})]),
_: 1
}), Object(c["createVNode"])(O, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(g, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(u, {
type: "primary",
onClick: n.submit_form
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("保存")]),
_: 1
}, 8, ["onClick"]), Object(c["createVNode"])(u, {
type: "info",
onClick: n.refresh
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("刷新")]),
_: 1
}, 8, ["onClick"])]),
_: 1
})]),
_: 1
})]),
_: 1
})]),
_: 1
}, 8, ["model"])
}
a("14d9");
var Ze = a("c9a1"),
Ge = {
name: "ManagePanelMain_settings",
emits: ["refresh"],
data() {
return {
theme_options: [{
label: "普通主题",
options: [{
value: "butterfly"
}, {
value: "fluid"
}, {
value: "matery"
}, {
value: "nexmoe"
}, {
value: "stun"
}, {
value: "Yun"
}, {
value: "sakura"
}, {
value: "volantis"
}, {
value: "stellar"
}]
}, {
label: "通用主题",
options: [{
value: "common1"
}, {
value: "common2"
}]
}],
form: {
LINK: this.current_settings.LINK,
BLOCK_SITE: this.current_settings.BLOCK_SITE === [] ? this.current_settings.BLOCK_SITE : [""],
OUTDATE_CLEAN: this.current_settings.OUTDATE_CLEAN,
HTTP_PROXY: this.current_settings.HTTP_PROXY
}
}
},
methods: {
add_link() {
this.form.LINK.push({
link: "",
theme: ""
})
},
del_link(e) {
this.form.LINK.splice(e, 1)
},
add_blocksite() {
this.form.BLOCK_SITE.push("")
},
del_blocksite(e) {
this.form.BLOCK_SITE.splice(e, 1)
},
submit_form() {
let e = Ie(),
t = [];
for (let c = 0; c < this.form.BLOCK_SITE.length; c++) "" !== this.form.BLOCK_SITE[c] && t.push(this.form.BLOCK_SITE[c]);
this.form.BLOCK_SITE = t;
let a = this.form;
if (e) {
let t = Le(e);
this.$axios.put(this.Config.private_api_url + "update_settings", a, t).then(e => {
let a = e.data;
200 === a.code ? (Object(Me["a"])({
message: a.message,
type: "success"
}), Ze["a"].confirm("更新成功,下次运行爬虫生效,是否立即运行?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.$axios.get(this.Config.private_api_url + "restart_api", t), Object(Me["a"])({
type: "success",
message: "重启成功"
})
}).catch(e => {
Object(Me["a"])({
type: "info",
message: "已取消"
})
}), this.refresh()) : Object(Me["a"])({
message: a.message,
type: "error"
})
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
})
})
}
},
refresh() {
this.$emit("refresh", "settings")
}
},
props: ["Config", "current_settings"]
};
a("5e0e");
const Je = v()(Ge, [
["render", Ue],
["__scopeId", "data-v-75620860"]
]);
var He = Je;
function qe(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("el-alert"),
i = Object(c["resolveComponent"])("el-divider"),
s = Object(c["resolveComponent"])("el-input"),
d = Object(c["resolveComponent"])("el-form-item"),
p = Object(c["resolveComponent"])("el-col"),
b = Object(c["resolveComponent"])("el-row"),
m = Object(c["resolveComponent"])("el-button"),
f = Object(c["resolveComponent"])("el-form");
return Object(c["openBlock"])(), Object(c["createElementBlock"])(c["Fragment"], null, [Object(c["createVNode"])(r, {
title: "当前部署方式",
type: "success",
description: a.current_settings.DEPLOY_TYPE,
"show-icon": "",
center: "",
closable: !1
}, null, 8, ["description"]), Object(c["createVNode"])(i), Object(c["createVNode"])(f, {
model: l.all_env,
"label-width": "120px"
}, {
default: Object(c["withCtx"])(() => [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(l.all_env, (e, t) => (Object(c["openBlock"])(), Object(c["createBlock"])(b, {
key: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, {
span: 22,
offset: 2
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(d, {
label: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
placeholder: e.placeholder,
modelValue: e.value,
"onUpdate:modelValue": t => e.value = t
}, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1032, ["label"])]),
_: 2
}, 1024)]),
_: 2
}, 1024))), 128)), Object(c["createVNode"])(b, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(d, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(m, {
type: "primary",
onClick: n.submit_form
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("保存")]),
_: 1
}, 8, ["onClick"]), Object(c["createVNode"])(m, {
type: "info",
onClick: n.refresh
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("刷新")]),
_: 1
}, 8, ["onClick"])]),
_: 1
})]),
_: 1
})]),
_: 1
})]),
_: 1
}, 8, ["model"])], 64)
}
var Xe = {
name: "ManagePanelMain_envs",
emits: ["refresh"],
data() {
return {
all_env: {
PROXY: {
value: "",
placeholder: "http代理"
},
APPKEY: {
value: "",
placeholder: "leancloud的APPKEY"
},
APPID: {
value: "",
placeholder: "leancloud的APPID"
},
MYSQL_USERNAME: {
value: "",
placeholder: "mysql用户名"
},
MYSQL_PASSWORD: {
value: "",
placeholder: "mysql密码"
},
MYSQL_IP: {
value: "",
placeholder: "mysql ip地址"
},
MYSQL_PORT: {
value: "",
placeholder: "mysql端口"
},
MYSQL_DB: {
value: "",
placeholder: "mysql 数据库名称"
},
GH_NAME: {
value: "",
placeholder: "github name"
},
GH_EMAIL: {
value: "",
placeholder: "github email"
},
GH_TOKEN: {
value: "",
placeholder: "github access token"
},
MONGODB_URI: {
value: "",
placeholder: "mongodb连接URI"
}
}
}
},
methods: {
submit_form() {
let e = Ie(),
t = {};
for (let c in this.all_env) "" !== this.all_env[c].value && (t[c] = this.all_env[c].value);
let a = !0;
if (e) {
let c = Le(e);
"github" === this.current_settings.DEPLOY_TYPE ? (this.$axios.put(this.Config.private_api_url + "update_github_env", t, c).then(e => {
let t = e.data;
200 !== t.code && (Object(Me["a"])({
message: t.message,
type: "error"
}), a = !1)
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
}), a = !1
}), this.$axios.put(this.Config.private_api_url + "update_vercel_env", t, c).then(e => {
let t = e.data;
200 !== t.code && (Object(Me["a"])({
message: t.message,
type: "error"
}), a = !1)
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
}), a = !1
})) : this.$axios.put(this.Config.private_api_url + "update_server_env", t, c).then(e => {
let t = e.data;
200 !== t.code && (Object(Me["a"])({
message: t.message,
type: "error"
}), a = !1)
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
}), a = !1
}), a && Ze["a"].confirm("更新环境变量成功,重启程序后生效,是否立即重启?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.$axios.get(this.Config.private_api_url + "restart_api", c), Object(Me["a"])({
type: "success",
message: "重启成功"
})
}).catch(e => {
Object(Me["a"])({
type: "info",
message: "已取消"
})
})
} else Object(Me["a"])({
message: "认证失败,未获取到fcircle token",
type: "error"
})
},
refresh() {
this.$emit("refresh", "envs")
}
},
created() {
"github" === this.current_settings.DEPLOY_TYPE ? (this.all_env["STORAGE_TYPE"] = {
value: "",
placeholder: "存储方式"
}, this.all_env["VERCEL_ACCESS_TOKEN"] = {
value: "",
placeholder: "vercel访问令牌"
}) : "server" === this.current_settings.DEPLOY_TYPE ? (this.all_env["EXPOSE_PORT"] = {
value: "",
placeholder: "api端口,默认:8000"
}, this.all_env["RUN_PER_HOURS"] = {
value: "",
placeholder: "爬虫运行小时间隔,默认:6"
}) : this.all_env["RUN_PER_HOURS"] = {
value: "",
placeholder: "爬虫运行小时间隔,默认:6"
};
let e = Ie();
if (e) {
let t = Le(e);
this.$axios.get(this.Config.private_api_url + "read_envs", t).then(e => {
let t = e.data;
if (200 === t.code)
for (let a in t.current_envs) this.all_env[a] && null !== t.current_envs[a] && (this.all_env[a].value = t.current_envs[a]);
else Object(Me["a"])({
message: t.message,
type: "error"
})
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
})
})
} else Object(Me["a"])({
message: "认证失败,未获取到fcircle token",
type: "error"
})
},
props: ["Config", "current_settings"]
};
const We = v()(Xe, [
["render", qe]
]);
var $e = We;
const et = {
key: 0
};
function tt(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("el-switch"),
i = Object(c["resolveComponent"])("el-form-item"),
s = Object(c["resolveComponent"])("el-input"),
d = Object(c["resolveComponent"])("el-col"),
p = Object(c["resolveComponent"])("Plus"),
b = Object(c["resolveComponent"])("el-icon"),
m = Object(c["resolveComponent"])("el-button"),
f = Object(c["resolveComponent"])("el-row"),
u = Object(c["resolveComponent"])("Minus"),
h = Object(c["resolveComponent"])("el-form");
return Object(c["openBlock"])(), Object(c["createElementBlock"])(c["Fragment"], null, [Object(c["createVNode"])(i, {
label: "当前自定义友链状态"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(r, {
modelValue: l.enable,
"onUpdate:modelValue": t[0] || (t[0] = e => l.enable = e)
}, null, 8, ["modelValue"])]),
_: 1
}), Object(c["createVNode"])(h, {
"label-width": "120px"
}, {
default: Object(c["withCtx"])(() => [l.enable ? (Object(c["openBlock"])(), Object(c["createElementBlock"])("div", et, [Object(c["createVNode"])(d, {
span: 24
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
label: "json友链地址",
"label-width": "auto"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
placeholder: "可以是网络地址,也可以是路径(私有部署),示例:https://blogroll.ccknbc.cc/fcircle.json 或 /home/data/fcircle/friends.json",
modelValue: l.json_api,
"onUpdate:modelValue": t[1] || (t[1] = e => l.json_api = e)
}, null, 8, ["modelValue"])]),
_: 1
})]),
_: 1
}), Object(c["createVNode"])(f, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
label: "点击添加一条友链",
"label-width": "auto"
}), Object(c["createVNode"])(d, {
span: 2
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(m, {
circle: "",
onClick: n.add_link
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p)]),
_: 1
})]),
_: 1
}, 8, ["onClick"])]),
_: 1
})]),
_: 1
}), (Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(l.list, (e, t) => (Object(c["openBlock"])(), Object(c["createBlock"])(f, {
key: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(d, {
span: 6
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
label: "名称",
"label-width": "50px"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
modelValue: e[0],
"onUpdate:modelValue": t => e[0] = t
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1024)]),
_: 2
}, 1024), Object(c["createVNode"])(d, {
span: 6
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
label: "主页",
"label-width": "50px"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
modelValue: e[1],
"onUpdate:modelValue": t => e[1] = t
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1024)]),
_: 2
}, 1024), Object(c["createVNode"])(d, {
span: 6
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
label: "头像",
"label-width": "50px"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
modelValue: e[2],
"onUpdate:modelValue": t => e[2] = t
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1024)]),
_: 2
}, 1024), Object(c["createVNode"])(d, {
span: 5
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, {
label: "后缀",
"label-width": "50px"
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(s, {
modelValue: e[3],
"onUpdate:modelValue": t => e[3] = t
}, null, 8, ["modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1024)]),
_: 2
}, 1024), Object(c["createVNode"])(d, {
span: 1
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(m, {
circle: "",
onClick: e => n.del_link(t)
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(u)]),
_: 1
})]),
_: 2
}, 1032, ["onClick"])]),
_: 2
}, 1024)]),
_: 2
}, 1024))), 128))])) : Object(c["createCommentVNode"])("", !0), Object(c["createVNode"])(f, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(d, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(i, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(m, {
type: "primary",
onClick: n.submit_form
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("保存")]),
_: 1
}, 8, ["onClick"]), Object(c["createVNode"])(m, {
type: "info",
onClick: n.refresh
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("刷新")]),
_: 1
}, 8, ["onClick"])]),
_: 1
})]),
_: 1
})]),
_: 1
})]),
_: 1
})], 64)
}
var at = {
name: "ManagePanelMain_links",
emits: ["refresh"],
data() {
return {
enable: this.current_settings.SETTINGS_FRIENDS_LINKS.enable,
list: [],
json_api: ""
}
},
methods: {
add_link() {
this.list.push(["", "", ""])
},
del_link(e) {
this.list.splice(e, 1)
},
submit_form() {
let e = Ie(),
t = {};
t["enable"] = this.enable, t["json_api"] = this.json_api;
let a = [];
for (let o = 0; o < this.list.length; o++) this.list[o][0] === this.list[o][1] === this.list[o][2] !== "" && a.push(this.list[o]);
t["list"] = a;
let c = {
SETTINGS_FRIENDS_LINKS: t
};
if (e) {
let t = Le(e);
this.$axios.put(this.Config.private_api_url + "update_settings", c, t).then(e => {
let t = e.data;
200 === t.code ? (Object(Me["a"])({
message: t.message,
type: "success"
}), this.refresh()) : Object(Me["a"])({
message: t.message,
type: "error"
})
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
})
})
}
},
refresh() {
this.$emit("refresh", "links")
}
},
created() {
for (let e = 0; e < this.current_settings.SETTINGS_FRIENDS_LINKS.list.length; e++) {
let t = this.current_settings.SETTINGS_FRIENDS_LINKS.list[e];
3 === t.length ? this.list.push([t[0], t[1], t[2]]) : 4 === t.length && this.list.push([t[0], t[1], t[2], t[3]])
}
this.json_api = this.current_settings.SETTINGS_FRIENDS_LINKS.json_api
},
props: ["Config", "current_settings"]
};
const ct = v()(at, [
["render", tt]
]);
var ot = ct;
const lt = e => (Object(c["pushScopeId"])("data-v-30fd6fc6"), e = e(), Object(c["popScopeId"])(), e),
nt = lt(() => Object(c["createElementVNode"])("div", {
class: "cf-manage-tip"
}, "如需切换数据库,请配置对应环境变量,然后点击保存:", -1));
function rt(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("el-alert"),
i = Object(c["resolveComponent"])("el-radio"),
s = Object(c["resolveComponent"])("el-radio-group"),
d = Object(c["resolveComponent"])("el-input"),
p = Object(c["resolveComponent"])("el-form-item"),
b = Object(c["resolveComponent"])("el-col"),
m = Object(c["resolveComponent"])("el-row"),
f = Object(c["resolveComponent"])("el-button"),
u = Object(c["resolveComponent"])("el-form");
return Object(c["openBlock"])(), Object(c["createElementBlock"])(c["Fragment"], null, [Object(c["createVNode"])(r, {
title: "当前使用数据库",
type: "success",
description: a.current_settings.DATABASE,
"show-icon": "",
center: "",
closable: !1
}, null, 8, ["description"]), nt, Object(c["createVNode"])(s, {
modelValue: l.current_db,
"onUpdate:modelValue": t[0] || (t[0] = e => l.current_db = e)
}, {
default: Object(c["withCtx"])(() => ["sqlite" !== this.current_settings.DATABASE ? (Object(c["openBlock"])(), Object(c["createBlock"])(i, {
key: 0,
label: "sqlite"
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("sqlite")]),
_: 1
})) : Object(c["createCommentVNode"])("", !0), "leancloud" !== this.current_settings.DATABASE ? (Object(c["openBlock"])(), Object(c["createBlock"])(i, {
key: 1,
label: "leancloud"
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("leancloud")]),
_: 1
})) : Object(c["createCommentVNode"])("", !0), "mysql" !== this.current_settings.DATABASE ? (Object(c["openBlock"])(), Object(c["createBlock"])(i, {
key: 2,
label: "mysql"
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("mysql")]),
_: 1
})) : Object(c["createCommentVNode"])("", !0), "mongodb" !== this.current_settings.DATABASE ? (Object(c["openBlock"])(), Object(c["createBlock"])(i, {
key: 3,
label: "mongodb"
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("mongodb")]),
_: 1
})) : Object(c["createCommentVNode"])("", !0)]),
_: 1
}, 8, ["modelValue"]), "sqlite" === l.current_db ? (Object(c["openBlock"])(), Object(c["createBlock"])(u, {
key: 0,
model: l.sqlite_env,
"label-width": "120px"
}, {
default: Object(c["withCtx"])(() => [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(l.sqlite_env, (e, t) => (Object(c["openBlock"])(), Object(c["createBlock"])(m, {
key: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, {
span: 22,
offset: 2
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, {
label: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(d, {
placeholder: e.placeholder,
modelValue: e.value,
"onUpdate:modelValue": t => e.value = t
}, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1032, ["label"])]),
_: 2
}, 1024)]),
_: 2
}, 1024))), 128)), Object(c["createVNode"])(m, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(f, {
type: "primary",
onClick: n.submit_form
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("保存")]),
_: 1
}, 8, ["onClick"]), Object(c["createVNode"])(f, {
type: "info",
onClick: n.refresh
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("刷新")]),
_: 1
}, 8, ["onClick"])]),
_: 1
})]),
_: 1
})]),
_: 1
})]),
_: 1
}, 8, ["model"])) : Object(c["createCommentVNode"])("", !0), "leancloud" === l.current_db ? (Object(c["openBlock"])(), Object(c["createBlock"])(u, {
key: 1,
model: l.leancloud_env,
"label-width": "120px"
}, {
default: Object(c["withCtx"])(() => [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(l.leancloud_env, (e, t) => (Object(c["openBlock"])(), Object(c["createBlock"])(m, {
key: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, {
span: 22,
offset: 2
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, {
label: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(d, {
placeholder: e.placeholder,
modelValue: e.value,
"onUpdate:modelValue": t => e.value = t
}, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1032, ["label"])]),
_: 2
}, 1024)]),
_: 2
}, 1024))), 128)), Object(c["createVNode"])(m, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(f, {
type: "primary",
onClick: n.submit_form
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("保存")]),
_: 1
}, 8, ["onClick"]), Object(c["createVNode"])(f, {
type: "info",
onClick: n.refresh
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("刷新")]),
_: 1
}, 8, ["onClick"])]),
_: 1
})]),
_: 1
})]),
_: 1
})]),
_: 1
}, 8, ["model"])) : Object(c["createCommentVNode"])("", !0), "mysql" === l.current_db ? (Object(c["openBlock"])(), Object(c["createBlock"])(u, {
key: 2,
model: l.mysql_env,
"label-width": "120px"
}, {
default: Object(c["withCtx"])(() => [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(l.mysql_env, (e, t) => (Object(c["openBlock"])(), Object(c["createBlock"])(m, {
key: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, {
span: 22,
offset: 2
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, {
label: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(d, {
placeholder: e.placeholder,
modelValue: e.value,
"onUpdate:modelValue": t => e.value = t
}, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1032, ["label"])]),
_: 2
}, 1024)]),
_: 2
}, 1024))), 128)), Object(c["createVNode"])(m, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(f, {
type: "primary",
onClick: n.submit_form
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("保存")]),
_: 1
}, 8, ["onClick"]), Object(c["createVNode"])(f, {
type: "info",
onClick: n.refresh
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("刷新")]),
_: 1
}, 8, ["onClick"])]),
_: 1
})]),
_: 1
})]),
_: 1
})]),
_: 1
}, 8, ["model"])) : Object(c["createCommentVNode"])("", !0), "mongodb" === l.current_db ? (Object(c["openBlock"])(), Object(c["createBlock"])(u, {
key: 3,
model: l.mongodb_env,
"label-width": "120px"
}, {
default: Object(c["withCtx"])(() => [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(l.mongodb_env, (e, t) => (Object(c["openBlock"])(), Object(c["createBlock"])(m, {
key: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, {
span: 22,
offset: 2
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, {
label: t
}, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(d, {
placeholder: e.placeholder,
modelValue: e.value,
"onUpdate:modelValue": t => e.value = t
}, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue"])]),
_: 2
}, 1032, ["label"])]),
_: 2
}, 1024)]),
_: 2
}, 1024))), 128)), Object(c["createVNode"])(m, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(b, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(p, null, {
default: Object(c["withCtx"])(() => [Object(c["createVNode"])(f, {
type: "primary",
onClick: n.submit_form
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("保存")]),
_: 1
}, 8, ["onClick"]), Object(c["createVNode"])(f, {
type: "info",
onClick: n.refresh
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("刷新")]),
_: 1
}, 8, ["onClick"])]),
_: 1
})]),
_: 1
})]),
_: 1
})]),
_: 1
}, 8, ["model"])) : Object(c["createCommentVNode"])("", !0)], 64)
}
var it = {
name: "ManagePanelMain_switchdb",
emits: ["refresh"],
data() {
return {
current_db: null,
sqlite_env: {
GH_NAME: {
value: "",
placeholder: "github name"
},
GH_EMAIL: {
value: "",
placeholder: "github email"
},
GH_TOKEN: {
value: "",
placeholder: "github access token"
}
},
leancloud_env: {
APPKEY: {
value: "",
placeholder: "leancloud的APPKEY"
},
APPID: {
value: "",
placeholder: "leancloud的APPID"
}
},
mysql_env: {
MYSQL_USERNAME: {
value: "",
placeholder: "mysql用户名"
},
MYSQL_PASSWORD: {
value: "",
placeholder: "mysql密码"
},
MYSQL_IP: {
value: "",
placeholder: "mysql ip地址"
},
MYSQL_PORT: {
value: "",
placeholder: "mysql端口"
},
MYSQL_DB: {
value: "",
placeholder: "mysql 数据库名称"
}
},
mongodb_env: {
MONGODB_URI: {
value: "",
placeholder: "mongodb连接URI"
}
}
}
},
methods: {
submit_form() {
let e = Ie(),
t = !0;
if (e) {
let a = {};
if ("sqlite" === this.current_db) {
for (let e in this.sqlite_env) {
if ("" === this.sqlite_env[e].value) return void Object(Me["a"])({
message: "请确保环境变量已添加",
type: "error"
});
a[e] = this.sqlite_env[e].value
}
a["STORAGE_TYPE"] = "sqlite"
}
if ("leancloud" === this.current_db) {
for (let e in this.leancloud_env) {
if ("" === this.leancloud_env[e].value) return void Object(Me["a"])({
message: "请确保环境变量已添加",
type: "error"
});
a[e] = this.leancloud_env[e].value
}
a["STORAGE_TYPE"] = "leancloud"
}
if ("mysql" === this.current_db) {
for (let e in this.mysql_env) {
if ("" === this.mysql_env[e].value) return void Object(Me["a"])({
message: "请确保环境变量已添加",
type: "error"
});
a[e] = this.mysql_env[e].value
}
a["STORAGE_TYPE"] = "mysql"
}
if ("mongodb" === this.current_db) {
for (let e in this.mongodb_env) {
if ("" === this.mongodb_env[e].value) return void Object(Me["a"])({
message: "请确保环境变量已添加",
type: "error"
});
a[e] = this.mongodb_env[e].value
}
a["STORAGE_TYPE"] = "mongodb"
}
let c = Le(e);
"github" === this.current_settings.DEPLOY_TYPE ? (this.$axios.put(this.Config.private_api_url + "update_github_env", a, c).then(e => {
let a = e.data;
200 !== a.code && (Object(Me["a"])({
message: a.message,
type: "error"
}), t = !1)
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
}), t = !1
}), this.$axios.put(this.Config.private_api_url + "update_vercel_env", a, c).then(e => {
let a = e.data;
200 !== a.code && (Object(Me["a"])({
message: a.message,
type: "error"
}), t = !1)
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
}), t = !1
})) : this.$axios.put(this.Config.private_api_url + "update_server_env", a, c).then(e => {
let a = e.data;
200 !== a.code && (Object(Me["a"])({
message: a.message,
type: "error"
}), t = !1)
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
}), t = !1
}), a = {
DATABASE: this.current_db
}, this.$axios.put(this.Config.private_api_url + "update_settings", a, c).then(e => {
let a = e.data;
200 === a.code ? Object(Me["a"])({
message: a.message,
type: "success"
}) : Object(Me["a"])({
message: a.message,
type: "error"
}), t = !1
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
}), t = !1
}), t && Ze["a"].confirm("更新环境变量成功,重启程序后生效,是否立即重启?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.$axios.get(this.Config.private_api_url + "restart_api", c), Object(Me["a"])({
type: "success",
message: "重启成功"
})
}).catch(e => {
Object(Me["a"])({
type: "info",
message: "已取消"
})
})
} else Object(Me["a"])({
message: "认证失败,未获取到fcircle token",
type: "error"
});
this.refresh()
},
refresh() {
this.$emit("refresh", "switchdb")
}
},
created() {
this.current_db = this.current_settings.DATABASE
},
props: ["Config", "current_settings"]
};
a("7232");
const st = v()(it, [
["render", rt],
["__scopeId", "data-v-30fd6fc6"]
]);
var dt = st;
function pt(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("el-alert"),
i = Object(c["resolveComponent"])("el-button");
return Object(c["openBlock"])(), Object(c["createElementBlock"])(c["Fragment"], null, [Object(c["createVNode"])(r, {
title: "程序运行状态:",
type: "success",
description: l.status,
"show-icon": "",
center: "",
closable: !1
}, null, 8, ["description"]), Object(c["createVNode"])(i, {
class: "cf-manage-center-btn",
type: "primary",
disabled: "运行中" === l.status,
onClick: n.run_crawler
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("立即运行爬虫 ")]),
_: 1
}, 8, ["disabled", "onClick"]), Object(c["createVNode"])(i, {
class: "cf-manage-center-btn",
type: "primary",
onClick: n.check_crawler_status
}, {
default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])("检测运行状态 ")]),
_: 1
}, 8, ["onClick"])], 64)
}
var bt = {
name: "ManagePanelMain_status",
data() {
return {
status: "未知",
timer: null
}
},
methods: {
run_crawler() {
let e = Ie();
if (e) {
let t = Le(e);
this.$axios.get(this.Config.private_api_url + "run_crawl_now", t).then(e => {
let t = e.data;
200 === t.code ? (Object(Me["a"])({
message: t.message,
type: "success"
}), this.status = "运行中", setTimeout(this.check_crawler_status, 5e3), this.check_crawler_status()) : Object(Me["a"])({
message: t.message,
type: "error"
})
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
})
})
}
},
check_crawler_status() {
let e = Ie();
if (e) {
let t = Le(e);
this.$axios.get(this.Config.private_api_url + "crawler_status", t).then(e => {
let t = e.data;
"运行中" !== t.status && "未运行" !== t.status && "未知" !== t.status ? this.status = "未知" : this.status = t.status
}).catch(() => {
this.status = "未知"
})
}
null !== this.timer && clearTimeout(this.timer), "运行中" === this.status ? this.timer = setTimeout(this.check_crawler_status, 1e4) : this.timer = setTimeout(this.check_crawler_status, 6e4)
}
},
created() {
this.check_crawler_status()
},
unmounted() {
null !== this.timer && clearTimeout(this.timer)
},
unmounted() {
null !== this.timer && clearTimeout(this.timer)
},
props: ["Config"]
};
a("e9a4");
const mt = v()(bt, [
["render", pt],
["__scopeId", "data-v-593a2f92"]
]);
var ft = mt;
const ut = Object(c["createElementVNode"])("p", null, "适配友链朋友圈5.0", -1),
ht = Object(c["createElementVNode"])("p", null, [Object(c["createTextVNode"])("Powered By:"), Object(c["createElementVNode"])("a", {
href: "https://www.yyyzyyyz.cn/",
target: "_blank"
}, "yyyz")], -1),
gt = Object(c["createElementVNode"])("p", null, [Object(c["createTextVNode"])("朋友圈logo、样式设计:"), Object(c["createElementVNode"])("a", {
href: "https://blog.zhheo.com/",
target: "_blank"
}, "Heo")], -1),
Ot = Object(c["createElementVNode"])("p", null, [Object(c["createTextVNode"])("原版样式基于:"), Object(c["createElementVNode"])("a", {
href: "https://immmmm.com/",
target: "_blank"
}, "林木木")], -1),
Ct = Object(c["createElementVNode"])("p", null, [Object(c["createTextVNode"])("前端疑难杂症解决:"), Object(c["createElementVNode"])("a", {
href: "https://anzhiy.cn/",
target: "_blank"
}, "安知鱼")], -1),
jt = Object(c["createElementVNode"])("p", null, [Object(c["createTextVNode"])("组件库:"), Object(c["createElementVNode"])("a", {
href: "https://element-plus.gitee.io/zh-CN/",
target: "_blank"
}, "Element Plus")], -1);
function vt(e, t, a, o, l, n) {
const r = Object(c["resolveComponent"])("el-divider");
return Object(c["openBlock"])(), Object(c["createElementBlock"])(c["Fragment"], null, [ut, ht, Object(c["createVNode"])(r), Object(c["createTextVNode"])(" 鸣谢: "), gt, Ot, Ct, jt], 64)
}
var _t = {
name: "ManagePanelMain_settings"
};
const xt = v()(_t, [
["render", vt]
]);
var wt = xt,
kt = a("2295"),
Vt = {
name: "ManagePanelMain",
emits: ["logout"],
data() {
return {
current_tab: "settings",
current_settings: null,
component_keys: {
settings: 0,
envs: 0,
links: 0,
switchdb: 0,
status: 0
}
}
},
methods: {
logout() {
localStorage.removeItem("fcircle-token"), this.$emit("logout")
},
change_current_component(e) {
this.show_login_page = !1, this.current_component !== e && (this.current_component = e)
},
read_current_settings() {
let e = Ie();
if (e) {
let t = Le(e);
this.$axios.get(this.Config.private_api_url + "read_settings", t).then(e => {
let t = e.data;
200 === t.code ? this.current_settings = t.current_settings : Object(Me["a"])({
message: t.message,
type: "error"
})
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
})
})
}
},
refresh_component(e) {
this.read_current_settings(), this.component_keys[e] += 1
}
},
created() {
this.read_current_settings(), this.$axios.get(this.Config.private_api_url + "version").then(e => {
1 === e.data.status && Object(kt["a"])({
title: "版本更新提示",
message: "检测到后端新版本:" + e.data.latest_version + ",然而当前版本为:" + e.data.current_version + ",请及时更新后端版本",
type: "warning"
})
}), this.$axios.get("https://fcircle-doc.yyyzyyyz.cn/front_version.txt").then(e => {
e.data !== this.$fcircle_front_version && Object(kt["a"])({
title: "版本更新提示",
message: "检测到前端新版本:" + e.data + ",然而当前版本为:" + this.$fcircle_front_version + ",请及时更新前端版本",
type: "warning"
})
})
},
props: ["Config"],
components: {
ManagePanelMain_settings: He,
ManagePanelMain_envs: $e,
ManagePanelMain_links: ot,
ManagePanelMain_switchdb: dt,
ManagePanelMain_status: ft,
ManagePanelMain_about: wt
}
};
a("fe56");
const At = v()(Vt, [
["render", Qe],
["__scopeId", "data-v-668b627c"]
]);
var Nt = At,
Et = {
name: "ManagePanel",
emits: ["close_manage_panel"],
data() {
return {
show_login_page: !0
}
},
methods: {
close_manage_panel() {
this.$emit("close_manage_panel")
},
login_success() {
this.show_login_page = !1
},
logout() {
this.show_login_page = !0
}
},
props: ["Config"],
components: {
ManagePanelLogin: De,
ManagePanelMain: Nt
}
};
a("fd9b");
const yt = v()(Et, [
["render", Ae],
["__scopeId", "data-v-34921c7c"]
]);
var Bt = yt;
let Lt = {
private_api_url: "https://moments.zhheo.com/",
public_api_url: "https://fcircle-pub.rct.cool/",
page_turning_number: 12,
error_img: "https://sdn.geekzu.org/avatar/57d8260dfb55501c37dde588e7c3852c",
sort_rule: "created"
};
var It = Lt;
function Mt(e) {
if ("undefined" !== typeof UserConfig)
for (let t in UserConfig) e[t] && (e[t] = UserConfig[t]);
return e
}
var St = {
name: "App",
data() {
return {
Config: It,
current_api: null,
change_map: {
updated: null,
created: null
},
article_card_data: {
open: !1,
data: null
},
manage_panel_open: !1
}
},
methods: {
get_data(e) {
let t = JSON.parse(sessionStorage.getItem(e + "CreatedData")),
a = JSON.parse(sessionStorage.getItem(e + "UpdatedData"));
this.change_map["created"] = t, this.change_map["updated"] = a, null === t && this.$axios.get(e + "all?rule=created").then(t => {
sessionStorage.setItem(e + "CreatedData", JSON.stringify(t.data)), this.change_map["created"] = t.data
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
})
}), null === a && this.$axios.get(e + "all?rule=updated").then(t => {
sessionStorage.setItem(e + "UpdatedData", JSON.stringify(t.data)), this.change_map["updated"] = t.data
}).catch(e => {
Object(Me["a"])({
message: e.message,
type: "error"
})
})
},
change_sort_rule(e) {
this.Config.sort_rule = e
},
open_article_card(e) {
let t, a = "private" === this.current_api ? this.Config.private_api_url : this.Config.public_api_url;
t = "" !== e ? a + "post?num=5&link=" + e : a + "post?num=5", this.$axios.get(t).then(e => {
"statistical_data" in e.data ? (this.article_card_data.data = e.data, this.article_card_data.open = !0) : Object(Me["a"])({
message: "未获取到文章卡片òᆺó\n如果持续出现此错误,检查数据库是否正常",
type: "error"
})
})
},
close_article_card() {
this.article_card_data.open = !1
},
toggle_api_url() {
"private" === this.current_api ? (this.current_api = "public", this.get_data(this.Config.public_api_url)) : (this.current_api = "private", this.get_data(this.Config.private_api_url))
},
open_manage_panel() {
this.manage_panel_open = !0
},
close_manage_panel() {
this.manage_panel_open = !1
}
},
created() {
this.Config = Mt(this.Config), this.current_api = "private", this.get_data(this.Config.private_api_url)
},
components: {
Header: x,
ArticleBody: ne,
ArticleCard: ve,
ManagePanel: Bt
}
};
a("d18f");
const Tt = v()(St, [
["render", r]
]);
var Dt = Tt,
Ft = a("bc3a"),
Pt = a.n(Ft),
Rt = a("c3a1"),
Yt = (a("7437"), a("a2f0"), a("9224")),
Qt = a("f6f2");
const Kt = Object(c["createApp"])(Dt);
Kt.use(Rt["a"]);
for (const [zt, Ut] of Object.entries(Qt)) Kt.component(zt, Ut);
Kt.config.globalProperties.$axios = Pt.a, Kt.config.globalProperties.$fcircle_front_version = Yt.version, Kt.mount("#hexo-circle-of-friends-root")
},
"594a": function (e, t, a) {
var c = a("4ae4");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("5d03b462", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
5974: function (e, t, a) {
"use strict";
a("2ac5")
},
"5c8d": function (e, t, a) {
var c = a("bd0b");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("003822fc", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
"5e0e": function (e, t, a) {
"use strict";
a("1799")
},
7232: function (e, t, a) {
"use strict";
a("991d")
},
"7d5b": function (e, t, a) {
"use strict";
a("5c8d")
},
"8e53": function (e, t, a) {
var c = a("1feb");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("312900a6", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
"8fd2": function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, "#page:has(#hexo-circle-of-friends-root){-webkit-backdrop-filter:none!important;backdrop-filter:none!important;transform:none!important;transition:none!important}.el-button:focus,.el-button:hover{color:var(--heo-main)!important}.el-form-item__label{color:#fff!important}", ""]), e.exports = t
},
"91a2": function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, ".cf-manage-main-add-btn[data-v-30fd6fc6]{margin-left:30px}.cf-manage-tip[data-v-30fd6fc6]{color:#fff}", ""]), e.exports = t
},
9224: function (e) {
e.exports = JSON.parse('{"name":"fcircle-theme-yyyz","version":"1.0.3","private":false,"scripts":{"serve":"vue-cli-service serve","build":"vue-cli-service build","lint":"vue-cli-service lint"},"dependencies":{"@element-plus/icons-vue":"^2.0.9","axios":"^0.27.2","core-js":"^3.6.5","element-plus":"^2.2.17","vue":"^3.0.0"},"devDependencies":{"@vue/cli-plugin-babel":"~4.5.15","@vue/cli-plugin-eslint":"~4.5.15","@vue/cli-service":"~4.5.15","@vue/compiler-sfc":"^3.0.0","@vue/eslint-config-standard":"^5.1.2","babel-eslint":"^10.1.0","eslint":"^6.7.2","eslint-plugin-import":"^2.20.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.0","eslint-plugin-vue":"^7.0.0"},"description":"```\\r npm install\\r ```","files":["dist/app.min.js","dist/bundle.js"],"main":".eslintrc.js","repository":{"type":"git","url":"git+https://github.com/hiltay/hexo-circle-of-friends-front.git"},"keywords":["yyyz","5.x","友链朋友圈前端插件"],"author":"yyyz","license":"ISC","bugs":{"url":"https://github.com/hiltay/hexo-circle-of-friends-front/issues"},"homepage":"https://github.com/hiltay/hexo-circle-of-friends-front#readme"}')
},
"991d": function (e, t, a) {
var c = a("91a2");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("665ae4a5", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
a2f0: function (e, t, a) {
var c = a("8fd2");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("6abc6200", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
bd0b: function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, ".fade-enter-active[data-v-31c20c7f],.fade-leave-active[data-v-31c20c7f]{transition:opacity .1s}.fade-enter[data-v-31c20c7f],.fade-leave-to[data-v-31c20c7f]{opacity:0}#cf-overlay-group[data-v-31c20c7f]{display:flex;position:fixed;align-items:center;justify-content:center;width:100vw;height:100vh;z-index:100;top:0;left:0}#cf-overlay[data-v-31c20c7f]{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--pyq-maskbgdeep);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);overflow-y:auto;pointer-events:all;transition:all .1s ease;z-index:998;animation:cf-show-31c20c7f .3s ease-in-out}@keyframes cf-show-31c20c7f{0%{opacity:0}to{opacity:1}}@keyframes cf-show-move-31c20c7f{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.cf-overshow[data-v-31c20c7f]{text-align:center;border-radius:12px;width:320px;transform:translateY(0);box-shadow:0 12px 40px rgba(0,0,0,.093);background:var(--pyq-background);transition:all .1s ease;z-index:999;padding:16px;border:var(--pyq-boder);animation:cf-show-move-31c20c7f .3s ease-in-out;margin:auto}.cf-overshow-head[data-v-31c20c7f]{display:flex;flex-direction:column;align-items:center;padding-bottom:.5rem;margin-bottom:.5rem;border-bottom:1px dashed var(--pyq-secondtext)}.cf-overshow-head img.cf-img-avatar[data-v-31c20c7f]:hover{transform:rotate(1turn);transition:.8s}.cf-overshow .cf-overshow-head a[data-v-31c20c7f]{color:var(--pyq-fontcolor);display:block;text-align:center;font-weight:700;margin-top:-5px;padding:5px 8px 5px;text-decoration:none;width:-moz-fit-content;width:fit-content}.cf-overshow img.cf-img-avatar[data-v-31c20c7f]{background:#fff;width:80px;height:80px;border-radius:50%;margin:-45px auto 8px;transform:rotate(-1turn);transition:.8s}.cf-overshow p[data-v-31c20c7f]{margin:.3rem 5px;width:100%;position:relative;display:flex;flex-direction:column;align-items:flex-start}.cf-overshow p a.cf-article-title[data-v-31c20c7f]{text-decoration:none;display:block;text-align:left;position:relative;z-index:2;font-size:15px;line-height:1.2;letter-spacing:normal;max-height:50px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--pyq-fontcolor);width:-moz-fit-content;width:fit-content;font-weight:700}.cf-overshow p span[data-v-31c20c7f]{position:relative;z-index:1;font-size:12px;margin-top:8px}@media screen and (max-width:768px){.cf-overshow[data-v-31c20c7f]{width:90%}.cf-overshow img.cf-img-avatar[data-v-31c20c7f]{margin:0}}.cf-overshow .cf-overshow-content[data-v-31c20c7f]{padding:2px 3px 7px}.cf-overshow .cf-overshow-content-tail[data-v-31c20c7f]{padding:2px 3px 7px;border-bottom-left-radius:20px;border-bottom-right-radius:20px}", ""]), e.exports = t
},
be21: function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, ".cf-manage-logo[data-v-735984d8]{top:25%}.cf-manage-logo[data-v-735984d8],.cf-manage-title[data-v-735984d8]{position:absolute;transform:translate(-50%,-50%);left:50%}.cf-manage-title[data-v-735984d8]{top:35%;color:#fff;font-size:24px;font-family:PingFangSC-Regular;text-align:center;white-space:nowrap;line-height:33px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cf-manage-input[data-v-735984d8]{top:45%}.cf-manage-input[data-v-735984d8],.cf-manage-login-btn[data-v-735984d8]{position:absolute;transform:translate(-50%,-50%);max-width:50%;left:50%}.cf-manage-login-btn[data-v-735984d8]{top:60%}", ""]), e.exports = t
},
d18f: function (e, t, a) {
"use strict";
a("8e53")
},
e9a4: function (e, t, a) {
"use strict";
a("f61c")
},
ea03: function (e, t, a) {
"use strict";
a("5145")
},
f2b1: function (e, t, a) {
var c = a("24fb");
t = c(!1), t.push([e.i, ".cf-manage-center-btn[data-v-593a2f92]{margin-top:30px}", ""]), e.exports = t
},
f61c: function (e, t, a) {
var c = a("f2b1");
c.__esModule && (c = c.default), "string" === typeof c && (c = [
[e.i, c, ""]
]), c.locals && (e.exports = c.locals);
var o = a("499e").default;
o("c21bbef8", c, !0, {
sourceMap: !1,
shadowMode: !1
})
},
fd9b: function (e, t, a) {
"use strict";
a("2375")
},
fe56: function (e, t, a) {
"use strict";
a("1b92")
},
ff61: function (e, t, a) {
"use strict";
a("594a")
}
});
}
// 设置说说页面的回调函数
function cross_pjax(){
var hasLogin = 0 //没登录隐藏编辑归档按钮
var memosData = {
dom:'#memos',
}
var bbMemo = {
memos: 'https://memos.koobai.com/',
limit: '15',
creatorId: '101',
domId: '#bber',
};
if(typeof(bbMemos) !=="undefined"){
for(var key in bbMemos) {
if(bbMemos[key]){
bbMemo[key] = bbMemos[key];
}
}
}
function loadCssCode(code){
var style = document.createElement('style');
style.type = 'text/css';
style.rel = 'stylesheet';
style.appendChild(document.createTextNode(code));
var head = document.getElementsByTagName('head')[0];
head.appendChild(style);
}
var limit = bbMemo.limit
var memos = bbMemo.memos
var mePage = 1,offset = 0,nextLength = 0,nextDom='';
var bbDom = document.querySelector(bbMemo.domId);
var load = '<div class="bb-load"><button class="load-btn button-load">加载中……</button></div>'
// 增加memos编辑及归档
var memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
var memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
var getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display");
if(bbDom){
getFirstList() //首次加载数据
// meNums() //加载总数
var btn = document.querySelector("button.button-load");
btn.addEventListener("click", function () {
btn.textContent= '加载中……';
updateHTMl(nextDom)
if(nextLength < limit){ //返回数据条数小于限制条数,隐藏
document.querySelector("button.button-load").remove()
return
}
getNextList()
});
}
function initCircle(){
var limit = bbMemo.limit
var memos = bbMemo.memos
var mePage = 1,offset = 0,nextLength = 0,nextDom='';
var bbDom = document.querySelector(bbMemo.domId);
var load = '<div class="bb-load"><button class="load-btn button-load">加载中……</button></div>'
// 增加memos编辑及归档
var memosOpenId = window.localStorage && window.localStorage.getItem("memos-access-token");
var memosPath = window.localStorage && window.localStorage.getItem("memos-access-path");
var getEditor = window.localStorage && window.localStorage.getItem("memos-editor-display");
if(bbDom){
getFirstList() //首次加载数据
// meNums() //加载总数
var btn = document.querySelector("button.button-load");
btn.addEventListener("click", function () {
btn.textContent= '加载中……';
updateHTMl(nextDom)
if(nextLength < limit){ //返回数据条数小于限制条数,隐藏
document.querySelector("button.button-load").remove()
return
}
getNextList()
});
}
}
function getFirstList(){
bbDom.insertAdjacentHTML('afterend', load);
let tagHtml = `<div class="memos-search-all img-hide">
<div class="memos-search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-auto opacity-30 dark:text-gray-200"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.3-4.3"></path></svg>
<input type="text" id="memos-search-input" placeholder="输入关键词,搜索博主的动态..." onkeydown="searchMemoevent(event)">
</div>
<div id="tag-list-all"></div>
</div>
<div id="tag-list"></div>` // TAG筛选 memos搜索
bbDom.insertAdjacentHTML('beforebegin', tagHtml); // TAG筛选
showTaglist(); // 显示所有 TAG
var bbUrl = memos+"api/v1/memo?creatorId="+bbMemo.creatorId+"&rowStatus=NORMAL&limit="+limit;
fetch(bbUrl).then(res => res.json()).then( resdata =>{
updateHTMl(resdata);
var nowLength = resdata.length;
if(nowLength < limit){ //返回数据条数小于 limit 则直接移除“加载更多”按钮,中断预加载
document.querySelector("button.button-load").remove()
return
}
mePage++
offset = limit*(mePage-1)
getNextList()
});
}
//预加载下一页数据
function getNextList(){
var bbUrl = memos+"api/v1/memo?creatorId="+bbMemo.creatorId+"&rowStatus=NORMAL&limit="+limit+"&offset="+offset;
fetch(bbUrl).then(res => res.json()).then( resdata =>{
nextDom = resdata;
nextLength = nextDom.length
mePage++
offset = limit*(mePage-1)
if(nextLength < 1){ //返回数据条数为 0 ,隐藏
document.querySelector("button.button-load").remove()
return
}
//在未展开评论时,默认显示评论数
Artalk.loadCountWidget({
server: 'https://artalk.usj.cc/',
site: '优世界',
countEl: '#ArtalkCount'
});
})
}
//加载总 Memos 数
function meNums() {
var bbLoad = document.querySelector('.bb-load');
var bbUrl = memos + "api/v1/memo/stats?creatorId=" + bbMemo.creatorId;
fetch(bbUrl).then(res => res.json()).then(resdata => {
if (Array.isArray(resdata)) {
var allnums = '&nbsp;博主共发布了 ' + resdata.length + ' 条动态🎉 ';
bbLoad.insertAdjacentHTML('afterend', allnums);
}
});
}
// 插入 html
function updateHTMl(data){
var result="",resultAll="";
//登录显示编辑归档按钮
if(memosOpenId && getEditor == "show"){
hasLogin = 1
}
const TAG_REG = /#([^#\s!.,;:?"'()]+)(?= )/g
, IMG_REG = /\!\[(.*?)\]\((.*?)\)/g //content 内 md 格式图片
, LINK_REG = /\[(.*?)\]\((.*?)\)/g //链接新窗口打开
marked.setOptions({
breaks: false,
smartypants: false,
langPrefix: 'language-',
headerIds: false,
mangle: false
});
for(var i=0;i < data.length;i++){
var memo_id = data[i].id; //评论调用
var bbContREG = data[i].content
.replace(TAG_REG, "")
.replace(IMG_REG, '')
.replace(LINK_REG, '<a href="$2" target="_blank">$1</a>')
bbContREG = marked.parse(bbContREG)
//解析 content 内 md 格式图片
var IMG_ARR = data[i].content.match(IMG_REG) || '',IMG_ARR_Grid='';
if(IMG_ARR){
var IMG_ARR_Length = IMG_ARR.length,IMG_ARR_Url = '';
if(IMG_ARR_Length !== 1){var IMG_ARR_Grid = " grid grid-"+IMG_ARR_Length}
IMG_ARR.forEach(item => {
let imgSrc = item.replace(/!\[.*?\]\((.*?)\)/g,'$1')
IMG_ARR_Url += '<figure class="gallery-thumbnail"><img loading="lazy" decoding="async" class="img thumbnail-image" loading="lazy" decoding="async" src="'+imgSrc+'"/></figure>'
});
bbContREG += '<div class="resimg'+IMG_ARR_Grid+'" uk-scrollspy="target: > img; cls: uk-animation-fade; delay: 600">'+IMG_ARR_Url+'</div>';
}
//TAG 解析
var tagArr = data[i].content.match(TAG_REG);
var memosTag = '';
if (tagArr) {
memosTag = tagArr.map(function(tag) {
var tagText = String(tag).replace(/[#]/g, '');
return '<div class="memos-tag-dg" onclick="getTagNow(this)"># ' + tagText + '</div>';
}).join('');
} else {
memosTag = '<div class="memos-tag-dg">#生活日常</div>';
}
//解析内置资源文件
if(data[i].resourceList && data[i].resourceList.length > 0){
var resourceList = data[i].resourceList;
var imgUrl='',resUrl='',resImgLength = 0;
for(var j=0;j < resourceList.length;j++){
var restype = resourceList[j].type.slice(0,5)
var resexlink = resourceList[j].externalLink
var resLink = '',fileId=''
if(resexlink){
resLink = resexlink
}else{
fileId = resourceList[j].publicId || resourceList[j].filename
resLink = memos+'o/r/'+resourceList[j].id+'/'+fileId
}
if(restype == 'image'){
imgUrl += '<figure class="gallery-thumbnail"><img loading="lazy" decoding="async" class="img thumbnail-image" src="'+resLink+'"/></figure>'
resImgLength = resImgLength + 1
}
if(restype !== 'image'){
resUrl += '<a target="_blank" rel="noreferrer" href="'+resLink+'">'+resourceList[j].filename+'</a>'
}
}
if(imgUrl){
var resImgGrid = ""
if(resImgLength !== 1){var resImgGrid = "grid grid-"+resImgLength}
bbContREG += '<div class="resimg '+resImgGrid+'">'+imgUrl+'</div></div>'
}
if(resUrl){
bbContREG += '<p class="datasource">'+resUrl+'</p>'
}
}
result += `
<li class="bb-list-li img-hide" id="${memo_id}">
<div class="memos-pl">
<div class="memos_diaoyong_time">${moment(data[i].createdTs * 1000).twitterLong()}</div>
${hasLogin == 0 ? '' : `
<div class="memos-edit">
<div class="memos-menu">...</div>
<div class="memos-menu-d">
<div class="edit-btn" onclick="editMemo(${JSON.stringify(data[i]).replace(/"/g, '&quot;')})">修改</div>
<div class="archive-btn" onclick="archiveMemo('${data[i].id}')">归档</div>
<div class="delete-btn" onclick="deleteMemo('${data[i].id}')">删除</div>
</div>
</div>
`}
</div>
<div class="memos-tag-wz">${memosTag}</div>
<div class="datacont" view-image>${bbContREG}</div>
<div class="memos_diaoyong_top">
<div class="memos-zan"><emoji-reaction class="reactions" reactTargetId="/m/${memo_id}" theme="system" endpoint="https://e.52ql.cn" availableArrayString="👍,thumbs-up;🎉,party-popper;❤️,red-heart;"></emoji-reaction></div>
<div class="talks_comments">
<a onclick="loadArtalk('${memo_id}')">
<span id="ArtalkCount" data-page-key="/m/${memo_id}" class="comment-s"></span> 条评论 <span id="btn_memo_${memo_id}">
<svg width="6px" height="12px" viewBox="0 0 6 12" version="1.1" xmlns="http://www.w3.org/2000/svg"><g><path d="M0.211503518,0.218577027 C0.493508208,-0.072859009 0.95072815,-0.072859009 1.23273284,0.218577027 L5.41780916,4.54361875 C6.19406361,5.34583421 6.19406361,6.65416579 5.41780916,7.45638125 L1.23273284,11.781423 C0.95072815,12.072859 0.493508208,12.072859 0.211503518,11.781423 C-0.0705011726,11.4899869 -0.0705011726,11.0174758 0.211503518,10.7260397 L4.39657984,6.400998 C4.60882491,6.18165462 4.60882491,5.81834538 4.39657984,5.599002 L0.211503518,1.27396027 C-0.0705011726,0.982524238 -0.0705011726,0.510013063 0.211503518,0.218577027 Z"></path></g></svg>
</span>
</a>
</div>
</div>
<div id="memo_${memo_id}" class="artalk hidden"></div>
</li>`;
} // end for
var bbBefore = "<section class='bb-timeline'><ul class='bb-list-ul' uk-scrollspy='target: > li; cls: uk-animation-fade; delay: 500'>";
var bbAfter = "</ul></section>";
resultAll = bbBefore + result + bbAfter;
bbDom.insertAdjacentHTML('beforeend', resultAll);
// animateSummaries(); // 在DOM加载完毕后执行滑动加载动画
if(document.querySelector('button.button-load')) document.querySelector('button.button-load').textContent = '看更多 ...';
lazyimg_pjax()
// 延时加载评论数方法
setTimeout(function() {
Artalk.loadCountWidget({
server: 'https://artalk.usj.cc/',
site: '优世界',
countEl: '#ArtalkCount'
});
}, 1000); // 延迟3000毫秒(也就是3秒)执行
}
// TAG 筛选
function getTagNow(e){
//console.log(e.innerHTML)
let tagName = e.innerHTML.replace('# ','')
let domClass = document.getElementById("bber")
window.scrollTo({
top: domClass.offsetTop - 30,
behavior: "smooth"
});
let tagHtmlNow = `<div class='memos-tag-sc-2' onclick='javascript:location.reload();'><div class='memos-tag-sc-1' >标签筛选:</div><div class='memos-tag-sc' >${e.innerHTML}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-auto ml-1 opacity-40"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></div></div>`
document.querySelector('#tag-list').innerHTML = tagHtmlNow
let bbUrl = memos+"api/v1/memo?creatorId="+bbMemo.creatorId+"&tag="+tagName+"&limit=20";
fetch(bbUrl).then(res => res.json()).then( resdata =>{
document.querySelector(bbMemo.domId).innerHTML = ""
if(document.querySelector("button.button-load")) document.querySelector("button.button-load").remove()
updateHTMl(resdata)
})
}
// 延时加载评论数方法
setTimeout(function() {
Artalk.loadCountWidget({
server: 'https://artalk.usj.cc/',
site: '优世界',
countEl: '#ArtalkCount'
});
}, 1000); // 延迟3000毫秒(也就是3秒)执行
// 显示所有 TAG
function showTaglist(){
let bbUrl = 'https://tag.52ql.cn/'
let tagListDom = ""
fetch(bbUrl).then(res => res.json()).then( resdata =>{
for(let i=0;i < resdata.length;i++){
tagListDom += `<div class="memos-tag-all img-hide" onclick='getTagNow(this)'># ${resdata[i]}</div>`
}
document.querySelector('#tag-list-all').innerHTML = tagListDom
// animateSummaries(); // 加载完毕后执行滑动加载动画
})
}
// 搜索 Memos
function searchMemoevent(event) {
if (event.key === "Enter") {
searchMemo();
}
}
function searchMemo() {
let searchText = document.querySelector('#memos-search-input').value;
let tagHtmlNow = `<div class='memos-tag-sc-2' onclick='javascript:location.reload();'><div class='memos-tag-sc-1' >关键词搜索:</div><div class='memos-tag-sc' >${searchText}<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-4 h-auto ml-1 opacity-40"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></div></div>`
document.querySelector('#tag-list').innerHTML = tagHtmlNow;
let bbUrl = memos + "api/v1/memo?creatorId=" + bbMemo.creatorId + "&content=" + searchText + "&limit=20";
fetchMemoDOM(bbUrl);
}
function fetchMemoDOM(bbUrl) {
fetch(bbUrl)
.then(res => res.json())
.then(resdata => {
let arrData = resdata || '';
if (resdata.data) {
arrData = resdata.data;
}
if (arrData.length > 0) {
// 清空旧的搜索结果和加载按钮
document.querySelector(bbMemo.domId).innerHTML = "";
if (document.querySelector("button.button-load")) {
document.querySelector("button.button-load").remove();
// 延时加载评论数方法
setTimeout(function() {
Artalk.loadCountWidget({
server: 'https://artalk.usj.cc/',
site: '优世界',
countEl: '#ArtalkCount'
});
}, 1000); // 延迟3000毫秒(也就是3秒)执行
}
updateHTMl(resdata);
} else {
alert("搜不到,尝试换一个关键词");
setTimeout(() => location.reload(), 1000);
}
});
}
//增加memos评论
function loadArtalk(memo_id) {
const commentDiv = document.getElementById('memo_' + memo_id);
const commentBtn = document.getElementById('btn_memo_' + memo_id);
const allCommentDivs = document.querySelectorAll("[id^='memo_']");
const allCommentBtns = document.querySelectorAll("[id^='btn_memo_']");
if (commentDiv.classList.contains('hidden')) {
// 收起其他评论
for (let i = 0; i < allCommentDivs.length; i++) {
if (allCommentDivs[i] !== commentDiv) {
allCommentDivs[i].classList.add('hidden');
}
}
// 修改其他评论按钮文字
for (let i = 0; i < allCommentBtns.length; i++) {
if (allCommentBtns[i] !== commentBtn) {
allCommentBtns[i].innerHTML = '<svg width="6px" height="12px" viewBox="0 0 6 12" version="1.1" xmlns="http://www.w3.org/2000/svg"><g><path d="M0.211503518,0.218577027 C0.493508208,-0.072859009 0.95072815,-0.072859009 1.23273284,0.218577027 L5.41780916,4.54361875 C6.19406361,5.34583421 6.19406361,6.65416579 5.41780916,7.45638125 L1.23273284,11.781423 C0.95072815,12.072859 0.493508208,12.072859 0.211503518,11.781423 C-0.0705011726,11.4899869 -0.0705011726,11.0174758 0.211503518,10.7260397 L4.39657984,6.400998 C4.60882491,6.18165462 4.60882491,5.81834538 4.39657984,5.599002 L0.211503518,1.27396027 C-0.0705011726,0.982524238 -0.0705011726,0.510013063 0.211503518,0.218577027 Z"></path></g></svg>';
}
}
commentDiv.classList.remove('hidden');
commentBtn.innerHTML = '<svg width="14px" height="14px" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd"><path d="M256,0 C397.167,0 512,114.853 512,256 C512,397.147 397.167,512 256,512 C114.833,512 0,397.167 0,256 C0,114.833 114.833,0 256,0 Z M256,39.659 C136.725,39.659 39.659,136.705 39.659,256 C39.659,375.295 136.725,472.341 256,472.341 C375.275,472.341 472.341,375.295 472.341,256 C472.341,136.705 375.295,39.659 256,39.659 Z M242.119,184.217 C249.853,176.523 262.345,176.523 270.079,184.217 L369.227,283.365 C376.921,291.098 376.921,303.591 369.227,311.325 C361.493,319.019 349.001,319.019 341.267,311.325 L256,226.256 L170.931,311.324 C162.622,318.443 150.09,317.472 142.971,309.163 C136.606,301.747 136.606,290.781 142.971,283.365 Z" fill-rule="nonzero"></path></g></svg>';
//增加评论平滑定位
// const commentLi = document.getElementById(memo_id);
// const commentLiPosition = commentLi.getBoundingClientRect().top + window.pageYOffset;
// const offset = commentLiPosition - 3.5 * parseFloat(getComputedStyle(document.documentElement).fontSize);
// if ('scrollBehavior' in document.documentElement.style) {
// // 支持平滑滚动的情况下,使用 window.scrollTo
// window.scrollTo({
// top: offset,
// behavior: 'smooth'
// });
// } else {
// // 不支持平滑滚动的情况下,使用滚动容器的平滑滚动方法(如需要滚动到具体的容器内)
// // 例如:document.documentElement.scrollTop = offset;
// // 或者使用第三方的平滑滚动库
// }
const artalk = new Artalk({
el: '#memo_' + memo_id,
pageKey: '/m/' + memo_id,
pageTitle: '',
server: 'https://artalk.usj.cc/',
site: '优世界',
darkMode: false
});
} else {
commentDiv.classList.add('hidden');
commentBtn.innerHTML = '<svg width="6px" height="12px" viewBox="0 0 6 12" version="1.1" xmlns="http://www.w3.org/2000/svg"><g><path d="M0.211503518,0.218577027 C0.493508208,-0.072859009 0.95072815,-0.072859009 1.23273284,0.218577027 L5.41780916,4.54361875 C6.19406361,5.34583421 6.19406361,6.65416579 5.41780916,7.45638125 L1.23273284,11.781423 C0.95072815,12.072859 0.493508208,12.072859 0.211503518,11.781423 C-0.0705011726,11.4899869 -0.0705011726,11.0174758 0.211503518,10.7260397 L4.39657984,6.400998 C4.60882491,6.18165462 4.60882491,5.81834538 4.39657984,5.599002 L0.211503518,1.27396027 C-0.0705011726,0.982524238 -0.0705011726,0.510013063 0.211503518,0.218577027 Z"></path></g></svg>';
}
}
}
// 设置图片灯箱回调函数
function lazyimg_pjax(){
;(function($){
var defaults = {
coverColor:"#dfdfdf",
coverDiv:"",
showTime:300,
offsetBottom:0,
offsetTopm:50,
onLoadBackEnd:function(index,dom){},
onLoadBackStart:function(index,dom){}
}
//所有待load src
var srcList = []
var lazyLoadCoutn = 0;
var windowHeight = $(window).height();
var windowWidth = $(window).width();
var lazyImgList = $("img[data-lazy-src]");
var default_base64_src ="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
//获取img
function getImgNaturalDimensions(src, callback,lazyLoadCoutn) {
var nWidth, nHeight
var image = new Image()
image.src = src;
image.onload = function() {
callback(image.width, image.height);
defaults.onLoadBackStart(lazyLoadCoutn,$("img[data-lazy-src]:eq("+lazyLoadCoutn+")"));
}
return [nWidth, nHeight];
}
function showImg(lazyLoadCoutn,callback){
var src = lazyImgList.eq(lazyLoadCoutn).attr("data-lazy-src")
getImgNaturalDimensions(src, function () {
try {
meng($("img[data-lazy-src]:eq("+lazyLoadCoutn+")") ,lazyLoadCoutn,callback)
}catch(error) {
}
},lazyLoadCoutn)
}
function meng(jDom,lazyLoadCoutn,callback){
if(jDom.attr("data-comp")){
return;
}
jDom.css("visibility","hidden");
jDom.attr("src",jDom.attr("data-lazy-src"))
var w = jDom.width();
var h = jDom.height();
var offsetTop = jDom.offset().top;
var offsetLeft = jDom.offset().left;
jDom.css("visibility","visible");
$("body").append("<div class='meng-lazy-div"+lazyLoadCoutn+"' style='background-color: "+defaults.coverColor+";position:absolute;width:"+w+"px;height:"+h+"px;top:"+offsetTop+"px;left:"+offsetLeft+"px;z-index:500'>"+defaults.coverDiv+"</div>");
noneM(lazyLoadCoutn,callback,jDom);
jDom.attr("data-comp","true");
}
function noneM(lazyLoadCoutn,callback,jDom){
if(true){
$(".meng-lazy-div"+lazyLoadCoutn).animate({opacity:"0"},defaults.showTime,function(){
$(this).remove();
defaults.onLoadBackEnd(lazyLoadCoutn,jDom)
callback();
});
}
}
function checkOffset(){
var scrollTop = $(document).scrollTop();
var onlazyList = [];
lazyImgList.each(function(index){
var dom = $(this);
if(!dom.attr("data-comp")){
if(dom.offset().top-scrollTop+defaults.offsetTopm>=0&&dom.offset().top-scrollTop<(windowHeight+defaults.offsetBottom)){
onlazyList.push(index);
}
}
})
if(onlazyList.length!=0){
showImg(onlazyList[0],function(){
checkOffset();
});
}
}
function range(){
checkOffset();
}
function init(setting){
lazyImgList = $("img[data-lazy-src]");
defaults = $.extend(defaults,setting);
lazyImgList.each(function(){
var sr = $(this).attr("data-lazy-src");
srcList.push(sr);
$(this).attr("src",default_base64_src);
});
range();
window.onscroll=function(){
range()
}
}
function tryAgain(){
$("img[data-lazy-src]").removeAttr("data-comp")
init(defaults)
}
window.lazyLoadInit = init;
window.lazyLoadAgain = tryAgain;
})($)
}
function danmu_pjax(){
(function($) {
$.fn.barrager = function(barrage) {
barrage = $.extend({
close:true,
bottom: 0,
max: 10,
speed: 6,
color: '#fff',
old_ie_color : '#000000'
}, barrage || {});
var time = new Date().getTime();
var barrager_id = 'barrage_' + time;
var id = '#' + barrager_id;
var div_barrager = $("<div class='barrage' id='" + barrager_id + "'></div>").appendTo($(this));
var window_height = $(window).height() - 100;
var bottom = (barrage.bottom == 0) ? Math.floor(Math.random() * window_height + 40) : barrage.bottom;
div_barrager.css("bottom", bottom + "px");
div_barrager_box = $("<div class='barrage_box cl'></div>").appendTo(div_barrager);
if(barrage.img){
div_barrager_box.append("<a class='portrait z' href='javascript:;'></a>");
var img = $("<img src='' >").appendTo(id + " .barrage_box .portrait");
img.attr('src', barrage.img);
}
div_barrager_box.append(" <div class='z p'></div>");
if(barrage.close){
div_barrager_box.append(" <div class='close z'></div>");
}
var content = $("<a class='text-overflow'></a>").appendTo(id + " .barrage_box .p");
content.attr({
'id': barrage.id
}).empty().append(barrage.info);
if(navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0 || navigator.userAgent.indexOf("MSIE 8.0")>0 ){
content.css('color', barrage.old_ie_color);
}else{
content.css('color', barrage.color);
}
var i = 0;
div_barrager.css('margin-right', i);
var looper = setInterval(barrager, barrage.speed);
function barrager() {
var window_width = $(window).width() + 500;
if (i < window_width) {
i += 1;
$(id).css('margin-right', i);
} else {
$(id).remove();
return false;
}
}
div_barrager_box.mouseover(function() {
clearInterval(looper);
});
div_barrager_box.mouseout(function() {
looper = setInterval(barrager, barrage.speed);
});
$(id+'.barrage .barrage_box .close').click(function(){
$(id).remove();
})
}
$.fn.barrager.removeAll=function(){
$('.barrage').remove();
}
})(jQuery);
}
function message_pjax(){
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b:"function"==typeof define&&define.amd?define([],function(){return b(a)}):a.Qmsg=b(a)}(this,function(a){"use strict";function h(){var b,a=c;for(b=0;b<arguments.length;++b)a+="-"+arguments[b];return a}function i(a){var g,i,k,l,m,o,p,q,r,s,b=this;b.settings=Object.assign({},e,a||{}),b.id=n.instanceCount,g=b.settings.timeout,g=g&&parseInt(g>=0)&&parseInt(g)<=Math.NEGATIVE_INFINITY?parseInt(g):e.timeout,b.timeout=g,b.settings.timeout=g,b.timer=null,i=document.createElement("div"),k=f[b.settings.type||"info"],l=h("content-"+b.settings.type||"info"),l+=b.settings.showClose?" "+h("content-with-close"):"",m=b.settings.content||"",o=f["close"],p=b.settings.showClose?'<i class="qmsg-icon qmsg-icon-close">'+o+"</i>":"",q=document.createElement("span"),b.settings.html?q.innerHTML=m:q.innerText=m,i.innerHTML='<div class="qmsg-content"> <div class="'+l+'"> <i class="qmsg-icon">'+k+"</i>"+q.outerHTML+p+"</div> </div>",i.classList.add(h("item")),i.style.textAlign=b.settings.position,r=document.querySelector("."+c),r||(r=document.createElement("div"),r.classList.add(c),r.classList.add(h("wrapper")),r.classList.add(h("is-initialized")),document.body.appendChild(r)),r.appendChild(i),b.$wrapper=r,b.$elem=i,j(b,"opening"),b.settings.showClose&&i.querySelector(".qmsg-icon-close").addEventListener("click",function(){b.close()}.bind(i)),i.addEventListener("animationend",function(a){var b=a.target,c=a.animationName;c===d["closing"]&&(clearInterval(this.timer),this.destroy()),b.style.animationName=""}.bind(b)),b.settings.autoClose&&(s=10,b.timer=setInterval(function(){this.timeout-=s,this.timeout<=0&&(clearInterval(this.timer),this.close())}.bind(b),s),b.$elem.addEventListener("mouseover",function(){clearInterval(this.timer)}.bind(b)),b.$elem.addEventListener("mouseout",function(){"closing"!==this.state&&(this.timer=setInterval(function(){this.timeout-=s,this.timeout<=0&&(clearInterval(this.timer),this.close())}.bind(b),s))}.bind(b)))}function j(a,b){b&&d[b]&&(a.state=b,a.$elem.style.animationName=d[b])}function k(a){var b=h("count"),c=a.$elem.querySelector('[class^="qmsg-content-"]'),d=c.querySelector("."+b);d||(d=document.createElement("span"),d.classList.add(b),c.appendChild(d)),d.innerHTML=a.count,d.style.animationName="",d.style.animationName="MessageShake",a.timeout=a.settings.timeout||e.timeout}function l(a,b){var c=Object.assign({},e);return 0===arguments.length?c:a instanceof Object?Object.assign(c,a):(c.content=a.toString(),b instanceof Object?Object.assign(c,b):c)}function m(a){var b,c,d,e,f,g,h,j,l,m;a=a||{},b=JSON.stringify(a),c=-1;for(e in this.oMsgs)if(f=this.oMsgs[e],f.config===b){c=e,d=f.inst;break}if(0>c){if(this.instanceCount++,g={},g.id=this.instanceCount,g.config=b,d=new i(a),d.id=this.instanceCount,d.count="",g.inst=d,this.oMsgs[this.instanceCount]=g,h=this.oMsgs.length,j=this.maxNums,h>j)for(l=0,m=this.oMsgs,l;h-j>l;l++)m[l]&&m[l].inst.settings.autoClose&&m[l].inst.close()}else d.count=d.count?d.count>=99?d.count:d.count+1:2,k(d);return d.$elem.setAttribute("data-count",d.count),d}var b,c,d,e,f,g,n;return"function"!=typeof Object.assign&&(Object.assign=function(a){var b,c,d;if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(a=Object(a),b=1;b<arguments.length;b++)if(c=arguments[b],null!=c)for(d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d]);return a}),"classList"in document.documentElement||Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){function b(b){return function(c){var d=a.className.split(/\s+/g),e=d.indexOf(c);b(d,e,c),a.className=d.join(" ")}}var a=this;return{add:b(function(a,b,c){~b||a.push(c)}),remove:b(function(a,b){~b&&a.splice(b,1)}),toggle:b(function(a,b,c){~b?a.splice(b,1):a.push(c)}),contains:function(b){return!!~a.className.split(/\s+/g).indexOf(b)},item:function(b){return a.className.split(/\s+/g)[b]||null}}}}),b="qmsg",c=a&&a.QMSG_GLOBALS&&a.QMSG_GLOBALS.NAMESPACE||b,d={opening:"MessageMoveIn",done:"",closing:"MessageMoveOut"},e=Object.assign({position:"center",type:"info",showClose:!1,timeout:2500,animation:!0,autoClose:!0,content:"",onClose:null,maxNums:5,html:!1},a&&a.QMSG_GLOBALS&&a.QMSG_GLOBALS.DEFAULTS),f={info:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M512 64q190.016 4.992 316.512 131.488T960 512q-4.992 190.016-131.488 316.512T512 960q-190.016-4.992-316.512-131.488T64 512q4.992-190.016 131.488-316.512T512 64zm67.008 275.008q26.016 0 43.008-15.488t16.992-41.504-16.992-41.504-42.496-15.488-42.496 15.488-16.992 41.504 16.992 41.504 42.016 15.488zm12 360q0-6.016.992-16T592 664l-52.992 60.992q-8 8.992-16.512 14.016T508 742.016q-8.992-4-8-14.016l88-276.992q4.992-28-8.992-48t-44.992-24q-35.008.992-76.512 29.504t-72.512 72.512v15.008q-.992 10.016 0 19.008l52.992-60.992q8-8.992 16.512-14.016T468 437.024q10.016 4.992 7.008 16l-87.008 276q-7.008 24.992 7.008 44.512T444 800.032q50.016-.992 84-28.992t63.008-72z" fill="#909399"/></svg>',warning:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M512 64C264.64 64 64 264.64 64 512c0 247.424 200.64 448 448 448 247.488 0 448-200.576 448-448 0-247.36-200.512-448-448-448zm0 704c-26.432 0-48-21.504-48-48s21.568-48 48-48c26.624 0 48 21.504 48 48s-21.376 48-48 48zm48-240c0 26.56-21.376 48-48 48-26.432 0-48-21.44-48-48V304c0-26.56 21.568-48 48-48 26.624 0 48 21.44 48 48v224z" fill="#E6A23C"/></svg>',error:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M512 64C264.58 64 64 264.58 64 512s200.58 448 448 448 448-200.57 448-448S759.42 64 512 64zm158.39 561.14a32 32 0 1 1-45.25 45.26L512 557.26 398.86 670.4a32 32 0 0 1-45.25-45.26L466.75 512 353.61 398.86a32 32 0 0 1 45.25-45.25L512 466.74l113.14-113.13a32 32 0 0 1 45.25 45.25L557.25 512z" fill="#F56C6C"/></svg>',success:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M512 64q190.016 4.992 316.512 131.488T960 512q-4.992 190.016-131.488 316.512T512 960q-190.016-4.992-316.512-131.488T64 512q4.992-190.016 131.488-316.512T512 64zm-56 536l-99.008-99.008q-12-11.008-27.488-11.008t-27.008 11.488-11.488 26.496 11.008 27.008l127.008 127.008q11.008 11.008 27.008 11.008t27.008-11.008l263.008-263.008q15.008-15.008 9.504-36.512t-27.008-27.008-36.512 9.504z" fill="#67C23A"/></svg>',loading:'<svg class="animate-turn" width="16" height="16" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" fill-opacity=".01" d="M0 0h48v48H0z"/><path d="M4 24c0 11.046 8.954 20 20 20s20-8.954 20-20S35.046 4 24 4" stroke="#409eff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M36 24c0-6.627-5.373-12-12-12s-12 5.373-12 12 5.373 12 12 12" stroke="#409eff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>',close:'<svg width="16" height="16" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M14 14L34 34" stroke="#909399" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M14 34L34 14" stroke="#909399" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>'},g=function(){var a=document.createElement("div").style;return void 0!==a.animationName||void 0!==a.WebkitAnimationName||void 0!==a.MozAnimationName||void 0!==a.msAnimationName||void 0!==a.OAnimationName}(),i.prototype.destroy=function(){this.$elem.parentNode&&this.$elem.parentNode.removeChild(this.$elem),clearInterval(this.timer),n.remove(this.id)},i.prototype.close=function(){j(this,"closing"),g?n.remove(this.id):this.destroy();var a=this.settings.onClose;a&&a instanceof Function&&a.call(this)},n={version:"0.0.1",instanceCount:0,oMsgs:[],maxNums:e.maxNums||5,config:function(a){e=a&&a instanceof Object?Object.assign(e,a):e,this.maxNums=e.maxNums&&e.maxNums>0?parseInt(e.maxNums):3},info:function(a,b){var c=l(a,b);return c.type="info",m.call(this,c)},warning:function(a,b){var c=l(a,b);return c.type="warning",m.call(this,c)},success:function(a,b){var c=l(a,b);return c.type="success",m.call(this,c)},error:function(a,b){var c=l(a,b);return c.type="error",m.call(this,c)},loading:function(a,b){var c=l(a,b);return c.type="loading",c.autoClose=!1,m.call(this,c)},remove:function(a){this.oMsgs[a]&&delete this.oMsgs[a]},closeAll:function(){for(var a in this.oMsgs)this.oMsgs[a]&&this.oMsgs[a].inst.close()}}});
}
// 设置pjax预先加载代码
function pjax_reload() {
// 重新赋值is_url
is_url = window.location.href;
// 给pjax容器加入css过渡动画
$("#pjax-container").addClass("uk-animation-slide-bottom-small");
// 评论区过渡动画
$(".comment-meta").attr("uk-scrollspy", "cls: uk-animation-fade; delay: 100");
$(".comment-author vcard").attr("uk-scrollspy", "cls: uk-animation-fade; delay: 100");
$(".comment-metadata").attr("uk-scrollspy", "cls: uk-animation-fade; delay: 100");
$(".comment-content").attr("uk-scrollspy", "cls: uk-animation-fade; delay: 100");
$(".reply").attr("uk-scrollspy", "cls: uk-animation-fade; delay: 100");
// 说说页面过渡动画
$("#shuoshuo_body").attr("uk-scrollspy", "target: > .shuoshuo; cls: uk-animation-fade; delay: 250");
// console.log(crossUrl);
// 将说说页面第一个和最后一个 hr 标签的 display 属性设置为 none
if (is_url == crossUrl) {
$("hr").first().css('display', 'none');
$("hr").last().css('display', 'none');
// 启动图片灯箱
window.ViewImage && ViewImage.init('.text img , .memos-photo img , .gallery-thumbnail img');
}
}
// 请求地址参数
function bindGetCommentInfo () {
// 填写邮箱获取评论者信息
if ($('#comment-form #mail').length > 0) {
$('#comment-form #mail').bind('blur', function () {
let pattern = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
if (pattern.test($(this).val())) {
// console.log($(this).data('url'));
// console.log($(this).val());
// console.log('mail=' + $(this).val() + '&themeAction=getCommentInfo');
$.ajax({
url: $(this).data('url'),
type: 'POST',
data: 'mail=' + $(this).val() + '&themeAction=getCommentInfo',
dataType: 'json',
success: function (r) {
switch (r.status) {
case 0: // 邮箱格式错误
alert(r.msg);
break;
case 1:
$('#comment-form #author').val(r.result.name);
$('#comment-form #url').val(r.result.url);
// $('#comment-avatar-img').attr('src', r.result.avatar);
if (r.result.name) $('#comment-form #author').trigger('input');
break;
default: // 没找到 status = 3
break;
}
}
});
}
});
}
}
// 获取弹幕,ajax请求接口数据
function getbarrageData(){
$.ajax({
url: $('.getPostUrl').data('posturl'),
type: 'POST',
data: 'cid=' + $('.getPostId').data('postcid') + '&themeAction=getBarragerCommets',
dataType: 'json',
success: function(e){
// 判断是否为文章页,非文章页不输出弹幕
let is_article = `${is_url}`;
// console.log(is_article)
let regex = /^https:\/\/[^/]+\/\w+\.html$/;
let matched = regex.test(is_article);
// console.log(matched);
switch (e.status) {
case 0: // 邮箱格式错误
// alert(e.msg);
break;
case 1:
// for(let i = 0 ;i< e.)
// for(let i=0;i<e.result.length;i++){
// console.log(e.result);
var items= JSON.parse(e.result);
//每条弹幕发送间隔
var looper_time=3*1000;
//弹幕总数
var total=items.length;
// console.log(total);
//是否首次执行
var run_once=true;
//弹幕索引
var index=0;
//先执行一次
function barrager(){
if(run_once){
//如果是首次执行,则设置一个定时器,并且把首次执行置为false
looper=setInterval(barrager,looper_time);
run_once=false;
danmu_looper++
}
//发布一个弹幕
$("body").barrager(items[index]);
//索引自增
index++;
//所有弹幕发布完毕,清除计时器。
if(index == total){
clearInterval(looper);
danmu_looper = 0;
return false;
}
};
// 正则判断是否为文章页,且不为手机端才输出弹幕
if(matched && (!isMobile())){
// console.log("在此页面,我会执行弹幕插件");
if(danmu_looper !== 0){
clearInterval(looper);
danmu_looper = 0;
}
barrager();
}
break;
default: // 没找到 status = 3
break;
}
// console.log($('.post-content').data('posturl'));
// console.log($('.getPostId').data('postcid'));
console.log(e);
}
});
}
// pjax发送时期
document.addEventListener("pjax:send", function () {
// pjax动画减少圆圈动画
NProgress.configure({
showSpinner: false
});
// pjax执行动画开始
NProgress.start(); //加载动画效果开始
});
// Pjax 成功后,重新加载下面的函数
document.addEventListener("pjax:success", function () {
// 重新赋值is_url
is_url = window.location.href;
// 重载图片懒加载插件的js
lazyimg_pjax()
lazyLoadInit({
coverColor: "white",
coverDiv: "<div style='display: flex; justify-content: center; align-items: center; height: 200px;color: #000000;'><span>优世界·一个记录生活点滴的小站</span></div>",
offsetBottom: 0,
offsetTopm: 0,
showTime: 1100
});
// 激活文章图片灯箱
window.ViewImage && ViewImage.init('#writing_content img,.text img , .memos-photo img , .gallery-thumbnail img');
// if((is_url == blog_url)){
// var total = null;
// }
});
// pjax加载完成
document.addEventListener("pjax:complete", function () {
// 重新赋值is_url
is_url = window.location.href;
// pjax完成动画
NProgress.done();
// 重载一些js样式调整
pjax_reload()
// 重载友圈函数
fcircle_pjax()
// 重载说说
message_pjax()
// 根据邮箱读取游客信息
bindGetCommentInfo ()
// 重载弹幕代码
getbarrageData()
// 重载说说页面的js
if (is_url == crossUrl) {
cross_pjax()
}
// 重载首页说说
if (is_url == blog_url) {
cross_pjax()
}
// 激活返回顶部插件
$(function () {
$.scrollUp({
animation: 'fade',
scrollImg: true
});
});
// 重载弹幕插件
danmu_pjax()
// 钓鱼重新调用
if (is_url === ylUrl) {
fetchRandomPost()
}
});