Skip to content

Commit 9008a0b

Browse files
committed
Minor optimizations, created app icon
1 parent 5f25721 commit 9008a0b

25 files changed

+106
-247
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,11 @@ Important Android stuff:
3838
- Made the whole app more consistent,
3939
- Set Youtube quality on "Open URL" dialog.
4040
- Scroll to top added to File browser
41+
42+
## 1.0.8 (Not released yet)
43+
44+
- API connection handling works way better,
45+
- Added Android notification to control playback (It's an experimental feauture should be enabled manually, you can find the option on settings. Please report any issues you have)
46+
- Minor optimizations,
47+
- Created a basic clipart icon with Android studio
48+
- Toast rendering improved,

TODO.md

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ ionic capacitor run android -l --host=host
2222

2323
- By some reasons routing not working properly, when not using modals on Settings -> Servers and Media collections
2424
- Better handling for playlist
25-
- Need someone who can design a proper icon for the app (currently using Ionic default app icon),
2625
- Need some help with [cordova-plugin-music-controls2](https://github.com/Arzio/cordova-plugin-music-controls2) plugin:
2726
- When the app is not active, playback status not refreshing for notification,
2827
- I'd like remove album cover from notification.

android/.idea/misc.xml

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading

android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml

-34
This file was deleted.

android/app/src/main/res/drawable/ic_launcher_background.xml

-170
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="108dp"
3+
android:height="108dp"
4+
android:viewportWidth="108"
5+
android:viewportHeight="108"
6+
android:tint="#FFFFFF">
7+
<group android:scaleX="1.827"
8+
android:scaleY="1.827"
9+
android:translateX="32.076"
10+
android:translateY="32.076">
11+
<path
12+
android:fillColor="@android:color/white"
13+
android:pathData="M15,9L9,9c-0.55,0 -1,0.45 -1,1v12c0,0.55 0.45,1 1,1h6c0.55,0 1,-0.45 1,-1L16,10c0,-0.55 -0.45,-1 -1,-1zM12,15c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM7.05,6.05l1.41,1.41C9.37,6.56 10.62,6 12,6s2.63,0.56 3.54,1.46l1.41,-1.41C15.68,4.78 13.93,4 12,4s-3.68,0.78 -4.95,2.05zM12,0C8.96,0 6.21,1.23 4.22,3.22l1.41,1.41C7.26,3.01 9.51,2 12,2s4.74,1.01 6.36,2.64l1.41,-1.41C17.79,1.23 15.04,0 12,0z"/>
14+
</group>
15+
</vector>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
33
<background android:drawable="@color/ic_launcher_background"/>
4-
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
4+
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
55
</adaptive-icon>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
33
<background android:drawable="@color/ic_launcher_background"/>
4-
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
4+
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
55
</adaptive-icon>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<color name="ic_launcher_background">#FFFFFF</color>
3+
<color name="ic_launcher_background">#40518C</color>
44
</resources>

src/Container.vue

+17-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
<IonSplitPane content-id="main-content">
44
<ion-menu content-id="main-content" type="overlay">
55
<ion-content>
6+
<ion-toast
7+
:is-open="toast.isOpen"
8+
:message="toast.message"
9+
:duration="toast.duration"
10+
@didDismiss="setToastState(false)"
11+
/>
612
<ion-list id="inbox-list">
713
<ion-list-header>MPV Remote</ion-list-header>
814
<template v-if="servers.length > 0">
@@ -51,6 +57,7 @@
5157
</ion-list>
5258
</ion-content>
5359
</ion-menu>
60+
5461
<ion-router-outlet id="main-content"></ion-router-outlet>
5562
</IonSplitPane>
5663
</IonApp>
@@ -72,6 +79,7 @@ import {
7279
IonSplitPane,
7380
IonSelect,
7481
IonSelectOption,
82+
IonToast,
7583
} from "@ionic/vue";
7684
import {
7785
playCircleOutline,
@@ -102,6 +110,7 @@ export default defineComponent({
102110
IonSplitPane,
103111
IonSelect,
104112
IonSelectOption,
113+
IonToast,
105114
},
106115
setup() {
107116
const store = useStore();
@@ -238,7 +247,7 @@ export default defineComponent({
238247
if (isActive) {
239248
// Set screen orientation if active
240249
store.commit("app/setScreenOrinetation", screen.orientation.type);
241-
apiInstance.get("/status").then((response) => {
250+
await apiInstance.get("/status").then((response) => {
242251
store.commit("simpleapi/setPlayerData", response.data);
243252
if (
244253
platforms.includes("hybrid") &&
@@ -264,6 +273,11 @@ export default defineComponent({
264273
if (platforms.includes("hybrid")) unregisterBroadcastReceiver();
265274
}
266275
});
276+
277+
const setToastState = async (state) => {
278+
store.commit("app/setToastState", state);
279+
};
280+
267281
return {
268282
selectedPageIndex,
269283
appPages,
@@ -273,6 +287,8 @@ export default defineComponent({
273287
),
274288
setCurrentServer: (serverId) =>
275289
store.dispatch("settings/setCurrentServer", serverId),
290+
setToastState,
291+
toast: computed(() => store.state.app.toast),
276292
};
277293
},
278294
});

0 commit comments

Comments
 (0)