Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Release 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstone committed Feb 27, 2017
1 parent 9afb3be commit 8cb1389
Show file tree
Hide file tree
Showing 74 changed files with 19 additions and 7 deletions.
Empty file modified .gitignore
100755 → 100644
Empty file.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "websocketpp"]
path = websocketpp
url = git://github.com/zaphoyd/websocketpp.git

Empty file modified CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified TODO
100755 → 100644
Empty file.
Empty file modified barnes.cpp.for
100755 → 100644
Empty file.
Empty file modified build.bat
100755 → 100644
Empty file.
Empty file modified cfsr/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified cfsr/convert/main.cpp
100755 → 100644
Empty file.
Empty file modified cfsr/example/main.cpp
100755 → 100644
Empty file.
Empty file modified cfsr/include/cfsr.h
100755 → 100644
Empty file.
Empty file modified cfsr/include/cfsr_ftp.h
100755 → 100644
Empty file.
Empty file modified cfsr/src/cfsr.c
100755 → 100644
Empty file.
Empty file modified cfsr/src/cfsr_ftp.c
100755 → 100644
Empty file.
Empty file modified cfsr/src/convert.c
100755 → 100644
Empty file.
1 change: 0 additions & 1 deletion data

This file was deleted.

Empty file modified float2/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified float2/float2.cpp
100755 → 100644
Empty file.
Empty file modified float2/float2.hpp
100755 → 100644
Empty file.
Empty file modified include/barnes.hpp
100755 → 100644
Empty file.
Empty file modified include/boat.hpp
100755 → 100644
Empty file.
Empty file modified include/browser.hpp
100755 → 100644
Empty file.
Empty file modified include/cfsr.hpp
100755 → 100644
Empty file.
Empty file modified include/csv.hpp
100755 → 100644
Empty file.
Empty file modified include/date.hpp
100755 → 100644
Empty file.
Empty file modified include/html.hpp
100755 → 100644
Empty file.
Empty file modified include/interface.hpp
100755 → 100644
Empty file.
Empty file modified include/json.hpp
100755 → 100644
Empty file.
Empty file modified include/kml.hpp
100755 → 100644
Empty file.
Empty file modified include/latlon.hpp
100755 → 100644
Empty file.
Empty file modified include/print.hpp
100755 → 100644
Empty file.
Empty file modified include/uv.hpp
100755 → 100644
Empty file.
Empty file modified include/voyage.hpp
100755 → 100644
Empty file.
Empty file modified include/ws_server_core.hpp
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion include/wsserver.hpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class WsServer : public websocketpp::server<websocketpp::config::asio>
set_open_handler(websocketpp::lib::bind(&WsServer::on_open, this, _1));
set_close_handler(websocketpp::lib::bind(&WsServer::on_close, this, _1));

listen(80); // Listen on port
listen(8000); // Listen on port
start_accept(); // Start the server accept loop
run(); // Start the ASIO io_service run loop
}
Expand Down
Empty file modified include/wssession.hpp
100755 → 100644
Empty file.
Empty file modified res/sailing.ico
100755 → 100644
Empty file.
Empty file modified res/sailing.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified res/sailing.rc
100755 → 100644
Empty file.
Empty file modified src/barnes1.for
100755 → 100644
Empty file.
Empty file modified src/boat.cpp
100755 → 100644
Empty file.
Empty file modified src/cfsr.cpp
100755 → 100644
Empty file.
Empty file modified src/cressman1.for
100755 → 100644
Empty file.
Empty file modified src/csv.cpp
100755 → 100644
Empty file.
Empty file modified src/interface.cpp
100755 → 100644
Empty file.
Empty file modified src/json.cpp
100755 → 100644
Empty file.
Empty file modified src/kml.cpp
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion src/main.cpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main()
"\n";

std::thread wsThread = launchWsServer(wsServer);
//launchURL("http://127.0.0.1:8000");
launchURL("http://127.0.0.1:8000");

//voyage = new Voyage(); // origin, destination

Expand Down
4 changes: 2 additions & 2 deletions src/voyage.cpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ bool Voyage::sail() // result: whether we reached our destination

// Output directory
std::stringstream userDir;
userDir << "output/" << loginID;
userDir << "www/output" ; //<< "/" << loginID;
std::stringstream projectDir;
projectDir << "output/" << loginID << "/" << runId;
projectDir << "www/output" ; //<< "/" << loginID << "/" << runId;

#ifdef _WIN32
CreateDirectory(projectDir.str().c_str(), NULL);
Expand Down
Empty file modified src/wsserver.cpp
100755 → 100644
Empty file.
1 change: 0 additions & 1 deletion www/data

This file was deleted.

Empty file modified www/dest.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions www/index.html
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@
font-family: 微軟正黑體, sans-serif;
}

a.button {
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;

text-decoration: none;
color: initial;
}

</style>

</head>
Expand Down
Empty file modified www/lib/jquery.min.js
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/images/layers-2x.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/lib/leaflet/images/layers.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/lib/leaflet/images/marker-icon-2x.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/lib/leaflet/images/marker-icon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/lib/leaflet/images/marker-shadow.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/lib/leaflet/leaflet-src.js
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/leaflet.css
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/leaflet.js
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/plugins/L.Graticule.js
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/plugins/jquery-sidebar.min.js
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/plugins/leaflet-omnivore.min.js
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/plugins/leaflet-sidebar.min.js
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/plugins/leaflet.contextmenu.css
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/plugins/leaflet.contextmenu.js
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/plugins/leaflet.toolbar.css
100755 → 100644
Empty file.
Empty file modified www/lib/leaflet/plugins/leaflet.toolbar.js
100755 → 100644
Empty file.
Empty file modified www/orig.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified www/src/main.js
100755 → 100644
Empty file.
Empty file modified www/src/map.js
100755 → 100644
Empty file.
Empty file modified www/src/session.js
100755 → 100644
Empty file.
3 changes: 2 additions & 1 deletion www/src/ws.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var WsClient = function()
{
var ws;
var url = "ws://140.122.146.123";
var url = "ws://127.0.0.1:8000";
var connected = false;

this.connect = function ()
Expand Down Expand Up @@ -100,6 +100,7 @@ function parseVoyage(v)
"張帆極限風速: " + v.windlimit + "m/s</br>" +
"每日張帆時數: " + v.sailopenhours + "hr</br>" +
"檔案名稱: " + v.name +
"</br><a href='output/" + v.name + ".csv' download class='button'>下載</a>" +
"</div>" +
outputlist.innerHTML;
}

0 comments on commit 8cb1389

Please sign in to comment.