Update phanpy
This commit is contained in:
parent
dd9de36ba2
commit
77d04c3098
2
assets/compose-0-ugg34f.js
Normal file
2
assets/compose-0-ugg34f.js
Normal file
@ -0,0 +1,2 @@
|
||||
import{p,H as w,S,_ as i,c as e,C as f,X as _}from"./useTitle-TOnOofzE.js";window.opener&&(console=window.opener.console);function h(){var s,a;const[t,d]=p("default"),{editStatus:n,replyToStatus:o,draftStatus:l}=window.__COMPOSE__||{};return w(n?"Editing source status":o?`Replying to @${((s=o.account)==null?void 0:s.acct)||((a=o.account)==null?void 0:a.username)}`:"Compose"),i(()=>{S()},[]),i(()=>{if(t==="closed"){try{window.opener.focus()}catch{}window.close()}},[t]),t==="closed"?e("div",{class:"box",children:[e("p",{children:"You may close this page now."}),e("p",{children:e("button",{onClick:()=>{window.close()},children:"Close window"})})]}):e(f,{editStatus:n,replyToStatus:o,draftStatus:l,standalone:!0,hasOpener:window.opener,onClose:c=>{const{newStatus:r,fn:u=()=>{}}=c||{};try{r&&window.opener.__STATES__.reloadStatusPage++,u(),d("closed")}catch{}}})}_(e(h,{}),document.getElementById("app-standalone"));
|
||||
//# sourceMappingURL=compose-0-ugg34f.js.map
|
1
assets/compose-0-ugg34f.js.map
Normal file
1
assets/compose-0-ugg34f.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"compose-0-ugg34f.js","sources":["../../src/compose.jsx"],"sourcesContent":["import './index.css';\n\nimport './app.css';\n\nimport './polyfills';\n\nimport { render } from 'preact';\nimport { useEffect, useState } from 'preact/hooks';\n\nimport ComposeSuspense from './components/compose-suspense';\nimport { initStates } from './utils/states';\nimport useTitle from './utils/useTitle';\n\nif (window.opener) {\n console = window.opener.console;\n}\n\nfunction App() {\n const [uiState, setUIState] = useState('default');\n\n const { editStatus, replyToStatus, draftStatus } = window.__COMPOSE__ || {};\n\n useTitle(\n editStatus\n ? 'Editing source status'\n : replyToStatus\n ? `Replying to @${\n replyToStatus.account?.acct || replyToStatus.account?.username\n }`\n : 'Compose',\n );\n\n useEffect(() => {\n initStates();\n }, []);\n\n useEffect(() => {\n if (uiState === 'closed') {\n try {\n // Focus parent window\n window.opener.focus();\n } catch (e) {}\n window.close();\n }\n }, [uiState]);\n\n if (uiState === 'closed') {\n return (\n <div class=\"box\">\n <p>You may close this page now.</p>\n <p>\n <button\n onClick={() => {\n window.close();\n }}\n >\n Close window\n </button>\n </p>\n </div>\n );\n }\n\n console.debug('OPEN COMPOSE');\n\n return (\n <ComposeSuspense\n editStatus={editStatus}\n replyToStatus={replyToStatus}\n draftStatus={draftStatus}\n standalone\n hasOpener={window.opener}\n onClose={(results) => {\n const { newStatus, fn = () => {} } = results || {};\n try {\n if (newStatus) {\n window.opener.__STATES__.reloadStatusPage++;\n }\n fn();\n setUIState('closed');\n } catch (e) {}\n }}\n />\n );\n}\n\nrender(<App />, document.getElementById('app-standalone'));\n"],"names":["window","opener","console","App","uiState","setUIState","useState","editStatus","replyToStatus","draftStatus","__COMPOSE__","account","acct","username","useEffect","initStates","focus","close","_jsxs","class","children","_jsx","onClick","standalone","hasOpener","newStatus","results","fn","render"],"mappings":"2EAaIA,OAAOC,SACTC,QAAUF,OAAOC,OAAOC,SAG1B,SAASC,GAAM,SACb,KAAM,CAACC,EAASC,CAAU,EAAIC,EAAS,SAAS,EAE1C,CAAEC,WAAAA,EAAYC,cAAAA,EAAeC,YAAAA,CAAAA,EAAgBT,OAAOU,aAAe,GA0BzE,OAvBEH,EAAAA,EACI,wBACAC,EACC,kBACCA,EAAAA,EAAcG,UAAdH,YAAAA,EAAuBI,SAAQJ,EAAAA,EAAcG,UAAdH,YAAAA,EAAuBK,SACvD,GACD,SACN,EAEAC,EAAU,IAAM,CACHC,GACb,EAAG,CAAE,CAAA,EAELD,EAAU,IAAM,CACd,GAAIV,IAAY,SAAU,CACpB,GAAA,CAEFJ,OAAOC,OAAOe,aACJ,CAAC,CACbhB,OAAOiB,MAAM,CACf,CAAA,EACC,CAACb,CAAO,CAAC,EAERA,IAAY,SAEZc,EAAA,MAAA,CAAKC,MAAM,MAAKC,UACdC,EAAA,IAAA,CAAAD,SAAG,8BAAA,CAA+B,EAClCC,EAAA,IAAA,CAAAD,SACEC,EAAA,SAAA,CACEC,QAASA,IAAM,CACbtB,OAAOiB,MAAM,CACf,EAAEG,SACH,cAAA,CAEO,CAAA,CACP,CAAC,CAAA,CACD,EAITlB,IAA4B,CAE5B,WAAAK,EAEIA,cAAAA,EACAC,YAAAA,EACAC,WAAAA,GACAc,UAAU,OAAA,OACVC,WAAkBvB,OAEV,UAAAwB,EAAEA,GAAAA,EAAAA,IAAAA,EAAsB,EAACC,GAAA,CAAA,EAAE,GAAIA,CACjCD,GACF,OAAe,OAAA,WAAA,mBAEfE,IACGtB,EAAA,QAAA,CACHA,MAAAA,EACW,CAAA,CACf,CAAA,CAGNuB,EAAAP,EAAAlB,EAAA,CAAA,CAAA,EAAA,SAAA,eAAA,gBAAA,CAAA"}
|
26
assets/compose-nqnue7DX.js
Normal file
26
assets/compose-nqnue7DX.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/compose-nqnue7DX.js.map
Normal file
1
assets/compose-nqnue7DX.js.map
Normal file
File diff suppressed because one or more lines are too long
183
assets/fuse-sLNor9NY.js
Normal file
183
assets/fuse-sLNor9NY.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/fuse-sLNor9NY.js.map
Normal file
1
assets/fuse-sLNor9NY.js.map
Normal file
File diff suppressed because one or more lines are too long
2
assets/index-gNUvm9kb.js
Normal file
2
assets/index-gNUvm9kb.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/index-gNUvm9kb.js.map
Normal file
1
assets/index-gNUvm9kb.js.map
Normal file
File diff suppressed because one or more lines are too long
32
assets/main-hRAbIWke.js
Normal file
32
assets/main-hRAbIWke.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/main-hRAbIWke.js.map
Normal file
1
assets/main-hRAbIWke.js.map
Normal file
File diff suppressed because one or more lines are too long
3
assets/polyfill-force-QDvkLAHy.js
Normal file
3
assets/polyfill-force-QDvkLAHy.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/polyfill-force-QDvkLAHy.js.map
Normal file
1
assets/polyfill-force-QDvkLAHy.js.map
Normal file
File diff suppressed because one or more lines are too long
7
assets/style-LhJ7Rndd.css
Normal file
7
assets/style-LhJ7Rndd.css
Normal file
File diff suppressed because one or more lines are too long
2
assets/tinyld-light-PxOyhYWY.js
Normal file
2
assets/tinyld-light-PxOyhYWY.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/tinyld-light-PxOyhYWY.js.map
Normal file
1
assets/tinyld-light-PxOyhYWY.js.map
Normal file
File diff suppressed because one or more lines are too long
38
assets/useTitle-TOnOofzE.js
Normal file
38
assets/useTitle-TOnOofzE.js
Normal file
File diff suppressed because one or more lines are too long
1
assets/useTitle-TOnOofzE.js.map
Normal file
1
assets/useTitle-TOnOofzE.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -7,10 +7,9 @@
|
||||
<title>Compose / Phanpy</title>
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
<meta name="google" content="notranslate" />
|
||||
<script type="module" crossorigin src="../assets/compose-GEsXl1Xt.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="../assets/vendor-GrW-f9CX.js">
|
||||
<link rel="modulepreload" crossorigin href="../assets/useTitle-dCp14HlU.js">
|
||||
<link rel="stylesheet" crossorigin href="../assets/style-C0C806IL.css">
|
||||
<script type="module" crossorigin src="../assets/compose-0-ugg34f.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="../assets/useTitle-TOnOofzE.js">
|
||||
<link rel="stylesheet" crossorigin href="../assets/style-LhJ7Rndd.css">
|
||||
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:inline-sw">if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('./sw.js', { scope: './' })})}</script></head>
|
||||
<body>
|
||||
<div id="app-standalone"></div>
|
||||
|
11
index.html
11
index.html
@ -55,11 +55,12 @@
|
||||
content="Minimalistic opinionated Mastodon web client"
|
||||
/>
|
||||
<meta property="og:image" content="https://phanpy.social/og-image-2.jpg" />
|
||||
<script type="module" crossorigin src="./assets/main-1wKRS81d.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/vendor-GrW-f9CX.js">
|
||||
<link rel="modulepreload" crossorigin href="./assets/useTitle-dCp14HlU.js">
|
||||
<link rel="modulepreload" crossorigin href="./assets/status-FORkhePO.js">
|
||||
<link rel="stylesheet" crossorigin href="./assets/style-C0C806IL.css">
|
||||
<script type="module" crossorigin src="./assets/main-hRAbIWke.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="./assets/useTitle-TOnOofzE.js">
|
||||
<link rel="modulepreload" crossorigin href="./assets/tinyld-light-PxOyhYWY.js">
|
||||
<link rel="modulepreload" crossorigin href="./assets/index-gNUvm9kb.js">
|
||||
<link rel="modulepreload" crossorigin href="./assets/fuse-sLNor9NY.js">
|
||||
<link rel="stylesheet" crossorigin href="./assets/style-LhJ7Rndd.css">
|
||||
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:inline-sw">if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('./sw.js', { scope: './' })})}</script></head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -1 +1 @@
|
||||
{"buildTime":"2024-06-03T11:04:51.985Z","commitHash":"0a6030c"}
|
||||
{"buildTime":"2024-06-23T09:40:47.957Z","commitHash":"20d0b1c"}
|
Loading…
Reference in New Issue
Block a user