mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
start
Done so far Basic backend skeleton - technology choices - database migration outline - basic self hosting facade - basic REST outline - proof of concept for auth and privileges Basic frontend skeleton - technology choices - pretty robust frontend compilation - top navigation - proof of concept for registration form
This commit is contained in:
25
static/js/controllers/posts_controller.js
Normal file
25
static/js/controllers/posts_controller.js
Normal file
@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
class PostsController {
|
||||
constructor(topNavigationController) {
|
||||
this.topNavigationController = topNavigationController;
|
||||
}
|
||||
|
||||
uploadPostsRoute() {
|
||||
this.topNavigationController.activate('upload');
|
||||
}
|
||||
|
||||
listPostsRoute() {
|
||||
this.topNavigationController.activate('posts');
|
||||
}
|
||||
|
||||
showPostRoute(id) {
|
||||
this.topNavigationController.activate('posts');
|
||||
}
|
||||
|
||||
editPostRoute(id) {
|
||||
this.topNavigationController.activate('posts');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PostsController;
|
Reference in New Issue
Block a user