Commit Graph

69 Commits

Author SHA1 Message Date
OsamaSayegh 803787ba74
Revert "Revert "DEV: Migrate custom header links to new objects setting type (#53)""
This reverts commit a178fdd2f7.
2024-04-25 02:03:58 +03:00
OsamaSayegh a178fdd2f7
Revert "DEV: Migrate custom header links to new objects setting type (#53)"
This reverts commit 73747938bd.
2024-04-25 01:56:51 +03: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
awesomerobot 6c59a269f2 DEV: When decorating home-logo, allow target blank 2021-06-02 16:47:29 -04:00
dependabot[bot] 0a67cc44ea
Bump lodash from 4.17.20 to 4.17.21 (#16)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-12 02:05:19 +02:00
dependabot[bot] 6581b6c51d
Bump handlebars from 4.7.6 to 4.7.7 (#15)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 10:49:25 +10:00
dependabot[bot] 777aed770d
Bump y18n from 4.0.0 to 4.0.1 (#14)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 11:30:39 +02:00
tshenry 8194fbe0fc
Update about.json 2021-03-04 16:33:04 -08:00
Penar Musaraj fa44683202
DEV: Use color from CSS custom properties (#12) 2021-02-11 12:22:10 -05:00
Penar Musaraj 7266bd01dd
DEV: Use color from CSS custom properties 2021-02-11 11:55:04 -05:00
Penar Musaraj 10b9eabb28
Use list_type: simple for setting 2020-09-24 15:41:37 -04:00
jjaffeux a22d636551 REFACTOR: new code layout/removes jquery/coding standards 2020-09-23 17:00:33 +02:00
Tosin Sonuyi 41bc9b1ae1
DEV: make class name more unique to prevent collisions (#10)
naming a nav link "Directory" for instance collides with a core css class name
2020-08-04 22:53:27 +08:00
Kris a99331c590 FEATURE: Add setting to show links on the left or right 2019-11-12 15:50:13 -05:00
Joe 175a027582
DEV: improved implementation and bug fixes (#3) 2019-05-04 22:14:27 +08:00
Joe 628a523928 Merge remote-tracking branch 'discourse/master' 2019-05-04 21:05:33 +08:00
Neemias Freitas f26c39a425 Fix header color 2019-05-01 09:28:06 -05:00