Skip to content

Commit 38c2c47

Browse files
MattDHilldr-bonez
authored andcommitted
Feat/domains
update FE types and unify sideload page with marketplace show begin popover for UI launch select update node version for github workflows fix type errors eager load more components fix mocks for types recalculate updates bad on pkg uninstall chore: break form-object file structure files for config finish file upload API and implement for config chore: break down form-object by type, part 1 remove NEW from config comment entire setTimeout for new generic form options chore: break down form-object by type, part 2 headers for enums and unions implement select and multiselect for config update union types and camel case for specs implement textarea config value inputspec and required instead of nullable remove subtype from list spec update start-sdk bump start-sdk feat: use Taiga UI for config modal (#2250) * feat: use Taiga UI for config modal * chore: finish remaining changes * chore: address comments * bump sdk version --------- Co-authored-by: Matt Hill <[email protected]> update package lock update to sdk 20 and fix types chore: update Taiga UI and migrate some more forms (#2252) update form to latest sdk validate length for textarea too chore: accommodate new changes to the specs (#2254) * chore: accommodate new changes to the specs * chore: fix error * chore: fix error feat: add input color (#2257) * feat: add input color * patterns will always be there --------- Co-authored-by: Matt Hill <[email protected]> chore: properly type pattern error update to latest sdk Add sans-serif font fallback (#2263) * Add sans-serif font fallback * Update frontend readme start scripts feat: add datetime spec support (#2264) Wifi optional (#2249) * begin work * allow enable and disable wifi * nice styling * done except for popover not dismissing * update wifi.ts * address comments Feat/automated backups (#2142) * initial restructuring * very cool * new structure in place * delete unnecessary T * down the rabbit hole * getting better * dont like it * nice * very nice * sessions select all * nice * backup runs * fix targets and more * small improvements * mostly working * address PR comments * fix error * delete issue with merge * fix checkboxes and add API for deleting backup runs * better styling for checkboxes * small button in ssh kpage too * complete multiple UI launcher * fix actions * present error toast too * fix target forms Add logs window to setup wizard loading screen (#2076) * add logs window to setup wizard loading screen * fix type error * Update frontend/projects/setup-wizard/src/app/services/api/live-api.service.ts Co-authored-by: Lucy C <[email protected]> --------- Co-authored-by: Lucy C <[email protected]> statically type server metrics and use websocket (#2124) Co-authored-by: Matt Hill <[email protected]> Feat/external-smtp (#1791) * UI for EOS smtp, missing API layer * implement api * fix errors * switch to external smtp creds * fix things up * fix types * update types for new forms * feat: add new form to emails and marketplace (#2268) * import tuilet module * feat: get rid of old form completely (#2270) * move to builder spec and delete developer menu * update sdk * tiny * getting better * working * done * feat: add step to number config * chore: small fixes * update SDK and step for numbers --------- Co-authored-by: Alex Inkin <[email protected]> latest sdk, fix build update SDK for better disabled props feat: implement `disabled`, `immutable` and `generate` (#2280) * feat: implement `disabled`, `immutable` and `generate` * chore: remove unnecessary code * chore: add generate to textarea and implement immutable * no generate for textarea --------- Co-authored-by: Matt Hill <[email protected]> update lockfile refactor: extract loading status to shared library (#2282) * refactor: extract loading status to shared library * chore: remove inline style refactor: break routing down to apps level (#2285) closes #2212 and closes #2214 Feat/credentials (#2290) add credentials and remove properties refactor: break ui up further down (#2292) * refactor: break ui up further down * permit loading even when authed --------- Co-authored-by: Matt Hill <[email protected]> update patchdb for package compatability fixes fix file structure WIP finish rebase mvp complete port forwards mvp looking good cleaner system page move experimental features manual port overrides better info headers for jobs pages refactor: move diagnostic-ui app under ui route (#2306) * refactor: move diagnostic-ui app under ui route * chore: hide navigation * chore: remove ionic from diagnostic * fix navbar showing on login --------- Co-authored-by: Matt Hill <[email protected]> chore: partially remove ionic modals and loaders (#2308) * chore: partially remove ionic modals and loaders * change to snake --------- Co-authored-by: Matt Hill <[email protected]> better session data fetching abstract store icon component to shared marketplace project (#2311) * abstract store icon component to shared marketplace project * better than using a pipe * minor cleanup * chore: fix missing node types in libraries * typo --------- Co-authored-by: Matt Hill <[email protected]> Co-authored-by: waterplea <[email protected]> refactor: continue to get rid of ionic infrastructure (#2325) refactor: finish removing ionic entities: (#2333) * refactor: finish removing ionic entities: ToastController ErrorToastService ModalController AlertController LoadingController * chore: rollback testing code * chore: fix comments * minor form change * chore: fix comments * update clearnet address parts * move around patchDB * chore: fix comments --------- Co-authored-by: Matt Hill <[email protected]> fixup after rebase
1 parent c03778e commit 38c2c47

File tree

268 files changed

+4741
-4779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+4741
-4779
lines changed

CONTRIBUTING.md

-3
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,6 @@ instructions.
220220
is running normally.
221221
- `projects/setup-wizard`(frontend/README.md) - Code for the user interface
222222
that is displayed during the setup and recovery process for StartOS.
223-
- `projects/diagnostic-ui` - Code for the user interface that is displayed
224-
when something has gone wrong with starting up StartOS, which provides
225-
helpful debugging tools.
226223
- `libs` (Rust) is a set of standalone crates that were separated out of
227224
`backend` for the purpose of portability
228225
- `patch-db` - A diff based data store that is used to synchronize data between

Makefile

+1-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ENVIRONMENT_FILE = $(shell ./check-environment.sh)
44
GIT_HASH_FILE = $(shell ./check-git-hash.sh)
55
VERSION_FILE = $(shell ./check-version.sh)
66
EMBASSY_BINS := backend/target/$(ARCH)-unknown-linux-gnu/release/embassyd backend/target/$(ARCH)-unknown-linux-gnu/release/embassy-init backend/target/$(ARCH)-unknown-linux-gnu/release/embassy-cli backend/target/$(ARCH)-unknown-linux-gnu/release/embassy-sdk backend/target/$(ARCH)-unknown-linux-gnu/release/avahi-alias libs/target/aarch64-unknown-linux-musl/release/embassy_container_init libs/target/x86_64-unknown-linux-musl/release/embassy_container_init
7-
EMBASSY_UIS := frontend/dist/ui frontend/dist/setup-wizard frontend/dist/diagnostic-ui frontend/dist/install-wizard
7+
EMBASSY_UIS := frontend/dist/ui frontend/dist/setup-wizard frontend/dist/install-wizard
88
BUILD_SRC := $(shell find build)
99
EMBASSY_SRC := backend/embassyd.service backend/embassy-init.service $(EMBASSY_UIS) $(BUILD_SRC)
1010
COMPAT_SRC := $(shell find system-images/compat/ -not -path 'system-images/compat/target/*' -and -not -name *.tar -and -not -name target)
@@ -14,7 +14,6 @@ BACKEND_SRC := $(shell find backend/src) $(shell find backend/migrations) $(shel
1414
FRONTEND_SHARED_SRC := $(shell find frontend/projects/shared) $(shell ls -p frontend/ | grep -v / | sed 's/^/frontend\//g') frontend/package.json frontend/node_modules frontend/config.json patch-db/client/dist frontend/patchdb-ui-seed.json
1515
FRONTEND_UI_SRC := $(shell find frontend/projects/ui)
1616
FRONTEND_SETUP_WIZARD_SRC := $(shell find frontend/projects/setup-wizard)
17-
FRONTEND_DIAGNOSTIC_UI_SRC := $(shell find frontend/projects/diagnostic-ui)
1817
FRONTEND_INSTALL_WIZARD_SRC := $(shell find frontend/projects/install-wizard)
1918
PATCH_DB_CLIENT_SRC := $(shell find patch-db/client -not -path patch-db/client/dist)
2019
GZIP_BIN := $(shell which pigz || which gzip)
@@ -95,7 +94,6 @@ install: $(ALL_TARGETS)
9594
$(call cp,system-images/binfmt/docker-images/$(ARCH).tar,$(DESTDIR)/usr/lib/embassy/system-images/binfmt.tar)
9695

9796
$(call mkdir,$(DESTDIR)/var/www/html)
98-
$(call cp,frontend/dist/diagnostic-ui,$(DESTDIR)/var/www/html/diagnostic)
9997
$(call cp,frontend/dist/setup-wizard,$(DESTDIR)/var/www/html/setup)
10098
$(call cp,frontend/dist/install-wizard,$(DESTDIR)/var/www/html/install)
10199
$(call cp,frontend/dist/ui,$(DESTDIR)/var/www/html/main)
@@ -154,9 +152,6 @@ frontend/dist/ui: $(FRONTEND_UI_SRC) $(FRONTEND_SHARED_SRC) $(ENVIRONMENT_FILE)
154152
frontend/dist/setup-wizard: $(FRONTEND_SETUP_WIZARD_SRC) $(FRONTEND_SHARED_SRC) $(ENVIRONMENT_FILE)
155153
npm --prefix frontend run build:setup
156154

157-
frontend/dist/diagnostic-ui: $(FRONTEND_DIAGNOSTIC_UI_SRC) $(FRONTEND_SHARED_SRC) $(ENVIRONMENT_FILE)
158-
npm --prefix frontend run build:dui
159-
160155
frontend/dist/install-wizard: $(FRONTEND_INSTALL_WIZARD_SRC) $(FRONTEND_SHARED_SRC) $(ENVIRONMENT_FILE)
161156
npm --prefix frontend run build:install-wiz
162157

frontend/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ StartOS has three user interfaces and a shared library, all written in Ionic/Ang
55
1. **ui**: the main user interface
66
1. **install-wizard**: used to install StartOS
77
1. **setup-wizard**: used to facilitate initial setup
8-
1. **diagnostic-ui**: used to display certain diagnostic information in the event StartOS fails to initialize
98
1. **marketplace**: abstracted ui elements to search for, list and display details for packages and their dependencies
109
1. **shared**: contains components, types, and functions shared amongst all of the UIs.
1110

frontend/angular.json

+15-130
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
],
5151
"styles": [
5252
"node_modules/@taiga-ui/core/styles/taiga-ui-theme.less",
53+
"projects/shared/styles/taiga.scss",
5354
"projects/shared/styles/variables.scss",
5455
"projects/shared/styles/global.scss",
5556
"projects/shared/styles/shared.scss",
@@ -169,9 +170,16 @@
169170
"glob": "**/*.svg",
170171
"input": "node_modules/ionicons/dist/ionicons/svg",
171172
"output": "./svg"
173+
},
174+
{
175+
"glob": "**/*",
176+
"input": "node_modules/@taiga-ui/icons/src",
177+
"output": "assets/taiga-ui/icons"
172178
}
173179
],
174180
"styles": [
181+
"node_modules/@taiga-ui/core/styles/taiga-ui-theme.less",
182+
"projects/shared/styles/taiga.scss",
175183
"projects/shared/styles/variables.scss",
176184
"projects/shared/styles/global.scss",
177185
"projects/shared/styles/shared.scss",
@@ -299,9 +307,16 @@
299307
"glob": "**/*.svg",
300308
"input": "node_modules/ionicons/dist/ionicons/svg",
301309
"output": "./svg"
310+
},
311+
{
312+
"glob": "**/*",
313+
"input": "node_modules/@taiga-ui/icons/src",
314+
"output": "assets/taiga-ui/icons"
302315
}
303316
],
304317
"styles": [
318+
"node_modules/@taiga-ui/core/styles/taiga-ui-theme.less",
319+
"projects/shared/styles/taiga.scss",
305320
"projects/shared/styles/variables.scss",
306321
"projects/shared/styles/global.scss",
307322
"projects/shared/styles/shared.scss",
@@ -393,136 +408,6 @@
393408
}
394409
}
395410
},
396-
"diagnostic-ui": {
397-
"projectType": "application",
398-
"schematics": {},
399-
"root": "projects/diagnostic-ui",
400-
"sourceRoot": "projects/diagnostic-ui/src",
401-
"prefix": "app",
402-
"architect": {
403-
"build": {
404-
"builder": "@angular-devkit/build-angular:browser",
405-
"options": {
406-
"outputPath": "dist/diagnostic-ui",
407-
"index": "projects/diagnostic-ui/src/index.html",
408-
"main": "projects/diagnostic-ui/src/main.ts",
409-
"polyfills": "projects/diagnostic-ui/src/polyfills.ts",
410-
"tsConfig": "projects/diagnostic-ui/tsconfig.json",
411-
"inlineStyleLanguage": "scss",
412-
"assets": [
413-
{
414-
"glob": "**/*",
415-
"input": "projects/shared/assets",
416-
"output": "assets"
417-
},
418-
{
419-
"glob": "**/*.svg",
420-
"input": "node_modules/ionicons/dist/ionicons/svg",
421-
"output": "./svg"
422-
}
423-
],
424-
"styles": [
425-
"projects/shared/styles/variables.scss",
426-
"projects/shared/styles/global.scss",
427-
"projects/shared/styles/shared.scss",
428-
"projects/diagnostic-ui/src/styles.scss"
429-
],
430-
"scripts": []
431-
},
432-
"configurations": {
433-
"production": {
434-
"fileReplacements": [
435-
{
436-
"replace": "projects/diagnostic-ui/src/environments/environment.ts",
437-
"with": "projects/diagnostic-ui/src/environments/environment.prod.ts"
438-
}
439-
],
440-
"optimization": true,
441-
"outputHashing": "all",
442-
"sourceMap": false,
443-
"namedChunks": false,
444-
"aot": true,
445-
"extractLicenses": true,
446-
"vendorChunk": false,
447-
"buildOptimizer": true,
448-
"budgets": [
449-
{
450-
"type": "initial",
451-
"maximumWarning": "2mb",
452-
"maximumError": "5mb"
453-
}
454-
]
455-
},
456-
"ci": {
457-
"progress": false
458-
},
459-
"development": {
460-
"buildOptimizer": false,
461-
"optimization": false,
462-
"vendorChunk": true,
463-
"extractLicenses": false,
464-
"sourceMap": true,
465-
"namedChunks": true
466-
}
467-
},
468-
"defaultConfiguration": "production"
469-
},
470-
"serve": {
471-
"builder": "@angular-devkit/build-angular:dev-server",
472-
"options": {
473-
"browserTarget": "diagnostic-ui:build"
474-
},
475-
"configurations": {
476-
"production": {
477-
"browserTarget": "diagnostic-ui:build:production"
478-
},
479-
"development": {
480-
"browserTarget": "diagnostic-ui:build:development"
481-
}
482-
},
483-
"defaultConfiguration": "development"
484-
},
485-
"extract-i18n": {
486-
"builder": "@angular-devkit/build-angular:extract-i18n",
487-
"options": {
488-
"browserTarget": "diagnostic-ui:build"
489-
}
490-
},
491-
"lint": {
492-
"builder": "@angular-eslint/builder:lint",
493-
"options": {
494-
"lintFilePatterns": [
495-
"projects/diagnostic-ui/src/**/*.ts",
496-
"projects/diagnostic-ui/src/**/*.html"
497-
]
498-
}
499-
},
500-
"ionic-cordova-build": {
501-
"builder": "@ionic/angular-toolkit:cordova-build",
502-
"options": {
503-
"browserTarget": "diagnostic-ui:build"
504-
},
505-
"configurations": {
506-
"production": {
507-
"browserTarget": "diagnostic-ui:build:production"
508-
}
509-
}
510-
},
511-
"ionic-cordova-serve": {
512-
"builder": "@ionic/angular-toolkit:cordova-serve",
513-
"options": {
514-
"cordovaBuildTarget": "diagnostic-ui:ionic-cordova-build",
515-
"devServerTarget": "diagnostic-ui:serve"
516-
},
517-
"configurations": {
518-
"production": {
519-
"cordovaBuildTarget": "diagnostic-ui:ionic-cordova-build:production",
520-
"devServerTarget": "diagnostic-ui:serve:production"
521-
}
522-
}
523-
}
524-
}
525-
},
526411
"marketplace": {
527412
"projectType": "library",
528413
"root": "projects/marketplace",

frontend/ionic.config.json

-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
"integrations": {},
1818
"type": "angular",
1919
"root": "projects/setup-wizard"
20-
},
21-
"diagnostic-ui": {
22-
"name": "diagnostic-ui",
23-
"integrations": {},
24-
"type": "angular",
25-
"root": "projects/diagnostic-ui"
2620
}
2721
},
2822
"defaultProject": "ui"

frontend/lint-staged.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module.exports = {
44
'projects/ui/**/*.ts': () => 'npm run check:ui',
55
'projects/shared/**/*.ts': () => 'npm run check:shared',
66
'projects/marketplace/**/*.ts': () => 'npm run check:marketplace',
7-
'projects/diagnostic-ui/**/*.ts': () => 'npm run check:dui',
87
'projects/install-wizard/**/*.ts': () => 'npm run check:install-wiz',
98
'projects/setup-wizard/**/*.ts': () => 'npm run check:setup',
109
}

0 commit comments

Comments
 (0)