优化设备时间与实际不符,导致发布时间计算错误

This commit is contained in:
A1300399510 2024-03-28 16:22:20 +08:00
parent 26c13dc5d6
commit 43f9cd8102
11 changed files with 60 additions and 60 deletions

View File

@ -1,5 +1,5 @@
{
"date": "2024-02-21T09:09:51.509Z",
"date": "2024-03-28T08:18:55.993Z",
"preset": "node-server",
"framework": {
"name": "nuxt",

View File

@ -1 +1 @@
{"id":"b637b34e-de01-43fb-84f4-8bc4cd27d0b2","timestamp":1708506581201}
{"id":"bce5d37f-235d-4295-814e-b7af880ae4ee","timestamp":1711613926380}

View File

@ -1 +0,0 @@
{"id":"b637b34e-de01-43fb-84f4-8bc4cd27d0b2","timestamp":1708506581201,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

View File

@ -0,0 +1 @@
{"id":"bce5d37f-235d-4295-814e-b7af880ae4ee","timestamp":1711613926380,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

File diff suppressed because one or more lines are too long

View File

@ -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.a7002f06.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.c20278f2.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};

View File

@ -159,7 +159,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-404.d59af75b.js",
"file": "error-404.df41db08.js",
"imports": [
"node_modules/nuxt/dist/app/entry.js"
],
@ -185,7 +185,7 @@ const client_manifest = {
"prefetch": true,
"preload": true,
"css": [],
"file": "error-500.b5037478.js",
"file": "error-500.d49f8ddc.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.a7002f06.js",
"file": "entry.c20278f2.js",
"isEntry": true,
"src": "node_modules/nuxt/dist/app/entry.js",
"_globalCSS": true

View File

@ -2055,7 +2055,7 @@ const _sfc_main$2 = {
var diffValue = now - timestamp;
var result;
if (diffValue < 0)
return;
return "刚刚";
var dayC = diffValue / day;
var hourC = diffValue / (hour + 1);
var minC = diffValue / minute;

View File

@ -3059,7 +3059,7 @@ function klona(x) {
const inlineAppConfig = {
"nuxt": {
"buildId": "b637b34e-de01-43fb-84f4-8bc4cd27d0b2"
"buildId": "bce5d37f-235d-4295-814e-b7af880ae4ee"
}
};
@ -4949,205 +4949,205 @@ const assets = {
"/static/add-icon.0b0b5313.svg": {
"type": "image/svg+xml",
"etag": "\"d67-gajxuGcy6aHIeWAbO0RazX03p90\"",
"mtime": "2024-02-21T09:09:44.841Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 3431,
"path": "../public/static/add-icon.0b0b5313.svg"
},
"/static/arrows-icon.271dd0d3.svg": {
"type": "image/svg+xml",
"etag": "\"5a0-yAit7q5lcKJMd35iOMMifZv2uno\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 1440,
"path": "../public/static/arrows-icon.271dd0d3.svg"
},
"/static/close-icon.86743366.svg": {
"type": "image/svg+xml",
"etag": "\"2d4-QYrulZl33jopLCT37UdJfnzXOVg\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 724,
"path": "../public/static/close-icon.86743366.svg"
},
"/static/collect-icon-colours.6d2ade7f.svg": {
"type": "image/svg+xml",
"etag": "\"7ab-av9D1DgxgD5cvY5wd30haD7c1q0\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"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": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 2070,
"path": "../public/static/comment-icon-gray.2c8779f9.svg"
},
"/static/delete-icon.4d386dce.svg": {
"type": "image/svg+xml",
"etag": "\"17fe-RGKa0+MaUqOqlbPlXlig67fGkaY\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 6142,
"path": "../public/static/delete-icon.4d386dce.svg"
},
"/static/dot-gray.86cdd7b5.svg": {
"type": "image/svg+xml",
"etag": "\"2af-sBMsuPZbsh28jzlFWO9lVYMVDk8\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 687,
"path": "../public/static/dot-gray.86cdd7b5.svg"
},
"/static/dot-yellow.4b5e135b.svg": {
"type": "image/svg+xml",
"etag": "\"2af-6L7YsWhGTHBB6NqQztB/l2OFRfE\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 687,
"path": "../public/static/dot-yellow.4b5e135b.svg"
},
"/static/dot.1026a040.svg": {
"type": "image/svg+xml",
"etag": "\"217-dx6xqUT4D9pCoKc6nr20aXeJQXQ\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.285Z",
"size": 535,
"path": "../public/static/dot.1026a040.svg"
},
"/static/edit-icon-white.29b27582.svg": {
"type": "image/svg+xml",
"etag": "\"8be-EnEF3CQI46JkMNAXbPf3H6T7pzU\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 2238,
"path": "../public/static/edit-icon-white.29b27582.svg"
},
"/static/empty-icon.24a01ae2.svg": {
"type": "image/svg+xml",
"etag": "\"d028-Our2UxxUiciRSduORd8JZCt5Prw\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 53288,
"path": "../public/static/empty-icon.24a01ae2.svg"
},
"/static/entry.a7002f06.js": {
"/static/entry.c20278f2.js": {
"type": "application/javascript",
"etag": "\"3c6bc-9EiwtGX0c1IMEHM1DBBvTyC4rPs\"",
"mtime": "2024-02-21T09:09:44.844Z",
"size": 247484,
"path": "../public/static/entry.a7002f06.js"
"etag": "\"3c6c6-fcZLvwvwzn1w4u5MA/ZqUb8ntYE\"",
"mtime": "2024-03-28T08:18:50.289Z",
"size": 247494,
"path": "../public/static/entry.c20278f2.js"
},
"/static/entry.e78a6045.css": {
"type": "text/css; charset=utf-8",
"etag": "\"b600-Ve24+Kl2KjFk6BfUG6OIxxMI0qo\"",
"mtime": "2024-02-21T09:09:44.843Z",
"mtime": "2024-03-28T08:18:50.288Z",
"size": 46592,
"path": "../public/static/entry.e78a6045.css"
},
"/static/error-404.7fc72018.css": {
"type": "text/css; charset=utf-8",
"etag": "\"e2e-iNt1cqPQ0WDudfCTZVQd31BeRGs\"",
"mtime": "2024-02-21T09:09:44.843Z",
"mtime": "2024-03-28T08:18:50.288Z",
"size": 3630,
"path": "../public/static/error-404.7fc72018.css"
},
"/static/error-404.d59af75b.js": {
"/static/error-404.df41db08.js": {
"type": "application/javascript",
"etag": "\"18de-DORuDR/gv5fslF1KkgEnO9ZRzG0\"",
"mtime": "2024-02-21T09:09:44.844Z",
"etag": "\"18de-hyO0nWVUVsw7/A2OR4UMmFOJGKY\"",
"mtime": "2024-03-28T08:18:50.289Z",
"size": 6366,
"path": "../public/static/error-404.d59af75b.js"
},
"/static/error-500.b5037478.js": {
"type": "application/javascript",
"etag": "\"756-vRepy8QQqxvMUNZXnjP+lcuNDrY\"",
"mtime": "2024-02-21T09:09:44.843Z",
"size": 1878,
"path": "../public/static/error-500.b5037478.js"
"path": "../public/static/error-404.df41db08.js"
},
"/static/error-500.c5df6088.css": {
"type": "text/css; charset=utf-8",
"etag": "\"79e-ByRo+49BgcevWdRjJy3CMx2IA5k\"",
"mtime": "2024-02-21T09:09:44.843Z",
"mtime": "2024-03-28T08:18:50.289Z",
"size": 1950,
"path": "../public/static/error-500.c5df6088.css"
},
"/static/error-500.d49f8ddc.js": {
"type": "application/javascript",
"etag": "\"756-51stiF6MLyJHkojfH6J01qDaiPQ\"",
"mtime": "2024-03-28T08:18:50.289Z",
"size": 1878,
"path": "../public/static/error-500.d49f8ddc.js"
},
"/static/issue-bj.44adad8c.svg": {
"type": "image/svg+xml",
"etag": "\"926-lK6rrraYIC+9Yxyy0subzOK8XpE\"",
"mtime": "2024-02-21T09:09:44.840Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 2342,
"path": "../public/static/issue-bj.44adad8c.svg"
},
"/static/logo.6622f82d.png": {
"type": "image/png",
"etag": "\"843f-FSXGFGigIHmtzjdcQzuMz/a7E+o\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.285Z",
"size": 33855,
"path": "../public/static/logo.6622f82d.png"
},
"/static/menu-icon-gray.d61f02b1.svg": {
"type": "image/svg+xml",
"etag": "\"6de-kmXhltPHfF4W1gmV7wT4aZCZ6gg\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 1758,
"path": "../public/static/menu-icon-gray.d61f02b1.svg"
},
"/static/QRCode-icon.a105d5fc.svg": {
"type": "image/svg+xml",
"etag": "\"9c1-qGg9jZ5wmHJGzh2A00nHIGWHMh4\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 2497,
"path": "../public/static/QRCode-icon.a105d5fc.svg"
},
"/static/tick-no.179037b3.svg": {
"type": "image/svg+xml",
"etag": "\"1ea-YISAWqJD56jxoQT8N812fDJfkMw\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 490,
"path": "../public/static/tick-no.179037b3.svg"
},
"/static/tick-option.e092d22f.svg": {
"type": "image/svg+xml",
"etag": "\"29a-UVjuq3WHs6mhu1KGQ7gQmJH2Bc4\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"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": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 1546,
"path": "../public/static/tick-orange.233abc69.svg"
},
"/static/title.98892974.png": {
"type": "image/png",
"etag": "\"1723-0OwkVass/2nFB99dRT4w0sPUvI0\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 5923,
"path": "../public/static/title.98892974.png"
},
"/static/triangle-icon.c39ff2e7.svg": {
"type": "image/svg+xml",
"etag": "\"446-ylQ81DOJ3joSbsS9atyrW6pZsBY\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.287Z",
"size": 1094,
"path": "../public/static/triangle-icon.c39ff2e7.svg"
},
"/static/view-icon.da7fef35.svg": {
"type": "image/svg+xml",
"etag": "\"f39-5Jwx14wB0jgB0Du25KRZbkEEXvI\"",
"mtime": "2024-02-21T09:09:44.842Z",
"mtime": "2024-03-28T08:18:50.286Z",
"size": 3897,
"path": "../public/static/view-icon.da7fef35.svg"
},
"/static/builds/latest.json": {
"type": "application/json",
"etag": "\"47-uJBa5mf5Av1Fj0yCt5Iy+QMrhzg\"",
"mtime": "2024-02-21T09:09:46.266Z",
"etag": "\"47-Rnx724EraM/7P1g7jwin6SfsBJk\"",
"mtime": "2024-03-28T08:18:51.484Z",
"size": 71,
"path": "../public/static/builds/latest.json"
},
"/static/builds/meta/b637b34e-de01-43fb-84f4-8bc4cd27d0b2.json": {
"/static/builds/meta/bce5d37f-235d-4295-814e-b7af880ae4ee.json": {
"type": "application/json",
"etag": "\"8b-GjlGNktM7YUbzE8XavBsuhJlOuo\"",
"mtime": "2024-02-21T09:09:46.266Z",
"etag": "\"8b-ohdLdkbQp7VpNxVTru/wM7Qi/LQ\"",
"mtime": "2024-03-28T08:18:51.485Z",
"size": 139,
"path": "../public/static/builds/meta/b637b34e-de01-43fb-84f4-8bc4cd27d0b2.json"
"path": "../public/static/builds/meta/bce5d37f-235d-4295-814e-b7af880ae4ee.json"
}
};

View File

@ -2098,7 +2098,7 @@ export default {
var now = new Date().getTime()
var diffValue = now - timestamp
var result
if (diffValue < 0) return
if (diffValue < 0) return "刚刚"
var dayC = diffValue / day
var hourC = diffValue / (hour + 1)