@rainbow-robotics/preview-host 1.0.1 → 1.0.3
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/{AmrCapabilityControl.BoP0l2Iq.js → AmrCapabilityControl.CNERgDSw.js} +1 -1
- package/dist/assets/{MapInfo.BLwHHATK.js → MapInfo.CcwMgaRL.js} +1 -1
- package/dist/assets/RBQrBarCodeGuideModal.BW9rU97v.js +4864 -0
- package/dist/assets/__federation_expose_App.BON3yfQn.js +1257 -0
- package/dist/assets/__federation_fn_import.DdkEuT6t.js +2 -2
- package/dist/assets/{cssMode.78OuMiME.js → cssMode.DN6m8bBt.js} +1 -1
- package/dist/assets/{freemarker2.Bmg__ndf.js → freemarker2.CibvGAiL.js} +1 -1
- package/dist/assets/{handlebars.BdYSsjBs.js → handlebars.D97toGYG.js} +1 -1
- package/dist/assets/{html.DeL7FQdx.js → html.DHZmStbD.js} +1 -1
- package/dist/assets/{htmlMode.BTzFFsSI.js → htmlMode.DdkfKzXx.js} +1 -1
- package/dist/assets/index.8Fq1s-vH.js +1 -0
- package/dist/assets/{index.940j8tO8.js → index.BQyfe0rS.js} +1 -1
- package/dist/assets/index.CmPEM0su.js +1 -0
- package/dist/assets/{javascript.DlC6CLph.js → javascript.BUP_CF5F.js} +1 -1
- package/dist/assets/{jsonMode.mQa_JNCC.js → jsonMode.uJNMKeyu.js} +1 -1
- package/dist/assets/{liquid.CpFxg_Uz.js → liquid.C6URBr1d.js} +1 -1
- package/dist/assets/{lspLanguageFeatures._Q7Bqu1n.js → lspLanguageFeatures.DEShRrXO.js} +1 -1
- package/dist/assets/{mdx.DognzUWX.js → mdx.DhCBfrdB.js} +1 -1
- package/dist/assets/{python.BIMi8v7S.js → python.CblcPvxy.js} +1 -1
- package/dist/assets/{razor.C_PATdPw.js → razor.DdlCTyOj.js} +1 -1
- package/dist/assets/remoteEntry.js +1 -1
- package/dist/assets/{tsMode.uosUx2Bq.js → tsMode.BWM1NHFa.js} +1 -1
- package/dist/assets/{typescript.DSrFXcoR.js → typescript.DEkr42Lu.js} +1 -1
- package/dist/assets/{xml.DyOeNaUB.js → xml.Dy5j0iOM.js} +1 -1
- package/dist/assets/{yaml.X-IR08s6.js → yaml.DITaIx_1.js} +1 -1
- package/dist/imgs/nexus/forms/gripper/g11_help.png +0 -0
- package/dist/imgs/nexus/forms/gripper/gripper_11.png +0 -0
- package/dist/imgs/nexus/forms/gripper/gripper_12.png +0 -0
- package/dist/imgs/nexus/forms/gripper/gripper_13.png +0 -0
- package/dist/imgs/nexus/forms/gripper/gripper_14.png +0 -0
- package/dist/imgs/nexus/forms/gripper/gripper_15.png +0 -0
- package/dist/imgs/nexus/no-image.png +0 -0
- package/dist/index.html +4 -4
- package/package.json +1 -1
- package/dist/assets/RBQrBarCodeGuideModal.T2dyEioA.js +0 -4980
- package/dist/assets/__federation_expose_App.Be8Smrju.js +0 -1204
- package/dist/assets/index.BAdl97sG.js +0 -1
- package/dist/assets/index.DEI4vlXH.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a0 as a,dp as G,bR as j,a2 as T,c7 as W,ge as A,fX as L,dW as E,gf as P,dE as B,gg as i}from"./RBQrBarCodeGuideModal.T2dyEioA.js";import{importShared as U}from"./__federation_fn_import.DdkEuT6t.js";const w=()=>!0,I=()=>typeof window<"u"&&window.__RB_ROBOT_HOST__||void 0||void 0,ce=()=>w()&&!!I(),H=()=>w()&&!I(),ue=(e,t)=>e?.find(s=>s.point===t),le=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]},ge=(e,t)=>{if(typeof e=="string")return e;const s=String(t);return e?.[s]||e?.en};var D=(e=>(e[e.SUPERVISOR=0]="SUPERVISOR",e[e.ADMIN=1]="ADMIN",e[e.MANAGER=2]="MANAGER",e[e.OPERATOR=3]="OPERATOR",e[e.USER=4]="USER",e[e.GUEST=999999]="GUEST",e))(D||{});const q={SUPERVISOR:0,ADMIN:1,MANAGER:2,OPERATOR:3,USER:4,GUEST:999999},y={id:"GUEST",username:"게스트",role:0,sid:""};function z(e){if(!e)return y;try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),s=JSON.parse(atob(t)),o=q[s.role]??999999;return{id:s.user_id,username:s.user_id,role:o,sid:s.sid}}catch{return y}}function k(){return z(d())}const n={isAutoLogin:"isAutoLogin",accessToken:"access_token",refreshToken:"refresh_token"};function R(){localStorage.removeItem(n.isAutoLogin),localStorage.removeItem(n.accessToken),localStorage.removeItem(n.refreshToken),sessionStorage.removeItem(n.accessToken),sessionStorage.removeItem(n.refreshToken)}function g(){return localStorage.getItem(n.isAutoLogin)==="true"}function fe(e){localStorage.setItem(n.isAutoLogin,e?"true":"false")}function d(){return g()?localStorage.getItem(n.accessToken):sessionStorage.getItem(n.accessToken)}function M(){return g()?localStorage.getItem(n.refreshToken):sessionStorage.getItem(n.refreshToken)}function F(e,t,s){s?(localStorage.setItem(n.isAutoLogin,"true"),localStorage.setItem(n.accessToken,e),localStorage.setItem(n.refreshToken,t)):(localStorage.setItem(n.isAutoLogin,"false"),sessionStorage.setItem(n.accessToken,e),sessionStorage.setItem(n.refreshToken,t))}const{createContext:V,useCallback:K,useContext:X,useEffect:v,useState:Y}=await U("react"),O=V({isLoggedIn:!1,setLoggedIn:()=>{}});let S=null;function N(e){S?.(e)}function de({children:e}){const[t,s]=Y(!!d()),o=K(r=>{s(r)},[]);return v(()=>(S=o,()=>{S=null}),[o]),a(O.Provider,{value:{isLoggedIn:t,setLoggedIn:o},children:e})}function Q(){const{isLoggedIn:e,setLoggedIn:t}=X(O),s=k(),o=d(),r=M(),m=g();return v(()=>{e&&(!o||!r)&&t(!1)},[e,o,r,t]),{isLoggedIn:e,setLoggedIn:t,user:s,accessToken:o,refreshToken:r,isAutoLogin:m,isAtLeast:h=>s.role<=h,hasRole:h=>s.role===h}}const Z=({className:e,open:t,onOpenChange:s,onConfirm:o})=>{const r=()=>{s(!1),o()};return a(W,{className:T(e,"w-100 max-w-full border-none p-0"),enableDimClose:!1,hideCloseButton:!0,open:t,onOpenChange:s,header:{title:"세션이 만료되었습니다"},footer:a(G,{className:T("w-full gap-1","[&_button]:h-8 [&_button]:w-20"),justifyContent:"end",children:a(j,{variant:"brand",size:"sm",onClick:r,children:"확인"})}),children:a("div",{className:"px-4 pt-3 pb-0",children:a("span",{className:"text-fg-default typo-compact-sm-normal",children:"토큰 정보가 만료되었습니다. 로그인 페이지로 이동합니다."})})})},{useMutation:J}=await U("@tanstack/react-query"),ee="/logout",$=async e=>ne.post(ee,{sid:e}),me=()=>{const{setLoggedIn:e,user:t}=Q();return J({mutationFn:async()=>{if(t?.sid)return $(t.sid)},onError:s=>{console.log("Logout Error",s)},onSettled:()=>{console.log("[useMutateLogout] 로그아웃 처리 완료, 토큰 삭제 및 로그인 상태 초기화"),R(),e(!1)}})},_=`http://${window.location.hostname}:undefined`,te=1e4;let x=null,C=null;function he(e){x=e}function pe(e){C=e}let f=!1,p=0;const b=()=>{if(console.log("[refreshManager] 세션 만료 모달 표시 시도"),console.log(window.location.pathname),L.checkModal({componentName:"SessionExpiredModal"})||window.location.pathname==="/muscat/app/login")return;const e=async()=>{const t=k();if(t?.sid)try{await $(t.sid)}catch(s){console.error("[refreshManager] 세션 만료 로그아웃 실패 (무시됨):",s)}R(),N(!1),C?.("/muscat/app/login")};L.openModal({component:Z,props:{onConfirm:e,onClose:e},options:{id:"session-expired"}})};async function se(){if(console.log("[refreshTokens] 토큰 갱신 시도 : isRefreshing =",f,", lastRefreshedAt =",p),f||Date.now()-p<te)return null;const e=M();if(!e)return b(),null;f=!0;try{const t=await A.post(`${_}/common/refresh`,{refresh_token:e}),{access_token:s,refresh_token:o}=t.data;return F(s,o,g()),N(!0),x?.("auth",{token:s,autoLogin:g()?"true":"false"}),console.log("[refreshTokens] 토큰 갱신 성공, 새 access token:",s),p=Date.now(),s}catch(t){try{const s=k();s?.sid&&await A.post(`${_}/common/logout`,{sid:s.sid})}catch{}throw b(),t}finally{f=!1}}const c={onRequest({config:e}){if(e.url?.endsWith("/login")||e.url?.endsWith("/logout")||e.url?.endsWith("/refresh"))return e;const s=d();return s&&e.headers&&(e.headers.Authorization=`Bearer ${s}`),e},onResponse({response:e}){return e?.data},async onResponseError({error:e}){const t=e.config;if(!t)return Promise.reject(e);if(t.url?.endsWith("/login")||t.url?.endsWith("/logout")||t.url?.endsWith("/refresh"))return R(),Promise.reject(e);if(e.response?.status===401&&!t._retry){t._retry=!0;try{const l=await se();return l?(t.headers.Authorization=`Bearer ${l}`,A(t)):Promise.reject(e)}catch(l){return Promise.reject(l)}}const o=e?.response?.data,r=E("useSimulator")!=="false"&&!!E("useSimulator"),m=typeof o=="object"&&"message"in o&&typeof o.message=="string"?o.message:P("common.toast.apiError.content");return e.status===504&&!r||H()||B.openToast({title:e.config.url?`[API Error] ${e.config.url}`:P("common.toast.apiError.title"),content:m,type:"basic",variant:"warning"}),Promise.reject(e)}},oe=3e3,u=`http://${I()||window.location.hostname}:${oe}`,ne=i({baseURL:`${u}/common`},c),Ae=i({baseURL:`${u}/manipulate`},c),Se=i({baseURL:`${u}/log`},c),Ie=i({baseURL:`${u}/amr`},c),ke=i({baseURL:`${u}/rby1`},c),Re=i({baseURL:`${u}/deploy`},c);export{de as A,D as J,u as M,Ie as a,ge as b,ne as c,le as d,me as e,ue as f,I as g,he as h,w as i,se as j,pe as k,Se as l,Ae as m,ce as n,g as o,fe as p,Re as q,ke as r,F as s,d as t,Q as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as s,a as e,b as r,B as t,C as l,D as n,c as T,d as i,E as d,e as p,f as g,g as P,H as y,L as E,M as S,h as u,i as O,N as M,j as A,O as N,k as R,P as m,l as D,m as c,R as b,n as L,o as k,S as w,p as B,q as F,T as f,r as v,s as C,t as _,u as H,v as U,w as I,x as V,y as h,z as x,F as Y,G as Z,I as j,J as G,K as J,U as Q,V as W,W as q,Q as z,X as K,Y as X,Z as $,_ as aa,$ as oa}from"./RBQrBarCodeGuideModal.T2dyEioA.js";import{M as ea,a as ra,R as ta}from"./MapInfo.BLwHHATK.js";export{s as AMRNodeFromTo,e as AreaPlugin,r as ArrowHelper2,t as BottomStatusBar,l as CameraStreamsPanel,n as DEFAULT_ASSET_TRANSFORM,T as DEFAULT_TOPOLOGY_FORMAT_VERSION,i as DockControl,d as Editor,p as Eraser,g as EraserTab,P as EventHandler,y as HUDStatusPanel,E as LeftToolBar,ea as MapInfo,S as MapLoadDialog,u as MapNameHUD,ra as MappingTab,O as MarkerControl,M as NODE_TYPE,A as NodeManager,N as ObstacleMapPanel,R as Overview,m as PaintJointPathPlugin,D as PathDrawer,c as PduInfo,ta as RBQ10,b as RightToolBar,L as RobotControlPanel,k as RobotManager,w as SelectedLinkOverlay,B as SelectedNodeOverlay,F as Selector,f as TaskInformation,v as ToolPlugin,C as TopologyActionFooter,_ as TopologyAdd,H as TopologyControl,U as TopologyEdit,I as TopologyLink,V as TopologyLinkTabPanel,h as TopologyNodeAddSection,x as TopologyNodeEditSection,Y as TopologyNodeTabPanel,Z as TopologyNodes,j as TopologyZone,G as TopologyZoneTabPanel,J as TrajectoryDrawer,Q as URDFViewer,W as Viewport,q as WorldStudio,z as makeHexColor,K as useBottomStatusBar,X as useEditorState,$ as useEditorTool,aa as useEditorViewportOptions,oa as useOverlayPosition};
|