@abtnode/blocklet-services 1.16.43-beta-20250510-123357-65a2988c → 1.16.43
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-DRAzXCeg.js +1 -1
- package/dist/assets/add-resource-BDJuVU8K.js +1 -1
- package/dist/assets/advanced-CFME3Vrl.js +1 -1
- package/dist/assets/audit-logs-CtFZQHby.js +1 -1
- package/dist/assets/branding-CS-f1gMT.js +1 -1
- package/dist/assets/complete-BRApuFsV.js +1 -1
- package/dist/assets/component-C7g4FGFm.js +1 -1
- package/dist/assets/config-navigation-B7r4dV5S.js +1 -1
- package/dist/assets/connect-B2HOOYzS.js +1 -1
- package/dist/assets/dashboard-C124DXmc.js +2 -2
- package/dist/assets/email-Bc5KLu5Q.js +1 -1
- package/dist/assets/exchange-passport-DbNEDTaa.js +1 -1
- package/dist/assets/index--HbH1n1_.js +1 -1
- package/dist/assets/index-9ixwCOkw.js +1 -1
- package/dist/assets/index-B_fwtN9z.js +1 -1
- package/dist/assets/index-CyUXddLG.js +1 -1
- package/dist/assets/index-D64RNKdt.js +1 -1
- package/dist/assets/index-DF3gHUuW.js +1 -1
- package/dist/assets/index-DsT9i24r.js +1 -1
- package/dist/assets/index-g0L_1foA.js +1 -1
- package/dist/assets/index-u-w3iMC9.js +1 -1
- package/dist/assets/invite-CCCSmPiy.js +1 -1
- package/dist/assets/issue-passport-C3zUptls.js +1 -1
- package/dist/assets/item-CkcpHBHM.js +1 -1
- package/dist/assets/list-D1dIr8Je.js +1 -1
- package/dist/assets/login-BKaJnfFX.js +1 -1
- package/dist/assets/lost-passport-Bk0k4I4s.js +1 -1
- package/dist/assets/open-window-DV0D-Mov.js +1 -1
- package/dist/assets/overview-UIMGVO1S.js +1 -1
- package/dist/assets/publish-resource-CcM3RwPR.js +1 -1
- package/dist/assets/runtime-BVDdcpyT.js +1 -1
- package/dist/assets/security-BQbSLSOe.js +1 -1
- package/dist/assets/setup-CifjXQIf.js +2 -2
- package/dist/assets/start-CHmWCQE9.js +1 -1
- package/package.json +21 -21
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{v as W,j as t,ab as V,bE as X,aa as c,H as u,ap as G,b7 as Q,ah as _,w as Z}from"./vendor-mui-core-UZpb7wT7.js";import{r as x,L as D}from"./vendor-react-DEoibe3W.js";import{w as J,f as j}from"./vendor-hooks-rDgu5KV9.js";import{A as Y}from"./vendor-utils-rHXShPKm.js";import{d as ee}from"./PlayArrow-C9IFmc-j.js";import{d as te}from"./Error-wpqrAfUT.js";import{u as M,_ as y,C as oe,j as v,M as ie,B as S,Z as ne,y as re}from"./vendor-ux-did-connect-TEE6cGq6.js";import{W as se}from"./did-address-BKBBjFqv.js";import{b as ae,c as le}from"./vendor-arcblock-CN2B_oTr.js";import{S as ce}from"./ServerLogo-CfbYjQbP.js";import{d as T,e as U,g as de,f as b,S as pe,h as me,j as he,k as ge,l as A,m as fe}from"./index-u-w3iMC9.js";import{H as ue}from"./addon-ygDS7Fug.js";import{g as z}from"./get-safe-url-
|
|
1
|
+
import{v as W,j as t,ab as V,bE as X,aa as c,H as u,ap as G,b7 as Q,ah as _,w as Z}from"./vendor-mui-core-UZpb7wT7.js";import{r as x,L as D}from"./vendor-react-DEoibe3W.js";import{w as J,f as j}from"./vendor-hooks-rDgu5KV9.js";import{A as Y}from"./vendor-utils-rHXShPKm.js";import{d as ee}from"./PlayArrow-C9IFmc-j.js";import{d as te}from"./Error-wpqrAfUT.js";import{u as M,_ as y,C as oe,j as v,M as ie,B as S,Z as ne,y as re}from"./vendor-ux-did-connect-TEE6cGq6.js";import{W as se}from"./did-address-BKBBjFqv.js";import{b as ae,c as le}from"./vendor-arcblock-CN2B_oTr.js";import{S as ce}from"./ServerLogo-CfbYjQbP.js";import{d as T,e as U,g as de,f as b,S as pe,h as me,j as he,k as ge,l as A,m as fe}from"./index-u-w3iMC9.js";import{H as ue}from"./addon-ygDS7Fug.js";import{g as z}from"./get-safe-url-CEvgWyL5.js";import{p as xe,S as be,P as ke}from"./starting-progress-CdpkXOrK.js";import"./lottie-web-jYmAQWuC.js";import"./QuestionMarkCircle-DCM9zW3a.js";function H({appInfo:e,...s}){const[o,r]=x.useState(!1),l=W(d=>d.breakpoints.down("md"))?32:48;return o?t.jsx(ne,{did:e.publisher,size:l}):t.jsx(re,{src:e.icon,alt:e.title,width:l,height:l,...s,onError:()=>r(!0)})}H.propTypes={appInfo:u.object.isRequired};const B=(e,s)=>b.findComponentByIdV2(e,s)||e;function De(){var C,L,N,I,R,P;const{t:e,locale:s}=M(),[o,r]=J({blocklet:null,component:null,launcherSession:null,loading:!1,starting:!1,manageSubscriptionURL:""}),p=W(i=>i.breakpoints.down("md")),l=new URL(window.location.href),d=l.searchParams.get("componentId"),$=()=>{const i=l.searchParams.get("redirect")||"/";window.location.href=z(decodeURIComponent(i))},E=()=>{const i=setInterval(()=>{T.get("/blocklet/detail?nocache=1").then(({data:n})=>{r(m=>({...m,blocklet:n}));const a=B(n,d);if(a.status==="running"){$();return}a.status!=="starting"&&(r({blocklet:n,starting:!1}),n!==a&&r({component:a}),clearInterval(i))}).catch(n=>{r({loading:!1}),y.error(n.message)})},3e3)};x.useEffect(()=>{r({loading:!0}),T.get("/blocklet/detail?nocache=1").then(({data:i})=>{const n=B(i,d);if(r({blocklet:i,loading:!1}),n.status==="running"){$();return}r({blocklet:i}),i!==n&&r({component:n}),n.status==="starting"&&(r({starting:!0}),E())}).catch(i=>{r({loading:!1}),y.error(i.message)})},[]);const F=x.useCallback(()=>{r({loading:!0,starting:!0});const i=o.blocklet;if(!i)return;const n={did:i==null?void 0:i.meta.did};i.children.length>0&&(n.componentDids=i.children.map(a=>a.meta.did)),U.startBlocklet({input:n}).then(({blocklet:a})=>{r(m=>({...m,blocklet:a})),E()}).catch(a=>{y.error(a.message),r({loading:!1,starting:!1})})},[o.component,o.blocklet]);x.useEffect(()=>{var i;(i=o.blocklet)!=null&&i.controller&&(de({launcherUrl:o.blocklet.controller.launcherUrl,launcherSessionId:o.blocklet.controller.launcherSessionId,locale:s}).then(n=>{r({manageSubscriptionURL:n})}).catch(n=>{console.error("get manage subscription url error",n)}),U.getLauncherSession({input:{launcherSessionId:o.blocklet.controller.launcherSessionId,launcherUrl:o.blocklet.controller.launcherUrl}}).then(n=>{r({launcherSession:n.launcherSession}).catch(a=>{console.error("get launcher session error",a)})}))},[(C=o.blocklet)==null?void 0:C.controller]);const h=j(()=>{var i,n;return(n=(i=o.blocklet)==null?void 0:i.children)==null?void 0:n.length},[o.blocklet]),g=j(()=>{var i,n,a;return((a=(n=(i=o.blocklet)==null?void 0:i.children)==null?void 0:n.filter(m=>m.status==="running"))==null?void 0:a.length)||0},[o.blocklet]),f=j(()=>!h||!g?0:Math.round(g/h*100),[g,h]);if(!o.blocklet)return t.jsx(oe,{children:t.jsx(V,{})});const k={icon:`${v.WELLKNOWN_SERVICE_PATH_PREFIX}/blocklet/logo`,title:b.getDisplayName(o.blocklet),publisher:o.blocklet.appDid},w=localStorage.getItem("blocklet-server-url"),q=()=>{w&&window.open(z(w,{allowDomains:null}))},K=ie(xe,o.starting?{width:`${f}%`,"&::after":{width:`${f}%`},"&::before":{width:`${f}%`,animation:"shimmer 1.5s infinite cubic-bezier(0.4, 0.0, 0.2, 1)","@keyframes shimmer":{"0%":{width:0},"100%":{width:`${f}%`}}}}:{});return t.jsxs(je,{children:[t.jsx(X,{styles:we}),t.jsxs("header",{className:"root-header",children:[!p&&t.jsx("div",{className:"left",children:t.jsx(ce,{width:"128",height:"48",onClick:q,style:{cursor:w?"pointer":""}})}),t.jsx(ae,{children:t.jsx(ue,{SessionContext:pe})})]}),t.jsxs(ye,{elevation:0,children:[t.jsxs(ve,{children:[t.jsx(H,{appInfo:k}),t.jsxs("div",{className:"app-info_content",children:[t.jsx(c,{className:"app-info_name",children:k.title}),t.jsx(se,{size:14,className:"app-info_did",did:k.publisher})]})]}),((I=(N=(L=o.blocklet)==null?void 0:L.controller)==null?void 0:N.status)==null?void 0:I.value)!==le.BLOCKLET_CONTROLLER_STATUS.suspended&&t.jsxs(t.Fragment,{children:[t.jsxs(c,{className:"title-box",children:[t.jsx(c,{className:"icon",children:t.jsx(ee,{})}),t.jsx(c,{className:"title",children:e("blocklet.startApplication")})]}),t.jsx(c,{className:"sub-title",children:o.starting?t.jsx(be,{blocklets:((R=o.blocklet)==null?void 0:R.children)??[]}):e("blocklet.startDescription",{name:o.component?b.getDisplayName(o.component,!0):b.getDisplayName(o.blocklet)})}),t.jsx(c,{mt:8,display:"flex",flexDirection:"column",alignItems:"center",gap:1,children:t.jsx(ke,{blocklets:((P=o.blocklet)==null?void 0:P.children)??[],status:o.starting?"starting":"",children:t.jsx(S,{sx:K,disabled:o.loading||o.starting,variant:"contained",color:"primary",size:"large",loading:o.starting,onClick:()=>F(),children:t.jsx("span",{style:{position:"relative",zIndex:2},children:o.starting?`(${g}/${h}) ${e("blocklet.starting")}`:e("blocklet.start")})})})})]}),me(o.blocklet)&&t.jsx(O,{blocklet:o.blocklet,launcherSession:o.launcherSession,manageSubscriptionURL:o.manageSubscriptionURL}),t.jsx(c,{mt:5,children:t.jsx(D,{className:"footer-link",to:`${v.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,children:e("blocklet.dashboard")})})]})]})}function O({blocklet:e,launcherSession:s,manageSubscriptionURL:o}){const{t:r,locale:p}=M();if(!e||!s)return"";const l=he(e,s),d=ge(e,s);return!l&&!d?"":t.jsxs(t.Fragment,{children:[t.jsxs(c,{className:"title-box",children:[t.jsx(te,{className:"icon-error"}),t.jsxs(c,{className:"title error",children:[l&&r("blocklet.suspended"),d&&r("blocklet.terminated")]})]}),t.jsxs(c,{className:"sub-title",children:[l&&r("blocklet.suspendedCausedByExpired",{deadline:A(s==null?void 0:s.reservedUntil,p)}),d&&r("blocklet.suspendedCausedByTerminated",{canceledAt:A(s==null?void 0:s.terminatedAt,p),deadline:fe(s==null?void 0:s.terminatedAt,p)})]}),t.jsxs(c,{mt:8,children:[l&&t.jsx(S,{component:G,style:{minWidth:200},variant:"contained",color:"primary",size:"large",target:"_blank",href:o||"#",children:r("blocklet.manageSubscription")}),d&&t.jsx(S,{component:D,to:Y(v.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin/did-spaces"),style:{minWidth:200},variant:"contained",color:"primary",size:"large",children:r("common.backup")})]})]})}O.propTypes={blocklet:u.object.isRequired,launcherSession:u.object.isRequired,manageSubscriptionURL:u.string.isRequired};const we=Q`
|
|
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.43
|
|
6
|
+
"version": "1.16.43",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,17 +33,17 @@
|
|
|
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.43
|
|
37
|
-
"@abtnode/auth": "1.16.43
|
|
38
|
-
"@abtnode/client": "1.16.43
|
|
39
|
-
"@abtnode/connect-storage": "1.16.43
|
|
40
|
-
"@abtnode/constant": "1.16.43
|
|
41
|
-
"@abtnode/core": "1.16.43
|
|
42
|
-
"@abtnode/cron": "1.16.43
|
|
43
|
-
"@abtnode/logger": "1.16.43
|
|
44
|
-
"@abtnode/models": "1.16.43
|
|
45
|
-
"@abtnode/router-templates": "1.16.43
|
|
46
|
-
"@abtnode/util": "1.16.43
|
|
36
|
+
"@abtnode/analytics": "1.16.43",
|
|
37
|
+
"@abtnode/auth": "1.16.43",
|
|
38
|
+
"@abtnode/client": "1.16.43",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.43",
|
|
40
|
+
"@abtnode/constant": "1.16.43",
|
|
41
|
+
"@abtnode/core": "1.16.43",
|
|
42
|
+
"@abtnode/cron": "1.16.43",
|
|
43
|
+
"@abtnode/logger": "1.16.43",
|
|
44
|
+
"@abtnode/models": "1.16.43",
|
|
45
|
+
"@abtnode/router-templates": "1.16.43",
|
|
46
|
+
"@abtnode/util": "1.16.43",
|
|
47
47
|
"@arcblock/did": "1.20.8",
|
|
48
48
|
"@arcblock/did-auth": "1.20.8",
|
|
49
49
|
"@arcblock/did-ext": "1.20.8",
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"@arcblock/jwt": "1.20.8",
|
|
54
54
|
"@arcblock/validator": "1.20.8",
|
|
55
55
|
"@arcblock/ws": "1.20.8",
|
|
56
|
-
"@blocklet/constant": "1.16.43
|
|
56
|
+
"@blocklet/constant": "1.16.43",
|
|
57
57
|
"@blocklet/dbhub": "^0.2.9",
|
|
58
58
|
"@blocklet/did-space-js": "^1.0.51",
|
|
59
|
-
"@blocklet/env": "1.16.43
|
|
59
|
+
"@blocklet/env": "1.16.43",
|
|
60
60
|
"@blocklet/form-builder": "^0.1.11",
|
|
61
61
|
"@blocklet/form-collector": "^0.1.8",
|
|
62
|
-
"@blocklet/images": "1.16.43
|
|
63
|
-
"@blocklet/js-sdk": "1.16.43
|
|
62
|
+
"@blocklet/images": "1.16.43",
|
|
63
|
+
"@blocklet/js-sdk": "1.16.43",
|
|
64
64
|
"@blocklet/mcp": "^1.10.2",
|
|
65
|
-
"@blocklet/meta": "1.16.43
|
|
66
|
-
"@blocklet/sdk": "1.16.43
|
|
65
|
+
"@blocklet/meta": "1.16.43",
|
|
66
|
+
"@blocklet/sdk": "1.16.43",
|
|
67
67
|
"@blocklet/theme": "^2.13.26",
|
|
68
68
|
"@blocklet/theme-builder": "^0.1.15",
|
|
69
69
|
"@blocklet/uploader-server": "^0.1.97",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"whatwg-url": "14.0.0"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
|
-
"@abtnode/ux": "1.16.43
|
|
122
|
+
"@abtnode/ux": "1.16.43",
|
|
123
123
|
"@arcblock/bridge": "^2.13.26",
|
|
124
124
|
"@arcblock/did-connect": "^2.13.26",
|
|
125
125
|
"@arcblock/icons": "^2.13.26",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"@arcblock/ux": "^2.13.26",
|
|
128
128
|
"@blocklet/launcher-layout": "^2.13.26",
|
|
129
129
|
"@blocklet/payment-react": "^1.18.40",
|
|
130
|
-
"@blocklet/tracker": "1.16.43
|
|
130
|
+
"@blocklet/tracker": "1.16.43",
|
|
131
131
|
"@blocklet/ui-react": "^2.13.26",
|
|
132
132
|
"@blocklet/uploader": "^0.1.89",
|
|
133
133
|
"@emotion/react": "^11.11.4",
|
|
@@ -205,5 +205,5 @@
|
|
|
205
205
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
206
206
|
"email": "shijun@arcblock.io"
|
|
207
207
|
},
|
|
208
|
-
"gitHead": "
|
|
208
|
+
"gitHead": "f8fc3d8ca3f4ef070db03d60a51e85f9741d8e87"
|
|
209
209
|
}
|