Migrate Angular UI from portmaster-ui to desktop/angular. Update Earthfile to build libs, UI and tauri-builtin

This commit is contained in:
Patrick Pacher
2024-03-20 10:43:29 +01:00
parent 66381baa1a
commit 4b77945517
922 changed files with 84071 additions and 26 deletions

View File

@@ -0,0 +1,22 @@
/*
export const environment = new class {
readonly supportHub = "https://support.safing.io"
readonly production = true;
get httpAPI() {
return `http://${window.location.host}/api`
}
get portAPI() {
const result = `ws://${window.location.host}/api/database/v1`;
return result;
}
}
*/
export const environment = {
production: false,
portAPI: "ws://127.0.0.1:817/api/database/v1",
httpAPI: "http://127.0.0.1:817/api",
supportHub: "https://support.safing.io"
};

View File

@@ -0,0 +1,19 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
portAPI: "ws://127.0.0.1:817/api/database/v1",
httpAPI: "http://127.0.0.1:817/api",
supportHub: "https://support.safing.io"
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
import 'zone.js/dist/zone-error'; // Included with Angular CLI.