mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: introduce post model
Now to replace all the api calls in views with event system... and then do the same for user, tag and comment
This commit is contained in:
@ -6,9 +6,6 @@ const optimizedResize = require('../util/optimized_resize.js');
|
||||
|
||||
class PostContentControl {
|
||||
constructor(containerNode, post, viewportSizeCalculator) {
|
||||
post.canvasWidth = post.canvasWidth || 800;
|
||||
post.canvasHeight = post.canvasHeight || 450;
|
||||
|
||||
this._post = post;
|
||||
this._viewportSizeCalculator = viewportSizeCalculator;
|
||||
this._containerNode = containerNode;
|
||||
|
Reference in New Issue
Block a user