Skip to content

Commit ffd7d79

Browse files
Merge pull request #207 from OS2iot/feature/IOT-1615-Update-packages
Feature/iot 1615 update packages
2 parents 8f2d639 + 4e250e7 commit ffd7d79

File tree

422 files changed

+17072
-13545
lines changed

Some content is hidden

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

422 files changed

+17072
-13545
lines changed

.github/ISSUE_TEMPLATE/fejl----bug-report.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,41 @@ assignees: ''
1111
[Indmeld kun 1 fejl pr. issue og tjek gerne om fejlen allerede er indmeldt //Only one bug per issue and make sure to check if the issue already exists.]
1212

1313
### Beskriv fejlen // Describe the bug
14+
1415
Vær klar og præcis i din beskrivelse af fejlen // A clear and concise description of what the bug is.
1516

1617
### Genskab fejlen // To Reproduce
18+
1719
Sådan genskabes fejlen // Steps to reproduce the behavior:
20+
1821
1. Go to '...'
1922
2. Click on '....'
2023
3. Scroll down to '....'
2124
4. See error
2225

2326
### Forventet funktion // Expected behavior
27+
2428
Beskriv klart og præcist hvordan du forventede, at det fungerede // A clear and concise description of what you expected to happen.
2529

2630
### Screenshots
31+
2732
Tilføj om muligt et eller flere billeder, der viser fejlen // If applicable, add screenshots to help explain your problem.
2833

2934
### URL
35+
3036
Angiv den URL, som fejlen opstår på - fx "../gateways/gateway-detail/60c5a8fffe7611a9" // Enter the URL at which the bug occurs - eg "../gateways/gateway-detail/60c5a8fffe7611a9".
3137

3238
### Desktop
39+
3340
Udfyld venligst følgende // Please complete the following information:
34-
Styresystem/OS: [e.g. WIN10]
35-
Browser: [e.g. Chrome, Safari]
36-
Version: [e.g. 22]
41+
Styresystem/OS: [e.g. WIN10]
42+
Browser: [e.g. Chrome, Safari]
43+
Version: [e.g. 22]
3744

3845
### Log
46+
3947
Tilføj om muligt relevant log med fejlbeskrivelser // If applicable, add relevant log with error descriptions.
4048

4149
### Supplerende oplysninger (Additional context)
50+
4251
Tilføj andre detaljer vedrørende fejlen // Add any other context about the problem here.

.github/ISSUE_TEMPLATE/ny-feature----feature-request.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ assignees: ''
1111
[Brug dette issue til at ønske tilføjelse af ny funktionalitet eller andet, der ikke allerede findes i OS2iot. Opret et issue pr. nyt ønske // Use this issue to request new functionality or other that doesn't already exist in OS2iot. Please only submit one request per issue.]
1212

1313
### Skyldes dit forslag et særligt behov eller et problem? Beskriv venligst // Is your feature request related to a certain need or problem? Please describe
14+
1415
Beskriv problemet klart og præcist. Fx jeg har ofte brug for, at kunne... // A clear and concise description of what the need or problem is. Ex. I often need to be able to...
1516

1617
### Beskriv det du gerne ser tilføjet til OS2iot // Describe the solution you'd like to add to OS2iot
18+
1719
Giv en præcis beskrivelse af, hvad der skal tilføjes // A clear and concise description of what you want to add to the design system.
1820

1921
### Beskriv de alternativer du har overvejet // Describe alternatives you've considered
22+
2023
Giv en kort og præcis beskrivelse af alle de alternativer du har overvejet og hvorfor du foreslår den løsning du gør // A clear and concise description of any alternative solutions or features you've considered, and why you've settled on that solution.
2124

2225
### Supplerende bemærkninger // Additional context
26+
2327
Tilføj yderligere beskrivelser og billeder her, der forklarer dit forslag // Add any other context or screenshots about the feature request here.

.github/workflows/on-push-pr.action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/setup-node@v3
3030
name: Set NodeJS version
3131
with:
32-
node-version: 18
32+
node-version: 20
3333
- name: Install packages
3434
run: "npm ci"
3535
- name: Build source

.vscode/launch.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"version": "0.2.0",
3-
"configurations": [{
3+
"configurations": [
4+
{
45
"type": "firefox",
56
"request": "launch",
67
"reAttach": true,
@@ -14,6 +15,6 @@
1415
"request": "launch",
1516
"url": "http://localhost:4200",
1617
"webRoot": "${workspaceFolder}"
17-
},
18+
}
1819
]
1920
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"typescript.tsdk": "node_modules\\typescript\\lib"
2+
"typescript.tsdk": "node_modules\\typescript\\lib"
33
}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Based on https://mherman.org/blog/dockerizing-an-angular-app/
22
# base image
3-
FROM node:18-alpine as DEV
3+
FROM node:20-alpine as DEV
44

55
# removed this for now
66
# install chrome for protractor tests
@@ -17,7 +17,7 @@ ENV PATH /app/node_modules/.bin:$PATH
1717
# install and cache app dependencies
1818
COPY package.json /app/package.json
1919
RUN npm install
20-
RUN npm install -g @angular/cli@17.3.8
20+
RUN npm install -g @angular/cli@20.3.7
2121

2222
# add app
2323
COPY . /app

Dockerfile-prod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Based on https://mherman.org/blog/dockerizing-an-angular-app/
22
# base image
3-
FROM node:18-alpine as builder
3+
FROM node:20-alpine as builder
44

55
# removed this for now
66
# install chrome for protractor tests
@@ -17,7 +17,7 @@ ENV PATH /app/node_modules/.bin:$PATH
1717
# install and cache app dependencies
1818
COPY package.json /app/package.json
1919
RUN npm install
20-
RUN npm install -g @angular/cli@17.3.8
20+
RUN npm install -g @angular/cli@20.3.7
2121

2222
# add app
2323
COPY . /app

angular.json

Lines changed: 53 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,44 @@
1515
"prefix": "app",
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
18+
"builder": "@angular-devkit/build-angular:application",
1919
"options": {
20-
"outputPath": "dist/OS2IoT-frontend",
20+
"outputPath": {
21+
"base": "dist/OS2IoT-frontend"
22+
},
2123
"index": "src/index.html",
22-
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
24+
"polyfills": [
25+
"src/polyfills.ts"
26+
],
2427
"tsConfig": "tsconfig.app.json",
2528
"assets": [
2629
"src/favicon.ico",
2730
"src/assets",
28-
{ "glob": "**/*", "input": "node_modules/monaco-editor", "output": "/assets/monaco/" }
31+
{
32+
"glob": "**/*",
33+
"input": "node_modules/monaco-editor",
34+
"output": "/assets/monaco/"
35+
}
2936
],
3037
"styles": [
3138
"./node_modules/animate.css/animate.min.css",
3239
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
3340
"src/styles.scss"
3441
],
3542
"scripts": [
36-
"node_modules/popper.js/dist/umd/popper.min.js",
43+
"node_modules/@popperjs/core/dist/umd/popper.min.js",
3744
"node_modules/bootstrap/dist/js/bootstrap.min.js"
3845
],
39-
"vendorChunk": true,
4046
"extractLicenses": false,
41-
"buildOptimizer": false,
4247
"sourceMap": true,
4348
"optimization": false,
44-
"namedChunks": true
49+
"namedChunks": true,
50+
"browser": "src/main.ts",
51+
"stylePreprocessorOptions": {
52+
"includePaths": [
53+
"."
54+
]
55+
}
4556
},
4657
"configurations": {
4758
"production": {
@@ -50,8 +61,6 @@
5061
"sourceMap": false,
5162
"namedChunks": false,
5263
"extractLicenses": true,
53-
"vendorChunk": false,
54-
"buildOptimizer": true,
5564
"budgets": [
5665
{
5766
"type": "initial",
@@ -92,8 +101,13 @@
92101
"polyfills": "src/polyfills.ts",
93102
"tsConfig": "tsconfig.spec.json",
94103
"karmaConfig": "karma.conf.js",
95-
"assets": ["src/favicon.ico", "src/assets"],
96-
"styles": ["src/styles.scss"],
104+
"assets": [
105+
"src/favicon.ico",
106+
"src/assets"
107+
],
108+
"styles": [
109+
"src/styles.scss"
110+
],
97111
"scripts": []
98112
}
99113
},
@@ -114,5 +128,31 @@
114128
},
115129
"cli": {
116130
"analytics": "5e34252a-5088-421b-bb34-6ef89cd9f167"
131+
},
132+
"schematics": {
133+
"@schematics/angular:component": {
134+
"type": "component"
135+
},
136+
"@schematics/angular:directive": {
137+
"type": "directive"
138+
},
139+
"@schematics/angular:service": {
140+
"type": "service"
141+
},
142+
"@schematics/angular:guard": {
143+
"typeSeparator": "."
144+
},
145+
"@schematics/angular:interceptor": {
146+
"typeSeparator": "."
147+
},
148+
"@schematics/angular:module": {
149+
"typeSeparator": "."
150+
},
151+
"@schematics/angular:pipe": {
152+
"typeSeparator": "."
153+
},
154+
"@schematics/angular:resolver": {
155+
"typeSeparator": "."
156+
}
117157
}
118158
}

e2e/protractor.conf.js

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,29 @@
22
// Protractor configuration file, see link for more information
33
// https://github.com/angular/protractor/blob/master/lib/config.ts
44

5-
const { SpecReporter } = require('jasmine-spec-reporter');
5+
const { SpecReporter } = require("jasmine-spec-reporter");
66

77
/**
88
* @type { import("protractor").Config }
99
*/
1010
exports.config = {
11-
allScriptsTimeout: 11000,
12-
specs: ['./src/**/*.e2e-spec.ts'],
13-
capabilities: {
14-
browserName: 'chrome',
15-
},
16-
directConnect: true,
17-
baseUrl: 'http://localhost:4200/',
18-
framework: 'jasmine',
19-
jasmineNodeOpts: {
20-
showColors: true,
21-
defaultTimeoutInterval: 30000,
22-
print: function () {},
23-
},
24-
onPrepare() {
25-
require('ts-node').register({
26-
project: require('path').join(__dirname, './tsconfig.json'),
27-
});
28-
jasmine
29-
.getEnv()
30-
.addReporter(
31-
new SpecReporter({ spec: { displayStacktrace: true } })
32-
);
33-
},
11+
allScriptsTimeout: 11000,
12+
specs: ["./src/**/*.e2e-spec.ts"],
13+
capabilities: {
14+
browserName: "chrome",
15+
},
16+
directConnect: true,
17+
baseUrl: "http://localhost:4200/",
18+
framework: "jasmine",
19+
jasmineNodeOpts: {
20+
showColors: true,
21+
defaultTimeoutInterval: 30000,
22+
print: function () {},
23+
},
24+
onPrepare() {
25+
require("ts-node").register({
26+
project: require("path").join(__dirname, "./tsconfig.json"),
27+
});
28+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
29+
},
3430
};

e2e/src/app.e2e-spec.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
import { AppPage } from './app.po';
2-
import { browser, logging } from 'protractor';
1+
import { AppPage } from "./app.po";
2+
import { browser, logging } from "protractor";
33

4-
describe('workspace-project App', () => {
5-
let page: AppPage;
4+
describe("workspace-project App", () => {
5+
let page: AppPage;
66

7-
beforeEach(() => {
8-
page = new AppPage();
9-
});
7+
beforeEach(() => {
8+
page = new AppPage();
9+
});
1010

11-
it('should display welcome message', () => {
12-
page.navigateTo();
13-
expect(page.getTitleText()).toEqual('OS2IoT-frontend app is running!');
14-
});
11+
it("should display welcome message", () => {
12+
page.navigateTo();
13+
expect(page.getTitleText()).toEqual("OS2IoT-frontend app is running!");
14+
});
1515

16-
afterEach(async () => {
17-
// Assert that there are no errors emitted from the browser
18-
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19-
expect(logs).not.toContain(
20-
jasmine.objectContaining({
21-
level: logging.Level.SEVERE,
22-
} as logging.Entry)
23-
);
24-
});
16+
afterEach(async () => {
17+
// Assert that there are no errors emitted from the browser
18+
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19+
expect(logs).not.toContain(
20+
jasmine.objectContaining({
21+
level: logging.Level.SEVERE,
22+
} as logging.Entry)
23+
);
24+
});
2525
});

0 commit comments

Comments
 (0)