Files
start-os/web
Matt Hill b40849f672 Fix/fe bugs 3 (#2943)
* fix typeo in patch db seed

* show all registries in updates tab, fix required dependnecy display in marketplace, update browser tab title desc

* always show pointer for version select

* chore: fix comments

* support html in action desc and marketplace long desc, only show qr in action res if qr is true

* disable save if smtp creds not edited, show better smtp success message

* dont dismiss login spinner until patchDB returns

* feat: redesign of service dashboard and interface (#2946)

* feat: redesign of service dashboard and interface

* chore: comments

* re-add setup complete

* dibale launch UI when not running, re-style things, rename things

* back to 1000

* fix clearnet docs link and require password retype in setup wiz

* faster hint display

* display dependency ID if title not available

* fix migration

* better init progress view

* fix setup success page by providing VERSION and notifications page fixes

* force uninstall from service error page, soft or hard

* handle error state better

* chore: fixed for install and setup wizards

* chore: fix issues (#2949)

* enable and disable kiosk mode

* minor fixes

* fix dependency mounts

* dismissable tasks

* provide replayId

* default if health check success message is null

* look for wifi interface too

* dash for null user agent in sessions

* add disk repair to diagnostic api

---------

Co-authored-by: waterplea <alexander@inkin.ru>
Co-authored-by: Aiden McClelland <me@drbonez.dev>
2025-05-21 19:04:26 -06:00
..
2025-05-21 19:04:26 -06:00
2023-11-13 15:59:16 -07:00
2023-11-13 15:59:16 -07:00
2025-04-13 13:03:51 -06:00
2023-11-13 15:59:16 -07:00
2025-05-20 16:11:50 -06:00
2025-05-20 16:11:50 -06:00
2025-05-21 19:04:26 -06:00
2023-11-13 15:59:16 -07:00
2025-05-17 18:10:24 -06:00
2025-04-12 09:53:03 -06:00
2023-11-13 15:59:16 -07:00
2025-04-17 09:00:59 -06:00

StartOS Web

StartOS web UIs are written in Angular/Typescript and leverage the Ionic Framework component library.

StartOS conditionally serves one of three Web UIs, depending on the state of the system and user choice.

  • install-wizard - UI for installing StartOS, served on localhost.
  • setup-wizard - UI for setting up StartOS, served on start.local.
  • ui - primary UI for administering StartOS, served on various hosts unique to the instance.

Additionally, there are two libraries for shared code:

  • marketplace - library code shared between the StartOS UI and Start9's brochure marketplace.
  • shared - library code shared between the various web UIs and marketplace lib.

Environment Setup

Install NodeJS and NPM

Check that your versions match the ones below

node --version
v22.15.0

npm --version
v11.3.0

Install and enable the Prettier extension for your text editor

Clone StartOS and load submodules

git clone https://github.com/Start9Labs/start-os.git
cd start-os
git submodule update --init --recursive

Move to web directory and install dependencies

cd web
npm ci
npm run build:deps

Note if you are on Windows you need to install make for these scripts to work. Easiest way to do so is to install Chocolatey and then run choco install make.

Copy config-sample.json to a new file config.json.

cp config-sample.json config.json
  • By default, "useMocks" is set to true.
  • Use "maskAs" to mock the host from which the web UI is served. Valid values are tor, local, localhost, ipv4, ipv6, and clearnet.
  • Use "maskAsHttps" to mock the protocol over which the web UI is served. true means https; false means http.

Running the development server

You can develop using mocks (recommended to start) or against a live server. Either way, any code changes will live reload the development server and refresh the browser page.

Using mocks

Start the standard development server

npm run start:install
npm run start:setup
npm run start:ui

Proxying to a live server

In config.json, set "useMocks" to false

Copy proxy.conf-sample.json to a new file proxy.conf.json

cp proxy.conf-sample.json proxy.conf.json

Replace every instance of "<CHANGEME>" with the hostname of your remote server

Start the proxy development server

npm run start:ui:proxy

Translations

Currently supported languages

  • Spanish
  • Polish
  • German
  • French

Adding a new translation

When prompting AI to translate the English dictionary, it is recommended to only give it 50-100 entries at a time. Beyond that it struggles. Remember to sanity check the results and ensure keys/values align in the resulting dictionary.

Sample AI prompt

Translate the English dictionary below into <language>. Format the result as a javascript object with the numeric values of the English dictionary as keys in the translated dictionary. These translations are for the web UI of StartOS, a graphical server operating system optimized for self-hosting. Comments may be included in the English dictionary to provide additional context.

Adding to StartOS

  • In the shared project:

    1. Create a new file (language.ts) in src/i18n/dictionaries
    2. Update the I18N_PROVIDERS array in src/i18n/i18n.providers.ts (2 places)
    3. Update the languages array in /src/i18n/i18n.service.ts
    4. Add the name of the new language (lowercase) to the English dictionary in src/i18n/dictionaries/en.ts. Add the translations of the new languages name (lowercase) to ALL non-English dictionaries in src/i18n/dictionaries/ (e.g., es.ts, pl.ts, etc.).

    If you have any doubt about the above steps, check the French example PR for reference.

  • Here in this README:

    1. Add the language to the list of supported languages below

Updating the English dictionary

Sample AI prompt

Translate the English dictionary below into the languages beneath the dictionary. Format the result as a javascript object with translated language as keys, mapping to a javascript object with the numeric values of the English dictionary as keys and the translations as values. These translations are for the web UI of StartOS, a graphical server operating system optimized for self-hosting. Comments may be included in the English dictionary to provide additional context.

English dictionary:

'Hello': 420,
'Goodby': 421

Languages:

  • Spanish
  • Polish
  • German
  • French

Adding to StartOS

In the shared project, copy/past the translations into their corresponding dictionaries in /src/i18n/dictionaries.