From 9efe672dbb0ce76b8250ff3dff9fd6b208c0e967 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aleksa=20Siri=C5=A1ki?=
<31509435+aleksasiriski@users.noreply.github.com>
Date: Sun, 19 Nov 2023 21:42:43 +0100
Subject: [PATCH] fix: better typescript, api error page and cache control
---
devbox.json | 16 ++++++++++++++
devbox.lock | 39 +++++++++++++++++++++++++++++++++
src/routes/search/+error.svelte | 28 +++++++++++++++++++++++
src/routes/search/+page.svelte | 2 +-
src/routes/search/+page.ts | 30 ++++++++++++++-----------
src/routes/search/types.ts | 17 ++++++++++++++
6 files changed, 118 insertions(+), 14 deletions(-)
create mode 100644 devbox.json
create mode 100644 devbox.lock
create mode 100644 src/routes/search/+error.svelte
create mode 100644 src/routes/search/types.ts
diff --git a/devbox.json b/devbox.json
new file mode 100644
index 00000000..94f2e977
--- /dev/null
+++ b/devbox.json
@@ -0,0 +1,16 @@
+{
+ "packages": [
+ "nodejs@latest",
+ "nodePackages.pnpm@latest"
+ ],
+ "shell": {
+ "init_hook": [
+ "echo 'Welcome to devbox!' > /dev/null"
+ ],
+ "scripts": {
+ "test": [
+ "echo \"Error: no test specified\" && exit 1"
+ ]
+ }
+ }
+}
diff --git a/devbox.lock b/devbox.lock
new file mode 100644
index 00000000..8b4c6ae9
--- /dev/null
+++ b/devbox.lock
@@ -0,0 +1,39 @@
+{
+ "lockfile_version": "1",
+ "packages": {
+ "nodePackages.pnpm@latest": {
+ "last_modified": "2023-11-02T13:29:18Z",
+ "resolved": "github:NixOS/nixpkgs/b644d97bda6dae837d577e28383c10aa51e5e2d2#nodePackages.pnpm",
+ "source": "devbox-search",
+ "version": "8.10.2",
+ "systems": {
+ "aarch64-linux": {
+ "store_path": "/nix/store/n7ml2bssqq1rdlzbz8bgp4bgc2a8z2wd-pnpm-8.10.2"
+ },
+ "x86_64-linux": {
+ "store_path": "/nix/store/fxgnndi9lyb8py91mg0hdq9wy0giqbfk-pnpm-8.10.2"
+ }
+ }
+ },
+ "nodejs@latest": {
+ "last_modified": "2023-10-25T20:49:13Z",
+ "resolved": "github:NixOS/nixpkgs/75a52265bda7fd25e06e3a67dee3f0354e73243c#nodejs_21",
+ "source": "devbox-search",
+ "version": "21.1.0",
+ "systems": {
+ "aarch64-darwin": {
+ "store_path": "/nix/store/b8yb6gs0dhi0zlxcg5dkp0d2xrn80nhh-nodejs-21.1.0"
+ },
+ "aarch64-linux": {
+ "store_path": "/nix/store/c20ngwkh3xzpzvmxkffccaxygyiqw3n2-nodejs-21.1.0"
+ },
+ "x86_64-darwin": {
+ "store_path": "/nix/store/6wyanl2ba86pc2jb6nvg212xpq7j7kij-nodejs-21.1.0"
+ },
+ "x86_64-linux": {
+ "store_path": "/nix/store/wl7yqxb1mhghpp6b8icykcm5wysfqarz-nodejs-21.1.0"
+ }
+ }
+ }
+ }
+}
diff --git a/src/routes/search/+error.svelte b/src/routes/search/+error.svelte
new file mode 100644
index 00000000..a0ccb50d
--- /dev/null
+++ b/src/routes/search/+error.svelte
@@ -0,0 +1,28 @@
+
+
+