@abtnode/blocklet-services 1.16.45-beta-20250609-025419-7fd1f86c → 1.16.45-beta-20250609-082716-b6b0592b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/add-component-core-CsW-bf6w.js +1 -1
- package/dist/assets/add-resource-D1GK1xW7.js +1 -1
- package/dist/assets/advanced-BSxn1YDX.js +1 -1
- package/dist/assets/audit-logs-XAopC8XN.js +1 -1
- package/dist/assets/complete-C6_ojDUa.js +1 -1
- package/dist/assets/component-OYgpJSh4.js +1 -1
- package/dist/assets/config-navigation-VPQM3i1K.js +1 -1
- package/dist/assets/connect-CQ-AWW94.js +1 -1
- package/dist/assets/dashboard-B7qE-Md0.js +2 -2
- package/dist/assets/email-DDPCqu4Z.js +1 -1
- package/dist/assets/exchange-passport-xdsOlfWE.js +1 -1
- package/dist/assets/index-BDw54V1q.js +1 -1
- package/dist/assets/index-BY-e9TG4.js +1 -1
- package/dist/assets/index-CCrgDhTM.js +1 -1
- package/dist/assets/index-DQjZ74P0.js +1 -1
- package/dist/assets/index-DVLOAsDQ.js +1 -1
- package/dist/assets/index-DWZfwLDs.js +1 -1
- package/dist/assets/index-Drni9chH.js +1 -1
- package/dist/assets/index-Hs7lhrID.js +1 -1
- package/dist/assets/index-NE1bWD-Q.js +1 -1
- package/dist/assets/invite-CZ68j_lY.js +1 -1
- package/dist/assets/issue-passport-IkLenFGe.js +1 -1
- package/dist/assets/item-RUDvbSOI.js +1 -1
- package/dist/assets/list-DjvUHEwY.js +1 -1
- package/dist/assets/login-BF0iOJJn.js +1 -1
- package/dist/assets/lost-passport-CaF7MO2m.js +1 -1
- package/dist/assets/open-window-Dn44K3ur.js +1 -1
- package/dist/assets/overview-DwmambxV.js +1 -1
- package/dist/assets/publish-resource-Bk548CMo.js +1 -1
- package/dist/assets/runtime-xdMFSsvP.js +1 -1
- package/dist/assets/security-DCYPNDg3.js +1 -1
- package/dist/assets/setup-CQ7O7nI0.js +2 -2
- package/dist/assets/start-t5ebRJzD.js +1 -1
- package/package.json +22 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,ab as G,bE as Q,aa as p,v as X,H as v,ap as J,ba as Y,ah as S,w as Z}from"./vendor-mui-core-wlbruq2I.js";import{r as g,L as H}from"./vendor-react-DEoibe3W.js";import{x as ee,b as U}from"./vendor-hooks-BCm626KH.js";import{A as L}from"./vendor-utils-B3iZkn2R.js";import{d as te}from"./PlayArrow-B_ZNrQDa.js";import{d as re}from"./Error-D0rGqAKE.js";import{a as F,a3 as A,F as oe,k as D,Q as ne,B as E,a2 as se,D as ie}from"./vendor-ux-did-connect-CX7qG3_M.js";import{W as ae}from"./did-address-bJAfhuZx.js";import{d as z,e as W,g as le,f as R,h as de,j as T,S as ce,u as pe,k as me,l as he,m as ue,P as ge,O as fe,n as I,o as xe,q as B}from"./index-DQjZ74P0.js";import{H as be}from"./addon-e-JO0VU3.js";import{u as ke}from"./use-server-logo-BbYHFDuK.js";import{g as M}from"./get-safe-url-
|
|
1
|
+
import{j as t,ab as G,bE as Q,aa as p,v as X,H as v,ap as J,ba as Y,ah as S,w as Z}from"./vendor-mui-core-wlbruq2I.js";import{r as g,L as H}from"./vendor-react-DEoibe3W.js";import{x as ee,b as U}from"./vendor-hooks-BCm626KH.js";import{A as L}from"./vendor-utils-B3iZkn2R.js";import{d as te}from"./PlayArrow-B_ZNrQDa.js";import{d as re}from"./Error-D0rGqAKE.js";import{a as F,a3 as A,F as oe,k as D,Q as ne,B as E,a2 as se,D as ie}from"./vendor-ux-did-connect-CX7qG3_M.js";import{W as ae}from"./did-address-bJAfhuZx.js";import{d as z,e as W,g as le,f as R,h as de,j as T,S as ce,u as pe,k as me,l as he,m as ue,P as ge,O as fe,n as I,o as xe,q as B}from"./index-DQjZ74P0.js";import{H as be}from"./addon-e-JO0VU3.js";import{u as ke}from"./use-server-logo-BbYHFDuK.js";import{g as M}from"./get-safe-url-BWDUV79Q.js";import{b as je}from"./vendor-arcblock-B4hgrXYM.js";import{p as ye,S as we,P as ve}from"./starting-progress-a7uoLG-L.js";import"./lottie-web-jYmAQWuC.js";import"./QuestionMarkCircle-BMcwgPWr.js";import"./use-mobile-CiFFAdJf.js";function K({appInfo:e,...o}){const[r,i]=g.useState(!1),d=X(f=>f.breakpoints.down("md"))?32:48;return r?t.jsx(se,{did:e.publisher,size:d}):t.jsx(ie,{src:e.icon,alt:e.title,width:d,height:d,...o,onError:()=>i(!0)})}K.propTypes={appInfo:v.object.isRequired};const q=(e,o)=>R.findComponentByIdV2(e,o)||e;function Ke(){var w,$,k;const{t:e,locale:o}=F(),[r,i]=ee({blocklet:null,component:null,launcherSession:null,loading:!1,starting:!1,manageSubscriptionURL:"",restart:!1}),l=localStorage.getItem("blocklet-server-url"),d=ke({onClick:()=>{l&&window.open(M(l,{allowDomains:null}))}}),f=new URL(window.location.href),P=f.searchParams.get("componentId"),_=()=>{const s=f.searchParams.get("redirect")||"/";window.location.href=M(decodeURIComponent(s))},x=()=>{const s=setInterval(()=>{z.get("/blocklet/detail?nocache=1").then(({data:n})=>{i(u=>({...u,blocklet:n}));const a=q(n,P);if(a.status==="running"){_();return}a.status!=="starting"&&!r.restart&&(i({blocklet:n,starting:!1}),n!==a&&i({component:a}),clearInterval(s))}).catch(n=>{i({loading:!1,restart:!1}),A.error(n.message)})},3e3)},j=()=>{i({restart:!0,starting:!0,loading:!0}),setTimeout(()=>{x()},10)};g.useEffect(()=>{i({loading:!0}),z.get("/blocklet/detail?nocache=1").then(({data:s})=>{const n=q(s,P);if(i({blocklet:s,loading:!1}),n.status==="running"){_();return}i({blocklet:s}),s!==n&&i({component:n}),n.status==="starting"&&(i({starting:!0}),x())}).catch(s=>{i({loading:!1}),A.error(s.message)})},[]);const C=g.useCallback(()=>{i({loading:!0,starting:!0});const s=r.blocklet;if(!s)return;const n={did:s==null?void 0:s.meta.did};s.children.length>0&&(n.componentDids=s.children.map(a=>a.meta.did)),W.startBlocklet({input:n}).then(({blocklet:a})=>{i(u=>({...u,blocklet:a})),x()}).catch(a=>{A.error(a.message),i({loading:!1,starting:!1})})},[r.component,r.blocklet]);g.useEffect(()=>{var s;(s=r.blocklet)!=null&&s.controller&&(le({launcherUrl:r.blocklet.controller.launcherUrl,launcherSessionId:r.blocklet.controller.launcherSessionId,locale:o}).then(n=>{i({manageSubscriptionURL:n})}).catch(n=>{console.error("get manage subscription url error",n)}),W.getLauncherSession({input:{launcherSessionId:r.blocklet.controller.launcherSessionId,launcherUrl:r.blocklet.controller.launcherUrl}}).then(n=>{i({launcherSession:n.launcherSession})}).catch(n=>{console.error("get launcher session error",n)}))},[(w=r.blocklet)==null?void 0:w.controller]);const b=U(()=>{var s,n;return(n=(s=r.blocklet)==null?void 0:s.children)==null?void 0:n.length},[r.blocklet]),c=U(()=>{var s,n,a;return((a=(n=(s=r.blocklet)==null?void 0:s.children)==null?void 0:n.filter(u=>u.status==="running"))==null?void 0:a.length)||0},[r.blocklet]),m=U(()=>b?c?Math.round(Math.max(c/b,.15)*100):5:0,[c,b]);if(!r.blocklet)return t.jsx(oe,{children:t.jsx(G,{})});const h={icon:`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/blocklet/logo`,title:R.getDisplayName(r.blocklet),publisher:r.blocklet.appDid},N=ne(ye,r.starting?{width:`${m}%`,"&::after":{width:`${m}%`},"&::before":{width:`${m}%`,animation:"shimmer 1s infinite cubic-bezier(0.4, 0.0, 0.2, 1)","@keyframes shimmer":{"0%":{width:0},"100%":{width:`${m}%`}}}}:{}),y=de(r.blocklet)||T(r.launcherSession);return t.jsxs(_e,{children:[t.jsx(Q,{styles:Pe}),t.jsxs("header",{className:"root-header",children:[t.jsx("div",{className:"left",children:d}),t.jsx(je,{children:t.jsx(be,{SessionContext:ce})})]}),t.jsxs(Ce,{elevation:0,children:[t.jsxs(Ne,{children:[t.jsx(K,{appInfo:h}),t.jsxs("div",{className:"app-info_content",children:[t.jsx(p,{className:"app-info_name",children:h.title}),t.jsx(ae,{size:14,className:"app-info_did",did:h.publisher})]})]}),(r.restart||!y)&&t.jsxs(t.Fragment,{children:[t.jsxs(p,{className:"title-box",children:[t.jsx(p,{className:"icon",children:t.jsx(te,{})}),t.jsx(p,{className:"title",children:e("blocklet.startApplication")})]}),t.jsx(p,{className:"sub-title",children:r.starting?t.jsx(we,{blocklets:(($=r.blocklet)==null?void 0:$.children)??[]}):e("blocklet.startDescription",{name:r.component?R.getDisplayName(r.component,!0):R.getDisplayName(r.blocklet)})}),t.jsx(p,{mt:8,display:"flex",flexDirection:"column",alignItems:"center",gap:1,children:t.jsx(ve,{blocklets:((k=r.blocklet)==null?void 0:k.children)??[],status:r.starting?"starting":"",children:t.jsx(E,{sx:N,disabled:r.loading||r.starting,variant:"contained",color:"primary",size:"large",loading:r.starting,onClick:()=>C(),children:t.jsx("span",{style:{position:"relative",zIndex:2},children:r.starting?`(${c}/${b}) ${e("blocklet.starting")}`:e("blocklet.start")})})})})]}),y&&!r.restart&&t.jsx(O,{blocklet:r.blocklet,launcherSession:r.launcherSession,manageSubscriptionURL:r.manageSubscriptionURL,handleRestart:j}),t.jsx(p,{mt:5,children:t.jsx(H,{className:"footer-link",to:`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,children:e("blocklet.dashboard")})})]})]})}function O({blocklet:e,launcherSession:o,manageSubscriptionURL:r,handleRestart:i}){var N,y;const{t:l,locale:d}=F(),{connectApi:f,session:P}=pe(),{refreshSubscription:_}=me(),[x,j]=g.useState(!1),[C,b]=g.useState("");if(g.useEffect(()=>{var w;if((w=e==null?void 0:e.controller)!=null&&w.launcherUrl&&T(o)){const $=L(e.controller.launcherUrl,"__blocklet__.js?type=json");fetch($).then(k=>k.json()).then(k=>{var a,u;const s=(u=(a=k.componentMountPoints)==null?void 0:a.find(V=>V.did==="z2qaCNvKMv5GjouKdcDWexv6WqtHbpNPQDnAk"))==null?void 0:u.mountPoint,n=L(e.controller.launcherUrl,s);b(n)})}},[(N=e==null?void 0:e.controller)==null?void 0:N.launcherUrl,o]),!e||!o)return"";const c=T(o),m=!c&&he(e,o),h=!c&&ue(e,o);return!m&&!h&&!c?"":t.jsxs(t.Fragment,{children:[x&&C&&o&&t.jsx(ge,{session:P,connect:f,baseUrl:C,authToken:o.subscription.authToken,children:t.jsx(fe,{dialogProps:{open:x,onClose:()=>j(!1)},subscriptionId:o.subscription.id,successToast:!0,onPaid:()=>{z.post("/blocklet/start?fromSetup=1"),_(),i(),j(!1)}})}),t.jsxs(p,{className:"title-box",children:[t.jsx(re,{className:"icon-error"}),t.jsxs(p,{className:"title error",children:[m&&l("blocklet.suspended"),h&&l("blocklet.terminated"),c&&l("blocklet.suspended")]})]}),t.jsxs(p,{className:"sub-title",children:[m&&l("blocklet.suspendedCausedByExpired",{deadline:I(o==null?void 0:o.reservedUntil,d),canceledAt:I((((y=o==null?void 0:o.subscription)==null?void 0:y.canceled_at)||0)*1e3,d)}),h&&l("blocklet.suspendedCausedByTerminated",{canceledAt:I(o==null?void 0:o.terminatedAt,d),deadline:xe(o==null?void 0:o.terminatedAt,d)}),c&&l("blocklet.suspendedCausedByPastDue",{deadline:I(o==null?void 0:o.reservedUntil,d)})]}),t.jsxs(p,{mt:8,children:[c&&!B(o)&&t.jsx(E,{style:{minWidth:200},variant:"contained",color:"primary",size:"large",onClick:()=>j(!0),children:l("blocklet.payNow")}),(m||B(o))&&t.jsx(E,{component:J,style:{minWidth:200},variant:"contained",color:"primary",size:"large",target:"_blank",href:r||"#",children:l("blocklet.manageSubscription")}),h&&t.jsx(E,{component:H,to:L(D.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin/did-spaces"),style:{minWidth:200},variant:"contained",color:"primary",size:"large",children:l("common.backup")})]})]})}O.propTypes={blocklet:v.object.isRequired,launcherSession:v.object.isRequired,manageSubscriptionURL:v.string.isRequired,handleRestart:v.func.isRequired};const Pe=Y`
|
|
2
2
|
html,
|
|
3
3
|
body,
|
|
4
4
|
#app,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.45-beta-20250609-
|
|
6
|
+
"version": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/analytics": "1.16.45-beta-20250609-
|
|
37
|
-
"@abtnode/auth": "1.16.45-beta-20250609-
|
|
38
|
-
"@abtnode/client": "1.16.45-beta-20250609-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.45-beta-20250609-
|
|
40
|
-
"@abtnode/constant": "1.16.45-beta-20250609-
|
|
41
|
-
"@abtnode/core": "1.16.45-beta-20250609-
|
|
42
|
-
"@abtnode/cron": "1.16.45-beta-20250609-
|
|
43
|
-
"@abtnode/db-cache": "1.16.45-beta-20250609-
|
|
44
|
-
"@abtnode/logger": "1.16.45-beta-20250609-
|
|
45
|
-
"@abtnode/models": "1.16.45-beta-20250609-
|
|
46
|
-
"@abtnode/router-templates": "1.16.45-beta-20250609-
|
|
47
|
-
"@abtnode/util": "1.16.45-beta-20250609-
|
|
36
|
+
"@abtnode/analytics": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
37
|
+
"@abtnode/auth": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
38
|
+
"@abtnode/client": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
40
|
+
"@abtnode/constant": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
41
|
+
"@abtnode/core": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
42
|
+
"@abtnode/cron": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
43
|
+
"@abtnode/db-cache": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
44
|
+
"@abtnode/logger": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
45
|
+
"@abtnode/models": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
46
|
+
"@abtnode/router-templates": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
47
|
+
"@abtnode/util": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
48
48
|
"@arcblock/did": "1.20.14",
|
|
49
49
|
"@arcblock/did-auth": "1.20.14",
|
|
50
50
|
"@arcblock/did-ext": "1.20.14",
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"@arcblock/jwt": "1.20.14",
|
|
55
55
|
"@arcblock/validator": "1.20.14",
|
|
56
56
|
"@arcblock/ws": "1.20.14",
|
|
57
|
-
"@blocklet/constant": "1.16.45-beta-20250609-
|
|
57
|
+
"@blocklet/constant": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
58
58
|
"@blocklet/dbhub": "^0.2.9",
|
|
59
59
|
"@blocklet/did-space-js": "^1.0.58",
|
|
60
|
-
"@blocklet/env": "1.16.45-beta-20250609-
|
|
60
|
+
"@blocklet/env": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
61
61
|
"@blocklet/error": "^0.2.5",
|
|
62
62
|
"@blocklet/form-builder": "^0.1.12",
|
|
63
63
|
"@blocklet/form-collector": "^0.1.8",
|
|
64
|
-
"@blocklet/images": "1.16.45-beta-20250609-
|
|
65
|
-
"@blocklet/js-sdk": "1.16.45-beta-20250609-
|
|
64
|
+
"@blocklet/images": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
65
|
+
"@blocklet/js-sdk": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
66
66
|
"@blocklet/mcp": "^1.10.2",
|
|
67
|
-
"@blocklet/meta": "1.16.45-beta-20250609-
|
|
68
|
-
"@blocklet/sdk": "1.16.45-beta-20250609-
|
|
67
|
+
"@blocklet/meta": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
68
|
+
"@blocklet/sdk": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
69
69
|
"@blocklet/theme": "^2.13.62",
|
|
70
70
|
"@blocklet/theme-builder": "^0.1.19",
|
|
71
71
|
"@blocklet/uploader-server": "^0.1.101",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"whatwg-url": "14.0.0"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@abtnode/ux": "1.16.45-beta-20250609-
|
|
123
|
+
"@abtnode/ux": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
124
124
|
"@arcblock/bridge": "^2.13.62",
|
|
125
125
|
"@arcblock/did-connect": "^2.13.62",
|
|
126
126
|
"@arcblock/icons": "^2.13.62",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"@arcblock/ux": "^2.13.62",
|
|
129
129
|
"@blocklet/launcher-layout": "^2.13.62",
|
|
130
130
|
"@blocklet/payment-react": "^1.18.54",
|
|
131
|
-
"@blocklet/tracker": "1.16.45-beta-20250609-
|
|
131
|
+
"@blocklet/tracker": "1.16.45-beta-20250609-082716-b6b0592b",
|
|
132
132
|
"@blocklet/ui-react": "^2.13.62",
|
|
133
133
|
"@blocklet/uploader": "^0.1.95",
|
|
134
134
|
"@emotion/react": "^11.11.4",
|
|
@@ -206,5 +206,5 @@
|
|
|
206
206
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
207
207
|
"email": "shijun@arcblock.io"
|
|
208
208
|
},
|
|
209
|
-
"gitHead": "
|
|
209
|
+
"gitHead": "adeceb28a9b5c91d2eb35d33880782048ae629cc"
|
|
210
210
|
}
|