Commit Graph

852 Commits

Author SHA1 Message Date
Azareal
3cff453494 push a bit of progress while fixing the tests 2019-10-13 19:07:05 +10:00
Azareal
5404b6fdbe start laying down the skeletons for blocks and friends 2019-10-13 18:50:55 +10:00
Azareal
3472dae669 x.x 2019-10-13 18:26:32 +10:00
Azareal
9b5b1ffc95 make this test more reproducible 2019-10-13 18:22:31 +10:00
Azareal
6147db18dd fix the url parser.
improve the url validator.
add a few more url parser test cases.
2019-10-13 17:32:05 +10:00
Azareal
38bbdfe0c2 Make parsed URLs look a little nicer. 2019-10-13 14:45:15 +10:00
Azareal
df6e268a06 Speed up template compilation by not building the same parse trees multiple times.
Compile panel_debug.
Add the ability to print int8, int16, int32, uint, uint8, uint16, uint32 and uint64 in compiled templates.
Add the ability to pass string nodes to subtemplates in the template compiler.
Fix bunit in the template compiler.

Shorten some things.
2019-10-13 08:49:08 +10:00
Azareal
f76af39a11 Finish playing with panel_debug for now.
Eliminate unnecessary indentation in panel_plugins.

Add panel_debug_subhead template.

Add panel_debug_memory_stats_mcachesys phrase.
Add panel_debug_memory_stats_gcsys phrase.
Add panel_debug_memory_stats_othersys phrase.
Add panel_debug_database_post_analytics phrase.
Add panel_debug_database_topic_analytics phrase.
2019-10-11 19:33:01 +10:00
Azareal
cc986965fb Almost finished adding phrases to panel debug.
Add the panel_debug_memory_stats_mspaninuse phrase.
Add the panel_debug_memory_stats_mcacheinuse phrase.
Add the panel_debug_memory_stats_mspansys phrase.
Add the panel_debug_database_profile_replies phrase.
Add the panel_debug_database_activity_stream phrase.
Add the panel_debug_database_likes phrase.
Add the panel_debug_database_attachments phrase.
Add the panel_debug_database_polls phrase.
Add the panel_debug_database_login_logs phrase.
Add the panel_debug_database_reg_logs phrase.
Add the panel_debug_database_mod_logs phrase.
Add the panel_debug_database_admin_logs phrase.
Add the panel_debug_database_views phrase.
Add the panel_debug_database_views_agents phrase.
Add the panel_debug_database_views_forums phrase.
Add the panel_debug_database_views_langs phrase.
Add the panel_debug_database_views_referrers phrase.
Add the panel_debug_database_views_systems phrase.
Add the panel_debug_disk_static_files phrase.
Add the panel_debug_disk_attachments phrase.
Add the panel_debug_disk_avatars phrase.
Add the panel_debug_disk_log_files phrase.
Add the panel_debug_disk_backups phrase.
Add the panel_debug_disk_git phrase.
2019-10-11 18:45:09 +10:00
Azareal
65b4fef40e WIP Add more language strings for panel debug.
Shorten more things.
Sneak draft tables in.

Add the profile_block phrase.
Add the panel_debug_memory_stats phrase.
Add the panel_debug_memory_stats_sys phrase.
Add the panel_debug_memory_stats_heapsys phrase.
Add the panel_debug_memory_stats_heapalloc phrase.
Add the panel_debug_memory_stats_heapidle phrase.
Add the panel_debug_memory_stats_heapobjects phrase.
Add the panel_debug_memory_stats_stackinuse phrase.
Add the panel_debug_caches phrase.
Add the panel_debug_caches_topic phrase.
Add the panel_debug_caches_user phrase.
Add the panel_debug_caches_reply phrase.
Add the panel_debug_caches_topic_list phrase.
Add the panel_debug_database phrase.
Add the panel_debug_database_topics phrase.
Add the panel_debug_database_users phrase.
Add the panel_debug_database_replies phrase.
Add the panel_debug_disk phrase.
2019-10-11 10:57:33 +10:00
Azareal
8ab9ca3bf0 Oops, we want these in separate repos / folders. 2019-10-11 10:43:06 +10:00
Azareal
dcd4d7d7eb The lang template function now accepts dynamic variables. 2019-10-11 10:36:45 +10:00
Azareal
30de658e15 Experiment with rehoming the plugins.
Shorten more things and eliminate unnecessary bytes.
2019-10-11 10:36:08 +10:00
Azareal
84cd10a8c9 Fix a bug where the convos page would 404.
Friendly message when there are no convos.
Fix the convo input css.
Hide elapsed on mobile for Nox.

Added convos_none phrase.
2019-10-08 07:22:33 +10:00
Azareal
3798838ece Update the group promotion UI.
Invert the direction of the query to make promotions a little less exacting.
Make sure admins can't set the from group as the to group in a group promotion.
Shorten a field name in the word filter manager.

Add panel_group_promotions_level_prefix phrase.
Add panel_group_promotions_posts_prefix phrase.
Add panel_group_promotions_delete_button phrase.
2019-10-07 08:54:09 +10:00
Azareal
2e28ae39f3 Add posts as a criteria for group promotions.
Load the posts column when loading users.
Make DefaultUserStore.Reload a wrapper around DefaultUserStore.BypassGet.
Use the OO style query builder more in common/user.go
GroupPromotions is now bound to an interface rather than the concrete type.
Fix some issues in the GroupPromotionStore interface.
Improve error handling for table creation and reduce boilerplate.
Shorten some more things.

Add panel_group_promotions_posts phrase.

You will need to run the patcher / updater for this commit.
2019-10-07 08:20:37 +10:00
Azareal
a5f77c376b Users can now delete their own posts.
Merge GlobalPerms and LocalPerms phrase spaces into Perms.
Shorten more things and eliminate boilerplate.
2019-10-06 21:32:00 +10:00
Azareal
45a3065db1 Use json marshal for the group permissions in querygen.
Add an omitempty json tag to the Perms struct.
Take the opportunity to shorten some things.
2019-10-06 15:32:08 +10:00
Azareal
8d40139ae5 Tests are green now.
Recognise localhost equivalents in the parser.
Add rel=ugc to the bbcode parser too.
More shortening and boilerplate eliminating.
Fix a potential lock bug.
2019-10-06 11:49:31 +10:00
Azareal
11d1286b56 Save a few allocations in the parser.
Pave the way for rel=ugc support.
2019-10-06 10:55:03 +10:00
Azareal
592f5614ea Tweak this test as it seems to be running into some weird undefined behavior. 2019-10-06 10:43:51 +10:00
Azareal
5705252029 Add UseConvos permission.
Use UseConvos permission instead of ban flags in convo perm checks.
Stop users without the UseConvos permission from editing convo replies, although they can still delete them for privacy reasons.

Shorten some things and reduce the amount of boilerplate.
Add a few misc parser test cases.
Fix footer and tweak indentation.
2019-10-06 10:34:09 +10:00
Azareal
ff48ec9d86 Shortening some things.
Fix the ordering of the lock in WsHubImpl.GuestCount.
2019-10-02 07:06:22 +10:00
Azareal
85b0522955 Missed a spot.
Push more session parameter shortenings.
Remove some unneccesary indentations.
2019-09-30 20:23:59 +10:00
Azareal
764b9904f1 Tighten validation on group promotion delete.
Shorten some variable names.
Reduce the amount of duplication in the panel group routes.
Rename isJs to js here and there.
Localise group promotions.

Phrases:

Rename create_topic_create_topic_button to create_topic_create_button
Rename quick_topic.create_topic_button to quick_topic.create_button
Rename quick_topic.create_topic_button_short to quick_topic.create_button_short
Rename panel_groups_create_create_group_button to panel_groups_create_button
Rename panel_word_filters_create_create_word_filter_button to panel_word_filters_create_button
Rename panel_pages_create_submit_button to panel_pages_create_button
Add panel_group_promotions_create_head
Add panel_group_promotions_from
Add panel_group_promotions_to
Add panel_group_promotions_two_way
Add panel_group_promotions_level
Add panel_group_promotions_create_button
2019-09-30 20:15:50 +10:00
Azareal
69e1e8d364 Almost there. 2019-09-29 17:49:20 +10:00
Azareal
43fa0a5d78 Remove the bit in-front. 2019-09-29 17:44:28 +10:00
Azareal
e03f178b0c Tweaky tweak fun. 2019-09-29 17:40:44 +10:00
Azareal
1285404a93 Let's try a different approach. 2019-09-29 17:34:54 +10:00
Azareal
9859042f54 More fail-safes for weird occurences.
Avoid duplicating logic in the shell files.
2019-09-29 17:06:00 +10:00
Azareal
235b7efa1a How about this. 2019-09-29 16:49:57 +10:00
Azareal
a6cdd49192 Creativity x.x
Remove a really old version of easyjson from go.sum
2019-09-29 16:37:40 +10:00
Azareal
1a7280e1dc Okay, so we need a command there. 2019-09-29 16:18:43 +10:00
Azareal
fba5123a5a Creative continues. 2019-09-29 16:15:16 +10:00
Azareal
eb6e4f37df Let's get creative. 2019-09-29 16:09:05 +10:00
Azareal
293a786fbc Oops. 2019-09-29 16:04:13 +10:00
Azareal
58f95847e9 Try this with Travis. 2019-09-29 15:54:06 +10:00
Azareal
d9c3de63cb Tweak this back. 2019-09-29 15:49:23 +10:00
Azareal
87691013fa Another Travis tweak. 2019-09-29 15:40:17 +10:00
Azareal
ead82dc994 Test Travis change. 2019-09-29 15:35:06 +10:00
Azareal
a9a7501c05 Tighten validation on group promotion create. 2019-09-29 15:25:36 +10:00
Azareal
6efb7e7f28 Missed a spot. 2019-09-29 15:16:07 +10:00
Azareal
3ba977c75e Shorten things. 2019-09-29 15:10:05 +10:00
Azareal
78c5c62eee Basic group promotions.
Add the users_groups_promotions table.
Optimise ConvoViewPage.

Shortened some things.
Convo CSS fixes.
Make sure the user cache is flushed properly after the post stats change.

You will need to run the patcher / updater for this commit.
2019-09-29 14:56:39 +10:00
Azareal
48344ac57d Basic convo css for Cosora. 2019-09-01 12:05:27 +10:00
Azareal
ec22af716e Add a couple of basic convo phrases.
Fix a few bits of convo ui.
2019-09-01 11:58:30 +10:00
Azareal
57712e0cb5 Quick Convo Form.
Be more tolerant of spaces when inputting participant names.
Use a class instead of inline css for the Quick Topic Form Toggle.
2019-09-01 11:37:04 +10:00
Azareal
4e166df3e2 x.x 2019-09-01 09:40:53 +10:00
Azareal
92a8706709 Fix the resources not being invalidated properly.
Tweak the convo list styling.
2019-09-01 09:39:39 +10:00
Azareal
218e177a29 Shorten more things. 2019-09-01 08:59:00 +10:00