讨论显示字数

This commit is contained in:
DESKTOP-RQ919RC\Pc 2025-04-30 16:37:35 +08:00
parent a4d97e2ad2
commit 39475bc8bb
20 changed files with 125 additions and 78 deletions

View File

@ -1,5 +1,5 @@
{
"date": "2025-03-28T07:57:04.317Z",
"date": "2025-04-30T08:35:28.135Z",
"preset": "node-server",
"framework": {
"name": "nuxt",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{_ as s,t as a,v as i,x as u,y as e,z as o}from"./FpbUUKD2.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__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 r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},m=s(f,[["__scopeId","data-v-84d937c0"]]);export{m as default};
import{_ as s,t as a,v as i,x as u,y as e,z as o}from"./BtJiJbkr.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__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 r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},m=s(f,[["__scopeId","data-v-84d937c0"]]);export{m as default};

View File

@ -1 +1 @@
{"id":"6d34f6d7-a75b-46a3-9d9e-24a6d070d84d","timestamp":1743148603041}
{"id":"6c82e2ec-288f-48f8-90ab-4c99790d45ba","timestamp":1746002113178}

View File

@ -0,0 +1 @@
{"id":"6c82e2ec-288f-48f8-90ab-4c99790d45ba","timestamp":1746002113178,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

View File

@ -1 +0,0 @@
{"id":"6d34f6d7-a75b-46a3-9d9e-24a6d070d84d","timestamp":1743148603041,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

File diff suppressed because one or more lines are too long

View File

@ -2609,75 +2609,75 @@ const assets$1 = {
"size": 2238,
"path": "../public/favicon.ico"
},
"/static/BGDbQN3C.js": {
"/static/B18V_g5i.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d3c-6QewuO/6u9lQr+uYcU+8BZ7VrN8\"",
"mtime": "2025-03-28T07:56:53.322Z",
"etag": "\"24c9-acw4OkzPMPGD6tZj9YDdZvVJzsM\"",
"mtime": "2025-04-30T08:35:17.359Z",
"size": 9417,
"path": "../public/static/B18V_g5i.js"
},
"/static/BtJiJbkr.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5aea3-+QbF6troIHYNUNtWMOglO1ngvMw\"",
"mtime": "2025-04-30T08:35:17.359Z",
"size": 372387,
"path": "../public/static/BtJiJbkr.js"
},
"/static/CZEVIQE1.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d3c-b4gYgZH/yqwtQ7ALV7hMbrJXO5I\"",
"mtime": "2025-04-30T08:35:17.359Z",
"size": 3388,
"path": "../public/static/BGDbQN3C.js"
"path": "../public/static/CZEVIQE1.js"
},
"/static/empty-icon.CyaRoygc.png": {
"type": "image/png",
"etag": "\"17df-ZbUVuzPJ5DAL9B9xteitdPCiUxY\"",
"mtime": "2025-03-28T07:56:53.322Z",
"mtime": "2025-04-30T08:35:17.358Z",
"size": 6111,
"path": "../public/static/empty-icon.CyaRoygc.png"
},
"/static/entry.ZDbmrW6p.css": {
"/static/entry.Ac-gJZ5d.css": {
"type": "text/css; charset=utf-8",
"etag": "\"189f2-/x6t1gAZnr7CMaH/hj0pzDgkl7I\"",
"mtime": "2025-03-28T07:56:53.322Z",
"size": 100850,
"path": "../public/static/entry.ZDbmrW6p.css"
"etag": "\"18a30-qmndbce/ZiLfG/YK0OQ7Cl+gk+8\"",
"mtime": "2025-04-30T08:35:17.358Z",
"size": 100912,
"path": "../public/static/entry.Ac-gJZ5d.css"
},
"/static/error-404.CZkObG7r.css": {
"type": "text/css; charset=utf-8",
"etag": "\"de4-qBee3TVrfYv3V1By16k8mWrjcVQ\"",
"mtime": "2025-03-28T07:56:53.322Z",
"mtime": "2025-04-30T08:35:17.359Z",
"size": 3556,
"path": "../public/static/error-404.CZkObG7r.css"
},
"/static/error-500.BFrSi6nG.css": {
"type": "text/css; charset=utf-8",
"etag": "\"75c-1DSF9z8DiRXW3VbuCpNqepB9vI0\"",
"mtime": "2025-03-28T07:56:53.322Z",
"mtime": "2025-04-30T08:35:17.359Z",
"size": 1884,
"path": "../public/static/error-500.BFrSi6nG.css"
},
"/static/FpbUUKD2.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5ace5-K/gV3a6XP+X+hPhbrn7VGDSahWc\"",
"mtime": "2025-03-28T07:56:53.322Z",
"size": 371941,
"path": "../public/static/FpbUUKD2.js"
},
"/static/logo.DlviZpxD.png": {
"type": "image/png",
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
"mtime": "2025-03-28T07:56:53.322Z",
"mtime": "2025-04-30T08:35:17.358Z",
"size": 33855,
"path": "../public/static/logo.DlviZpxD.png"
},
"/static/Umv-bsyi.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"24c9-yFPQmSnc9WsVeq0XcnuLbGpqSN0\"",
"mtime": "2025-03-28T07:56:53.322Z",
"size": 9417,
"path": "../public/static/Umv-bsyi.js"
},
"/static/builds/latest.json": {
"type": "application/json",
"etag": "\"47-RIUJhtgvODCyrxXqgyPeOjLToKE\"",
"mtime": "2025-03-28T07:56:56.193Z",
"etag": "\"47-we3v3RID73WrwmTKLUhMtKA+FI0\"",
"mtime": "2025-04-30T08:35:20.251Z",
"size": 71,
"path": "../public/static/builds/latest.json"
},
"/static/builds/meta/6d34f6d7-a75b-46a3-9d9e-24a6d070d84d.json": {
"/static/builds/meta/6c82e2ec-288f-48f8-90ab-4c99790d45ba.json": {
"type": "application/json",
"etag": "\"8b-GdQvOniL7+si4CMIx+7nWYyRur0\"",
"mtime": "2025-03-28T07:56:56.193Z",
"etag": "\"8b-OokAhRUVPnpaRJ58F4UD/EUJuX4\"",
"mtime": "2025-04-30T08:35:20.252Z",
"size": 139,
"path": "../public/static/builds/meta/6d34f6d7-a75b-46a3-9d9e-24a6d070d84d.json"
"path": "../public/static/builds/meta/6c82e2ec-288f-48f8-90ab-4c99790d45ba.json"
}
};
@ -4349,7 +4349,7 @@ function _expandFromEnv(value) {
const _inlineRuntimeConfig = {
"app": {
"baseURL": "/",
"buildId": "6d34f6d7-a75b-46a3-9d9e-24a6d070d84d",
"buildId": "6c82e2ec-288f-48f8-90ab-4c99790d45ba",
"buildAssetsDir": "/static/",
"cdnURL": ""
},

View File

@ -18,7 +18,7 @@ const client_manifest = {
"module": true,
"prefetch": true,
"preload": true,
"file": "Umv-bsyi.js",
"file": "B18V_g5i.js",
"name": "error-404",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue",
"isDynamicEntry": true,
@ -38,7 +38,7 @@ const client_manifest = {
"module": true,
"prefetch": true,
"preload": true,
"file": "BGDbQN3C.js",
"file": "CZEVIQE1.js",
"name": "error-500",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue",
"isDynamicEntry": true,
@ -58,7 +58,7 @@ const client_manifest = {
"module": true,
"prefetch": true,
"preload": true,
"file": "FpbUUKD2.js",
"file": "BtJiJbkr.js",
"name": "entry",
"src": "node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js",
"isEntry": true,
@ -67,7 +67,7 @@ const client_manifest = {
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue"
],
"css": [
"entry.ZDbmrW6p.css"
"entry.Ac-gJZ5d.css"
],
"assets": [
"logo.DlviZpxD.png",
@ -75,8 +75,8 @@ const client_manifest = {
],
"_globalCSS": true
},
"entry.ZDbmrW6p.css": {
"file": "entry.ZDbmrW6p.css",
"entry.Ac-gJZ5d.css": {
"file": "entry.Ac-gJZ5d.css",
"resourceType": "style",
"prefetch": true,
"preload": true

File diff suppressed because one or more lines are too long

View File

@ -5380,7 +5380,7 @@ const _sfc_main$3 = {
const _component_el_button = ElButton;
_push(`<div${ssrRenderAttrs(mergeProps({ class: "answer-discuss" }, _attrs))}>`);
if (unref(editCommentState)) {
_push(`<div class="edit-comment flexcenter"><div class="box"><div class="text">编辑评论</div><div class="input-box"><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="500" placeholder="说说你的想法或疑问…">${ssrInterpolate(unref(editInput))}</textarea></div>`);
_push(`<div class="edit-comment flexcenter"><div class="box"><div class="text">编辑评论</div><div class="input-box"><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="1000" placeholder="说说你的想法或疑问…">${ssrInterpolate(unref(editInput))}</textarea></div>`);
if (unref(editPicture).url) {
_push(`<div class="picture-box"><div class="picture"><img class="close"${ssrRenderAttr("src", _imports_3$1)}><img class="img"${ssrRenderAttr("src", unref(editPicture).base64 || unref(editPicture).url)}></div></div>`);
} else {
@ -5390,7 +5390,13 @@ const _sfc_main$3 = {
ssrRenderList(emojiData, (item) => {
_push(`<div class="emoji-icon">${ssrInterpolate(item)}</div>`);
});
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div></div></div><div class="btn-list flexacenter"><div class="btn">取消</div><div class="btn send">发送</div></div></div></div>`);
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div>`);
if (unref(editInput)) {
_push(`<div class="numberwords" style="${ssrRenderStyle({ "margin": "0" })}">${ssrInterpolate(unref(editInput).length)}/1000</div>`);
} else {
_push(`<!---->`);
}
_push(`</div></div><div class="btn-list flexacenter"><div class="btn">取消</div><div class="btn send">发送</div></div></div></div>`);
} else {
_push(`<!---->`);
}
@ -5400,7 +5406,7 @@ const _sfc_main$3 = {
} else {
_push(`<!---->`);
}
_push(`<textarea class="input-textarea flex1" maxlength="500" placeholder="说说你的看法…">${ssrInterpolate(unref(inputTextarea))}</textarea></div>`);
_push(`<textarea class="input-textarea flex1" maxlength="1000" placeholder="说说你的看法…">${ssrInterpolate(unref(inputTextarea))}</textarea></div>`);
if (unref(picture).url) {
_push(`<div class="picture-box"><div class="picture"><img class="close"${ssrRenderAttr("src", _imports_3$1)}><img class="img"${ssrRenderAttr("src", unref(picture).base64 || unref(picture).url)}></div></div>`);
} else {
@ -5410,7 +5416,13 @@ const _sfc_main$3 = {
ssrRenderList(emojiData, (item) => {
_push(`<div class="emoji-icon">${ssrInterpolate(item)}</div>`);
});
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="btn">发送</div></div></div><div class="comments-box"><!--[-->`);
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="flexacenter">`);
if (unref(inputTextarea)) {
_push(`<div class="numberwords">${ssrInterpolate(unref(inputTextarea).length)}/1000</div>`);
} else {
_push(`<!---->`);
}
_push(`<div class="btn">发送</div></div></div></div><div class="comments-box"><!--[-->`);
ssrRenderList(unref(commentList), (item, index) => {
var _a, _b, _c, _d;
_push(`<div class="comments-item"><div class="comments-header flexacenter"><div class="comments-header-left flexacenter"><img class="comments-avatar"${ssrRenderAttr("src", item["avatar"])}><div class="comments-username">${ssrInterpolate(item["nickname"] || "匿名用户")}</div><div class="comments-time">${ssrInterpolate(unref(handleDate)(item["timestamp"]))}</div>`);
@ -5453,7 +5465,7 @@ const _sfc_main$3 = {
_push(`<!---->`);
}
if (item["childState"]) {
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_12)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="500" placeholder="说说你的看法…">${ssrInterpolate(item["commentInput"])}</textarea></div>`);
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_12)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="1000" placeholder="说说你的看法…">${ssrInterpolate(item["commentInput"])}</textarea></div>`);
if ((_d = item.picture) == null ? void 0 : _d.url) {
_push(`<div class="picture-box"><div class="picture"><img class="close"${ssrRenderAttr("src", _imports_3$1)}><img class="img"${ssrRenderAttr("src", item.picture.base64 || item.picture.url)}></div></div>`);
} else {
@ -5463,7 +5475,13 @@ const _sfc_main$3 = {
ssrRenderList(emojiData, (item2) => {
_push(`<div class="emoji-icon">${ssrInterpolate(item2)}</div>`);
});
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="btn">发送</div></div></div>`);
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="flexacenter">`);
if (item["commentInput"]) {
_push(`<div class="numberwords">${ssrInterpolate(item.commentInput.length)}/1000</div>`);
} else {
_push(`<!---->`);
}
_push(`<div class="btn">发送</div></div></div></div>`);
} else {
_push(`<!---->`);
}
@ -5518,7 +5536,7 @@ const _sfc_main$3 = {
_push(`<!---->`);
}
if (ite["childState"]) {
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_12)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="500"${ssrRenderAttr("placeholder", "回复“" + (ite["nickname"] || "匿名用户") + "”:")}>${ssrInterpolate(ite["commentInput"])}</textarea></div>`);
_push(`<div class="input-box"><img class="cross"${ssrRenderAttr("src", _imports_12)}><div class="top flexflex"><textarea class="input-textarea flex1" maxlength="1000"${ssrRenderAttr("placeholder", "回复“" + (ite["nickname"] || "匿名用户") + "”:")}>${ssrInterpolate(ite["commentInput"])}</textarea></div>`);
if ((_e = ite.picture) == null ? void 0 : _e.url) {
_push(`<div class="picture-box"><div class="picture"><img class="close"${ssrRenderAttr("src", _imports_3$1)}><img class="img"${ssrRenderAttr("src", ite.picture.base64 || ite.picture.url)}></div></div>`);
} else {
@ -5528,7 +5546,13 @@ const _sfc_main$3 = {
ssrRenderList(emojiData, (item2) => {
_push(`<div class="emoji-icon">${ssrInterpolate(item2)}</div>`);
});
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="btn">发送</div></div></div>`);
_push(`<!--]--></div></div><div class="item flexacenter"><input class="file" type="file" accept=".png, .jpg, .jpeg"><img class="icon" style="${ssrRenderStyle({ "border-radius": "0" })}"${ssrRenderAttr("src", _imports_5$1)} alt=""><span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片。</span></div></div><div class="flexacenter">`);
if (ite["commentInput"]) {
_push(`<div class="numberwords">${ssrInterpolate(ite.commentInput.length)}/1000</div>`);
} else {
_push(`<!---->`);
}
_push(`<div class="btn">发送</div></div></div></div>`);
} else {
_push(`<!---->`);
}

View File

@ -2,10 +2,10 @@ const interopDefault = r => r.default || r || [];
const styles = {
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/entry.js": () => import('./entry-styles.BMEJ6WCM.mjs').then(interopDefault),
"app.vue": () => import('./app-styles.CoC7fGAv.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue": () => import('./error-404-styles.wRz_-Rw1.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue": () => import('./error-500-styles.TwxDbBgG.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue?vue&type=style&index=0&scoped=075d74b5&lang.css": () => import('./error-404-styles.BNmKahfp.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue": () => import('./error-404-styles.wRz_-Rw1.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-500.vue?vue&type=style&index=0&scoped=84d937c0&lang.css": () => import('./error-500-styles.Cx3AJg0u.mjs').then(interopDefault),
"node_modules/.store/nuxt@3.16.0/node_modules/nuxt/dist/app/components/error-404.vue?vue&type=style&index=0&scoped=075d74b5&lang.css": () => import('./error-404-styles.BNmKahfp.mjs').then(interopDefault),
"app.vue?vue&type=style&index=0&lang.css": () => import('./app-styles.DjCRi-SL.mjs').then(interopDefault)
};

View File

@ -72,7 +72,7 @@ function createHead(options = {}) {
return head;
}
const appHead = {"meta":[{"name":"viewport","content":"width=device-width, initial-scale=1"},{"charset":"utf-8"}],"link":[{"rel":"stylesheet","href":"//bbs.gter.net/data/cache/style_2_common.css?Z62"}],"style":[],"script":[{"src":"https://app.gter.net/bottom?tpl=header&menukey=ask"},{"src":"https://app.gter.net/bottom?tpl=footer,popupnotification","body":true},{"src":"https://bbs.gter.net/static/js/common.js","body":true},{"innerHTML":"\n window.userInfoWin = {}\n STYLEID = \"2\";\n STATICURL = \"static/\";\n IMGDIR = \"https://bbs.gter.net/template/archy_plt8/image\";\n VERHASH = \"Z62\";\n charset = \"gbk\";\n discuz_uid = \"0\";\n cookiepre = \"4B5x_c0ae_\";\n cookiedomain = \"gter.net\";\n cookiepath = \"/\";\n showusercard = \"1\";\n attackevasive = \"0\";\n disallowfloat = \"\";\n creditnotice = \",\";\n defaultstyle = \"\";\n REPORTURL = \"aHR0cDovL2Jicy5ndGVyLm5ldC9mb3J1bS5waHA/dGlkPTI0MDYzNTYmZ290bz1sYXN0cG9zdA==\";\n SITEURL = \"https://ask.gter.net/\";\n JSPATH = \"static/js/\";","type":"text/javascript","charset":"utf-8"}],"noscript":[]};
const appHead = {"meta":[{"name":"viewport","content":"width=device-width, initial-scale=1"},{"charset":"utf-8"}],"link":[{"rel":"stylesheet","href":"//bbs.gter.net/data/cache/style_2_common.css?Z62"}],"style":[],"script":[{"src":"https://app.gter.net/bottom?tpl=header&menukey=ask"},{"src":"https://app.gter.net/bottom?tpl=footer,popupnotification","body":true},{"src":"https://bbs.gter.net/static/js/common.js","body":true},{"innerHTML":"\n window.userInfoWin = {}\n STYLEID = \"2\";\n STATICURL = \"static/\";\n IMGDIR = \"https://bbs.gter.net/template/archy_plt8/image\";\n VERHASH = \"Z62\";\n charset = \"gbk\";\n discuz_uid = \"0\";\n cookiepre = \"4B5x_c0ae_\";\n cookiedomain = \"gter.net\";\n cookiepath = \"/\";\n showusercard = \"1\";\n attackevasive = \"0\";\n disallowfloat = \"\";\n creditnotice = \",\";\n defaultstyle = \"\";\n REPORTURL = \"aHR0cDovL2Jicy5ndGVyLm5ldC9mb3J1bS5waHA/dGlkPTI0MDYzNTYmZ290bz1sYXN0cG9zdA==\";\n SITEURL = \"https://ask.gter.net/\";\n JSPATH = \"static/js/\";","type":"text/javascript"}],"noscript":[]};
const appRootTag = "div";

View File

@ -1,3 +1,4 @@
<!-- // shared_cjs_prodExports.hasOwn; -->
<!DOCTYPE html>
<html lang="en">

View File

@ -511,7 +511,7 @@ import axios from "axios";
export default {
name: "#answer-app",
async setup() {
const author = "5d4072190743671262d47cfc469f852f";
const author = "034d01f3ab7e7c248d7cfdf8fdb96915";
const $ajax = (url, data) => {
url = url.indexOf("//") > -1 ? url : baseURL + url;
return new Promise(function (resolve, reject) {

View File

@ -6,7 +6,7 @@
<div class="text">编辑评论</div>
<div class="input-box">
<div class="top flexflex">
<textarea ref="editInputRef" class="input-textarea flex1" maxlength="500" v-model="editInput" @focus="judgeLogin" @input="autoResize" @paste="handleInputPaste" placeholder="说说你的想法或疑问…"></textarea>
<textarea ref="editInputRef" class="input-textarea flex1" maxlength="1000" v-model="editInput" @focus="judgeLogin" @input="autoResize" @paste="handleInputPaste" placeholder="说说你的想法或疑问…"></textarea>
</div>
<div class="picture-box" v-if="editPicture.url">
<div class="picture">
@ -29,6 +29,7 @@
<span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片</span>
</div>
</div>
<div class="numberwords" style="margin: 0;" v-if="editInput">{{ editInput.length }}/1000</div>
</div>
</div>
<div class="btn-list flexacenter">
@ -44,7 +45,7 @@
<div class="input-box">
<div class="top flexflex">
<img class="avatar" v-if="user.avatar" :src="user.avatar" />
<textarea class="input-textarea flex1" maxlength="500" v-model="inputTextarea" @focus="judgeLogin" @input="autoResize" @paste="handleInputPaste" placeholder="说说你的看法…"></textarea>
<textarea class="input-textarea flex1" maxlength="1000" v-model="inputTextarea" @focus="judgeLogin" @input="autoResize" @paste="handleInputPaste" placeholder="说说你的看法…"></textarea>
</div>
<div class="picture-box" v-if="picture.url">
<div class="picture">
@ -67,7 +68,10 @@
<span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片</span>
</div>
</div>
<div class="btn" @click="submitAnswerComments()">发送</div>
<div class="flexacenter">
<div class="numberwords" v-if="inputTextarea">{{ inputTextarea.length }}/1000</div>
<div class="btn" @click="submitAnswerComments()">发送</div>
</div>
</div>
</div>
@ -116,7 +120,7 @@
<div class="input-box" v-if="item['childState']">
<img class="cross" @click="closeAnswerCommentsChild(index)" src="/img/cross-icon.png" />
<div class="top flexflex">
<textarea class="input-textarea flex1" maxlength="500" placeholder="说说你的看法…" v-model="item['commentInput']" @focus="judgeLogin" @input="autoResize" @paste="handleInputPaste($event, index)"></textarea>
<textarea class="input-textarea flex1" maxlength="1000" placeholder="说说你的看法…" v-model="item['commentInput']" @focus="judgeLogin" @input="autoResize" @paste="handleInputPaste($event, index)"></textarea>
</div>
<div class="picture-box" v-if="item.picture?.url">
<div class="picture">
@ -138,7 +142,10 @@
<span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片</span>
</div>
</div>
<div class="btn" @click="submitAnswerComments(index)">发送</div>
<div class="flexacenter">
<div class="numberwords" v-if="item['commentInput']">{{ item.commentInput.length }}/1000</div>
<div class="btn" @click="submitAnswerComments(index)">发送</div>
</div>
</div>
</div>
</div>
@ -192,7 +199,7 @@
<div class="input-box" v-if="ite['childState']">
<img class="cross" @click="closeAnswerCommentsChild(index)" src="/img/cross-icon.png" />
<div class="top flexflex">
<textarea class="input-textarea flex1" maxlength="500" v-model="ite['commentInput']" :placeholder="'回复“' + (ite['nickname'] || '匿名用户') + '”:'" @focus="judgeLogin" @input="autoResize" @paste="handleInputPaste($event, index, i)"></textarea>
<textarea class="input-textarea flex1" maxlength="1000" v-model="ite['commentInput']" :placeholder="'回复“' + (ite['nickname'] || '匿名用户') + '”:'" @focus="judgeLogin" @input="autoResize" @paste="handleInputPaste($event, index, i)"></textarea>
</div>
<div class="picture-box" v-if="ite.picture?.url">
<div class="picture">
@ -214,7 +221,10 @@
<span class="file-hint">最多可上传1张图片支持在输入框中直接粘贴图片</span>
</div>
</div>
<div class="btn" @click="submitAnswerComments(index, i)">发送</div>
<div class="flexacenter">
<div class="numberwords" v-if="ite['commentInput']">{{ ite.commentInput.length }}/1000</div>
<div class="btn" @click="submitAnswerComments(index, i)">发送</div>
</div>
</div>
</div>
</div>

View File

@ -2073,3 +2073,8 @@ a {
border-color: #fde2e2;
color: #f56c6c;
}
.numberwords {
color: #b9b8b8;
text-align: right;
margin-right: 40px;
}

View File

@ -2515,3 +2515,11 @@ a {
}
}
}
.numberwords {
color: #b9b8b8;
text-align: right;
// padding: 0 14px;
margin-right: 40px;
}

View File

@ -46,7 +46,6 @@ export default defineNuxtConfig({
SITEURL = "https://ask.gter.net/";
JSPATH = "static/js/";`,
type: "text/javascript",
charset: "utf-8",
},
],
},