rhodes 5.5.0.3 → 5.5.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationSingleton.java +20 -8
- data/lib/commonAPI/coreapi/ext/platform/iphone/cpp_based_impl/SystemImpl.mm +1 -2
- data/lib/commonAPI/coreapi/ext/system.xml +1 -1
- data/platform/android/build/android.rake +1 -0
- data/platform/iphone/Classes/AppManager/AppManager.m +44 -3
- data/platform/iphone/Classes/NativeView/RhoNativeViewManager.mm +4 -3
- data/platform/iphone/Classes/NativeView/RhoNativeViewManagerOC.h +1 -1
- data/platform/iphone/Classes/RhoMainView.h +8 -2
- data/platform/iphone/Classes/RhoUIWebView.h +75 -0
- data/platform/iphone/Classes/RhoUIWebView.m +142 -0
- data/platform/iphone/Classes/RhoWKWebView.h +87 -0
- data/platform/iphone/Classes/RhoWKWebView.m +187 -0
- data/platform/iphone/Classes/RhoWebView.h +72 -0
- data/platform/iphone/Classes/RhoWebViewFabrique.h +35 -0
- data/platform/iphone/Classes/RhoWebViewFabrique.m +87 -0
- data/platform/iphone/Classes/Rhodes.m +17 -6
- data/platform/iphone/Classes/Signature.old/SignatureDelegate.m +11 -4
- data/platform/iphone/Classes/Signature/SignatureDelegate.m +3 -4
- data/platform/iphone/Classes/SimpleMainView.h +7 -5
- data/platform/iphone/Classes/SimpleMainView.m +174 -179
- data/platform/iphone/Classes/SplitView/RightViewController.h +2 -2
- data/platform/iphone/Classes/SplitView/RightViewController.m +9 -10
- data/platform/iphone/Classes/SplitView/SplittedMainView.h +2 -3
- data/platform/iphone/Classes/SplitView/SplittedMainView.m +10 -7
- data/platform/iphone/Classes/TabbedMainView.h +2 -1
- data/platform/iphone/Classes/TabbedMainView.m +13 -10
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +21 -5
- data/platform/iphone/Classes/WebView.m +1 -1
- data/platform/iphone/RhoAppBaseLib/RhoAppBaseLib.xcodeproj/project.pbxproj +40 -3
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +4 -0
- data/platform/iphone/rbuild/iphone.rake +51 -0
- data/platform/shared/common/RhoNativeViewManager.h +9 -9
- data/platform/shared/common/RhodesApp.cpp +13 -1
- data/platform/shared/net/HttpServer.cpp +12 -2
- data/platform/shared/qt/rhodes/ExternalWebView.ui +11 -2
- data/platform/shared/qt/rhodes/QtMainWindow.cpp +9 -7
- data/platform/shared/qt/rhodes/QtMainWindow.ui +13 -4
- data/platform/shared/qt/rhodes/qkineticscroller.cpp +1245 -0
- data/platform/shared/qt/rhodes/qkineticscroller.h +165 -0
- data/platform/shared/qt/rhodes/qkineticscroller_p.h +168 -0
- data/platform/shared/qt/rhodes/qtflickgesture.cpp +696 -0
- data/platform/shared/qt/rhodes/qtflickgesture_p.h +107 -0
- data/platform/shared/qt/rhodes/qtscroller.cpp +2080 -0
- data/platform/shared/qt/rhodes/qtscroller.h +138 -0
- data/platform/shared/qt/rhodes/qtscroller_p.h +205 -0
- data/platform/shared/qt/rhodes/qtscrollerfilter.cpp +350 -0
- data/platform/shared/qt/rhodes/qtscrollerfilter_p.h +110 -0
- data/platform/shared/qt/rhodes/qtscrollerproperties.cpp +412 -0
- data/platform/shared/qt/rhodes/qtscrollerproperties.h +135 -0
- data/platform/shared/qt/rhodes/qtscrollerproperties_p.h +90 -0
- data/platform/shared/qt/rhodes/qtscrollevent.cpp +190 -0
- data/platform/shared/qt/rhodes/qtscrollevent.h +100 -0
- data/platform/shared/qt/rhodes/qtscrollevent_p.h +33 -0
- data/platform/shared/qt/rhodes/qwebviewkineticscroller.cpp +347 -0
- data/platform/shared/qt/rhodes/qwebviewkineticscroller.h +90 -0
- data/platform/shared/qt/rhodes/qwebviewselectionsuppressor.h +113 -0
- data/platform/shared/qt/rhodes/rhodes.pro +19 -0
- data/res/generators/rhogen.rb +307 -15
- data/res/generators/templates/application/app/Settings/err_sync.erb +12 -6
- data/res/generators/templates/application/app/Settings/home.erb +32 -17
- data/res/generators/templates/application/app/Settings/index.erb +55 -26
- data/res/generators/templates/application/app/Settings/javascript_index.html +111 -0
- data/res/generators/templates/application/app/Settings/javascript_login.html +65 -0
- data/res/generators/templates/application/app/Settings/login.erb +25 -19
- data/res/generators/templates/application/app/Settings/reset.erb +18 -9
- data/res/generators/templates/application/app/Settings/wait.erb +10 -7
- data/res/generators/templates/application/app/index.erb +32 -20
- data/res/generators/templates/application/app/javascript_index.html +66 -0
- data/res/generators/templates/application/app/javascript_index.js +250 -0
- data/res/generators/templates/application/app/layout.erb +12 -67
- data/res/generators/templates/application/javascript_build.yml +41 -0
- data/res/generators/templates/application/javascript_rhoconfig.txt +123 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap-theme.css +587 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap-theme.css.map +1 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap-theme.min.css +6 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap-theme.min.css.map +1 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap.css +6757 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap.css.map +1 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap.min.css +6 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/css/bootstrap.min.css.map +1 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.eot +0 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.svg +288 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff +0 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/js/bootstrap.js +2377 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/js/bootstrap.min.js +7 -0
- data/res/generators/templates/application/public/bootstrap-3.3.7/js/npm.js +13 -0
- data/res/generators/templates/application/public/css/style.css +3 -0
- data/res/generators/templates/application/public/jquery/jquery-3.1.1.min.js +4 -0
- data/res/generators/templates/application/public/jquery/jquery-3.1.1.min.map +1 -0
- data/res/generators/templates/application/rhoconfig.txt +16 -0
- data/res/generators/templates/iphone_project/Bremen7.xcodeproj/project.pbxproj +4 -0
- data/res/generators/templates/model/edit.erb +22 -21
- data/res/generators/templates/model/index.erb +24 -22
- data/res/generators/templates/model/javascript_edit.html +65 -0
- data/res/generators/templates/model/javascript_index.html +56 -0
- data/res/generators/templates/model/javascript_index.js +83 -0
- data/res/generators/templates/model/javascript_model.js +16 -0
- data/res/generators/templates/model/javascript_new.html +64 -0
- data/res/generators/templates/model/javascript_show.html +66 -0
- data/res/generators/templates/model/new.erb +22 -19
- data/res/generators/templates/model/show.erb +22 -14
- data/res/prebuild_base_app/app/index.erb +31 -18
- data/res/prebuild_base_app/app/layout.erb +11 -56
- data/version +1 -1
- metadata +59 -24
- data/res/generators/templates/application/public/css/android.css +0 -418
- data/res/generators/templates/application/public/css/iphone.css +0 -378
- data/res/generators/templates/application/public/css/jqmobile-patch.css +0 -62
- data/res/generators/templates/application/public/css/re_webkit.css +0 -736
- data/res/generators/templates/application/public/css/re_webkit_flat.css +0 -753
- data/res/generators/templates/application/public/css/windows_mobile.css +0 -327
- data/res/generators/templates/application/public/jqmobile/images/ajax-loader.gif +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icon-search-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-18-white.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-36-white.png +0 -0
- data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.4.5.min.css +0 -3
- data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.4.5.min.js +0 -10
- data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.4.5.min.map +0 -1
- data/res/generators/templates/application/public/jqmobile/jquery.mobile.structure-1.4.5.min.css +0 -3
- data/res/generators/templates/application/public/jqmobile/jquery.mobile.theme-1.4.5.min.css +0 -3
- data/res/generators/templates/application/public/jquery/jquery-1.9.1.min.js +0 -5
- data/res/generators/templates/application/public/jquery/jquery-1.9.1.min.map +0 -1
- data/res/generators/templates/application/public/js/application.js +0 -1
- data/res/generators/templates/application/public/js/jqmobile-patch.js +0 -466
- data/res/generators/templates/application/public/js/syncengine.js +0 -504
@@ -1,11 +1,17 @@
|
|
1
|
-
<div
|
1
|
+
<div class="container-fluid">
|
2
2
|
|
3
|
-
<div
|
4
|
-
<
|
3
|
+
<div class="row">
|
4
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
5
|
+
</div>
|
6
|
+
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
7
|
+
<h3 class="text-center">Sync error</h3>
|
8
|
+
</div>
|
9
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
10
|
+
</div>
|
5
11
|
</div>
|
6
12
|
|
7
|
-
<div
|
8
|
-
|
13
|
+
<div class="text-center alert alert-danger">
|
14
|
+
<%%= @params['msg'] %>
|
9
15
|
</div>
|
10
16
|
|
11
|
-
</div>
|
17
|
+
</div>
|
@@ -1,21 +1,36 @@
|
|
1
|
-
<div
|
1
|
+
<div class="container-fluid">
|
2
2
|
|
3
|
-
<% if @rhoconnectclient_ext %>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
3
|
+
<% if @rhoconnectclient_ext %>
|
4
|
+
<div class="row">
|
5
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
6
|
+
<%% if SyncEngine::logged_in > 0 %>
|
7
|
+
<a href="<%%= url_for :controller => :Settings, :action => :do_sync %>" class="btn btn-default btn-sm pull-left">
|
8
|
+
Sync
|
9
|
+
</a>
|
10
|
+
<%% end %>
|
11
|
+
</div>
|
12
|
+
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
13
|
+
<h3 class="text-center">Home</h3>
|
14
|
+
</div>
|
15
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
16
|
+
<%% if SyncEngine::logged_in > 0 %>
|
17
|
+
<a href="<%%= url_for :controller => :Settings, :action => :logout %" class="btn btn-default btn-sm pull-right">
|
18
|
+
Logout
|
19
|
+
</a>
|
20
|
+
<%% else %>
|
21
|
+
<a href="<%%= url_for :controller => :Settings, :action => :login %>" class="btn btn-default btn-sm pull-right">Login</a>
|
22
|
+
<%% end %>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<% end %>
|
26
|
+
|
27
|
+
<div class="row">
|
28
|
+
<div class="list-group">
|
29
|
+
<a href="#" class="list-group-item">
|
30
|
+
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
|
31
|
+
Add link here...
|
32
|
+
</a>
|
33
|
+
</div>
|
19
34
|
</div>
|
20
35
|
|
21
36
|
</div>
|
@@ -1,33 +1,62 @@
|
|
1
|
-
<div
|
1
|
+
<div class="container-fluid">
|
2
2
|
|
3
|
-
<div
|
4
|
-
<
|
3
|
+
<div class="row">
|
4
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
5
|
+
</div>
|
6
|
+
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
7
|
+
<h3 class="text-center">Settings</h3>
|
8
|
+
</div>
|
9
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
10
|
+
</div>
|
5
11
|
</div>
|
6
12
|
|
7
|
-
<div
|
8
|
-
<
|
13
|
+
<div class="row">
|
14
|
+
<div class="list-group">
|
15
|
+
|
9
16
|
<%% if @msg %>
|
10
|
-
|
17
|
+
<div class="alert alert-danger"><%%= @msg %></div>
|
11
18
|
<%% end %>
|
12
19
|
|
13
|
-
<% if @rhoconnectclient_ext %>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
<
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
20
|
+
<% if @rhoconnectclient_ext %>
|
21
|
+
|
22
|
+
<li class="list-group-item">
|
23
|
+
<div class="row">
|
24
|
+
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
|
25
|
+
<span pull-right><strong>Client ID:</strong></span>
|
26
|
+
</div>
|
27
|
+
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
28
|
+
<%%= Rhom::Rhom::client_id %>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</li>
|
32
|
+
|
33
|
+
<a href="<%%= url_for :action => :reset %>" class="list-group-item">
|
34
|
+
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
|
35
|
+
Reset Database
|
36
|
+
</a>
|
37
|
+
|
38
|
+
<a href="<%%= url_for :action => :do_sync %>" class="list-group-item">
|
39
|
+
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
|
40
|
+
Perform Sync
|
41
|
+
</a>
|
42
|
+
|
43
|
+
<%% if Rho::RhoConnectClient.isLoggedIn %>
|
44
|
+
<a href="<%%= url_for :action => :logout %>" class="list-group-item">
|
45
|
+
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
|
46
|
+
Logout
|
47
|
+
</a>
|
48
|
+
|
49
|
+
<%% else %>
|
50
|
+
<a href="<%%= url_for :action => :login %>" class="list-group-item">
|
51
|
+
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
|
52
|
+
Login
|
53
|
+
</a>
|
54
|
+
<%% end %>
|
55
|
+
|
56
|
+
<% end %>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
|
32
60
|
</div>
|
33
|
-
|
61
|
+
|
62
|
+
</div>
|
@@ -0,0 +1,111 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title><%= class_name %></title>
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
|
8
|
+
<link rel="stylesheet" href="/public/bootstrap-3.3.7/css/bootstrap.min.css">
|
9
|
+
<link rel="stylesheet" href="/public/css/style.css">
|
10
|
+
|
11
|
+
<script type="text/javascript" src="/public/jquery/jquery-3.1.1.min.js"></script>
|
12
|
+
<script type="text/javascript" src="/public/bootstrap-3.3.7/js/bootstrap.min.js"></script>
|
13
|
+
|
14
|
+
<script type="text/javascript" src="/public/api/rhoapi-modules.js"></script>
|
15
|
+
<script type="text/javascript" src="/public/api/rhoapi-modules-ORM.js"></script>
|
16
|
+
<script type="text/javascript" src="/public/api/rhoapi-modules-ORMHelper.js"></script>
|
17
|
+
<script type="text/javascript" src="/public/api/rhoapi-modules-Ruby-RunTime.js"></script>
|
18
|
+
|
19
|
+
<script type="text/javascript" src="../index.js"></script>
|
20
|
+
</head>
|
21
|
+
|
22
|
+
<body>
|
23
|
+
|
24
|
+
<div class="container-fluid">
|
25
|
+
|
26
|
+
<div class="row page-title">
|
27
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
28
|
+
<a id="back" href="#" class="btn btn-default btn-sm pull-left">Back</a>
|
29
|
+
</div>
|
30
|
+
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
31
|
+
<h3 class="text-center">Settings</h3>
|
32
|
+
</div>
|
33
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="alert" class="alert hidden">
|
38
|
+
<strong id="title"></strong> <span id="text"></span>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="row">
|
42
|
+
<% if @rhoconnectclient_ext %>
|
43
|
+
<div id="rhoconnectClientOptions" class="list-group">
|
44
|
+
|
45
|
+
<li class="list-group-item">
|
46
|
+
<div class="row">
|
47
|
+
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
|
48
|
+
<span pull-right><strong>Client ID:</strong></span>
|
49
|
+
</div>
|
50
|
+
<div id="clientId" class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
</li>
|
54
|
+
|
55
|
+
<li id="resetDatabaseItem" class="list-group-item">
|
56
|
+
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
|
57
|
+
<span class=" text-danger">Reset Database</span>
|
58
|
+
</li>
|
59
|
+
|
60
|
+
<li id="performSyncItem" class="list-group-item">
|
61
|
+
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
|
62
|
+
Perform Sync
|
63
|
+
</li>
|
64
|
+
|
65
|
+
<li id="logoutItem" class="list-group-item">
|
66
|
+
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
|
67
|
+
Logout
|
68
|
+
</li>
|
69
|
+
|
70
|
+
<a id="loginItem" href="login.html" class="list-group-item">
|
71
|
+
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
|
72
|
+
Login
|
73
|
+
</a>
|
74
|
+
|
75
|
+
</div>
|
76
|
+
<% end %>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<div class="modal" id="resetDatabaseModalDialog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
82
|
+
<div class="modal-dialog" role="document">
|
83
|
+
<div class="modal-content">
|
84
|
+
<div class="modal-header">
|
85
|
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
|
86
|
+
aria-hidden="true">×</span></button>
|
87
|
+
<h4 class="modal-title" id="myModalLabel">Reset Database</h4>
|
88
|
+
</div>
|
89
|
+
<div class="modal-body">
|
90
|
+
<div class="text-center alert alert-warning">
|
91
|
+
<h4 class="text-center">Are you sure?</h4>
|
92
|
+
|
93
|
+
<p>Resetting removes all objects from your device.</p>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
<div class="modal-footer">
|
97
|
+
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
98
|
+
<button type="button" class="btn btn-warning" data-dismiss="modal">Confirm</button>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
|
104
|
+
<script>
|
105
|
+
window.addEventListener("load", function () {
|
106
|
+
var page = new App.SettingsPage();
|
107
|
+
page.init();
|
108
|
+
});
|
109
|
+
</script>
|
110
|
+
</body>
|
111
|
+
</html>
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title><%= class_name %></title>
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
|
8
|
+
<link rel="stylesheet" href="/public/bootstrap-3.3.7/css/bootstrap.min.css">
|
9
|
+
<link rel="stylesheet" href="/public/css/style.css">
|
10
|
+
|
11
|
+
<script type="text/javascript" src="/public/jquery/jquery-3.1.1.min.js"></script>
|
12
|
+
<script type="text/javascript" src="/public/bootstrap-3.3.7/js/bootstrap.min.js"></script>
|
13
|
+
|
14
|
+
<script type="text/javascript" src="/public/api/rhoapi-modules.js"></script>
|
15
|
+
<script type="text/javascript" src="/public/api/rhoapi-modules-ORM.js"></script>
|
16
|
+
<script type="text/javascript" src="/public/api/rhoapi-modules-ORMHelper.js"></script>
|
17
|
+
<script type="text/javascript" src="/public/api/rhoapi-modules-Ruby-RunTime.js"></script>
|
18
|
+
|
19
|
+
<script type="text/javascript" src="../index.js"></script>
|
20
|
+
</head>
|
21
|
+
|
22
|
+
<body>
|
23
|
+
<div class="container-fluid">
|
24
|
+
|
25
|
+
<div class="row page-title">
|
26
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
27
|
+
<a id="back" href="#" class="btn btn-default btn-sm pull-left">Back</a>
|
28
|
+
</div>
|
29
|
+
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
30
|
+
<h3 class="text-center">Login</h3>
|
31
|
+
</div>
|
32
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="alert" class="alert hidden">
|
37
|
+
<strong id="title"></strong> <span id="text"></span>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<form class="form">
|
41
|
+
<div class="form-group">
|
42
|
+
<label for="username">Login</label>
|
43
|
+
<input type="text" id="username" name="username" placeholder="username" class="form-control"/>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div class="form-group">
|
47
|
+
<label for="password">Password</label>
|
48
|
+
<input type="password" id="password" name="password" placeholder="Password" class="form-control"/>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<button id="loginBtn" type="button" class="btn btn-success btn-block">Login</button>
|
52
|
+
</form>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<script>
|
57
|
+
window.addEventListener("load", function () {
|
58
|
+
var page = new App.LoginPage();
|
59
|
+
page.init();
|
60
|
+
});
|
61
|
+
</script>
|
62
|
+
|
63
|
+
</body>
|
64
|
+
|
65
|
+
</html>
|
@@ -1,25 +1,31 @@
|
|
1
|
-
<div
|
1
|
+
<div class="container-fluid">
|
2
2
|
|
3
|
-
<div
|
4
|
-
<
|
3
|
+
<div class="row">
|
4
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
5
|
+
</div>
|
6
|
+
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
7
|
+
<h3 class="text-center">Login</h3>
|
8
|
+
</div>
|
9
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
10
|
+
</div>
|
5
11
|
</div>
|
6
12
|
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<%% end %>
|
13
|
+
<form method="POST" action="<%%= url_for :action => :do_login %>">
|
14
|
+
<%% if @msg %>
|
15
|
+
<div class="alert alert-warning"><%%= @msg %></div>
|
16
|
+
<%% end %>
|
12
17
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
<div class="form-group">
|
19
|
+
<label for="login">Login</label>
|
20
|
+
<input type="text" id="login" name="login" <%%= placeholder("Login") %> class="form-control" />
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<div class="form-group">
|
24
|
+
<label for="password">Password</label>
|
25
|
+
<input type="password" id="password" name="password" <%%= placeholder("Password") %> class="form-control" />
|
26
|
+
</div>
|
27
|
+
|
28
|
+
<button type="submit" class="btn btn-success btn-block">Login</button>
|
29
|
+
</form>
|
24
30
|
|
25
31
|
</div>
|
@@ -1,14 +1,23 @@
|
|
1
|
-
<div
|
1
|
+
<div class="container-fluid">
|
2
2
|
|
3
|
-
<div
|
4
|
-
<
|
5
|
-
|
6
|
-
|
3
|
+
<div class="row">
|
4
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
5
|
+
<h3><a href="<%%= url_for :action => :index %>" class="btn btn-default btn-sm pull-left">Cancel</a></h3>
|
6
|
+
</div>
|
7
|
+
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
8
|
+
<h3 class="text-center">Reset Database</h3>
|
9
|
+
</div>
|
10
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
11
|
+
<h3><a href="<%%= url_for :action => :do_reset %>" class="btn btn-danger btn-sm pull-right">Confirm</a></h3>
|
12
|
+
</div>
|
7
13
|
</div>
|
8
14
|
|
9
|
-
|
10
|
-
|
11
|
-
<
|
15
|
+
|
16
|
+
<div class="text-center alert alert-danger">
|
17
|
+
<h4 class="text-center">Are you sure?</h4>
|
18
|
+
|
19
|
+
<p>Resetting removes all objects from your device.</p>
|
12
20
|
</div>
|
13
21
|
|
14
|
-
|
22
|
+
|
23
|
+
</div>
|
@@ -1,10 +1,13 @@
|
|
1
|
-
<div
|
1
|
+
<div class="container-fluid">
|
2
2
|
|
3
|
-
<div
|
4
|
-
<
|
3
|
+
<div class="row">
|
4
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
5
|
+
</div>
|
6
|
+
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
|
7
|
+
<h3 class="text-center">Wait</h3>
|
8
|
+
</div>
|
9
|
+
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
|
10
|
+
</div>
|
5
11
|
</div>
|
6
12
|
|
7
|
-
|
8
|
-
</div>
|
9
|
-
|
10
|
-
</div>
|
13
|
+
</div>
|