45
45
method: ' POST' ,
46
46
credentials: ' include' ,
47
47
headers: {
48
- ' Content-Type' : ' application/json' ,
48
+ ' Content-Type' : ' application/json'
49
49
},
50
50
body: JSON .stringify ({
51
51
name,
52
52
files: components .map ((component ) => ({
53
53
name: ` ${ component .name } .${ component .type } ` ,
54
- source: component .source ,
55
- })),
56
- }),
54
+ source: component .source
55
+ }))
56
+ })
57
57
});
58
58
59
59
if (r .status < 200 || r .status >= 300 ) {
110
110
method: ' PUT' ,
111
111
credentials: ' include' ,
112
112
headers: {
113
- ' Content-Type' : ' application/json' ,
113
+ ' Content-Type' : ' application/json'
114
114
},
115
115
body: JSON .stringify ({
116
116
name,
117
117
files: components .map ((component ) => ({
118
118
name: ` ${ component .name } .${ component .type } ` ,
119
- source: component .source ,
120
- })),
121
- }),
119
+ source: component .source
120
+ }))
121
+ })
122
122
});
123
123
124
124
if (r .status < 200 || r .status >= 300 ) {
164
164
files .push (
165
165
... components .map ((component ) => ({
166
166
path: ` src/${ component .name } .${ component .type } ` ,
167
- data: component .source ,
167
+ data: component .source
168
168
}))
169
169
);
170
170
files .push ({
@@ -175,7 +175,7 @@ var app = new App({
175
175
target: document.body
176
176
});
177
177
178
- export default app;` ,
178
+ export default app;`
179
179
});
180
180
181
181
downloadBlob (doNotZip .toBlob (files), ' svelte-app.zip' );
@@ -242,7 +242,7 @@ export default app;`,
242
242
display : flex ;
243
243
align-items : center ;
244
244
justify-content : space-between ;
245
- padding : 0.6rem var (--side-nav );
245
+ padding : 0.6rem var (--sk-page-padding-side );
246
246
background-color : var (--sk-back-4 );
247
247
color : var (--sk-text-1 );
248
248
white-space : nowrap ;
0 commit comments