Skip to content

Commit 5e25528

Browse files
committed
fix: typo when updating already existing script files
1 parent 0155f2a commit 5e25528

File tree

4 files changed

+34
-14
lines changed

4 files changed

+34
-14
lines changed

src/routes/Footer.svelte

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import Superforms from "./logos/Superforms.svelte"
1212
import Zod from "./logos/Zod.svelte"
1313
import Supabase from "./logos/Supabase.svelte"
14+
import Svelte from "./logos/Svelte.svelte"
1415
</script>
1516

1617
<footer class="z-40 my-auto h-fit preset-filled-surface-100-900">
@@ -24,6 +25,9 @@
2425
<a href="https://coolify.io/" aria-label="Navigate to coolify" class="mx-auto flex">
2526
<Coolify />
2627
</a>
28+
<a href="https://svelte.dev/" aria-label="Navigate to svelte" class="mx-auto flex">
29+
<Svelte />
30+
</a>
2731
<a href="https://svelte.dev/" aria-label="Navigate to svelte" class="mx-auto flex">
2832
<Sveltekit />
2933
</a>
@@ -45,9 +49,9 @@
4549
</div>
4650
</div>
4751

48-
<div class="flex flex-col justify-around gap-8 md:flex-row">
49-
<nav class="mx-auto">
50-
<span class="mb-6 text-sm font-semibold uppercase">Resources</span>
52+
<div class="flex flex-col justify-around gap-16 md:flex-row">
53+
<nav class="mx-auto text-center md:text-left">
54+
<span class="text-md mb-6 font-semibold uppercase">Resources</span>
5155
<ul class="*:hover:text-primary-500">
5256
<li><a href="/setup">Setup</a></li>
5357
<li><a href="https://github.com/Villavu/Simba" target="_blank">Simba repo</a></li>
@@ -65,8 +69,8 @@
6569
</li>
6670
</ul>
6771
</nav>
68-
<nav class="mx-auto">
69-
<span class="mb-6 text-sm font-semibold uppercase">Special thanks:</span>
72+
<nav class="mx-auto text-center md:text-left">
73+
<span class="text-md mb-6 font-semibold uppercase">Special thanks:</span>
7074
<ul class="*:hover:text-primary-500">
7175
{#await WaspScripters.getRandomScripters(page.data.supabaseClient)}
7276
{#each { length: 5 }}
@@ -80,8 +84,8 @@
8084
{/await}
8185
</ul>
8286
</nav>
83-
<nav class="mx-auto">
84-
<span class="mb-6 text-sm font-semibold uppercase">Legal</span>
87+
<nav class="mx-auto text-center md:text-left">
88+
<span class="text-md mb-6 font-semibold uppercase">Legal</span>
8589
<ul class="*:hover:text-primary-500">
8690
<li><a href="/legal/privacy_policy">Privacy Policy</a></li>
8791
<li><a href="/legal/user_tos">User Terms &amp; Conditions</a></li>
@@ -92,11 +96,10 @@
9296

9397
<footer class="my-8 flex flex-col sm:flex-row">
9498
<span class="mx-auto my-auto text-sm sm:text-center">
95-
This webapp is open source! Checkout
99+
This webapp is open source, checkout
96100
<a class="anchor" href="https://github.com/torwent/wasp-webapp" target="_blank">
97101
WaspScripts source code
98102
</a>
99-
!
100103
</span>
101104
<div class="mx-auto my-auto flex space-x-6 sm:mt-0 sm:justify-center">
102105
<a href="https://github.com/torwent" target="_blank" aria-label="Navigate to GitHub" class="anchor">

src/routes/logos/Svelte.svelte

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 634.6 177.4" class="my-auto h-6">
2+
<path
3+
d="M138.2 23.5c7.9 11.1 11 24.8 8.6 38.2-1.1 6.3-3.6 12.3-7.1 17.7 5.2 9.8 6.9 21.1 4.9 32-2.4 13.1-10.1 24.6-21.4 31.7l-41.3 26.3c-23.5 15-56.1 8-72.5-15.6-7.9-10.9-11-24.7-8.6-38.1 1.1-6.3 3.6-12.3 7.1-17.7C2.7 88.2 1 76.9 3 66c2.4-13.1 10.1-24.7 21.4-31.7L65.7 7.9c23.5-15 56-8 72.5 15.6"
4+
style="fill: #ff3e00"
5+
/>
6+
<path
7+
d="M61.6 156.2c3-.8 5.8-2 8.4-3.7l41.3-26.3c6.8-4.3 11.5-11.2 12.9-19.1 1.4-8-.4-16.3-5.2-23-7.8-11.3-21.9-16.5-35.2-13.1-3 .8-5.8 2-8.4 3.7l-15.8 10c-.8.5-1.6.9-2.5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7.5-1-16.1 5.1-21.3 4.3-3.8 10.2-5.7 17.7-5.7 6.2 0 11.3 1.4 15.3 4.1 3.9 2.6 6.7 6.5 8.1 10.9l-10.4 3.5c-1-2.3-2.8-4.3-5-5.6-2.7-1.5-5.7-2.2-8.8-2.1-3-.2-6 .7-8.5 2.4-2.1 1.6-3.2 4.1-3.1 6.7 0 2 .9 3.9 2.4 5.2 1.4 1.4 3.1 2.6 5 3.4 1.7.7 4.4 1.7 7.9 2.9 2.2.8 3.8 1.4 4.8 1.8 1 .4 2.6 1.1 4.6 2 1.6.7 3.2 1.6 4.7 2.5 1.3 1 2.6 2 3.8 3.1 1.3 1.1 2.4 2.5 3.3 4 .8 1.5 1.5 3.2 1.9 4.9.6 2 .8 4.1.8 6.1 0 7.1-2.4 12.6-7.3 16.6-4.8 4-11.1 6-18.6 6Zm69.4-1.3-26-75.8h12.1l17.2 52.9c1 2.8 1.7 5.7 2.4 8.7.6-2.9 1.4-5.8 2.4-8.7l17-52.9h12l-25.9 75.8h-11.3Zm60.2 0V50.8h47v10.6h-35.8v20.8h23.1v10.6h-23.1V116h38.1v10.6h-49.4Zm78.1 0V50.8H461v65h37.1v10.8h-48.3Zm90.8-65v65h-11.3v-65h-21.5V50.8h54.2v10.8h-21.5Zm44.7 65V50.8h47v10.6h-35.8v20.8h23.1v10.6h-23.1V116h38.1v10.6h-49.4Z"
12+
/>
13+
</svg>

src/routes/logos/Sveltekit.svelte

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 634.6 177.4" class="my-auto h-6">
1+
<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 688.774 139" class="my-auto h-6">
22
<path
3-
d="M138.2 23.5c7.9 11.1 11 24.8 8.6 38.2-1.1 6.3-3.6 12.3-7.1 17.7 5.2 9.8 6.9 21.1 4.9 32-2.4 13.1-10.1 24.6-21.4 31.7l-41.3 26.3c-23.5 15-56.1 8-72.5-15.6-7.9-10.9-11-24.7-8.6-38.1 1.1-6.3 3.6-12.3 7.1-17.7C2.7 88.2 1 76.9 3 66c2.4-13.1 10.1-24.7 21.4-31.7L65.7 7.9c23.5-15 56-8 72.5 15.6"
43
style="fill: #ff3e00"
4+
d="M110.286,28.319c-10.4-14.885-30.941-19.3-45.792-9.835L38.412,35.108A29.921,29.921,0,0,0,24.893,55.151,31.514,31.514,0,0,0,28,75.382a29.987,29.987,0,0,0-4.476,11.183,31.888,31.888,0,0,0,5.447,24.116c10.4,14.887,30.942,19.3,45.791,9.835l26.083-16.624a29.92,29.92,0,0,0,13.519-20.043,31.529,31.529,0,0,0-3.106-20.232,30,30,0,0,0,4.474-11.182,31.878,31.878,0,0,0-5.447-24.116"
55
/>
66
<path
7-
d="M61.6 156.2c3-.8 5.8-2 8.4-3.7l41.3-26.3c6.8-4.3 11.5-11.2 12.9-19.1 1.4-8-.4-16.3-5.2-23-7.8-11.3-21.9-16.5-35.2-13.1-3 .8-5.8 2-8.4 3.7l-15.8 10c-.8.5-1.6.9-2.5 1.1-4 1-8.3-.5-10.6-3.9-1.4-2-2-4.5-1.6-6.9.4-2.4 1.8-4.5 3.9-5.7L90.1 43c.8-.5 1.6-.9 2.5-1.1 4-1 8.3.5 10.6 3.9 1.3 1.8 1.9 4 1.7 6.1v1.5c-.1 0 1.4.5 1.4.5 5.8 1.8 11.3 4.5 16.2 8.1l2.1 1.6.8-2.4c.4-1.3.7-2.6 1-3.9 1.4-8-.4-16.3-5.2-23C113.4 23 99.3 17.8 86 21.2c-3 .8-5.8 2-8.4 3.7L36.3 51.2c-6.8 4.3-11.5 11.2-12.9 19.1-1.4 8 .4 16.3 5.2 23 7.8 11.3 21.9 16.5 35.2 13.1 3-.8 5.8-2 8.4-3.7L88 92.6c.8-.5 1.6-.9 2.5-1.1 4-1 8.3.5 10.6 3.9 1.4 2 2 4.5 1.6 6.9-.4 2.4-1.8 4.5-3.9 5.8l-41.3 26.3c-.8.5-1.6.9-2.5 1.1-4 1-8.3-.5-10.6-3.9-1.3-1.8-1.9-4-1.7-6.1V124c.1 0-1.4-.5-1.4-.5-5.8-1.8-11.3-4.5-16.2-8.1l-2.1-1.6-.8 2.4c-.4 1.3-.7 2.6-1 3.9-1.4 8 .4 16.3 5.2 23 7.8 11.3 21.9 16.5 35.2 13.1"
87
style="fill: #fff"
8+
d="M61.946,112.082a20.72,20.72,0,0,1-22.237-8.243,19.176,19.176,0,0,1-3.276-14.5,18.143,18.143,0,0,1,.623-2.435l.491-1.5,1.337.981a33.633,33.633,0,0,0,10.2,5.1l.969.294-.089.968a5.844,5.844,0,0,0,1.052,3.878,6.24,6.24,0,0,0,6.7,2.485,5.748,5.748,0,0,0,1.6-.7L85.4,81.781A5.43,5.43,0,0,0,87.85,78.15a5.794,5.794,0,0,0-.988-4.371,6.244,6.244,0,0,0-6.7-2.487,5.737,5.737,0,0,0-1.6.7l-9.954,6.345a19.047,19.047,0,0,1-5.3,2.326,20.72,20.72,0,0,1-22.237-8.243,19.171,19.171,0,0,1-3.277-14.5A17.992,17.992,0,0,1,45.932,45.87L72.013,29.247a19.011,19.011,0,0,1,5.3-2.329,20.719,20.719,0,0,1,22.237,8.243,19.176,19.176,0,0,1,3.277,14.5A18.453,18.453,0,0,1,102.2,52.1l-.491,1.5-1.336-.979a33.616,33.616,0,0,0-10.2-5.1l-.97-.294.09-.968a5.859,5.859,0,0,0-1.052-3.878,6.24,6.24,0,0,0-6.695-2.485,5.742,5.742,0,0,0-1.6.7L53.859,57.219a5.425,5.425,0,0,0-2.449,3.63,5.79,5.79,0,0,0,.986,4.372,6.245,6.245,0,0,0,6.7,2.487,5.773,5.773,0,0,0,1.6-.7l9.952-6.342a18.978,18.978,0,0,1,5.3-2.328A20.718,20.718,0,0,1,98.18,66.576a19.171,19.171,0,0,1,3.277,14.5,18,18,0,0,1-8.13,12.054L67.246,109.753a19,19,0,0,1-5.3,2.329"
99
/>
1010
<path
11-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23.1v10.6h-23.1V116h38.1v10.6h-49.4Z"
11+
d="M172.442,100.338a24.076,24.076,0,0,1-13.719-3.877,19.876,19.876,0,0,1-8.011-10.609l8.351-3.068a15.41,15.41,0,0,0,5.455,6.6,14.366,14.366,0,0,0,8.266,2.429,12.137,12.137,0,0,0,7.882-2.386,8.277,8.277,0,0,0,2.94-6.817,7.461,7.461,0,0,0-.81-3.452,10.314,10.314,0,0,0-1.832-2.6,12.342,12.342,0,0,0-3.153-2.088q-2.132-1.063-3.537-1.619t-4.133-1.491q-3.408-1.193-5.112-1.874a38.492,38.492,0,0,1-4.474-2.259,16.522,16.522,0,0,1-4.176-3.153,15.277,15.277,0,0,1-2.513-4.133,14.766,14.766,0,0,1,4-16.787q5.113-4.516,13.889-4.517,7.329,0,12.059,3.238a15.658,15.658,0,0,1,6.348,8.608l-8.18,2.726a9.521,9.521,0,0,0-3.963-4.388,13.306,13.306,0,0,0-6.945-1.663,10.706,10.706,0,0,0-6.69,1.875,6.29,6.29,0,0,0-2.428,5.284,5.511,5.511,0,0,0,1.874,4.09,12.869,12.869,0,0,0,3.92,2.642q2.048.852,6.222,2.3,2.554.939,3.791,1.406t3.622,1.576a25.1,25.1,0,0,1,3.664,2,32.066,32.066,0,0,1,2.983,2.429,12.706,12.706,0,0,1,2.6,3.11,17.342,17.342,0,0,1,1.533,3.834,17.58,17.58,0,0,1,.64,4.816q0,8.352-5.71,13.08T172.442,100.338Zm54.623-1.022L206.613,39.664h9.545L229.707,81.25a64.791,64.791,0,0,1,1.875,6.818,63.829,63.829,0,0,1,1.875-6.818l13.378-41.586h9.459L235.927,99.316Zm47.294,0V39.664h36.984v8.352H283.222V64.377h18.151v8.352H283.222V90.964h30v8.352Zm61.44,0V39.664h8.864v51.13h29.143v8.522Zm71.41-51.13v51.13h-8.863V48.186H381.474V39.664h42.608v8.522ZM442.4,99.316V39.664h36.984v8.352H451.266V64.377h18.15v8.352h-18.15V90.964h30v8.352Z"
12+
/>
13+
<path
14+
style="fill: #8d8d93"
15+
d="M547.528,99.316,530.741,68.127,520.173,80.91V99.316h-8.862V39.664h8.862V68.553l23.009-28.889h10.226l-16.7,20.964,21.218,38.688Zm29.569,0V39.664h8.862V99.316Zm55.049-51.13v51.13h-8.863V48.186H606.411V39.664h42.607v8.522Z"
1216
/>
1317
</svg>

src/routes/scripts/[slug]/edit/files/+page.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const actions = {
108108
if (form.data.script && form.data.script.length > 0) {
109109
revision = revision + 1
110110
console.log("Updating script revision to ", revision)
111-
const path = script.id + "/" + pad(revision, 9) + "/script.simba"
111+
const path = script.id + "/" + pad(revision, 9) + "/"
112112
for (let i = 0; i < form.data.script.length; i++) {
113113
const fileName =
114114
form.data.script[i].name == form.data.main ? "script.simba" : form.data.script[i].name

0 commit comments

Comments
 (0)