Skip to content

Commit e329c15

Browse files
daviesianmeredydd
authored andcommitted
Anvil App Server 1.9.0
- Support specifying a Google refresh token for App Files and GMail - Support falling back to HTTP when websockets are not available (eg search engine indexing) - Improved client-side Plotly support - Maintain compatibility with apps produced by recent versions of the Anvil Editor - Skulpt (client-side Python) updates Based-on: anvil 21f3eb0f202aff86452071c4e140bf8c8f98fd28
1 parent cd26105 commit e329c15

File tree

154 files changed

+30823
-24412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+30823
-24412
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ The standalone app server supports the following options:
9292
--google-client-id CLIENT_ID Client ID to use for Google authentication
9393
--google-client-secret CLIENT_SECRET Client secret to use for Google authentication
9494
--google-api-key KEY API key to use for Google integration
95+
--google-refresh-token TOKEN Refresh token to use for delegated Google access (eg App Files)
9596
--facebook-app-id APP_ID App ID to use for Facebook authentication
9697
--facebook-app-secret APP_SECRET App secret to use for Facebook authentication
9798
--microsoft-app-id APP_ID App ID to use for Microsoft authentication
@@ -325,6 +326,11 @@ If your app uses Anvil's [Google Service](https://anvil.works/docs/integrations/
325326

326327
If your app uses Anvil's [Google Service](https://anvil.works/docs/integrations/google), for login or anything else, you will need a client secret for Google's API. Specify it with this option.
327328

329+
#### google-refresh-token
330+
331+
If your app uses [App Files](https://anvil.works/docs/integrations/google/google-drive#drive-app-files) from Anvil's [Google Service](https://anvil.works/docs/integrations/google), it needs credentials to access those App Files -- specifically, a Refresh Token (corresponding to the Google OAuth Client ID and Secret) with access to your app's App Files.
332+
333+
328334
#### facebook-app-id
329335

330336
If your app uses Anvil's [Facebook Service](https://anvil.works/docs/integrations/facebook), for login or anything else, you will need an app ID for Facebook's API. Specify it with this option.

client/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"base64DecToStr": "readonly",
4343
"base64EncStr": "readonly",
4444
"Sk": "readonly",
45-
"ANVIL_IN_DESIGNER": "readonly"
45+
"ANVIL_IN_DESIGNER": "readonly",
46+
"BUILD_TIME": "readonly"
4647
},
4748
"ignorePatterns": [
4849
"lib/*.js"

client/block-app.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html lang="en" class="no-js runner">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<title>App Not Accessible</title>
8+
9+
<link rel="stylesheet" href="{{cdn-origin}}/runtime/css/bootstrap.css?buildTime=0">
10+
<link rel="stylesheet" href="{{cdn-origin}}/runtime/css/bootstrap-theme.min.css?buildTime=0">
11+
12+
<script src="{{cdn-origin}}/runtime/node_modules/html5-boilerplate/dist/js/vendor/modernizr-3.8.0.min.js?buildTime=0"></script>
13+
14+
15+
<script src="{{cdn-origin}}/runtime/node_modules/jquery/dist/jquery.min.js?buildTime=0"></script>
16+
<script src="{{cdn-origin}}/runtime/node_modules/bootstrap/dist/js/bootstrap.min.js?buildTime=0"></script>
17+
18+
</head>
19+
<body>
20+
21+
<div class="panel panel-default warning-not-found" style="margin: 20%">
22+
<div class="panel-body">
23+
<div class="alert alert-danger" role="alert"><b>This app is blocked.</b></div>
24+
<p>
25+
This app cannot be served at this time. This is because:
26+
</p>
27+
<p>
28+
<code>{{anvil-error}}</code>
29+
</p>
30+
</div>
31+
</div>
32+
33+
</body>
34+
</html>

client/css/_alert.css

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)