Skip to content

Commit 3e9a0db

Browse files
🔒 refactor: replace hardcoded Sentry DSNs with environment variables
- In `electron/main.ts`, Sentry DSN is now sourced from `import.meta.env.SENTRY_DSN_GLITCHTIP`. This change enhances security by removing the hardcoded DSN, making the configuration more dynamic and secure. - In `src/main.tsx`, updated Sentry DSN to use `import.meta.env.REACT_APP_SENTRY_DSN`. Similar to the electron change, it ensures better security practices by avoiding hardcoded values. 🎨 style: update and extend Tailwind CSS configuration - Modified the content paths in `tailwind.config.js` to use double quotes for consistency and clarity. - Added a new animation `spin-reverse` to Tailwind's theme configuration. This additional animation enriches the UI capabilities, offering more options for UI animations.
1 parent 231f0b7 commit 3e9a0db

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

‎electron/main.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const userPreferencesFilePath = path.join(sessionDataPath, 'userPreferences.txt'
2020

2121
autoUpdater.logger = logger
2222
Sentry.init({
23-
dsn: 'https://d9c49d59e5554239ac977e3a7c409cda@glitchtip.dermot.email/2'
23+
dsn: import.meta.env.SENTRY_DSN_GLITCHTIP,
2424
});
2525

2626
const getFile = async (filePath: string, defaultValue: any): Promise<any> => {

‎src/main.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ThemeProvider } from "./components/theme-provider.tsx";
88
// Initialize Sentry with specific configuration
99
init({
1010
// Sentry Data Source Name (DSN)
11-
dsn: "https://03f0433ebb331913be9a44008d1bc6f8@o4506405451464704.ingest.sentry.io/4506405764530176",
11+
dsn: import.meta.env.REACT_APP_SENTRY_DSN,
1212
// Sample rate for session replays
1313
replaysSessionSampleRate: 0.5,
1414
// Sample rate for error replays

‎tailwind.config.js‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
module.exports = {
33
darkMode: ["class"],
44
content: [
5-
'./pages/**/*.{ts,tsx}',
6-
'./components/**/*.{ts,tsx}',
7-
'./app/**/*.{ts,tsx}',
8-
'./src/**/*.{ts,tsx}',
9-
],
5+
"./pages/**/*.{ts,tsx}",
6+
"./components/**/*.{ts,tsx}",
7+
"./app/**/*.{ts,tsx}",
8+
"./src/**/*.{ts,tsx}",
9+
],
1010
theme: {
1111
container: {
1212
center: true,
@@ -65,12 +65,17 @@ module.exports = {
6565
from: { height: "var(--radix-accordion-content-height)" },
6666
to: { height: 0 },
6767
},
68+
"spin-reverse": {
69+
"0%": { transform: "rotate(360deg)" },
70+
"100%": { transform: "rotate(0deg)" },
71+
},
6872
},
6973
animation: {
7074
"accordion-down": "accordion-down 0.2s ease-out",
7175
"accordion-up": "accordion-up 0.2s ease-out",
76+
"spin-reverse": "spin-reverse 1s linear infinite",
7277
},
7378
},
7479
},
7580
plugins: [require("tailwindcss-animate")],
76-
}
81+
};

0 commit comments

Comments
 (0)