You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2018/01/23 20:24:39 UTC
[whimsy] branch master updated (69775d6 -> cd88536)
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git.
from 69775d6 Sync versions with www/board/agenda/package.json
new cbf334c force es5 for visitors using browsers that don't support service workers
new cd88536 use splat operator for better es2015 conversion
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
www/board/agenda/views/buttons/post.js.rb | 2 +-
www/board/agenda/views/main.html.rb | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
--
To stop receiving notification emails like this one, please contact
rubys@apache.org.
[whimsy] 01/02: force es5 for visitors using browsers that don't
support service workers
Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit cbf334c4a01b1432ae09b091123e2cba346e0bd0
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Jan 23 14:40:57 2018 -0500
force es5 for visitors using browsers that don't support service workers
---
www/board/agenda/views/main.html.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/www/board/agenda/views/main.html.rb b/www/board/agenda/views/main.html.rb
index cec3b8f..600ccce 100644
--- a/www/board/agenda/views/main.html.rb
+++ b/www/board/agenda/views/main.html.rb
@@ -10,7 +10,12 @@ _html do
_div_.main!
- _script src: "../app.js?#{@appmtime}", lang: 'text/javascript'
+ # force es5 for non-test visitors. Visitors using browsers that support
+ # ServiceWorkers will receive es2017 versions of the script via
+ # views/bootstrap.html.erb.
+ app = (ENV['RACK_ENV'] == 'test' ? 'app' : 'app-es5')
+ _script src: "../#{app}.js?#{@appmtime}", lang: 'text/javascript'
+
_.render '#main' do
_Main server: @server, page: @page
end
--
To stop receiving notification emails like this one, please contact
rubys@apache.org.
[whimsy] 02/02: use splat operator for better es2015 conversion
Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit cd88536a0dc52b9ff684254d21e577e57aa4f42a
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Tue Jan 23 15:24:08 2018 -0500
use splat operator for better es2015 conversion
---
www/board/agenda/views/buttons/post.js.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/board/agenda/views/buttons/post.js.rb b/www/board/agenda/views/buttons/post.js.rb
index 3625d27..0689514 100644
--- a/www/board/agenda/views/buttons/post.js.rb
+++ b/www/board/agenda/views/buttons/post.js.rb
@@ -242,7 +242,7 @@ class Post < Vue
reader = FileReader.new
def reader.onload(event)
result = event.target.result
- base64 = btoa(String.fromCharCode.apply(null, Uint8Array.new(result)))
+ base64 = btoa(String.fromCharCode(*Uint8Array.new(result)))
post 'financials', spreadsheet: base64 do |response|
report = @report
report += "\n" if report and not report.end_with? "\n"
--
To stop receiving notification emails like this one, please contact
rubys@apache.org.