From 540e89d95b295c8be769b6b326b7fe0eee9d2434 Mon Sep 17 00:00:00 2001 From: thejackal360 Date: Fri, 8 Dec 2023 12:52:18 -0800 Subject: [PATCH 1/2] Modify gitignore and update example static files --- .gitignore | 2 ++ src/example/static/js/elena_top.js | 10 +++++----- src/example/static/js/games/Bacterial Culture_elena.js | 4 ++-- .../js/games/Temperature Controller Part II_elena.js | 4 ++-- .../js/games/Temperature Controller Part I_elena.js | 4 ++-- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 6ca4aab..aae0622 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.egg-info* dist/ +*__pycache__* +build/ diff --git a/src/example/static/js/elena_top.js b/src/example/static/js/elena_top.js index a9090e2..0c32227 100644 --- a/src/example/static/js/elena_top.js +++ b/src/example/static/js/elena_top.js @@ -243,15 +243,15 @@ function inc_point_count(i = 1) { if (i == 1) { var point_convo_idx = randint(3); if (point_convo_idx == 0) { - chelsea_msgs.push("Here's a 🍒. One less for me."); + chelsea_msgs.push("Here's a 🥝. One less for me."); } else if (point_convo_idx == 1) { - chelsea_msgs.push("Have a 🍒."); + chelsea_msgs.push("Have a 🥝."); } else { - chelsea_msgs.push("I shall award you with one 🍒."); + chelsea_msgs.push("I shall award you with one 🥝."); } } else if (i > 0) { chelsea_msgs.push("Congrats! Here's a " + - i.toString() + " 🍒 bonus!"); + i.toString() + " 🥝 bonus!"); } point_inc_waits += i; } @@ -301,7 +301,7 @@ function back_button_click() { $("#chat").animate({opacity: 0}, {duration: 3000}).promise().done(function() { $("#chat").hide(); document.getElementById("final_score").innerHTML = - "
Final score: " + pointcount_var.toString() + "🍒"; + "
Final score: " + pointcount_var.toString() + "🥝"; $("#final_score").animate({opacity: 1}, {duration: 3000}).promise().done(function() { $("#final_score").animate({opacity: 0}, {duration: 3000}).promise().done(function() { document.location.reload(); diff --git a/src/example/static/js/games/Bacterial Culture_elena.js b/src/example/static/js/games/Bacterial Culture_elena.js index a8df238..e272491 100644 --- a/src/example/static/js/games/Bacterial Culture_elena.js +++ b/src/example/static/js/games/Bacterial Culture_elena.js @@ -56,9 +56,9 @@ function Bacterial_Culture_convo(val) { // Race condition: No youHold and no more chelsea_msgs // Need to hold until you generate topic content. chelsea_msgs.push("Good to meet you, " + val); - chelsea_msgs.push("Answer trivia questions to earn 🍒s."); + chelsea_msgs.push("Answer trivia questions to earn 🥝s."); if (Bacterial_CultureNumTopics > 1) { - chelsea_msgs.push("Pay 🍒s to play mini games."); + chelsea_msgs.push("Pay 🥝s to play mini games."); } chelsea_msgs.push("Let's get started!"); topic = Bacterial_Culture_randint_topics(); diff --git a/src/example/static/js/games/Temperature Controller Part II_elena.js b/src/example/static/js/games/Temperature Controller Part II_elena.js index 7490db0..dc2f1ed 100644 --- a/src/example/static/js/games/Temperature Controller Part II_elena.js +++ b/src/example/static/js/games/Temperature Controller Part II_elena.js @@ -56,9 +56,9 @@ function Temperature_Controller_Part_II_convo(val) { // Race condition: No youHold and no more chelsea_msgs // Need to hold until you generate topic content. chelsea_msgs.push("Good to meet you, " + val); - chelsea_msgs.push("Answer trivia questions to earn 🍒s."); + chelsea_msgs.push("Answer trivia questions to earn 🥝s."); if (Temperature_Controller_Part_IINumTopics > 1) { - chelsea_msgs.push("Pay 🍒s to play mini games."); + chelsea_msgs.push("Pay 🥝s to play mini games."); } chelsea_msgs.push("Let's get started!"); topic = Temperature_Controller_Part_II_randint_topics(); diff --git a/src/example/static/js/games/Temperature Controller Part I_elena.js b/src/example/static/js/games/Temperature Controller Part I_elena.js index f0c9d12..715477c 100644 --- a/src/example/static/js/games/Temperature Controller Part I_elena.js +++ b/src/example/static/js/games/Temperature Controller Part I_elena.js @@ -56,9 +56,9 @@ function Temperature_Controller_Part_I_convo(val) { // Race condition: No youHold and no more chelsea_msgs // Need to hold until you generate topic content. chelsea_msgs.push("Good to meet you, " + val); - chelsea_msgs.push("Answer trivia questions to earn 🍒s."); + chelsea_msgs.push("Answer trivia questions to earn 🥝s."); if (Temperature_Controller_Part_INumTopics > 1) { - chelsea_msgs.push("Pay 🍒s to play mini games."); + chelsea_msgs.push("Pay 🥝s to play mini games."); } chelsea_msgs.push("Let's get started!"); topic = Temperature_Controller_Part_I_randint_topics(); From 625f5728aaf13bd7f83e9af9c57af74df9020e85 Mon Sep 17 00:00:00 2001 From: thejackal360 Date: Fri, 8 Dec 2023 12:54:42 -0800 Subject: [PATCH 2/2] Explain what local runs are --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index a1c90a9..72aebe3 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,10 @@ if __name__ == "__main__": app.run(debug=True) ``` +A "local run" is when the user is hosting and accessing the server on +localhost. In other words, the server is hosted on the same machine that +is accessing it. + ## Install/Project Configuration To create a new Elena-based project, first install the Elena library and its dependencies from the cloned git repo's root: