Skip to content

Commit 77a8952

Browse files
committed
[qa] Updated prettier and reformatted code
1 parent 902e0c2 commit 77a8952

File tree

7 files changed

+42
-25
lines changed

7 files changed

+42
-25
lines changed

.babelrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"presets": ["@babel/preset-env"],
3-
"plugins": [
4-
"remove-template-literals-whitespace"
5-
]
3+
"plugins": ["remove-template-literals-whitespace"]
64
}

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
uses: actions/setup-python@v5
2727
with:
2828
python-version: 3.12
29-
cache: 'pip'
29+
cache: "pip"
3030
cache-dependency-path: |
3131
**/requirements*.txt
3232
3333
- name: Set up Node.js
3434
uses: actions/setup-node@v4
3535
with:
36-
node-version: '20'
36+
node-version: "20"
3737

3838
- name: Install test dependencies
3939
run: |
@@ -49,15 +49,15 @@ jobs:
4949

5050
- name: Setup Google Cloud
5151
if: ${{ github.event_name=='push' }}
52-
uses: 'google-github-actions/auth@v2'
52+
uses: "google-github-actions/auth@v2"
5353
with:
5454
credentials_json: ${{ secrets.GCS_DOWNLOADS_SERVICE_ACCOUNT_JSON }}
5555
project_id: ${{ secrets.GCS_PROJECT_ID }}
5656
export_environment_variables: true
5757

5858
- name: Set up Cloud SDK
5959
if: ${{ github.event_name=='push' }}
60-
uses: 'google-github-actions/setup-gcloud@v2'
60+
uses: "google-github-actions/setup-gcloud@v2"
6161

6262
- name: Deploy pages to openwisp.org
6363
if: ${{ github.event_name=='push' }}
@@ -86,4 +86,4 @@ jobs:
8686
with:
8787
load_balancer_name: ${{ secrets.GCS_MAIN_LOAD_BALANCER_NAME }}
8888
host: openwisp.org
89-
path: '/*'
89+
path: "/*"

css/theme.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ body {
398398
height: 2.3rem;
399399
width: 2.3rem;
400400
transition-duration: 0.15s;
401-
transition-property: color, background-color, border-color,
402-
text-decoration-color, fill, stroke;
401+
transition-property:
402+
color, background-color, border-color, text-decoration-color, fill, stroke;
403403
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
404404

405405
svg {

js/activity/feed.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,18 @@ function createActivityFeed(options) {
276276
<div class="media mb-0">
277277
<div class="media-left">
278278
<figure class="image is-48x48">
279-
<a href="https://github.com/${field.actor.display_login}" target="_blank">
279+
<a href="https://github.com/${
280+
field.actor.display_login
281+
}" target="_blank">
280282
<img src="${field.actor.avatar_url}" />
281283
</a>
282284
</figure>
283285
</div>
284286
<div class="media-content">
285287
<p class="title is-5 is-size-6-mobile mb-1">
286-
<a href="https://github.com/${field.actor.display_login}" target="_blank">
288+
<a href="https://github.com/${
289+
field.actor.display_login
290+
}" target="_blank">
287291
${field.actor.display_login}
288292
</a>
289293
</p>
@@ -302,7 +306,11 @@ function createActivityFeed(options) {
302306
303307
${link ? "</a>" : ""}
304308
</h3>
305-
${content ? `<div class="mt-3">${sanitizeAndConvertToHtml(content)}</div>` : ""}
309+
${
310+
content
311+
? `<div class="mt-3">${sanitizeAndConvertToHtml(content)}</div>`
312+
: ""
313+
}
306314
</div>
307315
</div>
308316
</div>

theme/static/webfonts/Inter.css

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
11
@font-face {
2-
font-family: 'Inter';
2+
font-family: "Inter";
33
font-style: normal;
44
font-weight: 400;
55
font-display: swap;
66
src: url(../webfonts/Inter/Inter-normal-400);
7-
src: local('Inter'), url(../webfonts/Inter/Inter-normal-400.ttf) format('truetype'), url(../webfonts/Inter/Inter-normal-400.woff2) format('woff2'), url(../webfonts/Inter/Inter-normal-400.woff) format('woff'), url(../webfonts/Inter/Inter-normal-400.svg#Inter) format('svg'), url(../webfonts/Inter/Inter-normal-400?#iefix) format('embedded-opentype');
7+
src:
8+
local("Inter"),
9+
url(../webfonts/Inter/Inter-normal-400.ttf) format("truetype"),
10+
url(../webfonts/Inter/Inter-normal-400.woff2) format("woff2"),
11+
url(../webfonts/Inter/Inter-normal-400.woff) format("woff"),
12+
url(../webfonts/Inter/Inter-normal-400.svg#Inter) format("svg"),
13+
url(../webfonts/Inter/Inter-normal-400?#iefix) format("embedded-opentype");
814
}
915

1016
@font-face {
11-
font-family: 'Inter';
17+
font-family: "Inter";
1218
font-style: normal;
1319
font-weight: 500;
1420
font-display: swap;
15-
src: url(../webfonts/Inter/Inter-normal-500.ttf) format('truetype'), url(../webfonts/Inter/Inter-normal-500.woff2) format('woff2'), url(../webfonts/Inter/Inter-normal-500.woff) format('woff');
21+
src:
22+
url(../webfonts/Inter/Inter-normal-500.ttf) format("truetype"),
23+
url(../webfonts/Inter/Inter-normal-500.woff2) format("woff2"),
24+
url(../webfonts/Inter/Inter-normal-500.woff) format("woff");
1625
}
1726

1827
@font-face {
19-
font-family: 'Inter';
28+
font-family: "Inter";
2029
font-style: normal;
2130
font-weight: 600;
2231
font-display: swap;
23-
src: url(../webfonts/Inter/Inter-normal-600.ttf) format('truetype'), url(../webfonts/Inter/Inter-normal-600.woff2) format('woff2'), url(../webfonts/Inter/Inter-normal-600.woff) format('woff');
32+
src:
33+
url(../webfonts/Inter/Inter-normal-600.ttf) format("truetype"),
34+
url(../webfonts/Inter/Inter-normal-600.woff2) format("woff2"),
35+
url(../webfonts/Inter/Inter-normal-600.woff) format("woff");
2436
}

theme/templates/base.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
title="{{ SITENAME|striptags }} Tags RSS Feed"
9191
/>
9292
{% endif %}
93-
<script src="{{ SITEURL }}/theme/js/dark-theme.min.js?v=1"></script>
93+
<script src="{{ SITEURL }}/theme/js/dark-theme.min.js?v=1"></script>
9494
<meta name="generator" content="Pelican" />
9595
{% endblock head %}
9696
</head>
@@ -210,8 +210,7 @@
210210
class="column is-three-quarters-tablet has-text-right-tablet has-text-centered-mobile text"
211211
>
212212
<p>
213-
&copy; 2008
214-
-
213+
&copy; 2008 -
215214
<script>
216215
document.write(new Date().getFullYear());
217216
</script>

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,9 +2527,9 @@ prettier-plugin-jinja-template@^1.4.1:
25272527
integrity sha512-YHDa/f9BpEDIYIPKsnmoKQudWszXBPaVifjR7X+W2n/uAzWLXV/j9FEvua3np7gkzSEOFyapJQrCS4YhhbhbdA==
25282528

25292529
prettier@^3.3.3:
2530-
version "3.3.3"
2531-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105"
2532-
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==
2530+
version "3.5.3"
2531+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.5.3.tgz#4fc2ce0d657e7a02e602549f053b239cb7dfe1b5"
2532+
integrity sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==
25332533

25342534
pretty-hrtime@^1.0.3:
25352535
version "1.0.3"

0 commit comments

Comments
 (0)