Skip to content

Commit

Permalink
Added: maxSyncSize property to info method.
Browse files Browse the repository at this point in the history
Fixed: changed png images to svg.
  • Loading branch information
nero120 committed Oct 3, 2016
1 parent ddce990 commit c128de3
Show file tree
Hide file tree
Showing 9 changed files with 162 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ xBrowserSync.API.Config = function() {
},

// Current version for the API routes
version: '1.0.2'
version: '1.0.3'
};
};

Expand Down
7 changes: 5 additions & 2 deletions docs/css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ h1 {
font-size: 4em;
font-weight: 700;
line-height: 2.5em;
background: url(../img/logo-150.png) no-repeat;
background: url(../img/logo.svg) no-repeat;
background-size: 150px;
width: 670px;
height: 155px;
padding: 0 0 0 200px;
margin: auto;

@media (max-width: $width-tablet) {
font-size: 2.5em;
text-align: center;
background-position: 80px 0;
width: 295px;
height: 220px;
Expand Down Expand Up @@ -97,7 +99,8 @@ pre, code {
.navbar-brand {
text-indent: -9999px;
display: block;
background-image: url(../img/icon-nav.png);
background-image: url(../img/icon.svg);
background-size: 50px;
width: 50px;
height: 50px;
padding: 0;
Expand Down
Binary file removed docs/img/icon-nav.png
Binary file not shown.
43 changes: 43 additions & 0 deletions docs/img/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/img/logo-150.png
Binary file not shown.
107 changes: 107 additions & 0 deletions docs/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,14 @@ <h4>Get Service Information</h4>
<pre>{
"status":1,
"message":"",
"version":"1.0.0"
"version":"1.0.0",
"maxSyncSize":204800
}</pre>
<ul>
<li><strong>status:</strong> Current service status code. 1 = Online; 2 = Offline; 3 = Not accepting new syncs.</li>
<li><strong>message:</strong> Service information message.</li>
<li><strong>version:</strong> API version service is using.</li>
<li><strong>maxSyncSize:</strong> Maximum sync size (in bytes) allowed by the service.</li>
</ul>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion info.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ xBrowserSync.API.Info = function() {
var serviceInfo = {
status: global.serviceStatuses.offline,
message: config.status.message,
version: config.version
version: config.version,
maxSyncSize: config.maxSyncSize
};

if (!!config.status.offline) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "xbrowsersync-api",
"description": "The REST API service component of the xBrowserSync application.",
"version": "1.0.1",
"version": "1.0.3",
"author": "xBrowserSync",
"license": "MIT",
"main": "api.js",
Expand Down

0 comments on commit c128de3

Please # to comment.