Commit Graph

553 Commits

Author SHA1 Message Date
Azareal dcc59e7b86 Reduce the number of error checks in the generated router. 2018-08-22 12:29:11 +10:00
Azareal f90fe99fb3 Moved /uploads back into the main router switch.
Added the NoGzip method to RouteImpl.
Added the LitBeforeMultiline method to RouteImpl.
2018-08-22 12:13:17 +10:00
Azareal 8f7cda9378 Don't double-compress avatars.
Gzip is now disabled for static files when the gains don't justify the costs.
Moved StopServerChan and StoppedServer to package common.
Added some disabled profiling code.
2018-08-22 11:32:07 +10:00
Azareal 8f47650b68 Copy this instead so it doesn't interfere with Git. 2018-08-21 18:11:44 +10:00
Azareal 7b8943517b Upped the compression level for static files.
Experimenting with compressing everything.
Fixed the live things.

Playing around with topic buttons in Nox.
2018-08-21 18:00:35 +10:00
Azareal 2e0f2bc7b6 Updated the installation instructions to make them a little friendlier.
Changed the default installation directory to /home/gosora/src/ instead of /home/gosora/
2018-08-20 21:37:04 +10:00
Azareal 7f55429748 Try to cut down on hit and run features. 2018-08-20 18:51:05 +10:00
Azareal d1eb66a464 Remove Docker for now as it might cause problems than it solves. 2018-08-20 18:07:04 +10:00
Azareal bc7982952d Making topics in the Nox Theme mobile friendly. 2018-08-19 16:25:59 +10:00
Azareal 6f5065c854 Almost finished up the buttons on the User Manager for Nox. 2018-08-16 21:16:02 +10:00
Azareal 9e8f455bbb Added resource utilisation data to the Debug Page. 2018-08-16 15:27:26 +10:00
Azareal d8682aca94 Move these header sets to the start of the router. 2018-08-15 18:06:48 +10:00
Azareal 9e374cd7a5 A simple test to see if Gosora builds with the MSSQL Tag. 2018-08-15 17:07:22 +10:00
Azareal 0305571cb3 Eliminated some JS errors for guests on Cosora.
Fixed the build tags for the alt database engines.
Tweaked the quotes on the PgSQL adapter. Still not functional.
Removed the SQLite build tag as it's unlikely that it'll ever be implemented.
2018-08-15 17:02:57 +10:00
Azareal f2b210248a Only load Chartist when we actually have a chart on the page. 2018-08-13 22:37:53 +10:00
Azareal 4c86c0a042 Fixed gzip in /static/
The me endpoint is no longer served for guests.
2018-08-13 22:01:27 +10:00
Azareal 3fc2d6a867 Added the init.js file to make certain bits of JS run sooner than others.
The template_*.js files should get cached now.
The phrase API results might get cached now.
Solved an edge case in the attachment parser where a redirect is triggered on a HTTPS site when the attachment is posted as a HTTP URL.
Fixed runHook in the JS files.
2018-08-13 20:34:00 +10:00
Azareal 317ab8856b Move towards loading the important scripts asynchronously.
Removed the client's reliance on the server's Site.URL setting.
2018-08-13 11:53:16 +10:00
Azareal a9a1d667c0 Added the /api/me/ API endpoint.
Moved a script block into an API endpoint.
Split the gigantic switch in ServeHTTP into it's own function.
Scripts should load more efficiently now.
2018-08-12 01:53:42 +10:00
Azareal 18c5223143 Pin Docker to 1.10 not the patch version, otherwise things could go horribly wrong.
Added the_form to the Page Editor.
Added a phrase for the Menu Editor title rather than reusing the Menu Manager's one.
Replaced a dotted border I missed in Tempra Simple.
Fixed a floater in the User Manager for Shadow.
Tweaked the form CSS for Nox.
Tweaked panel_submitrow in Nox.

Continued work on the User Manager for Nox.
2018-08-11 22:09:26 +10:00
Azareal 06d6715c47 Many HTML / CSS / Template changes.
Added the grid_stat_head CSS class to Panel Debug.
Added the panel_plugin_meta CSS class to the Plugin Manager.
Added some missing panel_right_button classes to the buttons for the rows in the Plugin Manager.
Added some missing the_form CSS classes for Nox.
Added a missing phrase for an update button in panel_themes_menus_items.
Replaced a legacy float: right; in the User Manager with to_right.
Removed some superfluous legacy inline CSS in the User Manager.
Tweaked the amount of padding for the title in the Account Manager for Nox.
Tweaked the amount of padding for the title in the Control Panel for Nox.
Tweaked the padding for panel_right_button for Nox.
Fixed the UI for the Plugin Manager in Nox.
Tweaked the padding for the grid heads in Panel Debug for Nox.

Began work on a nicer looking User Manager in Nox.
2018-08-10 17:58:25 +10:00
Azareal d4db2aa2bb Experimenting with Docker. Doesn't work at the moment. 2018-08-10 17:47:53 +10:00
Azareal 3bb626a294 On second thought, that might fit better in the advanced section. 2018-08-07 15:07:24 +10:00
Azareal 2fa6659db9 And don't forget to update the README. 2018-08-07 14:57:11 +10:00
Azareal a3c5601ac7 Harden things a little more with PrivateDevices and PrivateUsers. Let's hope this doesn't blow up on me. 2018-08-07 14:53:43 +10:00
Azareal f2ecb9dbf7 apng is no longer a valid image format as we don't have the technology to optimise it.
Experimenting with systemd.

Began work on an experimental hook table implementation.
Tweaked some hook implementations to make their behaviour less ambiguous.
2018-08-07 14:14:28 +10:00
Azareal 7a66b73a62 Added QueryGen, RouterGen, Patcher and config.json to .gitignore 2018-08-06 12:48:47 +10:00
Azareal b8681524f3 Added a mitigation for polyglot attacks.
.panel_floater is now floated to the right on Nox.
2018-08-06 12:36:24 +10:00
Azareal 01a692ab5b Added the word filter store and moved the word filter routes into the route package.
Added tests for the word filter store.
Added qgen.NewAcc() to reduce the amount of boilerplate needed for creating an accumulator.
Exposed the RecordError method on the accumulator.
Added an Add method to PluginList and removed AddPlugin() in favour of that.

More panel buttons on Nox should be styled now.
Added the panel_update_button_text phrase for future use.

More errors might be caught in the thumbnailer now.
Removed ls from .travis.yml, it was there for debugging Code Climate.
2018-08-04 21:46:36 +10:00
Azareal 8e81f922ea Added some new test cases to catch more things and to see if the statistics on Code Climate change.
Added more TODO ideas for changes.
Removed an unused field from LanguagePack.
2018-07-31 14:02:09 +10:00
Azareal d0e7b1c982 Apparently, it worked even though it spat out an error /shrug 2018-07-30 19:06:57 +10:00
Azareal 05e916ce2a Fixing up the user dashboard on Tempra Simple.
Missed a spot of CC.
2018-07-30 19:00:41 +10:00
Azareal 73e1f34257 Don't waste time with Code Climate Test Reporter anymore. Removed. 2018-07-30 18:43:48 +10:00
Azareal aefaa5ae1a Try chmod 777, if this doesn't work, I'm not sure what to do about CC tbh 2018-07-30 18:36:58 +10:00
Azareal 71361e3ca0 What is even in this folder at this point of execution 2018-07-30 18:31:13 +10:00
Azareal c5e6f69780 Yeah... I kinda give up 2018-07-30 18:23:39 +10:00
Azareal a1534498cd Grr... 2018-07-30 18:16:30 +10:00
Azareal 2b4ed1d70e Those tests were too thorough, even reaching into sections which aren't quite implemented.
Added new rules for commits which introduced database changes.
2018-07-30 18:09:08 +10:00
Azareal e46e8685a3 An official CC example says this... 2018-07-30 18:02:29 +10:00
Azareal 928121fe7c Bad SO answer, tweaked. 2018-07-30 17:53:11 +10:00
Azareal f55dc5f04f Did Code Climate not have read? 2018-07-30 17:49:27 +10:00
Azareal 91bfd334cc Added the build status to the README, people seem to like these badges, very fashionable. 2018-07-30 16:04:26 +10:00
Azareal 701d3f296b x.x 2018-07-30 14:21:30 +10:00
Azareal c42af97ec3 Let's try a slightly different approach to try to get CC to work 2018-07-30 14:18:36 +10:00
Azareal 26f8c3e50d Make sure gocov is setup on Travis, slightly dated coverage tool, but it seems to be the easiest one to setup. 2018-07-30 14:12:03 +10:00
Azareal 57787f94fa Maybe this? 2018-07-30 14:07:13 +10:00
Azareal 9c9ded171d Comment out some of the tests which aren't really meant to succeed. 2018-07-30 13:57:02 +10:00
Azareal 105448f2ba Experiment with Code Climate on Travis. 2018-07-30 13:48:30 +10:00
Azareal d73ece6445 Start phasing out Tempra Conflux. 2018-07-30 12:51:22 +10:00
Azareal 7691078ce5 Fixed a bug in AddHook where the indices of the hooks would be off by one.
RemoveHook now panics under conditions which should normally never happen, but which when it does, gives off a far more useful message.
Changed the order of the conditional after BypassActive in PluginsDeactivate, so the error message will show up now.
The deactivation handler is optional again for plugins.

Added more tests for the plugin system.
2018-07-29 23:02:48 +10:00