Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
914f407898
6 changed files with 1258 additions and 1196 deletions
|
@ -372,7 +372,8 @@ export class BrowserWindow {
|
||||||
* @yields {object} Electron browser window
|
* @yields {object} Electron browser window
|
||||||
*/
|
*/
|
||||||
async createWindow(): Promise<Electron.BrowserWindow> {
|
async createWindow(): Promise<Electron.BrowserWindow> {
|
||||||
this.clientPort = await getPort({ port: 9000 });
|
const envPort = process.env?.CIDER_PORT || '9000'
|
||||||
|
this.clientPort = await getPort({ port: parseInt(envPort, 10) || 9000 });
|
||||||
BrowserWindow.verifyFiles();
|
BrowserWindow.verifyFiles();
|
||||||
this.StartWatcher(utils.getPath('themes'));
|
this.StartWatcher(utils.getPath('themes'));
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,11 @@
|
||||||
margin : 0px;
|
margin : 0px;
|
||||||
height : 100%;
|
height : 100%;
|
||||||
position : relative;
|
position : relative;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
._svg-icon {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
--dist : 1px;
|
--dist : 1px;
|
||||||
|
|
|
@ -1226,7 +1226,7 @@ const app = new Vue({
|
||||||
} else if (this.cfg.visual.directives[directive]) {
|
} else if (this.cfg.visual.directives[directive]) {
|
||||||
return this.cfg.visual.directives[directive]
|
return this.cfg.visual.directives[directive]
|
||||||
} else {
|
} else {
|
||||||
return ""
|
return false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
unauthorize() {
|
unauthorize() {
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -38,7 +38,7 @@
|
||||||
</template>
|
</template>
|
||||||
<div class="app-sidebar-content" scrollaxis="y">
|
<div class="app-sidebar-content" scrollaxis="y">
|
||||||
<!-- AM Navigation -->
|
<!-- AM Navigation -->
|
||||||
<template v-if="$root.getThemeDirective('windowLayout') != 'twopanel'">
|
<div v-show="$root.getThemeDirective('windowLayout') != 'twopanel'" class="sidebarCatalogSection">
|
||||||
<div
|
<div
|
||||||
class="app-sidebar-header-text"
|
class="app-sidebar-header-text"
|
||||||
@click="$root.cfg.general.sidebarCollapsed.cider = !$root.cfg.general.sidebarCollapsed.cider"
|
@click="$root.cfg.general.sidebarCollapsed.cider = !$root.cfg.general.sidebarCollapsed.cider"
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
page="radio"
|
page="radio"
|
||||||
></sidebar-library-item>
|
></sidebar-library-item>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="app-sidebar-header-text"
|
class="app-sidebar-header-text"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script type="text/x-template" id="cider-playlist">
|
<script type="text/x-template" id="cider-playlist">
|
||||||
<div class="content-inner playlist-page" :class="classes" v-if="data != [] && data.attributes != null"
|
<div class="content-inner playlist-page" :class="classes" :is-album="isAlbum()" v-if="data != [] && data.attributes != null"
|
||||||
|
|
||||||
:style="{'--bgColor': (data.attributes.artwork != null && data.attributes.artwork['bgColor'] != null) ? ('#' + data.attributes.artwork.bgColor) : ''}">
|
:style="{'--bgColor': (data.attributes.artwork != null && data.attributes.artwork['bgColor'] != null) ? ('#' + data.attributes.artwork.bgColor) : ''}">
|
||||||
<template v-if="app.playlists.loadingState == 0">
|
<template v-if="app.playlists.loadingState == 0">
|
||||||
|
@ -347,6 +347,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
isAlbum() {
|
||||||
|
return (this.data.attributes?.playParams?.kind ?? this.data.type ?? '').includes('album')
|
||||||
|
},
|
||||||
minClass(val) {
|
minClass(val) {
|
||||||
if(app.appMode == 'fullscreen') {
|
if(app.appMode == 'fullscreen') {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue