Commit Graph

364 Commits

Author SHA1 Message Date
Franz Liedke
14eb7c97d0 Only list tags available to current user 2016-04-15 21:01:23 +09:00
Niels Tholenaar
1b23e44b06 Added REST tags endpoint (https://github.com/flarum/core/issues/600) 2016-04-15 09:44:53 +02:00
Toby Zerner
36c4c5d966 Require core v0.1.0-beta.5 2016-03-29 18:50:22 +10:30
Toby Zerner
534a96fb72 Fix checkbox/name/description alignment in tag discussion modal 2016-03-28 11:48:01 +10:30
Franz Liedke
a6ecba220a Do not use model classes in the migrations
See 28f43f805c
2016-03-20 22:48:18 +09:00
Toby Zerner
eb975802ea Remove unmaintained changelog 2016-03-18 09:34:22 +10:30
Toby Zerner
19bf6667f0 Upgrade to flarum-gulp 0.2.0 / Babel 6 2016-03-18 09:34:13 +10:30
Toby Zerner
94cfc5e535 Extend Page component to take advantage of performance boost in flarum/core@d1c436c 2016-03-11 13:21:53 +10:30
Toby Zerner
5ff97f53ff Clean up linting stuff 2016-03-10 17:21:02 +10:30
Franz Liedke
fdcf1f12ad Use new shortcut for default settings migration 2016-03-08 00:04:42 +09:00
Toby Zerner
d5f3987cf7 Fix warning when deleting discussion forever
Related to flarum/core#842
2016-03-03 12:53:31 +10:30
Toby Zerner
287bdf10dd Allow child tags in tile to wrap. fixes flarum/core#613 2016-03-01 16:46:14 +10:30
Franz Liedke
d240d4c0ff Use new shortcuts for migrations 2016-02-29 23:43:24 +09:00
Toby Zerner
ec0054cace Prevent tags from overlapping discussion titles
This gives the tag labels a max-width in the discussion list, and overflows them with a gradient to transparency. (Unfortunately this only works in WebKit for now.) When hovering over them, they slide out to show more.

Fixes flarum/core#702
2016-02-29 19:00:38 +10:30
Toby Zerner
c6f0fc0985 Update MergeableInterface method arguments 2016-02-29 18:50:54 +10:30
Toby Zerner
577e51f7ad Only grant a permission for a sub-tag if that permission is granted for its parent too
Previously if a parent tag was restricted but none of its sub-tags were, the sub-tags would be visible and the parent tag would be loaded in the tag list as a result. This adds permission logic so that sub-tags automatically assume the permissions of their parent as a minimum.

Fixes flarum/core#833
2016-02-27 18:06:59 +10:30
Toby Zerner
746ecac10a Applied fixes from StyleCI 2016-02-25 22:58:13 -05:00
Toby Zerner
5039e30d99 Add StyleCI config 2016-02-26 14:03:08 +10:30
Toby Zerner
f494b8369d Fix color validation regex. closes flarum/core#827 2016-02-26 10:41:19 +10:30
Franz Liedke
ceda88d701 Add another missing copyright header 2016-02-24 23:31:04 +09:00
Franz Liedke
dd92088b5c Use new migration format 2016-02-24 23:14:20 +09:00
Toby Zerner
fb67393f81 Use correct validation rules for description. closes flarum/core#793 2016-02-11 08:59:30 +10:30
Toby Zerner
873b9fd780 Fix Tags page "start a discussion" button having a fixed width in Firefox
Fixes flarum/core#349
2016-02-07 12:10:58 +10:30
jwdeitch
91eb39d615 Update TagValidator.php 2016-01-25 07:58:22 -05:00
jwdeitch
245270e629 Added validation for tags
https://github.com/flarum/core/issues/758
2016-01-24 23:06:57 -05:00
Toby Zerner
155b268319 Add Composer branch-alias
This allows installations to require version 0.1.0 with minimum-stability=dev, and they will get the latest from master.

See flarum/core#727
2016-01-19 17:17:46 +10:30
Toby Zerner
84f869abf2 Commit latest dist files
See https://github.com/flarum/core/issues/727#issuecomment-172384020
2016-01-19 16:53:31 +10:30
Toby Zerner
d1ce9b1fd0 Grant global discussion permissions so that unrestricted tag permissions work
Say you have limited viewing/starting discussions globally to admins, and then have a single tag which allows everyone to view/start discussions. Previously this wouldn't work as expected because the non-admin would be stopped because when the core command checks for the global permission.
2016-01-16 14:06:00 +10:30
Toby Zerner
46c1dbfb2a Sort child tags in tiles 2016-01-06 09:04:04 +10:30
Toby Zerner
169222aa04 Add class when TagHero is colored 2016-01-04 16:57:07 +10:30
Maël Soucaze
f209b25f2c Update year range in LICENSE
Because some changes have been done on that year.
2016-01-02 07:11:25 +01:00
Toby Zerner
290b426bf2 Only allow starting a discussion on a non-restricted tag if the user has the global permission 2016-01-02 14:57:01 +10:30
Toby Zerner
ec5c639bb6 Scroll overflowing tag tile contents
This is just a stopgap fix for flarum/core#653; I would like to revise the tag page layout at some point.
2016-01-02 14:55:48 +10:30
Toby Zerner
6c3cb3f558 Rename package 2015-12-29 12:56:02 +10:30
Franz Liedke
38cf04522e Clean up code 2015-12-11 21:16:38 +01:00
ntaso
1680b1bfe9 Includes primary tag when starting a discussion under secondary tag. Fixes #424. 2015-12-11 17:55:02 +01:00
Toby Zerner
1e6ab2c89d Merge pull request #23 from dbohn/master
Fixing Issue flarum/core#330
2015-11-30 09:12:28 +10:30
David Bohn
5c52f3fae0 Added Change Tags Item to PermissionGrid
Fixed missing bower install and added TODO for translation

Added check to allow edit of tags for author in backend

Fixed code style, added translation key

Extracted tag permissions into method and restored original extension.js

Adressing chaining of policy issue
2015-11-29 23:19:18 +01:00
Toby Zerner
f3a4174780 Truncate long tag names in tag selection modal 2015-11-25 15:45:51 +10:30
Toby Zerner
f199170054 Fix last commit 2015-11-21 15:14:53 +10:30
Toby Zerner
19e40f76fe Properly overflow tag selection input 2015-11-21 15:11:27 +10:30
Toby Zerner
fdd837ae7e Use correct setting keys 2015-11-20 12:38:20 +10:30
Toby Zerner
56460a057f Fix diff link 2015-11-05 16:40:39 +10:30
Toby Zerner
8d6a44ff95 Release v0.1.0-beta.4 2015-11-05 16:36:16 +10:30
Toby Zerner
3cc5be1270 Add back button icon 2015-11-03 15:59:47 +10:30
Toby Zerner
4d558c0b29 Release 0.1.0-beta.3 2015-11-03 10:04:05 +10:30
Toby Zerner
478bfe4b40 Translations are now automatically included 2015-11-02 18:53:14 +10:30
Toby Zerner
d2c96287d4 Update ItemList API 2015-11-01 09:38:54 +10:30
Toby Zerner
42d87d2b48 Add lib translations 2015-10-31 18:20:11 +10:30
Toby Zerner
2c94819144 Reduce length of slug field to prevent error when creating unique index 2015-10-31 18:19:45 +10:30
Toby Zerner
c371fe764b Update API relationship serializer/listener 2015-10-30 11:07:20 +10:30
Toby Zerner
9e725ca48a Recompile JS 2015-10-27 12:40:35 +10:30
Toby Zerner
6dbdd7d657 Recompile JS 2015-10-27 12:17:44 +10:30
Toby Zerner
2b49987ff3 i18n: Use new translation strings
closes flarum/core#527
2015-10-24 12:27:53 +10:30
dcsjapan
2dccb299a0 Reorganize key names
See [flarum/core #265](https://github.com/flarum/core/issues/265).

- Adjusts key names to three-tier namespacing.
- Extracts previously unextracted strings.
- Code fix needed in DiscussionTaggedPost.js before this can be used.
2015-10-23 10:01:44 +09:00
Toby Zerner
117fc7d46b Change app.trans calls to app.translator.trans calls 2015-10-21 10:30:09 +10:30
Toby Zerner
bf04dba33e Enforce unique slugs
closes flarum/core#393
2015-10-19 16:50:19 +10:30
Toby Zerner
244b8fd132 Add Interface suffix to SettingsRepository 2015-10-19 14:59:26 +10:30
Toby Zerner
37fac5a0d4 Update translation IDs 2015-10-16 12:42:40 +10:30
Toby Zerner
76eaf8cb2d Refactor tag sorting algorithm
closes flarum/core#325
2015-10-14 17:04:17 +10:30
Toby Zerner
eb49e1d4e8 Update references to forum. permissions
ref flarum/core#425
2015-10-14 16:12:10 +10:30
Toby Zerner
67c1d79c5c Initialise component state in init() instead of constructor 2015-10-13 16:59:23 +10:30
Toby Zerner
1d5a118951 Update metadata, fix admin settings link 2015-10-12 15:02:11 +10:30
Toby Zerner
5bae959353 Update API, add default translations 2015-10-11 22:23:06 +10:30
Toby Zerner
afc383d443 Fix typos in description 2015-10-11 17:42:41 +10:30
Toby Zerner
d9fde337e3 Rename initializer 2015-10-11 13:01:33 +10:30
Toby Zerner
4a85063702 Move gitignore rules 2015-10-11 11:44:59 +10:30
Toby Zerner
2b85b1bf12 Add more info to composer.json 2015-10-11 11:18:05 +10:30
Toby Zerner
ccc1b02991 Fix migration namespace 2015-10-11 10:04:40 +10:30
Toby Zerner
a351c2ef3c Update APIs, clean up 2015-10-08 23:02:41 +10:30
Toby Zerner
ce0f77d858 Don't require composer installers 2015-10-08 16:54:33 +10:30
Toby Zerner
55c53677e5 Remove unnecessary information from composer.json 2015-10-03 17:36:08 +09:30
Toby Zerner
4b923722be Add vendor prefix to admin JS too 2015-10-03 17:35:55 +09:30
Toby Zerner
d6b829414c Merge branch 'composer' 2015-10-03 17:11:17 +09:30
Toby Zerner
0f57f27685 Add compiled scripts 2015-10-03 16:51:49 +09:30
Toby Zerner
e824f5ebf7 Update for composer branch 2015-10-03 16:51:29 +09:30
Toby Zerner
6bf47adb14 Remove English translations
They're now in flarum/english.
2015-10-03 16:51:05 +09:30
Toby Zerner
9bb30a1cc3 Add vendor to JS namespace 2015-10-03 16:48:37 +09:30
Toby Zerner
5c46e03750 Use new BuildClientView API 2015-10-03 16:44:20 +09:30
Toby Zerner
b9e2f8e660 Fix slug unique rule 2015-09-24 08:45:53 +09:30
Daniel Klabbers
144e9333ea added slug validation 2015-09-23 23:42:12 +02:00
Toby Zerner
fc1580122c Update for discussion list padding change 2015-09-22 19:30:06 +09:30
Toby Zerner
79d664750b Update for hidden discussions feature, new Flags extension 2015-09-22 18:27:02 +09:30
Toby Zerner
1bf1403f82 Add permission grid icon 2015-09-22 18:01:26 +09:30
Toby Zerner
3146e9bc03 SettingsRepository is a default dep for migrations now 2015-09-18 13:30:52 +09:30
Toby Zerner
790bf44a98 Use SettingsModal component 2015-09-18 13:30:21 +09:30
Toby Zerner
023f946720 Add option to set tags as default route 2015-09-17 12:57:47 +09:30
Toby Zerner
f214d32f2f Add gitattributes 2015-09-17 09:08:24 +09:30
Toby Zerner
d6d1fc482d Namespace migrations 2015-09-17 09:08:19 +09:30
Toby Zerner
c762caa921 Give tags item explicit opacity
Since core now makes all DiscussionListItem-info items faded by default.
2015-09-14 15:19:50 +09:30
Franz Liedke
48f232509b Do not extend newly removed class
Related to flarum/core#118.
2015-09-09 09:06:21 +02:00
Toby Zerner
a8e25ac27b Temporary fix for permissions bug
See flarum/core#425
2015-09-04 14:10:12 +09:30
Toby Zerner
61053878d5 Don't use phpcs cache 2015-09-04 12:28:19 +09:30
Toby Zerner
fce9fab67c Rename LICENSE 2015-09-04 12:28:10 +09:30
Toby Zerner
0d56eafcbf Update npm dependency 2015-09-04 12:07:29 +09:30
Toby Zerner
47cc0628f1 Update flarum.json 2015-09-04 11:47:39 +09:30
Toby Zerner
87c24970c6 Add copyright 2015-09-04 11:34:54 +09:30
Toby Zerner
5e725839b0 Scope Report and empty discussion visibility by tag 2015-09-04 11:34:23 +09:30
Toby Zerner
0477cc0346 Use more intuitive permission description 2015-09-04 11:31:27 +09:30
Toby Zerner
b0d94dcb95 Fix JSX linting 2015-09-04 11:30:49 +09:30
Toby Zerner
80e1cd841d Remove redundant options from editorconfig 2015-09-04 11:30:21 +09:30
Toby Zerner
86116c575b Set up phpcs and Travis 2015-09-04 11:29:58 +09:30
Toby Zerner
74f47c58c7 Make sure "restrict by tag" dropdown doesn't go off-screen 2015-08-31 16:13:27 +09:30
Toby Zerner
67f56d44f4 Fix tags not draggable in some instances
closes flarum/core#341
2015-08-31 14:37:08 +09:30
Toby Zerner
6db544abb1 Prevent error when saving tag without isHidden attribute
closes flarum/core#289
2015-08-31 13:54:28 +09:30
Toby Zerner
b286ff82e0 Make "Choose Tags" link translatable
closes flarum/core#345
2015-08-31 10:56:08 +09:30
Toby Zerner
fc2025bf44 Correct translation 2015-08-30 10:09:17 +09:30
Franz Liedke
b290161ef4 Make sure query filter works with database prefix, too.
Related to flarum/core#269.
2015-08-29 23:08:36 +02:00
Franz Liedke
7b24c82f6f Make Tags item translateable 2015-08-29 21:53:37 +02:00
Olivier Barbier
66416bbeb3 Fix last_time type 2015-08-28 16:00:04 +02:00
Toby Zerner
845a8bbcd8 Fix discussion composer not submitting 2015-08-27 23:32:06 +09:30
Toby Zerner
cf6e2dd4ef Show tag selection modal after submitting discussion 2015-08-26 09:34:12 +09:30
Toby Zerner
190714b658 Fix Laravel 5.1 compat 2015-08-18 14:45:38 +09:30
Toby Zerner
025b6f775c Use better selectors for the faded text 2015-08-17 15:44:11 +09:30
Toby Zerner
024349d418 OK, fade out that text a bit 2015-08-17 15:42:04 +09:30
Toby Zerner
1d567ad750 Make tag tile text completely opaque
Setting opacity on Safari makes text unreadable due to weird
antialiasing issues
2015-08-17 15:20:18 +09:30
Toby Zerner
99260f6e0a Support table prefix 2015-08-14 12:56:21 +09:30
Toby Zerner
af3446085c Update migrations, create default tag/settings 2015-08-14 12:56:05 +09:30
Toby Zerner
6255e7c03b New look for Tags page 2015-08-13 12:53:23 +09:30
Toby Zerner
658896eeb1 Add permission setting for editing tags 2015-08-13 12:52:43 +09:30
Toby Zerner
ee87ada0af Allow tags to be hidden from All Discussions 2015-08-13 12:52:20 +09:30
Toby Zerner
19ebd19000 Use new listen API 2015-08-13 12:51:40 +09:30
Toby Zerner
327b65912e Add icon 2015-08-13 12:51:32 +09:30
Toby Zerner
65ba1aa6b3 Include tags last discussion relationship when creating
So that it updates in the client
2015-08-05 19:26:15 +09:30
Toby Zerner
3e6ef151d1 Float tags to the right on the user page as well 2015-08-05 16:08:00 +09:30
Toby Zerner
a042f04fa3 Enforce min/max tag count settings 2015-08-04 13:04:22 +09:30
Toby Zerner
92e9b5b414 Don't uppercase child tags 2015-08-04 10:56:37 +09:30
Toby Zerner
0718d2159e Improve tag tile text contrast 2015-08-04 10:50:07 +09:30
Toby Zerner
f7068cd6d3 Add extension settings shortcut 2015-08-03 12:03:42 +09:30
Toby Zerner
9da35b78a4 Add bower dependency 2015-08-02 17:56:08 +09:30
Toby Zerner
30bfc343ae Add API endpoints and admin page to manage tags 2015-08-02 17:28:36 +09:30
Toby Zerner
d0f9115dea Extend admin permissions page to allow restriction by tag
Also fix a couple of bugs:
- Tag sorting algorithm bug in Safari
- Ensure subtag is removed when parent is removed
2015-07-31 20:19:34 +09:30
Toby Zerner
d63b442227 Add translation for deleted tags 2015-07-29 09:29:50 +09:30
Toby Zerner
5ba4934105 Prevent crash when rendering deleted tag 2015-07-29 09:27:00 +09:30
Toby Zerner
51558e2b3b Change modal dialog title. closes flarum/core#179 2015-07-28 13:35:47 +09:30
Toby Zerner
2bbfc0b25f Fix tag filter 2015-07-27 16:17:07 +09:30
Toby Zerner
8a1e4b2f30 Update gulp module configuration 2015-07-27 14:19:57 +09:30
Toby Zerner
d8cb3c7605 PERF: avoid reinstantiation of event subscribers 2015-07-27 11:54:52 +09:30
Toby Zerner
3192ef4fe3 Make tags look better in dark mode 2015-07-24 10:05:57 +09:30
Toby Zerner
670218d267 Stop propagation when clicking on tag child 2015-07-22 16:01:24 +09:30
Toby Zerner
180b87c71e Update for new extension API; implement i10n 2015-07-22 10:15:25 +09:30
Franz Liedke
b799e3bc69 Change theme color based on tag color 2015-06-27 19:13:21 +02:00
Toby Zerner
7d38f0880e Add title attribute to linked tag labels 2015-06-26 12:22:39 +09:30
Toby Zerner
8ba856df79 Update gambit for search API 2015-06-26 12:22:08 +09:30
Toby Zerner
e41e50f423 Improve appearance of tags page. closes #4 2015-06-25 15:43:24 +09:30
Toby Zerner
0389ea53de Update for discussion controls API 2015-06-25 15:40:15 +09:30
Toby Zerner
7e99bcd555 Update for discussion list refactoring 2015-06-25 08:01:51 +09:30
Toby Zerner
7a75e424d7 Don't need that! 2015-06-24 11:48:22 +09:30
Toby Zerner
1acfb19800 Make stuff responsive. closes #6 2015-06-24 11:48:15 +09:30
Toby Zerner
1ea91dc707 Reduce discussion list padding 2015-06-19 20:57:49 +09:30
Toby Zerner
d0f72fb05d Fix up sorting of children in the tag selection list 2015-06-19 18:19:13 +09:30
Toby Zerner
c04e2e3db2 Show full description in tooltip 2015-06-19 17:48:59 +09:30
Toby Zerner
f519a2740b Bad text! No wrap! 2015-06-19 17:43:54 +09:30
Toby Zerner
537741dd5a Only show tags that exist in the tags label 2015-06-19 17:28:21 +09:30
Toby Zerner
0d1d61922f Reverse tag visibility logic
So that discussions with non-existent tags are still visible
2015-06-19 17:26:46 +09:30
Toby Zerner
6aff8ebca5 Don't color the hero if the tag doesn't have a color 2015-06-19 17:26:01 +09:30
Toby Zerner
82f487c4bb Don't destroy discussion list in case of a redraw 2015-06-19 14:35:01 +09:30
Toby Zerner
b2d2bfa34e Correctly style uncolored tags in discussion hero 2015-06-19 14:22:15 +09:30
Toby Zerner
37c0b91614 Update tag metadata when posts are altered 2015-06-19 11:17:43 +09:30
Toby Zerner
d91f208b1e Don't show tag cloud if empty 2015-06-19 11:17:07 +09:30
Toby Zerner
cf89af4266 Also update tag last discussion info 2015-06-19 09:07:19 +09:30
Toby Zerner
d656d0ddb5 Keep tag discussions_count up-to-date 2015-06-19 08:18:27 +09:30
Toby Zerner
9c047485f0 Add routes to server 2015-06-18 17:44:02 +09:30
Toby Zerner
59736524e0 Update APIs 2015-06-18 12:46:02 +09:30
Toby Zerner
d4f15858ca Use new event name 2015-06-17 12:48:22 +09:30
Toby Zerner
a31582de5a Fix tag tiles border-radius 2015-06-16 21:58:38 +09:30
Toby Zerner
5345a1ef9e Per-tag permissions!
Pretty easy to implement with the groundwork I’ve done for permissions.
(All the logic is in TagsServiceProvider currently)
2015-06-16 21:58:18 +09:30
Toby Zerner
f3f0684eee Add dedicated tags page 2015-06-15 12:21:08 +09:30
Toby Zerner
ed2fb779e6 Allow non-pinned tags to be colored 2015-06-15 12:20:49 +09:30
Toby Zerner
85d7dc8752 Add new fields, include tags on the new forum API action 2015-06-15 12:20:26 +09:30
Toby Zerner
d5b1d3bdb2 Don't show tags label if there are no tags to show 2015-06-15 12:16:41 +09:30
Toby Zerner
bec1f73c36 Add event post when a discussion's tags are changed 2015-06-15 09:00:30 +09:30
Toby Zerner
e3b26b48a9 New tag selection modal when composing a discussion
Also numerous bug fixes. Still WIP
2015-06-12 16:43:41 +09:30
Toby Zerner
c9a03d9d8a Rename extension to Tags. Allow multiple tags per discussion.
WIP!
2015-06-11 18:34:48 +09:30
Toby Zerner
f569d00314 Update manifest. 2015-06-08 15:05:22 +09:30
Toby Zerner
6f50614855 Update manifest. 2015-06-08 14:58:08 +09:30
Toby Zerner
1abc0e2a75 Use new flarum-gulp package. 2015-06-08 14:57:47 +09:30
Toby Zerner
0b12752be3 Make the category in the discussion hero a link 2015-06-03 18:03:16 +09:30
Toby Zerner
39c7dd5165 Sort the categories list in the sidebar correctly 2015-05-30 14:59:14 +09:30
Toby Zerner
45c4cffeea Load category when getting notifications 2015-05-30 13:58:37 +09:30
Toby Zerner
8bb8122283 Update for new post stream 2015-05-29 18:22:36 +09:30
Toby Zerner
6e470b0c43 Compatibility with core skin changes; allow skin to customize labels 2015-05-21 13:11:09 +09:30
Toby Zerner
7ab72a5f28 Fix for new activity API 2015-05-21 06:49:27 +09:30
Toby Zerner
cfb6ad7902 Update for new activity API 2015-05-20 12:31:07 +09:30
Toby Zerner
72a676ddfd Update for new notifications API 2015-05-20 12:30:57 +09:30
Toby Zerner
736824d45c Rename JS sub-components so that descriptors are before the noun, not after 2015-05-18 18:50:50 +09:30
Toby Zerner
c99055c6a3 Rename ActivityPost to EventPost 2015-05-18 18:47:49 +09:30
Toby Zerner
73c101b075 props method just modifies props now, doesn't need to return 2015-05-18 15:28:04 +09:30
Toby Zerner
3936cc4e23 Implement "move" permission 2015-05-18 13:51:58 +09:30
Toby Zerner
6794d8794f Remove unneeded dependency 2015-05-18 10:31:40 +09:30
Toby Zerner
33ba3409d1 Update for new extension API 2015-05-17 10:20:02 +09:30
Toby Zerner
df7552765b Include category in the discussion list request 2015-05-15 17:07:12 +09:30
Toby Zerner
fccb0ad608 Make category label padding adapt to its size 2015-05-14 22:42:07 +09:30
Toby Zerner
11fcfbba58 Update notification architecture 2015-05-14 22:41:51 +09:30
Toby Zerner
32efe11986 Use new discussion request include API 2015-05-14 22:41:37 +09:30
Toby Zerner
bbe863d401 Assume a Flarum\Support\ServiceProvider context in bootstrap.php 2015-05-11 10:42:20 +09:30
Toby Zerner
ce2e90ecf9 Add missing fields to migration. Closes #1 2015-05-11 10:37:02 +09:30
Toby Zerner
9d6c5b9caa Change appearance of category label in discussion hero 2015-05-11 10:35:01 +09:30
Toby Zerner
9705497801 Add license 2015-05-07 22:26:07 +09:30
Toby Zerner
1d450d6695 Show categories in columns in modal 2015-05-07 14:11:00 +09:30