Jarek Radosz
16c0de60f5
DEV: Introduce a service for storing data
2022-10-02 20:47:08 +02:00
Jarek Radosz
61b867aa34
DEV: Remove more code?
2022-10-02 19:19:19 +02:00
Jarek Radosz
09134b9093
DEV: Extract decorate function
2022-10-02 19:03:25 +02:00
Jarek Radosz
3a174ab765
DEV: Move scrollToBottom action
2022-10-02 18:59:54 +02:00
Jarek Radosz
fd9c23b2dc
DEV: Move closeOverlay action
2022-10-02 18:59:53 +02:00
Jarek Radosz
ac61ebb64d
DEV: Move some of the stuff into hbs
2022-10-02 18:59:53 +02:00
Jarek Radosz
651acb075c
DEV: Initial tweaks
2022-10-02 15:21:07 +02:00
Jarek Radosz
157496c452
SECURITY: Render TOC items as plain text
2022-10-01 12:13:59 +02:00
Jordan Vidrine
d6b02afbc2
FIX: Add # to empty hrefs ( #43 )
2022-09-29 12:53:12 -05:00
Joe
58a1400f55
FEATURE: Automatically add TOC based on topic category / tags ( #42 )
...
This PR adds two settings.
One allows admins to select a list of categories that will automatically enable the TOC if the topic category matches.
The other does the same but with tags.
Note that the topic still needs to have the other requirements for TOC, such as having headings. Also, this will still only apply to the first post.
This PR also moves some setting descriptions to the appropriate place.
It also uses `pretender` for the tests instead of generating the fixture manually.
2022-07-26 01:23:19 +08:00
Penar Musaraj
a309e6406d
DEV: Fix compatibility with styleguide ( #38 )
2022-06-13 18:03:39 -04:00
Penar Musaraj
5d69a72200
FIX: Compatibility with discourse-docs plugin ( #37 )
2022-05-09 14:09:59 -04:00
Penar Musaraj
c658e95d54
FIX: Generate unique IDs for non-Latin languages ( #36 )
2022-05-05 14:25:37 -04:00
Penar Musaraj
26f4e45dc2
FIX: Compatibility with loading slider ( #34 )
2022-03-25 14:14:15 -04:00
Penar Musaraj
7bf7b95901
DEV: A few more fixes ( #27 )
...
- fix `Ctrl` + clicking on other links in a page with DiscoTOC
- visually show third level in TOC
- fix overlapping levels for long TOCs
- remove support for h6 headings
2022-01-20 16:14:37 -05:00
Penar Musaraj
ca7fe6b644
DEV: Fix tag name matching ( #26 )
2022-01-20 10:53:40 -05:00
Penar Musaraj
8c33f07dc5
FIX: Switch to a two-level sidebar list ( #25 )
2022-01-19 17:17:30 -05:00
Penar Musaraj
0bc2aa28a3
FIX: Restore support for docs plugin ( #24 )
2022-01-19 12:50:45 -05:00
Penar Musaraj
ff434a4f7b
FIX: Ignore link click counts ( #23 )
2022-01-19 11:53:13 -05:00
Penar Musaraj
aa35509588
FIX: Issue when used with loading slider component ( #22 )
2022-01-19 08:45:58 -05:00
Penar Musaraj
86b9960263
FIX: Allow adding TOC when editing first post ( #20 )
2022-01-18 09:52:51 -05:00
Penar Musaraj
20366c671d
REFACTOR: General component overhaul ( #19 )
2022-01-18 09:18:21 -05:00