DEV: Update linting (#110)
This commit is contained in:
parent
727bd982d5
commit
6a29ef570e
62
Gemfile.lock
62
Gemfile.lock
|
|
@ -1,8 +1,9 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
activesupport (7.2.1.1)
|
||||
activesupport (8.0.1)
|
||||
base64
|
||||
benchmark (>= 0.3)
|
||||
bigdecimal
|
||||
concurrent-ruby (~> 1.0, >= 1.3.1)
|
||||
connection_pool (>= 2.2.5)
|
||||
|
|
@ -12,42 +13,46 @@ GEM
|
|||
minitest (>= 5.1)
|
||||
securerandom (>= 0.3)
|
||||
tzinfo (~> 2.0, >= 2.0.5)
|
||||
uri (>= 0.13.1)
|
||||
ast (2.4.2)
|
||||
base64 (0.2.0)
|
||||
bigdecimal (3.1.8)
|
||||
concurrent-ruby (1.3.4)
|
||||
connection_pool (2.4.1)
|
||||
benchmark (0.4.0)
|
||||
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.7.2)
|
||||
language_server-protocol (3.17.0.3)
|
||||
logger (1.6.1)
|
||||
minitest (5.25.1)
|
||||
json (2.10.1)
|
||||
language_server-protocol (3.17.0.4)
|
||||
lint_roller (1.1.0)
|
||||
logger (1.6.6)
|
||||
minitest (5.25.4)
|
||||
parallel (1.26.3)
|
||||
parser (3.3.5.0)
|
||||
parser (3.3.7.1)
|
||||
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)
|
||||
regexp_parser (2.10.0)
|
||||
rubocop (1.72.2)
|
||||
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.32.3)
|
||||
unicode-display_width (>= 2.4.0, < 4.0)
|
||||
rubocop-ast (1.38.0)
|
||||
parser (>= 3.3.1.0)
|
||||
rubocop-capybara (2.21.0)
|
||||
rubocop (~> 1.41)
|
||||
rubocop-discourse (3.8.2)
|
||||
rubocop-discourse (3.9.3)
|
||||
activesupport (>= 6.1)
|
||||
rubocop (>= 1.59.0)
|
||||
rubocop-capybara (>= 2.0.0)
|
||||
|
|
@ -57,23 +62,28 @@ GEM
|
|||
rubocop-rspec_rails (>= 2.30.0)
|
||||
rubocop-factory_bot (2.26.1)
|
||||
rubocop (~> 1.61)
|
||||
rubocop-rails (2.26.2)
|
||||
rubocop-rails (2.30.1)
|
||||
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.1.0)
|
||||
rubocop (~> 1.61)
|
||||
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.30.0)
|
||||
rubocop (~> 1.61)
|
||||
rubocop-rspec (~> 3, >= 3.0.1)
|
||||
ruby-progressbar (1.13.0)
|
||||
securerandom (0.3.1)
|
||||
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)
|
||||
unicode-display_width (3.1.4)
|
||||
unicode-emoji (~> 4.0, >= 4.0.4)
|
||||
unicode-emoji (4.0.4)
|
||||
uri (1.0.2)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
|
@ -83,4 +93,4 @@ DEPENDENCIES
|
|||
syntax_tree
|
||||
|
||||
BUNDLED WITH
|
||||
2.5.21
|
||||
2.6.4
|
||||
|
|
|
|||
|
|
@ -7,44 +7,54 @@ $padding-basis: 0.75em;
|
|||
}
|
||||
}
|
||||
|
||||
.overlay .d-toc-main {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.d-toc-main {
|
||||
min-width: 6em;
|
||||
max-width: 13em;
|
||||
|
||||
word-wrap: break-word;
|
||||
box-sizing: border-box;
|
||||
|
||||
.overlay & {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 0.15em 0;
|
||||
color: var(--primary-medium);
|
||||
|
||||
&.scroll-to-bottom {
|
||||
padding-left: $padding-basis;
|
||||
}
|
||||
}
|
||||
|
||||
.timeline-toggle {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
#d-toc {
|
||||
border-left: 1px solid var(--primary-low);
|
||||
max-height: calc(100vh - 4.5em - var(--header-offset));
|
||||
overflow: auto;
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li.d-toc-item {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-left: $padding-basis;
|
||||
line-height: var(--line-height-large);
|
||||
|
||||
> ul {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
opacity: 0.5;
|
||||
transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
&.active,
|
||||
.d-toc-wrapper.overlay & {
|
||||
ul {
|
||||
|
|
@ -53,6 +63,7 @@ $padding-basis: 0.75em;
|
|||
opacity: 1;
|
||||
animation: hide-scroll 0.3s backwards;
|
||||
}
|
||||
|
||||
// hides the scrollbar while subsection expands
|
||||
@keyframes hide-scroll {
|
||||
from,
|
||||
|
|
@ -61,13 +72,16 @@ $padding-basis: 0.75em;
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
> a:hover {
|
||||
color: var(--primary-high);
|
||||
}
|
||||
|
||||
&.direct-active > a {
|
||||
position: relative;
|
||||
color: var(--primary);
|
||||
&:before {
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
width: 1px;
|
||||
margin-top: -1px;
|
||||
|
|
@ -80,13 +94,16 @@ $padding-basis: 0.75em;
|
|||
|
||||
> ul > li > ul {
|
||||
font-size: var(--font-down-1);
|
||||
|
||||
> li:first-child {
|
||||
padding-top: 0.25em;
|
||||
}
|
||||
|
||||
> li {
|
||||
padding-bottom: 0.15em;
|
||||
}
|
||||
li.direct-active > a:before {
|
||||
|
||||
li.direct-active > a::before {
|
||||
// it's odd that we need this
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
|
@ -132,16 +149,17 @@ html.rtl SELECTOR {
|
|||
}
|
||||
}
|
||||
}
|
||||
// END active line marker
|
||||
|
||||
// END active line marker
|
||||
.d-toc-mini {
|
||||
height: 100%;
|
||||
|
||||
button {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// overlayed timeline (on mobile and narrow screens)
|
||||
// overlaid timeline (on mobile and narrow screens)
|
||||
.topic-navigation.with-topic-progress {
|
||||
.d-toc-wrapper {
|
||||
position: fixed;
|
||||
|
|
@ -156,18 +174,22 @@ html.rtl SELECTOR {
|
|||
box-shadow: var(--shadow-dropdown);
|
||||
z-index: z("modal", "overlay");
|
||||
transition: all 0.2s ease-in-out;
|
||||
|
||||
.d-toc-main {
|
||||
width: 100%;
|
||||
padding: 0.5em;
|
||||
height: 100%;
|
||||
|
||||
#d-toc {
|
||||
max-height: calc(100% - 3em);
|
||||
}
|
||||
}
|
||||
|
||||
&.overlay {
|
||||
right: 0;
|
||||
width: 75vw;
|
||||
opacity: 1;
|
||||
|
||||
.d-toc-main #d-toc li.d-toc-item ul {
|
||||
transition: none;
|
||||
}
|
||||
|
|
@ -188,7 +210,7 @@ html.rtl SELECTOR {
|
|||
// core sets first child's top margin to 0
|
||||
// ensure it's also 0 when TOC markup is first
|
||||
.cooked > div[data-theme-toc]:first-child + * {
|
||||
margin-top: 0px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
// RTL Support
|
||||
|
|
@ -207,6 +229,7 @@ html.rtl SELECTOR {
|
|||
.topic-navigation.with-topic-progress .d-toc-wrapper {
|
||||
right: unset;
|
||||
left: -100vw;
|
||||
|
||||
&.overlay {
|
||||
right: unset;
|
||||
left: 0;
|
||||
|
|
@ -226,7 +249,8 @@ body.toc-for-replies-enabled .d-editor-preview [data-theme-toc] {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
&:before {
|
||||
|
||||
&::before {
|
||||
content: "#{$composer_toc_text}";
|
||||
}
|
||||
}
|
||||
|
|
@ -236,9 +260,11 @@ body.toc-for-replies-enabled .d-editor-preview [data-theme-toc] {
|
|||
position: sticky;
|
||||
top: calc(var(--header-offset, 60px) + 1em);
|
||||
max-height: calc(100vh - 2em - var(--header-offset, 60px));
|
||||
|
||||
.mobile-view & {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.d-toc-main {
|
||||
display: block;
|
||||
}
|
||||
|
|
@ -256,21 +282,16 @@ body.toc-for-replies-enabled .d-editor-preview [data-theme-toc] {
|
|||
}
|
||||
}
|
||||
|
||||
// toggle in timeline dtoc
|
||||
.d-toc-main {
|
||||
.timeline-toggle {
|
||||
margin-top: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
// jump to bottom in timeline
|
||||
.d-toc-footer-icons {
|
||||
font-size: var(--font-down-1);
|
||||
margin-top: 0.5em;
|
||||
|
||||
button {
|
||||
color: var(--tertiary);
|
||||
|
||||
.d-icon {
|
||||
color: currentColor;
|
||||
color: currentcolor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@discourse/lint-configs": "2.4.0",
|
||||
"@discourse/lint-configs": "2.5.0",
|
||||
"ember-template-lint": "6.1.0",
|
||||
"eslint": "9.19.0",
|
||||
"prettier": "2.8.8"
|
||||
"prettier": "2.8.8",
|
||||
"stylelint": "16.14.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 22",
|
||||
|
|
|
|||
874
pnpm-lock.yaml
874
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