-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into 717-test-production-mode-in-integration-test
- Loading branch information
Showing
19 changed files
with
975 additions
and
854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,32 +23,22 @@ jobs: | |
with: | ||
node-version: 16 | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=.yarn/cache" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
|
||
- name: Cache | ||
uses: actions/cache@v3 | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
path: | | ||
${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-java-${{ hashFiles('**/build.gradle', '**/gradle.properties', '**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-java- | ||
cache-disabled: true | ||
|
||
- name: Compile code | ||
run: ./gradlew assemble | ||
|
||
# Upload it to GitHub | ||
- name: Upload to GitHub | ||
uses: AButler/[email protected] | ||
uses: AButler/[email protected].2 | ||
with: | ||
files: '*/build/libs/*' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
cacheFolder: "./.yarn/cache" | ||
cacheFolder: ./.yarn/cache | ||
|
||
enableImmutableInstalls: false | ||
|
||
nodeLinker: node-modules | ||
yarnPath: .yarn/releases/yarn-3.1.0.cjs | ||
enableImmutableInstalls: true | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.4.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +0,0 @@ | ||
// DO NOT EDIT THIS FILE, EDIT THE WEBPACK COMMON CONFIG INSTEAD, WHICH WILL MODIFY THIS FILE | ||
/* tslint:disable */ | ||
let _VERSION = '0.0.0'; // This value will be overwritten by webpack | ||
let _DEBUG_INFO_ENABLED = true; // This value will be overwritten by webpack | ||
/* @toreplace VERSION */ | ||
/* @toreplace DEBUG_INFO_ENABLED */ | ||
/* tslint:enable */ | ||
export const VERSION = _VERSION; | ||
export const DEBUG_INFO_ENABLED = _DEBUG_INFO_ENABLED; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 18 additions & 3 deletions
21
src/main/webapp/app/layouts/profiles/page-ribbon.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { ProfileInfo } from './profile-info.model'; | ||
import { ProfileService } from './profile.service'; | ||
import { Observable, of } from 'rxjs'; | ||
import { TranslateService } from '@ngx-translate/core'; | ||
import { catchError, filter, switchMap } from 'rxjs/operators'; | ||
|
||
@Component({ | ||
selector: 'jhi-page-ribbon', | ||
template: ` | ||
<div class="ribbon" *ngIf="profileService.profileInfo$ | async as profileInfo"> | ||
<a href="" [translate]="'global.ribbon.' + profileInfo.ribbonEnv"></a> | ||
<div class="ribbon" *ngIf="ribbon$ | async as ribbon"> | ||
<a href="">{{ ribbon }}</a> | ||
</div>`, | ||
styleUrls: [ | ||
'page-ribbon.scss', | ||
], | ||
}) | ||
export class PageRibbonComponent { | ||
constructor(public profileService: ProfileService) { | ||
ribbon$: Observable<string | null> | ||
constructor( | ||
public profileService: ProfileService, | ||
translateService: TranslateService, | ||
) { | ||
this.ribbon$ = profileService.profileInfo$.pipe( | ||
switchMap(profileInfo => { | ||
const key = 'global.ribbon.' + profileInfo.ribbonEnv | ||
return translateService.stream(key).pipe( | ||
filter(t => t !== key), | ||
) | ||
}), | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.