aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/upload.js2
-rw-r--r--src/routes/[username]/settings/+page.svelte2
-rw-r--r--src/routes/[username]/settings/_account.svelte2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/upload.js b/src/lib/upload.js
index 4b03059c..099e2f30 100644
--- a/src/lib/upload.js
+++ b/src/lib/upload.js
@@ -13,7 +13,7 @@ export const upload = async (file, type, progress, token) => {
});
ajax.upload.addEventListener('progress', progress, false);
ajax.open('POST', url);
- ajax.setRequestHeader('Authorization', `Bearer ${get(token)}`);
+ ajax.setRequestHeader('Authorization', `Bearer ${token}`);
ajax.send(formData);
});
};
diff --git a/src/routes/[username]/settings/+page.svelte b/src/routes/[username]/settings/+page.svelte
index 91031e41..abad0ee7 100644
--- a/src/routes/[username]/settings/+page.svelte
+++ b/src/routes/[username]/settings/+page.svelte
@@ -28,7 +28,6 @@
let save = async () => {
try {
- console.log('Uploading files...');
if ($avatarUpload) {
await upload($avatarUpload.file, $avatarUpload.type, $avatarUpload.progress, token);
}
@@ -37,6 +36,7 @@
}
success('Settings saved');
} catch (e) {
+ console.log(e);
failure('Something went wrong');
}
};
diff --git a/src/routes/[username]/settings/_account.svelte b/src/routes/[username]/settings/_account.svelte
index 918a01bf..b6636129 100644
--- a/src/routes/[username]/settings/_account.svelte
+++ b/src/routes/[username]/settings/_account.svelte
@@ -127,6 +127,7 @@
<img
src={profile}
class="absolute w-full h-full object-cover object-center visible overflow-hidden"
+ alt={user.username}
/>
</div>
{:else if user.profile}
@@ -137,6 +138,7 @@
<img
src={`/api/public/${user.username}-profile.png`}
class="absolute w-full h-full object-cover object-center visible overflow-hidden"
+ alt={user.username}
/>
</div>
{:else}
github.com> 2022-09-13 19:39:53 -0600 committer secondl1ght <[email protected]> 2022-09-13 19:39:53 -0600 update CoinOS to coinos' href='/coinos-ui.git/commit/doc/i18n.md?h=nostr-login&id=c31388c1931affef331686a91b82bf1689e751fa'>c31388c1 ^
2c10b8f1 ^


c31388c1 ^
2c10b8f1 ^


f4dead26 ^
2c10b8f1 ^






c26e004f ^
2c10b8f1 ^


f6ff5156 ^
68e85acd ^








c31388c1 ^
68e85acd ^



2c10b8f1 ^
68e85acd ^









2c10b8f1 ^

f6ff5156 ^
68e85acd ^
c31388c1 ^
5cbe3e13 ^
ac08a7c8 ^
d2582a22 ^
ac08a7c8 ^















d2582a22 ^

ac08a7c8 ^
2b3af0b2 ^
ac08a7c8 ^
5cbe3e13 ^
68e85acd ^

f6ff5156 ^
68e85acd ^

c31388c1 ^
68e85acd ^

c31388c1 ^
68e85acd ^
f6ff5156 ^
2c10b8f1 ^


c26e004f ^


2c10b8f1 ^
c26e004f ^
2c10b8f1 ^
d9ef1034 ^
b74882b7 ^
46e33eb5 ^
c26e004f ^
2c10b8f1 ^
68e85acd ^
f6ff5156 ^
2c10b8f1 ^



c26e004f ^


2c10b8f1 ^



6e71d9bd ^
d9ef1034 ^
c31388c1 ^
2c10b8f1 ^

dcea0fdc ^


f6ff5156 ^

dcea0fdc ^


f6ff5156 ^
5cbe3e13 ^
c31388c1 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144