xs-dev 0.24.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,70 +1,78 @@
|
|
|
1
1
|
---
|
|
2
|
-
import ThemeToggleButton from './ThemeToggleButton.tsx'
|
|
3
|
-
import * as CONFIG from '../../config'
|
|
4
|
-
const { editHref } = Astro.props
|
|
5
|
-
const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref
|
|
2
|
+
import ThemeToggleButton from './ThemeToggleButton.tsx'
|
|
3
|
+
import * as CONFIG from '../../config'
|
|
4
|
+
const { editHref } = Astro.props
|
|
5
|
+
const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
{showMoreSection && <h2 class="heading">More</h2>}
|
|
9
9
|
<ul>
|
|
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
|
-
|
|
10
|
+
{
|
|
11
|
+
editHref && (
|
|
12
|
+
<li class={`header-link depth-2`}>
|
|
13
|
+
<a
|
|
14
|
+
class="edit-on-github"
|
|
15
|
+
href={editHref.replace(/pages\/xs\-dev/, 'pages')}
|
|
16
|
+
target="_blank"
|
|
17
|
+
>
|
|
18
|
+
<svg
|
|
19
|
+
aria-hidden="true"
|
|
20
|
+
focusable="false"
|
|
21
|
+
data-prefix="fas"
|
|
22
|
+
data-icon="pen"
|
|
23
|
+
class="svg-inline--fa fa-pen fa-w-16"
|
|
24
|
+
role="img"
|
|
25
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
viewBox="0 0 512 512"
|
|
27
|
+
height="1em"
|
|
28
|
+
width="1em"
|
|
29
|
+
>
|
|
30
|
+
<path
|
|
31
|
+
fill="currentColor"
|
|
32
|
+
d="M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"
|
|
33
|
+
/>
|
|
34
|
+
</svg>
|
|
35
|
+
<span>Edit this page</span>
|
|
36
|
+
</a>
|
|
37
|
+
</li>
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
{
|
|
41
|
+
CONFIG.COMMUNITY_INVITE_URL && (
|
|
42
|
+
<li class={`header-link depth-2`}>
|
|
43
|
+
<a href={CONFIG.COMMUNITY_INVITE_URL} target="_blank">
|
|
44
|
+
<svg
|
|
45
|
+
aria-hidden="true"
|
|
46
|
+
focusable="false"
|
|
47
|
+
data-prefix="fas"
|
|
48
|
+
data-icon="comment-alt"
|
|
49
|
+
class="svg-inline--fa fa-comment-alt fa-w-16"
|
|
50
|
+
role="img"
|
|
51
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
52
|
+
viewBox="0 0 512 512"
|
|
53
|
+
height="1em"
|
|
54
|
+
width="1em"
|
|
55
|
+
>
|
|
56
|
+
<path
|
|
57
|
+
fill="currentColor"
|
|
58
|
+
d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"
|
|
59
|
+
/>
|
|
60
|
+
</svg>
|
|
61
|
+
<span>Join our community</span>
|
|
62
|
+
</a>
|
|
63
|
+
</li>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
58
66
|
</ul>
|
|
59
67
|
<div style="margin: 2rem 0; text-align: center;">
|
|
60
|
-
|
|
68
|
+
<ThemeToggleButton client:visible />
|
|
61
69
|
</div>
|
|
62
70
|
|
|
63
71
|
<style>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
.edit-on-github {
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
font: inherit;
|
|
75
|
+
color: inherit;
|
|
76
|
+
font-size: 1rem;
|
|
77
|
+
}
|
|
70
78
|
</style>
|
|
@@ -6,7 +6,7 @@ layout: ../../../layouts/MainLayout.astro
|
|
|
6
6
|
|
|
7
7
|
# Manage modules from Moddable
|
|
8
8
|
|
|
9
|
-
The Moddable
|
|
9
|
+
The Moddable SDK ships with many first-party modules to support various features, peripherals, sensors, etc. The `include` command will update the project `manifest.json` with the selected module:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
12
|
xs-dev include network/wifi
|