Skip to content

Commit

Permalink
Merge pull request #3 from jdeniau/rename-to-tiana-tables
Browse files Browse the repository at this point in the history
rename FuzzyPotatoes to Tiana Tables
  • Loading branch information
jdeniau authored Feb 20, 2024
2 parents b3c42e9 + 6d4d57c commit 124d5e0
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 16 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# fuzzy-potato
# Tiana Tables

Some SQL tool
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<title>Fuzzy Potato</title>
<title>Tiana Tables</title>

<link
rel="stylesheet"
Expand Down
10 changes: 5 additions & 5 deletions src/component/Connection/ConnectionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ class ConnectionForm extends PureComponent<
this.state = {
name: '',
save: true,
host: window.env.FP__DEBUG_DB_HOST || 'localhost',
port: window.env.FP__DEBUG_DB_PORT
? parseInt(window.env.FP__DEBUG_DB_PORT, 10)
host: window.env.TIANA__DEBUG_DB_HOST || 'localhost',
port: window.env.TIANA__DEBUG_DB_PORT
? parseInt(window.env.TIANA__DEBUG_DB_PORT, 10)
: 3306,
user: window.env.FP__DEBUG_DB_USER || '',
password: window.env.FP__DEBUG_DB_PASSWORD || '',
user: window.env.TIANA__DEBUG_DB_USER || '',
password: window.env.TIANA__DEBUG_DB_PASSWORD || '',
};

this.handleInputChange = this.handleInputChange.bind(this);
Expand Down
2 changes: 1 addition & 1 deletion src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type EncryptedConfiguration = {
connections: Record<string, EncryptedConnectionObject>;
} & Omit<Configuration, 'connections'>;

const envPath = envPaths('FuzzyPotato', { suffix: '' });
const envPath = envPaths('TianaTables', { suffix: '' });
const dataFilePath = resolve(envPath.config, 'config.json');

function encryptConnection(
Expand Down
12 changes: 6 additions & 6 deletions src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, FpString>;
type TianaString = string; // maybe `TIANA__${string}` is TS 5 ?
type TianaEnvVariables = Record<string, TianaString>;

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__')
)
);

Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
export function Home() {
return (
<div>
<p>Welcome to Fuzzy Potato ! </p>
<p>Welcome to Tiana Tables ! </p>

<Link to="/connect">Please connect</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function Root() {
<Debug />

<HeaderDiv>
<h2>Welcome to Fuzzy Potato !</h2>
<h2>Welcome to Tiana Tables !</h2>
<div>
Theme:
<ThemeSelector />
Expand Down

0 comments on commit 124d5e0

Please sign in to comment.