gosora/common
Azareal 3465e4c08f You can now manage the attachments for an opening post by hitting edit.
The update system now uses the database as the source of truth for the last version rather than lastSchema.json
Refactored several structs and bits of code, so we can avoid allocations for contexts where we never use a relative time.
Clicking on the relative times on the topic list and the forum page should now take you to the post on the last page rather than just the last page.
Added the reltime template function.
Fixed some obsolete bits of code.
Fixed some spelling mistakes.
Fixed a bug where MaxBytesReader was capped at the maxFileSize rather than r.ContentLength.
All of the client side templates should work again now.
Shortened some statement names to save some horizontal space.
accUpdateBuilder and SimpleUpdate now use updatePrebuilder behind the scenes to simplify things.
Renamed selectItem to builder in AccSelectBuilder.
Added a Total() method to accCountBuilder to reduce the amount of boilerplate used for row count queries.
The "_builder" strings have been replaced with empty strings to help save memory, to make things slightly faster and to open the door to removing the query name in many contexts down the line.
Added the open_edit and close_edit client hooks.
Removed many query name checks.
Split the attachment logic into separate functions and de-duplicated it between replies and topics.
Improved the UI for editing topics in Nox.
Used type aliases to reduce the amount of boilerplate in tables.go and patches.go
Reduced the amount of boilerplate in the action post logic.
Eliminated a map and a slice in the topic page for users who haven't given any likes. E.g. Guests.
Fixed some long out-dated parts of the update instructions.
Updated the update instructions to remove mention of the obsolete lastSchema.json
Fixed a bug in init.js where /api/me was being loaded for guests.
Added the MiniTopicGet, GlobalCount and CountInTopic methods to AttachmentStore.
Added the MiniAttachment struct.
Split the mod floaters out into their own template to reduce duplication.
Removed a couple of redundant ParseForms.

Added the common.skipUntilIfExistsOrLine function.
Added the NotFoundJS and NotFoundJSQ functions.
Added the lastReplyID and attachCount columns to the topics table.
2018-12-27 15:42:41 +10:00
..
alerts Alerts are now rendered via a client side transpiled template rather than being hard-coded. 2018-05-14 18:56:56 +10:00
counters We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
gauth Added support for two-factor authentication. 2018-06-17 17:28:18 +10:00
phrases Improved the datetimes on the log pages. 2018-12-14 14:08:53 +10:00
templates You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
alerts.go Variables which are computed multiple times in templates should only be computed once now. 2018-11-22 17:21:43 +10:00
attachments.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
audit_logs.go Improved the datetimes on the log pages. 2018-12-14 14:08:53 +10:00
auth.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
cache.go Added support for two-factor authentication. 2018-06-17 17:28:18 +10:00
common.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
email_store.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
email.go Refactored the plugin system to use a hook table. This should help to reduce the probability of data races and strange bugs, as-well as helping to abstract certain details, so future changes are less likely to break things. 2018-10-21 23:54:32 +10:00
errors.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
extend.go Trying to reduce the amount of UserCheck() boilerplate in the routes. 2018-11-12 19:23:36 +10:00
files.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
forum_perms_store.go Fixed a bug where forums inheriting from the group didn't appear on the forum list and the topic list. 2018-11-29 17:27:17 +10:00
forum_perms.go Quasi mod group-forum presets now show up as Custom rather than blank on all themes. 2018-12-03 22:32:46 +10:00
forum_store.go Greatly reduced the number of w.Write calls in the generated templates. 2018-11-20 09:06:15 +10:00
forum.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
group_store.go Greatly reduced the number of w.Write calls in the generated templates. 2018-11-20 09:06:15 +10:00
group.go Greatly reduced the number of w.Write calls in the generated templates. 2018-11-20 09:06:15 +10:00
ip_search.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
menu_item_store.go Added the menu manager and menu item editor. 2018-05-11 15:41:51 +10:00
menu_store.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
menus.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
mfa_store.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
misc_logs.go Added the login log. 2018-12-17 14:58:55 +10:00
module_ottojs.go Added the word filter store and moved the word filter routes into the route package. 2018-08-04 21:46:36 +10:00
no_websockets.go Added more phrases for the notices. 2018-03-21 05:56:33 +00:00
null_topic_cache.go Added support for two-factor authentication. 2018-06-17 17:28:18 +10:00
null_user_cache.go 0.1.0 tag, checkpoint release. 2018-09-19 16:09:03 +10:00
page_store.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
pages.go Added the login log. 2018-12-17 14:58:55 +10:00
parser.go Refactored the plugin system to use a hook table. This should help to reduce the probability of data races and strange bugs, as-well as helping to abstract certain details, so future changes are less likely to break things. 2018-10-21 23:54:32 +10:00
permissions.go Moved the phrase logic to the phrases package. 2018-11-01 16:43:56 +10:00
pluginlangs.go Finished moving the files into the subpackage, this should open more doors to us. 2017-11-11 04:06:16 +00:00
poll_cache.go Almost finished live topic lists, you can find them at /topics/. You can disable them via config.json 2018-06-24 23:49:29 +10:00
poll_store.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
profile_reply_store.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
profile_reply.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
reply_store.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
reply.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
report_store.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
routes_common.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
settings.go The settings should be validated properly now when they're updated. 2018-11-13 16:51:34 +10:00
site.go The time it took for the route to be processed is shown in the footer in the Nox Theme for admins now 2018-11-17 12:36:02 +10:00
statistics.go Added the word filter store and moved the word filter routes into the route package. 2018-08-04 21:46:36 +10:00
subscription.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
tasks.go Variables which are computed multiple times in templates should only be computed once now. 2018-11-22 17:21:43 +10:00
template_init.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
thaw.go Only cache public attachments in the browser and CDNs. 2018-11-20 14:00:32 +10:00
theme_list.go Improved the datetimes on the log pages. 2018-12-14 14:08:53 +10:00
theme.go Added the login log. 2018-12-17 14:58:55 +10:00
thumbnailer.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
topic_cache.go Added support for two-factor authentication. 2018-06-17 17:28:18 +10:00
topic_list.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
topic_store.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
topic.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
user_cache.go 0.1.0 tag, checkpoint release. 2018-09-19 16:09:03 +10:00
user_store.go Move this bit in there too. 2018-12-06 22:16:09 +10:00
user.go Fixed a bug where forums inheriting from the group didn't appear on the forum list and the topic list. 2018-11-29 17:27:17 +10:00
utils.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
websockets.go Moved the phrase logic to the phrases package. 2018-11-01 16:43:56 +10:00
widgets.go Replaced RunThemeTemplate and GetThemeTemplate with methods on *Theme and refactored their implementations to make them more predictable. 2018-12-08 10:45:27 +10:00
word_filters.go We now use Go 1.11 modules. This should help with build times, deployment and development, although it does mean that the minimum requirement for Gosora has been bumped up from Go 1.10 to Go 1.11 2018-10-27 13:40:36 +10:00
ws_hub.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
ws_user.go Try to eliminate some of these debug comments. 2018-09-24 09:42:17 +10:00