Skip to content

Commit

Permalink
Merge pull request #104 from openslice/develop
Browse files Browse the repository at this point in the history
Merging develop with master for 2023-Q4 release
  • Loading branch information
kostistr committed Nov 3, 2023
2 parents b8f2374 + 33d1ce2 commit 548995a
Show file tree
Hide file tree
Showing 1,406 changed files with 65,826 additions and 13,928 deletions.
File renamed without changes.
33 changes: 33 additions & 0 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Publish

on:
push:
branches: [master, develop]
pull_request:

jobs:
build-and-push-docker-image:
name: Build Docker image and push to repositories
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build image and push to Docker Hub and GitHub Container Registry
uses: docker/build-push-action@v4
with:
context: .
tags: |
openslice/io.openslice.tmf.web:${{ github.ref == 'refs/heads/master' && 'latest' || github.ref == 'refs/heads/develop' && 'nightly' }}
push: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'}}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ testem.log
# System Files
.DS_Store
Thumbs.db
src/assets/config/config.dev.json
src/assets/config/config.prod.default.json
src/assets/config/config.prod.json
src/assets/config/config.theming.json
src/assets/config/config.prod.default.json
/src/assets/config/theming.scss
/.angular
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ This project is the web frontent UI of openslice implementation around the Servi

When developing under src/assets/config copy config.prod.default.json to config.dev.json to point to you API and Keycloak servers. Non-static URLs are also supported. If {BASEURL} is detected in any of file's properties, it is replaced by the current browser URL origin (protocol + hostname + port), as defined during application bootstrap.

Also under src/assets/config copy config.theming.default.json to config.theming.json to customise your deployment, in terms of theming, branding, and specific HTML sections.
Available values:
* THEME_ID: "theme1", "theme2", "theme3"
* Logo/Icon paths support both project's relative paths and absolute URLs
Regarding theming, under src/assets/config
* copy config.theming.default.json to config.theming.json to customise your deployment, in terms of branding, and specific HTML sections.
* copy theming.default.scss to theming.scss to customise your color palettes.

*Logo/Icon paths support both project's relative paths and absolute URLs*

Execute:

Expand Down
28 changes: 22 additions & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,29 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"allowedCommonJsDependencies": ["jwt-decode"],
"outputPath": "dist/io-openslice-portal-web",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": false,
"aot": true,
"assets": [
"src/favicon.ico",
"src/assets"
{
"glob": "**/*",
"input": "src/assets/",
"output": "/assets/"
}
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss",
"node_modules/@fortawesome/fontawesome-free/css/all.min.css",
"src/styles.scss",
"node_modules/ngx-toastr/toastr.css"
],
"scripts": [
"node_modules/marked/lib/marked.js",
"node_modules/marked/marked.min.js",
"node_modules/blockly/blockly_compressed.js",
"node_modules/blockly/blocks_compressed.js",
"node_modules/blockly/msg/js/en.js",
Expand All @@ -54,9 +59,7 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand All @@ -72,6 +75,16 @@
"maximumError": "10kb"
}
]
},
"development": {
"optimization": false,
"outputHashing": "all",
"sourceMap": true,
"namedChunks": true,
"extractLicenses": false,
"vendorChunk": true,
"buildOptimizer": false,
"budgets": []
}
}
},
Expand All @@ -83,6 +96,9 @@
"configurations": {
"production": {
"browserTarget": "io-openslice-portal-web:build:production"
},
"development": {
"browserTarget": "io-openslice-portal-web:build:development"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"module": "commonjs",
"target": "es5",
"target": "es2018",
"types": [
"jasmine",
"jasminewd2",
Expand Down
Loading

0 comments on commit 548995a

Please sign in to comment.