Merge pull request #62 from wakatime/change-false-to-null
use null instead of false in data that could be sent to api
This commit is contained in:
@@ -103,7 +103,7 @@ class WakaTimeCore {
|
|||||||
if (! contains(currentActiveTab.url, items.blacklist)) {
|
if (! contains(currentActiveTab.url, items.blacklist)) {
|
||||||
this.sendHeartbeat({
|
this.sendHeartbeat({
|
||||||
url: currentActiveTab.url,
|
url: currentActiveTab.url,
|
||||||
project: false
|
project: null,
|
||||||
}, debug);
|
}, debug);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -165,22 +165,22 @@ class WakaTimeCore {
|
|||||||
else {
|
else {
|
||||||
return {
|
return {
|
||||||
url: cleanLine.split('@@')[0],
|
url: cleanLine.split('@@')[0],
|
||||||
project: false
|
project: null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
url: false,
|
url: null,
|
||||||
project: false
|
project: null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates payload for the heartbeat and returns it as JSON.
|
* Creates payload for the heartbeat and returns it as JSON.
|
||||||
*
|
*
|
||||||
* @param entity
|
* @param heartbeat
|
||||||
* @param type
|
* @param type
|
||||||
* @param debug
|
* @param debug
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
@@ -217,10 +217,10 @@ class WakaTimeCore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Given the entity and logging type it creates a payload and
|
* Given the heartbeat and logging type it creates a payload and
|
||||||
* sends an ajax post request to the API.
|
* sends an ajax post request to the API.
|
||||||
*
|
*
|
||||||
* @param entity
|
* @param heartbeat
|
||||||
* @param debug
|
* @param debug
|
||||||
*/
|
*/
|
||||||
sendHeartbeat(heartbeat, debug) {
|
sendHeartbeat(heartbeat, debug) {
|
||||||
|
|||||||
4
assets/less/bootstrap/bootstrap.less
vendored
4
assets/less/bootstrap/bootstrap.less
vendored
@@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
* Bootstrap v3.3.6 (http://getbootstrap.com)
|
||||||
* Copyright 2011-2016 Twitter, Inc.
|
* Copyright 2011-2015 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
.border-right-radius(0);
|
.border-right-radius(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Need .dropdown-toggle since :last-child doesn't apply, given that a .dropdown-menu is used immediately after it
|
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
||||||
.btn-group > .btn:last-child:not(:first-child),
|
.btn-group > .btn:last-child:not(:first-child),
|
||||||
.btn-group > .dropdown-toggle:not(:first-child) {
|
.btn-group > .dropdown-toggle:not(:first-child) {
|
||||||
.border-left-radius(0);
|
.border-left-radius(0);
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ input[type="search"] {
|
|||||||
// set a pixel line-height that matches the given height of the input, but only
|
// set a pixel line-height that matches the given height of the input, but only
|
||||||
// for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
|
// for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
|
||||||
//
|
//
|
||||||
// Note that as of 9.3, iOS doesn't support `week`.
|
// Note that as of 8.3, iOS doesn't support `datetime` or `week`.
|
||||||
|
|
||||||
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
||||||
input[type="date"],
|
input[type="date"],
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// WebKit-style focus
|
// WebKit-style focus
|
||||||
|
|
||||||
.tab-focus() {
|
.tab-focus() {
|
||||||
// WebKit-specific. Other browsers will keep their default outline style.
|
// Default
|
||||||
// (Initially tried to also force default via `outline: initial`,
|
outline: thin dotted;
|
||||||
// but that seems to erroneously remove the outline in Firefox altogether.)
|
// WebKit
|
||||||
outline: 5px auto -webkit-focus-ring-color;
|
outline: 5px auto -webkit-focus-ring-color;
|
||||||
outline-offset: -2px;
|
outline-offset: -2px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -214,7 +214,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Collapsible panels (aka, accordion)
|
// Collapsable panels (aka, accordion)
|
||||||
//
|
//
|
||||||
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
||||||
// the help of our collapse JavaScript plugin.
|
// the help of our collapse JavaScript plugin.
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ hr {
|
|||||||
|
|
||||||
// Only display content to screen readers
|
// Only display content to screen readers
|
||||||
//
|
//
|
||||||
// See: http://a11yproject.com/posts/how-to-hide-content
|
// See: http://a11yproject.com/posts/how-to-hide-content/
|
||||||
|
|
||||||
.sr-only {
|
.sr-only {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
* Bootstrap v3.3.6 (http://getbootstrap.com)
|
||||||
* Copyright 2011-2016 Twitter, Inc.
|
* Copyright 2011-2015 Twitter, Inc.
|
||||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,7 @@
|
|||||||
//** Global background color for active items (e.g., navs or dropdowns).
|
//** Global background color for active items (e.g., navs or dropdowns).
|
||||||
@component-active-bg: @brand-primary;
|
@component-active-bg: @brand-primary;
|
||||||
|
|
||||||
//** Width of the `border` for generating carets that indicate dropdowns.
|
//** Width of the `border` for generating carets that indicator dropdowns.
|
||||||
@caret-width-base: 4px;
|
@caret-width-base: 4px;
|
||||||
//** Carets increase slightly in size for larger components.
|
//** Carets increase slightly in size for larger components.
|
||||||
@caret-width-large: 5px;
|
@caret-width-large: 5px;
|
||||||
|
|||||||
Reference in New Issue
Block a user