Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
chore(all): prepare release 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 12, 2015
1 parent 4408354 commit 508692f
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 60 deletions.
35 changes: 25 additions & 10 deletions dist/app.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,39 @@
System.register(["aurelia-router"], function (_export) {
"use strict";

var Router, App;
var Router, _prototypeProperties, App;
return {
setters: [function (_aureliaRouter) {
Router = _aureliaRouter.Router;
}],
execute: function () {
App = function App(router) {
this.router = router;
this.router.configure(function (config) {
config.title = "Aurelia";
config.map([{ route: ["", "welcome"], moduleId: "welcome", nav: true, title: "Welcome" }, { route: "flickr", moduleId: "flickr", nav: true }, { route: "child-router", moduleId: "child-router", nav: true, title: "Child Router" }]);
});
_prototypeProperties = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};

App.inject = function () {
return [Router];
};
App = (function () {
function App(router) {
this.router = router;
this.router.configure(function (config) {
config.title = "Aurelia";
config.map([{ route: ["", "welcome"], moduleId: "welcome", nav: true, title: "Welcome" }, { route: "flickr", moduleId: "flickr", nav: true }, { route: "child-router", moduleId: "child-router", nav: true, title: "Child Router" }]);
});
}

_prototypeProperties(App, {
inject: {
value: function () {
return [Router];
},
writable: true,
enumerable: true,
configurable: true
}
});

return App;
})();
_export("App", App);
}
};
Expand Down
35 changes: 25 additions & 10 deletions dist/child-router.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,39 @@
System.register(["aurelia-router"], function (_export) {
"use strict";

var Router, Welcome;
var Router, _prototypeProperties, Welcome;
return {
setters: [function (_aureliaRouter) {
Router = _aureliaRouter.Router;
}],
execute: function () {
Welcome = function Welcome(router) {
this.heading = "Child Router";
this.router = router;
router.configure(function (config) {
config.map([{ route: ["", "welcome"], moduleId: "welcome", nav: true, title: "Welcome" }, { route: "flickr", moduleId: "flickr", nav: true }, { route: "child-router", moduleId: "child-router", nav: true, title: "Child Router" }]);
});
_prototypeProperties = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};

Welcome.inject = function () {
return [Router];
};
Welcome = (function () {
function Welcome(router) {
this.heading = "Child Router";
this.router = router;
router.configure(function (config) {
config.map([{ route: ["", "welcome"], moduleId: "welcome", nav: true, title: "Welcome" }, { route: "flickr", moduleId: "flickr", nav: true }, { route: "child-router", moduleId: "child-router", nav: true, title: "Child Router" }]);
});
}

_prototypeProperties(Welcome, {
inject: {
value: function () {
return [Router];
},
writable: true,
enumerable: true,
configurable: true
}
});

return Welcome;
})();
_export("Welcome", Welcome);
}
};
Expand Down
60 changes: 42 additions & 18 deletions dist/flickr.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,58 @@
System.register(["aurelia-http-client"], function (_export) {
"use strict";

var HttpClient, url, Flickr;
var HttpClient, _prototypeProperties, url, Flickr;
return {
setters: [function (_aureliaHttpClient) {
HttpClient = _aureliaHttpClient.HttpClient;
}],
execute: function () {
url = "http://api.flickr.com/services/feeds/photos_public.gne?tags=rainier&tagmode=any&format=json";
Flickr = function Flickr(http) {
this.heading = "Flickr";
this.images = [];
this.http = http;
_prototypeProperties = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};

Flickr.inject = function () {
return [HttpClient];
};
url = "http://api.flickr.com/services/feeds/photos_public.gne?tags=rainier&tagmode=any&format=json";
Flickr = (function () {
function Flickr(http) {
this.heading = "Flickr";
this.images = [];
this.http = http;
}

Flickr.prototype.activate = function () {
var _this = this;
return this.http.jsonp(url).then(function (response) {
_this.images = response.content.items;
_prototypeProperties(Flickr, {
inject: {
value: function () {
return [HttpClient];
},
writable: true,
enumerable: true,
configurable: true
}
}, {
activate: {
value: function () {
var _this = this;
return this.http.jsonp(url).then(function (response) {
_this.images = response.content.items;
});
},
writable: true,
enumerable: true,
configurable: true
},
canDeactivate: {
value: function () {
return confirm("Are you sure you want to leave?");
},
writable: true,
enumerable: true,
configurable: true
}
});
};

Flickr.prototype.canDeactivate = function () {
return confirm("Are you sure you want to leave?");
};

return Flickr;
})();
_export("Flickr", Flickr);
}
};
Expand Down
25 changes: 20 additions & 5 deletions dist/nav-bar.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
System.register(["aurelia-framework"], function (_export) {
"use strict";

var Property, NavBar;
var Property, _prototypeProperties, NavBar;
return {
setters: [function (_aureliaFramework) {
Property = _aureliaFramework.Property;
}],
execute: function () {
NavBar = function NavBar() {};

NavBar.annotations = function () {
return [new Property("router")];
_prototypeProperties = function (child, staticProps, instanceProps) {
if (staticProps) Object.defineProperties(child, staticProps);
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};

NavBar = (function () {
function NavBar() {}

_prototypeProperties(NavBar, {
annotations: {
value: function () {
return [new Property("router")];
},
writable: true,
enumerable: true,
configurable: true
}
});

return NavBar;
})();
_export("NavBar", NavBar);
}
};
Expand Down
40 changes: 24 additions & 16 deletions dist/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,33 @@ System.register([], function (_export) {
if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
};

Welcome = function Welcome() {
this.heading = "Welcome to the Aurelia Navigation App!";
this.firstName = "John";
this.lastName = "Doe";
};

Welcome.prototype.welcome = function () {
alert("Welcome, " + this.fullName + "!");
};
Welcome = (function () {
function Welcome() {
this.heading = "Welcome to the Aurelia Navigation App!";
this.firstName = "John";
this.lastName = "Doe";
}

_prototypeProperties(Welcome, null, {
fullName: {
get: function () {
return "" + this.firstName + " " + this.lastName;
_prototypeProperties(Welcome, null, {
fullName: {
get: function () {
return "" + this.firstName + " " + this.lastName;
},
enumerable: true,
configurable: true
},
enumerable: true
}
});
welcome: {
value: function () {
alert("Welcome, " + this.fullName + "!");
},
writable: true,
enumerable: true,
configurable: true
}
});

return Welcome;
})();
_export("Welcome", Welcome);
}
};
Expand Down
13 changes: 13 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 0.8.0 (2015-01-12)


#### Bug Fixes

* **package:** update Aurelia dependencies ([44083541](http://github.com/aurelia/skeleton-navigation/commit/440835418d78b5d99278ec4f2fbc04beb79ff98f))


#### Features

* **build:** update watch task to include style files ([ddf6c789](http://github.com/aurelia/skeleton-navigation/commit/ddf6c789c84ac267bdf4865f19a3339d7ee66253))


### 0.7.2 (2015-01-07)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-skeleton-navigation",
"version": "0.7.2",
"version": "0.8.0",
"description": "A starter kit for building a standard navigation-style app with Aurelia.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 508692f

Please sign in to comment.