@abtnode/blocklet-services 1.16.20-beta-e6e3b017 → 1.16.20-beta-955a3019
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-69c0fb05.js +1 -0
- package/dist/assets/Alert-02ca435f.js +1 -0
- package/dist/assets/ArrowDropDown-f3cb0e27.js +1 -0
- package/dist/assets/Avatar-6e72deed.js +1 -0
- package/dist/assets/ButtonGroup-417cd258.js +1 -0
- package/dist/assets/CardContent-4ed9bfeb.js +1 -0
- package/dist/assets/CheckCircle-9162d15d.js +1 -0
- package/dist/assets/Checkbox-0df1c6bb.js +1 -0
- package/dist/assets/ChevronRight-d52f2a24.js +1 -0
- package/dist/assets/DeleteOutline-fc84a592.js +1 -0
- package/dist/assets/DialogContentText-fd847cf2.js +1 -0
- package/dist/assets/Done-633700d4.js +1 -0
- package/dist/assets/Download-53cb5917.js +1 -0
- package/dist/assets/Edit-c20f95a3.js +1 -0
- package/dist/assets/EditIcon-ed8572fc.js +1 -0
- package/dist/assets/ExpandMore-e85e2c1b.js +1 -0
- package/dist/assets/FilterList-5f3e7cd7.js +25 -0
- package/dist/assets/FormControl-4663fc39.js +1 -0
- package/dist/assets/FormControlLabel-36106567.js +1 -0
- package/dist/assets/FormGroup-73c85d30.js +1 -0
- package/dist/assets/Google-5490be4d.js +27 -0
- package/dist/assets/Grid-92a29bd2.js +1 -0
- package/dist/assets/Hidden-a1b80e9e.js +1 -0
- package/dist/assets/Icon-e2e45bd0.js +1 -0
- package/dist/assets/InfoOutlined-356afd44.js +1 -0
- package/dist/assets/InputAdornment-079855b6.js +1 -0
- package/dist/assets/InputLabel-bed0dcd9.js +1 -0
- package/dist/assets/LastPage-acc850e1.js +1 -0
- package/dist/assets/Launch-945ebda1.js +1 -0
- package/dist/assets/LaunchOutlined-4e66073a.js +1 -0
- package/dist/assets/ListItem-eab030cb.js +1 -0
- package/dist/assets/LockIcon-9bf58065.js +1 -0
- package/dist/assets/Loop-e5f6bb77.js +1 -0
- package/dist/assets/MoreVert-33a00c4e.js +13 -0
- package/dist/assets/OpenInNew-bc4e70a9.js +1 -0
- package/dist/assets/PlayArrow-7f80f259.js +1 -0
- package/dist/assets/RadioGroup-2eec8d38.js +1 -0
- package/dist/assets/Search-6e324278.js +1 -0
- package/dist/assets/Select-2b1bccd7.js +2 -0
- package/dist/assets/ServerLogo-7dcf50f7.js +1 -0
- package/dist/assets/Slider-74a261a1.js +1 -0
- package/dist/assets/Stepper-8a24987d.js +1 -0
- package/dist/assets/Switch-67e84446.js +1 -0
- package/dist/assets/TableRow-7a66e978.js +2 -0
- package/dist/assets/TextField-96175e73.js +1 -0
- package/dist/assets/Toolbar-adb08177.js +1 -0
- package/dist/assets/access-control-444d2b90.js +13 -0
- package/dist/assets/actions-13b77828.js +1 -0
- package/dist/assets/add-component-core-b3eca6ba.js +938 -0
- package/dist/assets/add-component-core-d1824719.css +1 -0
- package/dist/assets/add-resource-e9ef4c9e.js +1 -0
- package/dist/assets/addon-827d09af.js +26 -0
- package/dist/assets/analytics-fa5d4b86.js +52 -0
- package/dist/assets/api-e3a99650.js +1 -0
- package/dist/assets/audit-logs-71685e49.css +1 -0
- package/dist/assets/audit-logs-81d51fb4.js +107 -0
- package/dist/assets/button-04bc9a77.js +1 -0
- package/dist/assets/click-to-copy-520fbd72.js +1 -0
- package/dist/assets/complete-91b799dc.js +45 -0
- package/dist/assets/component-6330236b.js +350 -0
- package/dist/assets/config-7c96a4e6.js +32 -0
- package/dist/assets/config-cdc97e9f.js +1 -0
- package/dist/assets/config-navigation-1d44ee61.js +259 -0
- package/dist/assets/confirm-e35699f4.js +7 -0
- package/dist/assets/connect-953df3a5.js +5 -0
- package/dist/assets/connect-b279fe98.js +1 -0
- package/dist/assets/content-layout-fc351aa4.js +43 -0
- package/dist/assets/dashboard-bec9ddd7.js +83 -0
- package/dist/assets/did-address-d1922407.js +1 -0
- package/dist/assets/did-utils-61a22d82.js +27 -0
- package/dist/assets/domain-42aecc86.js +8 -0
- package/dist/assets/domain-list-97733620.js +12 -0
- package/dist/assets/exchange-passport-cc02ca61.js +14 -0
- package/dist/assets/fallback-2685f1de.js +15 -0
- package/dist/assets/format-error-9c154a96.js +2 -0
- package/dist/assets/fuel-a36ea6d2.js +32 -0
- package/dist/assets/home-8b258120.js +1 -0
- package/dist/assets/iframe-ecb9ab39.js +1 -0
- package/dist/assets/index-0a15cbf4.js +126 -0
- package/dist/assets/index-0ad477bf.js +36 -0
- package/dist/assets/index-0b9a893b.js +1 -0
- package/dist/assets/index-14e0e238.js +1 -0
- package/dist/assets/index-2a8c564e.js +255 -0
- package/dist/assets/index-3032db6a.js +1743 -0
- package/dist/assets/index-32923761.js +1 -0
- package/dist/assets/index-3c5cb4c0.js +5 -0
- package/dist/assets/index-4888a390.js +1 -0
- package/dist/assets/index-4f2c3f65.js +16 -0
- package/dist/assets/index-501e8b9b.js +12 -0
- package/dist/assets/index-519e9ae7.js +554 -0
- package/dist/assets/index-5cf135cd.js +1 -0
- package/dist/assets/index-6c4c6f2a.js +2 -0
- package/dist/assets/index-7440d7e4.js +1 -0
- package/dist/assets/index-7d915162.js +414 -0
- package/dist/assets/index-8049dece.js +304 -0
- package/dist/assets/index-861c92a5.js +174 -0
- package/dist/assets/index-969247a1.js +33 -0
- package/dist/assets/index-99e98e9f.js +57 -0
- package/dist/assets/index-a8335229.js +1 -0
- package/dist/assets/index-abc04477.js +206 -0
- package/dist/assets/index-b2a236fd.js +1 -0
- package/dist/assets/index-be6d2140.js +1 -0
- package/dist/assets/index-cd7c729b.js +197 -0
- package/dist/assets/index-cdee7880.js +1 -0
- package/dist/assets/index-cf0d6f40.js +37 -0
- package/dist/assets/index-d8bbb108.css +1 -0
- package/dist/assets/index-e12891c5.js +54 -0
- package/dist/assets/index-eac0d35b.css +1 -0
- package/dist/assets/index.es-16657183.js +3 -0
- package/dist/assets/index.esm-ba6b97d8.js +1 -0
- package/dist/assets/invite-63024a8d.js +209 -0
- package/dist/assets/issue-passport-e2aca825.js +23 -0
- package/dist/assets/jss-plugin-props-sort.esm-c869dd35.js +14 -0
- package/dist/assets/lato-all-400-normal-8844f83a.woff +0 -0
- package/dist/assets/lato-all-700-normal-4bfd21d1.woff +0 -0
- package/dist/assets/lato-latin-400-normal-918b7dc3.woff2 +0 -0
- package/dist/assets/lato-latin-700-normal-c447dd76.woff2 +0 -0
- package/dist/assets/lato-latin-ext-400-normal-1c2fc265.woff2 +0 -0
- package/dist/assets/lato-latin-ext-700-normal-4ef7cd3d.woff2 +0 -0
- package/dist/assets/launch-result-message-0e3fdbf5.js +82 -0
- package/dist/assets/layout-5cbf6646.js +29 -0
- package/dist/assets/list-header-cec13a4e.js +57 -0
- package/dist/assets/localization-905a5214.js +1 -0
- package/dist/assets/log-27ad1df4.css +32 -0
- package/dist/assets/log-b5e5199b.js +94 -0
- package/dist/assets/login-199b44b5.js +1 -0
- package/dist/assets/logo-uploader-4a745e7d.js +121 -0
- package/dist/assets/lost-passport-6469c97d.js +163 -0
- package/dist/assets/lottie-4e5746c3.js +9 -0
- package/dist/assets/memoize-one.esm-e9515b35.js +1 -0
- package/dist/assets/nav-menu-97f51cf7.js +301 -0
- package/dist/assets/overview-9b2aa4f5.js +12 -0
- package/dist/assets/page-header-5c0a2996.js +31 -0
- package/dist/assets/permission-3cecede7.js +1 -0
- package/dist/assets/preact.module-c0a7ffab.js +1 -0
- package/dist/assets/preferences-74bee92a.js +1 -0
- package/dist/assets/publish-resource-619180c8.js +1 -0
- package/dist/assets/react-1ee50eda.css +9 -0
- package/dist/assets/react-1fe1a041.js +81 -0
- package/dist/assets/redux-87617816.js +1 -0
- package/dist/assets/selector-61f9cecf.js +45 -0
- package/dist/assets/session-f5eb6919.js +1 -0
- package/dist/assets/setup-83ada533.js +13 -0
- package/dist/assets/slicedToArray-f18ab518.js +2 -0
- package/dist/assets/spaces-5248a943.js +1 -0
- package/dist/assets/start-be4c6d35.js +186 -0
- package/dist/assets/step-actions-248b0a6b.js +31 -0
- package/dist/assets/studio-aa91be60.js +6 -0
- package/dist/assets/switch-control-cf05f02f.js +13 -0
- package/dist/assets/toPropertyKey-148bb9ef.js +1 -0
- package/dist/assets/transfer-e388b82d.js +16 -0
- package/dist/assets/ubuntu-mono-all-400-normal-f4a8f91f.woff +0 -0
- package/dist/assets/ubuntu-mono-cyrillic-400-normal-b958f4d0.woff2 +0 -0
- package/dist/assets/ubuntu-mono-cyrillic-ext-400-normal-fcf55b87.woff2 +0 -0
- package/dist/assets/ubuntu-mono-greek-400-normal-6799188f.woff2 +0 -0
- package/dist/assets/ubuntu-mono-greek-ext-400-normal-8b0abaf5.woff2 +0 -0
- package/dist/assets/ubuntu-mono-latin-400-normal-b07e4ebe.woff2 +0 -0
- package/dist/assets/ubuntu-mono-latin-ext-400-normal-1fe80c26.woff2 +0 -0
- package/dist/assets/uniqBy-cc013d52.js +1 -0
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-9e45dd7c.js +1 -0
- package/dist/assets/use-passport-id-7bbe3403.js +1 -0
- package/dist/assets/useAsync-a7d3bc2b.js +1 -0
- package/dist/assets/useAsyncRetry-b5b314a6.js +7 -0
- package/dist/assets/useFormControl-9ab318bf.js +1 -0
- package/dist/assets/useLocalStorage-a92ccca3.js +1 -0
- package/dist/assets/useSetState-aaef0d6e.js +1 -0
- package/dist/assets/user-375fb9e6.js +22 -0
- package/dist/assets/util-b9e43cfc.js +1 -0
- package/dist/assets/wallet-hidden-topbar-a5a307e1.js +11 -0
- package/dist/assets/wrap-locale-eb857a5c.js +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/images/blocklet.png +0 -0
- package/dist/images/https-certificate-icon.png +0 -0
- package/dist/images/logo.png +0 -0
- package/dist/index.html +27 -0
- package/dist/router-template-styles/fonts/lato-latin-400-normal.woff +0 -0
- package/dist/router-template-styles/fonts/lato-latin-400-normal.woff2 +0 -0
- package/dist/router-template-styles/fonts/lato-latin-ext-400-normal.woff +0 -0
- package/dist/router-template-styles/fonts/lato-latin-ext-400-normal.woff2 +0 -0
- package/dist/router-template-styles/styles.css +26 -0
- package/dist/service-worker.js +2 -0
- package/package.json +19 -18
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{aj as w,j as e,d as T,ao as N,S as _,u as S,bk as B,bl as H,n as C,T as d,G as b,bm as U,aY as O,as as W,bn as D,e as q,bj as G,J as $,X as K,B as E,ba as X,bo as M,bp as R,w as I,N as Y,y as J,K as Q}from"./index-3032db6a.js";import{H as Z}from"./index-969247a1.js";import{I as z}from"./index-0ad477bf.js";import{T as ee}from"./index-32923761.js";import{W as te}from"./did-address-d1922407.js";import{g as se,U as ne,P as oe}from"./did-utils-61a22d82.js";import{i as ae}from"./index-7440d7e4.js";import{u as re,a as ie,C as y}from"./index.esm-ba6b97d8.js";import{A as le}from"./Alert-02ca435f.js";import{f as V}from"./format-error-9c154a96.js";import{S as l,F as k}from"./FormControlLabel-36106567.js";import{C as A}from"./Checkbox-0df1c6bb.js";import{S as ce}from"./Select-2b1bccd7.js";import{T as me}from"./TextField-96175e73.js";import{M as de}from"./InputAdornment-079855b6.js";import{A as pe}from"./Avatar-6e72deed.js";import"./fallback-2685f1de.js";import"./nav-menu-97f51cf7.js";import"./ExpandMore-e85e2c1b.js";import"./wallet-hidden-topbar-a5a307e1.js";import"./selector-61f9cecf.js";import"./useFormControl-9ab318bf.js";import"./FormControl-4663fc39.js";import"./InputLabel-bed0dcd9.js";const ue=w(e.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"AddOutlined"),he=w(e.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined"),xe=w(e.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5l-8-3zm6 9.09c0 4-2.55 7.7-6 8.83-3.45-1.13-6-4.82-6-8.83V6.31l6-2.12 6 2.12v4.78zm-9.18-.5L7.4 12l3.54 3.54 5.66-5.66-1.41-1.41-4.24 4.24-2.13-2.12z"}),"GppGoodOutlined"),ge=w(e.jsx("path",{d:"m4.01 6.03 7.51 3.22-7.52-1 .01-2.22m7.5 8.72L4 17.97v-2.22l7.51-1M2.01 3 2 10l15 2-15 2 .01 7L23 12 2.01 3z"}),"SendOutlined");function je({data:s,user:n,onChange:i}){const{t}=S(),{api:a}=T(),[o,p]=B({editing:!1,dirty:!1}),{control:h,getValues:j,setValue:m,formState:x,handleSubmit:P}=re({defaultValues:H({notifications:{email:!0,wallet:!0,phone:!1},webhooks:[]},s)}),g=ie({control:h,name:"webhooks"}),f=P(async r=>{try{await a.post("/api/user/extra",r),C.success(t("common.saveSuccess")),p({editing:!1}),await i()}catch(c){C.error(V(c))}}),F=async r=>{try{const c=j();await a.put("/api/user/extra",c.webhooks[r]),C.success(t("team.member.settings.tested"))}catch(c){C.error(V(c))}};return e.jsxs(l,{spacing:3,children:[e.jsxs(l,{sx:{width:"100%"},children:[e.jsxs(l,{direction:"row",justifyContent:"space-between",children:[e.jsx(d,{variant:"h6",gutterBottom:!0,children:t("team.member.settings.notification")}),e.jsx(b,{variant:"contained",size:"small",color:"primary",style:{height:"32px"},onClick:f,disabled:x.isSubmitting,children:t("common.save")})]}),e.jsx(y,{name:"notifications.wallet",control:h,render:({field:r})=>e.jsx(k,{control:e.jsx(A,{checked:j().notifications.wallet,...r,onChange:(c,u)=>m(r.name,u)}),disableTypography:!0,label:e.jsxs(d,{color:"text.primary",children:[t("team.member.settings.wallet"),e.jsx(d,{component:"span",color:"text.secondary",ml:1,children:se(n)})]})})}),e.jsx(y,{name:"notifications.email",control:h,render:({field:r})=>e.jsx(k,{control:e.jsx(A,{checked:j().notifications.email,...r,onChange:(c,u)=>m(r.name,u)}),disableTypography:!0,label:e.jsxs(d,{color:"text.primary",children:[t("team.member.settings.email"),e.jsx(d,{component:"span",color:"text.secondary",ml:1,children:n.email||""})]})})}),e.jsx(y,{name:"notifications.phone",control:h,render:({field:r})=>e.jsx(k,{control:e.jsx(A,{checked:j().notifications.phone,...r,onChange:(c,u)=>m(r.name,u)}),disableTypography:!0,disabled:!0,label:e.jsxs(d,{color:"text.primary",children:[t("team.member.settings.phone"),e.jsx(d,{component:"span",color:"text.secondary",ml:1,children:n.phone||""})]})})})]}),e.jsxs(l,{children:[e.jsxs(l,{direction:"row",justifyContent:"space-between",children:[e.jsx(d,{variant:"h6",gutterBottom:!0,children:t("team.member.settings.webhook")}),e.jsxs(l,{direction:"row",children:[o.editing&&e.jsx(b,{variant:"text",size:"small",color:"primary",style:{height:"32px"},onClick:()=>p({editing:!1}),children:t("common.cancel")}),e.jsx(b,{variant:"contained",size:"small",color:"primary",style:{height:"32px"},onClick:o.editing?f:()=>p({editing:!0}),disabled:x.isSubmitting,children:o.editing?t("common.save"):t("common.edit")})]})]}),g.fields.map((r,c)=>{var L;const u=(L=U(x.errors,`webhooks.${c}.url`))==null?void 0:L.message;return o.editing?e.jsxs(l,{mt:2,spacing:2,sx:{width:"100%"},direction:"row",alignItems:"center",children:[e.jsxs(l,{direction:"row",spacing:2,sx:{width:"80%"},children:[e.jsx(y,{name:`webhooks.${c}.type`,control:h,rules:{required:t("common.required")},render:({field:v})=>e.jsxs(ce,{...v,sx:{flex:1},fullWidth:!0,size:"small",children:[e.jsx(O,{value:"api",children:t("team.member.settings.url")}),e.jsx(O,{value:"slack",children:t("team.member.settings.slack")})]})}),e.jsx(y,{name:`webhooks.${c}.url`,control:h,rules:{required:t("common.required"),validate:v=>ae(v)||t("common.invalid")},render:({field:v})=>e.jsx(me,{sx:{flex:4},fullWidth:!0,size:"small",required:!0,...v,error:!!u,InputProps:{endAdornment:u?e.jsx(de,{position:"end",children:e.jsx(d,{component:"span",color:"error",children:u})}):null}})})]}),e.jsxs(l,{direction:"row",spacing:1,children:[e.jsx(W,{size:"small",onClick:()=>F(c),children:e.jsx(ge,{color:"primary",sx:{opacity:.75}})}),e.jsx(W,{size:"small",onClick:()=>g.remove(c),children:e.jsx(he,{color:"error",sx:{opacity:.75}})})]})]},r.id):e.jsx(z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:r.type,children:r.url},r.id)}),!o.editing&&!g.fields.length&&e.jsx(D,{children:t("common.empty")}),o.editing&&e.jsx(l,{mt:g.fields.length?2:1,direction:"row",justifyContent:"space-between",children:e.jsxs(b,{size:"small",variant:"outlined",color:"primary",onClick:()=>g.append({type:"slack",url:""}),children:[e.jsx(ue,{fontSize:"small"})," ",t("team.member.settings.add")]})})]})]})}function be({user:s}){const{api:n}=T(),{loading:i,error:t,runAsync:a,data:o}=N(()=>n.get("/api/user/extra").then(p=>p.data));return t?e.jsx(le,{severity:"error",children:t.message}):i||!o?e.jsx(_,{}):e.jsx(je,{data:o,user:s,onChange:a})}function fe({user:s}){const{t:n,locale:i}=S(),t={auth0:"Auth0",wallet:"DID wallet",federated:"Federated"};return[{name:n("team.member.name"),value:s.fullName},{name:n("common.email"),value:s.email},{name:n("common.phone"),value:s.phone},{name:n("team.member.lastLogin"),value:R(s.lastLoginAt,i)},{name:n("team.member.lastLoginIp"),value:s.lastLoginIp||""},{name:n("common.createdAt"),value:R(s.createdAt,i)},{name:n("team.member.source"),value:t[(s==null?void 0:s.sourceProvider)||I.USER_TYPE.WALLET]||(s==null?void 0:s.sourceProvider)}].filter(Boolean).map(o=>o.name===n("common.did")?e.jsx(z,{valueComponent:"div",nameWidth:120,name:o.name,nameFormatter:()=>n("common.did"),children:o.value},o.name):e.jsx(z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:o.name,children:o.value},o.name))}function ve({user:s}){const{t:n}=S(),i=(U(s,"passports")||[]).map(t=>({...t,revoked:t.status===I.PASSPORT_STATUS.REVOKED}));return i.length===0?e.jsx(D,{children:n("common.empty")}):e.jsx(l,{direction:"row",spacing:3,children:i.map(t=>e.jsx(oe,{passport:t,user:s,width:200,color:window.blocklet.passportColor,createPassportSvg:Y,sx:{flexDirection:"column",alignItems:"center"}},t.id))})}function Ge(){const s=q(),n=G(),{t:i}=S(),{session:t}=T(),a=$({user:t.user,tab:n.tab||"profile"}),o=m=>{a.tab=m,s(`${I.WELLKNOWN_SERVICE_PATH_PREFIX}/user/${m}`)},p={info:{label:i("common.profile"),value:"profile",component:fe},oauth:{label:i("team.member.connections"),value:"connections",component:ne},passports:{label:i("team.member.passports"),value:"passports",component:ve},settings:{label:i("common.setting"),value:"settings",component:be}},h=Object.values(p).map(({label:m,value:x})=>({label:m,value:x})).filter(m=>{var x;return m.value==="connections"?(((x=a.user)==null?void 0:x.connectedAccounts)||[]).find(g=>{var f;return g.provider!==(((f=a.user)==null?void 0:f.sourceProvider)||K.LOGIN_PROVIDER.WALLET)}):!0}),j=p[a.tab]||p.info;return e.jsxs(e.Fragment,{children:[e.jsx(Z,{}),e.jsxs(ye,{sx:{mt:4},children:[e.jsxs(l,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[e.jsxs(l,{direction:"row",spacing:1,alignItems:"center",children:[e.jsx(pe,{src:a.user.avatar,variant:"rounded",style:{width:80,height:80,backgroundColor:"transparent",marginRight:8}}),e.jsxs(l,{direction:"column",spacing:.5,children:[e.jsx(d,{variant:"h4",fontWeight:"bold",children:a.user.fullName}),e.jsx(E,{children:e.jsx(X,{label:a.user.role.toUpperCase(),size:"small",variant:"outlined",color:"success",sx:{height:"auto",fontWeight:"bold",fontSize:"12px"},icon:e.jsx(xe,{sx:{fontSize:"0.8em"}})})}),e.jsx(te,{did:a.user.did})]})]}),e.jsxs(l,{children:[a.tab==="profile"&&e.jsx(b,{variant:"contained",size:"small",color:"primary",onClick:()=>t.switchProfile(M,{}),children:i("team.member.switch.profile")}),a.tab==="passports"&&e.jsx(b,{variant:"contained",size:"small",color:"primary",onClick:()=>t.switchPassport(M,{}),children:i("team.member.switch.passport")})]})]}),e.jsx(E,{className:"tabs",sx:{my:3},children:e.jsx(ee,{tabs:h,current:a.tab,onChange:o})}),e.jsx("div",{className:"body",children:e.jsx(j.component,{user:a.user})})]})]})}const ye=J(Q)`
|
|
2
|
+
.MuiTab-root {
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin-right: 24px;
|
|
5
|
+
min-height: 32px;
|
|
6
|
+
min-width: auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.MuiTabs-root {
|
|
10
|
+
min-height: 32px;
|
|
11
|
+
margin-bottom: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.MuiTabs-scroller {
|
|
15
|
+
border-bottom: 1px solid #eee;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.MuiCheckbox-root {
|
|
19
|
+
padding-top: 2px;
|
|
20
|
+
padding-bottom: 2px;
|
|
21
|
+
}
|
|
22
|
+
`;export{ve as UserPassports,fe as UserProfile,Ge as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aN as l,e4 as s,e5 as h,X as P,w as u}from"./index-3032db6a.js";const d=s;var c=(e,r)=>d(e)===d(r);const E=l(c),x=(e,r)=>{if(e.type===u.ROUTING_RULE_TYPES.REDIRECT){if(!e.url)return new Error(`${r("router.validation.redirectUrlRequired")}`);if(!e.redirectCode)return new Error(`redirect ${r("router.validation.redirectCodeRequired")}`)}else if(e.type===u.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(r("router.validation.didRequired"));return null},R=(e,r)=>{const t=x(e,r);return t||(e.pathPrefix.length?e.pathPrefix.length>150?new Error(r("router.validation.pathPrefixTooLong",{length:150})):null:new Error(r("router.validation.pathPrefixCannotBeEmpty")))},v=({params:e,blocklets:r,blocklet:t,locale:o="en"})=>{if(t){let i=(t.children||[]).find(f=>h(f.meta)&&E(f.mountPoint,e.pathPrefix));if(t.meta.group!=="gateway"&&e.pathPrefix==="/"&&(i="/"),i)return{zh:`挂载点 ${e.pathPrefix} 已存在,请使用其他挂载点`,en:`The mount point ${e.pathPrefix} already exist, please use another mount point`}[o]}const a=r.find(i=>i.meta.did===e.did);if(!a)return"";const n=a.meta.interfaces.find(i=>i.type==="web");return n&&n.prefix!==P.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==n.prefix?{zh:`该 blocklet 只能挂载在 ${n.prefix}`,en:`This blocklet can only be mounted on ${n.prefix}`}[o]:""},T=e=>{if(!e||typeof e!="string")return e;let r=e.trim();try{return r=r.toLowerCase(),r.startsWith("http://")||r.startsWith("https://")?new URL(r).hostname:r}catch(t){return console.error("format domain failed",t),r}};export{R as a,T as p,v};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var ne=Object.defineProperty;var oe=(t,e,n)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var R=(t,e,n)=>(oe(t,typeof e!="symbol"?e+"":e,n),n);import{P as f,r as Z,b8 as re,u as se,j as F,at as ie,_ as ce,M as ae}from"./index-3032db6a.js";import{L as ue}from"./selector-61f9cecf.js";/**
|
|
2
|
+
* (c) Iconify
|
|
3
|
+
*
|
|
4
|
+
* For the full copyright and license information, please view the license.txt
|
|
5
|
+
* files at https://github.com/iconify/iconify
|
|
6
|
+
*
|
|
7
|
+
* Licensed under MIT.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
* @version 1.0.8
|
|
11
|
+
*/const Et=Object.freeze({left:0,top:0,width:16,height:16}),Q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),L=Object.freeze({...Et,...Q}),K=Object.freeze({...L,body:"",hidden:!1}),le=Object.freeze({width:null,height:null}),Lt=Object.freeze({...le,...Q});function fe(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return e}const de=/[\s,]+/;function he(t,e){e.split(de).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const Mt={...Lt,preserveAspectRatio:""};function ht(t){const e={...Mt},n=(r,o)=>t.getAttribute(r)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=fe(n("rotate","")),he(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function pe(t,e){for(const n in Mt)if(t[n]!==e[n])return!0;return!1}const k=/^[a-z0-9]+(-[a-z0-9]+)*$/,M=(t,e,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return e&&!z(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return e&&!z(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return e&&!z(a,n)?null:a}return null},z=(t,e)=>t?!!((t.provider===""||t.provider.match(k))&&(e&&t.prefix===""||t.prefix.match(k))&&t.name.match(k)):!1;function ge(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function pt(t,e){const n=ge(t,e);for(const r in K)r in Q?r in t&&!(r in n)&&(n[r]=Q[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function me(t,e){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function ye(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let s={};function i(a){s=pt(r[a]||o[a],s)}return i(e),n.forEach(i),pt(t,s)}function Nt(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const r=me(t);for(const o in r){const s=r[o];s&&(e(o,ye(t,o,s)),n.push(o))}return n}const be={provider:"",aliases:{},not_found:{},...Et};function G(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Rt(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!G(t,be))return null;const n=e.icons;for(const o in n){const s=n[o];if(!o.match(k)||typeof s.body!="string"||!G(s,K))return null}const r=e.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(k)||typeof i!="string"||!n[i]&&!r[i]||!G(s,K))return null}return e}const $=Object.create(null);function we(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function S(t,e){const n=$[t]||($[t]=Object.create(null));return n[e]||(n[e]=we(t,e))}function ct(t,e){return Rt(e)?Nt(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function Ie(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function xe(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys($)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys($[o]||{})).forEach(i=>{const a=S(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let _=!1;function Ft(t){return typeof t=="boolean"&&(_=t),_}function O(t){const e=typeof t=="string"?M(t,!0,_):t;if(e){const n=S(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Dt(t,e){const n=M(t,!0,_);if(!n)return!1;const r=S(n.provider,n.prefix);return Ie(r,n.name,e)}function gt(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),_&&!e&&!t.prefix){let o=!1;return Rt(t)&&(t.prefix="",Nt(t,(s,i)=>{i&&Dt(s,i)&&(o=!0)})),o}const n=t.prefix;if(!z({provider:e,prefix:n,name:"a"}))return!1;const r=S(e,n);return!!ct(r,t)}function Se(t){return!!O(t)}function Ce(t){const e=O(t);return e?{...L,...e}:null}function Ae(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),u=c[i]||(c[i]=S(s,i));let l;a in u.icons?l=e.loaded:i===""||u.missing.has(a)?l=e.missing:l=e.pending;const d={provider:s,prefix:i,name:a};l.push(d)}),e}function zt(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==e))})}function ve(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,o=t.prefix;e.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(t.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(t.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||zt([t],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Pe=0;function Te(t,e,n){const r=Pe++,o=zt.bind(null,n,r);if(!e.pending.length)return o;const s={id:r,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const tt=Object.create(null);function mt(t,e){tt[t]=e}function et(t){return tt[t]||tt[""]}function ke(t,e=!0,n=!1){const r=[];return t.forEach(o=>{const s=typeof o=="string"?M(o,e,n):o;s&&r.push(s)}),r}var je={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function _e(t,e,n,r){const o=t.resources.length,s=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let p=t.resources.slice(0);for(i=[];p.length>1;){const I=Math.floor(Math.random()*p.length);i.push(p[I]),p=p.slice(0,I).concat(p.slice(I+1))}i=i.concat(p)}else i=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let c="pending",u=0,l,d=null,h=[],m=[];typeof r=="function"&&m.push(r);function y(){d&&(clearTimeout(d),d=null)}function b(){c==="pending"&&(c="aborted"),y(),h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function x(p,I){I&&(m=[]),typeof p=="function"&&m.push(p)}function C(){return{startTime:a,payload:e,status:c,queriesSent:u,queriesPending:h.length,subscribe:x,abort:b}}function w(){c="failed",m.forEach(p=>{p(void 0,l)})}function g(){h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function ee(p,I,P){const N=I!=="success";switch(h=h.filter(A=>A!==p),c){case"pending":break;case"failed":if(N||!t.dataAfterTimeout)return;break;default:return}if(I==="abort"){l=P,w();return}if(N){l=P,h.length||(i.length?W():w());return}if(y(),g(),!t.random){const A=t.resources.indexOf(p.resource);A!==-1&&A!==t.index&&(t.index=A)}c="completed",m.forEach(A=>{A(P)})}function W(){if(c!=="pending")return;y();const p=i.shift();if(p===void 0){if(h.length){d=setTimeout(()=>{y(),c==="pending"&&(g(),w())},t.timeout);return}w();return}const I={status:"pending",resource:p,callback:(P,N)=>{ee(I,P,N)}};h.push(I),u++,d=setTimeout(W,t.rotate),n(p,e,I.callback)}return setTimeout(W),C}function Ht(t){const e={...je,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,u){const l=_e(e,a,c,(d,h)=>{r(),u&&u(d,h)});return n.push(l),l}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:r}}function at(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const q=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],H=[];for(;T.length>0;)T.length===1||Math.random()>.5?H.push(T.shift()):H.push(T.pop());q[""]=at({resources:["https://api.iconify.design"].concat(H)});function yt(t,e){const n=at(e);return n===null?!1:(q[t]=n,!0)}function V(t){return q[t]}function Oe(){return Object.keys(q)}function bt(){}const J=Object.create(null);function Ee(t){if(!J[t]){const e=V(t);if(!e)return;const n=Ht(e),r={config:e,redundancy:n};J[t]=r}return J[t]}function Qt(t,e,n){let r,o;if(typeof t=="string"){const s=et(t);if(!s)return n(void 0,424),bt;o=s.send;const i=Ee(t);i&&(r=i.redundancy)}else{const s=at(t);if(s){r=Ht(s);const i=t.resources?t.resources[0]:"",a=et(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),bt):r.query(e,o,n)().abort}const wt="iconify2",E="iconify",$t=E+"-count",It=E+"-version",Ut=36e5,Le=168;function nt(t,e){try{return t.getItem(e)}catch{}}function ut(t,e,n){try{return t.setItem(e,n),!0}catch{}}function xt(t,e){try{t.removeItem(e)}catch{}}function ot(t,e){return ut(t,$t,e.toString())}function rt(t){return parseInt(nt(t,$t))||0}const v={local:!0,session:!0},qt={local:new Set,session:new Set};let lt=!1;function Me(t){lt=t}let D=typeof window>"u"?{}:window;function Vt(t){const e=t+"Storage";try{if(D&&D[e]&&typeof D[e].length=="number")return D[e]}catch{}v[t]=!1}function Bt(t,e){const n=Vt(t);if(!n)return;const r=nt(n,It);if(r!==wt){if(r){const a=rt(n);for(let c=0;c<a;c++)xt(n,E+c.toString())}ut(n,It,wt),ot(n,0);return}const o=Math.floor(Date.now()/Ut)-Le,s=a=>{const c=E+a.toString(),u=nt(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&e(l,a))return!0}catch{}xt(n,c)}};let i=rt(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ot(n,i)):qt[t].add(a))}function Wt(){if(!lt){Me(!0);for(const t in v)Bt(t,e=>{const n=e.data,r=e.provider,o=n.prefix,s=S(r,o);if(!ct(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Ne(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in v)Bt(r,o=>{const s=o.data;return o.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===e});return!0}function Re(t,e){lt||Wt();function n(r){let o;if(!v[r]||!(o=Vt(r)))return;const s=qt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=rt(o),!ot(o,i+1))return;const a={cached:Math.floor(Date.now()/Ut),provider:t.provider,data:e};return ut(o,E+i.toString(),JSON.stringify(a))}e.lastModified&&!Ne(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function St(){}function Fe(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,ve(t)}))}function De(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let s;if(!o||!(s=et(n)))return;s.prepare(n,r,o).forEach(a=>{Qt(n,a,c=>{if(typeof c!="object")a.icons.forEach(u=>{t.missing.add(u)});else try{const u=ct(t,c);if(!u.length)return;const l=t.pendingIcons;l&&u.forEach(d=>{l.delete(d)}),Re(t,c)}catch(u){console.error(u)}Fe(t)})})}))}const ft=(t,e)=>{const n=ke(t,!0,Ft()),r=Ae(n);if(!r.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(r.loaded,r.missing,r.pending,St)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===a&&u===i)return;i=u,a=l,s.push(S(u,l));const d=o[u]||(o[u]=Object.create(null));d[l]||(d[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:d}=c,h=S(u,l),m=h.pendingIcons||(h.pendingIcons=new Set);m.has(d)||(m.add(d),o[u][l].push(d))}),s.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&De(c,o[u][l])}),e?Te(e,r,s):St},ze=t=>new Promise((e,n)=>{const r=typeof t=="string"?M(t,!0):t;if(!r){n(t);return}ft([r||t],o=>{if(o.length&&r){const s=O(r);if(s){e({...L,...s});return}}n(t)})});function He(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function Qe(t,e){const n=typeof t=="string"?M(t,!0,!0):null;if(!n){const s=He(t);return{value:t,data:s}}const r=O(n);if(r!==void 0||!n.prefix)return{value:t,name:n,data:r};const o=ft([n],()=>e(t,n,O(n)));return{value:t,name:n,loading:o}}function X(t){return t.hasAttribute("inline")}let Gt=!1;try{Gt=navigator.vendor.indexOf("Apple")===0}catch{}function $e(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Gt||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const Ue=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function st(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(Ue);if(r===null||!r.length)return t;const o=[];let s=r.shift(),i=qe.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*e*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Ve=t=>t==="unset"||t==="undefined"||t==="none";function Jt(t,e){const n={...L,...t},r={...Lt,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(y=>{const b=[],x=y.hFlip,C=y.vFlip;let w=y.rotate;x?C?w+=2:(b.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),b.push("scale(-1 1)"),o.top=o.left=0):C&&(b.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),b.push("scale(1 -1)"),o.top=o.left=0);let g;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:g=o.height/2+o.top,b.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:b.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:g=o.width/2+o.left,b.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}w%2===1&&(o.left!==o.top&&(g=o.left,o.left=o.top,o.top=g),o.width!==o.height&&(g=o.width,o.width=o.height,o.height=g)),b.length&&(s='<g transform="'+b.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,u=o.height;let l,d;i===null?(d=a===null?"1em":a==="auto"?u:a,l=st(d,c/u)):(l=i==="auto"?c:i,d=a===null?st(l,u/c):a==="auto"?u:a);const h={},m=(y,b)=>{Ve(b)||(h[y]=b.toString())};return m("width",l),m("height",d),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:s}}const Be=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let U=Be();function We(t){U=t}function Ge(){return U}function Je(t,e){const n=V(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=e+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Xe(t){return t===404}const Ye=(t,e,n)=>{const r=[],o=Je(t,e),s="icons";let i={type:s,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,u)=>{a+=c.length+1,a>=o&&u>0&&(r.push(i),i={type:s,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Ze(t){if(typeof t=="string"){const e=V(t);if(e)return e.path}return"/"}const Ke=(t,e,n)=>{if(!U){n("abort",424);return}let r=Ze(e.provider);switch(e.type){case"icons":{const s=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=e.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;U(t+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Xe(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},tn={prepare:Ye,send:Ke};function Ct(t,e){switch(t){case"local":case"session":v[t]=e;break;case"all":for(const n in v)v[n]=e;break}}const Y="data-style";let Xt="";function en(t){Xt=t}function At(t,e){let n=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Y));n||(n=document.createElement("style"),n.setAttribute(Y,Y),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Xt}function Yt(){mt("",tn),Ft(!0);let t;try{t=window}catch{}if(t){if(Wt(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!gt(o))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;yt(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ct(n,!0),disableCache:n=>Ct(n,!1),iconExists:Se,getIcon:Ce,listIcons:xe,addIcon:Dt,addCollection:gt,calculateSize:st,buildIcon:Jt,loadIcons:ft,loadIcon:ze,addAPIProvider:yt,appendCustomStyle:en,_api:{getAPIConfig:V,setAPIModule:mt,sendAPIQuery:Qt,setFetch:We,getFetch:Ge,listAPIProviders:Oe}}}function Zt(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function nn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function on(t){return"data:image/svg+xml,"+nn(t)}function rn(t){return'url("'+on(t)+'")'}const it={"background-color":"currentColor"},Kt={"background-color":"transparent"},vt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Pt={"-webkit-mask":it,mask:it,background:Kt};for(const t in Pt){const e=Pt[t];for(const n in vt)e[t+"-"+n]=vt[n]}function Tt(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function sn(t,e,n){const r=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=t.attributes,i=Zt(o,{...s,width:e.width+"",height:e.height+""}),a=rn(i),c=r.style,u={"--svg":a,width:Tt(s.width),height:Tt(s.height),...n?it:Kt};for(const l in u)c.setProperty(l,u[l]);return r}let j;function cn(){try{j=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{j=null}}function an(t){return j===void 0&&cn(),j?j.createHTML(t):t}function un(t){const e=document.createElement("span"),n=t.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Zt(t.body,n);return e.innerHTML=an(o),e.firstChild}function kt(t,e){const n=e.icon.data,r=e.customisations,o=Jt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=e.renderedMode;let i;switch(s){case"svg":i=un(o);break;default:i=sn(o,{...L,...n},s==="mask")}const a=Array.from(t.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function jt(t,e,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:r}}function ln(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const r=e.get(t);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();R(this,"_shadowRoot");R(this,"_state");R(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),u=X(this);At(c,u),this._state=jt({value:""},u),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const u=X(this),l=this._state;u!==l.inline&&(l.inline=u,At(this._shadowRoot,u))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return X(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const u=this._shadowRoot;if(c.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}kt(u,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,u=this.getAttribute("icon");if(u!==c.icon.value){this._iconChanged(u);return}if(!c.rendered)return;const l=this.getAttribute("mode"),d=ht(this);(c.attrMode!==l||pe(c.customisations,d))&&this._renderIcon(c.icon,d,l)}_iconChanged(c){const u=Qe(c,(l,d,h)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==l)return;const y={value:l,name:d,data:h};y.data?this._gotIconData(y):m.icon=y});u.data?this._gotIconData(u):this._state=jt(u,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,ht(this),this.getAttribute("mode"))}_renderIcon(c,u,l){const d=$e(c.data.body,l),h=this._state.inline;kt(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:u,attrMode:l,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Yt();for(const a in i)s[a]=s.prototype[a]=i[a];return e.define(t,s),s}ln()||Yt();const Cn=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),fn=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),B=(t,e,n="children")=>t.map(r=>Array.isArray(r[n])?e({...r,[n]:B(r[n],e,n)}):e(r)),An=(t,e="children")=>{const n=[];return B(t,r=>n.push(r),e),n},dt=(t,e,n="children")=>t.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=dt(o,e,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return e(r,s)}),dn=t=>/^https?:\/\//.test(t),vn=t=>/^[\w-]+:[\w-]+$/.test(t),hn=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const e=o=>o.endsWith("/")?o:`${o}/`,n=e(window.location.pathname),r=e(new URL(t,window.location.origin).pathname);return n.startsWith(r)},Pn=(t=[])=>{const e=t.map((r,o)=>({path:r,index:o})).filter(r=>hn(r.path));return e!=null&&e.length?e.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,e[0]).index:-1};var _t,Ot;const Tn=((_t=window==null?void 0:window.blocklet)==null?void 0:_t.groupPrefix)||((Ot=window==null?void 0:window.blocklet)==null?void 0:Ot.prefix)||"/",pn=t=>{const e={...t},n=t==null?void 0:t.background;return typeof n=="string"?e.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(e.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),e},gn=(t,e="en")=>{if(!(t!=null&&t.length))return t;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(dn(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return B(t,o=>{var s;return{...o,title:n(o.title,e),link:(s=o.items)!=null&&s.length?o.link:r(o.link,e)}},"items")},mn=t=>B(t,e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e,"items"),yn=t=>{if(!(t!=null&&t.length))return null;const e=mn(t),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[]};return e.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},kn=t=>{if(!t)return null;const e={...t};return e.theme=pn(e.theme),e.navigation=yn(bn(e.navigation)),e},bn=(t=[])=>dt(t,(e,n)=>{var r;return!!e.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),wn=(t,e)=>dt(t,(n,r)=>{var s;const o=!n.role||e&&n.role.includes(e);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items");function te({formattedBlocklet:t,addons:e,sessionManagerProps:n}){var h,m,y,b;const r=Z.useContext(re),{locale:o}=se()||{},{enableConnect:s=!0,enableLocale:i=!0}=t,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=gn((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,o)||[];c=wn(c,(b=(y=r==null?void 0:r.session)==null?void 0:y.user)==null?void 0:b.role);const l=(()=>{if(e&&typeof e!="function")return Array.isArray(e)?e:[e];let x=[];if(i&&o&&x.push(F.jsx(ue,{showText:!1},"locale-selector")),s&&r){const C=[];a&&(c?c.slice(0,5):[]).forEach(g=>{C.push({label:g.title,icon:g.icon?F.jsx("iconify-icon",{icon:g.icon,height:24,style:{marginRight:8}}):null,component:"a",href:g.link,key:g.link})}),x.push(F.jsx(ie,{session:r.session,locale:o,menu:C,showRole:!0,...n},"session-manager"))}return typeof e=="function"&&(x=e(x)||[]),x})();return Z.createElement(F.Fragment,null,...Array.isArray(l)?l:[l])}te.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:fn};te.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const jn=()=>{const t=ce();Z.useEffect(()=>{t.wallet&&ae(()=>import("./index-cdee7880.js").then(e=>e.i),["assets/index-cdee7880.js","assets/index-3032db6a.js","assets/index-d8bbb108.css"]).then(e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")}).catch(e=>{console.error("load dsbridge error",e)})},[t])};export{te as H,wn as a,Cn as b,An as c,Pn as d,vn as e,kn as f,gn as g,dn as i,B as m,Tn as p,fn as s,jn as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as r,aq as o}from"./index-3032db6a.js";const e=require("flat"),s=require("./en"),a=require("./zh"),i={zh:e(a),en:e(s)};function l(n){return function(t){return r.jsx(o,{translations:i,children:r.jsx(n,{...t})})}}export{l as w};
|
package/dist/favicon.ico
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0" />
|
|
7
|
+
<meta name="theme-color" content="#000000" />
|
|
8
|
+
<link rel="manifest" href="/manifest.json" />
|
|
9
|
+
<script src="/.well-known/service/api/env"></script>
|
|
10
|
+
<script src="/__blocklet__.js"></script>
|
|
11
|
+
<style>
|
|
12
|
+
body {
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
<script type="module" crossorigin src="/.well-known/service/static/assets/index-3032db6a.js"></script>
|
|
18
|
+
<link rel="stylesheet" href="/.well-known/service/static/assets/index-d8bbb108.css">
|
|
19
|
+
</head>
|
|
20
|
+
|
|
21
|
+
<body>
|
|
22
|
+
<noscript> You need to enable JavaScript to run this app. </noscript>
|
|
23
|
+
<div id="app"></div>
|
|
24
|
+
|
|
25
|
+
</body>
|
|
26
|
+
|
|
27
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* lato-latin-ext-400-normal*/
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Lato';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
src: url('./fonts/lato-latin-ext-400-normal.woff2') format('woff2'),
|
|
8
|
+
url('./fonts/lato-all-400-normal.woff') format('woff');
|
|
9
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
10
|
+
}
|
|
11
|
+
/* lato-latin-400-normal*/
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: 'Lato';
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-display: swap;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
src: url('./fonts/lato-latin-400-normal.woff2') format('woff2'),
|
|
18
|
+
url('./fonts/lato-all-400-normal.woff') format('woff');
|
|
19
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
|
|
20
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
font-family: Lato, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
|
|
25
|
+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
26
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
try{self["workbox:core:6.5.3"]&&_()}catch{}const Q=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},z=Q;class h extends Error{constructor(e,t){const n=z(e,t);super(n),this.name=e,this.details=t}}const j=new Set;function J(s){j.add(s)}const d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},E=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),X=s=>{for(const e of Object.keys(d))s(e)},x={updateDetails:s=>{X(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||E(d.googleAnalytics),getPrecacheName:s=>s||E(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||E(d.runtime),getSuffix:()=>d.suffix};function A(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function Y(s,e,t,n){const r=A(e.url,t);if(e.url===r)return s.match(e,n);const a=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,a);for(const c of i){const o=A(c.url,t);if(r===o)return s.match(c,n)}}let m;function Z(){if(m===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),m=!0}catch{m=!1}m=!1}return m}function F(s){s.then(()=>{})}class ee{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}async function te(){for(const s of j)await s()}const se=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function ne(s){return new Promise(e=>setTimeout(e,s))}function v(s,e){const t=e();return s.waitUntil(t),t}async function re(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new h("cross-origin-copy-response",{origin:t});const n=s.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},a=e?e(r):r,i=Z()?n.body:await n.blob();return new Response(i,a)}function ae(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:precaching:6.5.3"]&&_()}catch{}const ie="__WB_REVISION__";function ce(s){if(!s)throw new h("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const a=new URL(s,location.href);return{cacheKey:a.href,url:a.href}}const{revision:e,url:t}=s;if(!t)throw new h("add-to-cache-list-unexpected-type",{entry:s});if(!e){const a=new URL(t,location.href);return{cacheKey:a.href,url:a.href}}const n=new URL(t,location.href),r=new URL(t,location.href);return n.searchParams.set(ie,e),{cacheKey:n.href,url:r.href}}class oe{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const r=t.originalRequest.url;n?this.notUpdatedURLs.push(r):this.updatedURLs.push(r)}return n}}}class le{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const r=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return r?new Request(r,{headers:t.headers}):t},this._precacheController=e}}try{self["workbox:strategies:6.5.3"]&&_()}catch{}function b(s){return typeof s=="string"?new Request(s):s}class he{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new ee,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=b(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const r=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new h("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const a=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:a,response:i});return i}catch(i){throw r&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:r.clone(),request:a.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=b(e);let n;const{cacheName:r,matchOptions:a}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},a),{cacheName:r});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:r,matchOptions:a,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=b(e);await ne(0);const r=await this.getCacheKey(n,"write");if(!t)throw new h("cache-put-with-no-response",{url:se(r.url)});const a=await this._ensureResponseSafeToCache(t);if(!a)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),g=l?await Y(o,r.clone(),["__WB_REVISION__"],c):null;try{await o.put(r,l?a.clone():a)}catch(u){if(u instanceof Error)throw u.name==="QuotaExceededError"&&await te(),u}for(const u of this.iterateCallbacks("cacheDidUpdate"))await u({cacheName:i,oldResponse:g,newResponse:a.clone(),request:r,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let r=e;for(const a of this.iterateCallbacks("cacheKeyWillBeUsed"))r=b(await a({mode:t,request:r,event:this.event,params:this.params}));this._cacheKeys[n]=r}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield a=>{const i=Object.assign(Object.assign({},a),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const r of this.iterateCallbacks("cacheWillUpdate"))if(t=await r({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class I{constructor(e={}){this.cacheName=x.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,r="params"in e?e.params:void 0,a=new he(this,{event:t,request:n,params:r}),i=this._getResponse(a,n,t),c=this._awaitComplete(i,a,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let r;try{if(r=await this._handle(t,e),!r||r.type==="error")throw new h("no-response",{url:t.url})}catch(a){if(a instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(r=await i({error:a,event:n,request:t}),r)break}if(!r)throw a}for(const a of e.iterateCallbacks("handlerWillRespond"))r=await a({event:n,request:t,response:r});return r}async _awaitComplete(e,t,n,r){let a,i;try{a=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:r,request:n,response:a}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:r,request:n,response:a,error:i}),t.destroy(),i)throw i}}class p extends I{constructor(e={}){e.cacheName=x.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(p.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const r=t.params||{};if(this._fallbackToNetwork){const a=r.integrity,i=e.integrity,c=!i||i===a;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||a:void 0})),a&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new h("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new h("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,r]of this.plugins.entries())r!==p.copyRedirectedCacheableResponsesPlugin&&(r===p.defaultPrecacheCacheabilityPlugin&&(e=n),r.cacheWillUpdate&&t++);t===0?this.plugins.push(p.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}p.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};p.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await re(s):s}};class ue{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new p({cacheName:x.getPrecacheName(e),plugins:[...t,new le({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:r,url:a}=ce(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==r)throw new h("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:r});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(r)&&this._cacheKeysToIntegrities.get(r)!==n.integrity)throw new h("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(r,n.integrity)}if(this._urlsToCacheKeys.set(a,r),this._urlsToCacheModes.set(a,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return v(e,async()=>{const t=new oe;this.strategy.plugins.push(t);for(const[a,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(a),l=new Request(a,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:r}=t;return{updatedURLs:n,notUpdatedURLs:r}})}activate(e){return v(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),r=new Set(this._urlsToCacheKeys.values()),a=[];for(const i of n)r.has(i.url)||(await t.delete(i),a.push(i.url));return{deletedURLs:a}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new h("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let D;const q=()=>(D||(D=new ue),D);try{self["workbox:routing:6.5.3"]&&_()}catch{}const H="GET",C=s=>s&&typeof s=="object"?s:{handle:s};class R{constructor(e,t,n=H){this.handler=C(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=C(e)}}class de extends R{constructor(e,t,n){const r=({url:a})=>{const i=e.exec(a.href);if(i&&!(a.origin!==location.origin&&i.index!==0))return i.slice(1)};super(r,t,n)}}class fe{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(r=>{typeof r=="string"&&(r=[r]);const a=new Request(...r);return this.handleRequest({request:a,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const r=n.origin===location.origin,{params:a,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:a})}catch(u){l=Promise.reject(u)}const g=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||g)&&(l=l.catch(async u=>{if(g)try{return await g.handle({url:n,request:e,event:t,params:a})}catch(K){K instanceof Error&&(u=K)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw u})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:r}){const a=this._routes.get(n.method)||[];for(const i of a){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:r});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=H){this._defaultHandlerMap.set(t,C(e))}setCatchHandler(e){this._catchHandler=C(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new h("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new h("unregister-route-route-not-registered")}}let w;const pe=()=>(w||(w=new fe,w.addFetchListener(),w.addCacheListener()),w);function M(s,e,t){let n;if(typeof s=="string"){const a=new URL(s,location.href),i=({url:c})=>c.href===a.href;n=new R(i,e,t)}else if(s instanceof RegExp)n=new de(s,e,t);else if(typeof s=="function")n=new R(s,e,t);else if(s instanceof R)n=s;else throw new h("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pe().registerRoute(n),n}function ge(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*me(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:r}={}){const a=new URL(s,location.href);a.hash="",yield a.href;const i=ge(a,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(r){const c=r({url:a});for(const o of c)yield o.href}}class we extends R{constructor(e,t){const n=({request:r})=>{const a=e.getURLsToCacheKeys();for(const i of me(r.url,t)){const c=a.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function ye(s){const e=q(),t=new we(e,s);M(t)}function _e(s){q().precache(s)}function Re(s,e){_e(s),ye(e)}const be=(s,e)=>e.some(t=>s instanceof t);let O,S;function Ce(){return O||(O=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function xe(){return S||(S=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const V=new WeakMap,T=new WeakMap,$=new WeakMap,L=new WeakMap,N=new WeakMap;function Ee(s){const e=new Promise((t,n)=>{const r=()=>{s.removeEventListener("success",a),s.removeEventListener("error",i)},a=()=>{t(f(s.result)),r()},i=()=>{n(s.error),r()};s.addEventListener("success",a),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&V.set(t,s)}).catch(()=>{}),N.set(e,s),e}function De(s){if(T.has(s))return;const e=new Promise((t,n)=>{const r=()=>{s.removeEventListener("complete",a),s.removeEventListener("error",i),s.removeEventListener("abort",i)},a=()=>{t(),r()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),r()};s.addEventListener("complete",a),s.addEventListener("error",i),s.addEventListener("abort",i)});T.set(s,e)}let P={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return T.get(s);if(e==="objectStoreNames")return s.objectStoreNames||$.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return f(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Le(s){P=s(P)}function Ue(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(U(this),e,...t);return $.set(n,e.sort?e.sort():[e]),f(n)}:xe().includes(s)?function(...e){return s.apply(U(this),e),f(V.get(this))}:function(...e){return f(s.apply(U(this),e))}}function ke(s){return typeof s=="function"?Ue(s):(s instanceof IDBTransaction&&De(s),be(s,Ce())?new Proxy(s,P):s)}function f(s){if(s instanceof IDBRequest)return Ee(s);if(L.has(s))return L.get(s);const e=ke(s);return e!==s&&(L.set(s,e),N.set(e,s)),e}const U=s=>N.get(s);function Te(s,e,{blocked:t,upgrade:n,blocking:r,terminated:a}={}){const i=indexedDB.open(s,e),c=f(i);return n&&i.addEventListener("upgradeneeded",o=>{n(f(i.result),o.oldVersion,o.newVersion,f(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{a&&o.addEventListener("close",()=>a()),r&&o.addEventListener("versionchange",l=>r(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function Pe(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),f(t).then(()=>{})}const Ie=["get","getKey","getAll","getAllKeys","count"],Me=["put","add","delete","clear"],k=new Map;function W(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(k.get(e))return k.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,r=Me.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(r||Ie.includes(t)))return;const a=async function(i,...c){const o=this.transaction(i,r?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),r&&o.done]))[0]};return k.set(e,a),a}Le(s=>({...s,get:(e,t,n)=>W(e,t)||s.get(e,t,n),has:(e,t)=>!!W(e,t)||s.has(e,t)}));try{self["workbox:expiration:6.5.3"]&&_()}catch{}const Ne="workbox-expiration",y="cache-entries",B=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class Ke{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(y,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&Pe(this._cacheName)}async setTimestamp(e,t){e=B(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},a=(await this.getDb()).transaction(y,"readwrite",{durability:"relaxed"});await a.store.put(n),await a.done}async getTimestamp(e){const n=await(await this.getDb()).get(y,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let r=await n.transaction(y).store.index("timestamp").openCursor(null,"prev");const a=[];let i=0;for(;r;){const o=r.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?a.push(r.value):i++),r=await r.continue()}const c=[];for(const o of a)await n.delete(y,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+B(e)}async getDb(){return this._db||(this._db=await Te(Ne,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class Ae{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Ke(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const r of t)await n.delete(r,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,F(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}class ve{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:r,cachedResponse:a})=>{if(!a)return null;const i=this._isResponseDateFresh(a),c=this._getCacheExpiration(r);F(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?a:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const r=this._getCacheExpiration(t);await r.updateTimestamp(n.url),await r.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&J(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===x.getRuntimeName())throw new h("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new Ae(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}class Oe extends I{async _handle(e,t){let n=await t.cacheMatch(e),r;if(!n)try{n=await t.fetchAndCachePut(e)}catch(a){a instanceof Error&&(r=a)}if(!n)throw new h("no-response",{url:e.url,error:r});return n}}const Se={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class We extends I{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(Se)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let r=await t.cacheMatch(e),a;if(!r)try{r=await n}catch(i){i instanceof Error&&(a=i)}if(!r)throw new h("no-response",{url:e.url,error:a});return r}}Re((self.__WB_MANIFEST||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));ae();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const G=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));M(s=>{const{request:e}=s;return G(e)?!1:e.url.includes("/static/")},new Oe({cacheName:"static",plugins:[new ve({maxEntries:200})]}));M(s=>{const{request:e}=s;return G(e)?!1:e.url.includes("/images/")||e.url.includes("/router/-template-styles/")},new We);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.20-beta-
|
|
6
|
+
"version": "1.16.20-beta-955a3019",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"lint:fix": "npm run lint -- --fix",
|
|
17
17
|
"test": "node tools/jest.js",
|
|
18
18
|
"coverage": "npm run test -- --coverage",
|
|
19
|
+
"prepublishOnly": "npm run build",
|
|
19
20
|
"clean": "rm -rf dist",
|
|
20
21
|
"start": "npm-run-all --parallel start:*",
|
|
21
22
|
"start:client": "vite --host",
|
|
@@ -31,17 +32,17 @@
|
|
|
31
32
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
32
33
|
"license": "Apache-2.0",
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@abtnode/analytics": "1.16.20-beta-
|
|
35
|
-
"@abtnode/auth": "1.16.20-beta-
|
|
36
|
-
"@abtnode/client": "1.16.20-beta-
|
|
37
|
-
"@abtnode/connect-storage": "1.16.20-beta-
|
|
38
|
-
"@abtnode/constant": "1.16.20-beta-
|
|
39
|
-
"@abtnode/core": "1.16.20-beta-
|
|
40
|
-
"@abtnode/cron": "1.16.20-beta-
|
|
41
|
-
"@abtnode/logger": "1.16.20-beta-
|
|
42
|
-
"@abtnode/models": "1.16.20-beta-
|
|
43
|
-
"@abtnode/router-templates": "1.16.20-beta-
|
|
44
|
-
"@abtnode/util": "1.16.20-beta-
|
|
35
|
+
"@abtnode/analytics": "1.16.20-beta-955a3019",
|
|
36
|
+
"@abtnode/auth": "1.16.20-beta-955a3019",
|
|
37
|
+
"@abtnode/client": "1.16.20-beta-955a3019",
|
|
38
|
+
"@abtnode/connect-storage": "1.16.20-beta-955a3019",
|
|
39
|
+
"@abtnode/constant": "1.16.20-beta-955a3019",
|
|
40
|
+
"@abtnode/core": "1.16.20-beta-955a3019",
|
|
41
|
+
"@abtnode/cron": "1.16.20-beta-955a3019",
|
|
42
|
+
"@abtnode/logger": "1.16.20-beta-955a3019",
|
|
43
|
+
"@abtnode/models": "1.16.20-beta-955a3019",
|
|
44
|
+
"@abtnode/router-templates": "1.16.20-beta-955a3019",
|
|
45
|
+
"@abtnode/util": "1.16.20-beta-955a3019",
|
|
45
46
|
"@arcblock/did": "^1.18.103",
|
|
46
47
|
"@arcblock/did-auth": "1.18.103",
|
|
47
48
|
"@arcblock/did-ext": "^1.18.103",
|
|
@@ -50,11 +51,11 @@
|
|
|
50
51
|
"@arcblock/jwt": "1.18.103",
|
|
51
52
|
"@arcblock/validator": "^1.18.103",
|
|
52
53
|
"@arcblock/ws": "1.18.103",
|
|
53
|
-
"@blocklet/constant": "1.16.20-beta-
|
|
54
|
+
"@blocklet/constant": "1.16.20-beta-955a3019",
|
|
54
55
|
"@blocklet/form-builder": "^0.1.11",
|
|
55
56
|
"@blocklet/form-collector": "^0.1.6",
|
|
56
|
-
"@blocklet/meta": "1.16.20-beta-
|
|
57
|
-
"@blocklet/sdk": "1.16.20-beta-
|
|
57
|
+
"@blocklet/meta": "1.16.20-beta-955a3019",
|
|
58
|
+
"@blocklet/sdk": "1.16.20-beta-955a3019",
|
|
58
59
|
"@did-connect/authenticator": "^2.2.1",
|
|
59
60
|
"@did-connect/relay-adapter-express": "^2.2.1",
|
|
60
61
|
"@ocap/client": "1.18.103",
|
|
@@ -93,12 +94,12 @@
|
|
|
93
94
|
},
|
|
94
95
|
"resolutions": {},
|
|
95
96
|
"devDependencies": {
|
|
96
|
-
"@abtnode/ux": "1.16.20-beta-
|
|
97
|
+
"@abtnode/ux": "1.16.20-beta-955a3019",
|
|
97
98
|
"@arcblock/did-connect": "^2.8.21",
|
|
98
99
|
"@arcblock/icons": "^2.8.21",
|
|
99
100
|
"@arcblock/ux": "^2.8.21",
|
|
100
101
|
"@blocklet/launcher-layout": "2.2.47",
|
|
101
|
-
"@blocklet/tracker": "1.16.20-beta-
|
|
102
|
+
"@blocklet/tracker": "1.16.20-beta-955a3019",
|
|
102
103
|
"@blocklet/ui-react": "^2.8.21",
|
|
103
104
|
"@emotion/react": "^11.10.4",
|
|
104
105
|
"@emotion/styled": "^11.10.4",
|
|
@@ -169,5 +170,5 @@
|
|
|
169
170
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
170
171
|
"email": "shijun@arcblock.io"
|
|
171
172
|
},
|
|
172
|
-
"gitHead": "
|
|
173
|
+
"gitHead": "f1b19cb52a19a5873f8f4de0618530d003e876a4"
|
|
173
174
|
}
|