diff --git a/README.md b/README.md index 1a183dc..968a7d9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 🏰 Empire Utils -![Logo](images/icon.png?raw=true "Logo") +![Logo](images/logo.png?raw=true "Logo") Minecraft analytics and anti/PieRay helper. diff --git a/forge.config.ts b/forge.config.ts index 01b37fc..8378eae 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -20,7 +20,7 @@ const config: ForgeConfig = { makers: [ new MakerSquirrel({ iconUrl: - 'https://github.com/GreenAppers/EmpireUtils/blob/5e65f02151325e9036e3299ade6cee276a203fdc/images/icon.png', + 'https://github.com/GreenAppers/EmpireUtils/blob/5e65f02151325e9036e3299ade6cee276a203fdc/images/icon.png?raw=true', setupIcon: './images/icon.ico', }), new MakerZIP({}, ['darwin']), diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000..68ec3b6 Binary files /dev/null and b/images/logo.png differ diff --git a/src/components/App.tsx b/src/components/App.tsx index a92ea0a..abe2540 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1,10 +1,14 @@ import { Container, + Flex, + IconButton, + Image, Tab, Tabs, TabList, TabPanel, TabPanels, + Spacer, } from '@chakra-ui/react' import React from 'react' import { PieRayHelper } from './PieRayHelper' @@ -14,13 +18,23 @@ function App() { return ( - - Analytics - Anti/PieRay - Nether Portals - Strongholds - Waypoints - + + + } + /> +   + + + Analytics + Anti/PieRay + Nether Portals + Strongholds + Waypoints + + diff --git a/src/main.ts b/src/main.ts index cd98ee4..303d772 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,11 @@ -import { app, BrowserWindow, clipboard, ipcMain, shell } from 'electron' +import { + app, + BrowserWindow, + clipboard, + ipcMain, + session, + shell, +} from 'electron' import fs from 'fs' import path from 'path' import isDev from 'electron-is-dev' @@ -81,6 +88,16 @@ const createWindow = (): void => { // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. app.on('ready', () => { + session.defaultSession.webRequest.onHeadersReceived((details, callback) => { + callback({ + responseHeaders: { + ...details.responseHeaders, + 'Content-Security-Policy': [ + "default-src 'self' 'unsafe-eval'; img-src 'self' https:; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline';", + ], + }, + }) + }) ipcMain.handle( getLogfilePathChannel, () => log.transports.file.getFile().path