0

Bundle embedded web app

This commit is contained in:
renovate[bot] 2023-01-23 20:36:29 +00:00
parent 54e8ea33d4
commit 9d8d9a5b74
49 changed files with 51 additions and 51 deletions

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

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

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

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

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

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return n(97644)}])},97644:function(e,t,n){"use strict";n.r(t);var a=n(85893),r=n(67294),l=n(70337),s=n(85818),d=n(54398),i=n(64777),u=n(6960);let{Title:c}=s.Z,o=e=>{let t=Object.values(e);return(0,a.jsx)(d.Z,{dataSource:t,columns:[{title:"Name",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsx)("a",{href:t.browser_download_url,children:e})},{title:"Size",dataIndex:"size",key:"size",render:e=>"".concat((e/1024/1024).toFixed(2)," MB")}],rowKey:e=>e.id,size:"large",pagination:!1})},_=()=>{let[e,t]=(0,r.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=async()=>{try{let e=await (0,i.Kt)();t(e)}catch(n){console.log("==== error",n)}};return((0,r.useEffect)(()=>{n()},[]),e)?(0,a.jsxs)("div",{className:"upgrade-page",children:[(0,a.jsx)(c,{level:2,children:(0,a.jsx)("a",{href:e.html_url,children:e.name})}),(0,a.jsx)(c,{level:5,children:new Date(e.created_at).toDateString()}),(0,a.jsx)(l.D,{children:e.body}),(0,a.jsx)("h3",{children:"Downloads"}),(0,a.jsx)(o,{...e.assets})]}):null};_.getLayout=function(e){return(0,a.jsx)(u.l,{page:e})},t.default=_}},function(e){e.O(0,[173,164,2138,31,4931,5402,2231,492,5818,7524,9915,6386,3698,3013,4398,6566,710,6960,9774,2888,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);
//# sourceMappingURL=upgrade-59f1da47c3d30cce.js.map
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return n(97644)}])},97644:function(e,t,n){"use strict";n.r(t);var a=n(85893),r=n(67294),l=n(31844),s=n(85818),d=n(54398),i=n(64777),u=n(6960);let{Title:c}=s.Z,o=e=>{let t=Object.values(e);return(0,a.jsx)(d.Z,{dataSource:t,columns:[{title:"Name",dataIndex:"name",key:"name",render:(e,t)=>(0,a.jsx)("a",{href:t.browser_download_url,children:e})},{title:"Size",dataIndex:"size",key:"size",render:e=>"".concat((e/1024/1024).toFixed(2)," MB")}],rowKey:e=>e.id,size:"large",pagination:!1})},_=()=>{let[e,t]=(0,r.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=async()=>{try{let e=await (0,i.Kt)();t(e)}catch(n){console.log("==== error",n)}};return((0,r.useEffect)(()=>{n()},[]),e)?(0,a.jsxs)("div",{className:"upgrade-page",children:[(0,a.jsx)(c,{level:2,children:(0,a.jsx)("a",{href:e.html_url,children:e.name})}),(0,a.jsx)(c,{level:5,children:new Date(e.created_at).toDateString()}),(0,a.jsx)(l.D,{children:e.body}),(0,a.jsx)("h3",{children:"Downloads"}),(0,a.jsx)(o,{...e.assets})]}):null};_.getLayout=function(e){return(0,a.jsx)(u.l,{page:e})},t.default=_}},function(e){e.O(0,[173,164,2138,31,4931,5402,2231,492,5818,7524,9915,6386,3698,3013,4398,7777,710,6960,9774,2888,179],function(){return e(e.s=70918)}),_N_E=e.O()}]);
//# sourceMappingURL=upgrade-00fa7cb109385ca3.js.map

View File

@ -1 +1 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GAAA,EAACR,EAAAA,CAAM8C,MAAO,WACZ,GAAAvC,EAAAC,GAAA,EAACU,IAAAA,CAAEC,KAAMU,EAAQG,QAAQ,UAAGH,EAAQI,IAAI,KAE1C,GAAA1B,EAAAC,GAAA,EAACR,EAAAA,CAAM8C,MAAO,WAAI,IAAIC,KAAKlB,EAAQK,UAAU,EAAEc,YAAY,KAC3D,GAAAzC,EAAAC,GAAA,EAACyC,EAAAA,CAAaA,CAAAA,UAAEpB,EAAQM,IAAI,GAC5B,GAAA5B,EAAAC,GAAA,EAAC0C,KAAAA,UAAG,cACJ,GAAA3C,EAAAC,GAAA,EAACN,EAAAA,CAAY,GAAG2B,EAAQ1B,MAAM,MAXzB,IAAI,CAgBfyB,CAAAA,EAAKuB,SAAS,CAAG,SAAmBC,CAAkB,CAAE,CACtD,MAAO,GAAA7C,EAAAC,GAAA,EAAC6C,EAAAA,CAAWA,CAAAA,CAACD,KAAMA,GAC5B,EAEAE,EAAA,QAAe1B","sources":["webpack://_N_E/?3d0f","webpack://_N_E/./pages/admin/upgrade.tsx","webpack://_N_E/<anon>"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/admin/upgrade\",\n function () {\n return require(\"private-next-pages/admin/upgrade.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/admin/upgrade\"])\n });\n }\n ","import React, { useState, useEffect, ReactElement } from 'react';\nimport ReactMarkdown from 'react-markdown';\nimport { Table, Typography } from 'antd';\nimport { getGithubRelease } from '../../utils/apis';\n\nimport { AdminLayout } from '../../components/layouts/AdminLayout';\n\nconst { Title } = Typography;\n\nconst AssetTable = assets => {\n const data = Object.values(assets) as object[];\n\n const columns = [\n {\n title: 'Name',\n dataIndex: 'name',\n key: 'name',\n render: (text, entry) => <a href={entry.browser_download_url}>{text}</a>,\n },\n {\n title: 'Size',\n dataIndex: 'size',\n key: 'size',\n render: text => `${(text / 1024 / 1024).toFixed(2)} MB`,\n },\n ];\n\n return (\n <Table\n dataSource={data}\n columns={columns}\n rowKey={record => record.id}\n size=\"large\"\n pagination={false}\n />\n );\n};\n\nconst Logs = () => {\n const [release, setRelease] = useState({\n html_url: '',\n name: '',\n created_at: null,\n body: '',\n assets: [],\n });\n\n const getRelease = async () => {\n try {\n const result = await getGithubRelease();\n setRelease(result);\n } catch (error) {\n console.log('==== error', error);\n }\n };\n\n useEffect(() => {\n getRelease();\n }, []);\n\n if (!release) {\n return null;\n }\n\n return (\n <div className=\"upgrade-page\">\n <Title level={2}>\n <a href={release.html_url}>{release.name}</a>\n </Title>\n <Title level={5}>{new Date(release.created_at).toDateString()}</Title>\n <ReactMarkdown>{release.body}</ReactMarkdown>\n <h3>Downloads</h3>\n <AssetTable {...release.assets} />\n </div>\n );\n};\n\nLogs.getLayout = function getLayout(page: ReactElement) {\n return <AdminLayout page={page} />;\n};\n\nexport default Logs;\n"],"names":["window","__NEXT_P","push","__webpack_require__","Title","Typography","AssetTable","assets","data","Object","values","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Table","dataSource","columns","title","dataIndex","key","render","text","entry","a","href","browser_download_url","concat","toFixed","rowKey","record","id","size","pagination","Logs","release","setRelease","useState","html_url","name","created_at","body","getRelease","result","getGithubRelease","error","console","log","useEffect","jsxs","div","className","level","Date","toDateString","ReactMarkdown","h3","getLayout","page","AdminLayout","__webpack_exports__"],"sourceRoot":""}
{"version":3,"file":"static/chunks/pages/admin/upgrade-00fa7cb109385ca3.js","mappings":"sFACA,CAAAA,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAC,IAAA,EACA,iBACA,WACA,OAAeC,EAAQ,MACvB,EACA,6HCCA,GAAM,CAAEC,MAAAA,CAAAA,CAAO,CAAGC,EAAAA,CAAUA,CAEtBC,EAAaC,GAAU,CAC3B,IAAMC,EAAOC,OAAOC,MAAM,CAACH,GAiB3B,MACE,GAAAI,EAAAC,GAAA,EAACC,EAAAA,CAAKA,CAAAA,CACJC,WAAY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,cACJ,GAAA3C,EAAAC,GAAA,EAACN,EAAAA,CAAY,GAAG2B,EAAQ1B,MAAM,MAXzB,IAAI,CAgBfyB,CAAAA,EAAKuB,SAAS,CAAG,SAAmBC,CAAkB,CAAE,CACtD,MAAO,GAAA7C,EAAAC,GAAA,EAAC6C,EAAAA,CAAWA,CAAAA,CAACD,KAAMA,GAC5B,EAEAE,EAAA,QAAe1B","sources":["webpack://_N_E/?3d0f","webpack://_N_E/./pages/admin/upgrade.tsx","webpack://_N_E/<anon>"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/admin/upgrade\",\n function () {\n return require(\"private-next-pages/admin/upgrade.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/admin/upgrade\"])\n });\n }\n ","import React, { useState, useEffect, ReactElement } from 'react';\nimport ReactMarkdown from 'react-markdown';\nimport { Table, Typography } from 'antd';\nimport { getGithubRelease } from '../../utils/apis';\n\nimport { AdminLayout } from '../../components/layouts/AdminLayout';\n\nconst { Title } = Typography;\n\nconst AssetTable = assets => {\n const data = Object.values(assets) as object[];\n\n const columns = [\n {\n title: 'Name',\n dataIndex: 'name',\n key: 'name',\n render: (text, entry) => <a href={entry.browser_download_url}>{text}</a>,\n },\n {\n title: 'Size',\n dataIndex: 'size',\n key: 'size',\n render: text => `${(text / 1024 / 1024).toFixed(2)} MB`,\n },\n ];\n\n return (\n <Table\n dataSource={data}\n columns={columns}\n rowKey={record => record.id}\n size=\"large\"\n pagination={false}\n />\n );\n};\n\nconst Logs = () => {\n const [release, setRelease] = useState({\n html_url: '',\n name: '',\n created_at: null,\n body: '',\n assets: [],\n });\n\n const getRelease = async () => {\n try {\n const result = await getGithubRelease();\n setRelease(result);\n } catch (error) {\n console.log('==== error', error);\n }\n };\n\n useEffect(() => {\n getRelease();\n }, []);\n\n if (!release) {\n return null;\n }\n\n return (\n <div className=\"upgrade-page\">\n <Title level={2}>\n <a href={release.html_url}>{release.name}</a>\n </Title>\n <Title level={5}>{new Date(release.created_at).toDateString()}</Title>\n <ReactMarkdown>{release.body}</ReactMarkdown>\n <h3>Downloads</h3>\n <AssetTable {...release.assets} />\n </div>\n );\n};\n\nLogs.getLayout = function getLayout(page: ReactElement) {\n return <AdminLayout page={page} />;\n};\n\nexport default Logs;\n"],"names":["window","__NEXT_P","push","__webpack_require__","Title","Typography","AssetTable","assets","data","Object","values","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Table","dataSource","columns","title","dataIndex","key","render","text","entry","a","href","browser_download_url","concat","toFixed","rowKey","record","id","size","pagination","Logs","release","setRelease","useState","html_url","name","created_at","body","getRelease","result","getGithubRelease","error","console","log","useEffect","jsxs","div","className","level","Date","toDateString","ReactMarkdown","h3","getLayout","page","AdminLayout","__webpack_exports__"],"sourceRoot":""}

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

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

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

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

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

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

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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long