Skip to content

Commit

Permalink
for now leave essentials while deploying chart updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jpolitz committed Jan 18, 2024
1 parent e6be541 commit 3aab316
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/web/js/beforeBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ window.CPO = {
documents : new Documents()
};
$(function() {
const CONTEXT_FOR_NEW_FILES = '<scriptsonly app="Snap! 9.0, https://snap.berkeley.edu" version="2"><script x="0" y="0"><custom-block s="use context starter2024"></custom-block></script></scriptsonly>';
const CONTEXT_FOR_NEW_FILES = '<scriptsonly app="Snap! 9.0, https://snap.berkeley.edu" version="2"><script x="0" y="0"><custom-block s="use context essentials2021"></custom-block></script></scriptsonly>';
function merge(obj, extension) {
var newobj = {};
Object.keys(obj).forEach(function(k) {
Expand Down Expand Up @@ -454,7 +454,7 @@ $(function() {
const shared = $("<tt>shared-gdrive(...)</tt>");
const currentContextElt = $("<tt>" + currentContext + "</tt>");
greeting.append("Enter the context to use for the program, or choose “Cancel” to keep the current context of ", currentContextElt, ".");
const essentials = $("<tt>starter2024</tt>");
const essentials = $("<tt>essentials2021</tt>");
const list = $("<ul>")
.append($("<li>").append("The default is ", essentials, "."))
.append($("<li>").append("You might use something like ", shared, " if one was provided as part of a course."));
Expand Down
4 changes: 2 additions & 2 deletions src/web/js/beforePyret.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ window.CPO = {
documents : new Documents()
};
$(function() {
const CONTEXT_FOR_NEW_FILES = "use context starter2024\n";
const CONTEXT_FOR_NEW_FILES = "use context essentials2021\n";
function merge(obj, extension) {
var newobj = {};
Object.keys(obj).forEach(function(k) {
Expand Down Expand Up @@ -454,7 +454,7 @@ $(function() {
const shared = $("<tt>shared-gdrive(...)</tt>");
const currentContextElt = $("<tt>" + currentContext + "</tt>");
greeting.append("Enter the context to use for the program, or choose “Cancel” to keep the current context of ", currentContextElt, ".");
const essentials = $("<tt>starter2024</tt>");
const essentials = $("<tt>essentials2021</tt>");
const list = $("<ul>")
.append($("<li>").append("The default is ", essentials, "."))
.append($("<li>").append("You might use something like ", shared, " if one was provided as part of a course."));
Expand Down
4 changes: 2 additions & 2 deletions src/web/js/transpile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ else:
&lt;#4&gt;</doFor>
</code>
<blocks>
<block-definition category="other" s="use context starter2024" type="command">
<block-definition category="other" s="use context essentials2021" type="command">
<header/>
<code>use context starter2024</code>
<code>use context essentials2021</code>
<translations/>
<inputs/>
</block-definition>
Expand Down

0 comments on commit 3aab316

Please sign in to comment.