rewrite todos

This commit is contained in:
igoradamenko
2018-03-26 14:30:26 +03:00
parent ee021efaf6
commit 193baf36a0
2 changed files with 14 additions and 9 deletions
+14 -4
View File
@@ -1,12 +1,23 @@
major fixes:
- comment scroller:
we can't get access to window.parent.location,
so we need to use postMessage for pushing location.hash
into the iframe
major features:
- improve design
- check mobile ui
- add styles for md text
- check styles for md text
- add time format 'X hours ago'
- try to move voting buttons from the top line to the left side
- improve thread design
- edit comment
- `PUT /api/v1/comment/{id}?site=site-id&url=post-url`
- add description of web part to readme
- show comments of blocked users in the list of them
optimizations:
@@ -17,10 +28,9 @@ optimizations:
minor features:
- add manual sort
- maybe add manual sort
- `GET /api/v1/find?site=site-id&url=post-url&sort=fld&format=tree`
- add comments counter
- `GET /api/v1/count?site=site-id&url=post-url`
- show list of user comments for admin?
other:
-5
View File
@@ -1,11 +1,7 @@
import Promise from 'promise-polyfill';
/* eslint-disable no-underscore-dangle */
Promise._unhandledRejectionFn = () => {};
/* eslint-enable no-underscore-dangle */
// TODO: need to figure out, do we really need finally?
/* eslint-disable no-extend-native */
Promise.prototype.finally = function finallyFn(callback) {
const constructor = this.constructor;
@@ -14,6 +10,5 @@ Promise.prototype.finally = function finallyFn(callback) {
(reason) => constructor.resolve(callback()).then(() => reason)
);
};
/* eslint-enable no-extend-native */
window.Promise = Promise;