Commit 8f6dcc00 authored by Guillaume Cornut's avatar Guillaume Cornut Committed by Raphaël Flores
Browse files

chore: Initialize Angular project. Initialize components, services, and...

chore: Initialize Angular project. Initialize components, services, and routing. Initialize SCSS theme. Add gnpis core API in Angular proxy. GNP-5430.
parent 2475cc41
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ResultComponent } from './result.component';
describe('ResultComponent', () => {
let component: ResultComponent;
let fixture: ComponentFixture<ResultComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ResultComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ResultComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'gpds-result',
templateUrl: './result.component.html',
styleUrls: ['./result.component.scss']
})
export class ResultComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SiteCardComponent } from './site-card.component';
describe('SiteCardComponent', () => {
let component: SiteCardComponent;
let fixture: ComponentFixture<SiteCardComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SiteCardComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(SiteCardComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'gpds-site-card',
templateUrl: './site-card.component.html',
styleUrls: ['./site-card.component.scss']
})
export class SiteCardComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { StudyCardComponent } from './study-card.component';
describe('StudyCardComponent', () => {
let component: StudyCardComponent;
let fixture: ComponentFixture<StudyCardComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ StudyCardComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(StudyCardComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'gpds-study-card',
templateUrl: './study-card.component.html',
styleUrls: ['./study-card.component.scss']
})
export class StudyCardComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
// non-public variables used in this theme only
$_theme-black: #222222;
$_theme-green: rgba(#28A745, 0.4);
$_theme-light-gray: #eaeaea;
$component-active-bg: $_theme-green;
// override default link colors
$link-color: #79c93f;
$link-hover-color: $_theme-black;
// override default shadows behavior
$enable-shadows: true;
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";
// public custom variables used in this theme, and in component styles
// custom button
$theme-btn-color: $white;
$theme-btn-bg-color: $_theme-black;
$theme-btn-border-color: $_theme-black;
$theme-btn-hover-color: $white;
$theme-btn-hover-bg-color: $_theme-green;
$theme-btn-hover-border-color: $_theme-green;
// custom navbar
$theme-navbar-height: 4rem;
$theme-navbar-color: $black;
$theme-navbar-bg-color: $_theme-light-gray;
$theme-navbar-hover-color: $white;
$theme-navbar-hover-bg-color: $_theme-green;
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
#
# For IE 9-11 support, please remove 'not' from the last line of the file and adjust as needed
> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11
\ No newline at end of file
@import "~bootstrap/scss/root";
@import "~bootstrap/scss/reboot";
@import "~bootstrap/scss/type";
@import "~bootstrap/scss/images";
// @import "~bootstrap/scss/code";
@import "~bootstrap/scss/grid";
// @import "~bootstrap/scss/tables";
@import "~bootstrap/scss/forms";
@import "~bootstrap/scss/buttons";
@import "~bootstrap/scss/transitions";
@import "~bootstrap/scss/dropdown";
// @import "~bootstrap/scss/button-group";
@import "~bootstrap/scss/input-group";
// @import "~bootstrap/scss/custom-forms";
@import "~bootstrap/scss/nav";
@import "~bootstrap/scss/navbar";
@import "~bootstrap/scss/card";
// @import "~bootstrap/scss/breadcrumb";
@import "~bootstrap/scss/pagination";
@import "~bootstrap/scss/badge";
// @import "~bootstrap/scss/jumbotron";
@import "~bootstrap/scss/alert";
// @import "~bootstrap/scss/progress";
// @import "~bootstrap/scss/media";
// @import "~bootstrap/scss/list-group";
// @import "~bootstrap/scss/close";
// @import "~bootstrap/scss/modal";
@import "~bootstrap/scss/tooltip";
// @import "~bootstrap/scss/popover";
// @import "~bootstrap/scss/carousel";
@import "~bootstrap/scss/utilities";
// @import "~bootstrap/scss/print";
export const environment = {
production: true
};
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment