From 6d4d57c07480147262d8ced430f707d39c58c318 Mon Sep 17 00:00:00 2001 From: Julien Deniau Date: Tue, 20 Feb 2024 17:27:41 +0100 Subject: [PATCH] rename fuzzypotatoes to Tiana Tables --- README.md | 3 ++- index.html | 2 +- src/component/Connection/ConnectionForm.tsx | 10 +++++----- src/configuration.ts | 2 +- src/preload.ts | 12 ++++++------ src/routes/home.tsx | 2 +- src/routes/root.tsx | 2 +- 7 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index e1a6436..57f0d3a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ -# fuzzy-potato +# Tiana Tables + Some SQL tool diff --git a/index.html b/index.html index 99b6a96..4b10bf4 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - Fuzzy Potato + Tiana Tables ; } & Omit; -const envPath = envPaths('FuzzyPotato', { suffix: '' }); +const envPath = envPaths('TianaTables', { suffix: '' }); const dataFilePath = resolve(envPath.config, 'config.json'); function encryptConnection( diff --git a/src/preload.ts b/src/preload.ts index 8fa0f1a..7d7d961 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -7,12 +7,12 @@ import { Configuration } from './configuration'; import { contextBridge, ipcRenderer } from 'electron'; // === environment variables === -type FpString = string; // maybe `FP__${string}` is TS 5 ? -type FpEnvVariables = Record; +type TianaString = string; // maybe `TIANA__${string}` is TS 5 ? +type TianaEnvVariables = Record; -const fpEnvVariables: FpEnvVariables = Object.fromEntries( - Object.entries(process.env).filter((entry): entry is [FpString, string] => - entry[0].startsWith('FP__') +const fpEnvVariables: TianaEnvVariables = Object.fromEntries( + Object.entries(process.env).filter((entry): entry is [TianaString, string] => + entry[0].startsWith('TIANA__') ) ); @@ -53,7 +53,7 @@ contextBridge.exposeInMainWorld('sql', sql); // Declare window global that have been added declare global { interface Window { - env: FpEnvVariables; + env: TianaEnvVariables; config: Config; sql: Sql; } diff --git a/src/routes/home.tsx b/src/routes/home.tsx index 2eb1178..67541e4 100644 --- a/src/routes/home.tsx +++ b/src/routes/home.tsx @@ -3,7 +3,7 @@ import { Link } from 'react-router-dom'; export function Home() { return (
-

Welcome to Fuzzy Potato !

+

Welcome to Tiana Tables !

Please connect
diff --git a/src/routes/root.tsx b/src/routes/root.tsx index d900cd5..a1d89d2 100644 --- a/src/routes/root.tsx +++ b/src/routes/root.tsx @@ -29,7 +29,7 @@ export default function Root() { -

Welcome to Fuzzy Potato !

+

Welcome to Tiana Tables !

Theme: