Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update plugin #2

Open
wants to merge 61 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
363401c
FIX: Dark mode and updated SCSS compiler compatibility (#7)
pmusaraj Feb 2, 2021
394686b
FIX: Typo in color var (#8)
pmusaraj Feb 3, 2021
b25a486
Update about.json
tshenry Mar 5, 2021
6c73722
FEATURE: Optional full bar display on mobile (#10)
pmusaraj May 18, 2021
f43e892
Replace jQuery calls (#11)
pmusaraj May 19, 2021
a60393f
UI: fix desktop top menu alignment issue. (#12)
vinothkannans Jun 4, 2021
1894555
DEV: Add CI setup and fix linting issues (#13)
CvX May 12, 2022
20bd8cb
DEV: Update CI workflows (#14)
discoursebot Jun 17, 2022
7910b11
DEV: Update CI workflows (#15)
discoursebot Nov 7, 2022
7aa2099
DEV: Update CI workflows (#16)
discoursebot Dec 31, 2022
4738131
Bump json5 from 2.2.1 to 2.2.2 (#17)
dependabot[bot] Dec 31, 2022
3d4daf5
DEV: Update eslint-config-discourse, use prettier for hbs (#18)
davidtaylorhq Jan 4, 2023
06308e6
DEV: Update CI workflows (#19)
discoursebot Jan 10, 2023
1bf2cf0
Bump semver from 6.3.0 to 6.3.1 (#21)
dependabot[bot] Jul 12, 2023
b36e2a5
Bump word-wrap from 1.2.3 to 1.2.4 (#22)
dependabot[bot] Jul 19, 2023
92623b3
DEV: refactor, adjust styles, add test (#23)
awesomerobot Aug 4, 2023
ac1b8b8
Revert "DEV: refactor, adjust styles, add test (#23)" (#24)
tshenry Aug 7, 2023
e2cc21b
DEV: refactor, adjust styles, add test, fix issues (#25)
awesomerobot Aug 15, 2023
b4eb482
DEV: Pin theme for Discourse 3.1 stable (#26)
pmusaraj Aug 22, 2023
12e6f76
DEV: move widgets to dedicated files, cleanup (#28)
awesomerobot Sep 22, 2023
865bb33
DEV: Switch to new API to render into plugin outlet
tgxworld Aug 31, 2023
569e8fa
DEV: Fix theme compatibility problem
tgxworld Oct 17, 2023
22e1fc7
Bump @babel/traverse from 7.20.10 to 7.23.2 (#30)
dependabot[bot] Oct 18, 2023
23b5e82
DEV: Add system tests (#31)
tgxworld Oct 19, 2023
35b0c2d
FEATURE: add plugin outlet setting (#32)
awesomerobot Oct 25, 2023
f90a07e
DEV: Pin theme for Discourse < 3.3.0.beta1-dev (#33)
s3lase Feb 29, 2024
4ededa8
DEV: Update for glimmer header (#34)
jancernik Mar 25, 2024
e64cfa5
DEV: Update linting (#35)
CvX Mar 27, 2024
7e304e0
DEV: Migrate icons and links settings to new objects setting type (#36)
tgxworld Apr 24, 2024
f98789d
FIX: Invalid validation key for string type (#37)
tgxworld Apr 24, 2024
e5d3a91
FIX: Client side error when `settings.icons` or `settings.links` is n…
tgxworld Apr 24, 2024
5d9fd02
FIX: Make `links` and `icons` setting migration more resilient (#39)
tgxworld Apr 26, 2024
06d1bf8
DEV: Add theme name prefix to test names (#41)
CvX Jun 4, 2024
9e2ab8b
Update about.json (#42)
JimmyJammyDodger Jun 10, 2024
3acc1a5
DEV: Add Crowdin support (#43)
discourse-translator-bot Jun 11, 2024
1fc15a7
Update translations (#44)
discourse-translator-bot Jun 11, 2024
1f7c093
UX: clarify setting with description (#40)
awesomerobot Jun 12, 2024
952cfed
Bump braces from 3.0.2 to 3.0.3 (#46)
dependabot[bot] Jun 19, 2024
c46f055
Update translations (#47)
discourse-translator-bot Jun 25, 2024
4f3aa60
Move settings descriptions to locales/en.yml (#45)
moin-Jana Jul 3, 2024
3944368
Update translations (#48)
discourse-translator-bot Jul 9, 2024
f458dc9
Update translations (#49)
discourse-translator-bot Jul 16, 2024
9e7c224
FIX: `links` and `icons` theme setting migrations to handle blank str…
tgxworld Aug 1, 2024
30780b2
DEV: Pin theme for Discourse < 3.4.0.beta1-dev (#51)
nattsw Aug 2, 2024
421cc54
Update translations (#52)
discourse-translator-bot Aug 13, 2024
881e98c
Bump micromatch from 4.0.5 to 4.0.8 (#53)
dependabot[bot] Sep 1, 2024
18962bb
UX: hide component on mobile chat pages (#54)
chapoi Oct 7, 2024
4e85bf6
DEV: Switch to use pnpm (#55)
tyb-talks Oct 14, 2024
3427dd8
DEV: Update linting setup (#56)
tyb-talks Oct 17, 2024
82b24cc
DEV: Update the setting descriptions to Font Awesome 6 (#57)
moin-Jana Oct 22, 2024
f204e13
Update translations (#58)
discourse-translator-bot Oct 29, 2024
7e463ba
FEATURE: adds Dark and Light mode for Brand Logo (#59)
dimitrianoudi Nov 15, 2024
557f268
DEV: Update eslint config (#60)
davidtaylorhq Nov 19, 2024
15bf598
Bump cross-spawn from 7.0.3 to 7.0.6 (#61)
dependabot[bot] Nov 19, 2024
e542e39
DEV: Update linting (#62)
davidtaylorhq Nov 20, 2024
9e4e7c5
DEV: Update linting (#63)
davidtaylorhq Nov 28, 2024
02598d0
Update translations (#64)
discourse-translator-bot Dec 4, 2024
3402e1c
DEV: Refactor for readability and add tests for logo display logic (#65)
awesomerobot Dec 12, 2024
2456548
DEV: Pin version for Discourse <3.5.0.beta1-dev (#67)
davidtaylorhq Feb 5, 2025
33dd8ce
DEV: Bump dependencies and fix linting (#68)
davidtaylorhq Feb 6, 2025
6633c36
Bump rack from 3.1.8 to 3.1.10 (#69)
dependabot[bot] Feb 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .discourse-compatibility
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
2.6.0.beta3: 79d57c32d579d85590ef50344edf236cad52f9de
< 3.5.0.beta1-dev: 3402e1c8182fa2d5fed33c8bf4eaea131af4124e
< 3.4.0.beta1-dev: 9e7c22402b8af821e44d1213bebb4e6e75245e1d
< 3.3.0.beta2-dev: e64cfa531121f2cf152901f5b2a20512a5ee2c63
< 3.3.0.beta1-dev: 35b0c2da37318f502bb7069ee8e3565eb3ba5dbf
3.1.999: e2cc21b33261ffeb32030e8ab5ea92775c911fbc
< 3.2.0.beta1-dev: b36e2a5199db23e5f05374640b9690573a08b352
< 3.2.0.beta2: 12e6f76e0508b262517efd5db2d7feca261dff86
2.6.0.beta3: 79d57c32d579d85590ef50344edf236cad52f9de
11 changes: 11 additions & 0 deletions .github/workflows/discourse-theme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Discourse Theme

on:
push:
branches:
- main
pull_request:

jobs:
ci:
uses: discourse/.github/.github/workflows/discourse-theme.yml@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.discourse-site
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict = true
auto-install-peers = false
1 change: 1 addition & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/prettier");
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
inherit_gem:
rubocop-discourse: stree-compat.yml
2 changes: 2 additions & 0 deletions .streerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--print-width=100
--plugins=plugin/trailing_comma,plugin/disable_auto_ternary
1 change: 1 addition & 0 deletions .template-lintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@discourse/lint-configs/template-lint");
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

source "https://rubygems.org"

group :development do
gem "rubocop-discourse"
gem "syntax_tree"
end
87 changes: 87 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (7.2.1.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.8)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
drb (2.2.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
logger (1.6.1)
minitest (5.25.1)
parallel (1.26.3)
parser (3.3.5.0)
ast (~> 2.4.1)
racc
prettier_print (1.2.1)
racc (1.8.1)
rack (3.1.10)
rainbow (3.1.1)
regexp_parser (2.9.2)
rubocop (1.67.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.3)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-discourse (3.8.2)
activesupport (>= 6.1)
rubocop (>= 1.59.0)
rubocop-capybara (>= 2.0.0)
rubocop-factory_bot (>= 2.0.0)
rubocop-rails (>= 2.25.0)
rubocop-rspec (>= 3.0.1)
rubocop-rspec_rails (>= 2.30.0)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-rails (2.26.2)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.52.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (3.1.0)
rubocop (~> 1.61)
rubocop-rspec_rails (2.30.0)
rubocop (~> 1.61)
rubocop-rspec (~> 3, >= 3.0.1)
ruby-progressbar (1.13.0)
securerandom (0.3.1)
syntax_tree (6.2.0)
prettier_print (>= 1.2.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0)

PLATFORMS
arm64-darwin-23
ruby

DEPENDENCIES
rubocop-discourse
syntax_tree

BUNDLED WITH
2.5.21
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Brand header theme component for Discourse
More info at: https://meta.discourse.org/t/brand-header-theme-component/77977
# Brand header theme component for Discourse

More info at: https://meta.discourse.org/t/brand-header-theme-component/77977
12 changes: 6 additions & 6 deletions about.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Brand Header Theme Component",
"about_url": "https://meta.discourse.org/t/brand-header-theme-component/77977",
"license_url": "https://github.com/discourse/discourse-brand-header/blob/master/LICENSE.txt",
"component": true
}
{
"name": "Brand Header",
"component": true,
"about_url": "https://meta.discourse.org/t/brand-header-theme-component/77977",
"license_url": "https://github.com/discourse/discourse-brand-header/blob/main/LICENSE.txt"
}
183 changes: 102 additions & 81 deletions common/common.scss
Original file line number Diff line number Diff line change
@@ -1,81 +1,102 @@
@import "theme_variables";

.b-header {

.contents {
margin: 8px 0;
}

#brand-logo {
max-height: 32px;
}

#brand-text-logo {
line-height: 32px;
margin: 0;
}

nav.links {
float: left;
.rtl & {
float: right;
}
}

.nav-pills {
margin-bottom: 0;
> li > a {
color: $secondary;
line-height: 22px;
&:hover {
color: $quaternary;
background-color: dark-light-diff($quaternary, $tertiary, -70%, 70%);
}
&.active > a, > a.active {
color: $secondary;
background-color: $quaternary;
}
}
}

.panel {
float: right;
position: relative;
.rtl & {
float: left;
}
}

ul.icons {
text-align: center;
margin: 0 0 0 5px;
> li {
float: left;
list-style: none;
}
a, [class^="fa fa-"] {
width: 28px;
height: 28px;
font-size: 16px;
line-height: 28px;
display: inline-block;
margin: 2px;
}
.rtl & {
margin: 0 5px 0 0;
> li {
float: right;
}
}
}

.panel > ul.icons {
float: right;
a, [class^="fa fa-"] {
color: $secondary;
}
.rtl & {
float: left;
}
}
}
.b-header,
.brand-header-contents {
#brand-logo {
max-height: 32px;
}
h2 {
margin: 0;
}
}

.b-header {
width: 100%;
background-color: var(--tertiary);
margin-bottom: 0;

.title {
float: left;
margin-right: 24px;
.rtl & {
margin-left: 24px;
margin-right: 0;
}

a {
color: var(--secondary);
&:visited {
color: var(--secondary);
}
}
}

.wrap {
box-sizing: border-box;
}

.contents {
display: flex;
align-items: center;
box-sizing: border-box;
padding: 8px 0;
}

#brand-text-logo {
margin: 0;
}

nav.links {
min-width: 0;
overflow: hidden;
}

.nav-pills {
margin: 0;

> li > a {
min-width: 0;
color: var(--secondary);
@include ellipsis;
&:hover {
color: var(--quaternary);
background-color: var(--quaternary-low);
}
&.active > a,
> a.active {
color: var(--secondary);
background-color: var(--quaternary);
}
}
}

.panel {
margin: 0 0 0 auto;
.rtl & {
margin: 0 auto 0 0;
}
}

ul.icons {
display: flex;
text-align: center;
margin: 0 0 0 5px;
list-style: none;

li {
margin-left: 0.25em;
}

a {
width: 28px;
height: 28px;
font-size: var(--font-up-1);
margin: 2px;
}
}

.panel > ul.icons {
a,
.d-icon {
color: var(--secondary);
}
}
}
Loading