@spikonado/sprocket 0.0.0-canary.1

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.
Files changed (39) hide show
  1. package/LICENSE +192 -0
  2. package/README.md +113 -0
  3. package/bin/sprocket.js +5 -0
  4. package/lib/launcher.js +77 -0
  5. package/package.json +37 -0
  6. package/web/_app/immutable/assets/0.MjIP0V6k.css +2 -0
  7. package/web/_app/immutable/assets/dm-sans-latin-400-normal.BwCSEQnW.woff +0 -0
  8. package/web/_app/immutable/assets/dm-sans-latin-400-normal.CW0RaeGs.woff2 +0 -0
  9. package/web/_app/immutable/assets/dm-sans-latin-ext-400-normal.BjWJ59Pq.woff +0 -0
  10. package/web/_app/immutable/assets/dm-sans-latin-ext-400-normal.BtiwyxMk.woff2 +0 -0
  11. package/web/_app/immutable/assets/ibm-plex-sans-cyrillic-ext-wght-normal.d45eAU9y.woff2 +0 -0
  12. package/web/_app/immutable/assets/ibm-plex-sans-cyrillic-wght-normal.BAAhND-U.woff2 +0 -0
  13. package/web/_app/immutable/assets/ibm-plex-sans-greek-wght-normal.CmyJS8uq.woff2 +0 -0
  14. package/web/_app/immutable/assets/ibm-plex-sans-latin-ext-wght-normal.CIII54If.woff2 +0 -0
  15. package/web/_app/immutable/assets/ibm-plex-sans-latin-wght-normal.IvpUvPa2.woff2 +0 -0
  16. package/web/_app/immutable/assets/ibm-plex-sans-vietnamese-wght-normal.Dg1JeJN0.woff2 +0 -0
  17. package/web/_app/immutable/chunks/B4Yz9Vq2.js +1 -0
  18. package/web/_app/immutable/chunks/BKoJaiW1.js +1 -0
  19. package/web/_app/immutable/chunks/BiY-aars.js +1 -0
  20. package/web/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  21. package/web/_app/immutable/chunks/ByDH6pMF.js +6 -0
  22. package/web/_app/immutable/chunks/Ci7cM3I3.js +3 -0
  23. package/web/_app/immutable/chunks/D5Hn5yYF.js +1 -0
  24. package/web/_app/immutable/chunks/D5i3nqbJ.js +2 -0
  25. package/web/_app/immutable/chunks/NRo3CtPD.js +1 -0
  26. package/web/_app/immutable/chunks/xihTtKlq.js +1 -0
  27. package/web/_app/immutable/entry/app.CvlJsqsu.js +2 -0
  28. package/web/_app/immutable/entry/start.DfPHbTSK.js +1 -0
  29. package/web/_app/immutable/nodes/0.D0tq1llq.js +1 -0
  30. package/web/_app/immutable/nodes/1.swTsK2nI.js +1 -0
  31. package/web/_app/immutable/nodes/2.CDb1NwCd.js +71 -0
  32. package/web/_app/immutable/nodes/3.BNDSP7Fl.js +1 -0
  33. package/web/_app/immutable/nodes/4.Ctp3kMog.js +1 -0
  34. package/web/_app/version.json +1 -0
  35. package/web/callback.html +43 -0
  36. package/web/favicon.png +0 -0
  37. package/web/index.html +40 -0
  38. package/web/logo.png +0 -0
  39. package/web/pair.html +44 -0
@@ -0,0 +1 @@
1
+ import{$ as e,B as t,R as n,U as r,at as i,et as a,g as o,it as s}from"../chunks/Ci7cM3I3.js";import{c,t as l}from"../chunks/B4Yz9Vq2.js";import"../chunks/xihTtKlq.js";import{n as u}from"../chunks/ByDH6pMF.js";import{t as d}from"../chunks/BiY-aars.js";import"../chunks/BKoJaiW1.js";function f(f,p){i(p,!0);let m=()=>a(u,`$authState`,h),[h,g]=e();t(()=>{m().isReady&&l(c(`/`),{replaceState:!0})}),o(`1yczfzs`,e=>{n(()=>{r.title=`Signing In`})}),d(f,{title:`Completing sign-in`,description:`Sprocket is finishing authentication and will return to your workspace automatically.`}),s(),g()}export{f as component};
@@ -0,0 +1 @@
1
+ import{C as e,D as t,K as n,M as r,N as i,R as a,T as o,U as s,W as c,Y as l,Z as u,at as d,c as f,dt as p,g as m,it as h,n as g,u as _,w as v,z as y}from"../chunks/Ci7cM3I3.js";import{c as b,t as x}from"../chunks/B4Yz9Vq2.js";import"../chunks/xihTtKlq.js";import{t as S}from"../chunks/BiY-aars.js";import{a as C,c as w,i as T,n as E,r as D,s as O,t as k}from"../chunks/NRo3CtPD.js";import"../chunks/BKoJaiW1.js";var A=t(`<p class="text-sm text-rose-300"> </p>`),j=t(`<form class="space-y-4"><label class="block space-y-2"><span class="text-sm text-slate-400">Pairing token</span> <input class="w-full rounded-xl border border-white/10 bg-white/3 px-4 py-3 text-sm text-white outline-none placeholder:text-slate-500 focus:border-white/20" placeholder="Paste token" autocomplete="off"/></label> <!> <button class="w-full rounded-xl bg-white px-4 py-3 text-sm font-medium text-black transition hover:bg-slate-100 disabled:cursor-not-allowed disabled:opacity-60" type="submit"> </button></form>`);function M(t,M){d(M,!0);let N=u(``),P=u(null),F=u(!1);g(()=>{I()});async function I(){let e=O();if(!e)return;let t=T();if(t){l(N,t,!0),await L();return}let n=await D(e);n?.pairingCredential&&(l(N,n.pairingCredential,!0),await L())}async function L(){let e=O();if(!e){l(P,`Unable to resolve the Sprocket server URL.`);return}if(!i(N).trim()){l(P,`Enter a pairing token to connect.`);return}l(F,!0),l(P,null);try{let t=C(),n=t?`/${w(t)}`:`/`;await k(e,i(N).trim()),E(),await x(b(n),{replaceState:!0})}catch(e){l(P,e instanceof Error?e.message:`Failed to pair with the Sprocket server.`,!0)}finally{l(F,!1)}}m(`aj1tv1`,e=>{a(()=>{s.title=`Pair with Sprocket`})}),S(t,{title:`Connect to Sprocket`,description:`Enter the pairing token from your running Sprocket server.`,children:(t,a)=>{var s=j(),u=c(s),d=n(c(u),2);_(d),p(u);var m=n(u,2),h=e=>{var t=A(),n=c(t,!0);p(t),y(()=>v(n,i(P))),o(e,t)};e(m,e=>{i(P)&&e(h)});var g=n(m,2),b=c(g,!0);p(g),p(s),y(()=>{g.disabled=i(F),v(b,i(F)?`Connecting…`:`Connect`)}),r(`submit`,s,e=>{e.preventDefault(),L()}),f(d,()=>i(N),e=>l(N,e)),o(t,s)},$$slots:{default:!0}}),h()}export{M as component};
@@ -0,0 +1 @@
1
+ {"version":"1784544422128"}
@@ -0,0 +1,43 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>web</title>
5
+ <meta charset="utf-8" />
6
+ <link rel="icon" href="./favicon.png" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <link href="./_app/immutable/entry/start.DfPHbTSK.js" rel="modulepreload">
9
+ <link href="./_app/immutable/chunks/B4Yz9Vq2.js" rel="modulepreload">
10
+ <link href="./_app/immutable/chunks/Ci7cM3I3.js" rel="modulepreload">
11
+ <link href="./_app/immutable/chunks/D5Hn5yYF.js" rel="modulepreload">
12
+ <link href="./_app/immutable/entry/app.CvlJsqsu.js" rel="modulepreload">
13
+ <link href="./_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
14
+ <link href="./_app/immutable/nodes/0.D0tq1llq.js" rel="modulepreload">
15
+ <link href="./_app/immutable/chunks/ByDH6pMF.js" rel="modulepreload">
16
+ <link href="./_app/immutable/chunks/D5i3nqbJ.js" rel="modulepreload">
17
+ <link href="./_app/immutable/nodes/3.BNDSP7Fl.js" rel="modulepreload">
18
+ <link href="./_app/immutable/chunks/BiY-aars.js" rel="modulepreload">
19
+ <link href="./_app/immutable/chunks/BKoJaiW1.js" rel="modulepreload">
20
+
21
+ <link href="./_app/immutable/assets/0.MjIP0V6k.css" rel="stylesheet">
22
+ </head>
23
+ <body data-sveltekit-preload-data="hover">
24
+ <div style="display: contents">
25
+ <script>
26
+ {
27
+ __sveltekit_1evhjw5 = {
28
+ base: new URL(".", location).pathname.slice(0, -1)
29
+ };
30
+
31
+ const element = document.currentScript.parentElement;
32
+
33
+ Promise.all([
34
+ import("./_app/immutable/entry/start.DfPHbTSK.js"),
35
+ import("./_app/immutable/entry/app.CvlJsqsu.js")
36
+ ]).then(([kit, app]) => {
37
+ kit.start(app, element);
38
+ });
39
+ }
40
+ </script>
41
+ </div>
42
+ </body>
43
+ </html>
Binary file
package/web/index.html ADDED
@@ -0,0 +1,40 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>web</title>
5
+ <meta charset="utf-8" />
6
+ <link rel="icon" href="/favicon.png" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <link href="/_app/immutable/entry/start.DfPHbTSK.js" rel="modulepreload">
9
+ <link href="/_app/immutable/chunks/B4Yz9Vq2.js" rel="modulepreload">
10
+ <link href="/_app/immutable/chunks/Ci7cM3I3.js" rel="modulepreload">
11
+ <link href="/_app/immutable/chunks/D5Hn5yYF.js" rel="modulepreload">
12
+ <link href="/_app/immutable/entry/app.CvlJsqsu.js" rel="modulepreload">
13
+ <link href="/_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
14
+ <link href="/_app/immutable/nodes/0.D0tq1llq.js" rel="modulepreload">
15
+ <link href="/_app/immutable/chunks/ByDH6pMF.js" rel="modulepreload">
16
+ <link href="/_app/immutable/chunks/D5i3nqbJ.js" rel="modulepreload">
17
+
18
+ <link href="/_app/immutable/assets/0.MjIP0V6k.css" rel="stylesheet">
19
+ </head>
20
+ <body data-sveltekit-preload-data="hover">
21
+ <div style="display: contents">
22
+ <script>
23
+ {
24
+ __sveltekit_1evhjw5 = {
25
+ base: ""
26
+ };
27
+
28
+ const element = document.currentScript.parentElement;
29
+
30
+ Promise.all([
31
+ import("/_app/immutable/entry/start.DfPHbTSK.js"),
32
+ import("/_app/immutable/entry/app.CvlJsqsu.js")
33
+ ]).then(([kit, app]) => {
34
+ kit.start(app, element);
35
+ });
36
+ }
37
+ </script>
38
+ </div>
39
+ </body>
40
+ </html>
package/web/logo.png ADDED
Binary file
package/web/pair.html ADDED
@@ -0,0 +1,44 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>web</title>
5
+ <meta charset="utf-8" />
6
+ <link rel="icon" href="./favicon.png" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <link href="./_app/immutable/entry/start.DfPHbTSK.js" rel="modulepreload">
9
+ <link href="./_app/immutable/chunks/B4Yz9Vq2.js" rel="modulepreload">
10
+ <link href="./_app/immutable/chunks/Ci7cM3I3.js" rel="modulepreload">
11
+ <link href="./_app/immutable/chunks/D5Hn5yYF.js" rel="modulepreload">
12
+ <link href="./_app/immutable/entry/app.CvlJsqsu.js" rel="modulepreload">
13
+ <link href="./_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
14
+ <link href="./_app/immutable/nodes/0.D0tq1llq.js" rel="modulepreload">
15
+ <link href="./_app/immutable/chunks/ByDH6pMF.js" rel="modulepreload">
16
+ <link href="./_app/immutable/chunks/D5i3nqbJ.js" rel="modulepreload">
17
+ <link href="./_app/immutable/nodes/4.Ctp3kMog.js" rel="modulepreload">
18
+ <link href="./_app/immutable/chunks/BiY-aars.js" rel="modulepreload">
19
+ <link href="./_app/immutable/chunks/NRo3CtPD.js" rel="modulepreload">
20
+ <link href="./_app/immutable/chunks/BKoJaiW1.js" rel="modulepreload">
21
+
22
+ <link href="./_app/immutable/assets/0.MjIP0V6k.css" rel="stylesheet">
23
+ </head>
24
+ <body data-sveltekit-preload-data="hover">
25
+ <div style="display: contents">
26
+ <script>
27
+ {
28
+ __sveltekit_1evhjw5 = {
29
+ base: new URL(".", location).pathname.slice(0, -1)
30
+ };
31
+
32
+ const element = document.currentScript.parentElement;
33
+
34
+ Promise.all([
35
+ import("./_app/immutable/entry/start.DfPHbTSK.js"),
36
+ import("./_app/immutable/entry/app.CvlJsqsu.js")
37
+ ]).then(([kit, app]) => {
38
+ kit.start(app, element);
39
+ });
40
+ }
41
+ </script>
42
+ </div>
43
+ </body>
44
+ </html>