alpha
Login
or
Join now
tokono.ma
/
diffuse-applets
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.
Experiment to rebuild Diffuse using web applets.
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
chore: adapt to spellcaster changes
author
Steven Vandevelde
date
1 year ago
(May 1, 2025, 3:20 PM +0200)
commit
b691a6c8
b691a6c84e62b82404d1fb435d15c1d43e034135
parent
2a572d2c
2a572d2c970ded2fe2cc7f94378a607eb9d62f81
+10
-5
3 changed files
Expand all
Collapse all
Unified
Split
package-lock.json
src
applets
configurator
storage
output
applet.astro
scripts
theme.ts
+1
-1
package-lock.json
Reviewed
···
4620
4620
},
4621
4621
"node_modules/spellcaster": {
4622
4622
"version": "5.0.2",
4623
4623
-
"resolved": "git+ssh://git@github.com/icidasset/spellcaster.git#630230c0950518a39047ea6ef34530b9d64c0c7f",
4623
4623
+
"resolved": "git+ssh://git@github.com/icidasset/spellcaster.git#d26172ab8b5420ea508ebdba5ed78a18c363d2c0",
4624
4624
"dependencies": {
4625
4625
"signal-polyfill": "^0.2.0"
4626
4626
}
+8
-3
src/applets/configurator/storage/output/applet.astro
Reviewed
···
31
31
32
32
<style lang="scss">
33
33
@use "@picocss/pico/scss/pico" with (
34
34
-
$enable-responsive-spacings: true
34
34
+
$enable-responsive-spacings: true,
35
35
+
$enable-responsive-typography: true
35
36
);
36
37
37
38
@use "@picocss/pico/scss/colors/utilities";
···
89
90
const container = document.getElementById("iframes");
90
91
if (!container) throw new Error("Missing iframe container");
91
92
93
93
+
// TODO: Use https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API
94
94
+
// so that the other instances of this applet can be notified
95
95
+
// that something changed?
96
96
+
//
92
97
// TODO: Should migrate + merge data when switching storages
93
98
// Or button to do that?
94
99
//
···
238
243
const Modal = () => {
239
244
const Header = h("header", {}, [
240
245
h("button", {
246
246
+
attrs: { rel: "prev" },
241
247
ariaLabel: "Close",
242
242
-
rel: "prev",
243
248
onclick: close,
244
249
}),
245
250
h("p", {}, [
···
280
285
];
281
286
}
282
287
283
283
-
return [h("span", {}, text("Enter the URL to your applet."))];
288
288
+
return [h("span", {}, text("Enter the URL to the applet."))];
284
289
});
285
290
286
291
effect(() => {
+1
-1
src/scripts/theme.ts
Reviewed
···
93
93
export function addScope<O extends Object>(astroScope: string, object: O): O {
94
94
return {
95
95
...object,
96
96
-
[`data-astro-cid-${astroScope}`]: "",
96
96
+
attrs: { ...((object as any).attrs || {}), [`data-astro-cid-${astroScope}`]: "" },
97
97
};
98
98
}
99
99