Skip to content

Commit

Permalink
Add 1.0.2 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pcprince committed Sep 2, 2024
1 parent 114abbd commit 2afbe34
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 38 deletions.
10 changes: 9 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"extends": "standard",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"semi": [2, "always"],
"indent": ["error", 4],
"padded-blocks": ["error", "always"],
"no-useless-escape": 0,
"object-curly-spacing": ["error", "never"],
"no-extend-native": ["error", {"exceptions": ["Array"]}],
"standard/no-callback-literal": 0,
"node/no-callback-literal": 0
}
}
2 changes: 1 addition & 1 deletion about.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/* global document */

const electron = require('electron');
const { app, process } = require('@electron/remote');
const {app, process} = require('@electron/remote');

const nightMode = require('./nightMode.js');

Expand Down
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ const audiomothUtils = require('audiomoth-utils');

var currentWindow = getCurrentWindow();

const FILE_REGEX = /^(\d\d\d\d\d\d\d\d_)?\d\d\d\d\d\d.WAV$/;

const selectionRadios = document.getElementsByName('selection-radio');

const prefixCheckbox = document.getElementById('prefix-checkbox');
Expand Down Expand Up @@ -398,7 +396,9 @@ selectionRadios[1].addEventListener('change', resetUI);

fileButton.addEventListener('click', () => {

files = uiOutput.selectRecordings(FILE_REGEX);
const fileRegex = audiomothUtils.getFilenameRegex(audiomothUtils.SYNC);

files = uiOutput.selectRecordings(fileRegex);

if (files !== undefined) {

Expand Down Expand Up @@ -466,7 +466,7 @@ electron.ipcRenderer.on('update-check', function () {

if (buttonIndex === 0) {

electron.shell.openExternal('https://www.openacousticdevices.info/applications');
electron.shell.openExternal('https://www.openacousticdevices.info/gps-sync');

}

Expand Down
46 changes: 16 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "AudioMoth-Sync",
"version": "1.0.1",
"version": "1.0.2",
"description": "The file synchronisation app for recordings made using the AudioMoth-GPS-Sync firmware.",
"main": "main.js",
"author": "openacousticdevices.info",
Expand Down Expand Up @@ -69,7 +69,7 @@
"dependencies": {
"@electron/remote": "^2.0.10",
"@popperjs/core": "^2.11.8",
"audiomoth-utils": "^1.4.1",
"audiomoth-utils": "^1.6.0",
"bootstrap": "5.3.1",
"electron-debug": "^3.2.0",
"electron-progressbar": "^2.0.1",
Expand Down

0 comments on commit 2afbe34

Please sign in to comment.