From ebea58049f33b804cf533aea1fb343dbff1fba23 Mon Sep 17 00:00:00 2001 From: Horacio Herrera Date: Mon, 17 Jun 2024 16:27:41 +0200 Subject: [PATCH] frontend: seed rename --- CHANGELOG.md | 2 +- dev | 2 +- docs/docs/hyperdocs-aer.md | 2 +- docs/docusaurus.config.js | 4 +- frontend/apps/desktop/forge.config.ts | 38 ++++++++--------- frontend/apps/desktop/index.html | 2 +- frontend/apps/desktop/package.json | 8 ++-- .../apps/desktop/src/app-gateway-settings.ts | 6 +-- frontend/apps/desktop/src/app-menu.ts | 8 ++-- frontend/apps/desktop/src/daemon.ts | 12 +++--- frontend/apps/desktop/src/find-in-page.tsx | 12 +++--- frontend/apps/desktop/src/main.ts | 28 ++++++------- frontend/apps/desktop/src/root.tsx | 42 +++++++++---------- frontend/apps/desktop/test/utils.ts | 8 ++-- frontend/apps/site/pages/404.tsx | 12 +++--- frontend/apps/site/pages/_app.tsx | 16 +++---- .../apps/site/pages/connect-peer/[peerId].tsx | 10 ++--- ...media.tsx => download-seed-hypermedia.tsx} | 14 +++---- .../hypermedia-connect/[connectInfo].tsx | 18 ++++---- .../pages/secret-invite/[inviteSecret].tsx | 6 +-- frontend/apps/site/src/footer.tsx | 4 +- frontend/apps/site/src/metadata.tsx | 4 +- frontend/packages/app/app-context.tsx | 20 ++++----- frontend/packages/app/components/footer.tsx | 18 ++++---- .../{mintter-icon.tsx => seed-icon.tsx} | 4 +- .../app/components/windows-linux-titlebar.tsx | 26 ++++++------ frontend/packages/app/pages/onboarding.tsx | 40 +++++++++--------- frontend/packages/app/pages/settings.tsx | 36 ++++++++-------- .../DefaultButtons/CreateLinkButton.tsx | 10 ++--- frontend/packages/editor/src/editor.css | 4 +- frontend/packages/shared/src/constants.ts | 2 +- frontend/packages/ui/src/themes/colors.ts | 4 +- 32 files changed, 211 insertions(+), 211 deletions(-) rename frontend/apps/site/pages/{download-mintter-hypermedia.tsx => download-seed-hypermedia.tsx} (93%) rename frontend/packages/app/components/{mintter-icon.tsx => seed-icon.tsx} (94%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 176a4561ec..7501f9a2e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/dev b/dev index 3b1cc1948a..85678380f3 100755 --- a/dev +++ b/dev @@ -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: diff --git a/docs/docs/hyperdocs-aer.md b/docs/docs/hyperdocs-aer.md index efc32a5bf3..e2b6bba44a 100644 --- a/docs/docs/hyperdocs-aer.md +++ b/docs/docs/hyperdocs-aer.md @@ -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. diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 6ac5401d02..575f1aa250 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -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 // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/', diff --git a/frontend/apps/desktop/forge.config.ts b/frontend/apps/desktop/forge.config.ts index 9d67dd0a01..0947c703eb 100644 --- a/frontend/apps/desktop/forge.config.ts +++ b/frontend/apps/desktop/forge.config.ts @@ -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' @@ -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', }, } @@ -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'), diff --git a/frontend/apps/desktop/index.html b/frontend/apps/desktop/index.html index a919a9d67d..1b070ee6b3 100644 --- a/frontend/apps/desktop/index.html +++ b/frontend/apps/desktop/index.html @@ -2,7 +2,7 @@ - Mintter App + Seed Hypermedia App
diff --git a/frontend/apps/desktop/package.json b/frontend/apps/desktop/package.json index 1d51fe69b2..52305c4f9d 100644 --- a/frontend/apps/desktop/package.json +++ b/frontend/apps/desktop/package.json @@ -1,8 +1,8 @@ { "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", @@ -10,8 +10,8 @@ }, "license": "MIT", "author": { - "name": "Mintterteam", - "email": "team@mintter.com" + "name": "Seed Hypermedia team", + "email": "team@seedhypermedia.com" }, "main": ".vite/build/main.js", "scripts": { diff --git a/frontend/apps/desktop/src/app-gateway-settings.ts b/frontend/apps/desktop/src/app-gateway-settings.ts index 2f9670be28..08792dd6b7 100644 --- a/frontend/apps/desktop/src/app-gateway-settings.ts +++ b/frontend/apps/desktop/src/app-gateway-settings.ts @@ -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' diff --git a/frontend/apps/desktop/src/app-menu.ts b/frontend/apps/desktop/src/app-menu.ts index 9ca42be1b4..89b603306b 100644 --- a/frontend/apps/desktop/src/app-menu.ts +++ b/frontend/apps/desktop/src/app-menu.ts @@ -1,9 +1,9 @@ // 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() @@ -11,7 +11,7 @@ export function createAppMenu() { appMenu.append( new MenuItem({ role: 'appMenu', - label: 'Mintter', + label: 'Seed', submenu: [ {role: 'about'}, {type: 'separator'}, diff --git a/frontend/apps/desktop/src/daemon.ts b/frontend/apps/desktop/src/daemon.ts index da5c28775c..b000856bbd 100644 --- a/frontend/apps/desktop/src/daemon.ts +++ b/frontend/apps/desktop/src/daemon.ts @@ -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' diff --git a/frontend/apps/desktop/src/find-in-page.tsx b/frontend/apps/desktop/src/find-in-page.tsx index 8f4180cd25..0df89238cd 100644 --- a/frontend/apps/desktop/src/find-in-page.tsx +++ b/frontend/apps/desktop/src/find-in-page.tsx @@ -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(), []) @@ -17,7 +17,7 @@ function FindInPageView() {
diff --git a/frontend/apps/desktop/src/main.ts b/frontend/apps/desktop/src/main.ts index 68dc2bbe7f..1c0bc88cd5 100644 --- a/frontend/apps/desktop/src/main.ts +++ b/frontend/apps/desktop/src/main.ts @@ -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, @@ -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' @@ -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({ @@ -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 @@ -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) @@ -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({ diff --git a/frontend/apps/desktop/src/root.tsx b/frontend/apps/desktop/src/root.tsx index 445f043182..46474c78d4 100644 --- a/frontend/apps/desktop/src/root.tsx +++ b/frontend/apps/desktop/src/root.tsx @@ -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), @@ -263,7 +263,7 @@ function MainApp({
diff --git a/frontend/apps/desktop/test/utils.ts b/frontend/apps/desktop/test/utils.ts index edda42a1cf..ae0f45a376 100644 --- a/frontend/apps/desktop/test/utils.ts +++ b/frontend/apps/desktop/test/utils.ts @@ -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 @@ -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 diff --git a/frontend/apps/site/pages/404.tsx b/frontend/apps/site/pages/404.tsx index 804554779b..52c868a652 100644 --- a/frontend/apps/site/pages/404.tsx +++ b/frontend/apps/site/pages/404.tsx @@ -1,7 +1,7 @@ -import {HYPERMEDIA_ENTITY_TYPES, unpackHmId} from '@shm/shared' -import {Button, Paragraph, SizableText} from '@shm/ui' +import { HYPERMEDIA_ENTITY_TYPES, unpackHmId } from '@shm/shared' +import { Button, Paragraph, SizableText } from '@shm/ui' import Link from 'next/link' -import {ErrorPage} from 'src/error-page' +import { ErrorPage } from 'src/error-page' export default function NotFoundPage() { return @@ -26,13 +26,13 @@ export function EntityNotFoundPage({ We couldn't find this {entityTypeName.toLowerCase()}. You might be able to find it in the{' '} - - Mintter App + + Seed App {' '} if you are connected to a peer who has it. - + ) diff --git a/frontend/apps/site/pages/_app.tsx b/frontend/apps/site/pages/_app.tsx index 24750c2ab0..427e9df796 100644 --- a/frontend/apps/site/pages/_app.tsx +++ b/frontend/apps/site/pages/_app.tsx @@ -11,20 +11,20 @@ if (!global.setImmediate || !globalThis['setImmediate']) { globalThis['setImmediate'] = setTimeout } -import {NextThemeProvider, useRootTheme} from '@tamagui/next-theme' +import { NextThemeProvider, useRootTheme } from '@tamagui/next-theme' import { DehydratedState, Hydrate, QueryClient, QueryClientProvider, } from '@tanstack/react-query' -import {ReactQueryDevtools} from '@tanstack/react-query-devtools' +import { ReactQueryDevtools } from '@tanstack/react-query-devtools' -import {TamaguiProvider, Toaster} from '@shm/ui' -import type {AppProps} from 'next/app' +import { TamaguiProvider, Toaster } from '@shm/ui' +import type { AppProps } from 'next/app' import Head from 'next/head' -import React, {startTransition, useMemo, useState} from 'react' -import {trpc} from '../src/trpc' +import React, { startTransition, useMemo, useState } from 'react' +import { trpc } from '../src/trpc' import tamaguiConfig from '../tamagui.config' if (process.env.NODE_ENV === 'production') { @@ -33,8 +33,8 @@ if (process.env.NODE_ENV === 'production') { export default trpc.withTRPC(App) -const isMintterSite = process.env.HM_BASE_URL === 'https://mintter.com' -const hostIconPrefix = isMintterSite ? '/mintter-icon' : '/generic-icon' +const isSeedSite = process.env.HM_BASE_URL === 'https://seedhypermedia.com' +const hostIconPrefix = isSeedSite ? '/seed-icon' : '/generic-icon' export type EveryPageProps = { trpcState?: DehydratedState diff --git a/frontend/apps/site/pages/connect-peer/[peerId].tsx b/frontend/apps/site/pages/connect-peer/[peerId].tsx index 208bb9c909..7cff29c91b 100644 --- a/frontend/apps/site/pages/connect-peer/[peerId].tsx +++ b/frontend/apps/site/pages/connect-peer/[peerId].tsx @@ -1,7 +1,7 @@ -import {Button, PageSection, SizableText, YStack} from '@shm/ui' +import { Button, PageSection, SizableText, YStack } from '@shm/ui' import Link from 'next/link' -import {useRouter} from 'next/router' -import {SiteHead} from '../../src/site-head' +import { useRouter } from 'next/router' +import { SiteHead } from '../../src/site-head' export default function ConnectPeerPage() { const router = useRouter() @@ -25,12 +25,12 @@ export default function ConnectPeerPage() { Somebody wants to connect with you! First{' '} - download the Mintter app + download the Seed app , then press this button to launch it: - + diff --git a/frontend/apps/site/pages/download-mintter-hypermedia.tsx b/frontend/apps/site/pages/download-seed-hypermedia.tsx similarity index 93% rename from frontend/apps/site/pages/download-mintter-hypermedia.tsx rename to frontend/apps/site/pages/download-seed-hypermedia.tsx index 55a6a70cee..5812fa62a2 100644 --- a/frontend/apps/site/pages/download-mintter-hypermedia.tsx +++ b/frontend/apps/site/pages/download-seed-hypermedia.tsx @@ -10,22 +10,22 @@ import { XStack, YStack, } from '@shm/ui' -import {GetStaticProps} from 'next' -import {getPageProps} from 'server/ssr-helpers' -import {getSiteServerHelpers} from 'server/static-props' -import {SiteHead} from 'src/site-head' -import {EveryPageProps} from './_app' +import { GetStaticProps } from 'next' +import { getPageProps } from 'server/ssr-helpers' +import { getSiteServerHelpers } from 'server/static-props' +import { SiteHead } from 'src/site-head' +import { EveryPageProps } from './_app' export default function DownloadPage(props: any) { return ( <> - + - Download Mintter + Download Seed {props.versionName} diff --git a/frontend/apps/site/pages/hypermedia-connect/[connectInfo].tsx b/frontend/apps/site/pages/hypermedia-connect/[connectInfo].tsx index 6a1a4cccbc..bc1786ee69 100644 --- a/frontend/apps/site/pages/hypermedia-connect/[connectInfo].tsx +++ b/frontend/apps/site/pages/hypermedia-connect/[connectInfo].tsx @@ -6,12 +6,12 @@ import { XStack, YStack, } from '@shm/ui' -import {decompressFromEncodedURIComponent} from 'lz-string' +import { decompressFromEncodedURIComponent } from 'lz-string' import Link from 'next/link' -import {useRouter} from 'next/router' -import {useMemo} from 'react' -import {MainSiteLayout} from 'src/site-layout' -import {SiteHead} from '../../src/site-head' +import { useRouter } from 'next/router' +import { useMemo } from 'react' +import { MainSiteLayout } from 'src/site-layout' +import { SiteHead } from '../../src/site-head' export default function ConnectPeerPage() { const router = useRouter() @@ -37,17 +37,17 @@ export default function ConnectPeerPage() { gap="$3" > - Connect to "{alias}" on Mintter Hypermedia + Connect to "{alias}" on Seed Hypermedia 1. Download the app and set up your account: @@ -61,7 +61,7 @@ export default function ConnectPeerPage() { style={{textDecoration: 'none'}} > diff --git a/frontend/apps/site/pages/secret-invite/[inviteSecret].tsx b/frontend/apps/site/pages/secret-invite/[inviteSecret].tsx index 3380eda3b9..e0e5a36a29 100644 --- a/frontend/apps/site/pages/secret-invite/[inviteSecret].tsx +++ b/frontend/apps/site/pages/secret-invite/[inviteSecret].tsx @@ -1,5 +1,5 @@ -import {PageSection, SizableText, YStack} from '@shm/ui' -import {SiteHead} from '../../src/site-head' +import { PageSection, SizableText, YStack } from '@shm/ui' +import { SiteHead } from '../../src/site-head' export default function NotFoundPage() { return ( @@ -19,7 +19,7 @@ export default function NotFoundPage() { gap="$3" > - Welcome to your new site. Paste this URL into the Mintter app to + Welcome to your new site. Paste this URL into the Seed app to publish your group to this new site. diff --git a/frontend/apps/site/src/footer.tsx b/frontend/apps/site/src/footer.tsx index 465e2f5d57..041db501c6 100644 --- a/frontend/apps/site/src/footer.tsx +++ b/frontend/apps/site/src/footer.tsx @@ -1,5 +1,5 @@ -import {SizableText, XStack, YStack} from '@shm/ui' -import {NextLink} from 'src/next-link' +import { SizableText, XStack, YStack } from '@shm/ui' +import { NextLink } from 'src/next-link' export default function Footer() { return ( diff --git a/frontend/apps/site/src/metadata.tsx b/frontend/apps/site/src/metadata.tsx index dd92213ffb..cc1acbf481 100644 --- a/frontend/apps/site/src/metadata.tsx +++ b/frontend/apps/site/src/metadata.tsx @@ -1,4 +1,4 @@ -import {Button, Share, SizableText, XStack} from '@shm/ui' +import { Button, Share, SizableText, XStack } from '@shm/ui' export function OpenInAppLink({url}: {url: string}) { return ( @@ -11,7 +11,7 @@ export function OpenInAppLink({url}: {url: string}) { userSelect="none" > - Open in Mintter app + Open in Seed app ) diff --git a/frontend/packages/app/app-context.tsx b/frontend/packages/app/app-context.tsx index a0d74b5d6d..f99849fb59 100644 --- a/frontend/packages/app/app-context.tsx +++ b/frontend/packages/app/app-context.tsx @@ -1,13 +1,13 @@ -import {GRPCClient} from '@shm/shared' -import {TamaguiProvider, TamaguiProviderProps, View} from '@shm/ui' -import {QueryClientProvider} from '@tanstack/react-query' -import {ReactQueryDevtools} from '@tanstack/react-query-devtools' -import {ReactNode, createContext, useContext, useEffect, useMemo} from 'react' -import {AppIPC, Event, EventCallback} from './app-ipc' -import {useExperiments} from './models/experiments' -import {AppQueryClient} from './query-client' +import { GRPCClient } from '@shm/shared' +import { TamaguiProvider, TamaguiProviderProps, View } from '@shm/ui' +import { QueryClientProvider } from '@tanstack/react-query' +import { ReactQueryDevtools } from '@tanstack/react-query-devtools' +import { ReactNode, createContext, useContext, useEffect, useMemo } from 'react' +import { AppIPC, Event, EventCallback } from './app-ipc' +import { useExperiments } from './models/experiments' +import { AppQueryClient } from './query-client' import tamaguiConfig from './tamagui.config' -import {WindowUtils} from './window-utils' +import { WindowUtils } from './window-utils' export type AppPlatform = typeof process.platform @@ -90,7 +90,7 @@ export function StyleProvider({ // TODO: find a way to add this props without breaking all the styles // disableInjectCSS // disableRootThemeClass - className={darkMode ? 'mintter-app-dark' : 'mintter-app-light'} + className={darkMode ? 'seed-app-dark' : 'seed-app-light'} defaultTheme={darkMode ? 'dark' : 'light'} {...rest} > diff --git a/frontend/packages/app/components/footer.tsx b/frontend/packages/app/components/footer.tsx index 1dc36fde79..f4fd4b291f 100644 --- a/frontend/packages/app/components/footer.tsx +++ b/frontend/packages/app/components/footer.tsx @@ -1,7 +1,7 @@ -import {useConnectionSummary} from '@shm/app/models/contacts' -import {useDaemonReady} from '@shm/app/node-status-context' -import {useNavRoute} from '@shm/app/utils/navigation' -import {VERSION} from '@shm/shared' +import { useConnectionSummary } from '@shm/app/models/contacts' +import { useDaemonReady } from '@shm/app/node-status-context' +import { useNavRoute } from '@shm/app/utils/navigation' +import { VERSION } from '@shm/shared' import { Button, ButtonProps, @@ -10,10 +10,10 @@ import { SizableText, XStack, } from '@shm/ui' -import {Cable} from '@tamagui/lucide-icons' -import {ReactNode} from 'react' -import {OnlineIndicator} from './indicator' -import {useNetworkDialog} from './network-dialog' +import { Cable } from '@tamagui/lucide-icons' +import { ReactNode } from 'react' +import { OnlineIndicator } from './indicator' +import { useNetworkDialog } from './network-dialog' export function FooterButton({ active, @@ -89,7 +89,7 @@ export default function Footer({children}: {children?: ReactNode}) { }} color="$color8" > - {`Mintter ${VERSION}`} + {`Seed ${VERSION}`} {/* To do: include release date of this version. when this is clicked, we should help the user upgrade */} diff --git a/frontend/packages/app/components/mintter-icon.tsx b/frontend/packages/app/components/seed-icon.tsx similarity index 94% rename from frontend/packages/app/components/mintter-icon.tsx rename to frontend/packages/app/components/seed-icon.tsx index 9c8a5ae832..1eb137de18 100644 --- a/frontend/packages/app/components/mintter-icon.tsx +++ b/frontend/packages/app/components/seed-icon.tsx @@ -1,4 +1,4 @@ -import {XStack} from '@shm/ui' +import { XStack } from '@shm/ui' type IconSize = '$1' | '$2' | '$3' | '$4' @@ -9,7 +9,7 @@ let sizes = { $4: 60, } as const -export function MintterIcon({ +export function SeedIcon({ size: propSize = '$2', color, }: { diff --git a/frontend/packages/app/components/windows-linux-titlebar.tsx b/frontend/packages/app/components/windows-linux-titlebar.tsx index 3b07d1956b..a15d688f97 100644 --- a/frontend/packages/app/components/windows-linux-titlebar.tsx +++ b/frontend/packages/app/components/windows-linux-titlebar.tsx @@ -1,5 +1,5 @@ -import {useIPC, useWindowUtils} from '@shm/app/app-context' -import {useNavigate} from '@shm/app/utils/useNavigate' +import { useIPC, useWindowUtils } from '@shm/app/app-context' +import { useNavigate } from '@shm/app/utils/useNavigate' import { AddSquare, Button, @@ -22,13 +22,13 @@ import { XStack, YGroup, } from '@shm/ui' -import {Contact, FileText, Library} from '@tamagui/lucide-icons' -import {useMemo} from 'react' -import {useNavRoute, useNavigationDispatch} from '../utils/navigation' -import {useOpenDraft} from '../utils/open-draft' -import {defaultRoute} from '../utils/routes' -import {useTriggerWindowEvent} from '../utils/window-events' -import {WindowsLinuxWindowControls} from './window-controls' +import { Contact, FileText, Library } from '@tamagui/lucide-icons' +import { useMemo } from 'react' +import { useNavRoute, useNavigationDispatch } from '../utils/navigation' +import { useOpenDraft } from '../utils/open-draft' +import { defaultRoute } from '../utils/routes' +import { useTriggerWindowEvent } from '../utils/window-events' +import { WindowsLinuxWindowControls } from './window-controls' export function WindowsLinuxTitleBar({ left, @@ -98,8 +98,8 @@ export function SystemMenu() { const menuItems: Array = useMemo( () => [ { - id: 'mintter', - title: 'Mintter', + id: 'seed', + title: 'Seed', children: [ { id: 'preferences', @@ -130,7 +130,7 @@ export function SystemMenu() { }, { id: 'quit', - title: 'Quit Mintter', + title: 'Quit Seed', onSelect: () => quit(), icon: Delete, }, @@ -279,7 +279,7 @@ export function SystemMenu() { backgroundColor="transparent" borderRadius={0} paddingHorizontal="$2" - fontWeight={item.id == 'mintter' ? 'bold' : undefined} + fontWeight={item.id == 'seed' ? 'bold' : undefined} > {item.title} diff --git a/frontend/packages/app/pages/onboarding.tsx b/frontend/packages/app/pages/onboarding.tsx index eb4321d09f..597bc947e4 100644 --- a/frontend/packages/app/pages/onboarding.tsx +++ b/frontend/packages/app/pages/onboarding.tsx @@ -1,9 +1,8 @@ -import {MintterIcon} from '@shm/app/components/mintter-icon' import appError from '@shm/app/errors' -import {useSetProfile} from '@shm/app/models/accounts' -import {useAccountRegistration, useMnemonics} from '@shm/app/models/daemon' -import {trpc} from '@shm/desktop/src/trpc' -import {Profile as ProfileType} from '@shm/shared' +import { useSetProfile } from '@shm/app/models/accounts' +import { useAccountRegistration, useMnemonics } from '@shm/app/models/daemon' +import { trpc } from '@shm/desktop/src/trpc' +import { Profile as ProfileType } from '@shm/shared' import { Button, ButtonProps, @@ -46,10 +45,11 @@ import { useRef, useState, } from 'react' -import {useConnectPeer} from '../models/contacts' -import {useWalletOptIn} from '../models/wallet' -import {useDaemonReady} from '../node-status-context' -import {isHttpUrl} from '../utils/navigation' +import { SeedIcon } from '../components/seed-icon' +import { useConnectPeer } from '../models/contacts' +import { useWalletOptIn } from '../models/wallet' +import { useDaemonReady } from '../node-status-context' +import { isHttpUrl } from '../utils/navigation' const CONTENT_MAX_WIDTH = 500 @@ -85,12 +85,12 @@ function Welcome(props: OnboardingStepProps) {

Welcome to

-

Mintter

+

Seed

- Welcome to Mintter, the decentralized knowledge collaboration app + Welcome to Seed, the decentralized knowledge collaboration app that fosters constructive dialogue and critical debate. @@ -320,7 +320,7 @@ function Mnemonics(props: OnboardingStepProps) { }} > I understand that after this point I will not be able to - recover my 12-word recovery phrase. Mintter cannot help me + recover my 12-word recovery phrase. Seed cannot help me recover them if I lose it. @@ -329,7 +329,7 @@ function Mnemonics(props: OnboardingStepProps) { If you aready have a BIP-39 seed, you can reuse it with - Mintter and we will derive a seprate Mintter-specific key + Seed and we will derive a seprate Seed-specific key from it I understand that after this point I will not be able to - recover my 12-word recovery phrase. Mintter cannot help me + recover my 12-word recovery phrase. Seed cannot help me recover them if I lose it. @@ -543,7 +543,7 @@ function NewDevice(props: OnboardingStepProps) { }} > I understand that after this point I will not be able to recover - my 12-word recovery phrase. Mintter cannot help me recover them + my 12-word recovery phrase. Seed cannot help me recover them if I lose it. {error || register.status == 'error' ? ( @@ -606,7 +606,7 @@ function Profile(props: OnboardingStepProps) { - Link your personal data with your new Mintter account. You can + Link your personal data with your new Seed account. You can fill this information later if you prefer. @@ -650,13 +650,13 @@ function Analytics(props: OnboardingStepProps) { - Pre-release versions of Mintter automatically send anonymized + Pre-release versions of Seed automatically send anonymized crash reports when things go wrong. This helps us fix bugs and improve performance. We strongly believe privacy is a basic human right, so the full - release of Mintter will never send your data to anyone. + release of Seed will never send your data to anyone. @@ -717,7 +717,7 @@ function Wallet(props: OnboardingStepProps) { const SuggestedSites = import.meta.env.DEV ? ['test.hyper.media'] - : ['mintter.com', 'hyper.media'] + : ['seedhypermedia.com', 'hyper.media', 'mintter.com'] function ConnectSite(props: OnboardingStepProps) { const isDaemonReady = useDaemonReady() @@ -863,7 +863,7 @@ function StepWrapper({children, ...props}: PropsWithChildren) { maxWidth={1024} > - diff --git a/frontend/packages/app/pages/settings.tsx b/frontend/packages/app/pages/settings.tsx index 3ef1e453b5..933bba580a 100644 --- a/frontend/packages/app/pages/settings.tsx +++ b/frontend/packages/app/pages/settings.tsx @@ -1,10 +1,10 @@ -import {useMyAccount} from '@shm/app/models/accounts' -import {useDaemonInfo} from '@shm/app/models/daemon' -import {usePeerInfo} from '@shm/app/models/networking' -import {useInvoicesBywallet, useWallets} from '@shm/app/models/payments' -import {ObjectKeys} from '@shm/app/utils/object-keys' -import {trpc} from '@shm/desktop/src/trpc' -import {LightningWallet, Profile, VERSION} from '@shm/shared' +import { useMyAccount } from '@shm/app/models/accounts' +import { useDaemonInfo } from '@shm/app/models/daemon' +import { usePeerInfo } from '@shm/app/models/networking' +import { useInvoicesBywallet, useWallets } from '@shm/app/models/payments' +import { ObjectKeys } from '@shm/app/utils/object-keys' +import { trpc } from '@shm/desktop/src/trpc' +import { LightningWallet, Profile, VERSION } from '@shm/shared' import { ArrowDownRight, Button, @@ -41,15 +41,15 @@ import { YStack, toast, } from '@shm/ui' -import {Trash} from '@tamagui/lucide-icons' +import { Trash } from '@tamagui/lucide-icons' import copyTextToClipboard from 'copy-text-to-clipboard' -import React, {useEffect, useMemo, useState} from 'react' -import {useIPC} from '../app-context' -import {AvatarForm} from '../components/avatar-form' -import {useEditProfileDialog} from '../components/edit-profile-dialog' +import React, { useEffect, useMemo, useState } from 'react' +import { useIPC } from '../app-context' +import { AvatarForm } from '../components/avatar-form' +import { useEditProfileDialog } from '../components/edit-profile-dialog' import appError from '../errors' -import {useAutoUpdatePreference} from '../models/app-settings' -import {useExperiments, useWriteExperiments} from '../models/experiments' +import { useAutoUpdatePreference } from '../models/app-settings' +import { useExperiments, useWriteExperiments } from '../models/experiments' import { useGatewayUrl, usePushOnCopy, @@ -58,9 +58,9 @@ import { useSetPushOnCopy, useSetPushOnPublish, } from '../models/gateway-settings' -import {useExportWallet} from '../models/payments' -import {useWalletOptIn} from '../models/wallet' -import {getAvatarUrl} from '../utils/account-url' +import { useExportWallet } from '../models/payments' +import { useWalletOptIn } from '../models/wallet' +import { getAvatarUrl } from '../utils/account-url' export default function Settings() { return ( @@ -197,7 +197,7 @@ export function DeveloperSettings() { Adds features across the app for helping diagnose issues. Mostly - useful for Mintter Developers. + useful for Seed Developers. {enabledDevTools ? : } diff --git a/frontend/packages/editor/src/blocknote/react/FormattingToolbar/components/DefaultButtons/CreateLinkButton.tsx b/frontend/packages/editor/src/blocknote/react/FormattingToolbar/components/DefaultButtons/CreateLinkButton.tsx index 3c49ca74bf..3c60919fd0 100644 --- a/frontend/packages/editor/src/blocknote/react/FormattingToolbar/components/DefaultButtons/CreateLinkButton.tsx +++ b/frontend/packages/editor/src/blocknote/react/FormattingToolbar/components/DefaultButtons/CreateLinkButton.tsx @@ -1,7 +1,7 @@ -import {BlockNoteEditor, BlockSchema} from '@/blocknote/core' -import {useCallback, useState} from 'react' -import {RiLink} from 'react-icons/ri' -import {useEditorSelectionChange} from '../../../hooks/useEditorSelectionChange' +import { BlockNoteEditor, BlockSchema } from '@/blocknote/core' +import { useCallback, useState } from 'react' +import { RiLink } from 'react-icons/ri' +import { useEditorSelectionChange } from '../../../hooks/useEditorSelectionChange' import LinkToolbarButton from '../LinkToolbarButton' export const CreateLinkButton = (props: { @@ -29,7 +29,7 @@ export const CreateLinkButton = (props: {