Merge branch 'develop' of https://github.com/ciderapp/Cider into develop
This commit is contained in:
commit
9c857fc81e
16 changed files with 11775 additions and 46 deletions
|
@ -7,19 +7,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Update NPM
|
name: Update Package Managers
|
||||||
command: "sudo npm install -g npm"
|
command: sudo npm update -g npm yarn
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: dependency-cache-{{ checksum "package.json" }}
|
name: Restore Yarn Package Cache
|
||||||
- run:
|
keys:
|
||||||
name: Update yarn
|
- yarn-packages-{{ checksum "yarn.lock" }}
|
||||||
command: sudo npm upgrade -g yarn
|
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: yarn install
|
command: yarn install --immutable
|
||||||
- run:
|
- save_cache:
|
||||||
name: Update Dependencies
|
name: Save Yarn Package Cache
|
||||||
command: yarn upgrade
|
key: yarn-packages-{{ checksum "yarn.lock" }}
|
||||||
|
paths:
|
||||||
|
- .yarn/cache
|
||||||
|
- .yarn/unplugged
|
||||||
- run:
|
- run:
|
||||||
name: Install system build dependencies
|
name: Install system build dependencies
|
||||||
command: |
|
command: |
|
||||||
|
@ -28,11 +30,6 @@ jobs:
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install -y wine32
|
sudo apt-get install -y wine32
|
||||||
|
|
||||||
- save_cache:
|
|
||||||
key: dependency-cache-{{ checksum "package.json" }}
|
|
||||||
paths:
|
|
||||||
- ./node_modules
|
|
||||||
- run:
|
- run:
|
||||||
name: Generate Builds (Linux)
|
name: Generate Builds (Linux)
|
||||||
command: yarn dist -l -p never
|
command: yarn dist -l -p never
|
||||||
|
|
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,9 +1,5 @@
|
||||||
# Building
|
# Building
|
||||||
dist
|
dist
|
||||||
*.lock
|
|
||||||
yarn*
|
|
||||||
package-lock.json
|
|
||||||
.yarnclean
|
|
||||||
build
|
build
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
|
@ -314,5 +310,3 @@ src/renderer/workbox-962786f2.js.map
|
||||||
#Mac certs
|
#Mac certs
|
||||||
*.p12
|
*.p12
|
||||||
keys.sh
|
keys.sh
|
||||||
|
|
||||||
.yarnrc.yml
|
|
||||||
|
|
768
.yarn/releases/yarn-3.1.1.cjs
vendored
Executable file
768
.yarn/releases/yarn-3.1.1.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
2
.yarnrc.yml
Normal file
2
.yarnrc.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
nodeLinker: node-modules
|
||||||
|
yarnPath: .yarn/releases/yarn-3.1.1.cjs
|
|
@ -8,17 +8,17 @@
|
||||||
"main": "./build/index.js",
|
"main": "./build/index.js",
|
||||||
"author": "Cider Collective <cryptofyre@cider.sh> (https://cider.sh)",
|
"author": "Cider Collective <cryptofyre@cider.sh> (https://cider.sh)",
|
||||||
"repository": "https://github.com/ciderapp/Cider.git",
|
"repository": "https://github.com/ciderapp/Cider.git",
|
||||||
|
"packageManager": "yarn@3.1.1",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/ciderapp/Cider/issues?q=is%3Aopen+is%3Aissue+label%3Abug"
|
"url": "https://github.com/ciderapp/Cider/issues?q=is%3Aopen+is%3Aissue+label%3Abug"
|
||||||
},
|
},
|
||||||
"homepage": "https://cider.sh/",
|
"homepage": "https://cider.sh/",
|
||||||
"buildResources": "resources",
|
"buildResources": "resources",
|
||||||
"packageManager": "yarn@3.1.1",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"watch": "tsc --watch",
|
"watch": "tsc --watch",
|
||||||
"start": "run-script-os",
|
"start": "run-script-os",
|
||||||
"start:win32": "npm run build && ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
|
"start:win32": "npm run build && set ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
|
||||||
"start:linux": "npm run build && ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
|
"start:linux": "npm run build && ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
|
||||||
"start:darwin": "npm run build && ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
|
"start:darwin": "npm run build && ELECTRON_ENABLE_LOGGING=true && electron ./build/index.js --enable-accelerated-mjpeg-decode --enable-accelerated-video --disable-gpu-driver-bug-workarounds --ignore-gpu-blacklist --enable-native-gpu-memory-buffers",
|
||||||
"pack": "electron-builder --dir",
|
"pack": "electron-builder --dir",
|
||||||
|
|
|
@ -124,7 +124,9 @@
|
||||||
"term.videos": "Videos",
|
"term.videos": "Videos",
|
||||||
"term.menu": "Menu",
|
"term.menu": "Menu",
|
||||||
"term.check": "Check",
|
"term.check": "Check",
|
||||||
|
"term.aboutArtist": "About {{artistName}}", // e.g. 'About Doja Cat'
|
||||||
|
"term.updateCider": "Update Cider",
|
||||||
|
|
||||||
// Home
|
// Home
|
||||||
"home.title": "Home",
|
"home.title": "Home",
|
||||||
"home.recentlyPlayed": "Recently Played",
|
"home.recentlyPlayed": "Recently Played",
|
||||||
|
|
|
@ -116,6 +116,9 @@
|
||||||
"term.tracks": "曲", // Assume x amount of tracks. e.g. 50 tracks
|
"term.tracks": "曲", // Assume x amount of tracks. e.g. 50 tracks
|
||||||
"term.videos": "ビデオ",
|
"term.videos": "ビデオ",
|
||||||
"term.menu": "メニュー",
|
"term.menu": "メニュー",
|
||||||
|
"term.check": "確認",
|
||||||
|
"term.aboutArtist": "{{artistName}}について", // e.g. 'About Doja Cat'
|
||||||
|
"term.updateCider": "Cider 更新",
|
||||||
|
|
||||||
// Home
|
// Home
|
||||||
"home.title": "ホーム",
|
"home.title": "ホーム",
|
||||||
|
@ -181,6 +184,11 @@
|
||||||
"action.removeTracks": "${self.selectedItems.length}曲が「次はこちら」から削除",
|
"action.removeTracks": "${self.selectedItems.length}曲が「次はこちら」から削除",
|
||||||
"action.import": "インポート",
|
"action.import": "インポート",
|
||||||
"action.export": "エクスポート",
|
"action.export": "エクスポート",
|
||||||
|
"action.showAlbum": "すべて見る",
|
||||||
|
"action.tray.minimize": "最小化",
|
||||||
|
"action.tray.quit": "終了",
|
||||||
|
"action.tray.show": "表示",
|
||||||
|
"action.update": "アップデート",
|
||||||
|
|
||||||
// Settings - Audio
|
// Settings - Audio
|
||||||
"settings.header.audio": "オーディオ",
|
"settings.header.audio": "オーディオ",
|
||||||
|
@ -249,10 +257,7 @@
|
||||||
"settings.header.experimental": "試験的な機能",
|
"settings.header.experimental": "試験的な機能",
|
||||||
"settings.header.experimental.description": "開発中の実験的な機能は不完全で不安定である可能性があります",
|
"settings.header.experimental.description": "開発中の実験的な機能は不完全で不安定である可能性があります",
|
||||||
"settings.option.experimental.compactUI": "コンパクトインターフェース", // Toggle
|
"settings.option.experimental.compactUI": "コンパクトインターフェース", // Toggle
|
||||||
"settings.option.experimental.closeButtonBehaviour": "「閉じる」ボタンの動作", // Dropdown
|
"settings.option.experimental.close_button_hide": "「閉じる」ボタンでアプリを隠します", // Dropdown
|
||||||
"settings.option.experimental.closeButtonBehaviour.quit": "アプリを終了する",
|
|
||||||
"settings.option.experimental.closeButtonBehaviour.minimizeTaskbar": "タスクバーに最小化する",
|
|
||||||
"settings.option.experimental.closeButtonBehaviour.minimizeTray": "トレイに最小化する",
|
|
||||||
// Refer to term.disabled & term.enabled
|
// Refer to term.disabled & term.enabled
|
||||||
|
|
||||||
// Spatialization Menu
|
// Spatialization Menu
|
||||||
|
|
|
@ -3,7 +3,13 @@
|
||||||
"app.name": "Cider",
|
"app.name": "Cider",
|
||||||
|
|
||||||
"date.format": "${d} ${m}, ${y}",
|
"date.format": "${d} ${m}, ${y}",
|
||||||
|
|
||||||
|
// i18n Info
|
||||||
|
"i18n.languageName": "Português ( brasileiro )", // name of language in native language
|
||||||
|
"i18n.languageNameEnglish": "Portuguese (Brazil)", // name of language in English
|
||||||
|
"i18n.category": "main", // main = real language, fun = fun community languages
|
||||||
|
"i18n.authors": "", // Authors, if you contribute to this file feel free to add your name seperated with a space
|
||||||
|
|
||||||
// Dialogs
|
// Dialogs
|
||||||
"dialog.cancel": "Cancelar",
|
"dialog.cancel": "Cancelar",
|
||||||
"dialog.ok": "OK",
|
"dialog.ok": "OK",
|
||||||
|
|
|
@ -116,6 +116,9 @@
|
||||||
"term.tracks": "首歌曲", // Assume x amount of tracks. e.g. 50 tracks
|
"term.tracks": "首歌曲", // Assume x amount of tracks. e.g. 50 tracks
|
||||||
"term.videos": "视频",
|
"term.videos": "视频",
|
||||||
"term.menu": "菜单",
|
"term.menu": "菜单",
|
||||||
|
"term.check": "检查",
|
||||||
|
"term.aboutArtist": "关于{{artistName}}", // e.g. 'About Doja Cat'
|
||||||
|
"term.updateCider": "更新 Cider",
|
||||||
|
|
||||||
// Home
|
// Home
|
||||||
"home.title": "主页",
|
"home.title": "主页",
|
||||||
|
@ -183,6 +186,12 @@
|
||||||
"action.removeTracks": "从队列中移除 ${self.selectedItems.length} 首歌曲",
|
"action.removeTracks": "从队列中移除 ${self.selectedItems.length} 首歌曲",
|
||||||
"action.import": "导入",
|
"action.import": "导入",
|
||||||
"action.export": "导出",
|
"action.export": "导出",
|
||||||
|
"action.showAlbum": "显示专辑",
|
||||||
|
"action.tray.minimize": "最小化",
|
||||||
|
"action.tray.quit": "退出",
|
||||||
|
"action.tray.show": "显示",
|
||||||
|
"action.update": "更新",
|
||||||
|
|
||||||
|
|
||||||
// Settings - Audio
|
// Settings - Audio
|
||||||
"settings.header.audio": "音频",
|
"settings.header.audio": "音频",
|
||||||
|
@ -251,10 +260,7 @@
|
||||||
"settings.header.experimental": "实验性功能",
|
"settings.header.experimental": "实验性功能",
|
||||||
"settings.header.experimental.description": "调整Cider的实验性功能",
|
"settings.header.experimental.description": "调整Cider的实验性功能",
|
||||||
"settings.option.experimental.compactUI": "紧凑型 UI", // Toggle
|
"settings.option.experimental.compactUI": "紧凑型 UI", // Toggle
|
||||||
"settings.option.experimental.closeButtonBehaviour": "点击关闭按钮时",
|
"settings.option.experimental.close_button_hide": "点击关闭按钮时仅隐藏窗口",
|
||||||
"settings.option.experimental.closeButtonBehaviour.quit": "退出 Cider",
|
|
||||||
"settings.option.experimental.closeButtonBehaviour.minimizeTaskbar": "最小化到任务栏",
|
|
||||||
"settings.option.experimental.closeButtonBehaviour.minimizeTray": "最小化到系统托盘",
|
|
||||||
// Refer to term.disabled & term.enabled
|
// Refer to term.disabled & term.enabled
|
||||||
|
|
||||||
// Spatialization Menu
|
// Spatialization Menu
|
||||||
|
|
|
@ -116,7 +116,9 @@
|
||||||
"term.tracks": "首歌曲", // Assume x amount of tracks. e.g. 50 tracks
|
"term.tracks": "首歌曲", // Assume x amount of tracks. e.g. 50 tracks
|
||||||
"term.videos": "影片",
|
"term.videos": "影片",
|
||||||
"term.menu": "選單",
|
"term.menu": "選單",
|
||||||
|
"term.check": "檢查",
|
||||||
|
"term.aboutArtist": "關於{{artistName}}", // e.g. 'About Doja Cat'
|
||||||
|
"term.updateCider": "更新 Cider",
|
||||||
|
|
||||||
// Home
|
// Home
|
||||||
"home.title": "主頁",
|
"home.title": "主頁",
|
||||||
|
@ -182,6 +184,12 @@
|
||||||
"action.removeTracks": "從待播清單刪除 ${self.selectedItems.length} 首歌曲",
|
"action.removeTracks": "從待播清單刪除 ${self.selectedItems.length} 首歌曲",
|
||||||
"action.import": "導入",
|
"action.import": "導入",
|
||||||
"action.export": "導出",
|
"action.export": "導出",
|
||||||
|
"action.showAlbum": "顯示專輯",
|
||||||
|
"action.tray.minimize": "最小化",
|
||||||
|
"action.tray.quit": "退出",
|
||||||
|
"action.tray.show": "顯示",
|
||||||
|
"action.update": "更新",
|
||||||
|
|
||||||
|
|
||||||
// Settings - Audio
|
// Settings - Audio
|
||||||
"settings.header.audio": "音訊",
|
"settings.header.audio": "音訊",
|
||||||
|
@ -251,9 +259,7 @@
|
||||||
"settings.header.experimental.description": "調整 Cider 的實驗性功能",
|
"settings.header.experimental.description": "調整 Cider 的實驗性功能",
|
||||||
"settings.option.experimental.compactUI": "緊凑型 UI", // Toggle
|
"settings.option.experimental.compactUI": "緊凑型 UI", // Toggle
|
||||||
"settings.option.experimental.closeButtonBehaviour": "關閉按鈕行為", // Dropdown
|
"settings.option.experimental.closeButtonBehaviour": "關閉按鈕行為", // Dropdown
|
||||||
"settings.option.experimental.closeButtonBehaviour.quit": "退出 Cider",
|
"settings.option.experimental.close_button_hide": "關閉按鈕會隱藏 Cider",
|
||||||
"settings.option.experimental.closeButtonBehaviour.minimizeTaskbar": "最小化到工作列",
|
|
||||||
"settings.option.experimental.closeButtonBehaviour.minimizeTray": "最小化到系統匣",
|
|
||||||
// Refer to term.disabled & term.enabled
|
// Refer to term.disabled & term.enabled
|
||||||
|
|
||||||
// Spatialization Menu
|
// Spatialization Menu
|
||||||
|
|
|
@ -340,6 +340,15 @@ const app = new Vue({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
stringTemplateParser(expression, valueObj) {
|
||||||
|
const templateMatcher = /{{\s?([^{}\s]*)\s?}}/g;
|
||||||
|
let text = expression.replace(templateMatcher, (substring, value, index) => {
|
||||||
|
value = valueObj[value];
|
||||||
|
return value;
|
||||||
|
});
|
||||||
|
return text
|
||||||
|
// stringTemplateParser('my name is {{name}} and age is {{age}}', {name: 'Tom', age:100})
|
||||||
|
},
|
||||||
setLz(lang) {
|
setLz(lang) {
|
||||||
if(lang == "") {
|
if(lang == "") {
|
||||||
lang = this.cfg.general.language
|
lang = this.cfg.general.language
|
||||||
|
|
|
@ -12,12 +12,8 @@
|
||||||
<div class="icon"><%- include("../svg/plus.svg") %></div>
|
<div class="icon"><%- include("../svg/plus.svg") %></div>
|
||||||
<div class="name">{{app.getLz('action.createPlaylist')}}</div>
|
<div class="name">{{app.getLz('action.createPlaylist')}}</div>
|
||||||
</button>
|
</button>
|
||||||
<button class="playlist-item"
|
<sidebar-playlist :playlist-select="playlistSelect" v-for="item in $root.getPlaylistFolderChildren('p.playlistsroot')" :item="item">
|
||||||
:class="{ focused: playlist.id == focused }"
|
</sidebar-playlist>
|
||||||
@click="addToPlaylist(playlist.id)" style="width:100%;" v-for="playlist in playlistSorted" v-if="playlist.attributes.canEdit && playlist.type != 'library-playlist-folders'">
|
|
||||||
<div class="icon"><%- include("../svg/playlist.svg") %></div>
|
|
||||||
<div class="name">{{ playlist.attributes.name }}</div>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-search">
|
<div class="modal-search">
|
||||||
<div class="search-input-container" style="width:100%;margin: 16px 0;">
|
<div class="search-input-container" style="width:100%;margin: 16px 0;">
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<div class="inputs-container">
|
<div class="inputs-container">
|
||||||
<div class="input-container mini">
|
<div class="input-container mini">
|
||||||
{{$root.cfg.audio.equalizer.vibrantBass}}
|
{{$root.cfg.audio.equalizer.vibrantBass}}
|
||||||
<input tabindex="0" type="range" class="eq-slider mini" orient="vertical" min="-20" max="20" step="1" v-model="$root.cfg.audio.equalizer.vibrantBass" @change="changeVibrantBass()">
|
<input tabindex="0" type="range" class="eq-slider mini" orient="vertical" min="-15" max="15" step="1" v-model="$root.cfg.audio.equalizer.vibrantBass" @change="changeVibrantBass()">
|
||||||
Vibrant Bass
|
Vibrant Bass
|
||||||
</div>
|
</div>
|
||||||
<div class="input-container mini">
|
<div class="input-container mini">
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
</template>
|
</template>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col" v-if="data.attributes.artistBio">
|
<div class="col" v-if="data.attributes.artistBio">
|
||||||
<h3>{{ app.getLz('term.about') }} {{ data.attributes.name }}</h3>
|
<h3>{{ $root.stringTemplateParser($root.getLz('term.aboutArtist'), {"artistName": data.attributes.name}) }}</h3>
|
||||||
<p v-html="data.attributes.artistBio"></p>
|
<p v-html="data.attributes.artistBio"></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
|
|
@ -606,7 +606,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="md-option-line">
|
<div class="md-option-line">
|
||||||
<div class="md-option-segment">
|
<div class="md-option-segment">
|
||||||
{{$root.getLz('action.update')}} {{$root.getLz('app.name')}}
|
{{$root.getLz('term.updateCider')}}
|
||||||
</div>
|
</div>
|
||||||
<div class="md-option-segment md-option-segment_auto">
|
<div class="md-option-segment md-option-segment_auto">
|
||||||
<button class="md-btn" @click="app.checkForUpdate()">
|
<button class="md-btn" @click="app.checkForUpdate()">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue