no message

This commit is contained in:
A1300399510 2023-12-21 10:53:20 +08:00
parent c4b141a403
commit b38c6ed28a
13 changed files with 87 additions and 76 deletions

@ -1,5 +1,5 @@
{
"date": "2023-12-20T11:13:30.476Z",
"date": "2023-12-21T02:52:46.282Z",
"preset": "node-server",
"framework": {
"name": "nuxt",

@ -1 +1 @@
{"id":"33882d99-77dc-459f-ad83-3951d297bcee","timestamp":1703070800352}
{"id":"984a1b37-8472-442e-90b0-902edf3ab4f7","timestamp":1703127155342}

@ -1 +0,0 @@
{"id":"33882d99-77dc-459f-ad83-3951d297bcee","timestamp":1703070800352,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

@ -0,0 +1 @@
{"id":"984a1b37-8472-442e-90b0-902edf3ab4f7","timestamp":1703127155342,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +1 @@
import{_ as i,t as a,v as r,x as n,y as e,z as s,D as l,E as d}from"./entry.dadaf385.js";const c=t=>(l("data-v-df79c84d"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-df79c84d"]]);export{w as default};
import{_ as i,t as a,v as r,x as n,y as e,z as s,D as l,E as d}from"./entry.b40c895b.js";const c=t=>(l("data-v-df79c84d"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},f=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[f,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-df79c84d"]]);export{w as default};

@ -159,7 +159,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-404.e8ebf12b.js",
"file": "error-404.809b08a3.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@ -185,7 +185,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-500.4317c9d2.js",
"file": "error-500.b5287091.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@ -240,7 +240,7 @@ const client_manifest = {
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue",
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue"
],
"file": "entry.dadaf385.js",
"file": "entry.b40c895b.js",
"isEntry": true,
"src": "node_modules/nuxt/dist/app/entry.js",
"_globalCSS": true

@ -1076,7 +1076,6 @@ const _export_sfc = (sfc, props) => {
const _sfc_main$2 = {
name: "#answer-app",
async setup() {
axios.defaults.headers.get["If-Modified-Since"] = "0";
const $ajax = (url, data) => {
url = url.indexOf("//") > -1 ? url : baseURL2 + url;
return new Promise(function(resolve, reject) {
@ -1252,6 +1251,9 @@ const _sfc_main$2 = {
if (res.code != 200)
return;
let data = res.data;
data.data.forEach((element) => {
element["content"] = element["content"].replace(/<[^>]*>/g, "");
});
list.value = list.value.concat(data.data || []);
backupsList = backupsList.concat(data.data || []);
total.value = data.count || 0;
@ -2407,7 +2409,6 @@ const _sfc_main$2 = {
};
let seo = ref({});
let initState = ref(0);
let arrr = [];
try {
const params = route.query;
if (params["keyword"])
@ -2443,10 +2444,11 @@ const _sfc_main$2 = {
if (res.code != 200)
return;
let data = res.data;
let arr = data.data;
arrr = arr;
list.value = [...arr];
backupsList = [...arr];
data.data.forEach((element) => {
element["content"] = element["content"].replace(/<[^>]*>/g, "");
});
list.value = data.data;
backupsList = data.data;
total.value = data.count || 0;
keywordText.value = keyword.value || "";
if (list.value.length != data["count"])
@ -2835,7 +2837,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
if (item["type"] == "thread") {
_push(`<!--[-->`);
if (item["message"]) {
_push(`<div class="answer ellipsis">${item["message"]}</div>`);
_push(`<div class="answer ellipsis">${ssrInterpolate(item["message"])}</div>`);
} else {
_push(`<!---->`);
}
@ -2880,7 +2882,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
}
_push(`<div class="issue ellipsis flex1">${ssrInterpolate(item["title"])}</div></div>`);
if (item["content"]) {
_push(`<div class="answer ellipsis">${item["content"]}</div>`);
_push(`<div class="answer ellipsis">${ssrInterpolate(item["content"])}</div>`);
} else {
_push(`<!---->`);
}

@ -1,8 +1,8 @@
const interopDefault = r => r.default || r || [];
const styles = {
"node_modules/nuxt/dist/app/entry.js": () => import('./static/entry-styles.85d8410d.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue": () => import('./static/error-500-styles.cf4b3e80.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue": () => import('./static/error-404-styles.1e0dde27.mjs').then(interopDefault)
"node_modules/@nuxt/ui-templates/dist/templates/error-404.vue": () => import('./static/error-404-styles.1e0dde27.mjs').then(interopDefault),
"node_modules/@nuxt/ui-templates/dist/templates/error-500.vue": () => import('./static/error-500-styles.cf4b3e80.mjs').then(interopDefault)
};
export { styles as default };

@ -3059,7 +3059,7 @@ function klona(x) {
const inlineAppConfig = {
"nuxt": {
"buildId": "33882d99-77dc-459f-ad83-3951d297bcee"
"buildId": "984a1b37-8472-442e-90b0-902edf3ab4f7"
}
};
@ -4949,205 +4949,205 @@ const assets = {
"/static/add-icon.0b0b5313.svg": {
"type": "image/svg+xml",
"etag": "\"d67-gajxuGcy6aHIeWAbO0RazX03p90\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.624Z",
"size": 3431,
"path": "../public/static/add-icon.0b0b5313.svg"
},
"/static/arrows-icon.271dd0d3.svg": {
"type": "image/svg+xml",
"etag": "\"5a0-yAit7q5lcKJMd35iOMMifZv2uno\"",
"mtime": "2023-12-20T11:13:23.990Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 1440,
"path": "../public/static/arrows-icon.271dd0d3.svg"
},
"/static/close-icon.86743366.svg": {
"type": "image/svg+xml",
"etag": "\"2d4-QYrulZl33jopLCT37UdJfnzXOVg\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 724,
"path": "../public/static/close-icon.86743366.svg"
},
"/static/collect-icon-colours.6d2ade7f.svg": {
"type": "image/svg+xml",
"etag": "\"7ab-av9D1DgxgD5cvY5wd30haD7c1q0\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 1963,
"path": "../public/static/collect-icon-colours.6d2ade7f.svg"
},
"/static/comment-icon-gray.2c8779f9.svg": {
"type": "image/svg+xml",
"etag": "\"816-HEGvNjvS0TeA/3uJweilvZfCqlk\"",
"mtime": "2023-12-20T11:13:23.993Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 2070,
"path": "../public/static/comment-icon-gray.2c8779f9.svg"
},
"/static/delete-icon.4d386dce.svg": {
"type": "image/svg+xml",
"etag": "\"17fe-RGKa0+MaUqOqlbPlXlig67fGkaY\"",
"mtime": "2023-12-20T11:13:23.993Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 6142,
"path": "../public/static/delete-icon.4d386dce.svg"
},
"/static/dot-gray.86cdd7b5.svg": {
"type": "image/svg+xml",
"etag": "\"2af-sBMsuPZbsh28jzlFWO9lVYMVDk8\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 687,
"path": "../public/static/dot-gray.86cdd7b5.svg"
},
"/static/dot-yellow.4b5e135b.svg": {
"type": "image/svg+xml",
"etag": "\"2af-6L7YsWhGTHBB6NqQztB/l2OFRfE\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 687,
"path": "../public/static/dot-yellow.4b5e135b.svg"
},
"/static/dot.1026a040.svg": {
"type": "image/svg+xml",
"etag": "\"217-dx6xqUT4D9pCoKc6nr20aXeJQXQ\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 535,
"path": "../public/static/dot.1026a040.svg"
},
"/static/edit-icon-white.29b27582.svg": {
"type": "image/svg+xml",
"etag": "\"8be-EnEF3CQI46JkMNAXbPf3H6T7pzU\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 2238,
"path": "../public/static/edit-icon-white.29b27582.svg"
},
"/static/empty-icon.24a01ae2.svg": {
"type": "image/svg+xml",
"etag": "\"d028-Our2UxxUiciRSduORd8JZCt5Prw\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 53288,
"path": "../public/static/empty-icon.24a01ae2.svg"
},
"/static/entry.7f5ece9e.css": {
"type": "text/css; charset=utf-8",
"etag": "\"b29b-4xEaTFGRbQ4fAXav6vywBK3Rwug\"",
"mtime": "2023-12-20T11:13:23.994Z",
"mtime": "2023-12-21T02:52:39.627Z",
"size": 45723,
"path": "../public/static/entry.7f5ece9e.css"
},
"/static/entry.dadaf385.js": {
"/static/entry.b40c895b.js": {
"type": "application/javascript",
"etag": "\"3c49b-jgzEDe0FIhAL1O2gqWuaNB0Ck7Y\"",
"mtime": "2023-12-20T11:13:23.994Z",
"size": 246939,
"path": "../public/static/entry.dadaf385.js"
"etag": "\"3c4bf-S+cbdgJtoUkKt0P6Z4QGFcUeP4s\"",
"mtime": "2023-12-21T02:52:39.628Z",
"size": 246975,
"path": "../public/static/entry.b40c895b.js"
},
"/static/error-404.7fc72018.css": {
"type": "text/css; charset=utf-8",
"etag": "\"e2e-iNt1cqPQ0WDudfCTZVQd31BeRGs\"",
"mtime": "2023-12-20T11:13:23.994Z",
"mtime": "2023-12-21T02:52:39.627Z",
"size": 3630,
"path": "../public/static/error-404.7fc72018.css"
},
"/static/error-404.e8ebf12b.js": {
"/static/error-404.809b08a3.js": {
"type": "application/javascript",
"etag": "\"18de-Ax8sUEaOOPZBSIhSTfw7ac5p8jk\"",
"mtime": "2023-12-20T11:13:23.994Z",
"etag": "\"18de-JuwOp6LLAH0v1bsTmR5kf40cCZM\"",
"mtime": "2023-12-21T02:52:39.627Z",
"size": 6366,
"path": "../public/static/error-404.e8ebf12b.js"
"path": "../public/static/error-404.809b08a3.js"
},
"/static/error-500.4317c9d2.js": {
"/static/error-500.b5287091.js": {
"type": "application/javascript",
"etag": "\"756-kF58FrKIrS50ut8KB1MGScK22+M\"",
"mtime": "2023-12-20T11:13:23.994Z",
"etag": "\"756-YEjqdnnUYwSRHJqqfyxBSN8Qbmw\"",
"mtime": "2023-12-21T02:52:39.627Z",
"size": 1878,
"path": "../public/static/error-500.4317c9d2.js"
"path": "../public/static/error-500.b5287091.js"
},
"/static/error-500.c5df6088.css": {
"type": "text/css; charset=utf-8",
"etag": "\"79e-ByRo+49BgcevWdRjJy3CMx2IA5k\"",
"mtime": "2023-12-20T11:13:23.994Z",
"mtime": "2023-12-21T02:52:39.627Z",
"size": 1950,
"path": "../public/static/error-500.c5df6088.css"
},
"/static/issue-bj.44adad8c.svg": {
"type": "image/svg+xml",
"etag": "\"926-lK6rrraYIC+9Yxyy0subzOK8XpE\"",
"mtime": "2023-12-20T11:13:23.993Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 2342,
"path": "../public/static/issue-bj.44adad8c.svg"
},
"/static/logo.6622f82d.png": {
"type": "image/png",
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.625Z",
"size": 33855,
"path": "../public/static/logo.6622f82d.png"
},
"/static/menu-icon-gray.d61f02b1.svg": {
"type": "image/svg+xml",
"etag": "\"6de-kmXhltPHfF4W1gmV7wT4aZCZ6gg\"",
"mtime": "2023-12-20T11:13:23.993Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 1758,
"path": "../public/static/menu-icon-gray.d61f02b1.svg"
},
"/static/QRCode-icon.a105d5fc.svg": {
"type": "image/svg+xml",
"etag": "\"9c1-qGg9jZ5wmHJGzh2A00nHIGWHMh4\"",
"mtime": "2023-12-20T11:13:23.993Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 2497,
"path": "../public/static/QRCode-icon.a105d5fc.svg"
},
"/static/tick-no.179037b3.svg": {
"type": "image/svg+xml",
"etag": "\"1ea-YISAWqJD56jxoQT8N812fDJfkMw\"",
"mtime": "2023-12-20T11:13:23.993Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 490,
"path": "../public/static/tick-no.179037b3.svg"
},
"/static/tick-option.e092d22f.svg": {
"type": "image/svg+xml",
"etag": "\"29a-UVjuq3WHs6mhu1KGQ7gQmJH2Bc4\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 666,
"path": "../public/static/tick-option.e092d22f.svg"
},
"/static/tick-orange.233abc69.svg": {
"type": "image/svg+xml",
"etag": "\"60a-VrP9K+TQp6JbNcrU5k1Dor/Kq/E\"",
"mtime": "2023-12-20T11:13:23.993Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 1546,
"path": "../public/static/tick-orange.233abc69.svg"
},
"/static/title.98892974.png": {
"type": "image/png",
"etag": "\"1723-0OwkVass/2nFB99dRT4w0sPUvI0\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 5923,
"path": "../public/static/title.98892974.png"
},
"/static/triangle-icon.c39ff2e7.svg": {
"type": "image/svg+xml",
"etag": "\"446-ylQ81DOJ3joSbsS9atyrW6pZsBY\"",
"mtime": "2023-12-20T11:13:23.993Z",
"mtime": "2023-12-21T02:52:39.627Z",
"size": 1094,
"path": "../public/static/triangle-icon.c39ff2e7.svg"
},
"/static/view-icon.da7fef35.svg": {
"type": "image/svg+xml",
"etag": "\"f39-5Jwx14wB0jgB0Du25KRZbkEEXvI\"",
"mtime": "2023-12-20T11:13:23.992Z",
"mtime": "2023-12-21T02:52:39.626Z",
"size": 3897,
"path": "../public/static/view-icon.da7fef35.svg"
},
"/static/builds/latest.json": {
"type": "application/json",
"etag": "\"47-79ahWgVIGk5scb0HnMIrAyEtR/g\"",
"mtime": "2023-12-20T11:13:25.339Z",
"etag": "\"47-fXiczp3aEbzo/Sf9TBBT29qPMAo\"",
"mtime": "2023-12-21T02:52:40.990Z",
"size": 71,
"path": "../public/static/builds/latest.json"
},
"/static/builds/meta/33882d99-77dc-459f-ad83-3951d297bcee.json": {
"/static/builds/meta/984a1b37-8472-442e-90b0-902edf3ab4f7.json": {
"type": "application/json",
"etag": "\"8b-cJ8osPNKe9VRPJVSa3YLMAlQRgY\"",
"mtime": "2023-12-20T11:13:25.339Z",
"etag": "\"8b-d5YE4eGwkcKthZA+8V4L7gXtKDg\"",
"mtime": "2023-12-21T02:52:40.990Z",
"size": 139,
"path": "../public/static/builds/meta/33882d99-77dc-459f-ad83-3951d297bcee.json"
"path": "../public/static/builds/meta/984a1b37-8472-442e-90b0-902edf3ab4f7.json"
}
};

23
app.vue

@ -88,7 +88,7 @@
<div class="issue ellipsis flex1">{{ item['title'] }}</div>
</div>
<template v-if="item['type'] == 'thread'">
<div class="answer ellipsis" v-if="item['message']" v-html="item['message']"></div>
<div class="answer ellipsis" v-if="item['message']">{{ item['message'] }}</div>
</template>
<div class="answer" style="height: auto" v-else-if="item['type'] == 'vote'">
<div v-for="(ite, i) in item['option'].slice(0, 2)" :key="i">{{ replaceNumberObj[i] + ite }}</div>
@ -114,7 +114,7 @@
<img class="hot-icon" v-if="item['ishot'] == 1" src="./img/hot-icon.png" />
<div class="issue ellipsis flex1"> {{ item['title'] }}</div>
</div>
<div class="answer ellipsis" v-if="item['content']" v-html="item['content']"></div>
<div class="answer ellipsis" v-if="item['content']">{{ item['content'] }}</div>
<div class="bottom flexacenter">
<div class="typename flexcenter" v-if="item['typename']">{{ item["typename"] }}</div>
<div v-else></div>
@ -785,7 +785,6 @@ import axios from "axios";
export default {
name: "#answer-app",
async setup() {
axios.defaults.headers.get['If-Modified-Since'] = '0';
const $ajax = (url, data) => {
url = url.indexOf("//") > -1 ? url : baseURL + url;
@ -893,6 +892,11 @@ export default {
initState.value++
const params = route.query;
// console.log(params['ispublish']);
//
if (params['ispublish']) questionsInit()
});
@ -1115,6 +1119,9 @@ export default {
if (res.code != 200) return;
let data = res.data;
data.data.forEach(element => {
element['content'] = element['content'].replace(/<[^>]*>/g, "");
})
list.value = list.value.concat(data.data || []);
backupsList = backupsList.concat(data.data || []);
@ -2726,10 +2733,12 @@ export default {
if (res.code != 200) return;
let data = res.data;
let arr = data.data
arrr = arr
list.value = [...arr]
backupsList = [...arr]
data.data.forEach(element => {
element['content'] = element['content'].replace(/<[^>]*>/g, "");
})
list.value = data.data
backupsList = data.data
total.value = data.count || 0;