Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend Framework Rewrite (Mithril) #2126

Closed
wants to merge 150 commits into from

Commits on Apr 18, 2020

  1. Configuration menu
    Copy the full SHA
    3c84f41 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a5063c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    46eab64 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c6bcb79 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6401e45 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c037598 View commit details
    Browse the repository at this point in the history
  7. Fix m.withAttr for input value, show search results, fix some old m.r…

    …oute code
    
    TODO: Fix "SyntaxError: '> li:not(.Dropdown-header)' is not a valid selector" when hovering search results in navbar
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    b885346 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    48dccda View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2fd3aa8 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    654a0b5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    39c8ef4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b47ba94 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    49d2539 View commit details
    Browse the repository at this point in the history
  14. Fix listItems isSeparator function, add m() children to attrs, work o…

    …n posts, subtree retainer
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    0de0c83 View commit details
    Browse the repository at this point in the history
  15. Update changes

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    056e6c0 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    87792f5 View commit details
    Browse the repository at this point in the history
  17. Fix ModalManager not allowing vnodes, make modals set themselves to a…

    …pp.modal.component when created
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    660cd1c View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6978c0a View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    1f1986c View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    557bb08 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    be6a41a View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    d6a4058 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    b2cbbd5 View commit details
    Browse the repository at this point in the history
  24. common: use proper request attribute for Store.prototype.find

    The property is 'params' instead of 'body' or 'data'
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    fb50540 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    d404b11 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    4e96900 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    dd13ff4 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    dfedd58 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    220a36c View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    6674591 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    6656820 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    3410bf0 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    f22f4c0 View commit details
    Browse the repository at this point in the history
  34. forum: do not update lastSeenAt when modifying discloseOnline preference

    This value is immediately set in the backend again, so apart from causing visual glitches, it is useless as the preference doesn't prevent admins from seeing your last seen at time
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    f75c2cf View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    eae6a11 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    4f79a05 View commit details
    Browse the repository at this point in the history
  37. common: add utils abbreviateNumber, anchorScroll, Evented, ScrollList…

    …ener
    
    Evented is now a class instead of an object - it can be extended from a class now. Object.assign can still be used with it, but instead of `evented` with `Evented.prototype`
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    8ba86f9 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    4368dfc View commit details
    Browse the repository at this point in the history
  39. forum: add DiscussionPage with hero, loading post, post preview, post…

    … stream, reply placeholder
    
    No post stream scrubber yet. Composer hasn't been added either, so many calls return errors because of app.composer not being set.
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    7485559 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    21d19df View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    80d8707 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    2a66dc5 View commit details
    Browse the repository at this point in the history
  43. a few fixes here & there - cache typehinting moved to Forum.ts, don't…

    … use button link in PostUser
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    f24aafd View commit details
    Browse the repository at this point in the history
  44. build JS

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    eeae395 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    241b8cc View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    fa47228 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    bcaa6f4 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    c03e0f7 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    68c17f2 View commit details
    Browse the repository at this point in the history
  50. common: modify Component#render to properly do what it is supposed to…

    … - modify the original instance
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    3bf7f6f View commit details
    Browse the repository at this point in the history
  51. common: add formatNumber - use toLocaleString and support current app…

    …lication locale + custom options
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    8ea7f9b View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    4910205 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    c8e97f2 View commit details
    Browse the repository at this point in the history
  54. forum: add PostStreamScrubber, refactor things to move away from Comp…

    …onent#render
    
    Post components don't seem to be redrawing for some reason when in the PostStream - this doesn't seem to be caused by the subtree retainer, none of the lifecycle hooks are called when Mithril redraws, as far as I can tell
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    dfcc099 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    31cfe0f View commit details
    Browse the repository at this point in the history
  56. forum: fix PostStream not scrolling to post number on load & potentia…

    …l issues with app.route.discussion
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    b958394 View commit details
    Browse the repository at this point in the history
  57. forum: make Discussion Page properly redraw PostStream - don't store …

    …vnode
    
    Issue is that the code now looks like an ugly mess. :/
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    dcb3cc1 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    6a67167 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    d6b0715 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    35b91c9 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    f0140c6 View commit details
    Browse the repository at this point in the history
  62. remove console log

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    c3237d4 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    da31fc2 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    22a031a View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    2ca0786 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    d29b5c7 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    58ccb84 View commit details
    Browse the repository at this point in the history
  68. common: change ModalManager#show to accept two parameters instead of …

    …a component class instance
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    c4cb731 View commit details
    Browse the repository at this point in the history
  69. common: run ModalManager#onready once fade in animation ends

    This makes sure the component has been initialized (exists in app.modal.component) and the zoom & fade in animations have completed
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    93e565c View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    0a5493c View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    cc66194 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    4484f3e View commit details
    Browse the repository at this point in the history
  73. revert Application implementation from experimental breaking change t…

    …o use existing implementation in master
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    ef47e09 View commit details
    Browse the repository at this point in the history
  74. common: use 'lodash' instead of 'lodash-es' because 'lodash-es' adds …

    …megabytes to development build
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    0356ecf View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    c615fb9 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    e86940b View commit details
    Browse the repository at this point in the history
  77. change a few typings

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    9b83159 View commit details
    Browse the repository at this point in the history
  78. compile dev js

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    58e096a View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    5bc6e52 View commit details
    Browse the repository at this point in the history
  80. common: rework Component#render again to simplify substite m(class, p…

    …rops)
    
    Can be used instead of m(DiscussionList, app.cache.discussionList.props), for example - it's now app.cache.discussionList.render()
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    66b839d View commit details
    Browse the repository at this point in the history
  81. common: move the component children prop logic to Component class ins…

    …tead of patchMithril
    
    Should make easier debugging if something doesn't work as well
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    babbda0 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    3027916 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    afda17b View commit details
    Browse the repository at this point in the history
  84. build dev

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    c95f7b8 View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    2a63602 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    c819a8d View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    cfc0000 View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    f9cda85 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    8f7435f View commit details
    Browse the repository at this point in the history
  90. build js

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    83d0345 View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    0dc846b View commit details
    Browse the repository at this point in the history
  92. update changes file

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    7174427 View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    82ef5f9 View commit details
    Browse the repository at this point in the history
  94. common: add compat

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    d73f1d8 View commit details
    Browse the repository at this point in the history
  95. forum: create app.ts file that exports Forum instance

    This file can now be imported so 'app' is an instance of Forum instead of just Application - for typings
    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    88aa9fc View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    39dc303 View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    37cec14 View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    dbc3aac View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    8a07bb6 View commit details
    Browse the repository at this point in the history
  100. Configuration menu
    Copy the full SHA
    99b5b5f View commit details
    Browse the repository at this point in the history
  101. Configuration menu
    Copy the full SHA
    458045a View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    be84451 View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    860e91f View commit details
    Browse the repository at this point in the history
  104. Configuration menu
    Copy the full SHA
    58164b6 View commit details
    Browse the repository at this point in the history
  105. Configuration menu
    Copy the full SHA
    84d977f View commit details
    Browse the repository at this point in the history
  106. Configuration menu
    Copy the full SHA
    5e853aa View commit details
    Browse the repository at this point in the history
  107. forum: add Pane util

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    d644b49 View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    c1a4f19 View commit details
    Browse the repository at this point in the history
  109. Configuration menu
    Copy the full SHA
    11e373f View commit details
    Browse the repository at this point in the history
  110. Build JS

    dsevillamartin committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    81b2f4a View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2020

  1. Add less changes from #1950

    They got lost when I dropped the commits
    dsevillamartin committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    2c2f6fd View commit details
    Browse the repository at this point in the history
  2. lint code

    dsevillamartin committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    91522f8 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2020

  1. Configuration menu
    Copy the full SHA
    a7937ed View commit details
    Browse the repository at this point in the history

Commits on May 3, 2020

  1. Configuration menu
    Copy the full SHA
    990cdbc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b6f9dd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d83d082 View commit details
    Browse the repository at this point in the history
  4. Widget Cleanup

    Removed unused Widget (which is duplicate of DashboardWidget), made DashboardWidget abstract
    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    968ece2 View commit details
    Browse the repository at this point in the history
  5. LoadingModal typing fix

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    bfc6ed2 View commit details
    Browse the repository at this point in the history
  6. Typing fix for status widget

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    28f2341 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    532e866 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c606201 View commit details
    Browse the repository at this point in the history
  9. Update admin's page.tsx

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    a344319 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7756c78 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5a8eb2f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2bf190f View commit details
    Browse the repository at this point in the history
  13. Added Basics page

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    b952f6a View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b7af59f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8e9f006 View commit details
    Browse the repository at this point in the history
  16. Add mail settings page

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    77eefc8 View commit details
    Browse the repository at this point in the history
  17. Added permissions page

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    9a3aec6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e9ad848 View commit details
    Browse the repository at this point in the history
  19. Added Appearance page

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    ea88063 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    8980189 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    6823cdc View commit details
    Browse the repository at this point in the history
  22. Add extensions page

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    c1c2a15 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    5e62512 View commit details
    Browse the repository at this point in the history
  24. Prettifier

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    14ea710 View commit details
    Browse the repository at this point in the history
  25. Removed accidential comment

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    ef9612f View commit details
    Browse the repository at this point in the history
  26. Compile dist

    askvortsov1 authored and dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    df08d17 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8437e44 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    8b4046f View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    717e8aa View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    b00eae1 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    c5f1e30 View commit details
    Browse the repository at this point in the history
  32. common: merge admin & forum Page components

    Now both extend src/common/components/Page.tsx
    Admin component is the exact same as common
    Forum component extends common & adds one line
    dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    bd2850d View commit details
    Browse the repository at this point in the history
  33. forum: move DiscussionList component logic into a custom state class

    Only the state has to be saved to app.cache.discussionList
    Cleans up the component class
    dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    0302a2c View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    b180cd9 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    1d83b74 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    4a5a5a9 View commit details
    Browse the repository at this point in the history
  37. common: use AlertState for Alert component data - pass this to AlertM…

    …anager
    
    app.alerts.show() now can take plain object OR AlertState instance - will return AlertState.prototype.key
    app.alerts.dismiss() takes AlertState or state key (returned by show())
    dsevillamartin committed May 3, 2020
    Configuration menu
    Copy the full SHA
    4c8af1c View commit details
    Browse the repository at this point in the history