Changeset - 708cdf7c4dad
[Not reviewed]
default
0 2 0
Drew Perttula - 6 years ago 2019-05-28 06:56:07
drewp@bigasterisk.com
types and import fixes. jquery dep for reconnecting websocket display
Ignore-this: f74f3abcc899abfe0da9c0e1497fd73e
2 files changed with 6 insertions and 5 deletions:
0 comments (0 inline, 0 general)
light9/greplin_cyclone.py
Show inline comments
 
from typing import List
 

	
 
import cyclone.web
 

	
 
import greplin.scales.twistedweb, greplin.scales.formats
 
import greplin.scales.twistedweb, greplin.scales.formats, greplin.scales.util
 
from greplin import scales
 

	
 

	
 
# Like scales.twistedweb.StatsResource, but modified for cyclone. May
 
# be missing features.
 
class StatsForCyclone(cyclone.web.RequestHandler):
 

	
 
    def get(self):
 
        parts = []
 
        statDict = greplin.scales.twistedweb.util.lookup(
 
            scales.getStats(), parts)
 
        parts: List[str] = []
 
        statDict = greplin.scales.util.lookup(scales.getStats(), parts)
 

	
 
        if statDict is None:
 
            self.set_status(404)
 
            self.write("Path not found.")
 
            return
 

	
light9/web/live/elements.html
Show inline comments
 
@@ -6,13 +6,13 @@
 
<link rel="import" href="/lib/iron-ajax/iron-ajax.html">
 

	
 
<link rel="import" href="../rdfdb-synced-graph.html">
 
<link rel="import" href="../resource-display.html">
 
<link rel="import" href="../light9-color-picker.html">
 
<link rel="import" href="../edit-choice.html">
 

	
 
<script src="web/lib/jquery/dist/jquery.slim.min.js"></script>
 
<dom-module id="light9-listbox">
 
  <template>
 
    <style>
 
     paper-listbox {
 
         --paper-listbox-background-color: none;
 
         --paper-listbox-color: white;
0 comments (0 inline, 0 general)