Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
d482810
strip out sandbox in domain if present
sspickle Feb 2, 2023
e8dbfe3
move trusted host setting after validation of message
sspickle Feb 7, 2023
fe6a5bb
Bump cryptography from 3.3.2 to 39.0.1
dependabot[bot] Feb 8, 2023
326cbe7
Bump werkzeug from 1.0.1 to 2.2.3
dependabot[bot] Feb 16, 2023
44c39f7
Bump redis from 3.5.3 to 4.4.4
dependabot[bot] Mar 31, 2023
1cdee13
Bump flask from 1.1.2 to 2.3.2
dependabot[bot] May 1, 2023
3e2a363
Merge pull request #171 from vpython/dependabot/pip/flask-2.3.2
BruceSherwood May 1, 2023
d4b65da
Update offline zip
BruceSherwood May 14, 2023
292be9d
update MarkupSafe
sspickle May 14, 2023
f5c2ea4
maybe working?
sspickle May 14, 2023
f046782
restore flaskenv
sspickle May 14, 2023
4d7ec3e
merge
sspickle May 15, 2023
2abe46f
Merge branch 'master' into dependabot/pip/werkzeug-2.2.3
sspickle May 15, 2023
95bc852
Merge pull request #169 from vpython/dependabot/pip/redis-4.4.4
sspickle May 15, 2023
b0cbe45
Merge pull request #167 from vpython/dependabot/pip/werkzeug-2.2.3
sspickle May 15, 2023
a9a36ed
Bump requests from 2.30.0 to 2.31.0
dependabot[bot] May 23, 2023
636ac97
Merge pull request #172 from vpython/dependabot/pip/requests-2.31.0
BruceSherwood May 30, 2023
8205d2f
Bump cryptography from 40.0.2 to 41.0.0
dependabot[bot] Jun 2, 2023
820fa0d
Merge pull request #173 from vpython/dependabot/pip/cryptography-41.0.0
BruceSherwood Jun 3, 2023
8aa51ae
Merge branch 'upstream-master' into v3.2.2
brianpmarks Jun 11, 2023
c2a238c
v3.2.2, add postMessage when print called
brianpmarks Jun 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added GlowScriptOffline3.2.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
runtime: python38
runtime: python310

handlers:

Expand Down
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var gulp = require('gulp')
, version
, glowscript_libraries;

version = '3.2.1';
version = '3.2.2';

glowscript_libraries = {
"glow": [
Expand Down Expand Up @@ -52,7 +52,7 @@ glowscript_libraries = {
],
};

gulp.task('default', function() {
gulp.task('default', async function() {
var shaders = []
, shader_key;

Expand Down
6 changes: 3 additions & 3 deletions ide/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_base_url():
"""
Get the base_url from the datastore
"""
return getSetting('auth_base_url')
return getSetting('auth_base_url', default='http://localhost:8080')
#
# Robust way to check for running locally. Also easy to modify.
#
Expand Down Expand Up @@ -121,7 +121,7 @@ def fillCache(self):
from google.cloud import secretmanager
secrets = secretmanager.SecretManagerServiceClient()
secret_path = f"projects/{GOOGLE_PROJECT_ID}/secrets/OAUTH_CLIENT_SECRETS/versions/{CLIENT_SECRET_VERSION}"
theSecret = secrets.access_secret_version(secret_path).payload.data.decode("utf-8")
theSecret = secrets.access_secret_version(name=secret_path).payload.data.decode("utf-8")
client_secrets = json.loads(theSecret)
CLIENT_ID = client_secrets.get("FN_CLIENT_ID")
CLIENT_SECRET = client_secrets.get("FN_CLIENT_SECRET")
Expand Down Expand Up @@ -217,7 +217,7 @@ def auth():

oauth = authNamespace.get('oauth') or fillAuthNamespace()
token = oauth.google.authorize_access_token()
user = oauth.google.parse_id_token(token)
user = token['userinfo']

if check_auth_host_for_preview(auth_host): # are we in a preview version?
if user.get('email') not in get_preview_users(): # only finish login for these guys
Expand Down
6 changes: 3 additions & 3 deletions ide/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,14 @@ def idejs_static():
ide_js = ide_js.replace('WEBSERVER_NAME_TEMPLATE',host_name)
ide_js = ide_js.replace('SANDBOX_PREFIX_TEMPLATE','https://sandbox.')

return ide_js,200
return flask.Response(ide_js, mimetype='text/javascript')

@app.route('/lib/<path:filename>')
def lib_static(filename):
cache_timeout = None
if is_running_locally():
cache_timeout=0
return flask.send_from_directory('../lib', filename, cache_timeout=cache_timeout)
return flask.send_from_directory('../lib', filename, max_age=cache_timeout)

@app.route('/package/<path:filename>')
def package_static(filename):
Expand All @@ -209,7 +209,7 @@ def untrusted_static(filename):
if host_name.startswith('sandbox.'):
host_name = '.'.join(host_name.split('.')[1:]) # take off the sandbox.
run_js = run_js.replace('HOST_NAME_TEMPLATE',host_name)
return run_js, 200, {'content_type':'text/plain'}
return flask.Response(run_js, mimetype='text/javascript')

return flask.send_from_directory('../untrusted', filename)

Expand Down
1 change: 1 addition & 0 deletions lib/glow/api_misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
}
s += end
printarea.val(printarea.val()+s)
window.postMessage(JSON.stringify({ "glowscript.print" : s }), "*");
// Make the latest addition visible. Does not scroll if entire text is visible,
// and does not move the scroll bar more than is necessary.
printarea.scrollTop(printarea.scrollTop() + 10000)
Expand Down
Loading