Преглед изворни кода

Updated address/port to kompiler.org, removed JS minification

Taddeus Kroes пре 12 година
родитељ
комит
bab01c9dae
4 измењених фајлова са 6 додато и 8 уклоњено
  1. 2 5
      Makefile
  2. 2 1
      index.html
  3. 1 1
      monitor.coffee
  4. 1 1
      server.py

+ 2 - 5
Makefile

@@ -1,4 +1,4 @@
-ALL := scripts.js
+ALL := monitor.js
 
 .PHONY: all
 
@@ -7,8 +7,5 @@ all: $(ALL)
 %.js: %.coffee
 	coffee --compile --output $(@D) $<
 
-scripts.js: json2.js monitor.js
-	cat $^ | yui-compressor --type js --output $@
-
 clean:
-	rm -f $(ALL) $(patsubst %.coffee,%.js,$(wildcard *.coffee))
+	rm -f $(ALL)

+ 2 - 1
index.html

@@ -34,6 +34,7 @@
                     <span id="disk" class="right">-</span>
             </div>
         </div>
-        <script src="scripts.js" type="text/javascript"></script>
+        <script src="json2.js" type="text/javascript"></script>
+        <script src="monitor.js" type="text/javascript"></script>
     </body>
 </html>

+ 1 - 1
monitor.coffee

@@ -5,7 +5,7 @@ values = (e for e in el('content').getElementsByTagName('span')) \
 
 connect = ->
     val.innerHTML = 'Connecting...' for val in values
-    ws = new WebSocket 'ws://localhost:12345'
+    ws = new WebSocket 'ws://kompiler.org:8100'
 
     ws.onopen = ->
         console.log 'open'

+ 1 - 1
server.py

@@ -63,7 +63,7 @@ def stats():
 if __name__ == '__main__':
     server = websocket(extensions=[WebkitDeflateFrame()])
     server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
-    server.bind(('', 12345))
+    server.bind(('', 8100))
     server.listen(5)
     clients = []