Skip to content

Commit

Permalink
Add 1.9.2 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pcprince committed Sep 26, 2023
1 parent 9e171fc commit 88a73fc
Show file tree
Hide file tree
Showing 18 changed files with 92 additions and 95 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Package the application into an installer for your current platform with:
npm run dist [win64/win32/mac/linux]
```

This will place a packaged version of the app and an installer for the platform this command was run on into the `/dist` folder. Note that to sign the binary in macOS you will need to run the command above as 'sudo'. The codesign application will retrieve the appropriate certificate from Keychain Access.
This will place a packaged version of the app and an installer for the platform this command was run on into the `/dist` folder. Note that to sign the binary in macOS you will need to run the command above as 'sudo'. The codesign application will retreive the appropriate certificate from Keychain Access.

For detailed usage instructions of the app itself and to download prebuilt installers of the latest stable version for all platforms, visit the app support site [here](http://www.openacousticdevices.info/config).

Expand Down
1 change: 1 addition & 0 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="./index.css">
<link id="uiCSS" rel="stylesheet" href="./ui.css">
<title>About AudioMoth Configuration App</title>
</head>
Expand Down
37 changes: 37 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

*, *::after, *::before {
-webkit-user-select: none;
-webkit-user-drag: none;
-webkit-app-region: no-drag;
cursor: default;
}

.table>tbody>tr>td,
.table>tbody>tr>th {
border-top: none;
}

#disabled-filter-slider .slider-handle {
display: none;
}

.grey {
color:#808080;
}

.mono-text {
font-variant-numeric: tabular-nums;
}

input {
font-variant-numeric: tabular-nums;
}

span {
font-variant-numeric: tabular-nums;
}
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<head>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/bootstrap-slider/dist/css/bootstrap-slider.css">
<link rel="stylesheet" href="index.css">
<link id="uiCSS" rel="stylesheet" href="ui.css">
</head>

Expand All @@ -15,7 +16,7 @@
<div style="border: #cdcdcd thin solid; margin-left: 15px; width: 543px;">
<div class="row" style="margin-left: 0px;">
<div class="col-12" style="text-align: center; padding-top: 5px; padding-bottom: 5px">
<span style="font-size: 25px; font-family: &apos;Lucida Console&apos;, Monaco, monospace">
<span class="mono-text" style="font-size: 25px; font-family: &apos;Lucida Console&apos;, Monaco">
<div id="time-display" style="display: inline-block;" class="grey"></div>
<div id="timezone-label" style="display: inline-block;" class="grey"></div>
</span>
Expand Down
33 changes: 10 additions & 23 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,21 +272,27 @@ function toggleNightMode () {

mainWindow.webContents.send('night-mode');

if (splitWindow) {

splitWindow.webContents.send('night-mode');

}

if (expansionWindow) {

expansionWindow.webContents.send('night-mode');

}

if (aboutWindow) {
if (downsampleWindow) {

aboutWindow.webContents.send('night-mode');
downsampleWindow.webContents.send('night-mode');

}

if (splitWindow) {
if (aboutWindow) {

splitWindow.webContents.send('night-mode');
aboutWindow.webContents.send('night-mode');

}

Expand Down Expand Up @@ -442,25 +448,6 @@ app.on('ready', function () {

}
}]
}, {
label: 'Edit',
submenu: [{
label: 'Cut',
accelerator: 'CommandOrControl+X',
selector: 'cut:'
}, {
label: 'Copy',
accelerator: 'CommandOrControl+C',
selector: 'copy:'
}, {
label: 'Paste',
accelerator: 'CommandOrControl+V',
selector: 'paste:'
}, {
label: 'Select All',
accelerator: 'CommandOrControl+A',
selector: 'selectAll:'
}]
}, {
label: 'Help',
submenu: [{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "AudioMoth-Config",
"version": "1.9.1",
"version": "1.9.2",
"description": "The configuration app for the AudioMoth acoustic monitoring device.",
"main": "main.js",
"author": "openacousticdevices.info",
Expand Down
1 change: 1 addition & 0 deletions processing/downsampling.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../index.css">
<link id="uiCSS" rel="stylesheet" href="../ui.css">
<title>Downsample AudioMoth WAV Files</title>
</head>
Expand Down
1 change: 1 addition & 0 deletions processing/expansion.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../index.css">
<link id="uiCSS" rel="stylesheet" href="../ui.css">
<title>Expand AudioMoth T.WAV Files</title>
</head>
Expand Down
1 change: 1 addition & 0 deletions processing/split.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../index.css">
<link id="uiCSS" rel="stylesheet" href="../ui.css">
<title>Split AudioMoth WAV Files</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion processing/uiDownsampling.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function downsampleFiles () {

}

/* When the progress bar is complete and the summary window at the end has been displayed for a fixed amount of ttime, it will close and this re-enables the UI */
/* When the progress bar is complete and the summary window at the end has been displayed for a fixed amount of time, it will close and this re-enables the UI */

electron.ipcRenderer.on('downsample-summary-closed', enableUI);

Expand Down
6 changes: 3 additions & 3 deletions processing/uiExpansion.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function expandFiles () {

}

/* When the progress bar is complete and the summary window at the end has been displayed for a fixed amount of ttime, it will close and this re-enables the UI */
/* When the progress bar is complete and the summary window at the end has been displayed for a fixed amount of time, it will close and this re-enables the UI */

electron.ipcRenderer.on('expansion-summary-closed', enableUI);

Expand Down Expand Up @@ -611,7 +611,7 @@ expandButton.addEventListener('click', () => {

dialog.showMessageBox(currentWindow, {
type: 'error',
title: 'Cannot downsample with current settings',
title: 'Cannot expand with current settings',
message: 'Output destination is the same as input destination and no prefix is selected.'
});

Expand All @@ -625,7 +625,7 @@ expandButton.addEventListener('click', () => {

dialog.showMessageBox(currentWindow, {
type: 'error',
title: 'Cannot downsample with current settings',
title: 'Cannot expand with current settings',
message: 'Output destination is the same as input destination and no prefix is selected.'
});

Expand Down
6 changes: 3 additions & 3 deletions processing/uiSplit.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function splitFiles () {

}

/* When the progress bar is complete and the summary window at the end has been displayed for a fixed amount of ttime, it will close and this re-enables the UI */
/* When the progress bar is complete and the summary window at the end has been displayed for a fixed amount of time, it will close and this re-enables the UI */

electron.ipcRenderer.on('split-summary-closed', enableUI);

Expand Down Expand Up @@ -389,7 +389,7 @@ splitButton.addEventListener('click', () => {

dialog.showMessageBox(currentWindow, {
type: 'error',
title: 'Cannot downsample with current settings',
title: 'Cannot split with current settings',
message: 'Output destination is the same as input destination and no prefix is selected.'
});

Expand All @@ -403,7 +403,7 @@ splitButton.addEventListener('click', () => {

dialog.showMessageBox(currentWindow, {
type: 'error',
title: 'Cannot downsample with current settings',
title: 'Cannot split with current settings',
message: 'Output destination is the same as input destination and no prefix is selected.'
});

Expand Down
2 changes: 1 addition & 1 deletion settings/durationInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class DurationInput extends HTMLElement {

const holderNode = document.createElement('div');
holderNode.className = 'duration-holder';
holderNode.style = 'position: absolute; top: 0px; margin-left: 5%; margin-top: 2px; width: 90%;';
holderNode.style = 'position: absolute; top: 0px; margin-left: 5%; margin-top: 3px; width: 90%;';

const spanNode = document.createElement('span');
spanNode.className = 'duration-span';
Expand Down
4 changes: 2 additions & 2 deletions settings/uiAdvanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ exports.is48DCFilterDisabled = () => {

};

exports.istimeSettingFromGPSEnabled = () => {
exports.isTimeSettingFromGPSEnabled = () => {

return gpsTimeCheckbox.checked;

};

exports.ismagneticSwitchEnabled = () => {
exports.isMagneticSwitchEnabled = () => {

return magneticDelayCheckbox.checked;

Expand Down
4 changes: 2 additions & 2 deletions settings/uiSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ exports.getSettings = () => {
energySaverModeEnabled: uiAdvanced.isEnergySaverModeEnabled(),
lowGainRangeEnabled: uiAdvanced.isLowGainRangeEnabled(),
disable48DCFilter: uiAdvanced.is48DCFilterDisabled(),
timeSettingFromGPSEnabled: uiAdvanced.istimeSettingFromGPSEnabled(),
magneticSwitchEnabled: uiAdvanced.ismagneticSwitchEnabled()
timeSettingFromGPSEnabled: uiAdvanced.isTimeSettingFromGPSEnabled(),
magneticSwitchEnabled: uiAdvanced.isMagneticSwitchEnabled()
};

return settings;
Expand Down
26 changes: 2 additions & 24 deletions ui.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

*, *::after, *::before {
-webkit-user-select: none;
-webkit-user-drag: none;
-webkit-app-region: no-drag;
cursor: default;
}

.table>tbody>tr>td,
.table>tbody>tr>th {
border-top: none;
}

body {
background: #FFFFFF;
}
Expand All @@ -24,10 +6,6 @@ body {
background: rgb(173, 189, 241);
}

#disabled-filter-slider .slider-handle {
display: none;
}

.grey {
color: #D3D3D3;
input {
border: thin solid #cfcfcf;
}
Loading

0 comments on commit 88a73fc

Please sign in to comment.