Skip to content

Commit

Permalink
Bump version, lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalopitz committed Jun 14, 2021
1 parent 8f77262 commit 2838315
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 54 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -32,7 +32,7 @@ Find the latest .AppImage on the [release page](https://github.com/pascalopitz/u
You can right click it on Ubuntu, then under "Permissions" mark is as executable. ALternatively run:

```bash
chmod +x sonos-controller-unofficial-amd64-0.2.5.AppImage
chmod +x sonos-controller-unofficial-amd64-0.2.6.AppImage
```

After that it can be launched by double click or via invoking it through the terminal.
Expand All @@ -48,7 +48,7 @@ Type=Application
Categories=Audio;
Name=sonos-controller-unofficial
Icon=appimagekit-sonos-controller-unofficial
Exec="/home/username/Downloads/sonos-controller-unofficial-0.2.5.AppImage" %U
Exec="/home/username/Downloads/sonos-controller-unofficial-0.2.6.AppImage" %U
```

## Install via .deb file
Expand All @@ -57,7 +57,7 @@ Find the latest .deb on the [release page](https://github.com/pascalopitz/unoffi
On Ubuntu, you can double click the downloaded file to install it via the Software Center. Alternatively run

```bash
sudo dpkg -i sonos-controller-unofficial-amd64-0.2.5.AppImage
sudo dpkg -i sonos-controller-unofficial-amd64-0.2.6.AppImage
```

## and Run locally
Expand Down
2 changes: 1 addition & 1 deletion app/package-lock.json

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

2 changes: 1 addition & 1 deletion app/package.json
@@ -1,7 +1,7 @@
{
"name": "sonos-controller-unofficial",
"description": "Unoffical sonos controller for linux.",
"version": "0.2.5",
"version": "0.2.6",
"author": "Pascal Opitz <contact@pascalopitz.com>",
"main": "main.js",
"dependencies": {
Expand Down
29 changes: 22 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "sonos-controller-unofficial",
"version": "0.2.5",
"version": "0.2.6",
"description": "Unoffical sonos controller for linux",
"main": "app/main.js",
"homepage": "http://pascalopitz.github.io/unoffical-sonos-controller-for-linux/",
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
@@ -1,6 +1,6 @@
name: sonos-controller-unofficial # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
version: '0.2.5' # just for humans, typically '1.2+git' or '1.3.2'
version: '0.2.6' # just for humans, typically '1.2+git' or '1.3.2'
summary: Unofficial Sonos Controller for Linux # 79 char long summary
description: |
An Electron based app to control Sonos systems on Linux desktops.
Expand Down
36 changes: 20 additions & 16 deletions src/menu.js
Expand Up @@ -165,10 +165,11 @@ const register = () => {
label: 'Copy app state to clipboard',
async click(item, focusedWindow) {
if (focusedWindow) {
const result = await focusedWindow.webContents.executeJavaScript(
'JSON.stringify(store.getState())',
true
);
const result =
await focusedWindow.webContents.executeJavaScript(
'JSON.stringify(store.getState())',
true
);

clipboard.writeText(
JSON.stringify(
Expand Down Expand Up @@ -198,10 +199,11 @@ const register = () => {
return;
}

const result = await focusedWindow.webContents.executeJavaScript(
'JSON.stringify(store.getState())',
true
);
const result =
await focusedWindow.webContents.executeJavaScript(
'JSON.stringify(store.getState())',
true
);

await writeFileAsync(
choice.filePath,
Expand Down Expand Up @@ -236,10 +238,11 @@ const register = () => {
return;
}

const result = await focusedWindow.webContents.executeJavaScript(
'JSON.stringify(window.localStorage, 1, 4)',
true
);
const result =
await focusedWindow.webContents.executeJavaScript(
'JSON.stringify(window.localStorage, 1, 4)',
true
);

await writeFileAsync(
choice.filePath,
Expand Down Expand Up @@ -288,10 +291,11 @@ const register = () => {
async click(item, focusedWindow) {
if (focusedWindow) {
try {
const value = await focusedWindow.webContents.executeJavaScript(
'ipPrompt()',
true
);
const value =
await focusedWindow.webContents.executeJavaScript(
'ipPrompt()',
true
);

value &&
focusedWindow &&
Expand Down
5 changes: 2 additions & 3 deletions src/ui/components/BrowserListItem.jsx
Expand Up @@ -136,9 +136,8 @@ class InlineMenu extends PureComponent {
const { top, height: listItemHeight } = getComputedStyle(
containerRef.current
);
const { height: scrollContainerHeight } = getComputedStyle(
scrollContainerNode
);
const { height: scrollContainerHeight } =
getComputedStyle(scrollContainerNode);

const openUpwards =
parseInt(scrollContainerHeight) - parseInt(top) < inlineMenutOffset;
Expand Down
9 changes: 2 additions & 7 deletions src/ui/components/MusicServiceManagement.jsx
Expand Up @@ -44,13 +44,8 @@ export class MusicServiceManagement extends Component {
}

_next() {
const {
link,
client,
addAnonymousService,
getLink,
getSession,
} = this.props;
const { link, client, addAnonymousService, getLink, getSession } =
this.props;
const { auth } = client;

if (!link && auth === 'UserId') {
Expand Down
16 changes: 4 additions & 12 deletions src/ui/components/PlaylistManagementEdit.jsx
Expand Up @@ -50,12 +50,8 @@ export class PlaylistManagementEdit extends Component {

_onDragEnd() {
const { item, updateID, moveItem } = this.props;
const {
tracks,
dragOverMode,
dragOverPosition,
dragPosition,
} = this.state;
const { tracks, dragOverMode, dragOverPosition, dragPosition } =
this.state;

const newPos =
dragOverMode === 'after' ? dragOverPosition + 1 : dragOverPosition;
Expand Down Expand Up @@ -113,12 +109,8 @@ export class PlaylistManagementEdit extends Component {

render() {
const { item } = this.props;
const {
tracks,
dragOverPosition,
dragPosition,
dragOverMode,
} = this.state;
const { tracks, dragOverPosition, dragPosition, dragOverMode } =
this.state;

const playlistNodes = tracks.map((track, p) => {
const position = p + 1;
Expand Down
6 changes: 4 additions & 2 deletions src/ui/reducers/SonosServiceReducer.js
Expand Up @@ -232,8 +232,10 @@ export default handleActions(
};
},

[Constants.SONOS_SERVICE_CURRENT_CROSSFADE_MODE_UPDATE]: crossFadeModeReducer,
[Constants.OPTIMISTIC_CURRENT_CROSSFADE_MODE_UPDATE]: crossFadeModeReducer,
[Constants.SONOS_SERVICE_CURRENT_CROSSFADE_MODE_UPDATE]:
crossFadeModeReducer,
[Constants.OPTIMISTIC_CURRENT_CROSSFADE_MODE_UPDATE]:
crossFadeModeReducer,

[Constants.SONOS_SERVICE_CURRENT_PLAY_MODE_UPDATE]: playModeReducer,
[Constants.OPTIMISTIC_CURRENT_PLAY_MODE_UPDATE]: playModeReducer,
Expand Down

0 comments on commit 2838315

Please sign in to comment.