From 45d8422ada8a484f5a6e306aeb41722afff4423b Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Thu, 12 Dec 2024 17:04:37 +0100 Subject: [PATCH] feat: add kill switches in poke --- front/components/poke/PokeNavbar.tsx | 1 + front/lib/poke/types.ts | 8 + front/lib/resources/kill_switch_resource.ts | 64 ++++++++ .../resources/storage/models/kill_switches.ts | 43 ++++++ front/migrations/db/migration_129.sql | 9 ++ front/pages/api/poke/kill.ts | 91 +++++++++++ front/pages/poke/kill.tsx | 144 ++++++++++++++++++ front/poke/swr/kill.ts | 19 +++ 8 files changed, 379 insertions(+) create mode 100644 front/lib/poke/types.ts create mode 100644 front/lib/resources/kill_switch_resource.ts create mode 100644 front/lib/resources/storage/models/kill_switches.ts create mode 100644 front/migrations/db/migration_129.sql create mode 100644 front/pages/api/poke/kill.ts create mode 100644 front/pages/poke/kill.tsx create mode 100644 front/poke/swr/kill.ts diff --git a/front/components/poke/PokeNavbar.tsx b/front/components/poke/PokeNavbar.tsx index 2675712a7027..1c0e49dc7090 100644 --- a/front/components/poke/PokeNavbar.tsx +++ b/front/components/poke/PokeNavbar.tsx @@ -29,6 +29,7 @@ export const PokeNavbar: React.FC = () => (