Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
frontend: seed rename
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Jun 17, 2024
1 parent 10bb0df commit ebea580
Show file tree
Hide file tree
Showing 32 changed files with 211 additions and 211 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
From this version onwards, the app is capable of letting you know when there's a new version of the software available. Depending on the platform you'll get a different behavior:
- For MacOS users auto-update "just works". this means that the app handles both detection of the new version, download and install!. You just have to accept the dialog that will appear when the new version was successfully downloaded.
- For Windows users it should work also very similar, but we are still waiting for more testing on it.
- For Linux users, if you're running an older version of the software, you'll be presented with a Dialog that will let you open a website to download the latest version of the app. It will be either a github.com page or a mintter.com page.
- For Linux users, if you're running an older version of the software, you'll be presented with a Dialog that will let you open a website to download the latest version of the app. It will be either a github.com page or a seedhypermedia.com page.

## Better Linking UX when adding other HyperMedia references

Expand Down
2 changes: 1 addition & 1 deletion dev
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def main():
run("./scripts/cleanup-frontend.sh")
run("./scripts/cleanup-desktop.sh")
run("yarn install")
run("plz build //backend:seed-daemon//:yarn")
run("plz build //backend:seed-daemon //:yarn")

testnet_var = "SEED_P2P_TESTNET_NAME"
if testnet_var not in os.environ:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/hyperdocs-aer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# HyperDocs Aer - Web Bridge

> Note: The Aer protocol is a WORK IN PROGRESS. This document is a stub, and the Mintter team is experimenting with Aer in the Mintter App and self-hostable Mintter Sites
> Note: The Aer protocol is a WORK IN PROGRESS. This document is a stub, and the Seed Hypermedia team is experimenting with Aer in the Seed Hypermedia App and self-hostable Seed Hypermedia Sites
Aer is an upcoming spec for web sites to join the HyperDocs network, allowing web links to be converted into permanent verifiable content.

Expand Down
4 changes: 2 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Mintter Docs',
title: 'Seed Docs',
tagline: 'Amplifying Intllectual Communities',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://docs.mintter.com',
url: 'https://docs.seedhypermedia.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
Expand Down
38 changes: 19 additions & 19 deletions frontend/apps/desktop/forge.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { MakerDeb, MakerDebConfig } from '@electron-forge/maker-deb'
import { MakerRpm } from '@electron-forge/maker-rpm'
import { MakerSquirrel } from '@electron-forge/maker-squirrel'
import { MakerZIP } from '@electron-forge/maker-zip'
import type { ForgeConfig } from '@electron-forge/shared-types'
import {MakerDeb, MakerDebConfig} from '@electron-forge/maker-deb'
import {MakerRpm} from '@electron-forge/maker-rpm'
import {MakerSquirrel} from '@electron-forge/maker-squirrel'
import {MakerZIP} from '@electron-forge/maker-zip'
import type {ForgeConfig} from '@electron-forge/shared-types'
// import {MakerRpm} from '@electron-forge/maker-rpm'
import { VitePlugin } from '@electron-forge/plugin-vite'
import {VitePlugin} from '@electron-forge/plugin-vite'
import path from 'node:path'
import packageJson from './package.json'
// import setLanguages from 'electron-packager-languages'
Expand Down Expand Up @@ -43,12 +43,12 @@ const commonLinuxConfig: MakerDebConfig = {
categories: ['Development', 'Utility'],
icon: `${iconsPath}.png`,
maintainer: 'Mintter Inc.',
description: 'Mintter: a hyper.media protocol client',
productName: 'Mintter',
description: 'Seed: a hyper.media protocol client',
productName: 'Seed',
mimeType: ['x-scheme-handler/hm'],
version,
bin: 'Mintter',
homepage: 'https://mintter.com',
bin: 'Seed',
homepage: 'https://seedhypermedia.com',
},
}

Expand All @@ -58,32 +58,32 @@ const config: ForgeConfig = {
asar: true,
darwinDarkModeSupport: true,
icon: iconsPath,
name: 'Mintter',
appBundleId: 'com.mintter.app',
executableName: 'Mintter',
name: 'Seed',
appBundleId: 'com.seed.app',
executableName: 'Seed',
appCategoryType: 'public.app-category.productivity',
// packageManager: 'yarn',
extraResource: [daemonBinaryPath],
// beforeCopy: [setLanguages(['en', 'en_US'])],
win32metadata: {
CompanyName: 'Mintter Inc.',
OriginalFilename: 'Mintter',
OriginalFilename: 'Seed',
},
protocols: [{name: 'Mintter Hypermedia', schemes: ['hm']}],
protocols: [{name: 'Seed Hypermedia', schemes: ['hm']}],
},
makers: [
new MakerDeb(commonLinuxConfig),
new MakerZIP({}, ['darwin']),
new MakerSquirrel({
name: 'Mintter',
name: 'Seed',
authors: 'Mintter inc.',
exe: 'mintter.exe',
description: 'Mintter: a hyper.media protocol client',
exe: 'seed.exe',
description: 'Seed: a hyper.media protocol client',
// An URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features).
iconUrl: `${iconsPath}.ico`,
noMsi: true,
setupIcon: `${iconsPath}.ico`,
setupExe: `mintter-${version}-win32-${process.arch}-setup.exe`,
setupExe: `seed-${version}-win32-${process.arch}-setup.exe`,
// The ICO file to use as the icon for the generated Setup.exe
loadingGif: path.resolve(__dirname, 'assets', 'loading.gif'),

Expand Down
2 changes: 1 addition & 1 deletion frontend/apps/desktop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" />
<title>Mintter App</title>
<title>Seed Hypermedia App</title>
</head>
<body>
<div id="root"></div>
Expand Down
8 changes: 4 additions & 4 deletions frontend/apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@shm/desktop",
"version": "0.0.0",
"productName": "Mintter",
"description": "Mintter: A Hypermedia client",
"productName": "Seed",
"description": "Seed: A Hypermedia client",
"keywords": [],
"repository": {
"type": "git",
"url": "https://github.com/mintterteam/mintter.git"
},
"license": "MIT",
"author": {
"name": "Mintterteam",
"email": "team@mintter.com"
"name": "Seed Hypermedia team",
"email": "team@seedhypermedia.com"
},
"main": ".vite/build/main.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions frontend/apps/desktop/src/app-gateway-settings.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import z from 'zod'
import {appStore} from './app-store'
import {t} from './app-trpc'
import { appStore } from './app-store'
import { t } from './app-trpc'

const DEFAULT_GATEWAY_URL =
process.env.MINTTER_P2P_TESTNET_NAME === 'dev'
process.env.SEED_P2P_TESTNET_NAME === 'dev'
? 'https://test.hyper.media'
: 'https://hyper.media'
const GATEWAY_URL_KEY = 'GatewayUrl'
Expand Down
8 changes: 4 additions & 4 deletions frontend/apps/desktop/src/app-menu.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// this menu is visible on macOS only
// the keyboard shortcuts apply to every platform

import {defaultRoute} from '@shm/app/utils/routes'
import {Menu, MenuItem} from 'electron'
import {dispatchFocusedWindowAppEvent, openRoute, trpc} from './app-api'
import { defaultRoute } from '@shm/app/utils/routes'
import { Menu, MenuItem } from 'electron'
import { dispatchFocusedWindowAppEvent, openRoute, trpc } from './app-api'

export function createAppMenu() {
const appMenu = new Menu()

appMenu.append(
new MenuItem({
role: 'appMenu',
label: 'Mintter',
label: 'Seed',
submenu: [
{role: 'about'},
{type: 'separator'},
Expand Down
12 changes: 6 additions & 6 deletions frontend/apps/desktop/src/daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import {
P2P_PORT,
VERSION,
} from '@shm/shared'
import {spawn} from 'child_process'
import {app} from 'electron'
import { spawn } from 'child_process'
import { app } from 'electron'
import path from 'path'
import {userDataPath} from './app-paths'
import {getDaemonBinaryPath} from './daemon-path'
import {childLogger, info} from './logger'
import { userDataPath } from './app-paths'
import { getDaemonBinaryPath } from './daemon-path'
import { childLogger, info } from './logger'
const logger = childLogger('Go Daemon')

let goDaemonExecutablePath = getDaemonBinaryPath()

let lndhubFlags = userDataPath.includes('Mintter.local')
let lndhubFlags = userDataPath.includes('Seed.local')
? '-lndhub.mainnet=false'
: IS_PROD_DESKTOP
? '-lndhub.mainnet=true'
Expand Down
12 changes: 6 additions & 6 deletions frontend/apps/desktop/src/find-in-page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {StyleProvider} from '@shm/app/app-context'
import {FindInPage} from '@shm/app/pages/find-in-page'
import {useStream} from '@shm/ui'
import { StyleProvider } from '@shm/app/app-context'
import { FindInPage } from '@shm/app/pages/find-in-page'
import { useStream } from '@shm/ui'
import '@tamagui/core/reset.css'
import '@tamagui/font-inter/css/400.css'
import '@tamagui/font-inter/css/700.css'
import React, {useMemo} from 'react'
import React, { useMemo } from 'react'
import ReactDOM from 'react-dom/client'
import {createIPC} from './ipc'
import { createIPC } from './ipc'

function FindInPageView() {
const ipc = useMemo(() => createIPC(), [])
Expand All @@ -17,7 +17,7 @@ function FindInPageView() {
<div
className={
// this is used by editor.css which doesn't know tamagui styles, boooo!
darkMode ? 'mintter-app-dark' : 'mintter-app-light'
darkMode ? 'seed-app-dark' : 'seed-app-light'
}
>
<StyleProvider darkMode={darkMode}>
Expand Down
28 changes: 14 additions & 14 deletions frontend/apps/desktop/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Sentry from '@sentry/electron/main'
import {defaultRoute} from '@shm/app/utils/routes'
import {ELECTRON_HTTP_PORT, IS_PROD_DESKTOP} from '@shm/shared'
import { defaultRoute } from '@shm/app/utils/routes'
import { ELECTRON_HTTP_PORT, IS_PROD_DESKTOP } from '@shm/shared'
import {
BrowserWindow,
Menu,
Expand All @@ -20,14 +20,14 @@ import {
openInitialWindows,
trpc,
} from './app-api'
import {createAppMenu} from './app-menu'
import {startMetricsServer} from './app-metrics'
import {initPaths} from './app-paths'
import {APP_AUTO_UPDATE_PREFERENCE} from './app-settings'
import {appStore} from './app-store'
import { createAppMenu } from './app-menu'
import { startMetricsServer } from './app-metrics'
import { initPaths } from './app-paths'
import { APP_AUTO_UPDATE_PREFERENCE } from './app-settings'
import { appStore } from './app-store'
import autoUpdate from './auto-update'
import {startMainDaemon} from './daemon'
import {saveCidAsFile} from './save-cid-as-file'
import { startMainDaemon } from './daemon'
import { saveCidAsFile } from './save-cid-as-file'

const OS_REGISTER_SCHEME = 'hm'

Expand Down Expand Up @@ -100,7 +100,7 @@ log.initialize({
})

app.on('did-become-active', () => {
log.debug('[MAIN]: Mintter active')
log.debug('[MAIN]: Seed active')
if (BrowserWindow.getAllWindows().length === 0) {
log.debug('[MAIN]: will open the home window')
trpc.createAppWindow({
Expand All @@ -109,7 +109,7 @@ app.on('did-become-active', () => {
}
})
app.on('did-resign-active', () => {
log.debug('[MAIN]: Mintter no longer active')
log.debug('[MAIN]: Seed no longer active')
})

// dark mode support: https://www.electronjs.org/docs/latest/tutorial/dark-mode
Expand Down Expand Up @@ -142,11 +142,11 @@ ipcMain.on('open_path', (event, path) => {
const gotTheLock = app.requestSingleInstanceLock()

if (!gotTheLock) {
log.debug('[MAIN]: Another Mintter already running. Quitting..')
log.debug('[MAIN]: Another Seed already running. Quitting..')
app.quit()
} else {
app.on('ready', () => {
log.debug('[MAIN]: Mintter ready')
log.debug('[MAIN]: Seed ready')
openInitialWindows()
})
app.on('second-instance', handleSecondInstance)
Expand All @@ -163,7 +163,7 @@ if (!gotTheLock) {
handleUrlOpen(url)
})
app.on('activate', () => {
log.debug('[MAIN]: Mintter Active')
log.debug('[MAIN]: Seed Active')
if (BrowserWindow.getAllWindows().length === 0) {
log.debug('[MAIN]: will open the home window')
trpc.createAppWindow({
Expand Down
42 changes: 21 additions & 21 deletions frontend/apps/desktop/src/root.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import type {Interceptor} from '@connectrpc/connect'
import {createGrpcWebTransport} from '@connectrpc/connect-web'
import {AppContextProvider, StyleProvider} from '@shm/app/app-context'
import {AppIPC} from '@shm/app/app-ipc'
import {AppErrorContent, RootAppError} from '@shm/app/components/app-error'
import {DaemonStatusProvider} from '@shm/app/node-status-context'
import type { Interceptor } from '@connectrpc/connect'
import { createGrpcWebTransport } from '@connectrpc/connect-web'
import { AppContextProvider, StyleProvider } from '@shm/app/app-context'
import { AppIPC } from '@shm/app/app-ipc'
import { AppErrorContent, RootAppError } from '@shm/app/components/app-error'
import { DaemonStatusProvider } from '@shm/app/node-status-context'
import Main from '@shm/app/pages/main'
import {AppQueryClient, getQueryClient} from '@shm/app/query-client'
import {NavigationContainer} from '@shm/app/utils/navigation-container'
import {useListenAppEvent} from '@shm/app/utils/window-events'
import {WindowUtils} from '@shm/app/window-utils'
import {API_HTTP_URL, createGRPCClient} from '@shm/shared'
import type {StateStream} from '@shm/shared/src/utils/stream'
import {Spinner, Toaster, YStack, toast, useStream} from '@shm/ui'
import { AppQueryClient, getQueryClient } from '@shm/app/query-client'
import { NavigationContainer } from '@shm/app/utils/navigation-container'
import { useListenAppEvent } from '@shm/app/utils/window-events'
import { WindowUtils } from '@shm/app/window-utils'
import { API_HTTP_URL, createGRPCClient } from '@shm/shared'
import type { StateStream } from '@shm/shared/src/utils/stream'
import { Spinner, Toaster, YStack, toast, useStream } from '@shm/ui'
import '@tamagui/core/reset.css'
import '@tamagui/font-inter/css/400.css'
import '@tamagui/font-inter/css/700.css'
import {ipcLink} from 'electron-trpc/renderer'
import React, {Suspense, useEffect, useMemo, useState} from 'react'
import { ipcLink } from 'electron-trpc/renderer'
import React, { Suspense, useEffect, useMemo, useState } from 'react'
import ReactDOM from 'react-dom/client'
import {ErrorBoundary} from 'react-error-boundary'
import { ErrorBoundary } from 'react-error-boundary'
import superjson from 'superjson'
import type {GoDaemonState} from './app-api'
import {createIPC} from './ipc'
import type {AppInfoType} from './preload'
import type { GoDaemonState } from './app-api'
import { createIPC } from './ipc'
import type { AppInfoType } from './preload'
import './root.css'
import {client, trpc} from './trpc'
import { client, trpc } from './trpc'

const logger = {
log: wrapLogger(console.log),
Expand Down Expand Up @@ -263,7 +263,7 @@ function MainApp({
<Main
className={
// this is used by editor.css which doesn't know tamagui styles, boooo!
darkMode ? 'mintter-app-dark' : 'mintter-app-light'
darkMode ? 'seed-app-dark' : 'seed-app-light'
}
/>
</DaemonStatusProvider>
Expand Down
8 changes: 4 additions & 4 deletions frontend/apps/desktop/test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Helpers copied from https://github.com/kubeshop/monokle/blob/main/tests/electronHelpers.ts
import {Page, _electron as electron} from '@playwright/test'
import { Page, _electron as electron } from '@playwright/test'
import * as ASAR from 'asar'
import * as fs from 'fs'
import log from 'loglevel'
import os from 'os'
import * as path from 'path'
import {ElectronAppInfo} from './types'
import { ElectronAppInfo } from './types'

/**
* Find the latest build and start monokle app for testing
Expand Down Expand Up @@ -304,8 +304,8 @@ export function parseElectronApp(buildDir: string): ElectronAppInfo {
}
}

const MAC_CONFIG_PATH = ['Library', 'Application Support', 'Mintter']
const WIN_CONFIG_PATH = ['AppData', 'Roaming', 'Mintter']
const MAC_CONFIG_PATH = ['Library', 'Application Support', 'Seed']
const WIN_CONFIG_PATH = ['AppData', 'Roaming', 'Seed']

export const deleteApplicationConfig = (platform: string) => {
let tempPath
Expand Down
Loading

0 comments on commit ebea580

Please sign in to comment.