// ==UserScript==
// @name linuxdo 增强插件
// @namespace https://github.com/dlzmoe/linuxdo-scripts
// @version 0.3.19
// @author dlzmoe
// @description linux.do 增强插件,功能持续更新,欢迎提出新想法!
// @license Apache-2.0
// @icon https://cdn.linux.do/uploads/default/optimized/3X/9/d/9dd49731091ce8656e94433a26a3ef36062b3994_2_32x32.png
// @match *://*.linux.do/*
// @require https://unpkg.com/vue@3.4.38/dist/vue.global.prod.js
// @require https://unpkg.com/jquery@3.7.1/dist/jquery.min.js
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// @downloadURL none
// ==/UserScript==
(t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const i=document.createElement("style");i.textContent=t,document.head.append(i)})(' input[data-v-44945bb2]{width:70px;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.emojiPicker{top:0;left:100%;position:absolute;display:grid;grid-template-columns:repeat(12,1fr);gap:10px;height:100%;overflow:auto;background-color:#000c;padding:10px;border-radius:5px;z-index:9}.emojiPicker img{cursor:pointer;width:30px;height:30px}.sidebar-section-header-caret.right{transform:rotate(-90deg)}.item select[data-v-d780d688]{height:28px;border:1px solid #b6b6b6;border-radius:4px;width:180px;margin-left:10px;cursor:pointer}.item[data-v-a5a59dad]{border:none!important}.item a[data-v-a5a59dad]:hover{text-decoration:underline}.item[data-v-cb743585],.item[data-v-e58a62ee],.item[data-v-f84417d4],.item[data-v-c99e7560]{border:none!important}.linxudoscripts-tag{background:#29a6a9;color:#fff;font-size:14px!important;padding:0 10px;height:26px;text-align:center;display:inline-flex!important;align-items:center;justify-content:center;border-radius:5px}.menu-table{width:100%}.menu-table td,.menu-table th{padding:10px;font-size:14px}.menu-table .span{cursor:pointer}.menu-table .span+.span{margin-left:10px}.item[data-v-0e067488]{border:none}.post-stream.lookopwrapactive .topic-post{display:none!important}.post-stream.lookopwrapactive .topic-post.topic-owner{display:block!important}@keyframes breathAnimation-0068d3be{0%,to{transform:scale(1);box-shadow:0 0 5px #00000080}50%{transform:scale(1.1);box-shadow:0 0 10px #000000b3}}.breath-animation[data-v-0068d3be]{animation:breathAnimation-0068d3be 4s ease-in-out infinite}.minimized[data-v-0068d3be]{width:50px!important;height:50px!important;border-radius:50%!important;padding:0!important;overflow:hidden;cursor:pointer}.button[data-v-0068d3be]:hover{background-color:#f0f0f0}#linuxDoLevelPopupContent[data-v-0068d3be]{line-height:1.6;position:fixed;bottom:20px;right:90px;width:250px;height:auto;background-color:#fff;box-shadow:0 0 10px #00000080;padding:15px;z-index:10000;font-size:14px;border-radius:5px}#linuxDoUserSearch[data-v-0068d3be]{width:100%;margin-top:10px}.button[data-v-0068d3be]{margin-top:10px}.minimize-button[data-v-0068d3be]{position:absolute;top:5px;right:5px;z-index:10001;background:transparent;border:none;cursor:pointer;border-radius:50%;text-align:center;line-height:40px;width:40px;height:40px}.dark-theme #linuxDoLevelPopupContent[data-v-0068d3be]{background:#535353}.linuxdoscripts-aidialog{position:fixed;top:0;left:-100%;width:500px;height:100vh;background:#fff;box-shadow:1px 2px 5px #0000003d;z-index:999;padding-top:60px;transition:all .1s linear;opacity:0;visibility:hidden;overflow:hidden}.linuxdoscripts-aidialog.act{left:0;opacity:1;visibility:inherit;overflow:inherit}a[data-v-5232d710]{margin-left:10px}a[data-v-5232d710]:hover{text-decoration:underline}.tit[data-v-5232d710]{display:flex;align-items:center}.tit img[data-v-5232d710]{margin-left:10px}.UsageTip{position:static;margin:0;font-size:14px;line-height:1.6}.UsageTip>div{margin:10px 0}.UsageTip button{background:#333;color:#fff;padding:8px 10px;margin-bottom:10px;border:none;outline:none;border-radius:4px}.dark-theme .UsageTip{background:#333;color:#ccc}.dark-theme .UsageTip button{background:#999;color:#fff}.timeline-container .topic-timeline .timeline-scrollarea{max-width:100px!important}#linuxdoscripts{font-size:14px}#linuxdoscripts input[type=text]{width:100%}#linuxdoscripts input[type=checkbox]{transform:scale(1.2)}#linuxdoscripts #menu_suspendedball{display:none}#linuxdoscripts img{vertical-align:bottom;max-width:100%;height:auto}#linuxdoscripts .close{position:absolute;right:10px;top:45%;cursor:pointer;font-size:34px;color:#999;transform:translateY(-50%) rotate(45deg)}#linuxdoscripts .setting-btn{z-index:999;position:fixed;bottom:20px;right:20px}#linuxdoscripts .setting-btn .el-button{margin:15px 0 0;width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#919191;color:#fff;font-size:14px;cursor:pointer;transition:all .1s linear;border:none}#linuxdoscripts .setting-btn .el-button svg{margin:0}#linuxdoscripts .setting-btn .el-button:hover{opacity:.9}#linuxdoscripts .hint{margin-top:5px;color:#d94f4f;font-size:14px}#linuxdoscripts dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:700px;background:#fff;color:#333;box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:16px;padding:15px;z-index:99999;overflow-x:hidden;box-sizing:border-box;margin:0;border:none;outline:none}#linuxdoscripts dialog .menu-about{padding:5px 0;line-height:2}#linuxdoscripts dialog .menu-about .initialization{color:#999;border-bottom:1px dashed #999;cursor:pointer}#linuxdoscripts dialog .menu-about .initialization:hover{color:#333;border-color:#333}#linuxdoscripts dialog p{margin:0;font-size:14px}#linuxdoscripts .menu-header{padding:.5rem .5rem 1rem;border-bottom:1px solid #eee;position:relative}#linuxdoscripts .title{font-size:18px;font-weight:600;display:flex;align-items:center}#linuxdoscripts .title img{margin-left:10px}#linuxdoscripts button{outline:0;min-width:80px;height:32px;border:none;background-color:#12181e;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear}#linuxdoscripts button+button{margin-left:8px}#linuxdoscripts button.saveload{background:#3d9b93}#linuxdoscripts button.detection{background:#810000}#linuxdoscripts button:hover{opacity:.9}#linuxdoscripts .menu-flex{display:flex;justify-content:space-between;align-items:flex-start}#linuxdoscripts .menu-nav{width:140px;display:flex;flex-direction:column;margin:0 20px 0 0;padding-top:15px}#linuxdoscripts .menu-nav li{border-radius:4px;height:32px;width:100%;margin-bottom:5px;box-sizing:border-box;padding:0 10px;display:inline-flex;align-items:center;justify-content:flex-start;font-size:14px;cursor:pointer}#linuxdoscripts .menu-nav li svg{width:16px;margin-right:5px;color:#555}#linuxdoscripts .menu-nav li.act{background:#ececec}#linuxdoscripts .menu-body{flex:1;height:480px;overflow-y:auto;padding-right:10px}#linuxdoscripts .menu-body::-webkit-scrollbar{height:8px;width:8px}#linuxdoscripts .menu-body::-webkit-scrollbar-corner{background:none}#linuxdoscripts .menu-body::-webkit-scrollbar-thumb{background:#dee0e1;border-radius:8px}#linuxdoscripts .menu-body .menu-body-item{display:none}#linuxdoscripts .menu-body .menu-body-item.act{display:block}#linuxdoscripts .menu-footer{display:flex;justify-content:space-between;margin-top:10px;padding-top:6px}#linuxdoscripts .menu-footer.hides{opacity:0;visibility:hidden;overflow:hidden}#linuxdoscripts .import{margin-left:auto!important}#linuxdoscripts .import,#linuxdoscripts .export{background:#d1f0ff;color:#559095}#linuxdoscripts .floorlottery{background:#ffb003}#linuxdoscripts .menu-body-item{padding-bottom:30px}#linuxdoscripts .menu-body-item .item{border-bottom:1px solid rgba(0,0,0,.1);padding:15px 0;display:flex;align-items:center;justify-content:space-between}#linuxdoscripts .menu-body-item .item input[type=checkbox]{width:30px;height:16px;position:relative;border:1px solid #dfdfdf;background-color:#dcdfe6;box-shadow:#dfdfdf 0 0 inset;border-radius:20px;background-clip:content-box;display:inline-block;appearance:none;-webkit-appearance:none;-moz-appearance:none;-webkit-user-select:none;user-select:none;outline:none;padding:0}#linuxdoscripts .menu-body-item .item input[type=checkbox]:before{content:"";position:absolute;width:12px;height:12px;background-color:#fff;border-radius:50%;left:2px;top:0;bottom:0;margin:auto;transition:.3s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked{background-color:#409eff;transition:.6s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked:before{left:14px;transition:.3s}#linuxdoscripts textarea{font-family:inherit;width:100%;min-height:100px!important;border:1px solid #999;outline:0;padding:5px;font-size:14px;margin:5px 0 0;resize:none;border-radius:0;color:var(--d-input-text-color);background:var(--d-input-bg-color)}#linuxdoscripts textarea:focus{border-color:var(--tertiary);outline:2px solid var(--tertiary);outline-offset:-2px}#linuxdoscripts #floorlotterloading img{width:50px;height:50px}#linuxdoscripts .floorlotterywrap{display:none;width:400px;height:300px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:999}#linuxdoscripts .floorlotterywrap{width:400px;height:300px}#linuxdoscripts .el-checkbox__inner{border:1px solid #979797}#linuxdoscripts label{margin:0}.linuxdoscripts-opacity{display:none;position:fixed;left:0;top:0;width:100vw;height:100vh;background:#00000080;z-index:9999}.linuxlevel.four{background:linear-gradient(to right,red,#00f);-webkit-background-clip:text;color:transparent}.topic-post{position:relative}.linuxfloor{display:flex;color:#ff8383;width:30px;height:30px;align-items:center;justify-content:center;border-radius:6px;font-size:16px;margin-left:10px}.signature-p{color:#279a36;font-size:14px;word-break:break-word}.topic-list .views{font-weight:400!important;white-space:nowrap!important}.createreply{display:flex;flex-direction:column;max-width:300px}.createreply button{margin-bottom:10px;justify-content:flex-start;text-align:left}.topicpreview-btn{padding:4px 12px!important;font-size:14px!important;opacity:0!important}.topic-list-item:hover .topicpreview-btn{opacity:1!important}.topicpreview{position:fixed;top:0;left:0;z-index:99999;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;display:none}.topicpreview .topicpreview-container{padding:30px 0;border-radius:5px;width:100%;max-width:800px;overflow-y:auto;height:80vh;z-index:10;background:#fafafa;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.topicpreview .topicpreview-container .topicpreview-title{font-size:22px;font-weight:600;padding:0 30px}.topicpreview .topicpreview-container .topicpreview-date{padding:0 30px;color:#666}.topicpreview .topicpreview-container .topicpreview-content>.item{display:flex;align-items:flex-start;padding:20px 30px}.topicpreview .topicpreview-container .topicpreview-content>.item .itemfloor{width:50px;text-align:left;font-size:16px;padding-top:15px;color:#25b4cf}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost{flex:1;background:#fff;padding:15px;border-radius:10px;font-size:15px;color:#666}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost pre code{max-width:620px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost img{max-width:100%;max-height:100%;height:auto}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname{font-size:16px;color:#8f3a3a;display:flex;justify-content:space-between;align-items:center}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname span{color:#9e9e9e;margin-left:20px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemdate{color:#b9b9b9;font-size:16px;margin-left:auto}.topicpreview-opacity{position:absolute;top:0;left:0;width:100%;height:100%;opacity:1;background:#0009;z-index:9}.body-preview .sidebar-wrapper{display:none!important}body.body-preview #main-outlet-wrapper{display:block!important;padding-left:50px!important}.body-preview .d-header-wrap,.body-preview .menu_suspendedball{display:none!important}.post-activity{white-space:nowrap;display:inline-block;width:100%;text-align:left}.d-header img{height:var(--d-logo-height);width:auto;max-width:100%;object-fit:contain}.aicreated-btn{outline:none;border:1px solid #c5c5c5;background:#eee;display:flex;align-items:center;justify-content:center;line-height:1;font-size:14px;padding:4px 10px;border-radius:3px;margin-bottom:10px}.gpt-summary-wrap{background:#fffbd9;border-radius:5px;padding:10px;font-size:14px;color:#666;margin:0 0 10px;line-height:1.6}.gpt-summary-wrap .airegenerate{display:none;margin-top:6px;outline:none;border:1px solid #eee;background:#ffe27d;color:#626262;padding:4px 10px;cursor:pointer;border-radius:3px}.aicreatenewtopictitle{margin-left:20px}.aicreatenewtopictitle:hover{text-decoration:underline;cursor:pointer}.dark-theme #linuxdoscripts .menu-nav li.act{background:#535353}.dark-theme #linuxdoscripts .menu-nav li svg{color:#d7d7d7}.dark-theme #linuxdoscripts .menu-body-item .item input[type=checkbox]{border-color:#999}.dark-theme input{background:#999;color:#fff}.dark-theme #linuxdoscripts dialog{background:#333;color:#eee;box-shadow:1px 2px 5px #000;border-color:#737373}.dark-theme #linuxdoscripts dialog .menu-about .initialization:hover{color:#eee;border-color:#eee}.dark-theme #linuxdoscripts .title,.dark-theme #linuxdoscripts .item,.dark-theme #linuxdoscripts .menu-footer{border-color:#4b4b4b}.dark-theme .topicpreview .topicpreview-container{background:#292929}.dark-theme .topicpreview .topicpreview-container .topicpreview-content>.item .itempost{background:#363636;color:#a9a9a9}.dark-theme .topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemdate,.dark-theme .topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname span{color:#6b6b6b}.dark-theme .aicreated-btn{background:#999;color:#fff}.dark-theme .gpt-summary-wrap{color:#d9d9d9;background:#717171} ');
(function (vue) {
'use strict';
const name = "linuxdo-scripts";
const version = "0.3.19";
const author = "dlzmoe";
const description = "An enhanced script for the linux.do forum";
const type = "module";
const license = "Apache-2.0";
const scripts = {
dev: "vite",
build: "vite build && py build.py",
preview: "vite preview"
};
const dependencies = {
jquery: "^3.7.1",
vue: "^3.4.27"
};
const devDependencies = {
"@vitejs/plugin-vue": "^5.0.4",
less: "^4.1.0",
"less-loader": "^8.0.0",
"style-loader": "^2.0.0",
vite: "^5.2.12",
"vite-plugin-monkey": "^4.0.0"
};
const packageJson = {
name,
version,
author,
description,
type,
"private": true,
license,
scripts,
dependencies,
devDependencies
};
const _export_sfc = (sfc, props) => {
const target = sfc.__vccOpts || sfc;
for (const [key, val] of props) {
target[key] = val;
}
return target;
};
const _sfc_main$A = {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
data() {
return {
eventListeners: []
};
},
methods: {
init() {
this.removeEventListeners();
$(".topic-list a.title,.topic .search-link").each((index, element) => {
const listener = (event) => {
event.preventDefault();
var url = $(element).attr("href");
window.open(url, "_blank");
};
$(element).on("click", listener);
this.eventListeners.push({ element, listener });
});
},
removeEventListeners() {
this.eventListeners.forEach(({ element, listener }) => {
$(element).off("click", listener);
});
this.eventListeners = [];
}
},
created() {
if (this.modelValue) {
let pollinglength1 = 0;
let pollinglength2 = 0;
setInterval(() => {
if (pollinglength1 != $(".topic-list-body tr").length) {
pollinglength1 = $(".topic-list-body tr").length;
this.init();
}
if (pollinglength2 != $(".post-stream .topic-post").length) {
pollinglength2 = $(".post-stream .topic-post").length;
this.init();
}
}, 1e3);
}
},
beforeDestroy() {
this.removeEventListeners();
}
};
const _hoisted_1$w = { class: "item" };
const _hoisted_2$w = { class: "tit" };
const _hoisted_3$q = ["checked"];
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
vue.createElementVNode("div", _hoisted_2$w, vue.toDisplayString($props.sort) + ". 是否新标签页打开话题", 1),
vue.createElementVNode("input", {
type: "checkbox",
checked: $props.modelValue,
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
}, null, 40, _hoisted_3$q)
]);
}
const MenuOpenpostblank = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A]]);
const _sfc_main$z = {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
methods: {
init() {
if ($("#list-area .show-more").length > 0) {
$("head title").html("【有新话题赶紧来水!!】");
}
}
},
created() {
if (this.modelValue) {
setInterval(() => {
this.init();
}, 1e3);
}
}
};
const _hoisted_1$v = { class: "item" };
const _hoisted_2$v = { class: "tit" };
const _hoisted_3$p = ["checked"];
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
vue.createElementVNode("div", _hoisted_2$v, vue.toDisplayString($props.sort) + ". 是否开启新话题提醒", 1),
vue.createElementVNode("input", {
type: "checkbox",
checked: $props.modelValue,
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
}, null, 40, _hoisted_3$p)
]);
}
const MenuNewtopicreminder = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]);
const _sfc_main$y = {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
methods: {
init() {
$("nav.post-controls .show-replies").each(function() {
$(this).click();
});
}
},
created() {
if (this.modelValue) {
let pollinglength2 = 0;
setInterval(() => {
if (pollinglength2 != $(".post-stream .topic-post").length) {
pollinglength2 = $(".post-stream .topic-post").length;
this.init();
}
}, 1e3);
}
}
};
const _hoisted_1$u = { class: "item" };
const _hoisted_2$u = { class: "tit" };
const _hoisted_3$o = ["checked"];
function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
vue.createElementVNode("div", _hoisted_2$u, vue.toDisplayString($props.sort) + ". 是否自动展开回复", 1),
vue.createElementVNode("input", {
type: "checkbox",
checked: $props.modelValue,
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
}, null, 40, _hoisted_3$o)
]);
}
const MenuAutoexpandreply = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y]]);
const _sfc_main$x = {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
methods: {
formattedDate(time) {
const timestamp = Number(time);
const date = new Date(timestamp);
const now = /* @__PURE__ */ new Date();
const isToday = now.getFullYear() === date.getFullYear() && now.getMonth() === date.getMonth() && now.getDate() === date.getDate();
date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, "0");
const day = String(date.getDate()).padStart(2, "0");
const hours = String(date.getHours()).padStart(2, "0");
const minutes = String(date.getMinutes()).padStart(2, "0");
return isToday ? `${hours}:${minutes}` : `${month}/${day} ${hours}:${minutes}`;
},
convertToTimestamp(dateStr) {
const cleanedDateStr = dateStr.replace(/\s+/g, "");
const datePattern = /(\d{4})年(\d{1,2})月(\d{1,2})日(\d{2}):(\d{2})/;
const dateMatch = cleanedDateStr.match(datePattern);
if (dateMatch) {
const year = parseInt(dateMatch[1], 10);
const month = parseInt(dateMatch[2], 10) - 1;
const day = parseInt(dateMatch[3], 10);
const hours = parseInt(dateMatch[4], 10);
const minutes = parseInt(dateMatch[5], 10);
const date = new Date(year, month, day, hours, minutes);
return date.getTime();
}
return null;
},
setInitDate() {
$(".topic-list .age").each((index, element) => {
const str = $(element).attr("title");
const match = str.match(/创建日期:([\s\S]*?)最新:/);
if (match && match[1]) {
const creationDate = match[1].trim();
const timestamp = this.convertToTimestamp(creationDate);
if ($(element).find(".linuxtime").length < 1) {
const now = (/* @__PURE__ */ new Date()).getTime();
const oneDay = 1e3 * 60 * 60 * 24;
const oneWeek = oneDay * 7;
const oneMonth = oneDay * 30;
const threeMonths = oneMonth * 3;
let color;
const timeDiff = now - timestamp;
if (timeDiff < oneDay) {
color = "#45B5AA";
$(element).find(".post-activity").append(
`(${this.formattedDate(
timestamp
)})`
);
} else if (timeDiff < oneWeek) {
color = "#66A586";
$(element).find(".post-activity").append(
`(${this.formattedDate(
timestamp
)})`
);
} else if (timeDiff < oneMonth) {
color = "#CFA94A";
$(element).find(".post-activity").append(
`(${this.formattedDate(
timestamp
)})`
);
} else if (timeDiff < threeMonths) {
color = "#3e8ed2";
$(element).find(".post-activity").append(
`(${this.formattedDate(
timestamp
)})`
);
} else {
color = "#cccccc";
$(element).find(".post-activity").append(
`
(${this.formattedDate(
timestamp
)})
`
);
}
}
}
});
},
initDateAndStartPolling() {
setInterval(() => {
this.setInitDate();
this.startPolling();
}, 1e3);
},
startPolling() {
setInterval(() => {
this.setInitDate();
}, 1e4);
}
},
mounted() {
if (this.modelValue) {
this.startPolling();
this.initDateAndStartPolling();
}
}
};
const _hoisted_1$t = { class: "item" };
const _hoisted_2$t = { class: "tit" };
const _hoisted_3$n = ["checked"];
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("div", null, [
vue.createElementVNode("div", _hoisted_1$t, [
vue.createElementVNode("div", _hoisted_2$t, vue.toDisplayString($props.sort) + ". 话题列表显示创建时间", 1),
vue.createElementVNode("input", {
type: "checkbox",
checked: $props.modelValue,
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
}, null, 40, _hoisted_3$n)
])
]);
}
const MenuShowcreatetime = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x]]);
const _sfc_main$w = {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
methods: {
formattedDate(time) {
const timestamp = Number(time);
const date = new Date(timestamp);
const now = /* @__PURE__ */ new Date();
const isToday = now.getFullYear() === date.getFullYear() && now.getMonth() === date.getMonth() && now.getDate() === date.getDate();
date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, "0");
const day = String(date.getDate()).padStart(2, "0");
const hours = String(date.getHours()).padStart(2, "0");
const minutes = String(date.getMinutes()).padStart(2, "0");
return isToday ? `${hours}:${minutes}` : `${month}/${day} ${hours}:${minutes}`;
},
convertToTimestamp(dateStr) {
const cleanedDateStr = dateStr.replace(/\s+/g, "");
const datePattern = /(\d{4})年(\d{1,2})月(\d{1,2})日(\d{2}):(\d{2})/;
const dateMatch = cleanedDateStr.match(datePattern);
if (dateMatch) {
const year = parseInt(dateMatch[1], 10);
const month = parseInt(dateMatch[2], 10) - 1;
const day = parseInt(dateMatch[3], 10);
const hours = parseInt(dateMatch[4], 10);
const minutes = parseInt(dateMatch[5], 10);
const date = new Date(year, month, day, hours, minutes);
return date.getTime();
}
return null;
},
setInitDate() {
$(".topic-list-item .age").each((index, element) => {
const str = $(element).attr("title");
const match = str.match(/创建日期:([\s\S]*?)最新:/);
if (match && match[1]) {
const creationDate = match[1].trim();
const timestamp = this.convertToTimestamp(creationDate);
const now = (/* @__PURE__ */ new Date()).getTime();
const oneDay = 1e3 * 60 * 60 * 24;
const oneWeek = oneDay * 7;
const oneMonth = oneDay * 30;
const threeMonths = oneMonth * 3;
let color;
const timeDiff = now - timestamp;
if (timeDiff < oneDay) {
color = "#45B5AA";
$(element).siblings(".views").html(
`${this.formattedDate(
timestamp
)}`
);
} else if (timeDiff < oneWeek) {
color = "#66A586";
$(element).siblings(".views").html(
`${this.formattedDate(
timestamp
)}`
);
} else if (timeDiff < oneMonth) {
color = "#CFA94A";
$(element).siblings(".views").html(
`${this.formattedDate(
timestamp
)}`
);
} else if (timeDiff < threeMonths) {
color = "#3e8ed2";
$(element).siblings(".views").html(
`${this.formattedDate(
timestamp
)}`
);
} else {
color = "#cccccc";
$(element).siblings(".views").html(
`
${this.formattedDate(
timestamp
)}
`
);
}
}
});
},
initDateAndStartPolling() {
setInterval(() => {
this.setInitDate();
this.startPolling();
}, 1e3);
},
startPolling() {
setInterval(() => {
this.setInitDate();
}, 1e4);
}
},
mounted() {
if (this.modelValue) {
this.startPolling();
this.initDateAndStartPolling();
}
}
};
const _hoisted_1$s = { class: "item" };
const _hoisted_2$s = { class: "tit" };
const _hoisted_3$m = ["checked"];
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
vue.createElementVNode("div", _hoisted_2$s, vue.toDisplayString($props.sort) + ". 将浏览量替换为创建时间(与 4 互斥,只可选择一个)", 1),
vue.createElementVNode("input", {
type: "checkbox",
checked: $props.modelValue,
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
}, null, 40, _hoisted_3$m)
]);
}
const MenuShowcreatetime1 = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w]]);
const _sfc_main$v = {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
methods: {
init() {
$(".topic-post").each(function() {
const num = $(this).find("article").attr("id").replace(/^post_/, "");
if ($(this).find(".linuxfloor").length < 1) {
$(this).find(".post-infos").append(`#${num}`);
}
});
}
},
created() {
if (this.modelValue) {
let pollinglength2 = 0;
setInterval(() => {
if (pollinglength2 != $(".post-stream .topic-post").length) {
pollinglength2 = $(".post-stream .topic-post").length;
this.init();
}
}, 1e3);
}
}
};
const _hoisted_1$r = { class: "item" };
const _hoisted_2$r = { class: "tit" };
const _hoisted_3$l = ["checked"];
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
vue.createElementVNode("div", _hoisted_2$r, vue.toDisplayString($props.sort) + ". 是否显示楼层数", 1),
vue.createElementVNode("input", {
type: "checkbox",
checked: $props.modelValue,
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
}, null, 40, _hoisted_3$l)
]);
}
const MenuShowfloors = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v]]);
const _sfc_main$u = {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
created() {
if (this.modelValue) {
$("head").append(``);
}
}
};
const _hoisted_1$q = { class: "item" };
const _hoisted_2$q = { class: "tit" };
const _hoisted_3$k = ["checked"];
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
vue.createElementVNode("div", _hoisted_2$q, vue.toDisplayString($props.sort) + ". 隐藏话题详情顶部大标题", 1),
vue.createElementVNode("input", {
type: "checkbox",
checked: $props.modelValue,
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked))
}, null, 40, _hoisted_3$k)
]);
}
const MenuHidetopicdetailtitle = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u]]);
const _sfc_main$t = {
props: ["modelValue", "sort"],
emits: ["update:modelValue"],
methods: {
init() {
if ($(".topicpreview").length < 1) {
$("body").append(`
正在加载中...
发帖时间:${formatDate( previewData.created_at )}
仅显示前 20 条,查看更多
`); $.each(previewData.post_stream.posts, function(index, post) { $(".topicpreview .topicpreview-content").append(`正在加载中...
` ); }); } }, created() { if (this.modelValue) { setInterval(() => { this.init(); }, 1e3); let pollinglength1 = 0; let pollinglength2 = 0; setInterval(() => { if (pollinglength1 != $(".topic-list-body tr").length) { pollinglength1 = $(".topic-list-body tr").length; this.setClick(); } if (pollinglength2 != $(".post-stream .topic-post").length) { pollinglength2 = $(".post-stream .topic-post").length; this.setClick(); } }, 1e3); } } }; const _hoisted_1$p = { class: "item" }; const _hoisted_2$p = { class: "tit" }; const _hoisted_3$j = ["checked"]; function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [ vue.createElementVNode("div", _hoisted_2$p, vue.toDisplayString($props.sort) + ". 是否开启话题预览功能", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) }, null, 40, _hoisted_3$j) ]); } const MenuTopicpreview = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t]]); const _sfc_main$s = { props: ["modelValue", "sort"], emits: ["update:modelValue"], computed: { value1: { get() { return this.modelValue.value1; }, set(newValue) { this.$emit("update:modelValue", { ...this.modelValue, value1: newValue }); } }, value2: { get() { return this.modelValue.value2; }, set(newValue) { this.$emit("update:modelValue", { ...this.modelValue, value2: newValue }); } } }, methods: { updateValue1(newValue) { this.value1 = newValue; } } }; const _hoisted_1$o = { class: "item" }; const _hoisted_2$o = { class: "tit" }; const _hoisted_3$i = ["checked"]; function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [ vue.createElementVNode("div", _hoisted_2$o, [ vue.createTextVNode(vue.toDisplayString($props.sort) + ". 是否显示自动阅读按钮,可调节速度默认 10 ", 1), vue.withDirectives(vue.createElementVNode("input", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value2 = $event), placeholder: "默认速度 10" }, null, 512), [ [vue.vModelText, $options.value2] ]) ]), vue.createElementVNode("input", { type: "checkbox", checked: $options.value1, onChange: _cache[1] || (_cache[1] = ($event) => $options.updateValue1($event.target.checked)) }, null, 40, _hoisted_3$i) ]); } const MenuAutoRead = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s], ["__scopeId", "data-v-44945bb2"]]); const _sfc_main$r = { props: ["modelValue", "sort"], emits: ["update:modelValue"] }; const _hoisted_1$n = { class: "item" }; const _hoisted_2$n = { class: "tit" }; const _hoisted_3$h = ["checked"]; function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [ vue.createElementVNode("div", _hoisted_2$n, vue.toDisplayString($props.sort) + ". 是否开启只看楼主", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) }, null, 40, _hoisted_3$h) ]); } const MenuLookOP = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]); const _sfc_main$q = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { if (this.modelValue) { $("head").append(``); } } }; const _hoisted_1$m = { class: "item" }; const _hoisted_2$m = { class: "tit" }; const _hoisted_3$g = ["checked"]; function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [ vue.createElementVNode("div", _hoisted_2$m, vue.toDisplayString($props.sort) + ". 智能限制楼层高度", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) }, null, 40, _hoisted_3$g) ]); } const MenuFloorHeight = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]); const emojiSet = [ { size: "30x30", name: "tieba_001", url: "/uploads/default/original/3X/9/a/9ac368cc8eafad165bbcf61b0263803d3b2dc2a7.png?v=12" }, { size: "30x30", name: "tieba_002", url: "/uploads/default/original/3X/1/6/16baef70ba80d438e4bb1907ec0c354d680e09df.png?v=12" }, { size: "30x30", name: "tieba_003", url: "/uploads/default/original/3X/2/7/27a55a1370c41f0736ba094bdc8866c6c2878c16.png?v=12" }, { size: "30x30", name: "tieba_004", url: "/uploads/default/original/3X/9/e/9eac534efec605f5a1ac3b2f08d768cfbb4c63a9.png?v=12" }, { size: "30x30", name: "tieba_005", url: "/uploads/default/original/3X/7/4/7493e87cae45656ac7997e8c79c852f9abc80454.png?v=12" }, { size: "30x30", name: "tieba_006", url: "/uploads/default/original/3X/5/9/596da26825d2a806bd1952b5231f24d212866c1b.png?v=12" }, { size: "30x30", name: "tieba_007", url: "/uploads/default/original/3X/c/0/c055b564a5b580ddfbf651df9a70feaec2b3b8e4.png?v=12" }, { size: "30x30", name: "tieba_008", url: "/uploads/default/original/3X/9/e/9e137b2c72b77ee75454d737b5ad9d043dd49954.png?v=12" }, { size: "30x30", name: "tieba_009", url: "/uploads/default/original/3X/c/7/c756c0f079d25093ed6c7c2feaaa423ead63411c.png?v=12" }, { size: "30x30", name: "tieba_125", url: "/uploads/default/original/3X/1/3/133688dda7ae38a3ddbc9eda0ca99fa8ddbb2704.png?v=12" }, { size: "30x30", name: "tieba_010", url: "/uploads/default/original/3X/2/b/2b58793c54c273c2d3d40722c4def435543084b4.png?v=12" }, { size: "30x30", name: "tieba_011", url: "/uploads/default/original/3X/0/b/0b73771da5b3dc534ad05f1b5fff24325fc0eff7.png?v=12" }, { size: "30x30", name: "tieba_012", url: "/uploads/default/original/3X/9/d/9d9e539ba33d272a5c6468cdb2fa7615695fa788.png?v=12" }, { size: "30x30", name: "tieba_013", url: "/uploads/default/original/3X/e/1/e1aad11157b14d04bc8056573ecb23b5a219d260.png?v=12" }, { size: "30x30", name: "tieba_014", url: "/uploads/default/original/3X/1/2/123defe5ac241618f3bb5246a727be77d996656d.png?v=12" }, { size: "30x30", name: "tieba_015", url: "/uploads/default/original/3X/d/3/d3347ade2d4baf8092696b33c3523e634923b4fe.png?v=12" }, { size: "30x30", name: "tieba_016", url: "/uploads/default/original/3X/2/1/21158038759f6a8630df8507f782a45a6caee004.png?v=12" }, { size: "30x30", name: "tieba_017", url: "/uploads/default/original/3X/7/7/7732425deb158037a8692c45381de35ca83105e6.png?v=12" }, { size: "30x30", name: "tieba_018", url: "/uploads/default/original/3X/7/1/7101ed3a9c047d318454b4eff91d74c06db5eaab.png?v=12" }, { size: "30x30", name: "tieba_019", url: "/uploads/default/original/3X/e/e/eeccf0c1ccda4a4f3b33b4bb502c14e80c324443.png?v=12" }, { size: "30x30", name: "tieba_020", url: "/uploads/default/original/3X/2/8/286824f9727de34e43b906346c0bdb0f854b1e2b.png?v=12" }, { size: "30x30", name: "tieba_021", url: "/uploads/default/original/3X/0/9/09077d62fc78be7a9c19a8c084a35eac8373d241.png?v=12" }, { size: "30x30", name: "tieba_022", url: "/uploads/default/original/3X/6/2/62e7b0ea68e56cc033f78527e62a825a6d9001f2.png?v=12" }, { size: "30x30", name: "tieba_023", url: "/uploads/default/original/3X/d/4/d4e4c57ba70bd38264f0677cf338fa8af3228fbd.png?v=12" }, { size: "30x30", name: "tieba_024", url: "/uploads/default/original/3X/9/c/9c2f3e1ce5982036af66b951a26231b7590e93d4.png?v=12" }, { size: "30x30", name: "tieba_025", url: "/uploads/default/original/3X/e/4/e415f72201d585ac7ccc869a334048006d2b6b9d.png?v=12" }, { size: "30x30", name: "tieba_026", url: "/uploads/default/original/3X/a/d/ad2d245bbe71a05b0bd7a42f435d25524517c7ac.png?v=12" }, { size: "30x30", name: "tieba_027", url: "/uploads/default/original/3X/7/9/7992e06b38f76d7d55a8bc496fa6dd046ba1f0ad.png?v=12" }, { size: "30x30", name: "tieba_028", url: "/uploads/default/original/3X/4/4/448d0cb933ec8016797faef8c8dcfb8822e43326.png?v=12" }, { size: "30x30", name: "tieba_029", url: "/uploads/default/original/3X/8/4/84cd00fd735f11a57b193d62880f55b4ab835c7e.png?v=12" }, { size: "30x30", name: "tieba_030", url: "/uploads/default/original/3X/6/8/68b3471539dbbe40437b0881916feb2d9d4ad254.png?v=12" }, { size: "30x30", name: "tieba_031", url: "/uploads/default/original/3X/8/9/89870339101e10993ef1e55dd9e96f275a6a99f9.png?v=12" }, { size: "30x30", name: "tieba_032", url: "/uploads/default/original/3X/2/5/25936c19b7808540b4a46eb7aeddced05658ec77.png?v=12" }, { size: "30x30", name: "tieba_033", url: "/uploads/default/original/3X/d/f/dff9a29b33ccc0eeffe6d457cee58307246e28ab.png?v=12" }, { size: "30x30", name: "tieba_034", url: "/uploads/default/original/3X/8/b/8b42b74ab6f63dcd02b923cee5ab8f224f32954e.png?v=12" }, { size: "30x30", name: "tieba_035", url: "/uploads/default/original/3X/a/2/a268ad46209a864548c0439854c562d5a1a852e4.png?v=12" }, { size: "30x30", name: "tieba_036", url: "/uploads/default/original/3X/4/9/49b2eba636dba687d98c4254bb00c682194f3556.png?v=12" }, { size: "30x30", name: "tieba_037", url: "/uploads/default/original/3X/5/3/5359fdcfeb8a92794fdf7e0a9e1b7002ba635765.png?v=12" }, { size: "30x30", name: "tieba_038", url: "/uploads/default/original/3X/5/3/535b871b10c649510280825c98e80ee1122613ec.png?v=12" }, { size: "30x30", name: "tieba_039", url: "/uploads/default/original/3X/9/8/98939cb96a8df85af0efdaf02dcc144265e64703.png?v=12" }, { size: "30x30", name: "tieba_040", url: "/uploads/default/original/3X/3/a/3a5fcb80663d73c1f116527c17de7cad37b72c49.png?v=12" }, { size: "30x30", name: "tieba_041", url: "/uploads/default/original/3X/4/0/40cc7fe068c66b38c5e58ee8b59879f572dcd2ca.png?v=12" }, { size: "30x30", name: "tieba_042", url: "/uploads/default/original/3X/e/6/e69395f0a9f391ca3c296aeddf510d0fb1d28fdf.png?v=12" }, { size: "30x30", name: "tieba_043", url: "/uploads/default/original/3X/1/2/123e2d16a27491073fd90994fcd2820a48b2eb1d.png?v=12" }, { size: "30x30", name: "tieba_044", url: "/uploads/default/original/3X/4/d/4d101bae8975480e4c81969242c6db771ccf29df.png?v=12" }, { size: "30x30", name: "tieba_045", url: "/uploads/default/original/3X/6/8/687dca2210abafbcaaf211e27a013c1c0d7d480c.png?v=12" }, { size: "30x30", name: "tieba_046", url: "/uploads/default/original/3X/1/4/14bca5d4cdaca743d0da8bc7f3b23146b53bc534.png?v=12" }, { size: "30x30", name: "tieba_047", url: "/uploads/default/original/3X/c/d/cd555f2a5f605873e85b12ebf5e20affeb86817b.png?v=12" }, { size: "30x30", name: "tieba_048", url: "/uploads/default/original/3X/7/d/7d5173acb48b6662934d93d15ccf03bc4eb4fe1e.png?v=12" }, { size: "30x30", name: "tieba_049", url: "/uploads/default/original/3X/b/7/b774ed3e1792a0c345c3dc6b405398fc330476c4.png?v=12" }, { size: "30x30", name: "tieba_050", url: "/uploads/default/original/3X/6/3/63c1a091c6a7a3a4ba09f79d3df61b5258d1da14.png?v=12" }, { size: "30x30", name: "tieba_062", url: "/uploads/default/original/3X/6/4/644937964bfb3b7ff9519a8c789fba156bc51493.png?v=12" }, { size: "30x30", name: "tieba_063", url: "/uploads/default/original/3X/9/7/977e25c3bb0bb2ffffd7680ef75de860c9bc8eeb.png?v=12" }, { size: "30x30", name: "tieba_064", url: "/uploads/default/original/3X/f/a/fa08552ff47b7347fe769ea71e251784fe46e9c4.png?v=12" }, { size: "30x30", name: "tieba_065", url: "/uploads/default/original/3X/8/d/8ddf6f88c399106b30f08bc6ae594dba19e8da36.png?v=12" }, { size: "30x30", name: "tieba_066", url: "/uploads/default/original/3X/d/c/dccf34dbec6856992ab133e61a1f35417caf5f94.png?v=12" }, { size: "30x30", name: "tieba_067", url: "/uploads/default/original/3X/1/6/16cd502b6c1d42d6d929788d47a96e50313b361f.png?v=12" }, { size: "30x30", name: "tieba_068", url: "/uploads/default/original/3X/a/7/a79256841becf6fc218cf13ed7c9708d2846f472.png?v=12" }, { size: "30x30", name: "tieba_069", url: "/uploads/default/original/3X/1/b/1b279f1106ef55973ae2df3a41edda04181163f6.png?v=12" }, { size: "30x30", name: "tieba_070", url: "/uploads/default/original/3X/1/e/1e8646c269ac7a1cea631b1a2fe107a4b0137dd4.png?v=12" }, { size: "30x30", name: "tieba_071", url: "/uploads/default/original/3X/4/f/4fcf98aa20e5148d8f0dd1e117d99ad52fe7787a.png?v=12" }, { size: "30x30", name: "tieba_072", url: "/uploads/default/original/3X/f/b/fbdca3a08e2eb36d408a9f723251132a6e1a4a1d.png?v=12" }, { size: "30x30", name: "tieba_073", url: "/uploads/default/original/3X/e/f/efcf23577412c17df6354df84eae836ad324d3fc.png?v=12" }, { size: "30x30", name: "tieba_074", url: "/uploads/default/original/3X/4/0/40f2d01d50e90a29680636aa5b5b6808fe4e496b.png?v=12" }, { size: "30x30", name: "tieba_075", url: "/uploads/default/original/3X/b/2/b29012e6751baac99a0b364978e2ba6c68696bb0.png?v=12" }, { size: "30x30", name: "tieba_076", url: "/uploads/default/original/3X/8/e/8eb5b83342386cac1dcf7ee4de785540eb85b941.png?v=12" }, { size: "30x30", name: "tieba_077", url: "/uploads/default/original/3X/0/d/0d84801a6c000b4724a4f998ae2cebbb75088672.png?v=12" }, { size: "30x30", name: "tieba_078", url: "/uploads/default/original/3X/e/8/e8342efcc78faa5225bc94fdc50d595b35de226a.png?v=12" }, { size: "30x30", name: "tieba_079", url: "/uploads/default/original/3X/0/3/03493b5fee0ad65939b223bcb99256c2ad3f92cf.png?v=12" }, { size: "30x30", name: "tieba_080", url: "/uploads/default/original/3X/6/0/6010085f85bbd33ec476d908a3adedf43bf806d2.png?v=12" }, { size: "30x30", name: "tieba_081", url: "/uploads/default/original/3X/4/7/472396c3c1fdc62031460f52fa57e70656559956.png?v=12" }, { size: "30x30", name: "tieba_082", url: "/uploads/default/original/3X/e/8/e8ed47702a901d932ce0f2c926006c569777acae.png?v=12" }, { size: "30x30", name: "tieba_083", url: "/uploads/default/original/3X/8/3/839487b3bbfe38ea8a6d69115c2b18e336c776aa.png?v=12" }, { size: "30x30", name: "tieba_084", url: "/uploads/default/original/3X/d/a/da2b0f67a66746f0702044254460f5f210159dfe.png?v=12" }, { size: "30x30", name: "tieba_085", url: "/uploads/default/original/3X/4/b/4bfbebdb5da3afb04e73813042a2645dea7895a3.png?v=12" }, { size: "30x30", name: "tieba_086", url: "/uploads/default/original/3X/4/0/4035794fd9995594b024ca6695de918567c5b192.png?v=12" }, { size: "30x30", name: "tieba_087", url: "/uploads/default/original/3X/2/e/2e09f3a3c7b27eacbabe9e9614b06b88d5b06343.png?v=12" }, { size: "30x30", name: "tieba_088", url: "/uploads/default/original/3X/8/8/8842b4bbda39465fefb2a5cee47c8b203463e327.png?v=12" }, { size: "30x30", name: "tieba_089", url: "/uploads/default/original/3X/c/2/c20aca50f9432ad01fdaf454e2013083be11909c.png?v=12" }, { size: "30x30", name: "tieba_090", url: "/uploads/default/original/3X/0/e/0eb0e2df1d8287c00069e1bb906f65a7e6f8ac1f.png?v=12" }, { size: "30x30", name: "tieba_091", url: "/uploads/default/original/3X/f/c/fcb760df48754f55cd9030370300880cddc30aeb.png?v=12" }, { size: "30x30", name: "tieba_092", url: "/uploads/default/original/3X/6/d/6d1bcb4bdba18ec87caac87e5c944d81244c0925.png?v=12" }, { size: "30x30", name: "tieba_093", url: "/uploads/default/original/3X/1/7/17e9f52f1b3f19e5fcf1e30b0bef7154b9cb25e9.png?v=12" }, { size: "30x30", name: "tieba_094", url: "/uploads/default/original/3X/d/8/d84a7737da89e36a682519cc53dc36869dc8324a.png?v=12" }, { size: "30x30", name: "tieba_095", url: "/uploads/default/original/3X/d/6/d687f7716a72d08b5ab44bf515b4b47ddf973a16.png?v=12" }, { size: "30x30", name: "tieba_096", url: "/uploads/default/original/3X/9/1/91c4bdc5b31022de2047b0e326f85aac696a61d8.png?v=12" }, { size: "30x30", name: "tieba_097", url: "/uploads/default/original/3X/9/9/992ffdfd94f164debe2ff1ffd686eb9b6d886c30.png?v=12" }, { size: "30x30", name: "tieba_098", url: "/uploads/default/original/3X/a/b/ab4d09d173fe9d726a7df370527e3bb11b86ac37.png?v=12" }, { size: "30x30", name: "tieba_099", url: "/uploads/default/original/3X/9/e/9e07307cddc9a8e1b17374d688dcd9cac0009b36.png?v=12" }, { size: "30x30", name: "tieba_100", url: "/uploads/default/original/3X/0/8/083d87100f8608832766302d52e90c66bfa7b55e.png?v=12" }, { size: "30x30", name: "tieba_101", url: "/uploads/default/original/3X/d/d/ddf9dab71979b328b8cc99a110961278b31af15f.png?v=12" }, { size: "30x30", name: "tieba_102", url: "/uploads/default/original/3X/c/1/c1e30e625a80f2c4e38d15051adc0fbff0cdac85.png?v=12" }, { size: "30x30", name: "tieba_103", url: "/uploads/default/original/3X/4/9/4932179ffb43027d3482ff0a8e79ad3c9f124675.png?v=12" }, { size: "30x30", name: "tieba_104", url: "/uploads/default/original/3X/e/e/ee4698ca2806e680bf8710a138964433caeec7db.png?v=12" }, { size: "30x30", name: "tieba_105", url: "/uploads/default/original/3X/0/4/04b9b300e3259e61fe2e9b6e1a291112fece7aa5.png?v=12" }, { size: "30x30", name: "tieba_106", url: "/uploads/default/original/3X/4/5/45cf9833729d3f67e4b71327c07bda302ac3f792.png?v=12" }, { size: "30x30", name: "tieba_107", url: "/uploads/default/original/3X/6/c/6c0346f696e90c6f804ade9f9d578c8c79c99aac.png?v=12" }, { size: "30x30", name: "tieba_108", url: "/uploads/default/original/3X/a/1/a1ec5ef51c85ebabebe5102b00a1a4caeb08be63.png?v=12" }, { size: "30x30", name: "tieba_109", url: "/uploads/default/original/3X/b/7/b75001317cf515737019777e8a6ed35b5b46ca6c.png?v=12" }, { size: "30x30", name: "tieba_110", url: "/uploads/default/original/3X/0/1/0194cea00dae49fd82321825b52d96e1f8f47732.png?v=12" }, { size: "30x30", name: "tieba_111", url: "/uploads/default/original/3X/b/5/b52e429fb2a84f8e72169c358f00b20e271d9f83.png?v=12" }, { size: "30x30", name: "tieba_112", url: "/uploads/default/original/3X/c/9/c9aa6ca75dbffd21308721ce156da371e82b47f9.png?v=12" }, { size: "30x30", name: "tieba_113", url: "/uploads/default/original/3X/1/c/1cadebeaf0cd36af11665ffa5802ba1c5b143be9.png?v=12" }, { size: "30x30", name: "tieba_114", url: "/uploads/default/original/3X/d/d/dd93786f2a24352b65e23f81d2c24c1a41439cf0.png?v=12" }, { size: "30x30", name: "tieba_115", url: "/uploads/default/original/3X/1/e/1e79d50d73b1afaeffe39574e92154d5d2878787.png?v=12" }, { size: "30x30", name: "tieba_116", url: "/uploads/default/original/3X/d/a/daf75362acc5e46c813a77d8bd143e4e20dd89e5.png?v=12" }, { size: "30x30", name: "tieba_117", url: "/uploads/default/original/3X/f/c/fcca64230d5d15b933b3b9db491f9d3516909b62.png?v=12" }, { size: "30x30", name: "tieba_118", url: "/uploads/default/original/3X/1/8/189ed0fa3c3c01fdf1a99e836f1fa921f679b286.png?v=12" }, { size: "30x30", name: "tieba_119", url: "/uploads/default/original/3X/1/2/1267794a9888419b4d72a2e92162dcb10c08d740.png?v=12" }, { size: "30x30", name: "tieba_120", url: "/uploads/default/original/3X/2/b/2b20054bfb140ededbc4a5b94d529960ab49522a.png?v=12" }, { size: "30x30", name: "tieba_121", url: "/uploads/default/original/3X/5/4/54c6102be172ff5b326edcff59e4ed6485495218.png?v=12" }, { size: "30x30", name: "tieba_122", url: "/uploads/default/original/3X/f/b/fb9a3fe91bb52c30496dd41c739bd829511498fe.png?v=12" }, { size: "30x30", name: "tieba_123", url: "/uploads/default/original/3X/0/6/069a4f21d927aac0db15bb2304ca29f5bdd0f733.png?v=12" }, { size: "30x30", name: "tieba_124", url: "/uploads/default/original/3X/3/7/372798490ea3b5ca4dac38233413355c6c8175ce.png?v=12" } ]; setInterval(() => { var editor = document.querySelector(".d-editor-button-bar"); if (!document.querySelector(".emoji-picker-button") && editor) { var emojiButton = document.createElement("button"); emojiButton.classList.add( "btn", "no-text", "btn-icon", "emoji", "emoji-picker-button" ); emojiButton.title = "插入贴吧表情包"; emojiButton.innerHTML = ""; editor.appendChild(emojiButton); emojiButton.addEventListener("click", function() { var emojiPicker = document.createElement("div"); emojiPicker.className = "emojiPicker"; var emojiSetHtml = emojiSet.map( (emo) => `${url}(该用户签名非图片格式,已自动转文字)
` ); self.hide(); } else { url.replace(/\/+$/, ""); var domainPattern = /\.(com|org|net|edu|gov|co|cn|io|info|biz|me|us|uk|au|de|fr|jp|ru|ch|it|nl|se|no|es|mil|int|arpa|asia|museum|name|pro|coop|aero|cat|jobs|mobi|travel|xxx|idv|tv|cc|ws|bz|nu|tk|fm|ag|am|at|be|bg|cd|cf|cg|ch|cl|cm|cz|dk|dm|ec|ee|es|eu|fi|ga|gd|gf|gg|gl|gp|gr|hm|hr|ht|hu|im|io|is|je|ke|kg|ki|kr|kz|la|lc|li|lt|lu|lv|ma|mc|md|ms|mt|mu|mx|my|nf|ng|nl|no|nz|pa|pe|pf|pg|pl|pm|pn|pr|pt|pw|re|ro|rs|sa|sb|sc|sg|sh|si|sk|sm|sn|so|st|su|sx|tc|tf|tk|tl|tm|to|tr|tt|tw|ua|ug|uy|uz|vc|ve|vg|vn|vu|wf|xyz|yt|za|zm|zw)$/i; if (domainPattern.test(url)) { self.after( `${url}(该用户签名非图片格式,已自动转文字)
` ); self.hide(); } else if (url.indexOf("photos.google.com") !== -1) { self.after( `${url}(该用户签名非图片格式,已自动转文字)
` ); self.hide(); } } } }); if ($(".menu-nav").length > 0) { $(".menu-nav li").each(function() { $(this).click(function() { const num = $(this).index(); $(".menu-nav li").removeClass("act"); $(this).addClass("act"); $(".menu-body-item").removeClass("act"); $(".menu-body-item").eq(num).addClass("act"); if (num == 2) { $(".menu-footer").addClass("hides"); } else { $(".menu-footer").removeClass("hides"); } }); }); } }, // 初始化设置 initialization() { localStorage.removeItem("linxudoscriptssetting"); setTimeout(() => { location.reload(); }, 1e3); } }, created() { setInterval(() => { if ($(".linuxdoscripts-setting").length < 1) { $(".sidebar-footer-actions").prepend(``); } }, 1e3); const linxudoscriptssetting = localStorage.getItem("linxudoscriptssetting"); if (linxudoscriptssetting) { this.settingData = JSON.parse(linxudoscriptssetting); this.showautoread = this.settingData.checked8.value1; this.showlookop = this.settingData.checked9; this.showlevelsearch = this.settingData.checked12; this.showaidialog = this.settingData.checked18; } else { localStorage.setItem("linxudoscriptssetting", JSON.stringify(this.settingData)); } setInterval(() => { this.runscripts(); }, 1e3); } }; const _hoisted_1 = { id: "linuxdoscripts" }; const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "linuxdoscripts-opacity" }, null, -1); const _hoisted_3 = { class: "setting-btn" }; const _hoisted_4 = { open: "", id: "menu_suspendedball" }; const _hoisted_5 = { class: "menu-header" }; const _hoisted_6 = { class: "title" }; const _hoisted_7 = { class: "menu-flex" }; const _hoisted_8 = /* @__PURE__ */ vue.createStaticVNode(' ', 1); const _hoisted_9 = { class: "menu-body" }; const _hoisted_10 = { class: "menu-body-item act" }; const _hoisted_11 = { class: "menu-about" }; const _hoisted_12 = /* @__PURE__ */ vue.createElementVNode("p", null, "请注意,该设置面板数据全部保存在本地浏览器缓存中,注意备份。", -1); const _hoisted_13 = { class: "hint" }; const _hoisted_14 = { class: "menu-body-item" }; const _hoisted_15 = { class: "menu-body-item" }; const _hoisted_16 = { class: "menu-body-item" }; const _hoisted_17 = { class: "menu-footer" }; const _hoisted_18 = /* @__PURE__ */ vue.createElementVNode("a", { style: { "margin-left": "8px" }, target: "_blank", href: "https://greasyfork.org/zh-CN/scripts/501827-linuxdo-%E5%A2%9E%E5%BC%BA%E6%8F%92%E4%BB%B6" }, [ /* @__PURE__ */ vue.createElementVNode("button", { class: "detection" }, "检测新版本") ], -1); const _hoisted_19 = { open: "" }; const _hoisted_20 = /* @__PURE__ */ vue.createElementVNode("div", { class: "menu-header" }, [ /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, "楼层抽奖") ], -1); const _hoisted_21 = { class: "menu-body", style: { "margin-top": "10px" } }; const _hoisted_22 = /* @__PURE__ */ vue.createElementVNode("div", { style: { "height": "20px" } }, null, -1); const _hoisted_23 = { key: 0 }; const _hoisted_24 = { key: 1, title: "抽奖结果", type: "success" }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_AIDialog = vue.resolveComponent("AIDialog"); const _component_LevelDiglog = vue.resolveComponent("LevelDiglog"); const _component_AutoRead = vue.resolveComponent("AutoRead"); const _component_LookOP = vue.resolveComponent("LookOP"); const _component_MenuOpenpostblank = vue.resolveComponent("MenuOpenpostblank"); const _component_MenuNewtopicreminder = vue.resolveComponent("MenuNewtopicreminder"); const _component_MenuAutoexpandreply = vue.resolveComponent("MenuAutoexpandreply"); const _component_MenuShowcreatetime = vue.resolveComponent("MenuShowcreatetime"); const _component_MenuShowcreatetime1 = vue.resolveComponent("MenuShowcreatetime1"); const _component_MenuShowfloors = vue.resolveComponent("MenuShowfloors"); const _component_MenuHidetopicdetailtitle = vue.resolveComponent("MenuHidetopicdetailtitle"); const _component_MenuTopicpreview = vue.resolveComponent("MenuTopicpreview"); const _component_MenuAutoRead = vue.resolveComponent("MenuAutoRead"); const _component_MenuLookOP = vue.resolveComponent("MenuLookOP"); const _component_MenuFloorHeight = vue.resolveComponent("MenuFloorHeight"); const _component_MenuPangu = vue.resolveComponent("MenuPangu"); const _component_MenuLevelSearch = vue.resolveComponent("MenuLevelSearch"); const _component_MenuShowUnread = vue.resolveComponent("MenuShowUnread"); const _component_MenuFilterText = vue.resolveComponent("MenuFilterText"); const _component_MenuLookmeSign = vue.resolveComponent("MenuLookmeSign"); const _component_MenuQuickAccess = vue.resolveComponent("MenuQuickAccess"); const _component_MenureplaceEmojiStyle = vue.resolveComponent("MenureplaceEmojiStyle"); const _component_MenuShowAI = vue.resolveComponent("MenuShowAI"); const _component_MenuEditorJa = vue.resolveComponent("MenuEditorJa"); const _component_MenuStickyNav = vue.resolveComponent("MenuStickyNav"); const _component_Updates = vue.resolveComponent("Updates"); const _component_MenuLogoUrl = vue.resolveComponent("MenuLogoUrl"); const _component_MenuCreatereply = vue.resolveComponent("MenuCreatereply"); const _component_MenuBlockKeyword = vue.resolveComponent("MenuBlockKeyword"); const _component_MenuBlockuserlist = vue.resolveComponent("MenuBlockuserlist"); const _component_MenuOtherCss = vue.resolveComponent("MenuOtherCss"); const _component_UserTags = vue.resolveComponent("UserTags"); const _component_GPTconfig = vue.resolveComponent("GPTconfig"); const _component_UsageTip = vue.resolveComponent("UsageTip"); const _component_ReplyTBEnjoy = vue.resolveComponent("ReplyTBEnjoy"); return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [ _hoisted_2, vue.createElementVNode("div", _hoisted_3, [ vue.withDirectives(vue.createVNode(_component_AIDialog, null, null, 512), [ [vue.vShow, $data.showaidialog] ]), vue.withDirectives(vue.createVNode(_component_LevelDiglog, null, null, 512), [ [vue.vShow, $data.showlevelsearch] ]), vue.withDirectives(vue.createVNode(_component_AutoRead, null, null, 512), [ [vue.vShow, $data.showautoread] ]), vue.withDirectives(vue.createVNode(_component_LookOP, null, null, 512), [ [vue.vShow, $data.showlookop] ]) ]), vue.createElementVNode("dialog", _hoisted_4, [ vue.createElementVNode("div", _hoisted_5, [ vue.createElementVNode("div", _hoisted_6, "linuxdo 增强插件设置 " + vue.toDisplayString($data.version), 1), vue.createElementVNode("div", { class: "close", onClick: _cache[0] || (_cache[0] = (...args) => $options.closedialog && $options.closedialog(...args)) }, "+") ]), vue.createElementVNode("div", _hoisted_7, [ _hoisted_8, vue.createElementVNode("div", _hoisted_9, [ vue.createElementVNode("div", _hoisted_10, [ vue.createElementVNode("div", _hoisted_11, [ _hoisted_12, vue.createElementVNode("p", _hoisted_13, [ vue.createTextVNode(" 如果感觉哪里不太对劲,点我"), vue.createElementVNode("span", { class: "initialization", onClick: _cache[1] || (_cache[1] = (...args) => $options.initialization && $options.initialization(...args)) }, "初始化设置"), vue.createTextVNode(",会清除所有的设置数据并初始化!! ") ]) ]), vue.createVNode(_component_MenuOpenpostblank, { sort: 1, modelValue: $data.settingData.checked1, "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.settingData.checked1 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuNewtopicreminder, { sort: 2, modelValue: $data.settingData.checked2, "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.settingData.checked2 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuAutoexpandreply, { sort: 3, modelValue: $data.settingData.checked3, "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.settingData.checked3 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuShowcreatetime, { sort: 4, modelValue: $data.settingData.checked4, "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.settingData.checked4 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuShowcreatetime1, { sort: 4.1, modelValue: $data.settingData.checked41, "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.settingData.checked41 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuShowfloors, { sort: 5, modelValue: $data.settingData.checked5, "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.settingData.checked5 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuHidetopicdetailtitle, { sort: 6, modelValue: $data.settingData.checked6, "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.settingData.checked6 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuTopicpreview, { sort: 7, modelValue: $data.settingData.checked7, "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.settingData.checked7 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuAutoRead, { sort: 8, modelValue: $data.settingData.checked8, "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.settingData.checked8 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuLookOP, { sort: 9, modelValue: $data.settingData.checked9, "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.settingData.checked9 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuFloorHeight, { sort: 10, modelValue: $data.settingData.checked10, "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.settingData.checked10 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuPangu, { sort: 11, modelValue: $data.settingData.checked11, "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $data.settingData.checked11 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuLevelSearch, { sort: 12, modelValue: $data.settingData.checked12, "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.settingData.checked12 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuShowUnread, { sort: 13, modelValue: $data.settingData.checked13, "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $data.settingData.checked13 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuFilterText, { sort: 14, modelValue: $data.settingData.checked14, "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => $data.settingData.checked14 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuLookmeSign, { sort: 15, modelValue: $data.settingData.checked15, "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => $data.settingData.checked15 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuQuickAccess, { sort: 16, modelValue: $data.settingData.checked16, "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => $data.settingData.checked16 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenureplaceEmojiStyle, { sort: 17, modelValue: $data.settingData.checked17, "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => $data.settingData.checked17 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuShowAI, { sort: 18, modelValue: $data.settingData.checked18, "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => $data.settingData.checked18 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuEditorJa, { sort: 19, modelValue: $data.settingData.checked19, "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => $data.settingData.checked19 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_MenuStickyNav, { sort: 20, modelValue: $data.settingData.checked20, "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => $data.settingData.checked20 = $event) }, null, 8, ["modelValue"]), vue.createVNode(_component_Updates) ]), vue.createElementVNode("div", _hoisted_14, [ vue.createVNode(_component_MenuLogoUrl, { sort: 1, value: $data.settingData.logourl, "onUpdate:value": _cache[23] || (_cache[23] = ($event) => $data.settingData.logourl = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuCreatereply, { sort: 2, value: $data.settingData.QuickReply, "onUpdate:value": _cache[24] || (_cache[24] = ($event) => $data.settingData.QuickReply = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuBlockKeyword, { sort: 3, value: $data.settingData.blockkeywrod, "onUpdate:value": _cache[25] || (_cache[25] = ($event) => $data.settingData.blockkeywrod = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuBlockuserlist, { sort: 4, value: $data.settingData.blockList, "onUpdate:value": _cache[26] || (_cache[26] = ($event) => $data.settingData.blockList = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuOtherCss, { sort: 5, value: $data.settingData.othercss, "onUpdate:value": _cache[27] || (_cache[27] = ($event) => $data.settingData.othercss = $event) }, null, 8, ["value"]) ]), vue.createElementVNode("div", _hoisted_15, [ vue.createVNode(_component_UserTags) ]), vue.createElementVNode("div", _hoisted_16, [ vue.createVNode(_component_GPTconfig, { value: $data.settingData.gptdata, "onUpdate:value": _cache[28] || (_cache[28] = ($event) => $data.settingData.gptdata = $event) }, null, 8, ["value"]) ]) ]) ]), vue.createElementVNode("div", _hoisted_17, [ vue.createElementVNode("input", { type: "file", id: "fileInput", ref: "fileInput", style: { "display": "none" }, accept: ".json", onChange: _cache[29] || (_cache[29] = (...args) => $options.handleFileUpload && $options.handleFileUpload(...args)) }, null, 544), vue.createElementVNode("button", { class: "save", onClick: _cache[30] || (_cache[30] = (...args) => $options.save && $options.save(...args)) }, "保存"), vue.createElementVNode("button", { class: "saveload", onClick: _cache[31] || (_cache[31] = (...args) => $options.saveload && $options.saveload(...args)) }, "保存并刷新"), vue.createElementVNode("button", { class: "floorlottery", onClick: _cache[32] || (_cache[32] = (...args) => $options.openFloorlottery && $options.openFloorlottery(...args)) }, "楼层抽奖"), _hoisted_18, vue.createElementVNode("button", { class: "btn import", onClick: _cache[33] || (_cache[33] = (...args) => $options.triggerFileInput && $options.triggerFileInput(...args)) }, "导入"), vue.createElementVNode("button", { class: "btn export", onClick: _cache[34] || (_cache[34] = (...args) => $options.exportData && $options.exportData(...args)) }, "导出") ]) ]), vue.withDirectives(vue.createElementVNode("dialog", _hoisted_19, [ _hoisted_20, vue.createElementVNode("div", _hoisted_21, [ vue.withDirectives(vue.createElementVNode("input", { type: "text", "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => $data.floorlotteryval1 = $event), placeholder: "请输入总数" }, null, 512), [ [vue.vModelText, $data.floorlotteryval1] ]), vue.withDirectives(vue.createElementVNode("input", { type: "text", "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => $data.floorlotteryval2 = $event), placeholder: "请输入抽取的数量" }, null, 512), [ [vue.vModelText, $data.floorlotteryval2] ]), vue.createElementVNode("button", { class: "btn save", onClick: _cache[37] || (_cache[37] = (...args) => $options.drawRandomNumbers && $options.drawRandomNumbers(...args)) }, "开始抽奖"), vue.createElementVNode("button", { class: "btn", style: { "background": "#979797" }, plain: "", onClick: _cache[38] || (_cache[38] = (...args) => $options.closelotter && $options.closelotter(...args)) }, "关闭弹窗"), _hoisted_22, $data.floorlotterloading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, "正在抽奖...")) : vue.createCommentVNode("", true), $data.floorlotterresult ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, " 抽奖结果:" + vue.toDisplayString($data.floorlotterresult), 1)) : vue.createCommentVNode("", true) ]) ], 512), [ [vue.vShow, $data.floorlotteryDialog] ]), vue.createVNode(_component_UsageTip), vue.createVNode(_component_ReplyTBEnjoy) ]); } const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); const app = vue.createApp(App); app.mount( (() => { const appDiv = document.createElement("div"); document.body.append(appDiv); return appDiv; })() ); })(Vue);