This file contains hidden or 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
| <button *ngIf="shouldInstall()" class="install" (click)="installPWA()">Install as an application</button> | |
| <button *ngIf="updateAvailable" class="update" (click)="reload()">Update available. Click to refresh</button> |
This file contains hidden or 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
| public updateAvailable: boolean; | |
| constructor(private swUpdate: SwUpdate) { | |
| this.swUpdate.available.subscribe(evt => { | |
| this.updateAvailable = true; | |
| }); | |
| } | |
| public reload() { | |
| this.swUpdate.activateUpdate().then(() => document.location.reload()); |
This file contains hidden or 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
| public promptEvent; | |
| @HostListener('window:beforeinstallprompt', ['$event']) | |
| onbeforeinstallprompt(e) { | |
| e.preventDefault(); | |
| this.promptEvent = e; | |
| } | |
| public installPWA() { | |
| this.promptEvent.prompt(); |
This file contains hidden or 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
| <build> | |
| <plugins> | |
| <plugin> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <version>3.1.1</version> | |
| <!--$NO-MVN-MAN-VER$--> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> |
This file contains hidden or 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
| <Configuration status="TRACE" monitorInterval="180"> | |
| ... | |
| <!--CHANGE HOST AND PORT PROPERTIES ACCORDING TO YOUR NEEDS--> | |
| <Appenders> | |
| <Gelf name="gelf" host="udp:graylog.somedomain.com" port="12211" version="1.1" extractStackTrace="true" filterStackTrace="true" mdcProfiling="true" includeFullMdc="true" maximumMessageSize="8192" originHost="%host{fqdn}"> | |
| <!--THESE FIELD DEFINITIONS ARE NOT MANDATORY, YOU CAN USE DEFAULTS--> | |
| <Field name="timestamp" pattern="%d{dd MMM yyyy HH:mm:ss,SSS}"/> | |
| <Field name="level" pattern="%level"/> | |
| <Field name="simpleClassName" pattern="%C{1}"/> | |
| <Field name="className" pattern="%C"/> |
This file contains hidden or 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
| <dependencies> | |
| <dependency> | |
| <groupId>biz.paluch.logging</groupId> | |
| <artifactId>logstash-gelf</artifactId> | |
| <version>1.14.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.logging.log4j</groupId> | |
| <artifactId>log4j-core</artifactId> |
This file contains hidden or 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
| import { AfterViewInit, Directive, Host, Optional, Renderer2, Self } from '@angular/core'; | |
| import { MatPaginator } from '@angular/material/paginator'; | |
| import { MatTable, MatTableDataSource } from '@angular/material/table'; | |
| import { CdkTableExporter, DataExtractorService, ServiceLocatorService } from 'cdk-table-exporter'; | |
| import { Observable } from 'rxjs'; | |
| @Directive({ | |
| selector: '[matTableExporter]', // renamed selector but kept old version for backwards compat. | |
| exportAs: 'matTableExporter' | |
| }) |
This file contains hidden or 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
| import { Component, ViewChild, ElementRef } from '@angular/core'; | |
| import * as XLSX from 'xlsx'; | |
| export class AppComponent { | |
| @ViewChild('TABLE', { static: true }) table: ElementRef; | |
| exportTable() { | |
| const ws: XLSX.WorkSheet = XLSX.utils.table_to_sheet(this.table.nativeElement); | |
| const wb: XLSX.WorkBook = XLSX.utils.book_new(); | |
| XLSX.utils.book_append_sheet(wb, ws, 'Sheet1'); |
This file contains hidden or 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
| import java.util.Properties; | |
| import javax.jms.ConnectionFactory; | |
| import javax.jms.Destination; | |
| import javax.naming.Context; | |
| import javax.naming.NameNotFoundException; | |
| import javax.naming.NamingException; | |
| import org.apache.logging.log4j.LogManager; | |
| import org.apache.logging.log4j.Logger; |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor | |
| license agreements. See the NOTICE file distributed with this work for additional | |
| information regarding copyright ownership. The ASF licenses this file to | |
| You under the Apache License, Version 2.0 (the "License"); you may not use | |
| this file except in compliance with the License. You may obtain a copy of | |
| the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required | |
| by applicable law or agreed to in writing, software distributed under the | |
| License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | |
| OF ANY KIND, either express or implied. See the License for the specific |
NewerOlder