Skip to content

Commit 1d8be48

Browse files
authored
feat: add notable apps and hashes (ethersphere#447)
* feat: add notable apps and hashes * fix: remove copyEtherjot step * feat: add devcon.buzz
1 parent bf98d92 commit 1d8be48

20 files changed

+19
-146
lines changed

devkit.mjs

-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ switch (requestedCommand) {
1616
break
1717
case 'copy:ui':
1818
await copyUi()
19-
await copyEtherjot()
2019
break
2120
case 'purge:data':
2221
await purgeData()
@@ -40,10 +39,6 @@ function copyUi() {
4039
return cpy('.', join('..', '..', 'dist', 'ui'), { cwd: join('ui', 'build') })
4140
}
4241

43-
function copyEtherjot() {
44-
return cpy('.', join('..', 'dist', 'etherjot'), { cwd: join('.', 'etherjot') })
45-
}
46-
4742
async function openUi() {
4843
const apiKey = await readFile(join(paths.data, 'api-key.txt'), { encoding: 'utf-8' })
4944
const url = `http://localhost:3002/?v=${apiKey}#/`

etherjot/asset-manifest.json

-14
This file was deleted.

etherjot/favicon.ico

-4.19 KB
Binary file not shown.

etherjot/index.html

-1
This file was deleted.

etherjot/logo192.png

-5.22 KB
Binary file not shown.

etherjot/logo512.png

-9.44 KB
Binary file not shown.

etherjot/manifest.json

-25
This file was deleted.

etherjot/no.png

-16.1 KB
Binary file not shown.

etherjot/robots.txt

-3
This file was deleted.

etherjot/space-grotesk.woff2

-20.6 KB
Binary file not shown.

etherjot/static/css/main.9cf0fa7f.css

-2
This file was deleted.

etherjot/static/css/main.9cf0fa7f.css.map

-1
This file was deleted.

etherjot/static/js/main.c1f32ddc.js

-3
This file was deleted.

etherjot/static/js/main.c1f32ddc.js.LICENSE.txt

-83
This file was deleted.

etherjot/static/js/main.c1f32ddc.js.map

-1
This file was deleted.
Binary file not shown.

etherjot/yes.png

-18.8 KB
Binary file not shown.

src/browser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export function openDashboardInBrowser() {
66
shell.openExternal(`http://localhost:${port.value}/dashboard/?v=${getApiKey()}`)
77
}
88

9-
export function openEtherjotInBrowser() {
10-
shell.openExternal(`http://localhost:${port.value}/etherjot`)
9+
export function openUrl(url: string) {
10+
shell.openExternal(url)
1111
}

src/electron.ts

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { app, Menu, nativeTheme, Tray } from 'electron'
22
import opener from 'opener'
3-
import { openDashboardInBrowser, openEtherjotInBrowser } from './browser'
3+
import { openDashboardInBrowser, openUrl } from './browser'
44
import { runLauncher } from './launcher'
55
import { BeeManager } from './lifecycle'
66
import { createNotification } from './notify'
@@ -34,8 +34,22 @@ export function rebuildElectronTray() {
3434
label: 'Apps',
3535
submenu: [
3636
{
37-
label: 'Etherjot (demo)',
38-
click: openEtherjotInBrowser,
37+
label: 'Devcon.buzz',
38+
click: () => openUrl('https://devcon.buzz'),
39+
},
40+
{
41+
label: 'Etherjot',
42+
click: () => openUrl('https://etherjot.com'),
43+
},
44+
{
45+
label: 'Decentralized Wiki',
46+
click: () =>
47+
openUrl('http://localhost:1633/bzz/f8aa0f764267de0cae814edf58358dcd6ccf38f0a242656be8bf01a14700090c/'),
48+
},
49+
{
50+
label: 'Decentralized OSM',
51+
click: () =>
52+
openUrl('http://localhost:1633/bzz/ab77201f6541a9ceafb98a46c643273cfa397a87798273dd17feb2aa366ce2e6/'),
3953
},
4054
],
4155
},

src/server.ts

-3
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,13 @@ import { getStatus } from './status'
2121
import { swap } from './swap'
2222

2323
const UI_DIST = path.join(__dirname, '..', '..', 'ui')
24-
const ETHERJOT_DIST = path.join(__dirname, '..', '..', 'etherjot')
2524

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

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

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

0 commit comments

Comments
 (0)