Comparing version 0.1.9 to 0.1.10
{ | ||
"name": "co-auther", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "", | ||
@@ -12,3 +12,3 @@ "main": "src/co-auther/co-auther.js", | ||
"typescript": "tsc", | ||
"watch": "tsc -w", | ||
"watch": "tsc -w", | ||
"sass": "gulp sass", | ||
@@ -25,10 +25,10 @@ "typings": "typings" | ||
"devDependencies": { | ||
"@angular/common": "2.0.0-rc.1", | ||
"@angular/compiler": "2.0.0-rc.1", | ||
"@angular/core": "2.0.0-rc.1", | ||
"@angular/http": "2.0.0-rc.1", | ||
"@angular/platform-browser": "2.0.0-rc.1", | ||
"@angular/platform-browser-dynamic": "2.0.0-rc.1", | ||
"@angular/router": "3.0.0-alpha.3", | ||
"@angular/router-deprecated": "2.0.0-rc.1", | ||
"@angular/common": "2.0.0-rc.2", | ||
"@angular/compiler": "2.0.0-rc.2", | ||
"@angular/core": "2.0.0-rc.2", | ||
"@angular/http": "2.0.0-rc.2", | ||
"@angular/platform-browser": "2.0.0-rc.2", | ||
"@angular/platform-browser-dynamic": "2.0.0-rc.2", | ||
"@angular/router": "3.0.0-alpha.6", | ||
"@angular/router-deprecated": "2.0.0-rc.2", | ||
"bootstrap": "git+https://git@github.com/twbs/bootstrap.git#v4-dev", | ||
@@ -35,0 +35,0 @@ "es6-shim": "0.35.0", |
@@ -48,5 +48,5 @@ "use strict"; | ||
router_deprecated_1.RouteConfig([ | ||
{ path: '/authenticate', as: 'Authenticate', component: authenticate_cmp_1.AuthenticateCmp, useAsDefault: true }, | ||
{ path: '/loggedIn', as: 'LoggedIn', component: logged_in_cmp_1.LoggedInCmp }, | ||
{ path: '/initialRequest', as: 'InitialRequest', component: initial_request_cmp_1.InitialRequestCmp } | ||
{ path: '/authenticate', name: 'Authenticate', component: authenticate_cmp_1.AuthenticateCmp, useAsDefault: true }, | ||
{ path: '/loggedIn', name: 'LoggedIn', component: logged_in_cmp_1.LoggedInCmp }, | ||
{ path: '/initialRequest', name: 'InitialRequest', component: initial_request_cmp_1.InitialRequestCmp } | ||
]), | ||
@@ -53,0 +53,0 @@ __metadata('design:paramtypes', [router_deprecated_1.Router]) |
@@ -30,5 +30,5 @@ // Angular | ||
@RouteConfig([ | ||
{ path: '/authenticate', as: 'Authenticate', component: AuthenticateCmp, useAsDefault: true }, | ||
{ path: '/loggedIn', as: 'LoggedIn', component: LoggedInCmp }, | ||
{ path: '/initialRequest', as: 'InitialRequest', component: InitialRequestCmp } | ||
{ path: '/authenticate', name: 'Authenticate', component: AuthenticateCmp, useAsDefault: true }, | ||
{ path: '/loggedIn', name: 'LoggedIn', component: LoggedInCmp }, | ||
{ path: '/initialRequest', name: 'InitialRequest', component: InitialRequestCmp } | ||
]) | ||
@@ -35,0 +35,0 @@ export class AppCmp { |
@@ -42,3 +42,3 @@ "use strict"; | ||
directives: [router_1.ROUTER_DIRECTIVES], | ||
template: "\n <div style='margin: 30px;'>\n <p style='font-weight: bold;'>co-auther demo</p>\n <a [routerLink]='[\"/authenticate\"]'>Authenticate</a> | \n <a [routerLink]='[\"/logged-in\"]'>Logged In</a> | \n <a [routerLink]='[\"/logged-in/child\"]'>Logged in - Child</a> | \n <a [routerLink]='[\"/initial-request\"]'>Initial Request</a> | \n <a (click)='logout()' style='cursor: pointer;'>Log out</a>\n <br><br>\n <router-outlet></router-outlet>\n </div>\n " | ||
template: "\n <div style='margin: 30px;'>\n <p style='font-weight: bold;'>co-auther demo</p>\n <a [routerLink]='[\"/authenticate\"]'>Authenticate</a> | \n <a [routerLink]='[\"/logged-in\"]'>Logged In</a> | \n <a [routerLink]='[\"/logged-in/child2\"]'>Logged in - Child2</a> | \n <a [routerLink]='[\"/initial-request\"]'>Initial Request</a> | \n <a (click)='logout()' style='cursor: pointer;'>Log out</a>\n <br><br>\n <router-outlet></router-outlet>\n </div>\n " | ||
}), | ||
@@ -45,0 +45,0 @@ __metadata('design:paramtypes', [router_1.Router]) |
@@ -22,3 +22,3 @@ // Angular | ||
<a [routerLink]='["/logged-in"]'>Logged In</a> | | ||
<a [routerLink]='["/logged-in/child"]'>Logged in - Child</a> | | ||
<a [routerLink]='["/logged-in/child2"]'>Logged in - Child2</a> | | ||
<a [routerLink]='["/initial-request"]'>Initial Request</a> | | ||
@@ -25,0 +25,0 @@ <a (click)='logout()' style='cursor: pointer;'>Log out</a> |
@@ -7,7 +7,7 @@ "use strict"; | ||
var co_auther_guard_1 = require('./co-auther.guard'); | ||
var dummy_component_1 = require('./dummy.component'); | ||
var routes = [ | ||
{ | ||
// https://github.com/angular/vladivostok/issues/33 | ||
path: '/', | ||
redirectTo: '/authenticate' | ||
path: '', | ||
component: dummy_component_1.DummyComponent | ||
} | ||
@@ -14,0 +14,0 @@ ].concat(authenticate_routes_1.AuthenticateRoutes, initial_request_routes_1.InitialRequestRoutes, logged_in_routes_1.LoggedInRoutes); |
@@ -8,7 +8,8 @@ import {provideRouter, RouterConfig} from '@angular/router' | ||
import {DummyComponent} from './dummy.component' | ||
const routes: RouterConfig = [ | ||
{ | ||
// https://github.com/angular/vladivostok/issues/33 | ||
path: '/', | ||
redirectTo: '/authenticate' | ||
path: '', | ||
component: DummyComponent | ||
}, | ||
@@ -15,0 +16,0 @@ ...AuthenticateRoutes, |
@@ -20,3 +20,3 @@ "use strict"; | ||
// and those are available in the beginning of the route | ||
return Observable_1.Observable.from([co_auther_1.activationHelper(route.urlSegments[0].path)]); | ||
return Observable_1.Observable.from([co_auther_1.activationHelper(route.url[0].path)]); | ||
}; | ||
@@ -23,0 +23,0 @@ CoAutherGuard = __decorate([ |
@@ -11,4 +11,4 @@ import {Injectable} from '@angular/core' | ||
// and those are available in the beginning of the route | ||
return Observable.from([activationHelper(route.urlSegments[0].path)]) | ||
return Observable.from([activationHelper(route.url[0].path)]) | ||
} | ||
} |
@@ -20,3 +20,3 @@ "use strict"; | ||
directives: [router_1.ROUTER_DIRECTIVES], | ||
template: "\n Logged in!<br>\n <a [routerLink]='[\"/logged-in/child\"]'>Go to child</a>\n <br><br>\n <router-outlet></router-outlet>\n " | ||
template: "\n Logged in!<br>\n <br><br>\n <router-outlet></router-outlet>\n " | ||
}), | ||
@@ -23,0 +23,0 @@ __metadata('design:paramtypes', []) |
@@ -9,3 +9,2 @@ import {Component} from '@angular/core' | ||
Logged in!<br> | ||
<a [routerLink]='["/logged-in/child"]'>Go to child</a> | ||
<br><br> | ||
@@ -12,0 +11,0 @@ <router-outlet></router-outlet> |
@@ -5,2 +5,3 @@ "use strict"; | ||
var logged_in_child_component_1 = require('./logged-in-child.component'); | ||
var logged_in_child2_component_1 = require('./logged-in-child2.component'); | ||
exports.LoggedInRoutes = [ | ||
@@ -14,4 +15,8 @@ { | ||
{ | ||
path: '/child', | ||
path: '', | ||
component: logged_in_child_component_1.LoggedInChildComponent | ||
}, | ||
{ | ||
path: '/child2', | ||
component: logged_in_child2_component_1.LoggedInChild2Component | ||
} | ||
@@ -18,0 +23,0 @@ ] |
import {LoggedInComponent} from './logged-in.component' | ||
import {CoAutherGuard} from '../co-auther.guard' | ||
import {LoggedInChildComponent} from './logged-in-child.component' | ||
import {LoggedInChild2Component} from './logged-in-child2.component' | ||
@@ -13,4 +14,8 @@ export const LoggedInRoutes = [ | ||
{ | ||
path: '/child', | ||
path: '', | ||
component: LoggedInChildComponent | ||
}, | ||
{ | ||
path: '/child2', | ||
component: LoggedInChild2Component | ||
} | ||
@@ -17,0 +22,0 @@ ] |
@@ -45,5 +45,5 @@ "use strict"; | ||
router_deprecated_1.RouteConfig([ | ||
{ path: '/authenticate', as: 'Authenticate', component: authenticate_cmp_1.AuthenticateCmp, useAsDefault: true }, | ||
{ path: '/loggedIn/...', as: 'LoggedIn', component: logged_in_cmp_1.LoggedInCmp }, | ||
{ path: '/initialRequest', as: 'InitialRequest', component: initial_request_cmp_1.InitialRequestCmp } | ||
{ path: '/authenticate', name: 'Authenticate', component: authenticate_cmp_1.AuthenticateCmp, useAsDefault: true }, | ||
{ path: '/loggedIn/...', name: 'LoggedIn', component: logged_in_cmp_1.LoggedInCmp }, | ||
{ path: '/initialRequest', name: 'InitialRequest', component: initial_request_cmp_1.InitialRequestCmp } | ||
]), | ||
@@ -50,0 +50,0 @@ __metadata('design:paramtypes', [router_deprecated_1.Router]) |
@@ -20,5 +20,5 @@ // Angular | ||
@RouteConfig([ | ||
{path: '/authenticate', as: 'Authenticate', component: AuthenticateCmp, useAsDefault: true}, | ||
{path: '/loggedIn/...', as: 'LoggedIn', component: LoggedInCmp}, | ||
{path: '/initialRequest', as: 'InitialRequest', component: InitialRequestCmp} | ||
{path: '/authenticate', name: 'Authenticate', component: AuthenticateCmp, useAsDefault: true}, | ||
{path: '/loggedIn/...', name: 'LoggedIn', component: LoggedInCmp}, | ||
{path: '/initialRequest', name: 'InitialRequest', component: InitialRequestCmp} | ||
]) | ||
@@ -25,0 +25,0 @@ export class AppCmp { |
@@ -27,4 +27,4 @@ "use strict"; | ||
router_deprecated_2.RouteConfig([ | ||
{ path: '/dashboard', as: 'Dashboard', component: dashboard_cmp_1.DashboardCmp, useAsDefault: true }, | ||
{ path: '/settings', as: 'Settings', component: settings_cmp_1.SettingsCmp } | ||
{ path: '/dashboard', name: 'Dashboard', component: dashboard_cmp_1.DashboardCmp, useAsDefault: true }, | ||
{ path: '/settings', name: 'Settings', component: settings_cmp_1.SettingsCmp } | ||
]), | ||
@@ -31,0 +31,0 @@ core_1.Component({ |
@@ -9,4 +9,4 @@ import {Component} from '@angular/core' | ||
@RouteConfig([ | ||
{path: '/dashboard', as: 'Dashboard', component: DashboardCmp, useAsDefault: true}, | ||
{path: '/settings', as: 'Settings', component: SettingsCmp} | ||
{path: '/dashboard', name: 'Dashboard', component: DashboardCmp, useAsDefault: true}, | ||
{path: '/settings', name: 'Settings', component: SettingsCmp} | ||
]) | ||
@@ -13,0 +13,0 @@ @Component({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
221095
116
5778