Update frontend environments
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<button mat-icon-button (click)="snav.toggle()">
|
<button mat-icon-button (click)="snav.toggle()">
|
||||||
<mat-icon>menu</mat-icon>
|
<mat-icon>menu</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<h1 class="topbar-app-name">DiunaBI {{environment.appTitle}}</h1>
|
<h1 class="topbar-app-name">DiunaBI {{environment.appEnvironment}}</h1>
|
||||||
<span class="fill-to-right"></span>
|
<span class="fill-to-right"></span>
|
||||||
<span class="topbar-user-name" *ngIf="auth$.user">
|
<span class="topbar-user-name" *ngIf="auth$.user">
|
||||||
<img *ngIf="auth$.user.avatar" src="{{auth$.user.avatar}}" class="avatar">
|
<img *ngIf="auth$.user.avatar" src="{{auth$.user.avatar}}" class="avatar">
|
||||||
|
|||||||
@@ -42,6 +42,11 @@
|
|||||||
<mat-cell *matCellDef="let item">{{item.value | number:'1.2-2'}}</mat-cell>
|
<mat-cell *matCellDef="let item">{{item.value | number:'1.2-2'}}</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="desc1">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Konto</mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let item">{{item.desc1}}</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
<mat-row *matRowDef="let item; columns: displayedColumns;"></mat-row>
|
<mat-row *matRowDef="let item; columns: displayedColumns;"></mat-row>
|
||||||
</mat-table>
|
</mat-table>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { Router, ActivatedRoute } from '@angular/router';
|
|||||||
import { AuthService } from 'src/app/auth/auth.service';
|
import { AuthService } from 'src/app/auth/auth.service';
|
||||||
import { Layer } from 'src/app/models/layer.model';
|
import { Layer } from 'src/app/models/layer.model';
|
||||||
import { Record } from 'src/app/models/record.model';
|
import { Record } from 'src/app/models/record.model';
|
||||||
|
import { environment } from 'src/environments/environment';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-layer-detail',
|
selector: 'app-layer-detail',
|
||||||
@@ -21,7 +22,7 @@ export class LayerDetailComponent implements OnInit {
|
|||||||
public form!: UntypedFormGroup;
|
public form!: UntypedFormGroup;
|
||||||
public document!: Layer;
|
public document!: Layer;
|
||||||
|
|
||||||
displayedColumns = ['code', 'value'];
|
displayedColumns = environment.views.layers.recordColumns.split("|");
|
||||||
dataSource!: MatTableDataSource<Record>;
|
dataSource!: MatTableDataSource<Record>;
|
||||||
|
|
||||||
@ViewChild(MatSort) sort!: MatSort;
|
@ViewChild(MatSort) sort!: MatSort;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import moment from 'moment';
|
|||||||
import { AuthService } from 'src/app/auth/auth.service';
|
import { AuthService } from 'src/app/auth/auth.service';
|
||||||
import { Layer } from 'src/app/models/layer.model';
|
import { Layer } from 'src/app/models/layer.model';
|
||||||
import { Record } from 'src/app/models/record.model';
|
import { Record } from 'src/app/models/record.model';
|
||||||
|
import { environment } from 'src/environments/environment';
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -21,7 +22,7 @@ export class LayerEditComponent implements OnInit {
|
|||||||
public form!: UntypedFormGroup;
|
public form!: UntypedFormGroup;
|
||||||
private document!: Layer;
|
private document!: Layer;
|
||||||
|
|
||||||
displayedColumns = ['code', 'value', 'desc1'];
|
displayedColumns = environment.views.layers.recordColumns.split("|");
|
||||||
dataSource!: MatTableDataSource<Record>;
|
dataSource!: MatTableDataSource<Record>;
|
||||||
|
|
||||||
@ViewChild(MatSort) sort!: MatSort;
|
@ViewChild(MatSort) sort!: MatSort;
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
appTitle: "#{appTitle}#",
|
appEnvironment: "#{app-environment}#",
|
||||||
production: true,
|
production: true,
|
||||||
api: {
|
api: {
|
||||||
url: "https://diunabi.bim-it.pl/api"
|
url: "#{api-url}#"
|
||||||
},
|
},
|
||||||
google: {
|
google: {
|
||||||
clientId: "107631825312-bkfe438ehr9k9ecb2h76g802tj6advma.apps.googleusercontent.com"
|
clientId: "#{google-frontend-client-id}#"
|
||||||
|
},
|
||||||
|
views: {
|
||||||
|
layers: {
|
||||||
|
recordColumns: "#{views-layers-recordColumns}#"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
// The list of file replacements can be found in `angular.json`.
|
// The list of file replacements can be found in `angular.json`.
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
appTitle: "DEV",
|
appEnvironment: "local",
|
||||||
production: false,
|
production: false,
|
||||||
api: {
|
api: {
|
||||||
//url: "http://localhost:5400/api"
|
//url: "http://localhost:5400/api"
|
||||||
@@ -11,6 +11,11 @@ export const environment = {
|
|||||||
},
|
},
|
||||||
google: {
|
google: {
|
||||||
clientId: "107631825312-bkfe438ehr9k9ecb2h76g802tj6advma.apps.googleusercontent.com"
|
clientId: "107631825312-bkfe438ehr9k9ecb2h76g802tj6advma.apps.googleusercontent.com"
|
||||||
|
},
|
||||||
|
views: {
|
||||||
|
layers: {
|
||||||
|
recordColumns: "code|value|desc1"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -22,4 +22,12 @@
|
|||||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0" />
|
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Update="client_secrets.Development.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||||
|
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user