@alstar/create 0.0.0-beta.5 → 0.0.0-beta.7
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.
- package/main.js +2 -0
- package/package.json +1 -1
- package/template/index.ts +19 -19
- package/template/package.json +1 -2
- package/template/pages/index.ts +1 -1
- package/template/{components/Welcome → public/css}/Welcome.css +0 -15
- package/template/public/favicon.svg +3 -4
- package/template/public/main.css +35 -1
- package/tsconfig.json +1 -1
- /package/template/components/{Welcome/Welcome.ts → Welcome.ts} +0 -0
package/main.js
CHANGED
package/package.json
CHANGED
package/template/index.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
createStudio,
|
|
3
|
+
defineStructure,
|
|
4
|
+
defineBlock,
|
|
5
|
+
defineField,
|
|
6
|
+
} from '@alstar/studio'
|
|
3
7
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
label: 'Title',
|
|
15
|
-
type: 'text',
|
|
8
|
+
await createStudio({
|
|
9
|
+
structure: defineStructure({
|
|
10
|
+
entry: defineBlock({
|
|
11
|
+
label: 'Entry',
|
|
12
|
+
type: 'entry',
|
|
13
|
+
fields: {
|
|
14
|
+
title: defineField({
|
|
15
|
+
label: 'Title',
|
|
16
|
+
type: 'text',
|
|
17
|
+
}),
|
|
16
18
|
},
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
await createStudio(structure)
|
|
19
|
+
}),
|
|
20
|
+
}),
|
|
21
|
+
})
|
package/template/package.json
CHANGED
package/template/pages/index.ts
CHANGED
|
@@ -11,13 +11,6 @@ section.welcome {
|
|
|
11
11
|
padding-bottom: 10vh;
|
|
12
12
|
margin-bottom: 0;
|
|
13
13
|
|
|
14
|
-
color: #333;
|
|
15
|
-
font-size: 15px;
|
|
16
|
-
|
|
17
|
-
a {
|
|
18
|
-
color: dodgerblue;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
14
|
div {
|
|
22
15
|
> h1 {
|
|
23
16
|
display: flex;
|
|
@@ -35,8 +28,6 @@ section.welcome {
|
|
|
35
28
|
}
|
|
36
29
|
|
|
37
30
|
ol {
|
|
38
|
-
font-family: monospace;
|
|
39
|
-
|
|
40
31
|
margin-top: 2rem;
|
|
41
32
|
padding-left: 1.2rem;
|
|
42
33
|
|
|
@@ -45,11 +36,5 @@ section.welcome {
|
|
|
45
36
|
margin-bottom: 0.25rem;
|
|
46
37
|
}
|
|
47
38
|
}
|
|
48
|
-
|
|
49
|
-
code {
|
|
50
|
-
background-color: #eeeeee;
|
|
51
|
-
padding: 0.375rem;
|
|
52
|
-
border-radius: 4px;
|
|
53
|
-
}
|
|
54
39
|
}
|
|
55
40
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
<svg viewBox="0 0
|
|
1
|
+
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path
|
|
3
|
-
d="
|
|
4
|
-
fill="#222222"
|
|
5
|
-
/>
|
|
3
|
+
d="M89.728 512C83.328 512 80.128 508.8 80.128 502.4V146.432C80.128 142.336 81.408 138.496 83.968 134.912L174.592 5.88797C177.408 2.04797 181.504 0.127975 186.88 0.127975H324.352C329.984 0.127975 334.08 2.04797 336.64 5.88797L428.032 134.912C430.592 138.496 431.872 142.336 431.872 146.432V502.4C431.872 508.8 428.672 512 422.272 512H281.728C275.328 512 272.128 508.8 272.128 502.4V358.4H239.872V502.4C239.872 508.8 236.672 512 230.272 512H89.728ZM256 225.152C267.008 225.152 275.968 221.696 282.88 214.784C289.792 207.872 293.248 199.04 293.248 188.288C293.248 177.28 289.792 168.32 282.88 161.408C275.968 154.496 267.008 151.04 256 151.04C244.992 151.04 236.032 154.496 229.12 161.408C222.208 168.32 218.752 177.28 218.752 188.288C218.752 199.04 222.208 207.872 229.12 214.784C236.032 221.696 244.992 225.152 256 225.152Z"
|
|
4
|
+
fill="#222222" />
|
|
6
5
|
</svg>
|
package/template/public/main.css
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
@import './css/Welcome.css';
|
|
2
|
+
|
|
1
3
|
body {
|
|
2
4
|
margin: 0;
|
|
3
|
-
|
|
5
|
+
|
|
6
|
+
font-family: monospace;
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
color: #333;
|
|
9
|
+
|
|
10
|
+
text-rendering: geometricPrecision;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
a {
|
|
14
|
+
color: dodgerblue;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
code {
|
|
18
|
+
background-color: #eee;
|
|
19
|
+
|
|
20
|
+
padding: 0.255rem 0.375rem;
|
|
21
|
+
border-radius: 5px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (prefers-color-scheme: dark) {
|
|
25
|
+
body {
|
|
26
|
+
background: #222;
|
|
27
|
+
color: #eee;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
a {
|
|
31
|
+
color: lightskyblue;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
code {
|
|
35
|
+
background-color: #555;
|
|
36
|
+
}
|
|
37
|
+
}
|
package/tsconfig.json
CHANGED
|
File without changes
|