1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 11:59:51 +03:00

updated paths

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-03-08 21:07:52 +01:00
parent 1b4cf23986
commit 02803fafd0
5 changed files with 78 additions and 70 deletions

View file

@ -8,6 +8,14 @@ Various types of aircraft are supported by the tool and by INAV, e.g. quadcopter
[![available in the Chrome web store](https://developer.chrome.com/webstore/images/ChromeWebStore_Badge_v2_206x58.png)](https://chrome.google.com/webstore/detail/inav-configurator/fmaidjmgkdkpafmbnmigkpdnpdhopgel) [![available in the Chrome web store](https://developer.chrome.com/webstore/images/ChromeWebStore_Badge_v2_206x58.png)](https://chrome.google.com/webstore/detail/inav-configurator/fmaidjmgkdkpafmbnmigkpdnpdhopgel)
## Build system
For local development, **node.js** build system is used.
1. Install node.js
1. From project folder run `npm install`
1. To rebuild JS and CSS use ` ./node_modules/gulp/bin/gulp.js`
## Authors ## Authors
Konstantin Sharlaimov/DigitalEntity - maintainer of the INAV firmware and configurator. Konstantin Sharlaimov/DigitalEntity - maintainer of the INAV firmware and configurator.

View file

@ -25143,21 +25143,21 @@ helper.periodicStatusUpdater = (function () {
if (AUX_CONFIG[i] == 'ARM') { if (AUX_CONFIG[i] == 'ARM') {
if (bit_check(CONFIG.mode, i)) if (bit_check(CONFIG.mode, i))
$(".armedicon").css({ $(".armedicon").css({
'background-image': 'url(images/icons/cf_icon_armed_active.svg)' 'background-image': 'url("../images/icons/cf_icon_armed_active.svg")'
}); });
else else
$(".armedicon").css({ $(".armedicon").css({
'background-image': 'url(images/icons/cf_icon_armed_grey.svg)' 'background-image': 'url("../images/icons/cf_icon_armed_grey.svg")'
}); });
} }
if (AUX_CONFIG[i] == 'FAILSAFE') { if (AUX_CONFIG[i] == 'FAILSAFE') {
if (bit_check(CONFIG.mode, i)) if (bit_check(CONFIG.mode, i))
$(".failsafeicon").css({ $(".failsafeicon").css({
'background-image': 'url(images/icons/cf_icon_failsafe_active.svg)' 'background-image': 'url("../images/icons/cf_icon_failsafe_active.svg")'
}); });
else else
$(".failsafeicon").css({ $(".failsafeicon").css({
'background-image': 'url(images/icons/cf_icon_failsafe_grey.svg)' 'background-image': 'url("../images/icons/cf_icon_failsafe_grey.svg")'
}); });
} }
} }
@ -25178,11 +25178,11 @@ helper.periodicStatusUpdater = (function () {
if (active) { if (active) {
$(".linkicon").css({ $(".linkicon").css({
'background-image': 'url(images/icons/cf_icon_link_active.svg)' 'background-image': 'url("../images/icons/cf_icon_link_active.svg")'
}); });
} else { } else {
$(".linkicon").css({ $(".linkicon").css({
'background-image': 'url(images/icons/cf_icon_link_grey.svg)' 'background-image': 'url("../images/icons/cf_icon_link_grey.svg")'
}); });
} }

View file

@ -264,7 +264,7 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.gyroicon { .gyroicon {
background: url(images/icons/sensor_gyro_off.png) no-repeat top; background: url("../images/icons/sensor_gyro_off.png") no-repeat top;
background-size: 43px; background-size: 43px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -275,12 +275,12 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.gyroicon.active { .gyroicon.active {
background-image: url(images/icons/sensor_gyro_on.png); background-image: url("../images/icons/sensor_gyro_on.png");
color: #818181; color: #818181;
} }
.accicon { .accicon {
background: url(images/icons/sensor_acc_off.png) no-repeat -5px 2px; background: url("../images/icons/sensor_acc_off.png") no-repeat -5px 2px;
background-size: 40px; background-size: 40px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -291,17 +291,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.accicon.active { .accicon.active {
background-image: url(images/icons/sensor_acc_on.png); background-image: url("../images/icons/sensor_acc_on.png");
color: #818181; color: #818181;
} }
.accicon.error { .accicon.error {
background-image: url(images/icons/sensor_acc_error.png); background-image: url("../images/icons/sensor_acc_error.png");
color: #d40000; color: #d40000;
} }
.magicon { .magicon {
background: url(images/icons/sensor_mag_off.png) no-repeat -5px 2px; background: url("../images/icons/sensor_mag_off.png") no-repeat -5px 2px;
background-size: 42px; background-size: 42px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -312,17 +312,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.magicon.active { .magicon.active {
background-image: url(images/icons/sensor_mag_on.png); background-image: url("../images/icons/sensor_mag_on.png");
color: #818181; color: #818181;
} }
.magicon.error { .magicon.error {
background-image: url(images/icons/sensor_mag_error.png); background-image: url("../images/icons/sensor_mag_error.png");
color: #d40000; color: #d40000;
} }
.gpsicon { .gpsicon {
background: url(images/icons/sensor_sat_off.png) no-repeat -5px 2px; background: url("../images/icons/sensor_sat_off.png") no-repeat -5px 2px;
background-size: 42px; background-size: 42px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -333,17 +333,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.gpsicon.active { .gpsicon.active {
background-image: url(images/icons/sensor_sat_on.png); background-image: url("../images/icons/sensor_sat_on.png");
color: #818181; color: #818181;
} }
.gpsicon.error { .gpsicon.error {
background-image: url(images/icons/sensor_sat_error.png); background-image: url("../images/icons/sensor_sat_error.png");
color: #d40000; color: #d40000;
} }
.opflowicon { .opflowicon {
background: url(images/icons/sensor_flow_off.png) no-repeat -5px 0; background: url("../images/icons/sensor_flow_off.png") no-repeat -5px 0;
background-size: 42px; background-size: 42px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -354,17 +354,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.opflowicon.active { .opflowicon.active {
background-image: url(images/icons/sensor_flow_on.png); background-image: url("../images/icons/sensor_flow_on.png");
color: #818181; color: #818181;
} }
.opflowicon.error { .opflowicon.error {
background-image: url(images/icons/sensor_flow_error.png); background-image: url("../images/icons/sensor_flow_error.png");
color: #d40000; color: #d40000;
} }
.baroicon { .baroicon {
background: url(images/icons/sensor_baro_off.png) no-repeat -5px 2px; background: url("../images/icons/sensor_baro_off.png") no-repeat -5px 2px;
background-size: 40px; background-size: 40px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -375,17 +375,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.baroicon.active { .baroicon.active {
background-image: url(images/icons/sensor_baro_on.png); background-image: url("../images/icons/sensor_baro_on.png");
color: #818181; color: #818181;
} }
.baroicon.error { .baroicon.error {
background-image: url(images/icons/sensor_baro_error.png); background-image: url("../images/icons/sensor_baro_error.png");
color: #d40000; color: #d40000;
} }
.sonaricon { .sonaricon {
background: url(images/icons/sensor_sonar_off.png) no-repeat -4px 1px; background: url("../images/icons/sensor_sonar_off.png") no-repeat -4px 1px;
background-size: 41px; background-size: 41px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -396,17 +396,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.sonaricon.active { .sonaricon.active {
background-image: url(images/icons/sensor_sonar_on.png); background-image: url("images/icons/sensor_sonar_on.png");
color: #818181; color: #818181;
} }
.sonaricon.error { .sonaricon.error {
background-image: url(images/icons/sensor_sonar_error.png); background-image: url("../images/icons/sensor_sonar_error.png");
color: #d40000; color: #d40000;
} }
.airspeedicon { .airspeedicon {
background: url(images/icons/sensor_airspeed_off.png) no-repeat -4px 1px; background: url("../images/icons/sensor_airspeed_off.png") no-repeat -4px 1px;
background-size: 41px; background-size: 41px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -417,12 +417,12 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.airspeedicon.active { .airspeedicon.active {
background-image: url(images/icons/sensor_airspeed_on.png); background-image: url("../images/icons/sensor_airspeed_on.png");
color: #818181; color: #818181;
} }
.airspeedicon.error { .airspeedicon.error {
background-image: url(images/icons/sensor_airspeed_error.png); background-image: url("../images/icons/sensor_airspeed_error.png");
color: #d40000; color: #d40000;
} }
@ -1694,7 +1694,7 @@ dialog {
width: 60px; width: 60px;
transition: none; transition: none;
margin-top: 4px; margin-top: 4px;
background: url(images/icons/cf_icon_bat_grey.svg) no-repeat center; background: url("../images/icons/cf_icon_bat_grey.svg") no-repeat center;
background-size: contain; background-size: contain;
} }
@ -1715,15 +1715,15 @@ dialog {
} }
.armedicon { .armedicon {
background-image: url(images/icons/cf_icon_armed_grey.svg); background-image: url("../images/icons/cf_icon_armed_grey.svg");
} }
.failsafeicon { .failsafeicon {
background-image: url(images/icons/cf_icon_failsafe_grey.svg); background-image: url("../images/icons/cf_icon_failsafe_grey.svg");
} }
.linkicon { .linkicon {
background-image: url(images/icons/cf_icon_link_grey.svg); background-image: url("../images/icons/cf_icon_link_grey.svg");
} }
.bottomStatusIcons { .bottomStatusIcons {
@ -1856,12 +1856,12 @@ select {
} }
.ic_osd { .ic_osd {
background-image: url(images/icons/icon_osd.svg); background-image: url("../images/icons/icon_osd.svg");
background-position-y: 4px; background-position-y: 4px;
} }
.ic_osd:hover, li.active .ic_osd { .ic_osd:hover, li.active .ic_osd {
background-image: url(images/icons/icon_osd_white.svg); background-image: url("../images/icons/icon_osd_white.svg");
} }
.full-width { .full-width {

View file

@ -41,21 +41,21 @@ helper.periodicStatusUpdater = (function () {
if (AUX_CONFIG[i] == 'ARM') { if (AUX_CONFIG[i] == 'ARM') {
if (bit_check(CONFIG.mode, i)) if (bit_check(CONFIG.mode, i))
$(".armedicon").css({ $(".armedicon").css({
'background-image': 'url(images/icons/cf_icon_armed_active.svg)' 'background-image': 'url("../images/icons/cf_icon_armed_active.svg")'
}); });
else else
$(".armedicon").css({ $(".armedicon").css({
'background-image': 'url(images/icons/cf_icon_armed_grey.svg)' 'background-image': 'url("../images/icons/cf_icon_armed_grey.svg")'
}); });
} }
if (AUX_CONFIG[i] == 'FAILSAFE') { if (AUX_CONFIG[i] == 'FAILSAFE') {
if (bit_check(CONFIG.mode, i)) if (bit_check(CONFIG.mode, i))
$(".failsafeicon").css({ $(".failsafeicon").css({
'background-image': 'url(images/icons/cf_icon_failsafe_active.svg)' 'background-image': 'url("../images/icons/cf_icon_failsafe_active.svg")'
}); });
else else
$(".failsafeicon").css({ $(".failsafeicon").css({
'background-image': 'url(images/icons/cf_icon_failsafe_grey.svg)' 'background-image': 'url("../images/icons/cf_icon_failsafe_grey.svg")'
}); });
} }
} }
@ -76,11 +76,11 @@ helper.periodicStatusUpdater = (function () {
if (active) { if (active) {
$(".linkicon").css({ $(".linkicon").css({
'background-image': 'url(images/icons/cf_icon_link_active.svg)' 'background-image': 'url("../images/icons/cf_icon_link_active.svg")'
}); });
} else { } else {
$(".linkicon").css({ $(".linkicon").css({
'background-image': 'url(images/icons/cf_icon_link_grey.svg)' 'background-image': 'url("../images/icons/cf_icon_link_grey.svg")'
}); });
} }

View file

@ -264,7 +264,7 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.gyroicon { .gyroicon {
background: url(images/icons/sensor_gyro_off.png) no-repeat top; background: url("../images/icons/sensor_gyro_off.png") no-repeat top;
background-size: 43px; background-size: 43px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -275,12 +275,12 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.gyroicon.active { .gyroicon.active {
background-image: url(images/icons/sensor_gyro_on.png); background-image: url("../images/icons/sensor_gyro_on.png");
color: #818181; color: #818181;
} }
.accicon { .accicon {
background: url(images/icons/sensor_acc_off.png) no-repeat -5px 2px; background: url("../images/icons/sensor_acc_off.png") no-repeat -5px 2px;
background-size: 40px; background-size: 40px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -291,17 +291,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.accicon.active { .accicon.active {
background-image: url(images/icons/sensor_acc_on.png); background-image: url("../images/icons/sensor_acc_on.png");
color: #818181; color: #818181;
} }
.accicon.error { .accicon.error {
background-image: url(images/icons/sensor_acc_error.png); background-image: url("../images/icons/sensor_acc_error.png");
color: #d40000; color: #d40000;
} }
.magicon { .magicon {
background: url(images/icons/sensor_mag_off.png) no-repeat -5px 2px; background: url("../images/icons/sensor_mag_off.png") no-repeat -5px 2px;
background-size: 42px; background-size: 42px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -312,17 +312,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.magicon.active { .magicon.active {
background-image: url(images/icons/sensor_mag_on.png); background-image: url("../images/icons/sensor_mag_on.png");
color: #818181; color: #818181;
} }
.magicon.error { .magicon.error {
background-image: url(images/icons/sensor_mag_error.png); background-image: url("../images/icons/sensor_mag_error.png");
color: #d40000; color: #d40000;
} }
.gpsicon { .gpsicon {
background: url(images/icons/sensor_sat_off.png) no-repeat -5px 2px; background: url("../images/icons/sensor_sat_off.png") no-repeat -5px 2px;
background-size: 42px; background-size: 42px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -333,17 +333,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.gpsicon.active { .gpsicon.active {
background-image: url(images/icons/sensor_sat_on.png); background-image: url("../images/icons/sensor_sat_on.png");
color: #818181; color: #818181;
} }
.gpsicon.error { .gpsicon.error {
background-image: url(images/icons/sensor_sat_error.png); background-image: url("../images/icons/sensor_sat_error.png");
color: #d40000; color: #d40000;
} }
.opflowicon { .opflowicon {
background: url(images/icons/sensor_flow_off.png) no-repeat -5px 0; background: url("../images/icons/sensor_flow_off.png") no-repeat -5px 0;
background-size: 42px; background-size: 42px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -354,17 +354,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.opflowicon.active { .opflowicon.active {
background-image: url(images/icons/sensor_flow_on.png); background-image: url("../images/icons/sensor_flow_on.png");
color: #818181; color: #818181;
} }
.opflowicon.error { .opflowicon.error {
background-image: url(images/icons/sensor_flow_error.png); background-image: url("../images/icons/sensor_flow_error.png");
color: #d40000; color: #d40000;
} }
.baroicon { .baroicon {
background: url(images/icons/sensor_baro_off.png) no-repeat -5px 2px; background: url("../images/icons/sensor_baro_off.png") no-repeat -5px 2px;
background-size: 40px; background-size: 40px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -375,17 +375,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.baroicon.active { .baroicon.active {
background-image: url(images/icons/sensor_baro_on.png); background-image: url("../images/icons/sensor_baro_on.png");
color: #818181; color: #818181;
} }
.baroicon.error { .baroicon.error {
background-image: url(images/icons/sensor_baro_error.png); background-image: url("../images/icons/sensor_baro_error.png");
color: #d40000; color: #d40000;
} }
.sonaricon { .sonaricon {
background: url(images/icons/sensor_sonar_off.png) no-repeat -4px 1px; background: url("../images/icons/sensor_sonar_off.png") no-repeat -4px 1px;
background-size: 41px; background-size: 41px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -396,17 +396,17 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.sonaricon.active { .sonaricon.active {
background-image: url(images/icons/sensor_sonar_on.png); background-image: url("images/icons/sensor_sonar_on.png");
color: #818181; color: #818181;
} }
.sonaricon.error { .sonaricon.error {
background-image: url(images/icons/sensor_sonar_error.png); background-image: url("../images/icons/sensor_sonar_error.png");
color: #d40000; color: #d40000;
} }
.airspeedicon { .airspeedicon {
background: url(images/icons/sensor_airspeed_off.png) no-repeat -4px 1px; background: url("../images/icons/sensor_airspeed_off.png") no-repeat -4px 1px;
background-size: 41px; background-size: 41px;
height: 30px; height: 30px;
margin-top: 3px; margin-top: 3px;
@ -417,12 +417,12 @@ input[type="number"]::-webkit-inner-spin-button {
} }
.airspeedicon.active { .airspeedicon.active {
background-image: url(images/icons/sensor_airspeed_on.png); background-image: url("../images/icons/sensor_airspeed_on.png");
color: #818181; color: #818181;
} }
.airspeedicon.error { .airspeedicon.error {
background-image: url(images/icons/sensor_airspeed_error.png); background-image: url("../images/icons/sensor_airspeed_error.png");
color: #d40000; color: #d40000;
} }
@ -1694,7 +1694,7 @@ dialog {
width: 60px; width: 60px;
transition: none; transition: none;
margin-top: 4px; margin-top: 4px;
background: url(images/icons/cf_icon_bat_grey.svg) no-repeat center; background: url("../images/icons/cf_icon_bat_grey.svg") no-repeat center;
background-size: contain; background-size: contain;
} }
@ -1715,15 +1715,15 @@ dialog {
} }
.armedicon { .armedicon {
background-image: url(images/icons/cf_icon_armed_grey.svg); background-image: url("../images/icons/cf_icon_armed_grey.svg");
} }
.failsafeicon { .failsafeicon {
background-image: url(images/icons/cf_icon_failsafe_grey.svg); background-image: url("../images/icons/cf_icon_failsafe_grey.svg");
} }
.linkicon { .linkicon {
background-image: url(images/icons/cf_icon_link_grey.svg); background-image: url("../images/icons/cf_icon_link_grey.svg");
} }
.bottomStatusIcons { .bottomStatusIcons {
@ -1856,12 +1856,12 @@ select {
} }
.ic_osd { .ic_osd {
background-image: url(images/icons/icon_osd.svg); background-image: url("../images/icons/icon_osd.svg");
background-position-y: 4px; background-position-y: 4px;
} }
.ic_osd:hover, li.active .ic_osd { .ic_osd:hover, li.active .ic_osd {
background-image: url(images/icons/icon_osd_white.svg); background-image: url("../images/icons/icon_osd_white.svg");
} }
.full-width { .full-width {