Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
okirialbert committed Dec 13, 2018
1 parent ab1088a commit 8e12c4e
Show file tree
Hide file tree
Showing 70 changed files with 2,209 additions and 29 deletions.
13 changes: 13 additions & 0 deletions .firebase/hosting.ZGlzdC9sb2N1cw.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
index.html,1544388308869,7ace40e3f8fa5e99d4c47594bf10be36ed2fd05245fe3f2c6fedf9dd7a57a436
3rdpartylicenses.txt,1544388308869,60facc17d86a2f2958ae75a065251750a06994ad7481c5f7199ea693961b4328
runtime.ec2944dd8b20ec099bf3.js,1544388308869,fe4da65f4a99554b6b5dee1b019cbfa532b97645ced5cd91edc6a20c7e630d83
assets/folder.svg,1544388308937,ca8f653cd24dd1249a6511ef924df12d0693648e5092e47d00b17cdb2e96057a
polyfills.c6871e56cb80756a5498.js,1544388308869,2eb1a3871df9dea4195b0a4edb18fc8237ff07cbb5e5d7432fb12ae0d01e99ac
assets/paper.svg,1544388308937,47a771558dd16b6e18601c4e32af27fe951dce4476780de10aecd7aa0a7aa212
assets/pros-and-cons.svg,1544388308869,9fcbae3182ca437ba34aa404c4893b18a8c311f7ed8b48ea322f8d0b60830494
assets/scholarship.svg,1544388308869,08665df205c2be9bd9996c749c88a8c77a38e40d1f8d741ee5a777e2acca39b3
styles.9445c51926c552821697.css,1544388308869,5a5846bb704c93ca73623d1e841612f95ef83eac2b87bdc1abe063fc2661645b
assets/banner-locus_short.jpg,1544388308869,afe2cd026248097c6218d9a8de41d1dd4e547d78a55b1ec4974f4456082e0d6a
banner-locus.f9adb3ec86e53db615ef.jpg,1544388308869,30c190467d1ba0a4eaa9b87cab35df052cde783c23d27be1be1c9e0536e6347d
assets/banner-locus.jpg,1544388308869,30c190467d1ba0a4eaa9b87cab35df052cde783c23d27be1be1c9e0536e6347d
main.cb20fe7c67d57b905b2d.js,1544388308869,567ab3dd9807e71e1cb8878a8899085146aa0427c1d81b33e4d4ef131daee71a
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "research-locus"
}
}
4 changes: 3 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"src/assets"
],
"styles": [
"src/styles.scss"
"./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
"src/styles.scss",
],
"scripts": []
},
Expand Down Expand Up @@ -83,6 +84,7 @@
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
"src/styles.scss"
],
"scripts": [],
Expand Down
10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"hosting": {
"public": "dist/locus",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,24 @@
"private": true,
"dependencies": {
"@angular/animations": "~7.0.0",
"@angular/cdk": "~7.1.1",
"@angular/common": "~7.0.0",
"@angular/compiler": "~7.0.0",
"@angular/core": "~7.0.0",
"@angular/fire": "^5.1.1",
"@angular/forms": "~7.0.0",
"@angular/http": "~7.0.0",
"@angular/material": "~7.1.1",
"@angular/platform-browser": "~7.0.0",
"@angular/platform-browser-dynamic": "~7.0.0",
"@angular/router": "~7.0.0",
"bootstrap": "^4.1.3",
"core-js": "^2.5.4",
"firebase": "^5.7.0",
"hammerjs": "^2.0.8",
"jquery": "^3.3.1",
"material-design-lite": "^1.3.0",
"popper.js": "^1.14.6",
"rxjs": "~6.3.3",
"zone.js": "~0.8.26"
},
Expand Down
33 changes: 33 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Not Found</title>

<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
body, #message { margin-top: 0; background: white; box-shadow: none; }
body { border-top: 16px solid #ffa100; }
}
</style>
</head>
<body>
<div id="message">
<h2>404</h2>
<h1>Page Not Found</h1>
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
<h3>Why am I seeing this?</h3>
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
</div>
</body>
</html>
65 changes: 65 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to Firebase Hosting</title>

<!-- update the version number as needed -->
<script defer src="/__/firebase/5.7.0/firebase-app.js"></script>
<!-- include only the Firebase features as you need -->
<script defer src="/__/firebase/5.7.0/firebase-auth.js"></script>
<script defer src="/__/firebase/5.7.0/firebase-database.js"></script>
<script defer src="/__/firebase/5.7.0/firebase-messaging.js"></script>
<script defer src="/__/firebase/5.7.0/firebase-storage.js"></script>
<!-- initialize the SDK after all desired features are loaded -->
<script defer src="/__/firebase/init.js"></script>

<style media="screen">
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px; border-radius: 3px; }
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
@media (max-width: 600px) {
body, #message { margin-top: 0; background: white; box-shadow: none; }
body { border-top: 16px solid #ffa100; }
}
</style>
</head>
<body>
<div id="message">
<h2>Welcome</h2>
<h1>Firebase Hosting Setup Complete</h1>
<p>You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!</p>
<a target="_blank" href="https://firebase.google.com/docs/hosting/">Open Hosting Documentation</a>
</div>
<p id="load">Firebase SDK Loading&hellip;</p>

<script>
document.addEventListener('DOMContentLoaded', function() {
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
// // The Firebase SDK is initialized and available here!
//
// firebase.auth().onAuthStateChanged(user => { });
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
// firebase.messaging().requestPermission().then(() => { });
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
//
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥

try {
let app = firebase.app();
let features = ['auth', 'database', 'messaging', 'storage'].filter(feature => typeof app[feature] === 'function');
document.getElementById('load').innerHTML = `Firebase SDK loaded with ${features.join(', ')}`;
} catch (e) {
console.error(e);
document.getElementById('load').innerHTML = 'Error loading the Firebase SDK, check the console.';
}
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
complete works!
</p>
Empty file.
25 changes: 25 additions & 0 deletions src/app/admin/admin-components/complete/complete.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { CompleteComponent } from './complete.component';

describe('CompleteComponent', () => {
let component: CompleteComponent;
let fixture: ComponentFixture<CompleteComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ CompleteComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(CompleteComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/admin/admin-components/complete/complete.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-complete',
templateUrl: './complete.component.html',
styleUrls: ['./complete.component.scss']
})
export class CompleteComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
customers works!
</p>
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { CustomersComponent } from './customers.component';

describe('CustomersComponent', () => {
let component: CustomersComponent;
let fixture: ComponentFixture<CustomersComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ CustomersComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(CustomersComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/admin/admin-components/customers/customers.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-customers',
templateUrl: './customers.component.html',
styleUrls: ['./customers.component.scss']
})
export class CustomersComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
56 changes: 56 additions & 0 deletions src/app/admin/admin-components/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<div class="demo-layout mdl-layout mdl-js-layout mdl-layout--fixed-drawer mdl-layout--fixed-header">
<header class="demo-header mdl-layout__header mdl-color--grey-100 mdl-color-text--grey-600">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">Home</span>
<div class="mdl-layout-spacer"></div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable">
<label class="mdl-button mdl-js-button mdl-button--icon" for="search">
<i class="material-icons">search</i>
</label>
<div class="mdl-textfield__expandable-holder">
<input class="mdl-textfield__input" type="text" id="search">
<label class="mdl-textfield__label" for="search">Enter your query...</label>
</div>
</div>
<button class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon" id="hdrbtn">
<i class="material-icons">more_vert</i>
</button>
<ul class="mdl-menu mdl-js-menu mdl-js-ripple-effect mdl-menu--bottom-right" for="hdrbtn">
<li class="mdl-menu__item">About</li>
<li class="mdl-menu__item">Contact</li>
<li class="mdl-menu__item">Legal information</li>
</ul>
</div>
</header>
<div class="demo-drawer mdl-layout__drawer mdl-color--blue-grey-900 mdl-color-text--blue-grey-50">
<header class="demo-drawer-header">
<img src="images/user.jpg" class="demo-avatar">
<div class="demo-avatar-dropdown">
<span>[email protected]</span>
<div class="mdl-layout-spacer"></div>
<button id="accbtn" class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon">
<i class="material-icons" role="presentation">arrow_drop_down</i>
<span class="visuallyhidden">Accounts</span>
</button>
<ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect" for="accbtn">
<li class="mdl-menu__item">[email protected]</li>
<li class="mdl-menu__item"><i class="material-icons">add</i>Add another account...</li>
</ul>
</div>
</header>
<nav class="demo-navigation mdl-navigation mdl-color--blue-grey-800">
<a class="mdl-navigation__link" routerLink=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">home</i>Home</a>
<a class="mdl-navigation__link" routerLink="" ><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">inbox</i>Inbox</a>
<a class="mdl-navigation__link" routerLink="/complete" ><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">done_all</i>Complete</a>
<a class="mdl-navigation__link"routerLink="/in-progress"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">import_contacts</i>In Progress</a>
<a class="mdl-navigation__link" routerLink="/orders"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">work</i>Orders</a>
<a class="mdl-navigation__link" routerLink=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">rate_review</i>Reviews</a>
<a class="mdl-navigation__link" routerLink=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">local_offer</i>Posts</a>
<a class="mdl-navigation__link" routerLink=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">people</i>Social</a>
<div class="mdl-layout-spacer"></div>
<a class="mdl-navigation__link" href=""><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">help_outline</i><span class="visuallyhidden">Help</span></a>
</nav>
</div>
<main class="mdl-layout__content mdl-color--grey-100">
</main>
</div>
Loading

0 comments on commit 8e12c4e

Please sign in to comment.