whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: fix some eslint detected errors
Date Sun, 06 May 2018 23:57:23 GMT
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


The following commit(s) were added to refs/heads/master by this push:
     new fade37c  fix some eslint detected errors
fade37c is described below

commit fade37cad15ce4b729d9ebeb988f619b676d29fc
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun May 6 19:56:59 2018 -0400

    fix some eslint detected errors
---
 www/board/agenda/views/layout/main.js.rb        | 1 -
 www/board/agenda/views/models/events.js.rb      | 3 ---
 www/board/agenda/views/models/pending.js.rb     | 2 +-
 www/board/agenda/views/pages/action-items.js.rb | 4 +---
 www/board/agenda/views/pages/adjournment.js.rb  | 2 +-
 5 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/www/board/agenda/views/layout/main.js.rb b/www/board/agenda/views/layout/main.js.rb
index d1091d8..f3585ea 100644
--- a/www/board/agenda/views/layout/main.js.rb
+++ b/www/board/agenda/views/layout/main.js.rb
@@ -17,7 +17,6 @@ class Main < Vue
 
       _Header item: @item
 
-      view = nil
       _main do
         if Agenda.index[0].text # don't display page while bootstrapping
           Vue.createElement(@item.view, props: {item: @item}, ref: 'view')
diff --git a/www/board/agenda/views/models/events.js.rb b/www/board/agenda/views/models/events.js.rb
index 5430e12..1843e89 100644
--- a/www/board/agenda/views/models/events.js.rb
+++ b/www/board/agenda/views/models/events.js.rb
@@ -144,9 +144,6 @@ class Events
   def self.connectToServer(check_for_updates)
     return if @@socket
 
-    socket_url = window.location.protocol.sub('http', 'ws') + "//" + 
-        window.location.hostname + ':34234/'
-
     @@socket = WebSocket.new(Server.websocket)
 
     def @@socket.onopen(event)
diff --git a/www/board/agenda/views/models/pending.js.rb b/www/board/agenda/views/models/pending.js.rb
index f60d824..2b9147d 100644
--- a/www/board/agenda/views/models/pending.js.rb
+++ b/www/board/agenda/views/models/pending.js.rb
@@ -131,7 +131,7 @@ class Pending
 
     def request.onupgradeneeded(event)
       db = event.target.result
-      objectstore = db.createObjectStore('pending', keyPath: 'key')
+      db.createObjectStore('pending', keyPath: 'key')
     end
   end
 
diff --git a/www/board/agenda/views/pages/action-items.js.rb b/www/board/agenda/views/pages/action-items.js.rb
index 34f5e0b..ce23803 100644
--- a/www/board/agenda/views/pages/action-items.js.rb
+++ b/www/board/agenda/views/pages/action-items.js.rb
@@ -11,8 +11,6 @@ class ActionItems < Vue
   def render
     first = true
 
-    updates = Pending.status.keys()
-
     _section.flexbox do
       _pre.report do
         @@item.actions.each do |action|
@@ -215,7 +213,7 @@ class ActionItems < Vue
 
     @disabled = true
     post 'status', data do |pending|
-      jQuery(~updateStatusForm).modal(:hide)
+      jQuery('#updateStatusForm').modal(:hide)
       @disabled = false
       Pending.load pending
     end
diff --git a/www/board/agenda/views/pages/adjournment.js.rb b/www/board/agenda/views/pages/adjournment.js.rb
index b7c3c24..1ea1d7a 100644
--- a/www/board/agenda/views/pages/adjournment.js.rb
+++ b/www/board/agenda/views/pages/adjournment.js.rb
@@ -284,7 +284,7 @@ class TodoRemove < Vue
 
     _button.checklist.btn.btn_default 'Submit', onClick: self.submit,
       disabled: @disabled or people.length == 0 or
-        not people.any? {|person| @checked[persion.id]}
+        not people.any? {|person| @checked[person.id]}
   end
 
   def submit()

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.

Mime
View raw message