Commit Graph

126 Commits

Author SHA1 Message Date
Discourse Translator Bot 67de4bd6c2
Update translations (#94) 2024-09-02 18:00:05 +02:00
dependabot[bot] 4951306837
Bump micromatch from 4.0.5 to 4.0.8 (#95)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 12:42:01 +02:00
Sérgio Saquetim 8657f64cdc
DEV: Update heading positions when navigating directly between topics (#92) 2024-08-14 11:52:43 -03:00
Discourse Translator Bot f2b78d45e8
Update translations (#93) 2024-08-14 08:10:40 +02:00
锦心 830c0436c8
FEATURE: Allow TOC for replies (#90)
* FEATURE: Allow TOC for replies

This commit adds an optional setting that allows enabling a TOC for
replies. TOCs for replies are not affected by autoTOC settings like
`auto_TOC_tags` and must be inserted manually.
2024-08-07 15:40:11 +08:00
Natalie Tay 86b378d7ac
DEV: Pin theme for Discourse < 3.4.0.beta1-dev (#91) 2024-08-02 17:27:10 +08:00
dependabot[bot] 51f099289d
Bump braces from 3.0.2 to 3.0.3 (#89)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 11:02:15 +02:00
Discourse Translator Bot 97e1545cfb
Update translations (#88) 2024-06-11 17:20:34 +02:00
Discourse Translator Bot 701e890d09
Update translations (#87) 2024-06-04 21:43:59 +02:00
Discourse Translator Bot 7b309438fe
Update translations (#86) 2024-05-31 12:26:20 +02:00
Discourse Translator Bot d21fdd0623
Update translations (#85) 2024-05-14 16:19:39 +02:00
Jordan Vidrine 016cfcfd7a
DEV: Update toc-timeline.gjs (#84)
Add class to body when d-toc is installed, even when it isnt rendered.
2024-04-23 11:54:56 -05:00
Jarek Radosz 17aa48f5c6
DEV: Update linting (#81) 2024-03-27 16:08:48 +01:00
Osama Sayegh bbb6e77435
UX: Add missing descriptions for settings and remove dead settings (#83)
This commit adds missing descriptions for the `composer_toc_text` and `TOC_min_heading` settings replaces "dead" settings whose only purpose was to add icons to the SVG sprite with the `svg_icons` modifier in the about.json file.
2024-03-27 15:56:09 +03:00
Kris 104dce0440
UX: ignore trust level setting for staff accounts (#82) 2024-03-26 09:48:08 -04:00
Discourse Translator Bot 03dca85fc3
Update translations (#80) 2024-03-05 17:02:42 +01:00
Discourse Translator Bot 1e05432a22
DEV: Add Crowdin support (#79) 2024-02-28 15:17:06 +01:00
Kris 76af241de6
DEV: use more specific selector to avoid flaky test (#78) 2024-02-02 10:41:34 -05:00
Kris efb445714c
DEV: update discourse-compatibility 2024-01-31 11:00:17 -05:00
Kris 826b5fb22a
REFACTOR: convert to ember component, add timeline toggle (#73) 2024-01-31 10:22:06 -05:00
Jarek Radosz f8b8c2b765
DEV: Update linting (#75) 2024-01-16 17:41:09 +01:00
Kris 3179e886a3
REVERT: reverting toggle to do display issues (#72) 2023-12-11 18:39:19 -05:00
Kris fc53d7efa2
FIX: adjust mobile specificity (#71)
* FIX: adjust mobile specificity

* prettier
2023-12-12 09:48:17 +11:00
Kris 04acc4bb30
FIX: only add classes if TOC is present (#70) 2023-12-11 16:17:46 -05:00
Kris a089aa0289
FEATURE: Toggle between timeline and TOC (#68) 2023-12-11 12:53:17 -05:00
Jarek Radosz bab2e8f3b9
DEV: Update linting setup (#69) 2023-11-19 22:43:47 +01:00
Kris a807ff3546
Revert "FEATURE: Toggle between timeline and TOC (#64)" (#67)
This reverts commit 7c19d41864.
2023-10-25 12:18:36 -04:00
Kris 7c19d41864
FEATURE: Toggle between timeline and TOC (#64) 2023-10-25 12:08:24 -04:00
Alan Guo Xiang Tan f2f309b552
DEV: Switch to new addComposerToolbarPopupMenuOption plugin API (#65)
Why this change?

`api.addToolbarPopupMenuOptionsCallback` has been deprecated in 913fd3a7b3
2023-10-23 08:09:06 +08:00
dependabot[bot] 0f2a0e73e6
Bump @babel/traverse from 7.20.10 to 7.23.2 (#63)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.10 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 12:34:10 -04:00
Alan Guo Xiang Tan 04577e0b90
Revert "DEV: Switch theme to use new `addComposerToolbarPopupMenuOpti… (#62)
This reverts commit d59dc7caf4.

We have compatibility problems with themes and core right now: https://meta.discourse.org/t/-/282315/7
2023-10-16 15:23:04 +08:00
Alan Guo Xiang Tan d59dc7caf4
DEV: Switch theme to use new `addComposerToolbarPopupMenuOption` api (#61)
Why this change?

The new API is better and allows us to avoid modifying the composer
service.
2023-10-06 09:20:09 +08:00
David Taylor 566d79fa39
FIX: Restore wrapper element for d-toc-mini (#60) 2023-10-04 12:45:22 +01:00
Alan Guo Xiang Tan 4ae24c6edc
DEV: Convert connector file to use glimmer component (#59)
Why this change?

We've established internally that this is the better way to do things
2023-10-04 16:02:30 +08:00
Penar Musaraj e452c049ae
DEV: Pin theme for Discourse 3.1 stable (#58) 2023-08-22 15:32:52 -04:00
dependabot[bot] 323bd485b0
Bump word-wrap from 1.2.3 to 1.2.4 (#57)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 10:55:32 +02:00
dependabot[bot] 6c75554fca
Bump word-wrap from 1.2.3 to 1.2.4 (#57)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 10:23:21 +02:00
dependabot[bot] 6894db06b1
Bump semver from 6.3.0 to 6.3.1 (#56)
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 11:18:40 +02:00
Kris 25cb5954f6
DEV: update box-shadow due to core change (#55) 2023-06-14 09:00:18 -04:00
Canapin ea7f8791ab
UX: fix TOC header in composer preview (#54) 2023-03-11 11:23:42 +01:00
discoursebot c00cbb02fc
DEV: Update CI workflows (#52)
Co-authored-by: discoursebuild <build@discourse.org>
2023-01-10 19:10:08 +00:00
David Taylor 165cfa13f3
DEV: Update eslint-config-discourse, use prettier for hbs (#49) 2023-01-04 13:41:09 +01:00
Penar Musaraj ed6634f6a4
DEV: Fix tests (#51)
Core now needs tests to set a default composer category.
2023-01-02 11:07:50 +01:00
discoursebot 77380c93d8
DEV: Update CI workflows (#48)
Co-authored-by: discoursebuild <build@discourse.org>
2022-11-07 14:17:13 -06:00
Vinoth Kannan 55f83a913c
FEATURE: new theme setting to disable TOC in posts with less headings. (#47)
The theme setting `TOC_min_heading` will decide whether the TOC should display or not based on the number of headings available in the post.
2022-11-04 09:41:16 +05:30
Penar Musaraj 1d3b28355c
Fix a typo (#46) 2022-10-12 08:47:32 -04:00
Jarek Radosz f80c215a28
SECURITY: Render TOC items as plain text (#44) 2022-10-03 21:10:05 +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
discoursebot 3343c6b19f
DEV: Update CI workflows (#41)
Co-authored-by: discoursebuild <build@discourse.org>
2022-06-17 22:23:35 +02:00