pxt-core 7.0.13 → 7.0.16

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.
@@ -0,0 +1,416 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
7
+
8
+ <meta charset="UTF-8" />
9
+ <meta
10
+ name="Description"
11
+ content="This page is used to test the reachable web sites (domains) required for MakeCode functionality"
12
+ />
13
+ <meta
14
+ name="viewport"
15
+ content="width=device-width, initial-scale=1.0, user-scalable=yes"
16
+ />
17
+
18
+ <meta name="mobile-web-app-capable" content="yes" />
19
+ <meta name="apple-mobile-web-app-capable" content="yes" />
20
+ <meta
21
+ name="apple-mobile-web-app-status-bar-style"
22
+ content="translucent-black"
23
+ />
24
+ <meta name="format-detection" content="telephone=no" />
25
+ <meta
26
+ name="application-name"
27
+ content="Reachable MakeCode domains"
28
+ />
29
+
30
+ <meta name="msapplication-config" content="none" />
31
+ <meta name="theme-color" content="#3DC1AA" />
32
+
33
+ <title>Reachable MakeCode domains</title>
34
+
35
+ <link rel="stylesheet" href="https://pxt.azureedge.net/blob/2163189fd5e35c0981ed55318415582a7c9aeb12/doccdn/semantic.css" type="text/css">
36
+ <style>
37
+ /* styles are inlined here as we don't want depednency on another file for checking the domains */
38
+ /* Global --------------------------------------------------------------------------- */
39
+ html {
40
+ font-size: 10px !important;
41
+ }
42
+
43
+ body,
44
+ a,
45
+ button,
46
+ p,
47
+ li {
48
+ font-size: 1.8rem;
49
+ font-family: 'Roboto', sans-serif;
50
+ }
51
+
52
+ .lg-p {
53
+ font-size: 2.2rem;
54
+ }
55
+
56
+ li {
57
+ padding: 1rem 0;
58
+ }
59
+
60
+ li li {
61
+ padding: 0;
62
+ margin: 0.5rem 0;
63
+ }
64
+
65
+ /* Dynamic scaling */
66
+ @media (min-width: 4000px) {
67
+ html {
68
+ font-size: 16px !important;
69
+ }
70
+ }
71
+
72
+ @media (min-width: 3000px) {
73
+ html {
74
+ font-size: 14px !important;
75
+ }
76
+ }
77
+
78
+ @media (min-width: 2000px) {
79
+ html {
80
+ font-size: 12px !important;
81
+ }
82
+ }
83
+
84
+ @media (max-width: 768px) {
85
+ html {
86
+ font-size: 8px !important;
87
+ }
88
+ }
89
+
90
+ ol {
91
+ font-weight: bold;
92
+ }
93
+
94
+ li span {
95
+ font-weight: normal;
96
+ }
97
+
98
+ h1 {
99
+ font-size: 7.2rem;
100
+ text-transform: uppercase;
101
+ }
102
+ h2 {
103
+ font-size: 5.4rem;
104
+ text-transform: uppercase;
105
+ }
106
+ h3 {
107
+ font-size: 3.6rem;
108
+ text-transform: uppercase;
109
+ }
110
+ h4 {
111
+ font-size: 2.4rem;
112
+ }
113
+ h5 {
114
+ font-size: 2rem;
115
+ }
116
+
117
+ .background-white {
118
+ color: black;
119
+ background-color: white;
120
+ }
121
+ .background-black {
122
+ color: white;
123
+ background-color: black;
124
+ }
125
+ .background-marina {
126
+ color: black;
127
+ background-color: #3dc1aa;
128
+ }
129
+ .background-sunflower {
130
+ color: black;
131
+ background-color: #eeca49;
132
+ }
133
+ .background-papaya {
134
+ color: white;
135
+ background-color: #de594b;
136
+ }
137
+ .background-eggplant {
138
+ color: white;
139
+ background-color: #453052;
140
+ }
141
+
142
+ .background-eggplant a {
143
+ color: #3dc1aa;
144
+ }
145
+
146
+ .background-eggplant a:hover {
147
+ color: #2ead98;
148
+ }
149
+
150
+ .background-marina a,
151
+ .background-sunflower a {
152
+ color: #453052;
153
+ }
154
+
155
+ .background-marina a:hover,
156
+ .background-sunflower a:hover {
157
+ color: #33203f;
158
+ }
159
+
160
+ .background-papaya a {
161
+ color: #fadd73;
162
+ }
163
+
164
+ .background-papaya a:hover {
165
+ color: #eeca49;
166
+ }
167
+
168
+ .marina {
169
+ color: #3dc1aa;
170
+ }
171
+ .sunflower {
172
+ color: #eeca49;
173
+ }
174
+ .papaya {
175
+ color: #de594b;
176
+ }
177
+ .eggplant {
178
+ color: #453052;
179
+ }
180
+
181
+
182
+ #header-bar,
183
+ #header-bar > div {
184
+ display: flex;
185
+ align-items: center;
186
+ flex: 1;
187
+ }
188
+
189
+ .header-bar-left {
190
+ justify-content: flex-start;
191
+ }
192
+ .header-bar-right {
193
+ justify-content: flex-end;
194
+ }
195
+
196
+ .header-org-logo {
197
+ display: flex;
198
+ }
199
+ .header-org-logo-sm {
200
+ display: none;
201
+ }
202
+
203
+ .header-org-logo img,
204
+ .header-org-logo-sm img {
205
+ margin: 0 15px;
206
+ height: 22px;
207
+ flex-shrink: 0;
208
+ }
209
+
210
+ .header-title {
211
+ white-space: nowrap;
212
+ }
213
+
214
+ .header-title:before {
215
+ content: '';
216
+ position: relative;
217
+ height: 18px;
218
+ border-left: 2px solid white;
219
+ }
220
+
221
+ .header-title span {
222
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana;
223
+ font-size: 18px;
224
+ font-weight: 700;
225
+ color: white;
226
+ margin-left: 15px;
227
+ margin-bottom: 1px;
228
+ }
229
+
230
+ a.header-icon {
231
+ height: 100%;
232
+ padding: 15px;
233
+ color: white;
234
+ text-decoration: none;
235
+ }
236
+
237
+ a.header-icon:hover,
238
+ a.header-icon:focus {
239
+ color: white;
240
+ opacity: 0.8;
241
+ }
242
+
243
+ a.header-icon i.icon {
244
+ height: unset;
245
+ }
246
+
247
+ nav a {
248
+ cursor: pointer;
249
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana;
250
+ font-style: unset;
251
+ text-transform: none !important;
252
+ }
253
+
254
+ nav .icon {
255
+ font-size: 26px;
256
+ line-height: 26px;
257
+ }
258
+
259
+ nav .header-bar-left a,
260
+ nav .header-bar-left a:hover {
261
+ display: flex;
262
+ color: white;
263
+ text-decoration: none;
264
+ }
265
+
266
+ nav .header-bar-right .btn:active svg path {
267
+ fill: white;
268
+ }
269
+
270
+ nav .header-bar-right .btn {
271
+ min-width: unset;
272
+ padding: 10px;
273
+ width: 160px;
274
+ margin: 0 15px;
275
+ display: flex;
276
+ align-items: center;
277
+ justify-content: center;
278
+ }
279
+
280
+ nav .header-bar-right .btn span {
281
+ margin-right: 10px;
282
+ line-height: 18px;
283
+ }
284
+
285
+ nav .header-bar-right .btn svg path {
286
+ fill: black;
287
+ }
288
+
289
+ table{
290
+ border-collapse: collapse;
291
+ border-spacing: 0;
292
+ margin-top: 40px;
293
+ margin-left: 20%;
294
+ margin-right: 20%;
295
+
296
+ }
297
+ th, td{
298
+ padding: 10px 20px;
299
+ border: 1px solid #000;
300
+ }
301
+ </style>
302
+
303
+ </head>
304
+
305
+ <body id='root' class='root'>
306
+ <nav
307
+ id="header-bar"
308
+ class="background-eggplant"
309
+ style="height: 60px"
310
+ >
311
+ <div class="header-bar-left">
312
+ <a
313
+ class="header-icon"
314
+ role="menuitem"
315
+ aria-label="Return home"
316
+ tabindex="0"
317
+ href="/faq">
318
+ <i
319
+ class="icon arrow left"
320
+ aria-hidden="true"
321
+ role="presentation"
322
+ ></i>
323
+ </a>
324
+ </div>
325
+ <div class="header-bar-right">
326
+ <a
327
+ class="header-icon"
328
+ role="menuitem"
329
+ aria-label="Return home"
330
+ tabindex="0"
331
+ href="@homeurl@">
332
+ <i
333
+ class="icon home"
334
+ aria-hidden="true"
335
+ role="presentation"
336
+ ></i>
337
+ </a>
338
+ </div>
339
+ </nav>
340
+
341
+ <script>
342
+ let table = document.createElement('table');
343
+ let thead = document.createElement('thead');
344
+ let tbody = document.createElement('tbody');
345
+
346
+ async function checkURL(url) {
347
+ fetch(url, {mode: 'no-cors'}).then( r=>{
348
+ console.log(`${url} reachable`)
349
+ return true;
350
+ })
351
+ .catch(e=>{
352
+ console.log(`Error: ${url} not reachable ${e}`)
353
+ return false;
354
+ });
355
+ }
356
+
357
+ function addRow(url) {
358
+ // Creating and adding data to second row of the table
359
+ let row = document.createElement('tr');
360
+ let row_data_1 = document.createElement('td');
361
+ row_data_1.innerHTML = url;
362
+ let row_data_2 = document.createElement('td');
363
+
364
+ row_data_2.innerHTML = "Loading..."
365
+ fetch(url, {mode: 'no-cors'}).then( r=>{
366
+ console.log(`${url} reachable`)
367
+ row_data_2.innerHTML = "Success"
368
+ })
369
+ .catch(e=>{
370
+ row_data_2.innerHTML = "Failure"
371
+ });
372
+
373
+ row.appendChild(row_data_1);
374
+ row.appendChild(row_data_2);
375
+ tbody.appendChild(row);
376
+ }
377
+
378
+ function createTable() {
379
+
380
+ table.appendChild(thead);
381
+ table.appendChild(tbody);
382
+
383
+ // Adding the entire table to the body tag
384
+ document.getElementById('root').appendChild(table);
385
+
386
+ // Creating and adding data to first row of the table
387
+ let row_1 = document.createElement('tr');
388
+ let heading_1 = document.createElement('th');
389
+ heading_1.innerHTML = "Domain";
390
+ let heading_2 = document.createElement('th');
391
+ heading_2.innerHTML = "Reachable?";
392
+
393
+ row_1.appendChild(heading_1);
394
+ row_1.appendChild(heading_2);
395
+ thead.appendChild(row_1);
396
+ }
397
+
398
+ createTable();
399
+
400
+ addRow("@homeurl@")
401
+ addRow("https://makecode.com");
402
+ addRow("https://trg-@targetid@.userpxt.io");
403
+ addRow("https://pxt.azureedge.net");
404
+ addRow("https://api.github.com");
405
+ addRow("https://immersivereaderprod.cognitiveservices.azure.com");
406
+ addRow("https://github.com");
407
+ addRow("https://raw.githubusercontent.com/")
408
+
409
+ </script>
410
+
411
+ <!-- @include footer.html -->
412
+ <!-- @include tracking.html -->
413
+ </body>
414
+
415
+ </html>
416
+
@@ -135,6 +135,7 @@ declare namespace pxt {
135
135
  loopsBlocks?: boolean;
136
136
  onStartNamespace?: string; // default = loops
137
137
  onStartColor?: string;
138
+ onStartGroup?: string;
138
139
  onStartWeight?: number;
139
140
  onStartUnDeletable?: boolean;
140
141
  pauseUntilBlock?: BlockOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-core",
3
- "version": "7.0.13",
3
+ "version": "7.0.16",
4
4
  "description": "Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors",
5
5
  "keywords": [
6
6
  "TypeScript",
package/pxtarget.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "homeUrl": "https://makecode.com/",
19
19
  "cardLogo": "./static/logo.svg",
20
20
  "appLogo": "./static/logo.svg",
21
- "crowdinProject": "kindscript",
21
+ "crowdinProject": "makecode",
22
22
  "docMenu": [
23
23
  {
24
24
  "name": "About",
@@ -8,7 +8,7 @@
8
8
  <script type="text/javascript">
9
9
  if(/[&?]translate=1/.test(window.location.href)) {
10
10
  var _jipt = [];
11
- _jipt.push(['project', 'kindscript']);
11
+ _jipt.push(['project', 'makecode']);
12
12
  _jipt.push(['escape', function() {
13
13
  window.location.href = window.location.href.replace(/[$\?]translate=1/, '');
14
14
  }]);