DEV: Update linting (#701)
This commit is contained in:
parent
06e0945394
commit
2a97c179c4
90
Gemfile.lock
90
Gemfile.lock
|
|
@ -1,7 +1,7 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
activesupport (8.0.0)
|
||||
activesupport (8.0.2)
|
||||
base64
|
||||
benchmark (>= 0.3)
|
||||
bigdecimal
|
||||
|
|
@ -17,67 +17,77 @@ GEM
|
|||
ast (2.4.2)
|
||||
base64 (0.2.0)
|
||||
benchmark (0.4.0)
|
||||
bigdecimal (3.1.8)
|
||||
concurrent-ruby (1.3.4)
|
||||
connection_pool (2.4.1)
|
||||
bigdecimal (3.1.9)
|
||||
concurrent-ruby (1.3.5)
|
||||
connection_pool (2.5.0)
|
||||
drb (2.2.1)
|
||||
i18n (1.14.6)
|
||||
i18n (1.14.7)
|
||||
concurrent-ruby (~> 1.0)
|
||||
json (2.8.2)
|
||||
language_server-protocol (3.17.0.3)
|
||||
logger (1.6.1)
|
||||
minitest (5.25.1)
|
||||
json (2.10.2)
|
||||
language_server-protocol (3.17.0.4)
|
||||
lint_roller (1.1.0)
|
||||
logger (1.6.6)
|
||||
minitest (5.25.5)
|
||||
parallel (1.26.3)
|
||||
parser (3.3.6.0)
|
||||
parser (3.3.7.1)
|
||||
ast (~> 2.4.1)
|
||||
racc
|
||||
prettier_print (1.2.1)
|
||||
racc (1.8.1)
|
||||
rack (3.1.10)
|
||||
rack (3.1.12)
|
||||
rainbow (3.1.1)
|
||||
regexp_parser (2.9.2)
|
||||
rubocop (1.68.0)
|
||||
regexp_parser (2.10.0)
|
||||
rubocop (1.74.0)
|
||||
json (~> 2.3)
|
||||
language_server-protocol (>= 3.17.0)
|
||||
language_server-protocol (~> 3.17.0.2)
|
||||
lint_roller (~> 1.1.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)
|
||||
regexp_parser (>= 2.9.3, < 3.0)
|
||||
rubocop-ast (>= 1.38.0, < 2.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 2.4.0, < 3.0)
|
||||
rubocop-ast (1.36.1)
|
||||
unicode-display_width (>= 2.4.0, < 4.0)
|
||||
rubocop-ast (1.38.1)
|
||||
parser (>= 3.3.1.0)
|
||||
rubocop-capybara (2.21.0)
|
||||
rubocop (~> 1.41)
|
||||
rubocop-discourse (3.8.6)
|
||||
rubocop-capybara (2.22.1)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop (~> 1.72, >= 1.72.1)
|
||||
rubocop-discourse (3.12.1)
|
||||
activesupport (>= 6.1)
|
||||
rubocop (>= 1.59.0)
|
||||
rubocop-capybara (>= 2.0.0)
|
||||
rubocop-factory_bot (>= 2.0.0)
|
||||
rubocop-rails (>= 2.25.0)
|
||||
lint_roller (>= 1.1.0)
|
||||
rubocop (>= 1.73.2)
|
||||
rubocop-capybara (>= 2.22.0)
|
||||
rubocop-factory_bot (>= 2.27.0)
|
||||
rubocop-rails (>= 2.30.3)
|
||||
rubocop-rspec (>= 3.0.1)
|
||||
rubocop-rspec_rails (>= 2.30.0)
|
||||
rubocop-factory_bot (2.26.1)
|
||||
rubocop (~> 1.61)
|
||||
rubocop-rails (2.27.0)
|
||||
rubocop-rspec_rails (>= 2.31.0)
|
||||
rubocop-factory_bot (2.27.1)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop (~> 1.72, >= 1.72.1)
|
||||
rubocop-rails (2.30.3)
|
||||
activesupport (>= 4.2.0)
|
||||
lint_roller (~> 1.1)
|
||||
rack (>= 1.1)
|
||||
rubocop (>= 1.52.0, < 2.0)
|
||||
rubocop-ast (>= 1.31.1, < 2.0)
|
||||
rubocop-rspec (3.2.0)
|
||||
rubocop (~> 1.61)
|
||||
rubocop-rspec_rails (2.30.0)
|
||||
rubocop (~> 1.61)
|
||||
rubocop-rspec (~> 3, >= 3.0.1)
|
||||
rubocop (>= 1.72.1, < 2.0)
|
||||
rubocop-ast (>= 1.38.0, < 2.0)
|
||||
rubocop-rspec (3.5.0)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop (~> 1.72, >= 1.72.1)
|
||||
rubocop-rspec_rails (2.31.0)
|
||||
lint_roller (~> 1.1)
|
||||
rubocop (~> 1.72, >= 1.72.1)
|
||||
rubocop-rspec (~> 3.5)
|
||||
ruby-progressbar (1.13.0)
|
||||
securerandom (0.3.2)
|
||||
securerandom (0.4.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)
|
||||
uri (1.0.2)
|
||||
unicode-display_width (3.1.4)
|
||||
unicode-emoji (~> 4.0, >= 4.0.4)
|
||||
unicode-emoji (4.0.4)
|
||||
uri (1.0.3)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
|
@ -87,4 +97,4 @@ DEPENDENCIES
|
|||
syntax_tree
|
||||
|
||||
BUNDLED WITH
|
||||
2.5.18
|
||||
2.6.5
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
:root {
|
||||
--calendar-normal: #{dark-light-choose(
|
||||
lighten($tertiary, 55%),
|
||||
darken($tertiary, 25%)
|
||||
color.adjust($tertiary, $lightness: 55%),
|
||||
color.adjust($tertiary, $lightness: -25%)
|
||||
)};
|
||||
--calendar-close-to-working-hours: #{dark-light-choose(
|
||||
desaturate(lighten($tertiary, 45%), 15%),
|
||||
darken($tertiary, 15%)
|
||||
color.adjust(color.adjust($tertiary, $lightness: 45%), $saturation: -15%),
|
||||
color.adjust($tertiary, $lightness: -15%)
|
||||
)};
|
||||
--calendar-in-working-hours: #{dark-light-choose(
|
||||
desaturate(lighten($tertiary, 40%), 20%),
|
||||
darken($tertiary, 10%)
|
||||
color.adjust(color.adjust($tertiary, $lightness: 40%), $saturation: -20%),
|
||||
color.adjust($tertiary, $lightness: -10%)
|
||||
)};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
.fc-scroller {
|
||||
|
|
@ -152,6 +151,7 @@
|
|||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.fc-list-item-add-to-calendar {
|
||||
color: var(--tertiary);
|
||||
font-size: var(--font-down-1);
|
||||
|
|
@ -178,7 +178,9 @@ a.holiday {
|
|||
min-height: 60px;
|
||||
|
||||
.discourse-calendar-timezone-picker {
|
||||
font-size: 16px;
|
||||
margin-bottom: 0;
|
||||
max-width: 50vw;
|
||||
}
|
||||
|
||||
h2.discourse-calendar-title {
|
||||
|
|
@ -191,11 +193,6 @@ a.holiday {
|
|||
}
|
||||
}
|
||||
|
||||
.discourse-calendar-header .discourse-calendar-timezone-picker {
|
||||
max-width: 50vw;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.group-timezones {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
|
|
@ -257,6 +254,7 @@ a.holiday {
|
|||
position: relative;
|
||||
margin: 0.25em 0;
|
||||
margin-right: 0.5em;
|
||||
|
||||
&::before {
|
||||
display: block;
|
||||
content: "";
|
||||
|
|
@ -275,8 +273,7 @@ a.holiday {
|
|||
display: flex;
|
||||
width: 120px;
|
||||
padding: 0.25em;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
outline: none;
|
||||
|
|
@ -379,6 +376,7 @@ a.holiday {
|
|||
opacity: 0.7;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&.on-holiday::after {
|
||||
content: "📅";
|
||||
position: absolute;
|
||||
|
|
@ -412,7 +410,7 @@ a.holiday {
|
|||
box-shadow: var(--shadow-dropdown);
|
||||
border-radius: 4px;
|
||||
padding: 0.5em;
|
||||
max-width: unquote("min(75vw, 400px)");
|
||||
max-width: min(75vw, 400px);
|
||||
|
||||
[data-popper-arrow],
|
||||
[data-popper-arrow]::before {
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@
|
|||
|
||||
.bulk-invite-actions {
|
||||
display: flex;
|
||||
.send-bulk-invites {
|
||||
}
|
||||
|
||||
.add-bulk-invite {
|
||||
margin-left: auto;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
.topic-link {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.event-date {
|
||||
font-size: var(--font-down-4);
|
||||
color: var(--primary-medium);
|
||||
font-weight: normal;
|
||||
padding: 0.25em;
|
||||
}
|
||||
}
|
||||
|
||||
.main-link {
|
||||
|
|
@ -36,12 +43,3 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.header-title {
|
||||
.event-date {
|
||||
font-size: var(--font-down-4);
|
||||
color: var(--primary-medium);
|
||||
font-weight: normal;
|
||||
padding: 0.25em;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,27 +2,33 @@
|
|||
.modal-body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.modal-inner-container {
|
||||
min-width: 350px;
|
||||
}
|
||||
|
||||
.loading-container {
|
||||
height: 40vh;
|
||||
overflow-y: scroll;
|
||||
|
||||
.no-users {
|
||||
text-align: center;
|
||||
font-size: var(--font-up-1);
|
||||
}
|
||||
}
|
||||
|
||||
.invitees-type-filter {
|
||||
margin-bottom: 9px;
|
||||
display: flex;
|
||||
|
||||
.btn {
|
||||
width: calc(100% / 3);
|
||||
margin: 0;
|
||||
border-radius: 0px;
|
||||
padding: 0.75em 0em;
|
||||
border-radius: 0;
|
||||
padding: 0.75em 0;
|
||||
}
|
||||
}
|
||||
|
||||
.filter {
|
||||
width: calc(100% - 2em);
|
||||
margin-bottom: 1em;
|
||||
|
|
@ -52,6 +58,7 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
|
||||
.username {
|
||||
margin-left: 0.5em;
|
||||
text-overflow: ellipsis;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
.discourse-post-event-upcoming-events {
|
||||
height: 100%;
|
||||
|
||||
.upcoming-events-table {
|
||||
width: 100%;
|
||||
|
||||
|
|
|
|||
|
|
@ -371,32 +371,7 @@ $show-interested: inherit;
|
|||
@include ellipsis;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.event-dates {
|
||||
// hardcoded as cooking date is async and will change height after initial rendering otherwise
|
||||
// not ideal but a decent low tech solution
|
||||
height: 24px;
|
||||
|
||||
.participants {
|
||||
margin-left: 0.5em;
|
||||
color: var(--primary-medium);
|
||||
}
|
||||
|
||||
.discourse-local-date {
|
||||
.d-icon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.separator {
|
||||
color: var(--primary-high);
|
||||
margin: 0 0.5em;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.discourse-post-event {
|
||||
.cooked-date,
|
||||
.participants,
|
||||
.event-url .url {
|
||||
|
|
@ -438,3 +413,26 @@ $show-interested: inherit;
|
|||
color: var(--primary-medium);
|
||||
}
|
||||
}
|
||||
|
||||
.event-dates {
|
||||
// hardcoded as cooking date is async and will change height after initial rendering otherwise
|
||||
// not ideal but a decent low tech solution
|
||||
height: 24px;
|
||||
|
||||
.participants {
|
||||
margin-left: 0.5em;
|
||||
color: var(--primary-medium);
|
||||
}
|
||||
|
||||
.discourse-local-date {
|
||||
.d-icon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.separator {
|
||||
color: var(--primary-high);
|
||||
margin: 0 0.5em;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@
|
|||
.combo-box {
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
.selected-name {
|
||||
border: 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@
|
|||
color: var(--primary);
|
||||
text-shadow: none;
|
||||
border: none;
|
||||
|
||||
padding: 6px 12px;
|
||||
|
||||
&:hover {
|
||||
|
|
@ -63,12 +62,12 @@
|
|||
background: var(--tertiary);
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
margin: 0.3em 0 0.3em 0.5em;
|
||||
}
|
||||
|
||||
.fc-button-group {
|
||||
margin: 0.3em 0 0.3em 0.5em;
|
||||
|
||||
// margin-right: 0;
|
||||
.fc-button {
|
||||
margin: 0;
|
||||
|
|
@ -107,7 +106,6 @@
|
|||
}
|
||||
|
||||
&.grouped-event {
|
||||
background-color: none;
|
||||
background: var(--secondary);
|
||||
border: 1px solid var(--primary-low-mid);
|
||||
color: var(--primary);
|
||||
|
|
|
|||
|
|
@ -5,12 +5,15 @@
|
|||
padding: 0.5em;
|
||||
border-radius: var(--d-border-radius);
|
||||
}
|
||||
|
||||
&__event:last-of-type {
|
||||
margin-bottom: 0.75em;
|
||||
}
|
||||
|
||||
&__event:hover {
|
||||
background-color: var(--primary-50);
|
||||
}
|
||||
|
||||
&__event-date {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
|
|
@ -25,22 +28,26 @@
|
|||
flex-direction: column;
|
||||
background-color: var(--secondary);
|
||||
}
|
||||
|
||||
&__event-date .month {
|
||||
text-align: center;
|
||||
color: var(--primary);
|
||||
font-size: var(--font-down-3);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
&__event-date .day {
|
||||
text-align: center;
|
||||
color: var(--primary);
|
||||
font-weight: bold;
|
||||
font-size: var(--font-down-1);
|
||||
}
|
||||
|
||||
&__event-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
&__event-name {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 1;
|
||||
|
|
@ -48,20 +55,24 @@
|
|||
overflow: hidden;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
&__event-time {
|
||||
font-size: var(--font-down-2);
|
||||
font-weight: 400;
|
||||
color: var(--primary-700);
|
||||
}
|
||||
|
||||
&__footer {
|
||||
margin-top: 1em;
|
||||
font-size: var(--font-down-2);
|
||||
line-height: var(--line-height-medium);
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
|
||||
&__footer a {
|
||||
color: var(--primary-high);
|
||||
}
|
||||
|
||||
&__footer a:hover {
|
||||
color: var(--primary);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@
|
|||
table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.fc-list-item-add-to-calendar {
|
||||
float: right;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.fc-list-item:hover td {
|
||||
background: var(--highlight-medium);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
.fc-day-header.fc-widget-header {
|
||||
text-align: center;
|
||||
padding: 0.25em;
|
||||
|
||||
span {
|
||||
font-size: var(--font-down-1);
|
||||
text-align: center;
|
||||
|
|
@ -33,9 +34,11 @@
|
|||
|
||||
.calendar {
|
||||
padding: 0;
|
||||
|
||||
.fc-list-item-add-to-calendar {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.fc-unthemed .fc-header-toolbar {
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@discourse/lint-configs": "2.4.0",
|
||||
"@discourse/lint-configs": "2.7.0",
|
||||
"ember-template-lint": "6.1.0",
|
||||
"eslint": "9.19.0",
|
||||
"prettier": "2.8.8"
|
||||
"eslint": "9.20.1",
|
||||
"prettier": "2.8.8",
|
||||
"stylelint": "16.14.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 22",
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ after_initialize do
|
|||
return if self.is_first_post?
|
||||
|
||||
# Skip if not a calendar topic
|
||||
return if !self&.topic&.first_post&.custom_fields&.[](DiscourseCalendar::CALENDAR_CUSTOM_FIELD)
|
||||
return if !self.topic&.first_post&.custom_fields&.[](DiscourseCalendar::CALENDAR_CUSTOM_FIELD)
|
||||
|
||||
validator = DiscourseCalendar::EventValidator.new(self)
|
||||
validator.validate_event
|
||||
|
|
|
|||
1169
pnpm-lock.yaml
1169
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,3 @@
|
|||
export default {
|
||||
extends: ["@discourse/lint-configs/stylelint"],
|
||||
};
|
||||
Loading…
Reference in New Issue