-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
CerealKiller97
committed
Aug 29, 2019
1 parent
fca8160
commit 695f36a
Showing
22 changed files
with
226 additions
and
47 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# INFORMATION | ||
# For new versions of this Gist go to: | ||
# https://gist.github.com/julianpoemp/bcf277cb56d2420cc53ec630a04a3566 | ||
# Version 1.1.0 | ||
# | ||
# Contributors: | ||
# - RaschidJFR [https://gist.github.com/RaschidJFR/f6d21a03b0692f5c7a6a23954003f00b] | ||
#------------- | ||
|
||
# INSTRUCTION: | ||
# Place this file next to the app's index.html. | ||
# There are two options for the redirection: | ||
# Option 1) (default): Your app is directly on the root of the domain. | ||
# Option 2): Your app is placed in a subfolder from the root of the domain. | ||
# | ||
# If you have issues with browser caching you can uncomment the BROWSER CACHING part | ||
|
||
#------------ REDIRECTION option 1) | ||
# use this if your app is directly on the root of the domain, | ||
# e.g. http://example_domain.com/index.html | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
# If an existing asset or directory is requested go to it as it is | ||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] | ||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d | ||
RewriteRule ^ - [L] | ||
|
||
RewriteRule ^ /index.html | ||
</IfModule> | ||
#------------ | ||
|
||
#------------ REDIRECTION option 2) | ||
# Use this if your app is not directly on the root of the domain, | ||
# e.g. http://example_domain.com/directory_path/index.html | ||
# Important: replace directory_path with the relative path from | ||
# the domain to the index.html. Keep the first "/". Don't forget to comment option 1). | ||
#<IfModule mod_rewrite.c> | ||
# RewriteEngine On | ||
# # If an existing asset or directory is requested go to it as it is | ||
# RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] | ||
# RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d | ||
# RewriteRule ^ - [L] | ||
# | ||
# RewriteRule ^ /directory_path/index.html | ||
#</IfModule> | ||
#------------ | ||
|
||
# #------------ BROWSER CACHING | ||
# disable browser caching in production. | ||
#<FilesMatch "\.(html|htm|js|json|css)$"> | ||
# <IfModule mod_headers.c> | ||
# FileETag None | ||
# Header unset ETag | ||
# Header unset Pragma | ||
# Header unset Cache-Control | ||
# Header unset Last-Modified | ||
# Header set Pragma "no-cache" | ||
# Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" | ||
# Header set Expires "Mon, 10 Apr 1972 00:00:00 GMT" | ||
# </IfModule> | ||
#</FilesMatch> | ||
# | ||
# It is recommended to add these tags to your index.html, too: | ||
# <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"> | ||
# <meta http-equiv="Pragma" content="no-cache"> | ||
# <meta http-equiv="Expires" conten |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,46 @@ | ||
# language: node_js | ||
# node_js: | ||
# - '11.0' | ||
# branches: | ||
# only: | ||
# - master | ||
# before_script: | ||
# - npm install -g @angular/cli | ||
# script: | ||
# - npm install | ||
# - npm run build | ||
# deploy: | ||
# skip_cleanup: true | ||
# provider: gh-pages | ||
# token: | ||
# secure: '' | ||
|
||
language: node_js | ||
node_js: | ||
- "10" | ||
dist: trusty | ||
sudo: requiredbranches: | ||
- '11.0' | ||
|
||
branches: | ||
only: | ||
- masterbefore_script: | ||
- npm install -g @angular/cliscript: | ||
- ng lint | ||
- npm run test-headless | ||
- ng build --prod --build-optimizer --base-href https://cerealkiller97.github.io/NG-VideoGamer: | ||
- master | ||
|
||
addons: | ||
chrome: stable | ||
|
||
before_script: | ||
- yarn global add @angular/cli | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
|
||
script: | ||
- ng build --prod | ||
|
||
deploy: | ||
provider: pages | ||
skip_cleanup: true | ||
github_token: $GITHUB_TOKEN | ||
local_dir: dist/travis-demo | ||
skip-cleanup: true | ||
github-token: $GITHUB_TOKEN | ||
keep-history: true | ||
local-dir: ./dist/ | ||
on: | ||
branch: master |
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
2 changes: 1 addition & 1 deletion
2
src/app/modules/contact/components/contact/contact.component.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<p>contact works!</p> | ||
<h1>Contact page</h1> |
10 changes: 8 additions & 2 deletions
10
src/app/modules/contact/components/contact/contact.component.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Title } from '@angular/platform-browser'; | ||
import { LoadingService } from 'src/app/modules/shared/loading.service'; | ||
import { FormBuilder, FormGroup, FormControl, Validators } from '@angular/forms'; | ||
|
||
@Component({ | ||
selector: 'app-contact', | ||
templateUrl: './contact.component.html', | ||
styleUrls: ['./contact.component.css'] | ||
}) | ||
export class ContactComponent implements OnInit { | ||
public contactForm: FormGroup = new FormGroup({ | ||
name: new FormControl('', [Validators.required]) | ||
}); | ||
|
||
constructor() { } | ||
constructor(private readonly titleService: Title, private readonly loadingService: LoadingService) {} | ||
|
||
ngOnInit() { | ||
this.titleService.setTitle('VideoGamer | Contact'); | ||
} | ||
|
||
} |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<h1>404 page</h1> |
25 changes: 25 additions & 0 deletions
25
src/app/modules/errors/components/errors/errors.component.spec.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ErrorsComponent } from './errors.component'; | ||
|
||
describe('ErrorsComponent', () => { | ||
let component: ErrorsComponent; | ||
let fixture: ComponentFixture<ErrorsComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ ErrorsComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ErrorsComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
src/app/modules/errors/components/errors/errors.component.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-errors', | ||
templateUrl: './errors.component.html', | ||
styleUrls: ['./errors.component.css'] | ||
}) | ||
export class ErrorsComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { ErrorsComponent } from './components/errors/errors.component'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
pathMatch: 'full', | ||
component: ErrorsComponent | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
declarations: [ErrorsComponent], | ||
imports: [CommonModule, RouterModule.forChild(routes)], | ||
exports: [ErrorsComponent, RouterModule] | ||
}) | ||
export class ErrorsModule {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
|
||
<mat-grid-list cols="2" rowHeight="2:1"> | ||
<mat-grid-tile> | ||
<h1>Welcome to VideoGamer</h1> | ||
</mat-grid-tile> | ||
<mat-grid-tile>2</mat-grid-tile> | ||
</mat-grid-list> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Title } from '@angular/platform-browser'; | ||
|
||
import { LoadingService } from 'src/app/modules/shared/loading.service'; | ||
@Component({ | ||
selector: 'app-home', | ||
templateUrl: './home.component.html', | ||
styleUrls: ['./home.component.css'] | ||
}) | ||
export class HomeComponent implements OnInit { | ||
|
||
constructor(private readonly titleService: Title) { } | ||
constructor(private readonly titleService: Title, private readonly loadingService: LoadingService) {} | ||
|
||
ngOnInit() { | ||
this.titleService.setTitle('Home page'); | ||
this.loadingService.setLoading(true); | ||
this.titleService.setTitle('VideoGamer | Home'); | ||
} | ||
|
||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.text-center { | ||
text-align: center !important; | ||
} |
4 changes: 3 additions & 1 deletion
4
src/app/modules/shared-components/components/footer/footer.component.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<p>footer works!</p> | ||
<mat-toolbar color="primary"> | ||
<small class="text-center">Copyright 2019 © Stefan Bogdanovic</small> | ||
</mat-toolbar> |
2 changes: 1 addition & 1 deletion
2
src/app/modules/shared-components/components/header/header.component.html
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface IEnvironment { | ||
production: boolean; | ||
apiKey: string; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export const environment = { | ||
production: true | ||
import { IEnvironment } from './environment.interface'; | ||
|
||
export const environment: IEnvironment = { | ||
production: true, | ||
apiKey: '' | ||
}; |
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