@sanity/runtime-cli 1.0.2
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/README.md +548 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/actions/functions/dev.d.ts +1 -0
- package/dist/actions/functions/dev.js +5 -0
- package/dist/actions/functions/invoke.d.ts +2 -0
- package/dist/actions/functions/invoke.js +17 -0
- package/dist/actions/functions/logs.d.ts +1 -0
- package/dist/actions/functions/logs.js +14 -0
- package/dist/actions/functions/test.d.ts +2 -0
- package/dist/actions/functions/test.js +13 -0
- package/dist/commands/functions/dev.d.ts +9 -0
- package/dist/commands/functions/dev.js +15 -0
- package/dist/commands/functions/invoke.d.ts +13 -0
- package/dist/commands/functions/invoke.js +25 -0
- package/dist/commands/functions/logs.d.ts +9 -0
- package/dist/commands/functions/logs.js +14 -0
- package/dist/commands/functions/test.d.ts +14 -0
- package/dist/commands/functions/test.js +43 -0
- package/dist/config.d.ts +6 -0
- package/dist/config.js +9 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/server/app.d.ts +3 -0
- package/dist/server/app.js +36 -0
- package/dist/server/static/api.js +50 -0
- package/dist/server/static/components/api-base.js +10 -0
- package/dist/server/static/components/app.css +155 -0
- package/dist/server/static/components/function-list.js +49 -0
- package/dist/server/static/components/network-spinner.js +71 -0
- package/dist/server/static/components/payload-panel.js +45 -0
- package/dist/server/static/components/response-panel.js +83 -0
- package/dist/server/static/index.html +55 -0
- package/dist/server/static/sanity-logo-sm.svg +1 -0
- package/dist/server/static/vendor/vendor.bundle.js +26857 -0
- package/dist/utils/build-payload.d.ts +2 -0
- package/dist/utils/build-payload.js +15 -0
- package/dist/utils/child-process-wrapper.js +33 -0
- package/dist/utils/invoke-local.d.ts +2 -0
- package/dist/utils/invoke-local.js +51 -0
- package/dist/utils/is-dependency.d.ts +1 -0
- package/dist/utils/is-dependency.js +7 -0
- package/dist/utils/is-json.d.ts +1 -0
- package/dist/utils/is-json.js +12 -0
- package/dist/utils/types.d.ts +16 -0
- package/dist/utils/types.js +1 -0
- package/oclif.manifest.json +179 -0
- package/package.json +85 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<link href="https://unpkg.com/m-@3.2.0/dist/m-.woff2" rel="preload" as="font" crossorigin>
|
|
5
|
+
<link href="./components/app.css" rel="stylesheet">
|
|
6
|
+
<link href="https://unpkg.com/m-@3.2.0/dist/m-.css" rel="stylesheet">
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<header data-slot="header">
|
|
10
|
+
<div class="logo pad-sm">
|
|
11
|
+
<div class="logo-image">
|
|
12
|
+
<img src="./sanity-logo-sm.svg" alt="Sanity" />
|
|
13
|
+
</div>
|
|
14
|
+
<span class="logo-text pad-xs">Functions</span>
|
|
15
|
+
</div>
|
|
16
|
+
</header>
|
|
17
|
+
<nav>
|
|
18
|
+
<m-container slot="left-sidebar">
|
|
19
|
+
<m-box class="pad-0">
|
|
20
|
+
<function-list></function-list>
|
|
21
|
+
</m-box>
|
|
22
|
+
</m-container>
|
|
23
|
+
</nav>
|
|
24
|
+
<main>
|
|
25
|
+
<m-container>
|
|
26
|
+
<m-row>
|
|
27
|
+
<m-col>
|
|
28
|
+
<payload-panel></payload-panel>
|
|
29
|
+
</m-col>
|
|
30
|
+
</m-row>
|
|
31
|
+
</m-container>
|
|
32
|
+
<m-container>
|
|
33
|
+
<m-row>
|
|
34
|
+
<m-col>
|
|
35
|
+
<response-panel></response-panel>
|
|
36
|
+
</m-col>
|
|
37
|
+
</m-row>
|
|
38
|
+
</m-container>
|
|
39
|
+
</main>
|
|
40
|
+
<footer>
|
|
41
|
+
<div class="pad-sm">
|
|
42
|
+
<svg viewBox="0 0 105 22" fill="none" xmlns="http://www.w3.org/2000/svg" height="1em" class="SanityLogo__Icon-sc-1s154od-0 ghCmDY"><title>Sanity</title><path opacity="0.7" d="M78.1793 7.99261V21.0028H73.9031V10.2138L78.1793 7.99261Z" fill="currentColor"></path><path opacity="0.7" d="M20.9511 21.33L30.944 16.1051L29.7121 12.9141L23.1332 15.9821L20.9511 21.33Z" fill="currentColor"></path><path opacity="0.5" d="M73.9031 10.2027L84.7443 4.65477L82.9126 1.5571L73.9031 5.95997V10.2027Z" fill="currentColor"></path><path opacity="0.7" d="M43.3705 6.96233V21.0028H39.2927V1.00714L43.3705 6.96233Z" fill="currentColor"></path><path opacity="0.5" d="M27.1299 6.18617L20.9511 21.33L17.7731 18.5943L25.1353 1.00714L27.1299 6.18617Z" fill="currentColor"></path><path d="M25.1353 1.00714H29.3477L37.1386 21.0028H32.8269L25.1353 1.00714Z" fill="currentColor"></path><path d="M44.0012 1.00714L52.9824 14.6682V21.0028L39.2927 1.00714H44.0012Z" fill="currentColor"></path><path d="M64.9183 1.00714H60.6739V21.0063H64.9183V1.00714Z" fill="currentColor"></path><path d="M73.9031 4.65474H67.37V1.00714H82.5867L84.7443 4.65474H78.1793H73.9031Z" fill="currentColor"></path><path opacity="0.5" d="M97.2754 13.4153V21.0028H93.0629V13.4153" fill="currentColor"></path><path d="M93.0629 13.4152L100.191 1.00714H104.666L97.2754 13.4152H93.0629Z" fill="currentColor"></path><path opacity="0.7" d="M93.063 13.4152L85.7363 1.00714H90.3456L95.3092 9.51008L93.063 13.4152Z" fill="currentColor"></path><path d="M1.96126 3.31479C1.96126 6.09921 3.71145 7.75595 7.21536 8.62956L10.9283 9.47533C14.2444 10.2236 16.2639 12.0822 16.2639 15.1103C16.2897 16.4295 15.8531 17.7173 15.0274 18.7579C15.0274 15.7368 13.4367 14.1044 9.59972 13.1229L5.95409 12.3085C3.03475 11.6541 0.781478 10.1262 0.781478 6.83709C0.766123 5.56693 1.18116 4.32781 1.96126 3.31479" fill="currentColor"></path><path opacity="0.7" d="M52.9824 13.6415V1.00714H57.0602V21.0028H52.9824V13.6415Z" fill="currentColor"></path><path opacity="0.7" d="M12.7458 14.3689C14.3294 15.3643 15.0238 16.7565 15.0238 18.7544C13.713 20.4041 11.4101 21.33 8.70333 21.33C4.14718 21.33 0.958577 19.1268 0.25 15.2982H4.62547C5.18878 17.0559 6.68034 17.8703 8.67144 17.8703C11.1019 17.8703 12.7174 16.5964 12.7493 14.3619" fill="currentColor"></path><path opacity="0.7" d="M4.23567 7.44267C3.5125 7.02045 2.9192 6.41375 2.51873 5.68697C2.11827 4.96019 1.92558 4.14045 1.96113 3.31476C3.22594 1.67891 5.42608 0.679993 8.10804 0.679993C12.7492 0.679993 15.4347 3.08852 16.0972 6.47856H11.8883C11.4242 5.14203 10.2621 4.10136 8.14347 4.10136C5.87957 4.10136 4.33487 5.39611 4.24629 7.44267" fill="currentColor"></path></svg>
|
|
43
|
+
|
|
44
|
+
<div class="footer-text">
|
|
45
|
+
Copyright © 2025 Sanity AS. All rights reserved.
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</footer>
|
|
49
|
+
|
|
50
|
+
<script src="./components/function-list.js" type="module"></script>
|
|
51
|
+
<script src="./components/network-spinner.js" type="module"></script>
|
|
52
|
+
<script src="./components/payload-panel.js" type="module"></script>
|
|
53
|
+
<script src="./components/response-panel.js" type="module"></script>
|
|
54
|
+
</body>
|
|
55
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg data-sanity-icon="sanity-monogram" width="1em" height="1em" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="128" height="128" rx="8" fill="#ef4434"></rect><path d="M39.423 33.163C39.423 44.1615 46.3363 50.7056 60.1768 54.1564L74.843 57.4972C87.9418 60.453 95.9186 67.7945 95.9186 79.7554C96.0205 84.9662 94.2961 90.0531 91.0345 94.1635C91.0345 82.2301 84.751 75.7822 69.595 71.9052L55.1948 68.6882C43.6633 66.1035 34.7629 60.0681 34.7629 47.0761C34.7022 42.0589 36.3416 37.1644 39.423 33.163" fill="#ffffff"></path><path d="M82.0221 76.827C88.2776 80.759 91.0206 86.2582 91.0206 94.1497C85.8426 100.666 76.7462 104.323 66.0545 104.323C48.0576 104.323 35.4626 95.6207 32.6637 80.4977H49.9468C52.172 87.4406 58.0636 90.6576 65.9285 90.6576C75.5287 90.6576 81.9102 85.6258 82.0361 76.7995" fill="#ffdedc"></path><path d="M48.4075 49.4682C45.551 47.8004 43.2074 45.404 41.6256 42.5332C40.0437 39.6624 39.2826 36.4244 39.4231 33.1629C44.4191 26.7013 53.1096 22.7556 63.7034 22.7556C82.0362 22.7556 92.6439 32.2693 95.2609 45.66H78.6355C76.8022 40.3807 72.2121 36.27 63.8434 36.27C54.9009 36.27 48.7993 41.3843 48.4495 49.4682" fill="#ffdedc"></path></svg>
|