Skip to content

Commit

Permalink
upd build script
Browse files Browse the repository at this point in the history
upd favicon
  • Loading branch information
freekode committed Feb 21, 2024
1 parent 23e4506 commit 08e3bdb
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
6 changes: 2 additions & 4 deletions devops/build-jar.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/bash

cd ./ui
npm ci
npm run build
npm ci --prefix ui
npm run build --prefix ui

cd ../
cp -r ui/dist/ui/browser boot/src/main/resources/static

cd ./boot
Expand Down
4 changes: 2 additions & 2 deletions ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/favicon.png",
"src/assets"
],
"styles": [
Expand Down Expand Up @@ -88,7 +88,7 @@
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/favicon.png",
"src/assets"
],
"styles": [
Expand Down
1 change: 0 additions & 1 deletion ui/src/assets/loading.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<meta charset="utf-8">
<title>Loading</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<style type="text/css">
Expand Down
Binary file removed ui/src/favicon.ico
Binary file not shown.
Binary file added ui/src/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ui/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>tp2intervals</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="icon" type="image/x-icon" href="favicon.png">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/infrastructure/environment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class EnvironmentService {
}

getBootAddress() {
return window.electron?.bootAddress || 'http://localhost:8080'
return window.electron?.bootAddress || ''
}

getVersion(): Observable<string> {
Expand Down
4 changes: 4 additions & 0 deletions ui/src/proxy.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"/api": {
"target": "http://localhost:8080",
"secure": false
},
"/actuator": {
"target": "http://localhost:8080",
"secure": false
}
}

0 comments on commit 08e3bdb

Please sign in to comment.