Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aot #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Aot #35

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion angular-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ module.exports = function(defaults) {
'@angular/**/*.+(js|js.map)',
'angularfire2/**/*.js',
'firebase/*.js',
'@angular2-material/**/*'
'@angular2-material/**/*',
'hammerjs/*.js'
]
});
};
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "ames",
"version": "0.0.0",
"version": "0.1.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"start": "ng server",
"start": "ngc -p src && ng server",
"postinstall": "typings install",
"lint": "tslint \"src/**/*.ts\"",
"test": "ng test",
Expand All @@ -24,16 +24,18 @@
"@angular/platform-server": "^2.0.0-rc.5",
"@angular/router": "^3.0.0-rc.1",
"@angular/tsc-wrapped": "^0.2.2",
"@angular2-material/button": "^2.0.0-alpha.7-2",
"@angular2-material/card": "^2.0.0-alpha.7-2",
"@angular2-material/core": "^2.0.0-alpha.7-2",
"@angular2-material/icon": "^2.0.0-alpha.7-2",
"@angular2-material/input": "^2.0.0-alpha.7-2",
"@angular2-material/slide-toggle": "^2.0.0-alpha.7-2",
"@angular2-material/toolbar": "^2.0.0-alpha.7-2",
"@angular2-material/button": "^2.0.0-alpha.7-4",
"@angular2-material/card": "^2.0.0-alpha.7-4",
"@angular2-material/core": "^2.0.0-alpha.7-4",
"@angular2-material/icon": "^2.0.0-alpha.7-4",
"@angular2-material/input": "^2.0.0-alpha.7-4",
"@angular2-material/slide-toggle": "^2.0.0-alpha.7-4",
"@angular2-material/toolbar": "^2.0.0-alpha.7-4",
"@types/hammerjs": "^2.0.31",
"angularfire2": "next",
"es6-shim": "^0.35.0",
"firebase": "^3.0.5",
"hammerjs": "^2.0.8",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"systemjs": "0.19.26",
Expand Down
3 changes: 1 addition & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { AmesAppComponent } from './ames.component';
import { FormsModule } from '@angular/forms';
import { ROUTER_DIRECTIVES, provideRouter, RouterModule } from '@angular/router';
import { RouterModule } from '@angular/router';
import { AngularFireModule } from 'angularfire2';

import { MdSlideToggleModule } from '@angular2-material/slide-toggle';
Expand All @@ -13,7 +13,6 @@ import { MdCardModule } from '@angular2-material/card';
import { MdInputModule } from '@angular2-material/input';

import { routes } from './routes';
import {RouterConfig} from '@angular/router';

import {HomeComponent} from './home.component';
import {MissionsComponent} from './missions/missions.component';
Expand Down
2 changes: 1 addition & 1 deletion src/app/communities/communities.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class CommunitiesComponent {
}

edit(community) {
this.router.navigate(['/communities/', community.$key, '/edit']);
this.router.navigate(['/communities', community.$key, 'edit']);
}
new() {
this.router.navigate(['/communities/new/edit']);
Expand Down
2 changes: 1 addition & 1 deletion src/app/events/events.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class EventsComponent {
}

edit(event) {
this.router.navigate(['/events/', event.$key, '/edit']);
this.router.navigate(['/events', event.$key, 'edit']);
}

new() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/experts/experts.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ export class ExpertsComponent {
}

edit(expert) {
this.router.navigate(['/experts/', expert.$key, '/edit']);
this.router.navigate(['/experts', expert.$key, 'edit']);
}
}
2 changes: 1 addition & 1 deletion src/app/missions/mission-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class MissionListComponent implements OnInit {
}

edit(mission) {
this.router.navigate(["/missions/", mission.$key, '/edit'])
this.router.navigate(["/missions", mission.$key, 'edit'])
}

}
3 changes: 2 additions & 1 deletion src/app/resources/resources.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ declare var prompt;
<h4>{{sub.$key}}</h4>
<h4 *ngIf="priorityMode && (auth.isAdmin | async)"><button (click)="setSubcategoryPriority(category.$key, sub.$key,subPriority)">SetPriority</button><input [(ngModel)]="subPriority"></h4>
<div *ngFor="let resource of sub.resources | refirebase" style="margin-left:16px;">
<a target="_blank" [href]="resource.url">{{resource.title}}</a> <a [routerLink]="['/resources/',category.$key,'/',sub.$key,'/',resource.$key]" *ngIf="auth.isAdmin | async"><svg style="width:12px;height:12px" viewBox="0 0 24 24">
{{sub | json}} and {{resource.$key}}
<a target="_blank" [href]="resource.url">{{resource.title}}</a> <a [routerLink]="['/resources',category.$key,sub.$key,resource.$key]" *ngIf="auth.isAdmin | async"><svg style="width:12px;height:12px" viewBox="0 0 24 24">
<path fill="#000000" d="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z" />
</svg></a>
<span *ngIf="!resource.rev">(Awaiting Approval!)</span>
Expand Down
4 changes: 2 additions & 2 deletions src/app/routes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {RouterConfig} from '@angular/router';
import {Routes} from '@angular/router';
import {HomeComponent} from './home.component';
import {MissionsComponent} from './missions/missions.component';
import {MissionListComponent} from './missions/mission-list.component';
Expand Down Expand Up @@ -26,7 +26,7 @@ import {UserProfileShortComponent} from './users/user-profile-short.component';
import {AdminComponent} from './admin.component';


export const routes: RouterConfig = [
export const routes: Routes = [
{
path: '',
component: HomeComponent,
Expand Down
1 change: 1 addition & 0 deletions src/google9746a25784deb839.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-site-verification: google9746a25784deb839.html
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{{#unless environment.production}}
<script src="/ember-cli-live-reload.js" type="text/javascript"></script>
{{/unless}}
<script src="https://ajax.googleapis.com/ajax/libs/hammerjs/2.0.8/hammer.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="app.css">
Expand Down
2 changes: 1 addition & 1 deletion src/system-config.ts