Aw5739 wip

This commit is contained in:
2023-12-27 18:15:04 +01:00
parent 2fe4c9b32e
commit 0c10d998a1
44 changed files with 8894 additions and 9804 deletions

View File

@@ -9,8 +9,8 @@ import { OAuthModule, AuthConfig, OAuthService, OAuthStorage } from 'angular-oau
import { StoreModule, Store } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { UploadxModule } from 'ngx-uploadx';
import { ClipboardModule } from 'ngx-clipboard';
import { UploadxModule } from 'ngx-uploadx/ngx-uploadx';
import { ClipboardModule } from 'ngx-clipboard/ngx-clipboard';
// routing module
@@ -68,7 +68,7 @@ import { BackButtonComponent } from './components/back-button/back-button.compon
import { EditImageModalComponent } from './components/edit-image-modal/edit-image-modal.component';
import { AvatarComponent } from './components/avatar/avatar.component';
import { ItemLinkComponent } from './components/item-link/item-link.component';
import { AvatarModule } from 'ngx-avatar';
import { AvatarModule } from 'ngx-avatars';
import { ImageCropperModule } from 'ngx-image-cropper';
export const FM_COMMON_STARTPAGE = new InjectionToken<string>('fm-common-startpage');

View File

@@ -1,9 +1,3 @@
/* Import Bootstrap & Fonts */
@import "~bootstrap/scss/bootstrap.scss";
// custom styles
.btn:focus {
@@ -16,7 +10,7 @@
.form-control:focus {
box-shadow: none;
border-color: $input-border-color;
border-color: var(--bs-input-border-color);
}

View File

@@ -1,4 +1,4 @@
import { Router, CanActivate } from '@angular/router';
import { Router } from '@angular/router';
import { Injectable } from '@angular/core';
import { OAuthService } from 'angular-oauth2-oidc';
import { } from '@angular/router';
@@ -6,7 +6,7 @@ import { } from '@angular/router';
@Injectable({
providedIn: 'root',
})
export class AuthCallbackGuard implements CanActivate {
export class AuthCallbackGuard {
constructor(private router$: Router,private oauthService$:OAuthService) {}

View File

@@ -1,10 +1,10 @@
<span class="avatar-container" [title]="name">
<ngx-avatar
<ngx-avatars
class="farmmaps-avatar"
[src]="src"
[name]="name"
[size]="size"
[round]='true'
>
</ngx-avatar>
</ngx-avatars>
</span>

View File

@@ -1,12 +1,10 @@
@import "~bootstrap/scss/bootstrap.scss";
.back-button {
cursor: default;
color: $primary;
color: var(--bs-primary);
display: block;
}
.back-button:hover {
cursor: pointer;
color: $secondary;
color: var(--bs-secondary);
}

View File

@@ -1,7 +1,3 @@
/* Import Bootstrap & Fonts */
@import "~bootstrap/scss/bootstrap.scss";
div.resumable-file-upload {
position: fixed;
right: 0px;
@@ -76,7 +72,7 @@ div.card-header span.fa {
}
.upload-file.busy > div > span.fa-times {
color: $danger;
color: var(--bs-danger);
width: 20px;
display: inline-block;
vertical-align: middle;
@@ -94,7 +90,7 @@ div.card-header span.fa {
}
.upload-file > div.errormessage {
color: $danger;
color: var(--bs-danger);
display: none;
}

View File

@@ -1,11 +1,5 @@
import { Injectable } from '@angular/core';
import {
CanActivate, Router, CanLoad, Route, CanActivateChild ,
ActivatedRouteSnapshot,
RouterStateSnapshot,
UrlSegment,
UrlTree
} from '@angular/router';
import { Router, Route, ActivatedRouteSnapshot, RouterStateSnapshot, UrlSegment, UrlTree } from '@angular/router';
import { Store } from '@ngrx/store';
@@ -19,7 +13,7 @@ import * as appCommonReducer from '../reducers/app-common.reducer';
@Injectable({
providedIn: 'root',
})
export class AuthGuard implements CanActivate, CanLoad, CanActivateChild {
export class AuthGuard {
constructor(private oauthService: OAuthService, private router: Router, private store: Store<appCommonReducer.State>) { }

View File

@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { CanActivate, CanActivateChild, ActivatedRouteSnapshot, RouterStateSnapshot} from '@angular/router';
import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Store } from '@ngrx/store';
@@ -10,7 +10,7 @@ import * as appCommonActions from '../actions/app-common.actions';
@Injectable({
providedIn: 'root',
})
export class FullScreenGuard implements CanActivate,CanActivateChild {
export class FullScreenGuard {
private loginDispatched = false;
constructor(private store: Store<appCommonReducer.State> ) { }

View File

@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { CanLoad, Route, CanActivate, CanDeactivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Route, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Store } from '@ngrx/store';
@@ -10,7 +10,7 @@ import * as appCommonActions from '../actions/app-common.actions';
@Injectable({
providedIn: 'root',
})
export class NavBarGuard implements CanActivate {
export class NavBarGuard {
private loginDispatched = false;
constructor(private store: Store<appCommonReducer.State>) { }

View File

@@ -1,11 +1,11 @@
import {Injectable} from '@angular/core';
import {ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot} from '@angular/router';
import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import {PackageService} from './package.service';
@Injectable({
providedIn: 'root',
})
export class PackageGuard implements CanActivate {
export class PackageGuard {
constructor(private packageService: PackageService) { }