View output.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
// BAD | |
@Output() event = new EventEmitter<Company>(); | |
// GOOD | |
@Output() readonly event = new EventEmitter<Company>(); |
View fetch.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
export interface Recruitment { | |
id?: number; | |
name: string; | |
type: number; | |
} | |
export interface ApiEndpoint { | |
'/v1/api/recruitments': { params: null, response: Recruitment[]}; | |
'/v1/api/recruitments/:id': { params: [number], response: Recruitment}; | |
} |
View partial.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
export type Partial<T> = { [P in keyof T]?: T[P]; }; | |
export interface DefaultConfig { | |
searchEnabled: boolean; | |
headerEnabled: boolean; | |
orderEnabled: boolean; | |
} | |
@Injectable() | |
export class TableService { |
View tslint.json
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
Show hidden characters
{ | |
"rulesDirectory": [ | |
"node_modules/codelyzer" | |
], | |
"rules": { | |
... // Additional rules | |
"no-same-line-conditional": true, | |
"angular-whitespace": [true, "check-semicolon"], | |
"banana-in-box": true, | |
"templates-no-negated-async": true, |
View zone.js
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
import { Component, NgZone, OnInit } from '@angular/core'; | |
import { interval } from 'rxjs'; | |
@Component({ | |
selector: 'app-zone-event', | |
templateUrl: './zone.component.html', | |
}) | |
export class ClickEventComponent implements OnInit { | |
clock = [ | |
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1], |
View non-generic-search.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
import { OnInit } from '@angular/core'; | |
import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; | |
export interface CommonAddress { | |
id: number; | |
name: string; | |
} | |
export const FORM_PARAMS = { | |
supervisors: 'supervisors', |
View generic-search.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
import { OnInit } from '@angular/core'; | |
import { FormArray, FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; | |
export interface CommonAddress { | |
id: number; | |
name: string; | |
} | |
export const FORM_PARAMS = { | |
supervisors: 'supervisors', |
View deny.config
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
location /api/v1/config { | |
allow 1.2.3.4; | |
deny all; | |
} |
View main.js
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
var u = l("CcnG") | |
, i = "1_1zw9depfil5wsgk40wo04sko0os08g0kwc8gkw0g0sg0goagko" // <-- OAuth client_id | |
, o = "3recjcd1fg6csw88g0ogwg8o0w0gkgok8448kkk8sks40ssasc" // <-- OAuth client_secret | |
, r = l("NlKi"); |
View certbot.conf
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /var/www/ngx-easy-table.eu/html/ngx-easy-table/dist; | |
index index.html index.htm index.nginx-debian.html; | |
server_name ngx-easy-table.eu www.ngx-easy-table.eu; | |
location / { |
NewerOlder