Commit Graph

83 Commits

Author SHA1 Message Date
dependabot[bot] 940d9d085c
Bump micromatch from 4.0.5 to 4.0.8 (#70)
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:09 +02:00
Alan Guo Xiang Tan 1edd930d33
DEV: Fix custom_header_links migration to handle blank string (#69)
If the old theme setting value is set to a blank string, we will end up
not migrating it and thus cause an error to be raised.
2024-08-26 14:39:05 +08:00
Sérgio Saquetim 82d5925f31
DEV: Don't use deprecated .topic argument on header outlets (#68) 2024-08-20 22:48:29 -03:00
Discourse Translator Bot 36e116fb80
Update translations (#67) 2024-08-20 17:54:02 +02:00
Sérgio Saquetim ec751e4631
DEV: Remove old header widget code (#66) 2024-08-19 16:35:56 -03:00
Discourse Translator Bot 843a579e86
Update translations (#65) 2024-08-14 08:10:31 +02:00
Natalie Tay 33a51c8471
DEV: Pin theme for Discourse < 3.4.0.beta1-dev (#64) 2024-08-02 17:31:00 +08:00
Discourse Translator Bot 5addd017de
Update translations (#63) 2024-07-09 23:11:58 +02:00
Sérgio Saquetim 85d819109a
DEV: Change license to MIT (#62) 2024-06-19 12:44:06 +10:00
Discourse Translator Bot f804347886
Update translations (#61) 2024-06-18 15:39:20 +02:00
dependabot[bot] c977026ef4
Bump braces from 3.0.2 to 3.0.3 (#60)
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-16 22:33:39 +02:00
Discourse Translator Bot 084492c5ea
Update translations (#59) 2024-06-11 17:23:32 +02:00
Discourse Translator Bot efb6abc279
DEV: Add Crowdin support (#58) 2024-06-11 16:19:13 +02:00
Jarek Radosz fcb3af9c9f
DEV: Add theme name prefix to test names (#57) 2024-06-04 21:44:42 +02:00
Alan Guo Xiang Tan 4cc2a57c21
FIX: Allow title to be blank when migrating `custom_header_links` (#56)
This commit allows setting value of `Link Name, ,/some/path` to be
migrated. This format of the setting was allowed and the current
migration will not migrate the link if the title is empty which isn't
what we want.

Follows-up to 167bc8cee9
2024-04-26 15:46:20 +08:00
Alan Guo Xiang Tan 167bc8cee9
FIX: Ensure that custom header links migration do not fail validation (#55)
This commit is a follow up to 73747938bd
where the migration will fail because the objects created by the
migration will end up failing to save because the objects will fail the
validation given the new schema. This commit updates the migration to
ensure that we do not end up with invalid objects.
2024-04-26 12:57:46 +08:00
Alan Guo Xiang Tan 73747938bd
DEV: Migrate custom header links to new objects setting type (#53)
Why this change?

Since discourse/discourse@a440e15, we have started to support objects typed theme setting so we are switching this theme component to use it instead as it provides a much better UX for configuring the settings required for the theme component.
2024-04-23 11:50:20 +08:00
David Taylor 80f31b9e8e
DEV: Update tests for new glimmer header flag (#54)
In preparation for https://github.com/discourse/discourse/pull/26467
2024-04-04 17:11:57 +01:00
Kelv 0a837d7c04
DEV: add glimmer header context for system spec (#52) 2024-04-02 16:54:24 +08:00
Jarek Radosz 9edef0c5f7
DEV: Update linting (#51) 2024-03-27 16:51:41 +00:00
Alan Guo Xiang Tan 601526cf77
DEV: Move setting translation to locale files instead. (#49)
Why this change?

This is the recommended way to add descriptions for a theme setting as
mixing translation for multiple locales in the settings file is not
recommended per
https://meta.discourse.org/t/add-localizable-strings-to-themes-and-theme-components/109867.
2024-03-13 14:04:03 +08:00
Selase Krakani 191d16cea2
DEV: Pin theme for Discourse < 3.3.0.beta1-dev (#48) 2024-02-29 12:51:14 -07:00
Alan Guo Xiang Tan 5006125483
DEV: Rename `Custom_header_links` settings to `custom_header_links` (#45)
Why this change?

Using uppercase in settings name is not part of our convention so
renaming it here.
2024-01-26 10:15:41 +08:00
David Taylor 916b1ffeff
DEV: Update to support core outletArgs change (#44) 2023-12-08 17:34:37 +00:00
Jarek Radosz 66ee681eff
DEV: Update linting (#43) 2023-11-29 23:05:02 +01:00
dependabot[bot] 06cf2c92ba
Bump @babel/traverse from 7.20.10 to 7.23.2 (#41)
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 18:26:18 +02:00
Alan Guo Xiang Tan f537e66015
DEV: Switch to new API to render into plugin outlet take 2 (#40)
This reverts commit c2c6b9bc37.

Theme compatibility issue has been fixed.
2023-10-18 08:42:29 +08:00
Alan Guo Xiang Tan d3498f70b7
Revert "DEV: Switch to new API to render into plugin outlet (#37)" (#39)
This partially reverts commit 87404864d2.

Compatibility issue is causing the theme to break: https://meta.discourse.org/t/-/282144
2023-10-16 15:23:33 +08:00
Alan Guo Xiang Tan 87404864d2
DEV: Switch to new API to render into plugin outlet (#37)
Why this change?

The renderInOutlet plugin API was introduced in Discourse core which
we will prefer to use going forward.
2023-10-11 11:33:37 +08:00
Kris 9076bf8aae
UX: remove locale from default settings (#38) 2023-09-07 09:43:17 -04:00
Penar Musaraj 061adfe5ae
DEV: Pin theme for Discourse 3.1 stable (#36) 2023-08-22 14:01:30 -05:00
Kris bd0594108a
UX: fix compatibility with discourse-header-search (#35) 2023-08-15 17:55:02 -04:00
Kris 71c9104e48
REFACTOR: move widget to an ember component (#34) 2023-08-03 12:05:58 -04:00
dependabot[bot] c344d0f519
Bump word-wrap from 1.2.3 to 1.2.4 (#33)
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:18:16 +02:00
dependabot[bot] b686f420d6
Bump semver from 6.3.0 to 6.3.1 (#32)
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 10:48:04 +02:00
Arkshine 6bc3216b80
FIX: Links are not displayed if the setting doesn't associate a locale (#31)
Related #30.
Reported here: https://meta.discourse.org/t/missing-custom-header-links-after-update/262594

#### Current behavior
The links are not displayed if a locale is not provided in the setting.

#### Expected behavior
By not associating a locale with a link, the link should be displayed by default regardless of the user's language.
2023-04-24 09:09:35 -05:00
Lena MONTENOT 0661c627cb
Add a locale filter to links (#30)
* Add a locale attribute to custom header links

This attribute is to be set to a language code like 'fr', 'en' or 'de'.

* Filter out links which locale is different from the html document's

* prettier

* more syntax

---------

Co-authored-by: Lena Montenot <lena.montenot@commown.coop>
Co-authored-by: Jordan Vidrine <jordan@jordanvidrine.com>
2023-04-21 08:30:07 -05:00
discoursebot be4c69f8bb
DEV: Update CI workflows (#28)
Co-authored-by: discoursebuild <build@discourse.org>
2023-01-10 19:07:39 +00:00
David Taylor 2d8c2f23c9
DEV: Update eslint-config-discourse, use prettier for hbs (#27) 2023-01-04 13:41:59 +01:00
dependabot[bot] f8eaf939e6
Bump json5 from 2.2.1 to 2.2.2 (#26)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 22:48:46 -05:00
discoursebot 02db92a3cc
DEV: Update CI workflows (#25)
Co-authored-by: discoursebuild <build@discourse.org>
2022-12-30 22:38:38 -05:00
discoursebot dfbe920c33
DEV: Update CI workflows (#24)
Co-authored-by: discoursebuild <build@discourse.org>
2022-11-07 14:18:46 -06:00
Jarek Radosz a594339a5f
DEV: Add CI setup (#23) 2022-06-18 01:33:51 +02:00
dependabot[bot] 7625534d78
Bump async from 2.6.3 to 2.6.4 (#22)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 18:06:01 +02:00
dependabot[bot] 045174d332
Bump ansi-regex from 4.1.0 to 4.1.1 (#21)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-31 11:56:06 +02:00
dependabot[bot] fe0c5e2daa
Bump minimist from 1.2.5 to 1.2.6 (#20)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-31 11:52:33 +02:00
Sam b9c55b68b4
Update README.md 2021-10-25 12:22:40 +11:00
dependabot[bot] 2c6046a0be
Bump path-parse from 1.0.6 to 1.0.7 (#19)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-13 11:45:49 +02:00
dependabot[bot] cdf32cd56a
Bump glob-parent from 5.1.1 to 5.1.2 (#18)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-12 19:48:19 +02:00
awesomerobot 3dae9074dc need import 2021-06-02 16:48:34 -04:00