Skip to content

Commit 4740e28

Browse files
committed
Apply Prettier to the codebase
1 parent 5842619 commit 4740e28

File tree

88 files changed

+1162
-806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1162
-806
lines changed

.changeset/strong-weeks-invent.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@lblod/ember-rdfa-editor-lblod-plugins": patch
3+
---
4+
5+
Apply Prettier to the codebase

.prettierignore

+9
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@
2323
/package.json.ember-try
2424
/package-lock.json.ember-try
2525
/yarn.lock.ember-try
26+
27+
# CI/CD
28+
.changeset/
29+
.github/
30+
.woodpecker/
31+
pnpm-lock.yaml
32+
33+
# Docs
34+
*.md

.release-it.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
"ignoreVersion": true,
1111
"allowSameVersion": true
1212
}
13-
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{{! @glint-nocheck: not typesafe yet }}
22
<div>
33
{{#each this.structureTypes as |structureType|}}
4-
<li class="au-c-list__item">
5-
<AuButton @icon={{this.AddIcon}} @iconAlignment="left" @skin="link" @disabled={{not (this.canInsertStructure structureType)}}
6-
{{on 'click' (fn this.insertStructure structureType)}}>
7-
{{t structureType.translations.insert}}
8-
</AuButton>
9-
</li>
4+
<li class='au-c-list__item'>
5+
<AuButton
6+
@icon={{this.AddIcon}}
7+
@iconAlignment='left'
8+
@skin='link'
9+
@disabled={{not (this.canInsertStructure structureType)}}
10+
{{on 'click' (fn this.insertStructure structureType)}}
11+
>
12+
{{t structureType.translations.insert}}
13+
</AuButton>
14+
</li>
1015
{{/each}}
1116
</div>

addon/components/article-structure-plugin/structure-card.hbs

+50-39
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,43 @@
11
{{! @glint-nocheck: not typesafe yet }}
22
{{#unless this.isOutsideStructure}}
3-
<AuCard @flex={{true}} @divided={{true}} @expandable={{false}} @shadow={{true}} @size="flush" as |c|>
4-
<c.header class="au-u-hidden-visually">
5-
<AuHeading @level="3" @skin="6">{{t "article-structure-plugin.title.structure-card"}}</AuHeading>
3+
<AuCard
4+
@flex={{true}}
5+
@divided={{true}}
6+
@expandable={{false}}
7+
@shadow={{true}}
8+
@size='flush'
9+
as |c|
10+
>
11+
<c.header class='au-u-hidden-visually'>
12+
<AuHeading @level='3' @skin='6'>{{t
13+
'article-structure-plugin.title.structure-card'
14+
}}</AuHeading>
615
</c.header>
7-
<c.content class="au-c-content--small">
8-
<AuList @divider={{true}} class="au-u-padding-top-tiny au-u-padding-bottom-tiny" as |Item|>
16+
<c.content class='au-c-content--small'>
17+
<AuList
18+
@divider={{true}}
19+
class='au-u-padding-top-tiny au-u-padding-bottom-tiny'
20+
as |Item|
21+
>
922
<Item>
1023
<AuButton
1124
@icon={{this.ChevronUpIcon}}
12-
@iconAlignment="left"
13-
@skin="link"
25+
@iconAlignment='left'
26+
@skin='link'
1427
@disabled={{not this.canMoveUp}}
15-
{{on 'click' (fn this.moveStructure 'up')}}>
28+
{{on 'click' (fn this.moveStructure 'up')}}
29+
>
1630
{{t this.currentStructureType.translations.move.up}}
1731
</AuButton>
1832
</Item>
1933
<Item>
2034
<AuButton
2135
@icon={{this.ChevronDownIcon}}
22-
@iconAlignment="left"
23-
@skin="link"
36+
@iconAlignment='left'
37+
@skin='link'
2438
@disabled={{not this.canMoveDown}}
25-
{{on 'click' (fn this.moveStructure 'down')}}>
39+
{{on 'click' (fn this.moveStructure 'down')}}
40+
>
2641
{{t this.currentStructureType.translations.move.down}}
2742
</AuButton>
2843
</Item>
@@ -32,23 +47,20 @@
3247
<:hover as |hover|>
3348
<AuButton
3449
@icon={{this.BinIcon}}
35-
@iconAlignment="left"
36-
@skin="link"
50+
@iconAlignment='left'
51+
@skin='link'
3752
@alert={{true}}
3853
@disabled={{not this.canRemoveStructure}}
39-
aria-describedby="remove-tooltip"
54+
aria-describedby='remove-tooltip'
4055
{{hover.velcroHook}}
4156
{{hover.handleHover}}
42-
{{on 'click' (fn this.removeStructure false)}}>
57+
{{on 'click' (fn this.removeStructure false)}}
58+
>
4359
{{this.remove}}
4460
</AuButton>
4561
</:hover>
4662
<:tooltip as |tooltip|>
47-
<AuPill
48-
id="remove-tooltip"
49-
role="tooltip"
50-
{{tooltip}}
51-
>
63+
<AuPill id='remove-tooltip' role='tooltip' {{tooltip}}>
5264
{{t 'article-structure-plugin.remove.help-text'}}
5365
</AuPill>
5466
</:tooltip>
@@ -57,22 +69,19 @@
5769
<:hover as |hover|>
5870
<AuButton
5971
@icon={{this.BinIcon}}
60-
@iconAlignment="left"
61-
@skin="link"
62-
aria-describedby="remove-content-tooltip"
72+
@iconAlignment='left'
73+
@skin='link'
74+
aria-describedby='remove-content-tooltip'
6375
@alert={{true}}
6476
{{hover.velcroHook}}
6577
{{hover.handleHover}}
66-
{{on 'click' (fn this.removeStructure true)}}>
78+
{{on 'click' (fn this.removeStructure true)}}
79+
>
6780
{{this.removeWithContent}}
6881
</AuButton>
6982
</:hover>
7083
<:tooltip as |tooltip|>
71-
<AuPill
72-
id="remove-content-tooltip"
73-
role="tooltip"
74-
{{tooltip}}
75-
>
84+
<AuPill id='remove-content-tooltip' role='tooltip' {{tooltip}}>
7685
{{t 'article-structure-plugin.remove-with-content.help-text'}}
7786
</AuPill>
7887
</:tooltip>
@@ -81,7 +90,7 @@
8190
</AuButtonGroup>
8291
</Item>
8392
{{#if this.currentStructureType.getStartNumber}}
84-
<Item class="au-u-padding-left-small">
93+
<Item class='au-u-padding-left-small'>
8594
<AuFormRow>
8695
{{#let (unique-id) as |id|}}
8796
<AuLabel for={{id}}>
@@ -90,25 +99,27 @@
9099
<AuInput
91100
id={{id}}
92101
value={{this.startNumberInputValue}}
93-
{{on "change" this.onStartNumberChange}}
94-
placeholder={{t 'article-structure-plugin.start-number.start-number'}}
95-
type="number"
96-
min="1"
102+
{{on 'change' this.onStartNumberChange}}
103+
placeholder={{t
104+
'article-structure-plugin.start-number.start-number'
105+
}}
106+
type='number'
107+
min='1'
97108
/>
98109
{{/let}}
99110
</AuFormRow>
100111
<AuButton
101-
@iconAlignment="left"
102-
class="au-u-margin-top-tiny"
112+
@iconAlignment='left'
113+
class='au-u-margin-top-tiny'
103114
{{on 'click' this.setStructureStartNumber}}
104115
>
105116
{{t 'article-structure-plugin.start-number.set'}}
106117
</AuButton>
107118
<AuButton
108-
@iconAlignment="left"
109-
@skin="secondary"
119+
@iconAlignment='left'
120+
@skin='secondary'
110121
@disabled={{not this.structureStartNumber}}
111-
class="au-u-margin-top-tiny"
122+
class='au-u-margin-top-tiny'
112123
{{on 'click' this.resetStructureStartNumber}}
113124
>
114125
{{t 'article-structure-plugin.start-number.reset'}}

addon/components/besluit-type-plugin/besluit-type-select.hbs

+11-8
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
<PowerSelect
44
@renderInPlace={{true}}
55
@searchEnabled={{true}}
6-
@searchMessage={{t "besluit-type-plugin.search-message"}}
7-
@noMatchesMessage={{t "besluit-type-plugin.no-matches-message"}}
6+
@searchMessage={{t 'besluit-type-plugin.search-message'}}
7+
@noMatchesMessage={{t 'besluit-type-plugin.no-matches-message'}}
88
@search={{this.search}}
99
@options={{this.besluitTypes}}
1010
@selected={{@selected}}
11-
@onChange={{@onchange}} as |besluitType|>
11+
@onChange={{@onchange}}
12+
as |besluitType|
13+
>
1214
{{besluitType.label}}
1315
</PowerSelect>
1416
<p class='au-u-muted au-u-margin-tiny au-u-margin-bottom-small'>
@@ -18,11 +20,12 @@
1820
{{#unless @selected}}
1921
<AuAlert
2022
@icon={{this.AlertTriangleIcon}}
21-
@title={{t "besluit-type-plugin.alert-title"}}
22-
@skin="warning"
23-
@size="small"
24-
class="au-u-margin-bottom-none au-u-margin-top-small">
25-
<p>{{t "besluit-type-plugin.alert-body"}}</p>
23+
@title={{t 'besluit-type-plugin.alert-title'}}
24+
@skin='warning'
25+
@size='small'
26+
class='au-u-margin-bottom-none au-u-margin-top-small'
27+
>
28+
<p>{{t 'besluit-type-plugin.alert-body'}}</p>
2629
</AuAlert>
2730
{{/unless}}
2831
{{/if}}

addon/components/citation-plugin/citation-card.hbs

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
this.documentText
1313
this.documentLegislationType
1414
}}
15-
{{did-update
16-
this.update
17-
this.activeDecoration
18-
}}
15+
{{did-update this.update this.activeDecoration}}
1916
as |c|
2017
>
2118
<c.header>

addon/components/citation-plugin/citation-insert.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{! @glint-nocheck: not typesafe yet }}
2-
<li class="au-c-list__item">
2+
<li class='au-c-list__item'>
33
<AuButton
44
@icon={{this.AddIcon}}
55
@iconAlignment='left'
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{{#if @articles.length}}
2-
<AuList @direction="vertical" @divider={{true}} as |Item|>
2+
<AuList @direction='vertical' @divider={{true}} as |Item|>
33
{{#each @articles as |article|}}
44
<Item>
55
<CitationPlugin::Citations::ArticlePreview
66
@insertArticleCitation={{fn @insertArticleCitation article}}
7-
@article={{article}} />
7+
@article={{article}}
8+
/>
89
</Item>
910
{{/each}}
1011
</AuList>
1112
{{else}}
12-
<Common::Search::AlertNoItems @fullSize={{@fullSize}} class={{if @fullSize "au-u-margin"}}/>
13+
<Common::Search::AlertNoItems
14+
@fullSize={{@fullSize}}
15+
class={{if @fullSize 'au-u-margin'}}
16+
/>
1317
{{/if}}
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
{{! @glint-nocheck: not typesafe yet }}
2-
<div class="au-u-margin" ...attributes>
3-
<AuHeading @level="3" @skin="5" class="au-u-margin-bottom-small">
4-
{{@article.number}} ({{@article.dateInForce}} - {{if @article.dateNoLongerInForce @article.dateNoLongerInForce ""}})
2+
<div class='au-u-margin' ...attributes>
3+
<AuHeading @level='3' @skin='5' class='au-u-margin-bottom-small'>
4+
{{@article.number}}
5+
({{@article.dateInForce}}
6+
-
7+
{{if @article.dateNoLongerInForce @article.dateNoLongerInForce ''}})
58
</AuHeading>
69
<p>
710
{{this.content}}
811
</p>
912
<AuButton
10-
@skin="primary"
13+
@skin='primary'
1114
@icon={{this.PlusTextIcon}}
12-
@iconAlignment="left"
13-
class="au-u-margin-top-small"
14-
{{on "click" @insertArticleCitation}}>
15-
{{t "citaten-plugin.references.refer-article"}}
15+
@iconAlignment='left'
16+
class='au-u-margin-top-small'
17+
{{on 'click' @insertArticleCitation}}
18+
>
19+
{{t 'citaten-plugin.references.refer-article'}}
1620
</AuButton>
1721
</div>

0 commit comments

Comments
 (0)