Skip to content

Commit a425706

Browse files
committed
update links, routes, layouts
1 parent de2be47 commit a425706

File tree

10 files changed

+44
-12
lines changed

10 files changed

+44
-12
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"editor.fontFamily": "'CaskaydiaCove Nerd Font Mono', Consolas, 'Courier New', monospace",
3+
"editor.fontSize": 16,
4+
"terminal.integrated.fontFamily": ""
5+
}

HELP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Error: TypeError: The "code" argument must be of type number. Received type string ('ERR_ELECTRON_BUILDER_CANN...')
22

33
- When running via electron for the first time, got this error running the "full" script.
4-
SOLUTION: Go do cdva dir, `cordova run electron`. Now the full script should run properly
4+
SOLUTION: Go manually to cdva dir, `cordova run electron`. Now the electron script should run properly.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
TBD: Social app using a prerendered sveltekit output running in Apache cordova.
44

5+
## Setup
6+
7+
```bash
8+
bun setup
9+
```
10+
511
## Developing
612

713
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
"version": "0.0.1",
55
"type": "module",
66
"scripts": {
7+
"setup": "cd cdva && cordova platform add browser || cordova platform add electron",
78
"dev": "vite dev",
89
"build": "vite build",
910
"build:cdva": "npm run build && cp -R build/* cdva/www/",
1011
"cdva:serve": "cd cdva && cordova serve",
12+
"run:browser": "cd cdva && cordova run browser",
13+
"run:elec": "cd cdva && cordova run electron",
1114
"full": "npm run build:cdva && cd cdva && cordova build && cordova run electron",
1215
"preview": "vite preview",
1316
"prepare": "svelte-kit sync || echo ''",

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->
2-
<a href="setup/info" class="message-container">
2+
<a href="/setup/info" class="message-container">
33
<div class="message main">Welcome to Soci<br />-&gt;</div>
44
<div class="shadow ms2 message">Welcome to Soci<br />-&gt;</div>
55
<div class="shadow ms3 message">Welcome to Soci<br />-&gt;</div>

src/routes/setup/+layout.svelte

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<script>
2+
let { children } = $props();
3+
</script>
4+
5+
{@render children()}
6+
<!-- svelte-ignore a11y_click_events_have_key_events -->
7+
<!-- svelte-ignore a11y_no_static_element_interactions -->
8+
<div
9+
class="back"
10+
onclick={() => {
11+
history.back();
12+
}}
13+
>
14+
&lt;- Back
15+
</div>
16+
17+
<style>
18+
.back {
19+
bottom: 1rem;
20+
left: 1rem;
21+
position: absolute;
22+
font-size: medium;
23+
}
24+
</style>

src/routes/setup/collect/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
let { data }: { data: PageData } = $props();
55
let interests = ['skiing', 'diving', 'EPL', 'nascar'];
66
let searchTerm = $state('');
7-
let filtered = $derived(interests.filter((a) => a.includes(searchTerm) && !selected.includes(a)));
87
let selected: Array<string> = $state([]);
8+
let filtered = $derived(interests.filter((a) => a.includes(searchTerm) && !selected.includes(a)));
99
</script>
1010

1111
<div class="text" style:font-family="Tomorrow">

src/routes/setup/info/+page.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const prerender = true;

src/routes/setup/info/+page.svelte

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
<p>We'd like to hear about your interests...</p>
99
<p>So we can find people similar to you.</p>
1010
<a href="/setup/collect">Continue-&gt; </a>
11-
<br />
12-
<br />
13-
<a class="back" href="/">&lt;- Back</a>
1411
</div>
1512

1613
<style>
@@ -23,8 +20,4 @@
2320
top: 50%;
2421
transform: translate(-50%, -50%);
2522
}
26-
27-
.back {
28-
font-size: medium;
29-
}
3023
</style>

svelte.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const config = {
66
preprocess: vitePreprocess(),
77
kit: {
88
adapter: adapter({
9-
strict: false,
10-
platform: 'cordova'
9+
strict: true,
10+
platform: 'cordova',
1111
})
1212
},
1313
warningFilter: (warning) => {

0 commit comments

Comments
 (0)