pyret-embed 0.1.7 → 0.1.8
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/dist/build/web/css/editor.css +21 -0
- package/dist/build/web/editor.embed.html +4 -0
- package/dist/build/web/editor.html +4 -0
- package/dist/build/web/js/cpo-main.jarr +2 -2
- package/dist/build/web/js/cpo-main.jarr.gz.js +0 -0
- package/dist/build/web/js/cpo-main.jarr.js +2 -2
- package/dist/build/web/js/cpo-main.jarr.min +2 -2
- package/dist/build/web/views/editor.html +4 -0
- package/dist/build/web/views/editor.selfcontained.html +25 -0
- package/package.json +1 -1
|
@@ -902,6 +902,27 @@ body.hideFooter .replContainer {
|
|
|
902
902
|
padding-bottom: 0rem;
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
+
/* Unobtrusive compiler-flavor indicator, pinned to the REPL's corner just
|
|
906
|
+
above the footer padding. Hidden unless the page resolved to the ts
|
|
907
|
+
flavor (editor.html adds .ts-mode to <html> in the same branch that
|
|
908
|
+
swaps PYRET), so the stock editor shows nothing new. */
|
|
909
|
+
#compilerFlavorBadge {
|
|
910
|
+
display: none;
|
|
911
|
+
position: absolute;
|
|
912
|
+
right: 8px;
|
|
913
|
+
bottom: calc(2.5rem + 4px);
|
|
914
|
+
font-size: 11px;
|
|
915
|
+
color: #999;
|
|
916
|
+
z-index: 1;
|
|
917
|
+
user-select: none;
|
|
918
|
+
}
|
|
919
|
+
html.ts-mode #compilerFlavorBadge {
|
|
920
|
+
display: block;
|
|
921
|
+
}
|
|
922
|
+
body.hideFooter #compilerFlavorBadge {
|
|
923
|
+
bottom: 4px;
|
|
924
|
+
}
|
|
925
|
+
|
|
905
926
|
body.hideHeader .replContainer {
|
|
906
927
|
padding-top: 0px;
|
|
907
928
|
}
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
if(m) { window.CPO_COMPILER = decodeURIComponent(m[1]); }
|
|
26
26
|
if(window.CPO_COMPILER === "ts" && window.PYRET_TS) {
|
|
27
27
|
window.PYRET = window.PYRET_TS;
|
|
28
|
+
// Lets pure CSS show ts-only chrome (the "(ts mode)" badge in the
|
|
29
|
+
// REPL corner) without another script running at DOM-ready.
|
|
30
|
+
document.documentElement.classList.add("ts-mode");
|
|
28
31
|
// In gzipped mode the host may serve assets without an executable MIME
|
|
29
32
|
// type (nosniff), which refuses a <script src> load outright --
|
|
30
33
|
// beforePyret.js fetches the compiler bundle alongside the jarr instead.
|
|
@@ -391,6 +394,7 @@
|
|
|
391
394
|
</div>
|
|
392
395
|
<div id="REPL" class="replContainer" role="region" aria-label="Interactions">
|
|
393
396
|
<div id="handle" class="ui-resizable-handle ui-resizable-w"></div>
|
|
397
|
+
<div id="compilerFlavorBadge" title="This session uses the TypeScript version of Pyret. Visit /settings/clear-ts to turn it off.">(ts mode)</div>
|
|
394
398
|
</div>
|
|
395
399
|
<div id="help-keys">
|
|
396
400
|
<p><b>Press <kbd>Esc</kbd> to close this help window</b></p>
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
if(m) { window.CPO_COMPILER = decodeURIComponent(m[1]); }
|
|
26
26
|
if(window.CPO_COMPILER === "ts" && window.PYRET_TS) {
|
|
27
27
|
window.PYRET = window.PYRET_TS;
|
|
28
|
+
// Lets pure CSS show ts-only chrome (the "(ts mode)" badge in the
|
|
29
|
+
// REPL corner) without another script running at DOM-ready.
|
|
30
|
+
document.documentElement.classList.add("ts-mode");
|
|
28
31
|
// In gzipped mode the host may serve assets without an executable MIME
|
|
29
32
|
// type (nosniff), which refuses a <script src> load outright --
|
|
30
33
|
// beforePyret.js fetches the compiler bundle alongside the jarr instead.
|
|
@@ -391,6 +394,7 @@
|
|
|
391
394
|
</div>
|
|
392
395
|
<div id="REPL" class="replContainer" role="region" aria-label="Interactions">
|
|
393
396
|
<div id="handle" class="ui-resizable-handle ui-resizable-w"></div>
|
|
397
|
+
<div id="compilerFlavorBadge" title="This session uses the TypeScript version of Pyret. Visit /settings/clear-ts to turn it off.">(ts mode)</div>
|
|
394
398
|
</div>
|
|
395
399
|
<div id="help-keys">
|
|
396
400
|
<p><b>Press <kbd>Esc</kbd> to close this help window</b></p>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/build/web/js/cpo-main.jarr
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 39419095 bytes
|
|
4
|
+
sha256: 463aeca97884e60038f806d6ace1f16095634fe41c3632d707fde19ef0697108
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/build/web/js/cpo-main.jarr.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 39419095 bytes
|
|
4
|
+
sha256: 463aeca97884e60038f806d6ace1f16095634fe41c3632d707fde19ef0697108
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/build/web/js/cpo-main.jarr.min
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 36463335 bytes
|
|
4
|
+
sha256: 4fac69dd8fa65ffa6118e45ae2fb72232f6f2336d7c8dd8de84c12d8c126e346
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
if(m) { window.CPO_COMPILER = decodeURIComponent(m[1]); }
|
|
26
26
|
if(window.CPO_COMPILER === "ts" && window.PYRET_TS) {
|
|
27
27
|
window.PYRET = window.PYRET_TS;
|
|
28
|
+
// Lets pure CSS show ts-only chrome (the "(ts mode)" badge in the
|
|
29
|
+
// REPL corner) without another script running at DOM-ready.
|
|
30
|
+
document.documentElement.classList.add("ts-mode");
|
|
28
31
|
// In gzipped mode the host may serve assets without an executable MIME
|
|
29
32
|
// type (nosniff), which refuses a <script src> load outright --
|
|
30
33
|
// beforePyret.js fetches the compiler bundle alongside the jarr instead.
|
|
@@ -391,6 +394,7 @@
|
|
|
391
394
|
</div>
|
|
392
395
|
<div id="REPL" class="replContainer" role="region" aria-label="Interactions">
|
|
393
396
|
<div id="handle" class="ui-resizable-handle ui-resizable-w"></div>
|
|
397
|
+
<div id="compilerFlavorBadge" title="This session uses the TypeScript version of Pyret. Visit /settings/clear-ts to turn it off.">(ts mode)</div>
|
|
394
398
|
</div>
|
|
395
399
|
<div id="help-keys">
|
|
396
400
|
<p><b>Press <kbd>Esc</kbd> to close this help window</b></p>
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
if(m) { window.CPO_COMPILER = decodeURIComponent(m[1]); }
|
|
26
26
|
if(window.CPO_COMPILER === "ts" && window.PYRET_TS) {
|
|
27
27
|
window.PYRET = window.PYRET_TS;
|
|
28
|
+
// Lets pure CSS show ts-only chrome (the "(ts mode)" badge in the
|
|
29
|
+
// REPL corner) without another script running at DOM-ready.
|
|
30
|
+
document.documentElement.classList.add("ts-mode");
|
|
28
31
|
// In gzipped mode the host may serve assets without an executable MIME
|
|
29
32
|
// type (nosniff), which refuses a <script src> load outright --
|
|
30
33
|
// beforePyret.js fetches the compiler bundle alongside the jarr instead.
|
|
@@ -3163,6 +3166,27 @@ body.hideFooter .replContainer {
|
|
|
3163
3166
|
padding-bottom: 0rem;
|
|
3164
3167
|
}
|
|
3165
3168
|
|
|
3169
|
+
/* Unobtrusive compiler-flavor indicator, pinned to the REPL's corner just
|
|
3170
|
+
above the footer padding. Hidden unless the page resolved to the ts
|
|
3171
|
+
flavor (editor.html adds .ts-mode to <html> in the same branch that
|
|
3172
|
+
swaps PYRET), so the stock editor shows nothing new. */
|
|
3173
|
+
#compilerFlavorBadge {
|
|
3174
|
+
display: none;
|
|
3175
|
+
position: absolute;
|
|
3176
|
+
right: 8px;
|
|
3177
|
+
bottom: calc(2.5rem + 4px);
|
|
3178
|
+
font-size: 11px;
|
|
3179
|
+
color: #999;
|
|
3180
|
+
z-index: 1;
|
|
3181
|
+
user-select: none;
|
|
3182
|
+
}
|
|
3183
|
+
html.ts-mode #compilerFlavorBadge {
|
|
3184
|
+
display: block;
|
|
3185
|
+
}
|
|
3186
|
+
body.hideFooter #compilerFlavorBadge {
|
|
3187
|
+
bottom: 4px;
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3166
3190
|
body.hideHeader .replContainer {
|
|
3167
3191
|
padding-top: 0px;
|
|
3168
3192
|
}
|
|
@@ -7122,6 +7146,7 @@ window.localSettings = function() {
|
|
|
7122
7146
|
</div>
|
|
7123
7147
|
<div id="REPL" class="replContainer" role="region" aria-label="Interactions">
|
|
7124
7148
|
<div id="handle" class="ui-resizable-handle ui-resizable-w"></div>
|
|
7149
|
+
<div id="compilerFlavorBadge" title="This session uses the TypeScript version of Pyret. Visit /settings/clear-ts to turn it off.">(ts mode)</div>
|
|
7125
7150
|
</div>
|
|
7126
7151
|
<div id="help-keys">
|
|
7127
7152
|
<p><b>Press <kbd>Esc</kbd> to close this help window</b></p>
|