gosora/routes
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
..
panel Revamped the IP Search Page for Nox. 2018-12-06 21:09:10 +10:00
account.go Added the login log. 2018-12-17 14:58:55 +10:00
api.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
attachments.go Move ShowAttachment into it's own file. 2018-11-20 14:07:36 +10:00
common.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
forum.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
forum_list.go Trying to reduce the amount of UserCheck() boilerplate in the routes. 2018-11-12 19:23:36 +10:00
misc.go Move ShowAttachment into it's own file. 2018-11-20 14:07:36 +10:00
moderate.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
poll.go Trying to reduce the amount of UserCheck() boilerplate in the routes. 2018-11-12 19:23:36 +10:00
profile.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
reports.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
stubs.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
topic.go You can now manage the attachments for an opening post by hitting edit. 2018-12-27 15:42:41 +10:00
topic_list.go Trying to reduce the amount of UserCheck() boilerplate in the routes. 2018-11-12 19:23:36 +10:00
user.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