Revert "Renaming"

This reverts commit 28730cce83.
This commit is contained in:
ori agranat
2019-03-08 15:55:36 +02:00
parent 063773bd1b
commit 882d8ba51d
5 changed files with 3 additions and 11923 deletions

View File

@@ -12,9 +12,8 @@ define("port", default=8888, help="run on the given port", type=int)
class ChameleonApplication(tornado.web.Application):
def __init__(self):
handlers = [(r"/", MainHandler),
(r"/websocket", ChameleonWebSocket),
#always keep websocket up here and not under any handler
(r"/(.*)", tornado.web.StaticFileHandler, {'path': os.path.join(os.path.dirname(__file__), "../../Site")}),
(r"/websocket", ChameleonWebSocket),
(r"/CSS/(.*)", tornado.web.StaticFileHandler, {'path': os.path.join(os.path.dirname(__file__), "../../Site/CSS")}),
(r"/JS/(.*)", tornado.web.StaticFileHandler, {'path': os.path.join(os.path.dirname(__file__), "../../Site/JS")}),
(r"/assets/(.*)", tornado.web.StaticFileHandler, {'path': os.path.join(os.path.dirname(__file__), "../../Site/assets")})]

View File

@@ -6,7 +6,6 @@
<link rel="stylesheet" type="text/css" href="CSS/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/icons/css/all.css">
<link rel="stylesheet" type="text/css" href="CSS/main.css" >
<script src="JS/vue.js"></script>
</head>
<body>
<div class="sidenav">

View File

@@ -1,6 +1,6 @@
var ws = new WebSocket("ws://localhost:8888/websocket");
let ws = new WebSocket("ws://localhost:8888/websocket");
// ws.onopen = function () {
// ws.send("hello");
// ws.send("hello");
// }
// ws.onmessage = function (ev) {
// alert(ev.data);

File diff suppressed because it is too large Load Diff

6
Site/JS/vue.min.js vendored

File diff suppressed because one or more lines are too long