mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
parent
704970e291
commit
483dec9103
34 changed files with 559 additions and 546 deletions
|
@ -1,4 +1,4 @@
|
|||
'use strict';
|
||||
import GUI from './gui.js';
|
||||
|
||||
/**
|
||||
* Encapsulates the Clipboard logic, depending on web or nw
|
||||
|
@ -99,3 +99,5 @@ if (GUI.isNWJS()){
|
|||
} else {
|
||||
Clipboard._configureClipboardAsOther();
|
||||
}
|
||||
|
||||
export default Clipboard;
|
||||
|
|
1061
src/js/gui.js
1061
src/js/gui.js
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,6 @@
|
|||
import i18next from 'i18next';
|
||||
import i18nextXHRBackend from 'i18next-xhr-backend';
|
||||
import GUI from './gui.js';
|
||||
|
||||
const i18n = {};
|
||||
/*
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import '../components/init.js';
|
||||
import { i18n } from './localization.js';
|
||||
import GUI from './gui.js';
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from '../localization';
|
||||
import GUI from '../gui';
|
||||
|
||||
const adjustments = {};
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from '../localization';
|
||||
import GUI from '../gui';
|
||||
|
||||
const auxiliary = {};
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import { i18n } from "../localization";
|
||||
import Clipboard from "../Clipboard";
|
||||
import GUI from '../gui';
|
||||
|
||||
const cli = {
|
||||
lineDelayMs: 15,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import semver from 'semver';
|
||||
import { i18n } from '../localization';
|
||||
import GUI from '../gui';
|
||||
|
||||
const configuration = {
|
||||
// intended
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const failsafe = {};
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from '../localization';
|
||||
import GUI from '../gui';
|
||||
|
||||
const firmware_flasher = {
|
||||
targets: null,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const gps = {};
|
||||
gps.initialize = function (callback) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import GUI from '../gui';
|
||||
|
||||
const help = {};
|
||||
help.initialize = function (callback) {
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import GUI from '../gui';
|
||||
|
||||
const landing = {};
|
||||
landing.initialize = function (callback) {
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const led_strip = {
|
||||
wireMode: false,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { millitime } from '../utils/common.js';
|
||||
import GUI from '../gui';
|
||||
|
||||
const logging = {};
|
||||
logging.initialize = function (callback) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const motors = {
|
||||
previousDshotBidir: null,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
let sdcardTimer;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from '../localization';
|
||||
import GUI from '../gui';
|
||||
|
||||
const options = {};
|
||||
options.initialize = function (callback) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const FONT = {};
|
||||
const SYM = {};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { i18n } from "../localization";
|
||||
import { colorTables, getColorForPercentage } from '../utils/css.js';
|
||||
import GUI from '../gui';
|
||||
|
||||
const pid_tuning = {
|
||||
RATE_PROFILE_MASK: 128,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import semver from 'semver';
|
||||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const ports = {
|
||||
// intentional
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from '../localization';
|
||||
import GUI from '../gui';
|
||||
|
||||
const power = {
|
||||
supported: false,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const MD5 = require('md5.js');
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const sensors = {};
|
||||
sensors.initialize = function (callback) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const servos = {};
|
||||
servos.initialize = function (callback) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from '../localization';
|
||||
import GUI from '../gui';
|
||||
|
||||
const setup = {
|
||||
yaw_fix: 0.0,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const setup_osd = {
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from '../localization';
|
||||
import GUI from '../gui';
|
||||
|
||||
const staticTab = {};
|
||||
staticTab.initialize = function (staticTabName, callback) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { i18n } from "../localization";
|
||||
import GUI from '../gui';
|
||||
|
||||
const transponder = {
|
||||
available: false,
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import { i18n } from "../localization";
|
||||
import Clipboard from "../Clipboard";
|
||||
import GUI from '../gui';
|
||||
|
||||
const vtx = {
|
||||
supported: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue