Skip to content

Commit

Permalink
Add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenAppers committed Oct 15, 2024
1 parent 389e359 commit e00b249
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
Expand Down
Binary file added images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 21 additions & 7 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -14,13 +18,23 @@ function App() {
return (
<Container>
<Tabs variant="soft-rounded" colorScheme="green" defaultIndex={1}>
<TabList>
<Tab>Analytics</Tab>
<Tab>Anti/PieRay</Tab>
<Tab>Nether Portals</Tab>
<Tab>Strongholds</Tab>
<Tab>Waypoints</Tab>
</TabList>
<Flex alignItems="center">
<IconButton
aria-label="logo"
icon={
<Image src="https://github.com/GreenAppers/EmpireUtils/blob/389e3594b37a48f48d01fd8b8b48fa09fe9987fa/images/1024.png?raw=true" />
}
/>
&nbsp;
<Spacer />
<TabList>
<Tab>Analytics</Tab>
<Tab>Anti/PieRay</Tab>
<Tab>Nether Portals</Tab>
<Tab>Strongholds</Tab>
<Tab>Waypoints</Tab>
</TabList>
</Flex>
<TabPanels>
<TabPanel>
<Analytics />
Expand Down
19 changes: 18 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e00b249

Please sign in to comment.