Skip to content

Commit

Permalink
feat: add notable apps and hashes (#447)
Browse files Browse the repository at this point in the history
* feat: add notable apps and hashes

* fix: remove copyEtherjot step

* feat: add devcon.buzz
  • Loading branch information
Cafe137 authored Nov 11, 2024
1 parent bf98d92 commit 1d8be48
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 146 deletions.
5 changes: 0 additions & 5 deletions devkit.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ switch (requestedCommand) {
break
case 'copy:ui':
await copyUi()
await copyEtherjot()
break
case 'purge:data':
await purgeData()
Expand All @@ -40,10 +39,6 @@ function copyUi() {
return cpy('.', join('..', '..', 'dist', 'ui'), { cwd: join('ui', 'build') })
}

function copyEtherjot() {
return cpy('.', join('..', 'dist', 'etherjot'), { cwd: join('.', 'etherjot') })
}

async function openUi() {
const apiKey = await readFile(join(paths.data, 'api-key.txt'), { encoding: 'utf-8' })
const url = `http://localhost:3002/?v=${apiKey}#/`
Expand Down
14 changes: 0 additions & 14 deletions etherjot/asset-manifest.json

This file was deleted.

Binary file removed etherjot/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion etherjot/index.html

This file was deleted.

Binary file removed etherjot/logo192.png
Binary file not shown.
Binary file removed etherjot/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions etherjot/manifest.json

This file was deleted.

Binary file removed etherjot/no.png
Binary file not shown.
3 changes: 0 additions & 3 deletions etherjot/robots.txt

This file was deleted.

Binary file removed etherjot/space-grotesk.woff2
Binary file not shown.
2 changes: 0 additions & 2 deletions etherjot/static/css/main.9cf0fa7f.css

This file was deleted.

1 change: 0 additions & 1 deletion etherjot/static/css/main.9cf0fa7f.css.map

This file was deleted.

3 changes: 0 additions & 3 deletions etherjot/static/js/main.c1f32ddc.js

This file was deleted.

83 changes: 0 additions & 83 deletions etherjot/static/js/main.c1f32ddc.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion etherjot/static/js/main.c1f32ddc.js.map

This file was deleted.

Binary file not shown.
Binary file removed etherjot/yes.png
Binary file not shown.
4 changes: 2 additions & 2 deletions src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export function openDashboardInBrowser() {
shell.openExternal(`http://localhost:${port.value}/dashboard/?v=${getApiKey()}`)
}

export function openEtherjotInBrowser() {
shell.openExternal(`http://localhost:${port.value}/etherjot`)
export function openUrl(url: string) {
shell.openExternal(url)
}
20 changes: 17 additions & 3 deletions src/electron.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { app, Menu, nativeTheme, Tray } from 'electron'
import opener from 'opener'
import { openDashboardInBrowser, openEtherjotInBrowser } from './browser'
import { openDashboardInBrowser, openUrl } from './browser'
import { runLauncher } from './launcher'
import { BeeManager } from './lifecycle'
import { createNotification } from './notify'
Expand Down Expand Up @@ -34,8 +34,22 @@ export function rebuildElectronTray() {
label: 'Apps',
submenu: [
{
label: 'Etherjot (demo)',
click: openEtherjotInBrowser,
label: 'Devcon.buzz',
click: () => openUrl('https://devcon.buzz'),
},
{
label: 'Etherjot',
click: () => openUrl('https://etherjot.com'),
},
{
label: 'Decentralized Wiki',
click: () =>
openUrl('http://localhost:1633/bzz/f8aa0f764267de0cae814edf58358dcd6ccf38f0a242656be8bf01a14700090c/'),
},
{
label: 'Decentralized OSM',
click: () =>
openUrl('http://localhost:1633/bzz/ab77201f6541a9ceafb98a46c643273cfa397a87798273dd17feb2aa366ce2e6/'),
},
],
},
Expand Down
3 changes: 0 additions & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@ import { getStatus } from './status'
import { swap } from './swap'

const UI_DIST = path.join(__dirname, '..', '..', 'ui')
const ETHERJOT_DIST = path.join(__dirname, '..', '..', 'etherjot')

const AUTO_UPDATE_ENABLED_PLATFORMS = ['darwin', 'win32']

export function runServer() {
const app = new Koa()
logger.info(`Serving UI from path: ${UI_DIST}`)
app.use(mount('/dashboard', serve(UI_DIST)))
logger.info(`Serving Etherjot from path: ${ETHERJOT_DIST}`)
app.use(mount('/etherjot', serve(ETHERJOT_DIST)))

app.use(async (context, next) => {
const corsOrigin = process.env.NODE_ENV === 'development' ? '*' : `http://localhost:${port.value}`
Expand Down

0 comments on commit 1d8be48

Please sign in to comment.