|
|
@ -7,16 +7,14 @@
|
|
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
|
|
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
app.views.StaticPage = class StaticPage extends app.View {
|
|
|
|
app.views.StaticPage = class StaticPage extends app.View {
|
|
|
|
static initClass() {
|
|
|
|
static className = "_static";
|
|
|
|
this.className = "_static";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.titles = {
|
|
|
|
static titles = {
|
|
|
|
about: "About",
|
|
|
|
about: "About",
|
|
|
|
news: "News",
|
|
|
|
news: "News",
|
|
|
|
help: "User Guide",
|
|
|
|
help: "User Guide",
|
|
|
|
notFound: "404",
|
|
|
|
notFound: "404",
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deactivate() {
|
|
|
|
deactivate() {
|
|
|
|
if (super.deactivate(...arguments)) {
|
|
|
|
if (super.deactivate(...arguments)) {
|
|
|
@ -38,4 +36,3 @@ app.views.StaticPage = class StaticPage extends app.View {
|
|
|
|
this.render(context.page || "notFound");
|
|
|
|
this.render(context.page || "notFound");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
app.views.StaticPage.initClass();
|
|
|
|
|
|
|
|