Compare commits

..

No commits in common. "eabaa1db197d86a3e5353378b6d0f6a25122804d" and "960275dd382db6f800bd19bc5110b52fa8c9560e" have entirely different histories.

8 changed files with 10 additions and 41 deletions

View File

@ -83,31 +83,6 @@
"maximumWarning": "6kb" "maximumWarning": "6kb"
} }
] ]
},
"development": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": false,
"sourceMap": true,
"namedChunks": true,
"extractLicenses": false,
"vendorChunk": false,
"buildOptimizer": false,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "7mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
]
} }
} }
}, },
@ -119,12 +94,8 @@
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "farmmaps-lib-app:build:production" "browserTarget": "farmmaps-lib-app:build:production"
},
"development": {
"browserTarget": "farmmaps-lib-app:build:development"
} }
}, }
"defaultConfiguration": "development"
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",

View File

@ -4,7 +4,7 @@
"lib": { "lib": {
"entryFile": "src/public-api.ts" "entryFile": "src/public-api.ts"
}, },
"allowedNonPeerDependencies": [ "whitelistedNonPeerDependencies": [
"." "."
] ]
} }

View File

@ -1,7 +1,7 @@
<div class="card border-0"> <div class="card border-0">
<div class="card-body"> <div class="card-body">
<fm-back-button></fm-back-button> <fm-back-button></fm-back-button>
<h3><i class="far fa-farm"></i>&nbsp;<span i18n>Farms</span></h3> <h3><i class="fm fm-farm"></i>&nbsp;<span i18n>Farms</span></h3>
<div *ngIf="features;let features"> <div *ngIf="features;let features">
<div class="farms"> <div class="farms">
<div class="row m-0 pl-3 pr-3" *ngFor="let feature of features"[ngClass]="{'selected':isFeatureSelected(feature)}" (click)="handleFeatureClick(feature)" (mouseenter)="handleFeatureMouseEnter(feature)" (mouseleave)="handleFeatureMouseLeave(feature)"> <div class="row m-0 pl-3 pr-3" *ngFor="let feature of features"[ngClass]="{'selected':isFeatureSelected(feature)}" (click)="handleFeatureClick(feature)" (mouseenter)="handleFeatureMouseEnter(feature)" (mouseleave)="handleFeatureMouseLeave(feature)">

View File

@ -7,7 +7,7 @@
"my-data": "my-data" "my-data": "my-data"
} }
}, },
"allowedNonPeerDependencies": [ "whitelistedNonPeerDependencies": [
"." "."
] ]
} }

View File

@ -16,7 +16,7 @@
"bootstrap": "^4.4.1", "bootstrap": "^4.4.1",
"@microsoft/signalr": "^3.1.3", "@microsoft/signalr": "^3.1.3",
"ngx-uploadx": "^3.3.4", "ngx-uploadx": "^3.3.4",
"angular-oauth2-oidc": "^12.0", "angular-oauth2-oidc": "^10.0.3",
"moment": "^2.27.0", "moment": "^2.27.0",
"ngx-avatar": "^4.0.0", "ngx-avatar": "^4.0.0",
"ngx-image-cropper": "^3.3.5", "ngx-image-cropper": "^3.3.5",

View File

@ -40,7 +40,6 @@ export class AvatarComponent implements OnInit {
refresh(user: IUser) { refresh(user: IUser) {
if (!user) return null; if (!user) return null;
debugger;
const apiEndpoint = this.appConfig.getConfig("apiEndPoint"); const apiEndpoint = this.appConfig.getConfig("apiEndPoint");
this.src = `${apiEndpoint}/api/v1/users/${user.code}/avatar`; this.src = `${apiEndpoint}/api/v1/users/${user.code}/avatar`;
this.name = user.firstName && user.lastName ? this.name = user.firstName && user.lastName ?

View File

@ -8,7 +8,6 @@ import { createSelector, createFeatureSelector, ActionReducerMap } from '@ngrx/s
import { MODULE_NAME } from '../module-name'; import { MODULE_NAME } from '../module-name';
import { IItem } from '../models/item'; import { IItem } from '../models/item';
import { userInfo } from 'os';
export interface State { export interface State {
openedModalName: string, openedModalName: string,
@ -58,13 +57,13 @@ export function reducer(state = initialState, action: appCommonActions.Actions )
case appCommonActions.INITUSERSUCCESS: { case appCommonActions.INITUSERSUCCESS: {
let a = action as appCommonActions.InitUserSuccess; let a = action as appCommonActions.InitUserSuccess;
let claims = {} let claims = {}
Object.getOwnPropertyNames(a.userinfo.info).forEach((k) => { Object.getOwnPropertyNames(a.userinfo).forEach((k) => {
claims[k] = a.userinfo[k]; claims[k] = a.userinfo[k];
}); });
var user:IUser = { var user:IUser = {
code:a.user.code, code:a.user.code,
email:a.user?.name?a.user.name : claims["email"], email:a.userinfo["email"],
name:a.user?.email?a.user.email : claims["name"], name:a.userinfo["name"],
claims:claims, claims:claims,
searchable: false searchable: false
}; };

View File

@ -1,8 +1,8 @@
{ {
"issuer": "http://localhost:8094", "issuer": "https://accounts.test.farmmaps.eu",
"clientId": "farmmapsdev", "clientId": "farmmapsdev",
"audience": "http://localhost:8082", "audience": "http://localhost:8082",
"requireHttps": false, "requireHttps": true,
"apiEndPoint": "http://localhost:8082", "apiEndPoint": "http://localhost:8082",
"grantType":"code" "grantType":"code"
} }