mv /client to /js
This commit is contained in:
parent
a059171ca9
commit
10c65561ed
@ -155,7 +155,7 @@ def main():
|
|||||||
|
|
||||||
app = SharedDataMiddleware(isso.wsgi_app, {
|
app = SharedDataMiddleware(isso.wsgi_app, {
|
||||||
'/static': join(dirname(__file__), 'static/'),
|
'/static': join(dirname(__file__), 'static/'),
|
||||||
'/client': join(dirname(__file__), 'client/')
|
'/js': join(dirname(__file__), 'js/')
|
||||||
})
|
})
|
||||||
|
|
||||||
run_simple(conf.get('server', 'host'), conf.getint('server', 'port'),
|
run_simple(conf.get('server', 'host'), conf.getint('server', 'port'),
|
||||||
|
@ -15,11 +15,11 @@ define(["lib/q"], function(Q) {
|
|||||||
// guess Isso API location
|
// guess Isso API location
|
||||||
var js = document.getElementsByTagName("script");
|
var js = document.getElementsByTagName("script");
|
||||||
for (var i = 0; i < js.length; i++) {
|
for (var i = 0; i < js.length; i++) {
|
||||||
if (js[i].src.match("/client/require\\.js$")) {
|
if (js[i].src.match("/js/require\\.js$")) {
|
||||||
endpoint = js[i].src.substring(0, js[i].src.length - 18);
|
endpoint = js[i].src.substring(0, js[i].src.length - 14);
|
||||||
break;
|
break;
|
||||||
} else if (js[i].src.match("/client/embed\\.js$")) {
|
} else if (js[i].src.match("/js/embed\\.js$")) {
|
||||||
endpoint = js[i].src.substring(0, js[i].src.length - 16);
|
endpoint = js[i].src.substring(0, js[i].src.length - 12);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -4,8 +4,8 @@
|
|||||||
<title>Hello World</title>
|
<title>Hello World</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="/static/style.css" />
|
<link rel="stylesheet" href="/static/style.css" />
|
||||||
<!--<script src="/client/embed.js"></script>-->
|
<!--<script src="/js/embed.js"></script>-->
|
||||||
<script data-main="/client/embed" src="/client/require.js"></script>
|
<script data-main="/js/main" src="/js/require.js"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
Loading…
Reference in New Issue
Block a user