Skip to content

Commit 625fdf5

Browse files
committed
Merge branch 'AaronDewes-update-deps' into master
See #98
2 parents 0008541 + 951c613 commit 625fdf5

21 files changed

+24358
-2620
lines changed

.stylelintrc

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ rules:
1111
selector-list-comma-newline-after: null
1212
value-list-comma-newline-after: null
1313
at-rule-no-unknown: null
14+
# Conflicts with prettier
15+
string-quotes: null

app/locale.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { FluentBundle } from '@fluent/bundle';
1+
import { FluentBundle, FluentResource } from '@fluent/bundle';
22

33
function makeBundle(locale, ftl) {
44
const bundle = new FluentBundle(locale, { useIsolating: false });
5-
bundle.addMessages(ftl);
5+
bundle.addResource(new FluentResource(ftl));
66
return bundle;
77
}
88

@@ -19,7 +19,7 @@ export async function getTranslator(locale) {
1919
return function(id, data) {
2020
for (let bundle of bundles) {
2121
if (bundle.hasMessage(id)) {
22-
return bundle.format(bundle.getMessage(id), data);
22+
return bundle.formatPattern(bundle.getMessage(id).value, data);
2323
}
2424
}
2525
};

app/main.css

+15-26
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ html {
77
@tailwind components;
88

99
:not(input) {
10-
-webkit-user-select: none;
11-
-moz-user-select: none;
12-
-ms-user-select: none;
1310
user-select: none;
1411
}
1512

1613
:root {
1714
--violet-gradient: linear-gradient(
1815
-180deg,
19-
rgba(144, 89, 255, 0.8) 0%,
20-
rgba(144, 89, 255, 0.4) 100%
16+
rgb(144 89 255 / 80%) 0%,
17+
rgb(144 89 255 / 40%) 100%
2118
);
2219
}
2320

@@ -71,7 +68,7 @@ body {
7168

7269
.checkbox > label::before {
7370
/* @apply bg-grey-10; */
74-
@apply border;
71+
@apply border-default;
7572
@apply rounded-sm;
7673

7774
content: '';
@@ -204,32 +201,31 @@ progress::-webkit-progress-value {
204201
background-image: -webkit-linear-gradient(
205202
-45deg,
206203
transparent 20%,
207-
rgba(255, 255, 255, 0.4) 20%,
208-
rgba(255, 255, 255, 0.4) 40%,
204+
rgb(255 255 255 / 40%) 20%,
205+
rgb(255 255 255 / 40%) 40%,
209206
transparent 40%,
210207
transparent 60%,
211-
rgba(255, 255, 255, 0.4) 60%,
212-
rgba(255, 255, 255, 0.4) 80%,
208+
rgb(255 255 255 / 40%) 60%,
209+
rgb(255 255 255 / 40%) 80%,
213210
transparent 80%
214211
),
215212
-webkit-linear-gradient(left, var(--color-primary), var(--color-primary));
216213
/* stylelint-enable */
217214
border-radius: 2px;
218215
background-size: 21px 20px, 100% 100%, 100% 100%;
219-
-webkit-animation: animate-stripes 1s linear infinite;
220216
}
221217

222218
progress::-moz-progress-bar {
223219
/* stylelint-disable */
224220
background-image: -moz-linear-gradient(
225221
135deg,
226222
transparent 20%,
227-
rgba(255, 255, 255, 0.4) 20%,
228-
rgba(255, 255, 255, 0.4) 40%,
223+
rgb(255 255 255 / 40%) 20%,
224+
rgb(255 255 255 / 40%) 40%,
229225
transparent 40%,
230226
transparent 60%,
231-
rgba(255, 255, 255, 0.4) 60%,
232-
rgba(255, 255, 255, 0.4) 80%,
227+
rgb(255 255 255 / 40%) 60%,
228+
rgb(255 255 255 / 40%) 80%,
233229
transparent 80%
234230
),
235231
-moz-linear-gradient(left, var(--color-primary), var(--color-primary));
@@ -239,12 +235,6 @@ progress::-moz-progress-bar {
239235
animation: animate-stripes 1s linear infinite;
240236
}
241237

242-
@-webkit-keyframes animate-stripes {
243-
100% {
244-
background-position: -21px 0;
245-
}
246-
}
247-
248238
@keyframes animate-stripes {
249239
100% {
250240
background-position: -21px 0;
@@ -313,7 +303,7 @@ select {
313303

314304
@screen md {
315305
.main > section {
316-
@apply border;
306+
@apply border-default;
317307
@apply border-grey-80;
318308
}
319309
}
@@ -323,13 +313,12 @@ select {
323313

324314
@responsive {
325315
.shadow-light {
326-
box-shadow: 0 0 8px 0 rgba(12, 12, 13, 0.1);
316+
box-shadow: 0 0 8px 0 rgb(12 12 13 / 10%);
327317
}
328318

329319
.shadow-big {
330-
box-shadow: 0 12px 18px 2px rgba(34, 0, 51, 0.04),
331-
0 6px 22px 4px rgba(7, 48, 114, 0.12),
332-
0 6px 10px -4px rgba(14, 13, 26, 0.12);
320+
box-shadow: 0 12px 18px 2px rgb(34 0 51 / 4%),
321+
0 6px 22px 4px rgb(7 48 114 / 12%), 0 6px 10px -4px rgb(14 13 26 / 12%);
333322
}
334323
}
335324

app/ui/account.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ class Account extends Component {
8383
<input
8484
type="image"
8585
alt="${user.email}"
86-
class="w-8 h-8 rounded-full border text-primary md:text-white focus:outline"
86+
class="w-8 h-8 rounded-full border-default text-primary md:text-white focus:outline"
8787
src="${user.avatar}"
8888
onclick="${e => this.avatarClick(e)}"
8989
/>
9090
<ul
9191
id="accountMenu"
92-
class="invisible absolute top-0 right-0 mt-10 pt-2 pb-2 bg-white shadow-md whitespace-no-wrap outline-none z-50 dark:bg-grey-80"
92+
class="invisible absolute top-0 right-0 mt-10 pt-2 pb-2 bg-white shadow-md whitespace-nowrap outline-none z-50 dark:bg-grey-80"
9393
onblur="${e => this.hideMenu(e)}"
9494
>
9595
<li class="p-2 text-grey-60 dark:text-grey-50">${user.email}</li>

app/ui/archiveTile.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function password(state) {
5353
id="password-input"
5454
class="${state.archive.password
5555
? ''
56-
: 'invisible'} border rounded focus:border-primary leading-normal my-1 py-1 px-2 h-8 dark:bg-grey-80"
56+
: 'invisible'} border-default rounded-default focus:border-primary leading-normal my-1 py-1 px-2 h-8 dark:bg-grey-80"
5757
autocomplete="off"
5858
maxlength="${MAX_LENGTH}"
5959
type="password"
@@ -261,7 +261,7 @@ module.exports = function(state, emit, archive) {
261261
return html`
262262
<send-archive
263263
id="archive-${archive.id}"
264-
class="flex flex-col items-start rounded shadow-light bg-white p-4 w-full dark:bg-grey-90 dark:border dark:border-grey-70"
264+
class="flex flex-col items-start rounded-default shadow-light bg-white p-4 w-full dark:bg-grey-90 dark:border-default dark:border-grey-70"
265265
>
266266
${archiveInfo(
267267
archive,
@@ -335,7 +335,7 @@ module.exports.wip = function(state, emit) {
335335
fileInfo(f, remove(f, state.translate('deleteButtonHover')))
336336
),
337337
'flex-shrink bg-grey-10 rounded-t overflow-y-auto px-6 py-4 md:h-full md:max-h-half-screen dark:bg-black',
338-
'bg-white px-2 my-2 shadow-light rounded dark:bg-grey-90 dark:border dark:border-grey-80'
338+
'bg-white px-2 my-2 shadow-light rounded-default dark:bg-grey-90 dark:border-default dark:border-grey-80'
339339
)}
340340
<div
341341
class="flex-shrink-0 flex-grow flex items-end p-4 bg-grey-10 rounded-b mb-1 font-medium dark:bg-grey-90"
@@ -438,7 +438,7 @@ module.exports.uploading = function(state, emit) {
438438
return html`
439439
<send-upload-area
440440
id="${archive.id}"
441-
class="flex flex-col items-start rounded shadow-light bg-white p-4 w-full dark:bg-grey-90"
441+
class="flex flex-col items-start rounded-default shadow-light bg-white p-4 w-full dark:bg-grey-90"
442442
>
443443
${archiveInfo(archive)}
444444
<div class="text-xs opacity-75 w-full mt-2 mb-2">
@@ -488,7 +488,7 @@ module.exports.empty = function(state, emit) {
488488
`;
489489
return html`
490490
<send-upload-area
491-
class="flex flex-col items-center justify-center border-2 border-dashed border-grey-transparent rounded px-6 py-16 h-full w-full dark:border-grey-60"
491+
class="flex flex-col items-center justify-center border-2 border-dashed border-grey-transparent rounded-default px-6 py-16 h-full w-full dark:border-grey-60"
492492
onclick="${e => {
493493
if (e.target.tagName !== 'LABEL') {
494494
document.getElementById('file-upload').click();
@@ -563,7 +563,7 @@ module.exports.preview = function(state, emit) {
563563
<send-archive
564564
class="flex flex-col max-h-full bg-white p-4 w-full md:w-128 dark:bg-grey-90"
565565
>
566-
<div class="border rounded py-3 px-6 dark:border-grey-70">
566+
<div class="border-default rounded-default py-3 px-6 dark:border-grey-70">
567567
${archiveInfo(archive)} ${details}
568568
</div>
569569
<button
@@ -590,7 +590,7 @@ module.exports.downloading = function(state) {
590590
const progressPercent = percent(progress);
591591
return html`
592592
<send-archive
593-
class="flex flex-col bg-white rounded shadow-light p-4 w-full max-w-sm md:w-128 dark:bg-grey-90"
593+
class="flex flex-col bg-white rounded-default shadow-light p-4 w-full max-w-sm md:w-128 dark:bg-grey-90"
594594
>
595595
${archiveInfo(archive)}
596596
<div class="link-primary text-sm font-medium mt-2">

app/ui/copyDialog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function(name, url) {
2121
<input
2222
type="text"
2323
id="share-url"
24-
class="block w-full my-4 border rounded-lg leading-loose h-12 px-2 py-1 dark:bg-grey-80"
24+
class="block w-full my-4 border-default rounded-lg leading-loose h-12 px-2 py-1 dark:bg-grey-80"
2525
value="${url}"
2626
readonly="true"
2727
/>

app/ui/downloadPassword.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function(state, emit) {
1717
${state.translate('downloadDescription')}
1818
</p>
1919
<form
20-
class="flex flex-row flex-no-wrap w-full md:w-4/5"
20+
class="flex flex-row flex-nowrap w-full md:w-4/5"
2121
onsubmit="${checkPassword}"
2222
data-no-csrf
2323
>

app/ui/noStreams.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ module.exports = function(state, emit) {
1212
'downloadTitle'
1313
)}</h1>
1414
<p
15-
class="w-full p-2 border border-yellow-50 rounded md:w-4/5 text-orange-60 bg-yellow-40 text-center leading-normal"
15+
class="w-full p-2 border-default border-yellow-50 rounded-default md:w-4/5 text-orange-60 bg-yellow-40 text-center leading-normal"
1616
>
1717
⚠️ ${state.translate('noStreamsWarning')} ⚠️
1818
</p>
1919
<form class="md:w-128" onsubmit=${submit}>
20-
<fieldset class="border rounded p-4 my-4" onchange=${optionChanged}>
20+
<fieldset class="border-default rounded-default p-4 my-4" onchange=${optionChanged}>
2121
<div class="flex items-center mb-2">
2222
<svg class="h-8 w-6 mr-3 flex-shrink-0 text-primary">
2323
<use xlink:href="${assets.get('blue_file.svg')}#icon"/>

app/ui/selectbox.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = function(selected, options, translate, changed, htmlId) {
1818
return html`
1919
<select
2020
id="${htmlId}"
21-
class="appearance-none cursor-pointer border rounded bg-grey-10 hover:border-primary focus:border-primary pl-1 pr-8 py-1 my-1 h-8 dark:bg-grey-80"
21+
class="appearance-none cursor-pointer border-default rounded-default bg-grey-10 hover:border-primary focus:border-primary pl-1 pr-8 py-1 my-1 h-8 dark:bg-grey-80"
2222
data-selected="${selected}"
2323
onchange="${choose}"
2424
>

app/ui/shareDialog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = function(name, url) {
1818
<input
1919
type="text"
2020
id="share-url"
21-
class="w-full my-4 border rounded-lg leading-loose h-12 px-2 py-1 dark:bg-grey-80"
21+
class="w-full my-4 border-default rounded-lg leading-loose h-12 px-2 py-1 dark:bg-grey-80"
2222
value="${url}"
2323
readonly="true"
2424
/>

app/ui/signupDialog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = function() {
3535
<input
3636
id="email-input"
3737
type="email"
38-
class="hidden border rounded-lg w-full px-2 py-1 h-12 mb-3 text-lg text-grey-70 leading-loose dark:bg-grey-80 dark:text-white"
38+
class="hidden border-default rounded-lg w-full px-2 py-1 h-12 mb-3 text-lg text-grey-70 leading-loose dark:bg-grey-80 dark:text-white"
3939
placeholder=${state.translate('emailPlaceholder')}
4040
/>
4141
<input

app/ui/unsupported.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = function(state, emit) {
2727
<main class="main">
2828
${state.modal && modal(state, emit)}
2929
<section
30-
class="flex flex-col items-center justify-center text-center bg-white m-6 px-6 py-8 border border-grey-30 md:border-none md:px-12 md:py-16 shadow w-full md:h-full dark:bg-grey-90"
30+
class="flex flex-col items-center justify-center text-center bg-white m-6 px-6 py-8 border-default border-grey-30 md:border-none md:px-12 md:py-16 shadow-default w-full md:h-full dark:bg-grey-90"
3131
>
3232
<h1 class="text-3xl font-bold">${strings.header}</h1>
3333
<p class="mt-4 mb-8 max-w-md leading-normal">${strings.description}</p>

0 commit comments

Comments
 (0)