Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Start supporting for new API version. #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
/config.js
config.js
.idea
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing NewLine / LineFeed on line 3 (or CR/LF if using Windows).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

10 changes: 5 additions & 5 deletions js/app/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$scope.keiraTag = "v" + $scope.keiraVersion;

// API min required version
$scope.apiRequiredVersion = 0.6;
$scope.apiRequiredVersion = 0.8;

// API version
$http.get(app.api + "api")
Expand All @@ -35,10 +35,10 @@

// Database world version
$http.get(app.api + "version")
.success(function (data, status, header, config) {
$scope.databaseVersion = data[0].db_version;
$scope.coreVersion = data[0].core_version;
$scope.coreRevision = data[0].core_revision;
.success(function (response, status, header, config) {
$scope.databaseVersion = response.db_version;
$scope.coreVersion = response.core_version;
$scope.coreRevision = response.core_revision;
})
.error(function (data, status, header, config) {
console.log("[ERROR] /version/ $http.get request failed");
Expand Down
2 changes: 1 addition & 1 deletion partials/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</tr>
<tr>
<td>API version: </td>
<td><strong>{{ apiVersion }}</strong></td>
<td><strong>{{ apiVersion }} ({{ apiBranch }})</strong></td>
</tr>
<tr>
<td>DB version: </td>
Expand Down