alpha
Login
or
Join now
xcc.es
/
morganwill.com
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/mrgnw/morganwill.com.
morganwill.com
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
update link serialization
author
Morgan
date
2 years ago
(Nov 10, 2024, 3:56 AM +0100)
commit
462421c5
462421c5b6ee75f0eebafc7325ddffaaebd4bb4c
parent
28c7583f
28c7583f77eae7b493ff28880da6b1c3ab6b7b3e
+14
-9
1 changed file
Expand all
Collapse all
Unified
Split
src
routes
+page.server.js
+14
-9
src/routes/+page.server.js
View file
Reviewed
···
34
34
]
35
35
36
36
export async function load() {
37
37
-
await Promise.all(all_links.map(async (link) => {
38
38
-
link.qr = await QRCode.toString(
39
39
-
link.url, {
40
40
-
type: 'svg',
41
41
-
width: 164,
42
42
-
}
43
43
-
);
44
44
-
}));
37
37
+
const links = await Promise.all(
38
38
+
all_links.map(async (link) => {
39
39
+
const qr = await QRCode.toString(link.url, {
40
40
+
type: "svg",
41
41
+
width: 164,
42
42
+
}
43
43
+
);
44
44
+
return {
45
45
+
...link,
46
46
+
qr
47
47
+
};
48
48
+
})
49
49
+
);
45
50
46
51
return {
47
47
-
all_links
52
52
+
all_links: links
48
53
};
49
54
}