Skip to content

Releases: the-turk/flarum-diff

1.0.2

08 Apr 12:15
Compare
Choose a tag to compare
  • Fix duplicated variable definition in DiffList Component.
  • Fix a char-level typo (thanks to @Csineneo).
  • Use static variable scope to store old post's content.
  • Set conflictions.
  • Update dependencies.

1.0.1

29 Mar 16:22
Compare
Choose a tag to compare
  • Fix tooltips won't disappear on Chrome.

1.0.0

28 Mar 20:56
Compare
Choose a tag to compare

You'll lose all of your previous revisions. (Hopefully, for the last time.)

  • Change modal's layout.
    • New layout may not work for some browsers. Click here to see supported ones (including IE10+).
  • Change rollback behaviour.
    • Now they'll be treated as new edits and will not delete other revisions.
  • Drop tabular view because it wasn't fit well into community platforms.
  • Drop renderer selector from the extension's settings.
  • Drop PostWasRollbacked event because we're treating them as formal edits now.
    • Now everyone can use any renderer they wish.
  • Add original post into revision list.
  • Add seperate permissions for rollbacking.
  • Add feature for keeping user's renderer preference.
  • Add some informations about comparisons to make things more clear.
  • Add informative tooltips to make things even more clear.
  • Add preview mode for all revisions.
    • You need to update s9e/text-formatter to v2.3.7 for syntax highlighting in previews (skip this step if you didn't update flarum/core to beta 12 yet).
    composer update s9e/text-formatter:2.3.7
    • It worked well with Flarum's extensions so far but I expect some issues from 3rd parties. Report them and I'll see what I can do. Keep in mind that you always can disable text formatting from extension's settings modal if something breaks your Diff modal but it'll look like a mess for sure.
  • Add multiple archive rows feature.
    • If you hit the MEDIUMBLOB's limit for an archive, it'll automatically create a new archive row for the post and store new revisions there. I don't think you'll ever face with this situation but i did my best to solve this potential issue.
  • Fix the-turk-diff.forum.noDiffs translation key was missing.
  • Fix all renderer-related issues.
  • Fix wrong column types.
  • Add new columns and foreign keys.
  • Make Mobile & Dark Mode UI imporovements.
  • Tidy backend codes and add comments so everyone can understand what I am doing.
  • Update dependencies & README.md

There are new lines & few changes for translators.

Notes:

0.1.0-beta.7

05 Mar 17:35
Compare
Choose a tag to compare

You'll lose all of your previous revisions again.

  • Store revisions as a whole instead of diffs-only.
  • Add archive old revisions option.
    • I decided to use a linear equation (y=mx+b) where the x is post's revision count. If x ≥ A, first y revisions for the post can be stored as merged & compressed BLOB in a new table (which is called post_edit_histories_archive). Float values of y will be rounded to the next lowest integer value. Specify the A, m and b from the settings modal. It's recommended if you want to save storage volume but not recommended if you don't want to.
  • Add cron job option for checking old revisions. (Thus, fof/console is a dependency from now on)
    • I set a weekly cron job which is working on sundays at 02:00 AM (nothing special) using diff:archive command**. If you want to archive old revisions, please consider enabling this option. Otherwise, it'll try to find & archive old revisions for the post as soon as Post\Revised event fires or wait for your php flarum diff:archive command.
  • Add store main post revisions-only option.
  • Add the-turk/flarum-quiet-edits support.
    • Strongly recommended if you want to save even more storage volume.
  • Add lazy-loading to the revisions dropdown.
  • Add rollback feature.
    • Users can rollback to certain revision if they have permission to delete revisions. There is a new event for developers called PostWasRollbacked
  • Add new renderer called Combined
  • Add beta 12 compatibility.
  • Fix some PHP-related warnings.
  • Fix some CSS-related typos in renderers.
  • Fix black borders for the dark mode.
  • Update diff repository to 6.5.1

There are new lines & few changes for translators.

**: Here is the only Cron entry you need to add to your (Linux) server:

* * * * * php /<path/to/flarum>/flarum schedule:run >> /dev/null 2>&1

This Cron will call the Laravel command scheduler every minute. Then, Laravel evaluates your scheduled tasks and runs the tasks that are due.

0.1.0-beta.6

23 Feb 01:12
Compare
Choose a tag to compare
  • Add allow users to switch between renderers feature.
  • Add synchronised scrolling option for side by side renderer's tabular view mode.

0.1.0-beta.5

19 Feb 19:01
Compare
Choose a tag to compare

0.1.0-beta.5

You'll lose all of your previous diffs.

  • Reduce storage volume
  • Add delete revisions feature.
    • Christmas came early. Do not forget to set permissions.
  • Add interchangeable detail level feature.
    • You can immediately change the views of the diffs from one level to another without worrying about previous diffs which were calculated before.
  • Update renderer views & layouts.
  • Fix pluralization for forum.revisionInfo key (thanks to @rob006)
  • Update README.md

0.1.0-beta.4

16 Feb 13:36
a57334b
Compare
Choose a tag to compare
  • Fix users always gets "PermissionDeniedException" when redrawing the post.
  • Fix table headings are missing.
  • Fix typos in translation keys (seperate -> separate).
  • Update php-diff library to 6.4.4

0.1.0-beta.3

13 Feb 02:22
Compare
Choose a tag to compare
  • Update directory structure.

0.1.0-beta.2

13 Feb 01:36
a65e65a
Compare
Choose a tag to compare
  • Fix diff list is not showing up immediately after clicking the "Edited" button.
  • Fix diff list is not showing up on [deleted] user's post.
  • Add store diffs in app.cache on "Edited" button's click event.
  • Add fof/nightmode support.
  • Update dependencies.

0.1.0-beta.1

10 Feb 20:43
Compare
Choose a tag to compare
initial release