@weppy/roblox-mcp 2.0.8 → 2.0.9
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/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +9 -1
- package/COMMERCIAL-LICENSE.md +1 -1
- package/README.md +10 -10
- package/TRADEMARKS.md +1 -1
- package/docs/assets/screenshots/plugin_main.png +0 -0
- package/docs/assets/screenshots/plugins_menu.png +0 -0
- package/docs/assets/screenshots/weppy_plugin_toolbar.png +0 -0
- package/docs/en/dashboard/changelog.md +1 -1
- package/docs/en/dashboard/connection.md +1 -1
- package/docs/en/dashboard/overview.md +1 -1
- package/docs/en/dashboard/playtest.md +1 -1
- package/docs/en/dashboard/settings.md +1 -1
- package/docs/en/dashboard/sync.md +1 -1
- package/docs/en/dashboard/tools.md +1 -1
- package/docs/en/installation/README.md +5 -3
- package/docs/en/installation/ai-apps/antigravity.md +1 -1
- package/docs/en/installation/ai-apps/claude-app.md +1 -1
- package/docs/en/installation/ai-apps/claude-code.md +1 -1
- package/docs/en/installation/ai-apps/codex-app.md +1 -1
- package/docs/en/installation/ai-apps/codex-cli.md +1 -1
- package/docs/en/installation/ai-apps/cursor.md +1 -1
- package/docs/en/installation/ai-apps/gemini-cli.md +1 -1
- package/docs/en/installation/roblox-explorer.md +9 -9
- package/docs/en/installation/roblox-plugin.md +3 -3
- package/docs/en/pro-upgrade.md +3 -3
- package/docs/en/sync/overview.md +2 -2
- package/docs/es/README.md +7 -7
- package/docs/es/dashboard/changelog.md +1 -1
- package/docs/es/dashboard/connection.md +1 -1
- package/docs/es/dashboard/overview.md +1 -1
- package/docs/es/dashboard/playtest.md +1 -1
- package/docs/es/dashboard/settings.md +1 -1
- package/docs/es/dashboard/sync.md +1 -1
- package/docs/es/dashboard/tools.md +1 -1
- package/docs/es/installation/README.md +2 -2
- package/docs/es/installation/ai-apps/antigravity.md +1 -1
- package/docs/es/installation/ai-apps/claude-app.md +1 -1
- package/docs/es/installation/ai-apps/claude-code.md +1 -1
- package/docs/es/installation/ai-apps/codex-app.md +1 -1
- package/docs/es/installation/ai-apps/codex-cli.md +1 -1
- package/docs/es/installation/ai-apps/cursor.md +1 -1
- package/docs/es/installation/ai-apps/gemini-cli.md +1 -1
- package/docs/es/installation/roblox-explorer.md +9 -9
- package/docs/es/installation/roblox-plugin.md +3 -3
- package/docs/es/pro-upgrade.md +1 -1
- package/docs/es/sync/overview.md +2 -2
- package/docs/id/README.md +7 -7
- package/docs/id/dashboard/changelog.md +1 -1
- package/docs/id/dashboard/connection.md +1 -1
- package/docs/id/dashboard/overview.md +1 -1
- package/docs/id/dashboard/playtest.md +1 -1
- package/docs/id/dashboard/settings.md +1 -1
- package/docs/id/dashboard/sync.md +1 -1
- package/docs/id/dashboard/tools.md +1 -1
- package/docs/id/installation/README.md +3 -3
- package/docs/id/installation/ai-apps/antigravity.md +1 -1
- package/docs/id/installation/ai-apps/claude-app.md +1 -1
- package/docs/id/installation/ai-apps/claude-code.md +1 -1
- package/docs/id/installation/ai-apps/codex-app.md +1 -1
- package/docs/id/installation/ai-apps/codex-cli.md +1 -1
- package/docs/id/installation/ai-apps/cursor.md +1 -1
- package/docs/id/installation/ai-apps/gemini-cli.md +1 -1
- package/docs/id/installation/roblox-explorer.md +9 -9
- package/docs/id/installation/roblox-plugin.md +3 -3
- package/docs/id/pro-upgrade.md +1 -1
- package/docs/id/sync/overview.md +2 -2
- package/docs/ja/README.md +7 -7
- package/docs/ja/installation/README.md +3 -3
- package/docs/ja/installation/ai-apps/antigravity.md +1 -1
- package/docs/ja/installation/ai-apps/claude-app.md +1 -1
- package/docs/ja/installation/ai-apps/claude-code.md +1 -1
- package/docs/ja/installation/ai-apps/codex-app.md +1 -1
- package/docs/ja/installation/ai-apps/codex-cli.md +1 -1
- package/docs/ja/installation/ai-apps/cursor.md +1 -1
- package/docs/ja/installation/ai-apps/gemini-cli.md +1 -1
- package/docs/ja/installation/roblox-explorer.md +9 -9
- package/docs/ja/installation/roblox-plugin.md +3 -3
- package/docs/ja/pro-upgrade.md +1 -1
- package/docs/ja/sync/overview.md +2 -2
- package/docs/ko/README.md +7 -7
- package/docs/ko/installation/README.md +5 -3
- package/docs/ko/installation/ai-apps/antigravity.md +1 -1
- package/docs/ko/installation/ai-apps/claude-app.md +1 -1
- package/docs/ko/installation/ai-apps/claude-code.md +1 -1
- package/docs/ko/installation/ai-apps/codex-app.md +1 -1
- package/docs/ko/installation/ai-apps/codex-cli.md +1 -1
- package/docs/ko/installation/ai-apps/cursor.md +1 -1
- package/docs/ko/installation/ai-apps/gemini-cli.md +1 -1
- package/docs/ko/installation/roblox-explorer.md +9 -9
- package/docs/ko/installation/roblox-plugin.md +3 -3
- package/docs/ko/pro-upgrade.md +1 -1
- package/docs/ko/sync/overview.md +2 -2
- package/docs/pt-br/README.md +8 -8
- package/docs/pt-br/dashboard/changelog.md +1 -1
- package/docs/pt-br/dashboard/connection.md +1 -1
- package/docs/pt-br/dashboard/overview.md +1 -1
- package/docs/pt-br/dashboard/playtest.md +1 -1
- package/docs/pt-br/dashboard/settings.md +1 -1
- package/docs/pt-br/dashboard/sync.md +1 -1
- package/docs/pt-br/dashboard/tools.md +1 -1
- package/docs/pt-br/installation/README.md +3 -3
- package/docs/pt-br/installation/ai-apps/antigravity.md +1 -1
- package/docs/pt-br/installation/ai-apps/claude-app.md +1 -1
- package/docs/pt-br/installation/ai-apps/claude-code.md +1 -1
- package/docs/pt-br/installation/ai-apps/codex-app.md +1 -1
- package/docs/pt-br/installation/ai-apps/codex-cli.md +1 -1
- package/docs/pt-br/installation/ai-apps/cursor.md +1 -1
- package/docs/pt-br/installation/ai-apps/gemini-cli.md +1 -1
- package/docs/pt-br/installation/roblox-explorer.md +9 -9
- package/docs/pt-br/installation/roblox-plugin.md +3 -3
- package/docs/pt-br/pro-upgrade.md +1 -1
- package/docs/pt-br/sync/overview.md +2 -2
- package/docs/troubleshooting.md +1 -1
- package/install.ps1 +37 -14
- package/install.sh +38 -3
- package/llms-full.txt +7 -7
- package/llms.txt +4 -4
- package/package.json +1 -1
- package/plugins/weppy-roblox-mcp/.claude-plugin/plugin.json +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ChangelogDetailPage-D1JOF_uS.js → ChangelogDetailPage-DRPIGDB0.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ChangelogPage-C4ftyN_p.js → ChangelogPage-DVPYTw2L.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ConfirmModal-DPwJWgnH.js → ConfirmModal-Db4rfrTo.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ConnectionPage-CBB0jpB4.js → ConnectionPage-Cv2i3LSr.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{InfoLabel-CYxzWZMs.js → InfoLabel-DzXzzs6Q.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{OverviewPage-DkTqzsFx.js → OverviewPage-FoC28UL8.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{PlaytestPage-qErtShLw.js → PlaytestPage-BjBAsHLz.js} +2 -2
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{PropertyDiff-C4VtcZO2.js → PropertyDiff-BZMdMzMr.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SettingsPage-BKp2VKMW.js +1 -0
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{StatusBadge-Ch9hAD89.js → StatusBadge-DtcYlxe-.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SyncPage-DcELF5_j.js +4 -0
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{TierPromoProgress-DsH0LxDt.js → TierPromoProgress-r5fgmYI5.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ToolsPage-D6x4enqI.js → ToolsPage-Cfau3bX3.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/index-DWRH2iF4.js +129 -0
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{tier-promo-config-DU-2XXTa.js → tier-promo-config-CQFDWwo4.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{useLiveUptime-C7E1-LNV.js → useLiveUptime-5lD1XKnw.js} +1 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/index.html +3 -3
- package/plugins/weppy-roblox-mcp/dashboard/dist/wrox-icon.png +0 -0
- package/plugins/weppy-roblox-mcp/dist/index.js +2 -2
- package/plugins/weppy-roblox-mcp/roblox-plugin/WeppyRobloxMCP.rbxm +0 -0
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SettingsPage-DJLwbREH.js +0 -1
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SyncPage-CbegjDPX.js +0 -4
- package/plugins/weppy-roblox-mcp/dashboard/dist/assets/index-CQdnwaWW.js +0 -129
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as M,r as c,f as D,D as $,e as F,g as G,h as q,a as A,u as U,j as e,T as b,A as K,S as V}from"./index-CQdnwaWW.js";import{I as o}from"./InfoLabel-CYxzWZMs.js";function W(){const{level:s}=M(),[r,y]=c.useState(null),[h,i]=c.useState(null),[C,T]=c.useState(null),[R,m]=c.useState(!1),[p,S]=c.useState(!0),[B,f]=c.useState(!1),[H,L]=c.useState(null),g="gumroad",_=s==="L0",u=c.useCallback(n=>{n&&i(l=>({...l,...n,maskedKey:n.maskedKey??(l==null?void 0:l.maskedKey),provider:n.provider??(l==null?void 0:l.provider)??g}))},[g]),N=c.useCallback(n=>{if(!n){i(null);return}i({...n,provider:n.provider??g})},[g]),x=c.useCallback(async()=>{try{return await D(g)}catch{return null}},[g]);c.useEffect(()=>{let n=!1;async function l(){try{const[a,d,v]=await Promise.all([A.get("/api/dashboard/settings").catch(()=>null),x(),A.get("/sync/config").catch(()=>null)]);if(n)return;a&&y(a),d&&u(d),v&&T(v)}catch{}finally{n||S(!1)}}return l(),()=>{n=!0}},[x,u]),c.useEffect(()=>{const n=new $;n.connect();const l=n.on("license",a=>{x().then(d=>{if(d){if((a==null?void 0:a.cleared)===!0){N(d);return}u(d)}})});return()=>{l(),n.disconnect()}},[x,u,N]);const j=c.useCallback((n,l)=>{L(n??l)},[]),I=c.useCallback(async n=>{if(_)return!1;if(!n.trim())return L("License key is required."),!1;f(!0);try{const l=await F({provider:g,licenseKey:n.trim()});return u(l.license),j(l.message,l.ok?"License updated.":"License activation failed."),l.ok}catch{return L("License activation failed."),!1}finally{f(!1)}},[j,_,g,u]),E=c.useCallback(async()=>{if(!_){f(!0);try{const n=await G({provider:g});u(n.license),j(n.message,n.ok?"License updated.":"License refresh failed.")}catch{L("License refresh failed.")}finally{f(!1)}}},[j,_,g,u]),P=c.useCallback(async()=>{if(!_){f(!0);try{const n=await q({provider:g});N(n.license),j(n.message,n.ok?"License reset.":"License reset failed.")}catch{L("License reset failed.")}finally{f(!1)}}},[j,_,g,N]),k=c.useCallback(async(n,l)=>{if(r){y(a=>a&&{...a,hot:{...a.hot,[n]:l}}),m(!0);try{await A.patch("/api/dashboard/settings",{[n]:l})}catch{y(a=>a&&{...a,hot:{...a.hot,[n]:r.hot[n]}})}finally{m(!1)}}},[r]),w=c.useCallback(async n=>{m(!0);try{const l=await A.post("/sync/config",n);T(l)}catch{}finally{m(!1)}},[]);return{settings:r,license:h,syncConfig:C,saving:R,licenseProvider:g,licenseControlsDisabled:_,licenseSubmitting:B,licenseMessage:H,activateLicense:I,refreshLicense:E,resetLicense:P,updateHotSetting:k,updateSyncConfig:w,loading:p}}const Q="_page_amh3j_2",X="_card_amh3j_10",Y="_licenseCardPro_amh3j_17",z="_cardHeader_amh3j_28",J="_headerBadge_amh3j_42",Z="_headerBadgeLive_amh3j_53",ee="_licenseGrid_amh3j_59",se="_statusDot_amh3j_77",te="_statusActive_amh3j_86",ae="_statusGrace_amh3j_91",ne="_statusInactive_amh3j_96",ie="_statusError_amh3j_100",le="_proBadge_amh3j_105",ce="_upgradeLink_amh3j_119",oe="_licenseControls_amh3j_133",re="_licenseControlRow_amh3j_142",de="_licenseField_amh3j_149",ge="_licenseFieldGrow_amh3j_155",he="_controlLabel_amh3j_160",ue="_textInput_amh3j_166",me="_actionBtn_amh3j_182",pe="_licenseMessage_amh3j_204",je="_licenseNotice_amh3j_211",_e="_licenseNoticeInfo_amh3j_221",xe="_licenseNoticeWarning_amh3j_227",ve="_licenseNoticeMuted_amh3j_233",be="_settingRow_amh3j_239",fe="_settingLabel_amh3j_253",Le="_settingControl_amh3j_260",ye="_select_amh3j_269",Ne="_numberInput_amh3j_287",Ce="_toggleSwitch_amh3j_305",Te="_toggleInput_amh3j_312",Se="_toggleTrack_amh3j_320",Ie="_toggleThumb_amh3j_342",Ee="_savedIndicator_amh3j_391",ke="_savedIndicatorHidden_amh3j_402",we="_coldGrid_amh3j_407",Ae="_coldHint_amh3j_425",Re="_syncForm_amh3j_434",Be="_syncRow_amh3j_440",He="_syncField_amh3j_447",Pe="_saveBtn_amh3j_461",Oe="_langRow_amh3j_485",Me="_loading_amh3j_498",De="_unit_amh3j_507",t={page:Q,card:X,licenseCardPro:Y,cardHeader:z,headerBadge:J,headerBadgeLive:Z,licenseGrid:ee,statusDot:se,statusActive:te,statusGrace:ae,statusInactive:ne,statusError:ie,proBadge:le,upgradeLink:ce,licenseControls:oe,licenseControlRow:re,licenseField:de,licenseFieldGrow:ge,controlLabel:he,textInput:ue,actionBtn:me,licenseMessage:pe,licenseNotice:je,licenseNoticeInfo:_e,licenseNoticeWarning:xe,licenseNoticeMuted:ve,settingRow:be,settingLabel:fe,settingControl:Le,select:ye,numberInput:Ne,toggleSwitch:Ce,toggleInput:Te,toggleTrack:Se,toggleThumb:Ie,savedIndicator:Ee,savedIndicatorHidden:ke,coldGrid:we,coldHint:Ae,syncForm:Re,syncRow:Be,syncField:He,saveBtn:Pe,langRow:Oe,loading:Me,unit:De},$e={en:"English",ko:"한국어",es:"Español","pt-br":"Português (BR)",ja:"日本語",id:"Bahasa Indonesia"},Fe=["debug","info","warn","error"];function Ge(s){return s==="active"?t.statusActive:s==="grace"?t.statusGrace:s==="invalid"||s==="revoked"?t.statusError:t.statusInactive}function qe(s,r){return s.refreshBlockedReason==="missing_session_token"?{label:r("settings.license.status.activationRequired","Activation Required"),tooltip:r("settings.license.status.activationRequired.tooltip","Manual license activation is required before the dashboard can refresh this status."),detail:r("settings.license.detail.missingSessionToken","Refresh is blocked because the current session token is missing."),detailTone:t.licenseNoticeWarning}:s.statusDetail==="grace_provider_unavailable"?{label:r("settings.license.status.grace","Grace"),tooltip:r("settings.license.status.grace.tooltip","Provider verification is temporarily unavailable, but Pro access remains active during the grace period."),detail:r("settings.license.detail.graceProviderUnavailable","Provider unavailable. Pro access remains active during grace mode."),detailTone:t.licenseNoticeInfo}:s.statusDetail==="grace_cancelled"||s.statusDetail==="grace_expired"||s.statusDetail==="grace_payment_failed"?{label:r("settings.license.status.grace","Grace"),tooltip:r("settings.license.status.graceBilling.tooltip","Pro access is still available during a billing-related grace period."),detail:r("settings.license.detail.graceBilling","Pro access remains available during a billing grace period."),detailTone:t.licenseNoticeInfo}:{label:r(`settings.license.${s.status}`,s.status),tooltip:r(`settings.license.${s.status}.tooltip`,"Current license activation state."),detail:s.refreshRequired?r("settings.license.detail.refreshRecommended","License verification should be refreshed soon."):null,detailTone:t.licenseNoticeMuted}}function O({checked:s,onChange:r,testId:y,ariaLabel:h}){return e.jsxs("label",{className:t.toggleSwitch,"data-testid":y,children:[e.jsx("input",{type:"checkbox",className:t.toggleInput,checked:s,"aria-label":h,onChange:i=>r(i.target.checked)}),e.jsx("span",{className:t.toggleTrack,"aria-hidden":"true",children:e.jsx("span",{className:t.toggleThumb})})]})}function Ve(){const{t:s,selectedLocale:r,setLocale:y}=U(),{settings:h,license:i,syncConfig:C,saving:T,licenseProvider:R,licenseControlsDisabled:m,licenseSubmitting:p,licenseMessage:S,activateLicense:B,refreshLicense:f,resetLicense:H,updateHotSetting:L,updateSyncConfig:g,loading:_}=W(),[u,N]=c.useState(null),[x,j]=c.useState({}),[I,E]=c.useState(""),P=i?qe(i,s):null,k=(i==null?void 0:i.tier)==="pro",w=(i==null?void 0:i.tier)==="pro"?i.maskedKey:void 0;c.useEffect(()=>{C&&j({maxDepth:C.maxDepth,maxInstances:C.maxInstances})},[C]);const n=c.useCallback(async(a,d)=>{await L(a,d),N(a),setTimeout(()=>N(v=>v===a?null:v),2e3)},[L]),l=c.useCallback(async()=>{await g(x)},[g,x]);return _?e.jsx("div",{className:t.page,children:e.jsx("div",{className:t.loading,children:s("common.loading")})}):e.jsxs("div",{className:t.page,children:[e.jsxs("div",{"data-testid":"settings-license-card",className:[t.card,(i==null?void 0:i.tier)==="pro"?t.licenseCardPro:""].filter(Boolean).join(" "),children:[e.jsxs("div",{className:t.cardHeader,children:[e.jsx(o,{label:s("settings.license.title","License"),tooltip:s("settings.license.title.tooltip","Current license status and subscription tier.")}),e.jsx(b,{text:m?s("settings.license.disconnected.tooltip","Reconnect to the MCP server to manage license actions from the dashboard."):s("settings.license.live.tooltip","License actions are sent to the MCP server immediately."),children:e.jsx("span",{className:`${t.headerBadge} ${m?"":t.headerBadgeLive}`,children:m?s("settings.license.disconnected","Disconnected"):s("settings.general.liveApply","Live Apply")})})]}),e.jsxs(e.Fragment,{children:[i?e.jsxs(e.Fragment,{children:[(()=>{const a=P;return e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:t.licenseGrid,children:[e.jsx("dt",{children:e.jsx(o,{label:s("settings.license.status","Status"),tooltip:s("settings.license.status.tooltip","Current license activation state.")})}),e.jsxs("dd",{children:[e.jsx("span",{className:`${t.statusDot} ${Ge(i.status)}`}),e.jsx(b,{text:(a==null?void 0:a.tooltip)??s(`settings.license.${i.status}.tooltip`,"Current license activation state."),children:(a==null?void 0:a.label)??s(`settings.license.${i.status}`,i.status)})]}),e.jsx("dt",{children:e.jsx(o,{label:s("settings.license.tier","Tier"),tooltip:s("settings.license.tier.tooltip","Current subscription tier for available dashboard features.")})}),e.jsx("dd",{className:i.tier==="pro"?t.proBadge:"",children:e.jsx(b,{text:s(`tier.${i.tier}.tooltip`,"Available feature set for the connected license."),children:i.tier==="pro"?s("tier.pro","Pro"):s("tier.basic","Basic")})}),w&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(o,{label:s("settings.license.key","Key"),tooltip:s("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("dd",{children:e.jsx(b,{text:s("settings.license.keyValue.tooltip","Masked license key currently loaded by the server."),children:w})})]}),i.provider&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(o,{label:s("settings.license.provider","Provider"),tooltip:s("settings.license.provider.tooltip","License provider used to validate this key.")})}),e.jsx("dd",{children:e.jsx(b,{text:s("settings.license.providerValue.tooltip","License provider used to validate this key."),children:i.provider})})]})]}),(a==null?void 0:a.detail)&&e.jsx("p",{className:`${t.licenseNotice} ${a.detailTone}`,children:i.refreshBlockedReason==="missing_session_token"?s("settings.license.detail.manualActivation","Manual activation required to restore Pro access."):a.detail}),i.refreshBlockedReason==="missing_session_token"&&e.jsx("p",{className:`${t.licenseNotice} ${t.licenseNoticeMuted}`,children:a==null?void 0:a.detail})]})})(),i.tier==="basic"&&e.jsx("a",{className:t.upgradeLink,href:"https://gum.co/u/din5in7h",target:"_blank",rel:"noopener noreferrer",children:s("tier.upgrade")})]}):e.jsx("div",{className:t.loading,children:s("settings.license.unavailable")}),e.jsxs("div",{className:t.licenseControls,children:[e.jsxs("div",{className:t.licenseControlRow,children:[e.jsxs("label",{className:t.licenseField,children:[e.jsx("span",{className:t.controlLabel,children:e.jsx(o,{label:s("settings.license.provider","Provider"),tooltip:s("settings.license.provider.tooltip","License provider used to validate this key.")})}),e.jsx("select",{"aria-label":s("settings.license.provider","Provider"),className:t.select,value:R,disabled:m||p,onChange:()=>{},children:e.jsx("option",{value:"gumroad",children:"gumroad"})})]}),e.jsx("button",{type:"button",className:t.actionBtn,disabled:m||p||!k,onClick:()=>{f()},children:p?s("common.loading"):s("settings.license.refresh","Refresh License")}),e.jsx("button",{type:"button",className:t.actionBtn,disabled:m||p||!k,onClick:()=>{H()},children:p?s("common.loading"):s("settings.license.reset","Reset License")})]}),e.jsxs("div",{className:t.licenseControlRow,children:[e.jsxs("label",{className:`${t.licenseField} ${t.licenseFieldGrow}`,children:[e.jsx("span",{className:t.controlLabel,children:e.jsx(o,{label:s("settings.license.keyInput","License Key"),tooltip:s("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("input",{"aria-label":s("settings.license.keyInput","License Key"),className:t.textInput,type:"text",value:I,disabled:m||p,onChange:a=>E(a.target.value)})]}),e.jsx("button",{type:"button",className:t.actionBtn,disabled:m||p,onClick:()=>{(async()=>await B(I)&&E(""))()},children:p?s("common.loading"):s("settings.license.activate","Activate License")})]}),S&&e.jsx("p",{className:t.licenseMessage,children:S})]})]})]}),e.jsxs("div",{className:t.card,children:[e.jsxs("div",{className:t.cardHeader,children:[e.jsx(o,{label:s("settings.general.title","General Settings"),tooltip:s("settings.general.title.tooltip","Hot settings that apply immediately when changed.")}),e.jsx(b,{text:s("settings.general.liveApply.tooltip","Changes in this section are applied immediately without a separate save button."),children:e.jsx("span",{className:`${t.headerBadge} ${t.headerBadgeLive}`,children:s("settings.general.liveApply","Live Apply")})})]}),h?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.logLevel","Log Level"),tooltip:s("settings.general.logLevel.tooltip","Sets how much detail the dashboard writes to its logs.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("select",{className:t.select,value:h.hot.LOG_LEVEL,onChange:a=>n("LOG_LEVEL",a.target.value),children:Fe.map(a=>e.jsx("option",{value:a,children:a},a))}),u==="LOG_LEVEL"&&e.jsx("span",{className:t.savedIndicator,children:s("settings.general.applied")})]})]}),e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.localHistory","Tool History Recording"),tooltip:s("settings.general.localHistory.tooltip","Stores local tool execution history for the dashboard history views.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("span",{className:`${t.savedIndicator} ${u==="ENABLE_LOCAL_HISTORY"?"":t.savedIndicatorHidden}`,children:s("settings.general.applied","Applied")}),e.jsx(O,{checked:h.hot.ENABLE_LOCAL_HISTORY,ariaLabel:s("settings.general.localHistory","Tool History Recording"),testId:"settings-toggle-enable-local-history",onChange:a=>n("ENABLE_LOCAL_HISTORY",a)})]})]}),e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.localStatistics","Tool Statistics Collection"),tooltip:s("settings.general.localStatistics.tooltip","Aggregates local usage statistics for dashboard reporting.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("span",{className:`${t.savedIndicator} ${u==="ENABLE_LOCAL_STATISTICS"?"":t.savedIndicatorHidden}`,children:s("settings.general.applied","Applied")}),e.jsx(O,{checked:h.hot.ENABLE_LOCAL_STATISTICS,ariaLabel:s("settings.general.localStatistics","Tool Statistics Collection"),testId:"settings-toggle-enable-local-statistics",onChange:a=>n("ENABLE_LOCAL_STATISTICS",a)})]})]}),e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.contextCapture","Context Capture"),tooltip:s("settings.general.contextCapture.tooltip","When enabled, the dashboard records structured execution context for changelog and playtest views.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("span",{className:`${t.savedIndicator} ${u==="ENABLE_CONTEXT_CAPTURE"?"":t.savedIndicatorHidden}`,children:s("settings.general.applied","Applied")}),e.jsx(O,{checked:h.hot.ENABLE_CONTEXT_CAPTURE,ariaLabel:s("settings.general.contextCapture","Context Capture"),testId:"settings-toggle-enable-context-capture",onChange:a=>n("ENABLE_CONTEXT_CAPTURE",a)})]})]}),e.jsxs("div",{className:t.settingRow,children:[e.jsx("span",{className:t.settingLabel,children:e.jsx(o,{label:s("settings.general.requestTimeout","Request Timeout"),tooltip:s("settings.general.requestTimeout.tooltip","Maximum time the dashboard waits for a request before it fails.")})}),e.jsxs("div",{className:t.settingControl,children:[e.jsx("input",{type:"number",className:t.numberInput,value:h.hot.REQUEST_TIMEOUT,min:1e3,max:12e4,step:1e3,onChange:a=>{const d=parseInt(a.target.value,10);isNaN(d)||n("REQUEST_TIMEOUT",d)}}),e.jsx(b,{text:s("settings.general.requestTimeout.unit.tooltip","Request timeout is measured in milliseconds."),children:e.jsx("span",{className:t.unit,children:s("settings.general.requestTimeout.unit","ms")})}),u==="REQUEST_TIMEOUT"&&e.jsx("span",{className:t.savedIndicator,children:s("settings.general.applied","Applied")})]})]})]}):e.jsx("div",{className:t.loading,children:s("settings.unavailable")})]}),e.jsxs("div",{className:t.card,children:[e.jsxs("div",{className:t.cardHeader,children:[e.jsx(o,{label:s("settings.cold.title","Server Environment"),tooltip:s("settings.cold.title.tooltip","Read-only server environment values loaded at startup.")}),e.jsx(b,{text:s("settings.readOnly.tooltip","This section shows values that cannot be edited from the dashboard."),children:e.jsx("span",{className:t.headerBadge,children:s("settings.readOnly","Read-only")})})]}),h?e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:t.coldGrid,children:[e.jsx("dt",{children:e.jsx(o,{label:"HTTP_PORT",tooltip:s("settings.cold.httpPort.tooltip","Port number used by the MCP dashboard HTTP server.")})}),e.jsx("dd",{children:h.cold.HTTP_PORT}),e.jsx("dt",{children:e.jsx(o,{label:"HTTP_HOST",tooltip:s("settings.cold.httpHost.tooltip","Host interface that the MCP dashboard HTTP server binds to.")})}),e.jsx("dd",{children:h.cold.HTTP_HOST}),e.jsx("dt",{children:e.jsx(o,{label:"DASHBOARD_AUTO_OPEN",tooltip:s("settings.cold.dashboardAutoOpen.tooltip","Controls whether the dashboard opens automatically in the browser when the server starts.")})}),e.jsx("dd",{children:e.jsx(b,{text:s("settings.cold.dashboardAutoOpen.value.tooltip","Current startup behavior for opening the dashboard in a browser."),children:String(h.cold.DASHBOARD_AUTO_OPEN)})})]}),e.jsx("p",{className:t.coldHint,children:s("settings.cold.hint","Set via environment variables to change these values.")})]}):e.jsx("div",{className:t.loading,children:s("settings.unavailable")})]}),e.jsxs("div",{className:t.card,children:[e.jsx("div",{className:t.cardHeader,children:e.jsx(o,{label:s("settings.sync.title","Sync Settings"),tooltip:s("settings.sync.title.tooltip","Saved sync limits for project file indexing and traversal.")})}),e.jsxs("div",{className:t.syncForm,children:[e.jsxs("div",{className:t.syncRow,children:[e.jsxs("div",{className:t.syncField,children:[e.jsx("label",{children:e.jsx(o,{label:s("settings.sync.maxDepth","Max Depth"),tooltip:s("settings.sync.maxDepth.tooltip","Maximum folder depth the sync scanner will traverse.")})}),e.jsx("input",{type:"number",className:t.numberInput,value:x.maxDepth??10,min:1,max:100,onChange:a=>{const d=parseInt(a.target.value,10);isNaN(d)||j(v=>({...v,maxDepth:d}))}})]}),e.jsxs("div",{className:t.syncField,children:[e.jsx("label",{children:e.jsx(o,{label:s("settings.sync.maxInstances","Max Instances"),tooltip:s("settings.sync.maxInstances.tooltip","Maximum number of Roblox instances to index during sync.")})}),e.jsx("input",{type:"number",className:t.numberInput,value:x.maxInstances??5e3,min:100,max:5e4,step:100,onChange:a=>{const d=parseInt(a.target.value,10);isNaN(d)||j(v=>({...v,maxInstances:d}))}})]})]}),e.jsx("button",{className:t.saveBtn,onClick:l,disabled:T,children:T?s("common.loading"):s("settings.sync.save","Save")})]})]}),e.jsxs("div",{className:t.card,children:[e.jsx("div",{className:t.cardHeader,children:e.jsx(o,{label:s("settings.language.title","Language"),tooltip:s("settings.language.title.tooltip","Choose how the dashboard interface text is localized.")})}),e.jsxs("div",{className:t.langRow,children:[e.jsx("label",{children:e.jsx(o,{label:s("settings.language.dashboard","Dashboard Language"),tooltip:s("settings.language.dashboard.tooltip","Overrides the dashboard language or follows the system language when set to Auto.")})}),e.jsxs("select",{className:t.select,value:r,onChange:a=>y(a.target.value),children:[e.jsx("option",{value:K,children:s("settings.language.auto","Auto")}),V.map(a=>e.jsx("option",{value:a,children:$e[a]??a},a))]})]})]})]})}export{Ve as Component};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{r as c,a as N,D as S,u as L,k as R,l as P,j as e,d as B,i as $,T as j,m as E}from"./index-CQdnwaWW.js";import{I as x}from"./InfoLabel-CYxzWZMs.js";import{C as A}from"./ConfirmModal-DPwJWgnH.js";import{S as O}from"./StatusBadge-Ch9hAD89.js";import{a as D,u as H,T as M}from"./tier-promo-config-DU-2XXTa.js";import{t as p}from"./TierPromo.module-BBX3CVXn.js";const F=5e3;function U(){const[t,i]=c.useState(null),[_,g]=c.useState(null),[o,l]=c.useState([]),[m,f]=c.useState(!0),h=c.useRef(null),y=c.useRef(null),r=c.useCallback(async()=>{try{const d=await N.get("/sync/status");i(d)}catch{}},[]),b=c.useCallback(async()=>{try{const d=await N.get("/sync/config");g(d)}catch{}},[]),n=c.useCallback(async()=>{try{const d=await N.get("/sync/history",{limit:"30"});l(d.entries??[])}catch{l([])}},[]),u=c.useCallback(async()=>{await Promise.all([r(),b(),n()]),f(!1)},[r,b,n]),v=c.useCallback(()=>{u()},[u]),T=c.useCallback(async()=>{await N.post("/api/dashboard/sync/history/clear"),l([]),r()},[r]);return c.useEffect(()=>(u(),y.current=setInterval(u,F),()=>{y.current&&clearInterval(y.current)}),[u]),c.useEffect(()=>{const d=new S;h.current=d,d.connect();const a=d.on("sync",()=>{r(),n()});return()=>{a(),d.disconnect(),h.current=null}},[r,n]),{status:t,config:_,history:o,loading:m,refresh:v,clearHistory:T}}function G({icon:t,title:i,description:_,benefits:g,upgradeLabel:o,upgradeHref:l}){const{t:m}=L(),[f,h]=c.useState(!1),{trackEvent:y}=R(),{pathname:r}=P(),b=r.replace(/^\//,"").split("/")[0]||"overview";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:p.panel,children:[t&&e.jsx("div",{className:p.panelIcon,children:t}),e.jsx("div",{className:p.panelTitle,children:i}),e.jsx("div",{className:p.panelDesc,children:_}),e.jsx("ul",{className:p.benefitList,children:g.map(n=>e.jsx("li",{className:p.benefitItem,children:n},n))}),e.jsxs("div",{className:p.actions,children:[e.jsx("button",{className:`${p.btn} ${p.btnOutline}`,onClick:()=>{y("dashboard_tier_toggle",{page:b}),h(!0)},children:m("tier.compare","Basic vs Pro")}),e.jsx("a",{className:`${p.btn} ${p.btnPrimary}`,href:l,target:"_blank",rel:"noreferrer",onClick:()=>y("dashboard_upgrade_click",{page:b}),children:o})]})]}),f&&e.jsx(D,{onClose:()=>h(!1)})]})}const V="_page_xmkt1_2",W="_card_xmkt1_10",q="_cardHeader_xmkt1_17",z="_clearButton_xmkt1_29",Y="_statusRow_xmkt1_39",J="_metaItem_xmkt1_46",K="_statusGrid_xmkt1_52",Q="_table_xmkt1_71",X="_directionRail_xmkt1_99",Z="_endpointLabel_xmkt1_105",ee="_optionRail_xmkt1_109",te="_directionOption_xmkt1_115",se="_directionOptionActive_xmkt1_129",ne="_directionOptionInactive_xmkt1_133",ie="_direction_forward_xmkt1_139",ae="_direction_bidirectional_xmkt1_143",ce="_direction_reverse_xmkt1_147",oe="_lockBadge_xmkt1_152",le="_proBadge_xmkt1_160",re="_forwardBadge_xmkt1_174",de="_configGrid_xmkt1_187",pe="_configItem_xmkt1_193",ue="_configLabel_xmkt1_199",me="_configValue_xmkt1_207",ye="_logContainer_xmkt1_214",ge="_logEntry_xmkt1_221",he="_logTime_xmkt1_233",xe="_logType_xmkt1_239",_e="_logTypeWrite_xmkt1_248",fe="_logTypeUpdate_xmkt1_252",je="_logTypeDelete_xmkt1_256",be="_logTypeIdle_xmkt1_260",ke="_logPath_xmkt1_264",ve="_logEmpty_xmkt1_271",we="_overlay_xmkt1_278",Ne="_overlayTitle_xmkt1_288",Te="_overlayMessage_xmkt1_295",Ie="_checklist_xmkt1_301",Ce="_checkItem_xmkt1_311",Le="_upgradePanel_xmkt1_327",Se="_upgradePanelHeader_xmkt1_334",Re="_benefitList_xmkt1_342",Pe="_benefitItem_xmkt1_351",Be="_upgradeActions_xmkt1_366",$e="_btn_xmkt1_371",Ee="_btnPrimary_xmkt1_388",Ae="_disabled_xmkt1_399",s={page:V,card:W,cardHeader:q,clearButton:z,statusRow:Y,metaItem:J,statusGrid:K,table:Q,directionRail:X,endpointLabel:Z,optionRail:ee,directionOption:te,directionOptionActive:se,directionOptionInactive:ne,direction_forward:ie,direction_bidirectional:ae,direction_reverse:ce,lockBadge:oe,proBadge:le,forwardBadge:re,configGrid:de,configItem:pe,configLabel:ue,configValue:me,logContainer:ye,logEntry:ge,logTime:he,logType:xe,logTypeWrite:_e,logTypeUpdate:fe,logTypeDelete:je,logTypeIdle:be,logPath:ke,logEmpty:ve,overlay:we,overlayTitle:Ne,overlayMessage:Te,checklist:Ie,checkItem:Ce,upgradePanel:Le,upgradePanelHeader:Se,benefitList:Re,benefitItem:Pe,upgradeActions:Be,btn:$e,btnPrimary:Ee,disabled:Ae},Oe=[{key:"forward",symbol:"←"},{key:"bidirectional",symbol:"↔"},{key:"reverse",symbol:"→"}];function De(t){const i=new Date(t);return`${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}`}function He(t){return t<1024?`${t}B`:t<1024*1024?`${(t/1024).toFixed(0)}KB`:`${(t/(1024*1024)).toFixed(0)}MB`}function Me(t){switch(t){case"write":return s.logTypeWrite;case"update":return s.logTypeUpdate;case"delete":return s.logTypeDelete;default:return s.logTypeIdle}}function Fe(t){switch(t){case"syncing":return"syncing";case"initializing":return"initializing";case"idle":return"idle";default:return"offline"}}function Ue(t,i,_,g){const o=t(`sync.directions.cat.${i}`,i.charAt(0).toUpperCase()+i.slice(1)),l=t("sync.directions.endpoint.local","Local"),m=t("sync.directions.endpoint.studio","Studio");switch(_){case"forward":return[`${o}: ${l} <- ${m}`,t("sync.directions.tooltip.forward.body","Studio changes sync to local files only")].join(`
|
|
2
|
-
`);case"bidirectional":return[`${o}: ${l} <-> ${m}`,t("sync.directions.tooltip.bidirectional.body","Two-way sync between Local and Studio"),g?t("sync.directions.tooltip.proRequired","Pro required in Basic tier"):""].filter(Boolean).join(`
|
|
3
|
-
`);case"reverse":return[`${o}: ${l} -> ${m}`,t("sync.directions.tooltip.reverse.body","Push local file changes to Studio"),g?t("sync.directions.tooltip.proRequired","Pro required in Basic tier"):""].filter(Boolean).join(`
|
|
4
|
-
`);default:return o}}const Ge=["scripts","values","containers","data","services"];function Ve(t,i){return i==="manual"?t("sync.directions.mode.manual","Manual"):i==="auto"?t("sync.directions.mode.auto","Auto"):"-"}function We(t,i){return i==="manual"?t("sync.directions.mode.manual.tooltip","Applies sync changes only when you trigger them manually."):i==="auto"?t("sync.directions.mode.auto.tooltip","Applies sync changes automatically when updates arrive."):""}function qe(t,i){switch(i){case"write":return t("sync.log.type.write","WRITE");case"update":return t("sync.log.type.update","UPDATE");case"delete":return t("sync.log.type.delete","DELETE");default:return t("sync.log.type.idle","IDLE")}}function ze(t,i){switch(i){case"write":return t("sync.log.type.write.tooltip","A new sync output was written to disk.");case"update":return t("sync.log.type.update.tooltip","An existing synced file or instance was updated.");case"delete":return t("sync.log.type.delete.tooltip","A synced file or instance was removed.");default:return t("sync.log.type.idle.tooltip","A sync event was recorded without a file mutation.")}}function et(){const{t}=L(),{level:i}=B(),{tier:_,loading:g}=H(),o=U(),{show:l}=$(),[m,f]=c.useState(!1),[h,y]=c.useState(!1),r=!g&&_==="basic";if(i==="L0"||i==="L1")return e.jsx("div",{className:s.page,children:e.jsx("div",{className:s.card,children:e.jsxs("div",{className:s.overlay,children:[e.jsx("div",{className:s.overlayTitle,children:t("sync.overlay.title","Roblox Studio plugin required")}),e.jsx("div",{className:s.overlayMessage,children:t("sync.overlay.message","Sync status will be available once the Roblox Studio plugin connects.")}),e.jsxs("ul",{className:s.checklist,children:[e.jsx("li",{className:s.checkItem,children:t("sync.overlay.check1","Is Roblox Studio running?")}),e.jsx("li",{className:s.checkItem,children:t("sync.overlay.check2","Is the Weppy MCP plugin installed?")}),e.jsx("li",{className:s.checkItem,children:t("sync.overlay.check3","Are HTTP Requests enabled in Studio settings?")})]})]})})});const n=o.status,u=o.config,v=o.history,T=Fe(n==null?void 0:n.state),d=async()=>{y(!0);try{await o.clearHistory(),l(t("toast.clearSuccess","Cleared successfully"),"success"),f(!1)}catch{l(t("toast.clearFailed","Failed to clear data"),"error")}finally{y(!1)}};return e.jsxs("div",{className:s.page,children:[e.jsxs("div",{className:s.card,children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx(j,{text:t("sync.status.title.tooltip","Current Studio and local file sync status for this place."),children:t("sync.status.title","Sync Status")}),r&&e.jsx(j,{text:t("sync.status.forwardOnly.tooltip","Basic tier allows Studio to local forward sync only."),children:e.jsx("span",{className:s.forwardBadge,children:t("sync.status.forwardOnly","Forward Only")})})]}),e.jsxs("div",{className:s.statusRow,children:[e.jsx(O,{status:T}),(n==null?void 0:n.placeName)&&e.jsxs("span",{className:s.metaItem,children:[e.jsx(x,{label:t("sync.status.place","Place"),tooltip:t("sync.status.place.tooltip","Connected Roblox place name and place ID.")}),": ",n.placeName,n.placeId?` (${n.placeId})`:""]})]}),e.jsxs("dl",{className:s.statusGrid,children:[(n==null?void 0:n.syncRoot)&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(x,{label:t("sync.status.path","Path"),tooltip:t("sync.status.path.tooltip","Local filesystem root currently used for sync output.")})}),e.jsx("dd",{children:n.syncRoot})]}),(n==null?void 0:n.instanceCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(x,{label:t("sync.status.instances","Instances"),tooltip:t("sync.status.instances.tooltip","Total synced Roblox instances tracked in the local mirror.")})}),e.jsx("dd",{children:n.instanceCount})]}),(n==null?void 0:n.scriptCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(x,{label:t("sync.status.scripts","Scripts"),tooltip:t("sync.status.scripts.tooltip","Total synced script files currently indexed for this place.")})}),e.jsx("dd",{children:n.scriptCount})]}),(n==null?void 0:n.state)==="syncing"&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(x,{label:t("sync.status.state","State"),tooltip:t("sync.status.state.tooltip","Current runtime sync state reported by the server.")})}),e.jsx("dd",{children:t("status.syncing","Syncing")})]})]})]}),(n==null?void 0:n.directions)&&e.jsxs("div",{className:s.card,children:[e.jsx("div",{className:s.cardHeader,children:e.jsx(j,{text:t("sync.directions.title.tooltip","Per-category sync direction and apply behavior between Local and Studio."),children:t("sync.directions.title","Sync Directions")})}),e.jsxs("table",{className:s.table,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx(x,{label:t("sync.directions.type","Type"),tooltip:t("sync.directions.type.tooltip","Sync category affected by this rule.")})}),e.jsx("th",{children:e.jsx(x,{label:t("sync.directions.direction","Direction"),tooltip:t("sync.directions.direction.tooltip","Whether each category syncs from Studio, to Studio, or both ways.")})}),e.jsx("th",{children:e.jsx(x,{label:t("sync.directions.applyMode","Apply Mode"),tooltip:t("sync.directions.applyMode.tooltip","How incoming sync changes are applied for this category.")})})]})}),e.jsx("tbody",{children:Ge.map(a=>{var C;const w=n.directions[a],I=(C=n.applyModes)==null?void 0:C[a];return e.jsxs("tr",{children:[e.jsx("td",{children:t(`sync.directions.cat.${a}`,a.charAt(0).toUpperCase()+a.slice(1))}),e.jsx("td",{children:e.jsxs("div",{className:s.directionRail,"aria-label":`${a}-direction-rail`,children:[e.jsx(j,{text:t("sync.directions.endpoint.local.tooltip","Local files on disk are always shown on the left side of the direction rail."),children:e.jsx("span",{className:s.endpointLabel,children:t("sync.directions.endpoint.local","Local")})}),e.jsx("span",{className:s.optionRail,children:Oe.map(k=>e.jsx(E,{text:Ue(t,a,k.key,r),children:e.jsx("span",{className:`${s.directionOption} ${w===k.key?s.directionOptionActive:s.directionOptionInactive} ${s[`direction_${k.key}`]??""}`,"data-active":w===k.key?"true":"false",children:k.symbol})},k.key))}),e.jsx(j,{text:t("sync.directions.endpoint.studio.tooltip","Roblox Studio is always shown on the right side of the direction rail."),children:e.jsx("span",{className:s.endpointLabel,children:t("sync.directions.endpoint.studio","Studio")})})]})}),e.jsx("td",{children:e.jsx(j,{text:We(t,I),children:Ve(t,I)})})]},a)})})]})]}),u&&e.jsxs("div",{className:s.card,children:[e.jsx("div",{className:s.cardHeader,children:t("sync.config.title","Sync Config")}),e.jsxs("div",{className:s.configGrid,children:[e.jsxs("div",{className:s.configItem,children:[e.jsx("span",{className:s.configLabel,children:t("sync.config.maxDepth","Max Depth")}),e.jsx("span",{className:s.configValue,children:u.maxDepth})]}),e.jsxs("div",{className:s.configItem,children:[e.jsx("span",{className:s.configLabel,children:t("sync.config.maxInstances","Max Instances")}),e.jsx("span",{className:s.configValue,children:u.maxInstances})]}),e.jsxs("div",{className:s.configItem,children:[e.jsx("span",{className:s.configLabel,children:t("sync.config.dirLimit","Dir Limit")}),e.jsx("span",{className:s.configValue,children:He(u.directorySizeLimit)})]})]})]}),e.jsxs("div",{className:s.card,children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx("span",{children:t("sync.log.title","Sync Log")}),e.jsx("button",{className:s.clearButton,onClick:()=>f(!0),children:t("common.clear","Clear")})]}),e.jsx("div",{className:s.logContainer,children:v.length===0?e.jsx("div",{className:s.logEmpty,children:t("sync.log.empty","No sync events yet")}):v.map((a,w)=>e.jsxs("div",{className:s.logEntry,children:[e.jsx("span",{className:s.logTime,children:De(a.timestamp)}),e.jsx(j,{text:ze(t,a.type),children:e.jsx("span",{className:`${s.logType} ${Me(a.type)}`,children:qe(t,a.type)})}),e.jsxs("span",{className:s.logPath,children:[a.path,a.details?` — ${a.details}`:""]})]},w))})]}),r&&e.jsx(G,{title:t("sync.upgrade.title","Unlock Full Sync with Pro"),description:t("tier.banner.save","Save AI tokens with Pro!"),benefits:[t("sync.upgrade.benefit1","Bidirectional sync — edit files, auto-apply to Studio"),t("sync.upgrade.benefit2","Reverse sync — push file changes back to Studio"),t("sync.upgrade.benefit3","Full sync history and detailed change log")],upgradeLabel:t("sync.upgrade.buy","Upgrade to Pro"),upgradeHref:M.sync}),e.jsx(A,{open:m,title:t("sync.clear.title","Clear sync log?"),message:t("sync.clear.message","This permanently removes the stored sync log for the current place."),cancelLabel:t("common.cancel","Cancel"),confirmLabel:t("common.clear","Clear"),loading:h,onCancel:()=>!h&&f(!1),onConfirm:d})]})}export{et as Component};
|