Compare commits
No commits in common. "main" and "v1.6.2" have entirely different histories.
58 changed files with 7372 additions and 6781 deletions
11
.github/dependabot.yml
vendored
11
.github/dependabot.yml
vendored
|
@ -1,11 +0,0 @@
|
|||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "npm" # See documentation for possible values
|
||||
directory: "/" # Location of package manifests
|
||||
schedule:
|
||||
interval: "monthly"
|
33
.github/workflows/cider-chores.yml
vendored
33
.github/workflows/cider-chores.yml
vendored
|
@ -6,39 +6,6 @@ on:
|
|||
- main
|
||||
|
||||
jobs:
|
||||
compile-and-post:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container:
|
||||
image: electronuserland/builder:wine
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout 🛎
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: Install Dependencies 📦
|
||||
run: yarn install
|
||||
|
||||
- name: Build 🏗
|
||||
run: yarn dist:all
|
||||
|
||||
- name: Upload Release 🚀
|
||||
uses: softprops/action-gh-release@v2.0.5
|
||||
with:
|
||||
files: |
|
||||
./dist/*.exe
|
||||
./dist/*.deb
|
||||
./dist/*.AppImage
|
||||
./dist/*.rpm
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
prettier:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
2
.github/workflows/support-notice.yml
vendored
2
.github/workflows/support-notice.yml
vendored
|
@ -14,5 +14,5 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
respondableId: ${{ github.event.issue.node_id }}
|
||||
response: "Cider 1.x is no longer actively maintained. We highly suggest moving to the newer version versions of the app available at https://cider.sh through official storefronts ex. Itch.io, or the Microsoft Store."
|
||||
response: "Support for Cider 1.0 is in a reduced state. Do not expect replies or acknowledgement for issues that do not break full functionality of the app (Media playback, plugin functionality etc.).\n\nIf you are interested in joining the Cider 2 open alpha, you can join our Discord [here](https://discord.gg/AppleMusic)."
|
||||
author: ${{ github.event.issue.user.login }}
|
|
@ -1,6 +1,5 @@
|
|||
src/renderer/*hls*.js
|
||||
build/*
|
||||
dist/*
|
||||
src/renderer/lib/*
|
||||
*.min.*
|
||||
.pnpm-store
|
||||
|
|
873
.yarn/releases/yarn-3.5.1.cjs
vendored
Executable file
873
.yarn/releases/yarn-3.5.1.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,2 @@
|
|||
compressionLevel: mixed
|
||||
|
||||
enableGlobalCache: false
|
||||
|
||||
nodeLinker: node-modules
|
||||
yarnPath: .yarn/releases/yarn-3.5.1.cjs
|
||||
nodeLinker: "node-modules"
|
||||
|
|
|
@ -4,10 +4,10 @@ No support will be given on Windows.
|
|||
|
||||
Thanks for your continued support.
|
||||
|
||||
[Get Cider 2 today.](https://cider.sh/download)
|
||||
[Get Cider 2 today.](https://www.microsoft.com/store/productId/9PL8WPH0QK9M)
|
||||
|
||||
<a href="https://www.microsoft.com/store/productId/9PL8WPH0QK9M"><img src="./src/renderer/assets/c1-c2.png" width="20%" alt="Banner"></a>
|
||||
|
||||
<a href="https://cider.sh/download"><img src="./src/renderer/assets/c1-c2.png" height="64px" alt="Banner"></a>
|
||||
<a href="https://cidercollective.itch.io/cider"><img src="https://cider.sh/assets/itch-badge.svg" height="64px" alt="Banner"></a>
|
||||
---
|
||||
|
||||
<p align="center">
|
||||
|
|
275
azure-pipelines.yml
Normal file
275
azure-pipelines.yml
Normal file
|
@ -0,0 +1,275 @@
|
|||
# Cider-1 Azure Pipeline Workflow
|
||||
# Maintained by Cider Devops.
|
||||
# Don't make changes unless you know what you're doing.
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
paths:
|
||||
include:
|
||||
- src/**/*
|
||||
exclude:
|
||||
- azure-pipelines.yml
|
||||
|
||||
variables:
|
||||
COMMIT_URL: "$(Build.Repository.Uri)/commit/$(Build.SourceVersion)"
|
||||
BUILD_URL: "$(System.CollectionUri)/$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
|
||||
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn/cache
|
||||
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
||||
jobs:
|
||||
|
||||
# Linux Production Build Test
|
||||
# This job is used to test the production build of the Linux distribution.
|
||||
# Also tests Pull Requests.
|
||||
- job: compile_linux
|
||||
displayName: "Compile Linux Distribution"
|
||||
pool: Linux
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: "Install Node.js"
|
||||
inputs:
|
||||
versionSource: "fromFile"
|
||||
versionFilePath: ".nvmrc"
|
||||
|
||||
# - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
||||
# - task: Cache@2
|
||||
# inputs:
|
||||
# key: 'yarn | "$(Agent.OS)" | yarn.lock'
|
||||
# path: $(YARN_CACHE_FOLDER)
|
||||
# displayName: Cache yarn
|
||||
|
||||
- script: yarn set version from sources
|
||||
displayName: "Setup yarn"
|
||||
|
||||
# Install dependencies (immutable for non-PR builds)
|
||||
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
||||
- script: yarn install
|
||||
displayName: "Install Dependencies"
|
||||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
||||
- script: yarn install
|
||||
displayName: "Install Dependencies"
|
||||
|
||||
- script: yarn dist:linux
|
||||
displayName: "Compile Distribution"
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: "Copy to artifacts staging directory"
|
||||
inputs:
|
||||
SourceFolder: 'dist'
|
||||
Contents: |
|
||||
*.AppImage
|
||||
*.deb
|
||||
*.snap
|
||||
*.rpm
|
||||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Upload Artifacts
|
||||
inputs:
|
||||
ArtifactName: "Cider-1"
|
||||
publishLocation: "Container"
|
||||
- task: GitHubRelease@1
|
||||
inputs:
|
||||
gitHubConnection: 'ciderapp'
|
||||
repositoryName: 'ciderapp/Cider'
|
||||
action: 'edit'
|
||||
target: '$(Build.SourceVersion)'
|
||||
tag: 'v1.6.2'
|
||||
title: 'Cider Version 1.6.2'
|
||||
releaseNotesSource: 'inline'
|
||||
releaseNotesInline: 'Builds from [Azure](https://dev.azure.com/cidercollective/Cider/_build?definitionId=14) CI/CD'
|
||||
assets: |
|
||||
$(Build.ArtifactStagingDirectory)/*.exe
|
||||
$(Build.ArtifactStagingDirectory)/*.deb
|
||||
$(Build.ArtifactStagingDirectory)/*.AppImage
|
||||
$(Build.ArtifactStagingDirectory)/*.snap
|
||||
assetUploadMode: 'replace'
|
||||
addChangeLog: false
|
||||
|
||||
# - task: DownloadBuildArtifacts@1
|
||||
# inputs:
|
||||
# buildType: 'current'
|
||||
# downloadType: 'specific'
|
||||
# downloadPath: '$(System.ArtifactsDirectory)'
|
||||
|
||||
# Windows Production Build Test
|
||||
# This job is used to test the production build of the Windows distribution.
|
||||
# Also tests Pull Requests.
|
||||
- job: compile_windows
|
||||
displayName: "Compile Windows Distribution"
|
||||
pool: default
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: "Install Node.js"
|
||||
inputs:
|
||||
versionSource: "fromFile"
|
||||
versionFilePath: ".nvmrc"
|
||||
|
||||
# - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
||||
# - task: Cache@2
|
||||
# inputs:
|
||||
# key: 'yarn | "$(Agent.OS)" | yarn.lock'
|
||||
# path: $(YARN_CACHE_FOLDER)
|
||||
# displayName: Cache yarn
|
||||
|
||||
- script: yarn set version from sources
|
||||
displayName: "Setup yarn"
|
||||
|
||||
# Install dependencies (immutable for non-PR builds)
|
||||
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
||||
- script: yarn install
|
||||
displayName: "Install Dependencies"
|
||||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
||||
- script: yarn install
|
||||
displayName: "Install Dependencies"
|
||||
|
||||
- script: yarn dist:win
|
||||
env: {GH_TOKEN : $(GH_TOKEN)}
|
||||
displayName: "Compile Distribution"
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: "Copy to artifacts staging directory"
|
||||
inputs:
|
||||
SourceFolder: "dist"
|
||||
Contents: "*.exe"
|
||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||
|
||||
- task: GitHubRelease@1
|
||||
inputs:
|
||||
gitHubConnection: 'ciderapp'
|
||||
repositoryName: 'ciderapp/Cider'
|
||||
action: 'edit'
|
||||
target: '$(Build.SourceVersion)'
|
||||
tag: 'v1.6.2'
|
||||
title: 'Cider Version 1.6.2'
|
||||
releaseNotesSource: 'inline'
|
||||
releaseNotesInline: 'Builds from [Azure](https://dev.azure.com/cidercollective/Cider/_build?definitionId=14) CI/CD'
|
||||
assets: |
|
||||
$(Build.ArtifactStagingDirectory)/*.exe
|
||||
$(Build.ArtifactStagingDirectory)/*.deb
|
||||
$(Build.ArtifactStagingDirectory)/*.AppImage
|
||||
$(Build.ArtifactStagingDirectory)/*.snap
|
||||
assetUploadMode: 'replace'
|
||||
addChangeLog: false
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Upload Artifacts
|
||||
inputs:
|
||||
ArtifactName: "Cider-1"
|
||||
publishLocation: "Container"
|
||||
|
||||
|
||||
- job: compile_winget
|
||||
displayName: "Compile for Winget"
|
||||
pool: default
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: "Install Node.js"
|
||||
inputs:
|
||||
versionSource: "fromFile"
|
||||
versionFilePath: ".nvmrc"
|
||||
|
||||
- script: yarn set version from sources
|
||||
displayName: "Setup yarn"
|
||||
|
||||
- script: yarn install
|
||||
displayName: "Install Dependencies"
|
||||
|
||||
- script: yarn run winget
|
||||
env: {GH_TOKEN : $(GH_TOKEN)}
|
||||
displayName: "Compile Distribution"
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: "Copy to artifacts staging directory"
|
||||
inputs:
|
||||
SourceFolder: "dist"
|
||||
Contents: "*.exe"
|
||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||
|
||||
- task: GitHubRelease@1
|
||||
inputs:
|
||||
gitHubConnection: 'ciderapp'
|
||||
repositoryName: 'ciderapp/Cider'
|
||||
action: 'edit'
|
||||
target: '$(Build.SourceVersion)'
|
||||
tag: 'v1.6.2'
|
||||
title: 'Cider Version 1.6.2'
|
||||
releaseNotesSource: 'inline'
|
||||
releaseNotesInline: 'Builds from [Azure](https://dev.azure.com/cidercollective/Cider/_build?definitionId=14) CI/CD'
|
||||
assets: |
|
||||
$(Build.ArtifactStagingDirectory)/*.exe
|
||||
$(Build.ArtifactStagingDirectory)/*.deb
|
||||
$(Build.ArtifactStagingDirectory)/*.AppImage
|
||||
$(Build.ArtifactStagingDirectory)/*.snap
|
||||
assetUploadMode: 'replace'
|
||||
addChangeLog: false
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Upload Artifacts
|
||||
inputs:
|
||||
ArtifactName: "Cider-1"
|
||||
publishLocation: "Container"
|
||||
|
||||
- job: compile_macos
|
||||
displayName: "Compile MacOS Distribution"
|
||||
pool: Macos
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
displayName: "Install Node.js"
|
||||
inputs:
|
||||
versionSource: "fromFile"
|
||||
versionFilePath: ".nvmrc"
|
||||
|
||||
- script: yarn set version from sources
|
||||
displayName: "Setup yarn"
|
||||
|
||||
# Install dependencies (immutable for non-PR builds)
|
||||
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
||||
- script: yarn install
|
||||
displayName: "Install Dependencies"
|
||||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
||||
- script: yarn install
|
||||
displayName: "Install Dependencies"
|
||||
|
||||
- script: yarn dist -m --publish=never
|
||||
env:
|
||||
CSC_LINK: $(CSC_LINK)
|
||||
CSC_KEY_PASSWORD: $(CSC_KEY_PASS)
|
||||
APPLEID: $(APPLEID)
|
||||
APPLEIDPASS: $(APPLEIDPASS)
|
||||
GH_TOKEN: $(GH_TOKEN)
|
||||
displayName: "Compile Distribution"
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: "Copy to artifacts staging directory"
|
||||
inputs:
|
||||
SourceFolder: 'dist'
|
||||
Contents: |
|
||||
*.dmg
|
||||
*.pkg
|
||||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Upload Artifacts
|
||||
inputs:
|
||||
ArtifactName: "Cider-1"
|
||||
publishLocation: "Container"
|
||||
- task: GitHubRelease@1
|
||||
inputs:
|
||||
gitHubConnection: 'ciderapp'
|
||||
repositoryName: 'ciderapp/Cider'
|
||||
action: 'edit'
|
||||
target: '$(Build.SourceVersion)'
|
||||
tag: 'v1.6.2'
|
||||
title: 'Cider Version 1.6.2'
|
||||
releaseNotesSource: 'inline'
|
||||
releaseNotesInline: 'Builds from [Azure](https://dev.azure.com/cidercollective/Cider/_build?definitionId=14) CI/CD'
|
||||
assets: |
|
||||
$(Build.ArtifactStagingDirectory)/*.pkg
|
||||
$(Build.ArtifactStagingDirectory)/*.dmg
|
||||
assetUploadMode: 'replace'
|
||||
addChangeLog: false
|
||||
|
||||
|
||||
|
104
package.json
104
package.json
|
@ -2,14 +2,12 @@
|
|||
"name": "cider",
|
||||
"applicationId": "Cider",
|
||||
"productName": "Cider",
|
||||
"version": "1.6.3",
|
||||
"version": "1.6.2",
|
||||
"description": "A new cross-platform Apple Music experience based on Electron and Vue.js written from scratch with performance in mind.",
|
||||
"license": "AGPL-3.0",
|
||||
"exports": "./build/index.js",
|
||||
"main": "./build/index.js",
|
||||
"author": "Cider Collective <cryptofyre@cider.sh> (https://cider.sh)",
|
||||
"repository": "github:ciderapp/Cider",
|
||||
"type": "module",
|
||||
"bugs": {
|
||||
"url": "https://github.com/ciderapp/Cider/issues?q=is%3Aopen+is%3Aissue+label%3Abug"
|
||||
},
|
||||
|
@ -22,7 +20,6 @@
|
|||
"dist": "npm run build && electron-builder --publish=never",
|
||||
"dist:win": "npm run build && electron-builder --win --publish=never",
|
||||
"dist:linux": "npm run build && electron-builder --linux --publish=never",
|
||||
"dist:all": "npm run build && electron-builder -wl --publish=never",
|
||||
"dist:universalNotWorking": "npm run build && electron-builder --mac --universal --publish:never",
|
||||
"winget": "npm run build && electron-builder --win -c winget.json",
|
||||
"msft": "npm run build && electron-builder -c msft-package.json",
|
||||
|
@ -32,66 +29,64 @@
|
|||
"format:write": "npx prettier --write \"src/**/*.{js,json,ts,less}\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@achingbrain/ssdp": "^4.0.6",
|
||||
"@crowdin/ota-client": "^1.1.1",
|
||||
"@sentry/electron": "^4.24.0",
|
||||
"@sentry/integrations": "7.114.0",
|
||||
"adm-zip": "^0.5.12",
|
||||
"airtunes2": "ciderapp/node_airtunes2",
|
||||
"castv2-client": "ciderapp/node-castv2-client",
|
||||
"chokidar": "^3.6.0",
|
||||
"@achingbrain/ssdp": "^4.0.4",
|
||||
"@crowdin/ota-client": "^1.0.0",
|
||||
"@sentry/electron": "^4.6.0",
|
||||
"@sentry/integrations": "^7.54.0",
|
||||
"adm-zip": "^0.5.10",
|
||||
"airtunes2": "github:ciderapp/node_airtunes2",
|
||||
"castv2-client": "^1.2.0",
|
||||
"chokidar": "^3.5.3",
|
||||
"discord-auto-rpc": "^1.0.17",
|
||||
"ejs": "^3.1.10",
|
||||
"electron-log": "^5.1.4",
|
||||
"dns-js": "github:ciderapp/node-dns-js",
|
||||
"ejs": "^3.1.9",
|
||||
"electron-fetch": "^1.9.1",
|
||||
"electron-log": "^4.4.8",
|
||||
"electron-notarize": "^1.2.2",
|
||||
"electron-store": "^9.0.0",
|
||||
"electron-updater": "6.2.1",
|
||||
"electron-store": "^8.1.0",
|
||||
"electron-updater": "^5.3.0",
|
||||
"electron-window-state": "^5.0.3",
|
||||
"express": "^4.19.2",
|
||||
"get-port": "7.1.0",
|
||||
"jimp": "^0.22.12",
|
||||
"express": "^4.18.2",
|
||||
"get-port": "5.1.1",
|
||||
"jimp": "^0.22.8",
|
||||
"lastfmapi": "^0.1.1",
|
||||
"mdns-js": "ciderapp/node-mdns-js",
|
||||
"mpris-service": "ciderapp/mpris-service",
|
||||
"music-metadata": "7.14.0",
|
||||
"node-fetch": "^3.3.2",
|
||||
"mdns-js": "github:ciderapp/node-mdns-js",
|
||||
"mpris-service": "^2.1.2",
|
||||
"music-metadata": "7.12.6",
|
||||
"node-gyp": "^9.3.1",
|
||||
"node-ssdp": "^4.0.1",
|
||||
"node-ssdp-js": "^0.9.6",
|
||||
"qrcode": "^1.5.3",
|
||||
"request": "^2.88.2",
|
||||
"run-script-os": "^1.1.6",
|
||||
"simple-ssdp": "^1.0.2",
|
||||
"source-map-support": "^0.5.21",
|
||||
"ssdp-js": "^1.0.1",
|
||||
"ts-md5": "1.3.1",
|
||||
"upnp-mediarenderer-client": "vapormusic/node-upnp-mediarenderer-client",
|
||||
"v8-compile-cache": "^2.4.0",
|
||||
"wallpaper": "7.2.1",
|
||||
"ws": "^8.17.0",
|
||||
"xml2js": "^0.6.2",
|
||||
"youtube-search-without-api-key": "^2.0.1"
|
||||
"upnp-mediarenderer-client": "github:vapormusic/node-upnp-mediarenderer-client",
|
||||
"v8-compile-cache": "^2.3.0",
|
||||
"wallpaper": "5.0.1",
|
||||
"ws": "^8.13.0",
|
||||
"xml2js": "^0.6.0",
|
||||
"youtube-search-without-api-key": "^1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/adm-zip": "^0.5.5",
|
||||
"@types/discord-rpc": "4.0.8",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/musickit": "ciderapp/musickit-types",
|
||||
"@types/node": "^20.12.12",
|
||||
"@types/node-ssdp": "^4.0.4",
|
||||
"@types/qrcode-terminal": "^0.12.2",
|
||||
"@types/request": "^2.48.12",
|
||||
"@types/upnp-mediarenderer-client": "^1.4.3",
|
||||
"@types/ws": "^8.5.10",
|
||||
"@types/xml2js": "^0.4.14",
|
||||
"electron": "github:castlabs/electron-releases#v30.0.4+wvcus",
|
||||
"electron-builder": "^24.13.3",
|
||||
"@types/adm-zip": "^0.5.0",
|
||||
"@types/discord-rpc": "4.0.4",
|
||||
"@types/express": "^4.17.17",
|
||||
"@types/musickit": "github:ciderapp/musickit-types",
|
||||
"@types/node": "^20.2.5",
|
||||
"@types/qrcode-terminal": "^0.12.0",
|
||||
"@types/ws": "^8.5.4",
|
||||
"electron": "github:castlabs/electron-releases",
|
||||
"electron-builder": "^23.6.0",
|
||||
"electron-builder-notarize-pkg": "^1.2.0",
|
||||
"electron-webpack": "^2.8.2",
|
||||
"less": "^4.2.0",
|
||||
"node-gyp": "^10.1.0",
|
||||
"prettier": "3.2.5",
|
||||
"typescript": "^5.4.5",
|
||||
"less": "^4.1.3",
|
||||
"prettier": "2.8.8",
|
||||
"typescript": "^5.1.3",
|
||||
"vue-devtools": "^5.1.4",
|
||||
"webpack": "~5.91.0"
|
||||
"webpack": "~5.85.0"
|
||||
},
|
||||
"fileAssociations": [
|
||||
{
|
||||
|
@ -116,14 +111,14 @@
|
|||
}
|
||||
],
|
||||
"build": {
|
||||
"electronVersion": "30.0.6",
|
||||
"electronVersion": "25.0.0",
|
||||
"electronDownload": {
|
||||
"version": "30.0.6+wvcus",
|
||||
"version": "25.0.0+wvcus",
|
||||
"mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
|
||||
},
|
||||
"appId": "cider",
|
||||
"afterPack": "./resources/afterPack.cjs",
|
||||
"afterSign": "./resources/notarize.cjs",
|
||||
"afterPack": "./resources/afterPack.js",
|
||||
"afterSign": "./resources/notarize.js",
|
||||
"protocols": [
|
||||
{
|
||||
"name": "Cider",
|
||||
|
@ -147,7 +142,7 @@
|
|||
"target": [
|
||||
"AppImage",
|
||||
"deb",
|
||||
"rpm"
|
||||
"snap"
|
||||
],
|
||||
"synopsis": "A new look into listening and enjoying music in style and performance. ",
|
||||
"category": "AudioVideo",
|
||||
|
@ -231,8 +226,9 @@
|
|||
"devtool": "source-map"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18",
|
||||
"node": ">= 16",
|
||||
"npm": ">= 6.13.4",
|
||||
"yarn": ">= 1.21.1"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@3.5.1"
|
||||
}
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import { Menu, Tray, app, clipboard, ipcMain, nativeImage, shell } from "electron";
|
||||
import log from "electron-log";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { dirname, join, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import os from "os";
|
||||
import { utils } from "../base/utils.js";
|
||||
import { app, Menu, nativeImage, Tray, ipcMain, clipboard, shell } from "electron";
|
||||
import { readFileSync } from "fs";
|
||||
import * as path from "path";
|
||||
import * as log from "electron-log";
|
||||
import * as os from "os";
|
||||
import { utils } from "./utils";
|
||||
|
||||
/**
|
||||
* @file Creates App instance
|
||||
|
@ -46,7 +45,7 @@ export class AppEvents {
|
|||
|
||||
// Log File Location
|
||||
if (app.commandLine.hasSwitch("log") || app.commandLine.hasSwitch("l")) {
|
||||
console.log(join(app.getPath("userData"), "logs"));
|
||||
console.log(path.join(app.getPath("userData"), "logs"));
|
||||
app.exit();
|
||||
}
|
||||
|
||||
|
@ -108,7 +107,7 @@ export class AppEvents {
|
|||
if (process.defaultApp) {
|
||||
if (process.argv.length >= 2) {
|
||||
this.protocols.forEach((protocol: string) => {
|
||||
app.setAsDefaultProtocolClient(protocol, process.execPath, [resolve(process.argv[1])]);
|
||||
app.setAsDefaultProtocolClient(protocol, process.execPath, [path.resolve(process.argv[1])]);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
@ -145,7 +144,7 @@ export class AppEvents {
|
|||
title: "Web Remote",
|
||||
description: "Connect to your Web Remote",
|
||||
},
|
||||
"https://webremote.cider.sh",
|
||||
"https://webremote.cider.sh"
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -264,15 +263,15 @@ export class AppEvents {
|
|||
*/
|
||||
private InitTray() {
|
||||
const icons = {
|
||||
win32: nativeImage.createFromPath(join(dirname(fileURLToPath(import.meta.url)), `../../resources/icons/icon.ico`)).resize({
|
||||
win32: nativeImage.createFromPath(path.join(__dirname, `../../resources/icons/icon.ico`)).resize({
|
||||
width: 32,
|
||||
height: 32,
|
||||
}),
|
||||
linux: nativeImage.createFromPath(join(dirname(fileURLToPath(import.meta.url)), `../../resources/icons/icon.png`)).resize({
|
||||
linux: nativeImage.createFromPath(path.join(__dirname, `../../resources/icons/icon.png`)).resize({
|
||||
width: 32,
|
||||
height: 32,
|
||||
}),
|
||||
darwin: nativeImage.createFromPath(join(dirname(fileURLToPath(import.meta.url)), `../../resources/icons/icon.png`)).resize({
|
||||
darwin: nativeImage.createFromPath(path.join(__dirname, `../../resources/icons/icon.png`)).resize({
|
||||
width: 20,
|
||||
height: 20,
|
||||
}),
|
||||
|
@ -281,7 +280,7 @@ export class AppEvents {
|
|||
this.tray.setToolTip(app.getName());
|
||||
this.setTray(false);
|
||||
|
||||
this.tray.on("double-click", () => { // supports windows and mac only
|
||||
this.tray.on("double-click", () => {
|
||||
if (utils.getWindow()) {
|
||||
if (utils.getWindow().isVisible()) {
|
||||
utils.getWindow().focus();
|
||||
|
@ -291,16 +290,6 @@ export class AppEvents {
|
|||
}
|
||||
});
|
||||
|
||||
this.tray.on("click", () => {
|
||||
if (utils.getWindow() && process.platform === "linux") { // use single click to open when double doesn't work
|
||||
if (utils.getWindow().isVisible()) {
|
||||
utils.getWindow().focus();
|
||||
} else {
|
||||
utils.getWindow().show();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
utils.getWindow().on("show", () => {
|
||||
this.setTray(true);
|
||||
});
|
||||
|
@ -325,7 +314,7 @@ export class AppEvents {
|
|||
private setTray(visible: boolean = utils.getWindow().isVisible()) {
|
||||
this.i18n = utils.getLocale(utils.getStoreValue("general.language"));
|
||||
|
||||
const ciderIcon = nativeImage.createFromPath(join(dirname(fileURLToPath(import.meta.url)), `../../resources/icons/icon.png`)).resize({
|
||||
const ciderIcon = nativeImage.createFromPath(path.join(__dirname, `../../resources/icons/icon.png`)).resize({
|
||||
width: 24,
|
||||
height: 24,
|
||||
});
|
||||
|
|
|
@ -1,21 +1,22 @@
|
|||
import AdmZip from "adm-zip";
|
||||
import { watch } from "chokidar";
|
||||
import { ShareMenu, app, BrowserWindow as bw, dialog, ipcMain, nativeTheme, screen, shell } from "electron";
|
||||
import windowStateKeeper from "electron-window-state";
|
||||
import express from "express";
|
||||
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, rmSync, rmdirSync, statSync, unlinkSync, writeFileSync } from "fs";
|
||||
import getPort from "get-port";
|
||||
import { LocalFiles } from "../providers/local/index.js";
|
||||
import mm from "music-metadata";
|
||||
import fetch from "node-fetch";
|
||||
import os, { networkInterfaces } from "os";
|
||||
import { join } from "path";
|
||||
import { Stream } from "stream";
|
||||
import { getWallpaper } from "wallpaper";
|
||||
import { app, BrowserWindow as bw, ipcMain, ShareMenu, shell, screen, dialog, nativeTheme, ipcRenderer } from "electron";
|
||||
import * as windowStateKeeper from "electron-window-state";
|
||||
import * as express from "express";
|
||||
import * as getPort from "get-port";
|
||||
import { search } from "youtube-search-without-api-key";
|
||||
import { Plugins } from "./plugins.js";
|
||||
import { utils } from "./utils.js";
|
||||
import { wsapi } from "./wsapi.js";
|
||||
import { existsSync, rmSync, mkdirSync, readdirSync, readFileSync, writeFileSync, statSync, unlinkSync, rmdirSync, lstatSync } from "fs";
|
||||
import { Stream } from "stream";
|
||||
import { networkInterfaces } from "os";
|
||||
import * as mm from "music-metadata";
|
||||
import fetch from "electron-fetch";
|
||||
import { wsapi } from "./wsapi";
|
||||
import { utils } from "./utils";
|
||||
import { Plugins } from "./plugins";
|
||||
import { watch } from "chokidar";
|
||||
import * as os from "os";
|
||||
import wallpaper from "wallpaper";
|
||||
import * as AdmZip from "adm-zip";
|
||||
import { LocalFiles } from "../providers/local/";
|
||||
|
||||
/**
|
||||
* @file Creates the BrowserWindow
|
||||
|
@ -707,7 +708,7 @@ export class BrowserWindow {
|
|||
cancel: false,
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
BrowserWindow.win.webContents.session.webRequest.onBeforeSendHeaders(async (details: { url: string; requestHeaders: { [x: string]: string } }, callback: (arg0: { requestHeaders: any }) => void) => {
|
||||
|
@ -784,15 +785,15 @@ export class BrowserWindow {
|
|||
"media-user-token": options.mediaToken,
|
||||
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Cider/1.4.2 Chrome/100.0.4896.75 Electron/18.0.3 Safari/537.36",
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
let json = await res.json();
|
||||
return json;
|
||||
});
|
||||
|
||||
ipcMain.on("get-wallpaper", async (event, args) => {
|
||||
const wpPath: string = await getWallpaper();
|
||||
const Jimp = (await import("jimp")).default;
|
||||
const wpPath: string = await wallpaper.get();
|
||||
const Jimp = require("jimp");
|
||||
const img = await Jimp.read(wpPath);
|
||||
const blurAmount = args.blurAmount ?? 256;
|
||||
if (blurAmount) {
|
||||
|
@ -884,7 +885,7 @@ export class BrowserWindow {
|
|||
if (url.endsWith("/")) url = url.slice(0, -1);
|
||||
let response = await utils.fetch(`${url}/archive/refs/heads/main.zip`);
|
||||
let repo = url.split("/").slice(-2).join("/");
|
||||
let apiRepo = await utils.fetch(`https://api.github.com/repos/${repo}`).then((res) => res.json()) as { id: number};
|
||||
let apiRepo = await utils.fetch(`https://api.github.com/repos/${repo}`).then((res) => res.json());
|
||||
console.debug(`REPO ID: ${apiRepo.id}`);
|
||||
// extract the files from the first folder in the zip response
|
||||
let zip = new AdmZip(await response.buffer());
|
||||
|
@ -894,7 +895,7 @@ export class BrowserWindow {
|
|||
}
|
||||
console.log(join(utils.getPath("plugins"), "gh_" + apiRepo.id));
|
||||
zip.extractEntryTo(entry, join(utils.getPath("plugins"), "gh_" + apiRepo.id), false, true);
|
||||
let commit = await utils.fetch(`https://api.github.com/repos/${repo}/commits`).then((res) => res.json()) as { sha: string }[];
|
||||
let commit = await utils.fetch(`https://api.github.com/repos/${repo}/commits`).then((res) => res.json());
|
||||
console.debug(`COMMIT SHA: ${commit[0].sha}`);
|
||||
let theme = JSON.parse(readFileSync(join(utils.getPath("plugins"), "gh_" + apiRepo.id, "package.json"), "utf8"));
|
||||
theme.id = apiRepo.id;
|
||||
|
@ -927,7 +928,7 @@ export class BrowserWindow {
|
|||
"User-Agent": utils.getWindow().webContents.getUserAgent(),
|
||||
},
|
||||
})
|
||||
.then((res) => res.json()) as { id: number}
|
||||
.then((res) => res.json());
|
||||
console.error(apiRepo);
|
||||
console.debug(`REPO ID: ${apiRepo.id}`);
|
||||
// extract the files from the first folder in the zip response
|
||||
|
@ -941,7 +942,7 @@ export class BrowserWindow {
|
|||
let subFolder = entry.entryName.split("/").slice(1, -1).join("/");
|
||||
zip.extractEntryTo(entry, join(utils.getPath("themes"), "gh_" + apiRepo.id, "/", subFolder), false, true);
|
||||
});
|
||||
let commit = await utils.fetch(`https://api.github.com/repos/${repo}/commits`).then((res) => res.json()) as { sha: string }[];
|
||||
let commit = await utils.fetch(`https://api.github.com/repos/${repo}/commits`).then((res) => res.json());
|
||||
console.debug(`COMMIT SHA: ${commit[0].sha}`);
|
||||
let theme = JSON.parse(readFileSync(join(utils.getPath("themes"), "gh_" + apiRepo.id, "theme.json"), "utf8"));
|
||||
theme.id = apiRepo.id;
|
||||
|
@ -1349,12 +1350,11 @@ export class BrowserWindow {
|
|||
{
|
||||
ip: `${BrowserWindow.getIP()}`,
|
||||
},
|
||||
`http://${BrowserWindow.getIP()}:${this.remotePort}`,
|
||||
`http://${BrowserWindow.getIP()}:${this.remotePort}`
|
||||
);
|
||||
}
|
||||
// Get previews for normalization
|
||||
ipcMain.on("getPreviewURL", (_event, url) => {
|
||||
|
||||
fetch(url)
|
||||
.then((res) => res.buffer())
|
||||
.then(async (buffer) => {
|
||||
|
@ -1664,7 +1664,7 @@ export class BrowserWindow {
|
|||
*/
|
||||
private async broadcastRemote() {
|
||||
const myString = `http://${BrowserWindow.getIP()}:${this.remotePort}`;
|
||||
const mdns = (await import("mdns-js")).default;
|
||||
const mdns = require("mdns-js");
|
||||
const encoded = Buffer.from(myString).toString("base64");
|
||||
const x = mdns.tcp("cider-remote");
|
||||
const txt_record = {
|
||||
|
|
32
src/main/base/castcontroller.js
Normal file
32
src/main/base/castcontroller.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
var util = require("util");
|
||||
var castv2Cli = require("castv2-client");
|
||||
var RequestResponseController = castv2Cli.RequestResponseController;
|
||||
|
||||
function CiderCastController(client, sourceId, destinationId) {
|
||||
RequestResponseController.call(this, client, sourceId, destinationId, "urn:x-cast:com.ciderapp.customdata");
|
||||
this.once("close", onclose);
|
||||
var self = this;
|
||||
function onclose() {
|
||||
self.stop();
|
||||
}
|
||||
}
|
||||
|
||||
util.inherits(CiderCastController, RequestResponseController);
|
||||
|
||||
CiderCastController.prototype.sendIp = function (ip) {
|
||||
// TODO: Implement Callback
|
||||
let data = {
|
||||
ip: ip,
|
||||
};
|
||||
this.request(data);
|
||||
};
|
||||
|
||||
CiderCastController.prototype.kill = function () {
|
||||
// TODO: Implement Callback
|
||||
let data = {
|
||||
action: "stop",
|
||||
};
|
||||
this.request(data);
|
||||
};
|
||||
|
||||
module.exports = CiderCastController;
|
|
@ -1,32 +0,0 @@
|
|||
// @ts-nocheck
|
||||
import castv2Cli from "castv2-client";
|
||||
const RequestResponseController = castv2Cli.RequestResponseController;
|
||||
|
||||
|
||||
|
||||
export class CiderCastController extends RequestResponseController {
|
||||
constructor(client: string, sourceId: string, destinationId: string) {
|
||||
super(client, sourceId, destinationId, "urn:x-cast:com.ciderapp.customdata");
|
||||
this.once("close", onclose);
|
||||
var self = this;
|
||||
function onclose() {
|
||||
self.stop();
|
||||
}
|
||||
}
|
||||
|
||||
sendIp(ip: string) {
|
||||
// TODO: Implement Callback
|
||||
let data = {
|
||||
ip: ip,
|
||||
};
|
||||
this.request(data);
|
||||
}
|
||||
|
||||
kill() {
|
||||
// TODO: Implement Callback
|
||||
let data = {
|
||||
action: "stop",
|
||||
};
|
||||
this.request(data);
|
||||
}
|
||||
}
|
80
src/main/base/castreceiver.js
Normal file
80
src/main/base/castreceiver.js
Normal file
|
@ -0,0 +1,80 @@
|
|||
//@ts-nocheck
|
||||
var util = require("util");
|
||||
// var debug = require('debug')('castv2-client');
|
||||
var Application = require("castv2-client").Application;
|
||||
var MediaController = require("castv2-client").MediaController;
|
||||
var CiderCastController = require("./castcontroller");
|
||||
|
||||
function CiderReceiver(client, session) {
|
||||
Application.apply(this, arguments);
|
||||
|
||||
this.media = this.createController(MediaController);
|
||||
this.mediaReceiver = this.createController(CiderCastController);
|
||||
|
||||
this.media.on("status", onstatus);
|
||||
|
||||
var self = this;
|
||||
|
||||
function onstatus(status) {
|
||||
self.emit("status", status);
|
||||
}
|
||||
}
|
||||
// FE96A351
|
||||
// 27E1334F
|
||||
CiderReceiver.APP_ID = "FE96A351";
|
||||
|
||||
util.inherits(CiderReceiver, Application);
|
||||
|
||||
CiderReceiver.prototype.getStatus = function (callback) {
|
||||
this.media.getStatus.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.load = function (media, options, callback) {
|
||||
this.media.load.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.play = function (callback) {
|
||||
this.media.play.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.pause = function (callback) {
|
||||
this.media.pause.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.stop = function (callback) {
|
||||
this.media.stop.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.seek = function (currentTime, callback) {
|
||||
this.media.seek.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.queueLoad = function (items, options, callback) {
|
||||
this.media.queueLoad.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.queueInsert = function (items, options, callback) {
|
||||
this.media.queueInsert.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.queueRemove = function (itemIds, options, callback) {
|
||||
this.media.queueRemove.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.queueReorder = function (itemIds, options, callback) {
|
||||
this.media.queueReorder.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.queueUpdate = function (items, callback) {
|
||||
this.media.queueUpdate.apply(this.media, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.sendIp = function (opts) {
|
||||
this.mediaReceiver.sendIp.apply(this.mediaReceiver, arguments);
|
||||
};
|
||||
|
||||
CiderReceiver.prototype.kill = function (opts) {
|
||||
this.mediaReceiver.kill.apply(this.mediaReceiver, arguments);
|
||||
};
|
||||
|
||||
module.exports = CiderReceiver;
|
|
@ -1,80 +0,0 @@
|
|||
// @ts-nocheck
|
||||
import castv2Cli from "castv2-client";
|
||||
import { CiderCastController } from "./castcontroller.js";
|
||||
|
||||
const Application = castv2Cli.Application;
|
||||
const MediaController = castv2Cli.MediaController;
|
||||
|
||||
export class CiderReceiver extends Application {
|
||||
// FE96A351
|
||||
// 27E1334F
|
||||
public APP_ID = "FE96A351";
|
||||
|
||||
constructor(_client: unknown, _session: unknown) {
|
||||
super();
|
||||
super.apply(this, arguments);
|
||||
|
||||
this.media = this.createController(MediaController);
|
||||
this.mediaReceiver = this.createController(CiderCastController);
|
||||
|
||||
this.media.on("status", onstatus);
|
||||
|
||||
var self = this;
|
||||
|
||||
function onstatus(status: string) {
|
||||
self.emit("status", status);
|
||||
}
|
||||
}
|
||||
|
||||
getStatus(callback: unknown) {
|
||||
this.media.getStatus.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
load(media: unknown, options: unknown, callback: unknown) {
|
||||
this.media.load.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
play(callback: unknown) {
|
||||
this.media.play.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
pause(callback: unknown) {
|
||||
this.media.pause.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
stop(callback: unknown) {
|
||||
this.media.stop.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
seek(currentTime: unknown, callback: unknown) {
|
||||
this.media.seek.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
queueLoad(items: unknown, options: unknown, callback: unknown) {
|
||||
this.media.queueLoad.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
queueInsert(items: unknown, options: unknown, callback: unknown) {
|
||||
this.media.queueInsert.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
queueRemove(itemIds: unknown, options: unknown, callback: unknown) {
|
||||
this.media.queueRemove.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
queueReorder(itemIds: unknown, options: unknown, callback: unknown) {
|
||||
this.media.queueReorder.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
queueUpdate(items: unknown, callback: unknown) {
|
||||
this.media.queueUpdate.apply(this.media, arguments);
|
||||
}
|
||||
|
||||
sendIp(opts: unknown) {
|
||||
this.mediaReceiver.sendIp.apply(this.mediaReceiver, arguments);
|
||||
}
|
||||
|
||||
kill(opts: unknown) {
|
||||
this.mediaReceiver.kill.apply(this.mediaReceiver, arguments);
|
||||
}
|
||||
}
|
|
@ -1,8 +1,7 @@
|
|||
import {app} from "electron";
|
||||
import { existsSync, lstatSync, readdirSync } from "node:fs";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { utils } from "./utils.js";
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import * as electron from "electron";
|
||||
import { utils } from "./utils";
|
||||
|
||||
//
|
||||
// Hello, this is our loader for the various plugins that the Cider Development Team built for our
|
||||
|
@ -18,8 +17,8 @@ import { utils } from "./utils.js";
|
|||
*/
|
||||
export class Plugins {
|
||||
private static PluginMap: any = {};
|
||||
private basePluginsPath = join(dirname(fileURLToPath(import.meta.url)), "../plugins");
|
||||
private userPluginsPath = join(app.getPath("userData"), "Plugins");
|
||||
private basePluginsPath = path.join(__dirname, "../plugins");
|
||||
private userPluginsPath = path.join(electron.app.getPath("userData"), "Plugins");
|
||||
private readonly pluginsList: any = {};
|
||||
|
||||
constructor() {
|
||||
|
@ -37,10 +36,10 @@ export class Plugins {
|
|||
public getPlugins(): any {
|
||||
let plugins: any = {};
|
||||
|
||||
if (existsSync(this.basePluginsPath)) {
|
||||
readdirSync(this.basePluginsPath).forEach(async (file) => {
|
||||
if (fs.existsSync(this.basePluginsPath)) {
|
||||
fs.readdirSync(this.basePluginsPath).forEach((file) => {
|
||||
if (file.endsWith(".ts") || file.endsWith(".js")) {
|
||||
const plugin = (await import(join(this.basePluginsPath, file))).default;
|
||||
const plugin = require(path.join(this.basePluginsPath, file)).default;
|
||||
if (plugins[file] || plugin.name in plugins) {
|
||||
console.log(`[${plugin.name}] Plugin already loaded / Duplicate Class Name`);
|
||||
} else {
|
||||
|
@ -50,12 +49,12 @@ export class Plugins {
|
|||
});
|
||||
}
|
||||
|
||||
if (existsSync(this.userPluginsPath)) {
|
||||
readdirSync(this.userPluginsPath).forEach(async (file) => {
|
||||
if (fs.existsSync(this.userPluginsPath)) {
|
||||
fs.readdirSync(this.userPluginsPath).forEach((file) => {
|
||||
// Plugins V1
|
||||
if (file.endsWith(".ts") || file.endsWith(".js")) {
|
||||
if (!app.isPackaged) {
|
||||
const plugin = (await import(join(this.userPluginsPath, file))).default;
|
||||
if (!electron.app.isPackaged) {
|
||||
const plugin = require(path.join(this.userPluginsPath, file)).default;
|
||||
file = file.replace(".ts", "").replace(".js", "");
|
||||
if (plugins[file] || plugin in plugins) {
|
||||
console.log(`[${plugin.name}] Plugin already loaded / Duplicate Class Name`);
|
||||
|
@ -63,7 +62,7 @@ export class Plugins {
|
|||
plugins[file] = new plugin(utils);
|
||||
}
|
||||
} else {
|
||||
const plugin = await import(join(this.userPluginsPath, file));
|
||||
const plugin = require(path.join(this.userPluginsPath, file));
|
||||
file = file.replace(".ts", "").replace(".js", "");
|
||||
if (plugins[file] || plugin in plugins) {
|
||||
console.log(`[${plugin.name}] Plugin already loaded / Duplicate Class Name`);
|
||||
|
@ -73,17 +72,17 @@ export class Plugins {
|
|||
}
|
||||
}
|
||||
// Plugins V2
|
||||
else if (lstatSync(join(this.userPluginsPath, file)).isDirectory()) {
|
||||
const pluginPath = join(this.userPluginsPath, file);
|
||||
if (existsSync(join(pluginPath, "package.json"))) {
|
||||
const pluginPackage = await import(join(pluginPath, "package.json"));
|
||||
const plugin = await import(join(pluginPath, pluginPackage.main));
|
||||
else if (fs.lstatSync(path.join(this.userPluginsPath, file)).isDirectory()) {
|
||||
const pluginPath = path.join(this.userPluginsPath, file);
|
||||
if (fs.existsSync(path.join(pluginPath, "package.json"))) {
|
||||
const pluginPackage = require(path.join(pluginPath, "package.json"));
|
||||
const plugin = require(path.join(pluginPath, pluginPackage.main));
|
||||
if (plugins[plugin.name] || plugin.name in plugins) {
|
||||
console.log(`[${plugin.name}] Plugin already loaded / Duplicate Class Name`);
|
||||
} else {
|
||||
Plugins.PluginMap[pluginPackage.name] = file;
|
||||
const pluginEnv = {
|
||||
app: app,
|
||||
app: electron.app,
|
||||
store: utils.getStore(),
|
||||
utils: utils,
|
||||
win: utils.getWindow(),
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import ElectronStore from "electron-store";
|
||||
import * as ElectronStore from "electron-store";
|
||||
import { app, ipcMain } from "electron";
|
||||
import fetch from "node-fetch";
|
||||
import fetch from "electron-fetch";
|
||||
|
||||
export class Store {
|
||||
static cfg: ElectronStore<any>;
|
||||
static cfg: ElectronStore;
|
||||
|
||||
private defaults = {
|
||||
private defaults: any = {
|
||||
main: {
|
||||
PLATFORM: process.platform,
|
||||
UPDATABLE: app.isPackaged && (!process.mas || !process.windowsStore || !process.env.FLATPAK_ID),
|
||||
|
@ -236,13 +236,18 @@ export class Store {
|
|||
},
|
||||
},
|
||||
};
|
||||
private migrations = {};
|
||||
|
||||
private migrations: any = {};
|
||||
private schema: ElectronStore.Schema<any> = {
|
||||
"connectivity.discord_rpc": {
|
||||
type: "object",
|
||||
},
|
||||
};
|
||||
|
||||
constructor() {
|
||||
Store.cfg = new ElectronStore({
|
||||
name: "cider-config",
|
||||
defaults: this.defaults,
|
||||
schema: this.schema,
|
||||
migrations: this.migrations,
|
||||
clearInvalidConfig: false, //disabled for now
|
||||
});
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { BrowserWindow, app, ipcMain } from "electron";
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import { Store } from "./store";
|
||||
import { BrowserWindow as bw } from "./browserwindow";
|
||||
import { app, BrowserWindow, ipcMain } from "electron";
|
||||
import OtaClient from "@crowdin/ota-client";
|
||||
import fetch from "electron-fetch";
|
||||
import ElectronStore from "electron-store";
|
||||
import fetch from "node-fetch";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { join, resolve,dirname } from "node:path";
|
||||
import { BrowserWindow as bw } from "./browserwindow.js";
|
||||
import { Store } from "./store.js";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
export class utils {
|
||||
static hash = "fda9a6528649ea90dee35390wog"
|
||||
static crowdinClient: OtaClient = new OtaClient("fda9a6528649ea90dee35390wog");
|
||||
static i18n: any = {};
|
||||
|
||||
/**
|
||||
|
@ -38,14 +38,14 @@ export class utils {
|
|||
* Paths for the application to use
|
||||
*/
|
||||
static paths: any = {
|
||||
srcPath: join(dirname(fileURLToPath(import.meta.url)), "../../src"),
|
||||
rendererPath: join(dirname(fileURLToPath(import.meta.url)), "../../src/renderer"),
|
||||
mainPath: join(dirname(fileURLToPath(import.meta.url)), "../../src/main"),
|
||||
resourcePath: join(dirname(fileURLToPath(import.meta.url)), "../../resources"),
|
||||
ciderCache: resolve(app.getPath("userData"), "CiderCache"),
|
||||
themes: resolve(app.getPath("userData"), "Themes"),
|
||||
plugins: resolve(app.getPath("userData"), "Plugins"),
|
||||
externals: resolve(app.getPath("userData"), "externals"),
|
||||
srcPath: path.join(__dirname, "../../src"),
|
||||
rendererPath: path.join(__dirname, "../../src/renderer"),
|
||||
mainPath: path.join(__dirname, "../../src/main"),
|
||||
resourcePath: path.join(__dirname, "../../resources"),
|
||||
ciderCache: path.resolve(app.getPath("userData"), "CiderCache"),
|
||||
themes: path.resolve(app.getPath("userData"), "Themes"),
|
||||
plugins: path.resolve(app.getPath("userData"), "Plugins"),
|
||||
externals: path.resolve(app.getPath("userData"), "externals"),
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -83,8 +83,10 @@ export class utils {
|
|||
/**
|
||||
* MitM the electron fetch for a function that proxies github.
|
||||
* Written in TS so Maikiwi doesn't fuck up
|
||||
* @param url {string} URL param
|
||||
* @param opts {object} Other options
|
||||
*/
|
||||
static async fetch(url: string, opts: object = {}) {
|
||||
static async fetch(url: string, opts = {}) {
|
||||
Object.assign(opts, {
|
||||
headers: {
|
||||
"User-Agent": utils.getWindow().webContents.getUserAgent(),
|
||||
|
@ -104,10 +106,7 @@ export class utils {
|
|||
}
|
||||
|
||||
static async initializeTranslations() {
|
||||
const otaClient = (await import('@crowdin/ota-client')).default.default;
|
||||
const crowdin = new otaClient(this.hash)
|
||||
|
||||
this.i18n = await crowdin.getTranslations();
|
||||
this.i18n = await this.crowdinClient.getTranslations();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -187,6 +186,6 @@ export class utils {
|
|||
static loadPluginFrontend(path: string): void {}
|
||||
|
||||
static loadJSFrontend(path: string): void {
|
||||
bw.win.webContents.executeJavaScript(readFileSync(path, "utf8"));
|
||||
bw.win.webContents.executeJavaScript(fs.readFileSync(path, "utf8"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
import WebSocket, { WebSocketServer } from 'ws';
|
||||
import electron from "electron";
|
||||
import * as ws from "ws";
|
||||
import * as electron from "electron";
|
||||
|
||||
const WebSocketServer = ws.Server;
|
||||
|
||||
interface standardResponse {
|
||||
status?: Number;
|
||||
|
|
|
@ -1,22 +1,17 @@
|
|||
// @ts-ignore
|
||||
await import("v8-compile-cache");
|
||||
require("v8-compile-cache");
|
||||
|
||||
import { app, components, ipcMain } from "electron";
|
||||
import { join } from "path";
|
||||
import { Store } from "./base/store.js";
|
||||
import { AppEvents } from "./base/app.js";
|
||||
import { Plugins } from "./base/plugins.js";
|
||||
import { BrowserWindow } from "./base/browserwindow.js";
|
||||
import { Store } from "./base/store";
|
||||
import { AppEvents } from "./base/app";
|
||||
import { Plugins } from "./base/plugins";
|
||||
import { BrowserWindow } from "./base/browserwindow";
|
||||
import { init as Sentry } from "@sentry/electron";
|
||||
import { RewriteFrames } from "@sentry/integrations";
|
||||
import { utils } from "./base/utils.js";
|
||||
|
||||
const appName = 'sh.cider.classic';
|
||||
import { utils } from "./base/utils";
|
||||
|
||||
if (!app.isPackaged) {
|
||||
app.setPath('userData', join(app.getPath('appData'), `${appName}.dev`));
|
||||
} else {
|
||||
app.setPath('userData', join(app.getPath('appData'), appName));
|
||||
app.setPath("userData", join(app.getPath("appData"), "Cider"));
|
||||
}
|
||||
|
||||
// Analytics for debugging fun yeah.
|
||||
|
@ -43,8 +38,7 @@ app.on("ready", async () => {
|
|||
console.log("[Cider] Application is Ready. Creating Window.");
|
||||
if (!app.isPackaged) {
|
||||
console.info("[Cider] Running in development mode.");
|
||||
// @ts-ignore
|
||||
(await import("vue-devtools")).default.install();
|
||||
require("vue-devtools").install();
|
||||
}
|
||||
console.log("aa");
|
||||
components.whenReady().then(async () => {
|
||||
|
@ -94,3 +88,27 @@ app.on("before-quit", () => {
|
|||
CiderPlug.callPlugins("onBeforeQuit");
|
||||
console.warn(`${app.getName()} exited.`);
|
||||
});
|
||||
|
||||
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
* Widevine Event Handlers
|
||||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
||||
|
||||
// @ts-ignore
|
||||
app.on("widevine-ready", (version, lastVersion) => {
|
||||
if (null !== lastVersion) {
|
||||
console.log("[Cider][Widevine] Widevine " + version + ", upgraded from " + lastVersion + ", is ready to be used!");
|
||||
} else {
|
||||
console.log("[Cider][Widevine] Widevine " + version + " is ready to be used!");
|
||||
}
|
||||
});
|
||||
|
||||
// @ts-ignore
|
||||
app.on("widevine-update-pending", (currentVersion, pendingVersion) => {
|
||||
console.log("[Cider][Widevine] Widevine " + currentVersion + " is ready to be upgraded to " + pendingVersion + "!");
|
||||
});
|
||||
|
||||
// @ts-ignore
|
||||
app.on("widevine-error", (error) => {
|
||||
console.log("[Cider][Widevine] Widevine installation encountered an error: " + error);
|
||||
app.exit();
|
||||
});
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
import electron from "electron";
|
||||
import os from "os";
|
||||
import {CiderReceiver} from "../base/castreceiver.js";
|
||||
import MediaRendererClient from "upnp-mediarenderer-client";
|
||||
import request from "request";
|
||||
import castv2 from "castv2-client";
|
||||
import mdnsjs from "mdns-js";
|
||||
import * as electron from "electron";
|
||||
import * as os from "os";
|
||||
import { resolve } from "path";
|
||||
import * as CiderReceiver from "../base/castreceiver";
|
||||
const MediaRendererClient = require("upnp-mediarenderer-client");
|
||||
|
||||
export default class ChromecastPlugin {
|
||||
/**
|
||||
|
@ -15,8 +13,8 @@ export default class ChromecastPlugin {
|
|||
private _lastfm: any;
|
||||
private _store: any;
|
||||
private _timer: any;
|
||||
private audioClient = castv2.Client;
|
||||
private mdns = mdnsjs;
|
||||
private audioClient = require("castv2-client").Client;
|
||||
private mdns = require("mdns-js");
|
||||
|
||||
private devices: any = [];
|
||||
private castDevices: any = [];
|
||||
|
@ -37,7 +35,7 @@ export default class ChromecastPlugin {
|
|||
// private bufcount2 = 0;
|
||||
// private headerSent = false;
|
||||
|
||||
private async searchForGCDevices() {
|
||||
private searchForGCDevices() {
|
||||
try {
|
||||
let browser = this.mdns.createBrowser(this.mdns.tcp("googlecast"));
|
||||
browser.on("ready", browser.discover);
|
||||
|
@ -49,7 +47,7 @@ export default class ChromecastPlugin {
|
|||
this.ondeviceup(service.addresses[0], name + " (" + (service.type[0]?.description ?? "") + ")", "", "googlecast");
|
||||
}
|
||||
});
|
||||
const Client = (await import("node-ssdp")).Client;
|
||||
const Client = require("node-ssdp").Client;
|
||||
// also do a SSDP/UPnP search
|
||||
let ssdpBrowser = new Client();
|
||||
ssdpBrowser.on("response", (headers: any, statusCode: any, rinfo: any) => {
|
||||
|
@ -86,6 +84,7 @@ export default class ChromecastPlugin {
|
|||
}
|
||||
|
||||
private getServiceDescription(url: any, address: any) {
|
||||
const request = require("request");
|
||||
request.get(url, (error: any, response: any, body: any) => {
|
||||
if (!error && response.statusCode === 200) {
|
||||
this.parseServiceDescription(body, address, url);
|
||||
|
@ -114,8 +113,8 @@ export default class ChromecastPlugin {
|
|||
}
|
||||
}
|
||||
|
||||
private async parseServiceDescription(body: any, address: any, url: any) {
|
||||
const parseString = (await import("xml2js")).parseString;
|
||||
private parseServiceDescription(body: any, address: any, url: any) {
|
||||
const parseString = require("xml2js").parseString;
|
||||
parseString(body, (err: any, result: any) => {
|
||||
if (!err && result && result.root && result.root.device) {
|
||||
const device = result.root.device[0];
|
||||
|
@ -168,7 +167,7 @@ export default class ChromecastPlugin {
|
|||
},
|
||||
(err: any, status: any) => {
|
||||
console.log("media loaded playerState=%s", status);
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
client.getStatus((x: any, status: any) => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { AutoClient } from "discord-auto-rpc";
|
||||
import { ipcMain } from "electron";
|
||||
import fetch from "node-fetch";
|
||||
import fetch from "electron-fetch";
|
||||
|
||||
export default class DiscordRPC {
|
||||
/**
|
||||
|
@ -67,8 +67,8 @@ export default class DiscordRPC {
|
|||
url: artworkUrl,
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
const json = await res.json() as { imageUrl: string };
|
||||
.then((res) => res.json())
|
||||
.then(function (json) {
|
||||
self._activityCache.largeImageKey = "https://images.weserv.nl/?url=" + json.imageUrl + "&w=1024&h=1024&output=jpg";
|
||||
self._client.setActivity(self._activityCache);
|
||||
});
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
// @ts-ignore
|
||||
import LastfmAPI from "lastfmapi";
|
||||
|
||||
export default class lastfm {
|
||||
/**
|
||||
* Base Plugin Information
|
||||
|
@ -76,6 +73,7 @@ export default class lastfm {
|
|||
*/
|
||||
private initializeLastFM(token: string, api: { key: string; secret: string }): void {
|
||||
console.debug(`[${lastfm.name}:initialize] Initializing LastFM`);
|
||||
const LastfmAPI = require("lastfmapi");
|
||||
this._lfm = new LastfmAPI({
|
||||
api_key: api.key,
|
||||
secret: api.secret,
|
||||
|
@ -137,7 +135,7 @@ export default class lastfm {
|
|||
attributes.lfmAlbum = data;
|
||||
callback(attributes);
|
||||
}
|
||||
},
|
||||
}
|
||||
);
|
||||
} else {
|
||||
this._lfm.track.getCorrection(attributes.primaryArtist, attributes.name, (err: any, data: any) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { app, Menu, shell } from "electron";
|
||||
import { utils } from "../base/utils.js";
|
||||
import { utils } from "../base/utils";
|
||||
|
||||
export default class Thumbar {
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import Player from 'mpris-service';
|
||||
// @ts-ignore
|
||||
import * as Player from "mpris-service";
|
||||
|
||||
export default class mpris {
|
||||
/**
|
||||
|
@ -8,7 +9,7 @@ export default class mpris {
|
|||
/**
|
||||
* MPRIS Service
|
||||
*/
|
||||
private static player: Player;
|
||||
private static player: Player.Player;
|
||||
/**
|
||||
* Base Plugin Details (Eventually implemented into a GUI in settings)
|
||||
*/
|
||||
|
@ -46,7 +47,7 @@ export default class mpris {
|
|||
* Connects to MPRIS Service
|
||||
*/
|
||||
private static connect() {
|
||||
const player = new Player({
|
||||
const player = Player({
|
||||
name: "cider",
|
||||
identity: "Cider",
|
||||
supportedInterfaces: ["player"],
|
||||
|
@ -73,10 +74,6 @@ export default class mpris {
|
|||
player.on("volume", (volume: string) => {
|
||||
renderer.executeJavaScript(`app.mk.volume = ${parseFloat(volume)}`);
|
||||
});
|
||||
player.on("raise", () => {
|
||||
mpris.utils.getWindow().show();
|
||||
mpris.utils.getWindow().focus();
|
||||
});
|
||||
|
||||
mpris.utils.getIPCMain().on("mpris:playbackTimeDidChange", (event: any, time: number) => {
|
||||
player.getPosition = () => time;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import fetch from "node-fetch";
|
||||
import fetch from "electron-fetch";
|
||||
import { app, nativeImage, Notification } from "electron";
|
||||
import NativeImage = Electron.NativeImage;
|
||||
import { createWriteStream } from "fs";
|
||||
|
@ -17,7 +17,7 @@ export default class playbackNotifications {
|
|||
private _utils: any;
|
||||
private _notification: Notification | undefined;
|
||||
private _artworkImage: { [key: string]: NativeImage } = {};
|
||||
private _artworkNums: string[] = [];
|
||||
private _artworkNums: Array<string> = [];
|
||||
|
||||
/**
|
||||
* Creates playback notification
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
import electron from "electron";
|
||||
import fetch from "node-fetch";
|
||||
import * as electron from "electron";
|
||||
import * as os from "os";
|
||||
import * as fs from "fs";
|
||||
import { join, resolve } from "path";
|
||||
import * as CiderReceiver from "../base/castreceiver";
|
||||
import fetch from "electron-fetch";
|
||||
import { Stream } from "stream";
|
||||
import { spawn } from "child_process";
|
||||
import { Worker } from "worker_threads";
|
||||
import mdnsjs from "mdns-js";
|
||||
import { Blob } from "buffer";
|
||||
|
||||
export default class RAOP {
|
||||
/**
|
||||
|
@ -19,7 +24,7 @@ export default class RAOP {
|
|||
|
||||
private airtunes: any;
|
||||
// private device: any;
|
||||
private mdns = mdnsjs;
|
||||
private mdns = require("mdns-js");
|
||||
private ok: any = 1;
|
||||
private devices: any = [];
|
||||
private castDevices: any = [];
|
||||
|
@ -158,8 +163,8 @@ export default class RAOP {
|
|||
/**
|
||||
* Runs on app ready
|
||||
*/
|
||||
async onReady(win: any): Promise<void> {
|
||||
this.u = (await import("airtunes2")).default;
|
||||
onReady(win: any): void {
|
||||
this.u = require("airtunes2");
|
||||
this._win = win;
|
||||
|
||||
electron.ipcMain.on("getKnownAirplayDevices", (event) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { nativeImage, nativeTheme } from "electron";
|
||||
import { utils } from "../base/utils.js";
|
||||
import { utils } from "../base/utils";
|
||||
import { join } from "path";
|
||||
|
||||
export default class Thumbar {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import WebSocket from "ws";
|
||||
import * as WebSocket from "ws";
|
||||
|
||||
/**
|
||||
* 0-pad a number.
|
||||
|
|
12
src/main/providers/local/db/index.ts
Normal file
12
src/main/providers/local/db/index.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
// import * as PouchDB from "pouchdb-node";
|
||||
// import { join } from "path";
|
||||
// import { app } from "electron";
|
||||
// PouchDB.plugin(require("pouchdb-upsert"));
|
||||
// export class ProviderDB {
|
||||
// public static db: any = null;
|
||||
// static init() {
|
||||
// if (ProviderDB.db == null) {
|
||||
// ProviderDB.db = new PouchDB(join(app.getPath("userData"), "tracksdb"));
|
||||
// }
|
||||
// }
|
||||
// }
|
|
@ -1,10 +1,11 @@
|
|||
// import { ProviderDB } from "./db";
|
||||
import { EventEmitter } from "events";
|
||||
import mm from "music-metadata";
|
||||
import { resolve } from "node:path";
|
||||
import * as path from "path";
|
||||
const { readdir } = require("fs").promises;
|
||||
import { utils } from "../../base/utils";
|
||||
import * as mm from "music-metadata";
|
||||
import { Md5 } from "ts-md5";
|
||||
import { utils } from "../../base/utils.js";
|
||||
import { readdirSync } from "node:fs";
|
||||
import e from "express";
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
export class LocalFiles {
|
||||
static localSongs: any = [];
|
||||
|
@ -126,14 +127,13 @@ export class LocalFiles {
|
|||
this.localSongsArts = metadatalistart;
|
||||
return metadatalist;
|
||||
}
|
||||
|
||||
static async getFiles(dir: string): Promise<string[]> {
|
||||
const dirents = readdirSync(dir, { withFileTypes: true });
|
||||
static async getFiles(dir: any) {
|
||||
const dirents = await readdir(dir, { withFileTypes: true });
|
||||
const files = await Promise.all(
|
||||
dirents.map((dirent: any) => {
|
||||
const res = resolve(dir, dirent.name);
|
||||
const res = path.resolve(dir, dirent.name);
|
||||
return dirent.isDirectory() ? this.getFiles(res) : res;
|
||||
}),
|
||||
})
|
||||
);
|
||||
return Array.prototype.concat(...files);
|
||||
}
|
||||
|
|
|
@ -292,5 +292,5 @@ document.addEventListener(
|
|||
app.showMenuPanel(menuPanel, e);
|
||||
}
|
||||
},
|
||||
false,
|
||||
false
|
||||
);
|
||||
|
|
|
@ -129,9 +129,7 @@ input[type="range"].md-slider::-webkit-slider-runnable-track {
|
|||
|
||||
@media (prefers-color-scheme: light) {
|
||||
.md-btn {
|
||||
box-shadow:
|
||||
rgb(0 0 0 / 10%) 0px 0px 1px,
|
||||
rgb(0 0 0 / 20%) 0px 1px 1px;
|
||||
box-shadow: rgb(0 0 0 / 10%) 0px 0px 1px, rgb(0 0 0 / 20%) 0px 1px 1px;
|
||||
border: 1px solid rgb(0 0 0 / 15%);
|
||||
}
|
||||
|
||||
|
|
14
src/renderer/less/bootstrap.less
vendored
14
src/renderer/less/bootstrap.less
vendored
|
@ -990,9 +990,7 @@
|
|||
}
|
||||
|
||||
.modal.fade .modal-dialog {
|
||||
transition:
|
||||
transform 0.1s var(--appleEase),
|
||||
opacity 0.1s var(--appleEase);
|
||||
transition: transform 0.1s var(--appleEase), opacity 0.1s var(--appleEase);
|
||||
transform: scale(0.9);
|
||||
opacity: 0;
|
||||
}
|
||||
|
@ -1329,11 +1327,7 @@
|
|||
font-size: 1rem;
|
||||
border-radius: 0.25rem;
|
||||
font-family: inherit;
|
||||
transition:
|
||||
color 0.15s ease-in-out,
|
||||
background-color 0.15s ease-in-out,
|
||||
border-color 0.15s ease-in-out,
|
||||
box-shadow 0.15s ease-in-out;
|
||||
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
||||
border: 1px solid rgba(100, 100, 100, 0.35);
|
||||
border-top: 1px solid rgba(100, 100, 100, 0.5);
|
||||
border-radius: 6px;
|
||||
|
@ -7859,9 +7853,7 @@ fieldset:disabled .btn {
|
|||
backface-visibility: hidden;
|
||||
transition: -webkit-transform 0.6s ease-in-out;
|
||||
transition: transform 0.6s ease-in-out;
|
||||
transition:
|
||||
transform 0.6s ease-in-out,
|
||||
-webkit-transform 0.6s ease-in-out;
|
||||
transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
|
|
@ -52,9 +52,7 @@
|
|||
opacity: 0;
|
||||
border-radius: 10px;
|
||||
transform: scale(0.5);
|
||||
transition:
|
||||
transform 0.2s ease-in-out,
|
||||
opacity 0.2s ease-in-out;
|
||||
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
&:after {
|
||||
|
@ -65,9 +63,7 @@
|
|||
background-color: transparent;
|
||||
|
||||
&:before {
|
||||
transition:
|
||||
transform 0.1s ease-in-out,
|
||||
opacity 0.1s ease-in-out;
|
||||
transition: transform 0.1s ease-in-out, opacity 0.1s ease-in-out;
|
||||
opacity: 0.1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
@ -107,9 +103,7 @@
|
|||
background: var(--color2);
|
||||
-webkit-app-region: no-drag;
|
||||
height: var(--chromeHeight2);
|
||||
box-shadow:
|
||||
0px -2px 6px rgb(20 20 20 / 12%),
|
||||
0px -1px 0px 0px rgb(200 200 200 / 12%);
|
||||
box-shadow: 0px -2px 6px rgb(20 20 20 / 12%), 0px -1px 0px 0px rgb(200 200 200 / 12%);
|
||||
z-index: 4;
|
||||
|
||||
.app-chrome-playback-duration-bottom {
|
||||
|
@ -146,9 +140,7 @@
|
|||
border-radius: 100%;
|
||||
background: var(--keyColor);
|
||||
cursor: default;
|
||||
transition:
|
||||
opacity 0.1s var(--appleEase),
|
||||
transform 0.1s var(--appleEase);
|
||||
transition: opacity 0.1s var(--appleEase), transform 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
@ -247,9 +239,7 @@
|
|||
border-radius: 100%;
|
||||
background: var(--keyColor);
|
||||
cursor: default;
|
||||
transition:
|
||||
opacity 0.1s var(--appleEase),
|
||||
transform 0.1s var(--appleEase);
|
||||
transition: opacity 0.1s var(--appleEase), transform 0.1s var(--appleEase);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,9 +37,7 @@
|
|||
border-top: 1px solid rgba(100, 100, 100, 0.5);
|
||||
color: #eee;
|
||||
white-space: nowrap;
|
||||
transition:
|
||||
transform 0.2s var(--appleEase),
|
||||
box-shadow 0.2s var(--appleEase);
|
||||
transition: transform 0.2s var(--appleEase), box-shadow 0.2s var(--appleEase);
|
||||
|
||||
&.md-btn-block {
|
||||
display: block;
|
||||
|
@ -72,9 +70,7 @@
|
|||
&:active {
|
||||
filter: brightness(75%);
|
||||
transform: scale(0.98);
|
||||
transition:
|
||||
transform 0s var(--appleEase),
|
||||
box-shadow 0.2s var(--appleEase);
|
||||
transition: transform 0s var(--appleEase), box-shadow 0.2s var(--appleEase);
|
||||
}
|
||||
|
||||
&.md-btn-icon {
|
||||
|
@ -1191,16 +1187,12 @@
|
|||
&.mediaitem-video {
|
||||
height: 200px;
|
||||
width: 240px;
|
||||
transition:
|
||||
width var(--transitionDuration) linear,
|
||||
height var(--transitionDuration) linear;
|
||||
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
|
||||
|
||||
.artwork {
|
||||
height: 120px;
|
||||
width: 212px;
|
||||
transition:
|
||||
width var(--transitionDuration) linear,
|
||||
height var(--transitionDuration) linear;
|
||||
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
|
||||
}
|
||||
|
||||
&:not(.noscale) {
|
||||
|
@ -1233,16 +1225,12 @@
|
|||
&.mediaitem-brick {
|
||||
height: 200px;
|
||||
width: 240px;
|
||||
transition:
|
||||
width var(--transitionDuration) linear,
|
||||
height var(--transitionDuration) linear;
|
||||
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
|
||||
|
||||
.artwork {
|
||||
height: 123px;
|
||||
width: 220px;
|
||||
transition:
|
||||
width var(--transitionDuration) linear,
|
||||
height var(--transitionDuration) linear;
|
||||
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
|
||||
}
|
||||
|
||||
&:not(.noscale) {
|
||||
|
@ -1275,16 +1263,12 @@
|
|||
&.mediaitem-small {
|
||||
width: calc(140px, var(--windowRelativeScale));
|
||||
height: calc(180px, var(--windowRelativeScale));
|
||||
transition:
|
||||
width var(--transitionDuration) linear,
|
||||
height var(--transitionDuration) linear;
|
||||
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
|
||||
|
||||
.artwork {
|
||||
height: calc(128px, var(--windowRelativeScale));
|
||||
width: calc(128px, var(--windowRelativeScale));
|
||||
transition:
|
||||
width var(--transitionDuration) linear,
|
||||
height var(--transitionDuration) linear;
|
||||
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1297,9 +1281,7 @@
|
|||
position: relative;
|
||||
border-radius: calc(var(--mediaItemRadius) * 2);
|
||||
box-shadow: var(--mediaItemShadow-ShadowSubtle);
|
||||
transition:
|
||||
width var(--transitionDuration) linear,
|
||||
height var(--transitionDuration) linear;
|
||||
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear;
|
||||
|
||||
.artwork {
|
||||
width: 230px;
|
||||
|
@ -1307,10 +1289,7 @@
|
|||
overflow: hidden;
|
||||
border-radius: 0px;
|
||||
margin: 0;
|
||||
transition:
|
||||
width var(--transitionDuration) linear,
|
||||
height var(--transitionDuration) linear,
|
||||
filter 0.2s ease-in-out;
|
||||
transition: width var(--transitionDuration) linear, height var(--transitionDuration) linear, filter 0.2s ease-in-out;
|
||||
.mediaitem-artwork {
|
||||
border-radius: 0px;
|
||||
|
||||
|
@ -1724,9 +1703,7 @@ input[type="checkbox"][switch]:checked:active::before {
|
|||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
border-radius: 8px;
|
||||
box-shadow:
|
||||
inset 0px 0px 0px 1px rgb(200 200 200 / 16%),
|
||||
0 8px 40px rgb(0 0 0 / 0.55);
|
||||
box-shadow: inset 0px 0px 0px 1px rgb(200 200 200 / 16%), 0 8px 40px rgb(0 0 0 / 0.55);
|
||||
transition: transform 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
|
@ -1788,9 +1765,7 @@ input[type="checkbox"][switch]:checked:active::before {
|
|||
z-index: -1;
|
||||
transform: scale(0.5);
|
||||
pointer-events: none;
|
||||
transition:
|
||||
opacity 0.1s var(--appleEase),
|
||||
transform 0.1s var(--appleEase);
|
||||
transition: opacity 0.1s var(--appleEase), transform 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
@ -1830,9 +1805,7 @@ input[type="checkbox"][switch]:checked:active::before {
|
|||
z-index: -1;
|
||||
transform: scale(0.5);
|
||||
pointer-events: none;
|
||||
transition:
|
||||
opacity 0.1s var(--appleEase),
|
||||
transform 0.1s var(--appleEase);
|
||||
transition: opacity 0.1s var(--appleEase), transform 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
@ -2083,9 +2056,7 @@ input[type="checkbox"][switch]:checked:active::before {
|
|||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
border-radius: 8px;
|
||||
box-shadow:
|
||||
inset 0px 0px 0px 1px rgb(200 200 200 / 16%),
|
||||
0 8px 40px rgb(0 0 0 / 0.55);
|
||||
box-shadow: inset 0px 0px 0px 1px rgb(200 200 200 / 16%), 0 8px 40px rgb(0 0 0 / 0.55);
|
||||
}
|
||||
|
||||
.list-entry-image.artist {
|
||||
|
@ -2283,10 +2254,7 @@ input[type="checkbox"][switch]:checked:active::before {
|
|||
border-radius: 50px;
|
||||
z-index: -1;
|
||||
opacity: 0;
|
||||
transition:
|
||||
background-color 0.5s var(--appleEase),
|
||||
opacity 0.25s var(--appleEase),
|
||||
border-radius 0.32s var(--appleEase);
|
||||
transition: background-color 0.5s var(--appleEase), opacity 0.25s var(--appleEase), border-radius 0.32s var(--appleEase);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
@ -2299,11 +2267,7 @@ input[type="checkbox"][switch]:checked:active::before {
|
|||
&:after {
|
||||
opacity: 1;
|
||||
background-color: #eee;
|
||||
transition:
|
||||
background-color 0.25s var(--appleEase),
|
||||
border-radius 0.25s var(--appleEase),
|
||||
color 0s var(--appleEase),
|
||||
opacity 0s var(--appleEase);
|
||||
transition: background-color 0.25s var(--appleEase), border-radius 0.25s var(--appleEase), color 0s var(--appleEase), opacity 0s var(--appleEase);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -89,9 +89,7 @@
|
|||
opacity: 0;
|
||||
border-radius: 10px;
|
||||
transform: scale(0.5);
|
||||
transition:
|
||||
transform 0.2s ease-in-out,
|
||||
opacity 0.2s ease-in-out;
|
||||
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
&:after {
|
||||
|
@ -102,9 +100,7 @@
|
|||
background-color: transparent;
|
||||
|
||||
&:before {
|
||||
transition:
|
||||
transform 0.1s ease-in-out,
|
||||
opacity 0.1s ease-in-out;
|
||||
transition: transform 0.1s ease-in-out, opacity 0.1s ease-in-out;
|
||||
opacity: 0.1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
@ -457,9 +453,7 @@
|
|||
border-radius: 100%;
|
||||
background: var(--songProgressColor);
|
||||
cursor: default;
|
||||
transition:
|
||||
opacity 0.1s var(--appleEase),
|
||||
transform 0.1s var(--appleEase);
|
||||
transition: opacity 0.1s var(--appleEase), transform 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
&::-moz-range-thumb {
|
||||
|
|
|
@ -107,10 +107,7 @@
|
|||
height: calc(12px * 6);
|
||||
border-radius: 6px;
|
||||
transform: rotateX(60deg) rotateZ(-45deg);
|
||||
transition:
|
||||
transform 0.2s linear,
|
||||
width 0.2s linear,
|
||||
height 0.2s linear;
|
||||
transition: transform 0.2s linear, width 0.2s linear, height 0.2s linear;
|
||||
}
|
||||
|
||||
.listener {
|
||||
|
@ -119,10 +116,7 @@
|
|||
height: 32px;
|
||||
border-radius: 6px;
|
||||
transform: rotateX(60deg) rotateZ(-45deg);
|
||||
transition:
|
||||
transform 0.2s linear,
|
||||
width 0.2s linear,
|
||||
height 0.2s linear;
|
||||
transition: transform 0.2s linear, width 0.2s linear, height 0.2s linear;
|
||||
background: white;
|
||||
color: black;
|
||||
z-index: 2;
|
||||
|
@ -134,10 +128,7 @@
|
|||
height: 32px;
|
||||
border-radius: 6px;
|
||||
transform: rotateX(60deg) rotateZ(-45deg);
|
||||
transition:
|
||||
transform 0.2s linear,
|
||||
width 0.2s linear,
|
||||
height 0.2s linear;
|
||||
transition: transform 0.2s linear, width 0.2s linear, height 0.2s linear;
|
||||
background: yellow;
|
||||
z-index: 2;
|
||||
}
|
||||
|
@ -330,16 +321,12 @@
|
|||
opacity: 0;
|
||||
transform: scale(0.98);
|
||||
z-index: -1;
|
||||
transition:
|
||||
transform 0.25s ease-out,
|
||||
opacity 0.25s ease-out;
|
||||
transition: transform 0.25s ease-out, opacity 0.25s ease-out;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&::before {
|
||||
transition:
|
||||
transform 0s ease-in,
|
||||
opacity 0s ease-in;
|
||||
transition: transform 0s ease-in, opacity 0s ease-in;
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
@ -347,9 +334,7 @@
|
|||
|
||||
&:active {
|
||||
&::before {
|
||||
transition:
|
||||
transform 0.1s ease-in-out,
|
||||
opacity 0.1s ease-in-out;
|
||||
transition: transform 0.1s ease-in-out, opacity 0.1s ease-in-out;
|
||||
opacity: 1;
|
||||
transform: scale(0.98);
|
||||
background: var(--selected-click);
|
||||
|
|
|
@ -379,9 +379,7 @@
|
|||
border-radius: 100%;
|
||||
background: var(--songProgressColor);
|
||||
cursor: default;
|
||||
transition:
|
||||
opacity 0.1s var(--appleEase),
|
||||
transform 0.1s var(--appleEase);
|
||||
transition: opacity 0.1s var(--appleEase), transform 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
&::-moz-range-thumb {
|
||||
|
|
|
@ -298,9 +298,7 @@
|
|||
background-color: rgba(0, 0, 0, 0.25);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
opacity 0.2s ease,
|
||||
background-color 0.2s ease;
|
||||
transition: opacity 0.2s ease, background-color 0.2s ease;
|
||||
outline: none;
|
||||
opacity: 0.35;
|
||||
height: 100%;
|
||||
|
|
|
@ -748,9 +748,7 @@
|
|||
}
|
||||
|
||||
.mediaContainer {
|
||||
transition:
|
||||
width 0.5s ease-in-out,
|
||||
height 0.5s ease-in-out;
|
||||
transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
|
||||
width: 260px;
|
||||
height: 260px;
|
||||
}
|
||||
|
@ -950,9 +948,7 @@
|
|||
}
|
||||
|
||||
.playlist-desc {
|
||||
transition:
|
||||
height 0.2s ease-in-out,
|
||||
opacity 0.2s ease-in-out;
|
||||
transition: height 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
||||
box-sizing: border-box;
|
||||
font-size: 14px;
|
||||
flex-shrink: unset;
|
||||
|
@ -1092,9 +1088,7 @@
|
|||
font-size: 0.9em;
|
||||
margin: 6px;
|
||||
opacity: 0.7;
|
||||
transition:
|
||||
height 0.2s ease-in-out,
|
||||
opacity 0.2s ease-in-out;
|
||||
transition: height 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
||||
height: 0.9em;
|
||||
}
|
||||
|
||||
|
@ -1158,25 +1152,19 @@
|
|||
}
|
||||
|
||||
.mediaContainer {
|
||||
transition:
|
||||
width 0.5s ease-in-out,
|
||||
height 0.5s ease-in-out;
|
||||
transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
|
||||
width: 128px !important;
|
||||
height: 128px !important;
|
||||
}
|
||||
|
||||
.playlist-time {
|
||||
transition:
|
||||
height 0.2s ease-in-out,
|
||||
opacity 0.2s ease-in-out;
|
||||
transition: height 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
||||
height: 0px;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.playlist-desc {
|
||||
transition:
|
||||
height 0.2s ease-in-out,
|
||||
opacity 0.2s ease-in-out;
|
||||
transition: height 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
||||
height: 0px !important;
|
||||
opacity: 0;
|
||||
}
|
||||
|
@ -1425,9 +1413,7 @@
|
|||
&:active {
|
||||
filter: brightness(75%);
|
||||
transform: scale(0.98);
|
||||
transition:
|
||||
transform 0s var(--appleEase),
|
||||
box-shadow 0.2s var(--appleEase);
|
||||
transition: transform 0s var(--appleEase), box-shadow 0.2s var(--appleEase);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1569,9 +1555,7 @@
|
|||
background: rgb(0 0 0 / 20%);
|
||||
z-index: 1;
|
||||
border: 0px;
|
||||
transition:
|
||||
background 0.2s var(--appleEase),
|
||||
transform 0.2s var(--appleEase);
|
||||
transition: background 0.2s var(--appleEase), transform 0.2s var(--appleEase);
|
||||
|
||||
&:hover {
|
||||
background: var(--selected);
|
||||
|
@ -1641,9 +1625,7 @@
|
|||
.spfade-enter-active,
|
||||
.spfade-leave-active {
|
||||
--transitionTime: 0.2s;
|
||||
transition:
|
||||
opacity var(--transitionTime) var(--appleEase),
|
||||
transform var(--transitionTime) var(--appleEase);
|
||||
transition: opacity var(--transitionTime) var(--appleEase), transform var(--transitionTime) var(--appleEase);
|
||||
will-change: opacity, transform;
|
||||
}
|
||||
|
||||
|
@ -2138,11 +2120,7 @@
|
|||
position: relative;
|
||||
flex: 1;
|
||||
backdrop-filter: var(--glassFilterHeavy);
|
||||
transition:
|
||||
width 0.25s ease-in-out,
|
||||
height 0.25s ease-in-out,
|
||||
max-width 0.25s ease-in-out,
|
||||
max-height 0.25s ease-in-out;
|
||||
transition: width 0.25s ease-in-out, height 0.25s ease-in-out, max-width 0.25s ease-in-out, max-height 0.25s ease-in-out;
|
||||
|
||||
.header-text {
|
||||
position: absolute;
|
||||
|
|
|
@ -211,7 +211,7 @@ function simulateGamepad() {
|
|||
notyf.success("Pairing successful!");
|
||||
appLoop();
|
||||
},
|
||||
{ once: true },
|
||||
{ once: true }
|
||||
);
|
||||
|
||||
document.addEventListener("keydown", (e) => {
|
||||
|
|
|
@ -288,7 +288,7 @@ const app = new Vue({
|
|||
let currentPath = window.location.hash.slice(1);
|
||||
console.debug("hashchange", currentPath);
|
||||
},
|
||||
false,
|
||||
false
|
||||
);
|
||||
},
|
||||
methods: {
|
||||
|
@ -759,7 +759,7 @@ const app = new Vue({
|
|||
data: pitems,
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then(() => {
|
||||
if (app.page === "playlist_" + pid) {
|
||||
|
@ -1030,7 +1030,7 @@ const app = new Vue({
|
|||
app.stringTemplateParser(app.getLz("settings.option.connectivity.discordRPC.reconnectedToUser"), {
|
||||
user: `${user.username}#${user.discriminator}`,
|
||||
userid: user.id,
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
});
|
||||
|
@ -1590,7 +1590,7 @@ const app = new Vue({
|
|||
fetchOptions: {
|
||||
method: "POST",
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
} else {
|
||||
if (app.cfg.home.followedArtists.includes(id)) {
|
||||
|
@ -1608,7 +1608,7 @@ const app = new Vue({
|
|||
fetchOptions: {
|
||||
method: "DELETE",
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
|
@ -1746,7 +1746,7 @@ const app = new Vue({
|
|||
attributes: { name: name },
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((res) => {
|
||||
self.refreshPlaylists(false, false);
|
||||
|
@ -1765,7 +1765,7 @@ const app = new Vue({
|
|||
attributes: { name: name },
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((res) => {
|
||||
self.refreshPlaylists(false, false);
|
||||
|
@ -1784,7 +1784,7 @@ const app = new Vue({
|
|||
attributes: { description: name },
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((res) => {
|
||||
self.refreshPlaylists(false, false);
|
||||
|
@ -1820,7 +1820,7 @@ const app = new Vue({
|
|||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((res) => {
|
||||
res = res.data.data[0];
|
||||
|
@ -1853,7 +1853,7 @@ const app = new Vue({
|
|||
fetchOptions: {
|
||||
method: "DELETE",
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((res) => {
|
||||
// remove this playlist from playlists.listing if it exists
|
||||
|
@ -2011,7 +2011,7 @@ const app = new Vue({
|
|||
"art[url]": "f",
|
||||
l: this.mklang,
|
||||
},
|
||||
{ includeResponseMeta: !0 },
|
||||
{ includeResponseMeta: !0 }
|
||||
);
|
||||
console.debug(artistData.data.data[0]);
|
||||
this.artistPage.data = artistData.data.data[0];
|
||||
|
@ -3213,7 +3213,7 @@ const app = new Vue({
|
|||
{
|
||||
includeResponseMeta: !0,
|
||||
reload: !0,
|
||||
},
|
||||
}
|
||||
)
|
||||
).data;
|
||||
this.listennow.timestamp = Date.now();
|
||||
|
@ -3308,7 +3308,7 @@ const app = new Vue({
|
|||
attributes: { name: name },
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((res) => {
|
||||
let playlist = res.data.data[0];
|
||||
|
@ -3384,7 +3384,7 @@ const app = new Vue({
|
|||
fetchOptions: {
|
||||
method: "DELETE",
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then((data) => {
|
||||
self.getLibrarySongsFull(true);
|
||||
|
@ -4281,7 +4281,7 @@ const app = new Vue({
|
|||
"art[url]": "f",
|
||||
"art[social-profiles:url]": "c",
|
||||
},
|
||||
{ includeResponseMeta: !0 },
|
||||
{ includeResponseMeta: !0 }
|
||||
)
|
||||
.then(function (results) {
|
||||
results.data.results["meta"] = results.data.meta;
|
||||
|
@ -4536,7 +4536,7 @@ const app = new Vue({
|
|||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
},
|
||||
dislike(item) {
|
||||
|
@ -4561,7 +4561,7 @@ const app = new Vue({
|
|||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
},
|
||||
unlove(item) {
|
||||
|
@ -4580,7 +4580,7 @@ const app = new Vue({
|
|||
fetchOptions: {
|
||||
method: "DELETE",
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
},
|
||||
checkScrollDirectionIsUp(event) {
|
||||
|
|
|
@ -166,7 +166,7 @@ const wsapi = {
|
|||
fetchOptions: {
|
||||
method: "DELETE",
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then(function () {
|
||||
ipcRenderer.send("wsapi-rate", kind, id, rating);
|
||||
|
@ -190,7 +190,7 @@ const wsapi = {
|
|||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
.then(function () {
|
||||
ipcRenderer.send("wsapi-rate", kind, id, rating);
|
||||
|
|
|
@ -72,22 +72,7 @@ body {
|
|||
background-size: cover;
|
||||
background-position: center;
|
||||
background: #0000;
|
||||
font-family:
|
||||
"Pretendard Variable",
|
||||
"Noto Sans JP",
|
||||
"Noto Sans KR",
|
||||
"Noto Sans TC",
|
||||
"Noto Sans SC",
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Roboto,
|
||||
Oxygen,
|
||||
Ubuntu,
|
||||
Cantarell,
|
||||
"Open Sans",
|
||||
"Helvetica Neue",
|
||||
sans-serif;
|
||||
font-family: "Pretendard Variable", "Noto Sans JP", "Noto Sans KR", "Noto Sans TC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
||||
transition: opacity 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
|
@ -949,9 +934,7 @@ input[type="range"].web-slider::-webkit-slider-runnable-track {
|
|||
|
||||
.app-chrome {
|
||||
background-color: var(--baseColorMix);
|
||||
box-shadow:
|
||||
0px 3px 6px rgb(20 20 20 / 12%),
|
||||
0px 1px 0px 0px rgb(200 200 200 / 12%);
|
||||
box-shadow: 0px 3px 6px rgb(20 20 20 / 12%), 0px 1px 0px 0px rgb(200 200 200 / 12%);
|
||||
width: 100%;
|
||||
height: var(--chromeHeight1);
|
||||
display: flex;
|
||||
|
@ -1478,9 +1461,7 @@ div[data-type="musicVideo"] .info-rect .title::before {
|
|||
border-radius: 100%;
|
||||
background: var(--songProgressColor);
|
||||
cursor: default;
|
||||
transition:
|
||||
opacity 0.1s var(--appleEase),
|
||||
transform 0.1s var(--appleEase);
|
||||
transition: opacity 0.1s var(--appleEase), transform 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
&::-moz-range-thumb {
|
||||
|
@ -1715,22 +1696,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
|||
overflow-x: hidden;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
font-family:
|
||||
"Pretendard Variable",
|
||||
"Noto Sans JP",
|
||||
"Noto Sans KR",
|
||||
"Noto Sans TC",
|
||||
"Noto Sans SC",
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Roboto,
|
||||
Oxygen,
|
||||
Ubuntu,
|
||||
Cantarell,
|
||||
"Open Sans",
|
||||
"Helvetica Neue",
|
||||
sans-serif;
|
||||
font-family: "Pretendard Variable", "Noto Sans JP", "Noto Sans KR", "Noto Sans TC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
||||
}
|
||||
|
||||
.lyric-body .no-lyrics {
|
||||
|
@ -1790,9 +1756,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
|||
opacity: 1;
|
||||
transform: scale(1);
|
||||
/*background: var(--keyColor);*/
|
||||
transition:
|
||||
transform 0.2s var(--appleEase),
|
||||
opacity 0.35s var(--appleEase);
|
||||
transition: transform 0.2s var(--appleEase), opacity 0.35s var(--appleEase);
|
||||
}
|
||||
|
||||
.lyric-line:not(.active) {
|
||||
|
@ -1836,22 +1800,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
|||
.lyrics-translation {
|
||||
font-size: 1.6rem;
|
||||
font-weight: 450;
|
||||
font-family:
|
||||
"Pretendard Variable",
|
||||
"Noto Sans JP",
|
||||
"Noto Sans KR",
|
||||
"Noto Sans TC",
|
||||
"Noto Sans SC",
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
Roboto,
|
||||
Oxygen,
|
||||
Ubuntu,
|
||||
Cantarell,
|
||||
"Open Sans",
|
||||
"Helvetica Neue",
|
||||
sans-serif;
|
||||
font-family: "Pretendard Variable", "Noto Sans JP", "Noto Sans KR", "Noto Sans TC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
||||
filter: contrast(0.5);
|
||||
}
|
||||
|
||||
|
@ -1960,9 +1909,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
|||
&:active {
|
||||
filter: brightness(75%);
|
||||
transform: scale(0.98);
|
||||
transition:
|
||||
transform 0s var(--appleEase),
|
||||
box-shadow 0.2s var(--appleEase);
|
||||
transition: transform 0s var(--appleEase), box-shadow 0.2s var(--appleEase);
|
||||
}
|
||||
|
||||
.svg-icon {
|
||||
|
@ -2311,9 +2258,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
|||
|
||||
.replaycard-enter-active,
|
||||
.replaycard-leave-active {
|
||||
transition:
|
||||
opacity 0.5s var(--appleEase),
|
||||
transform 0.5s var(--appleEase);
|
||||
transition: opacity 0.5s var(--appleEase), transform 0.5s var(--appleEase);
|
||||
}
|
||||
|
||||
.replaycard-enter,
|
||||
|
@ -2334,9 +2279,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
|||
|
||||
.modal-enter-active,
|
||||
.modal-leave-active {
|
||||
transition:
|
||||
opacity 0.1s var(--appleEase),
|
||||
transform 0.1s var(--appleEase);
|
||||
transition: opacity 0.1s var(--appleEase), transform 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
.modal-enter,
|
||||
|
@ -2394,9 +2337,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
|||
|
||||
.fabfade-enter-active,
|
||||
.fabfade-leave-active {
|
||||
transition:
|
||||
transform 0.1s var(--appleEase),
|
||||
opacity 0.1s var(--appleEase);
|
||||
transition: transform 0.1s var(--appleEase), opacity 0.1s var(--appleEase);
|
||||
}
|
||||
|
||||
.fabfade-enter,
|
||||
|
@ -2407,9 +2348,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
|
|||
|
||||
.fsModeSwitch-enter-active,
|
||||
.fsModeSwitch-leave-active {
|
||||
transition:
|
||||
transform 1s var(--appleEase),
|
||||
opacity 1s var(--appleEase);
|
||||
transition: transform 1s var(--appleEase), opacity 1s var(--appleEase);
|
||||
}
|
||||
|
||||
.fsModeSwitch-enter,
|
||||
|
|
|
@ -59,7 +59,7 @@ define(["./workbox-962786f2"], function (e) {
|
|||
],
|
||||
{
|
||||
ignoreURLParametersMatching: [/^utm_/, /^fbclid$/, /^X-Amz-Algorithm/, /^X-Amz-Date/, /^X-Amz-SignedHeaders/, /^X-Amz-Expires/, /^X-Amz-Credential/, /^X-Amz-Signature/],
|
||||
},
|
||||
}
|
||||
),
|
||||
e.registerRoute(/\.(?:png|jpg|jpeg|svg|webp)$/, new e.CacheFirst({ cacheName: "imageinternet", plugins: [] }), "GET"),
|
||||
e.registerRoute(/https:\/\/is[0-9]-ssl\.mzstatic\.com\/image+/, new e.CacheFirst(), "GET"),
|
||||
|
|
|
@ -13,9 +13,7 @@
|
|||
|
||||
.drawertransition-enter-active,
|
||||
.drawertransition-leave-active {
|
||||
transition:
|
||||
margin 0.25s var(--appleEase),
|
||||
opacity 0.25s var(--appleEase);
|
||||
transition: margin 0.25s var(--appleEase), opacity 0.25s var(--appleEase);
|
||||
}
|
||||
|
||||
.drawertransition-enter,
|
||||
|
@ -31,9 +29,7 @@
|
|||
|
||||
.drawertransition-enter-active,
|
||||
.drawertransition-leave-active {
|
||||
transition:
|
||||
right 0.25s var(--appleEase),
|
||||
opacity 0.25s var(--appleEase);
|
||||
transition: right 0.25s var(--appleEase), opacity 0.25s var(--appleEase);
|
||||
}
|
||||
|
||||
.drawertransition-enter,
|
||||
|
|
|
@ -98,9 +98,7 @@
|
|||
.wpfade_transform-enter-active,
|
||||
.wpfade_transform-leave-active {
|
||||
--transitionTime: 0.2s;
|
||||
transition:
|
||||
opacity var(--transitionTime) var(--appleEase),
|
||||
transform var(--transitionTime) var(--appleEase);
|
||||
transition: opacity var(--transitionTime) var(--appleEase), transform var(--transitionTime) var(--appleEase);
|
||||
will-change: opacity, transform;
|
||||
}
|
||||
|
||||
|
@ -118,9 +116,7 @@
|
|||
.wpfade_transform_backwards-enter-active,
|
||||
.wpfade_transform_backwards-leave-active {
|
||||
--transitionTime: 0.2s;
|
||||
transition:
|
||||
opacity var(--transitionTime) var(--appleEase),
|
||||
transform var(--transitionTime) var(--appleEase);
|
||||
transition: opacity var(--transitionTime) var(--appleEase), transform var(--transitionTime) var(--appleEase);
|
||||
}
|
||||
|
||||
.wpfade_transform_backwards-enter {
|
||||
|
|
|
@ -44,7 +44,7 @@ await app.mk.api.personalRecommendations(
|
|||
{
|
||||
includeResponseMeta: !0,
|
||||
reload: !0,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
// Browse page
|
||||
|
@ -86,7 +86,7 @@ await app.mk.api.library.recentlyAdded(
|
|||
{
|
||||
reload: !0,
|
||||
includePagination: !0,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
// Songs
|
||||
|
@ -136,7 +136,7 @@ app
|
|||
"limit[artists:top-songs]": 20,
|
||||
"art[url]": "f",
|
||||
},
|
||||
{ includeResponseMeta: !0 },
|
||||
{ includeResponseMeta: !0 }
|
||||
)
|
||||
.then((data) => {
|
||||
console.log(data);
|
||||
|
|
|
@ -32,7 +32,7 @@ define(["exports"], function (t) {
|
|||
if (s && (e.origin === location.origin || 0 === s.index)) return s.slice(1);
|
||||
},
|
||||
e,
|
||||
s,
|
||||
s
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ define(["exports"], function (t) {
|
|||
"string" == typeof e && (e = [e]);
|
||||
const s = new Request(...e);
|
||||
return this.handleRequest({ request: s, event: t });
|
||||
}),
|
||||
})
|
||||
);
|
||||
t.waitUntil(s), t.ports && t.ports[0] && s.then(() => t.ports[0].postMessage(!0));
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ define(["exports"], function (t) {
|
|||
request: n,
|
||||
event: this.event,
|
||||
params: this.params,
|
||||
}),
|
||||
})
|
||||
);
|
||||
this.h[s] = n;
|
||||
}
|
||||
|
@ -601,7 +601,7 @@ define(["exports"], function (t) {
|
|||
params: { cacheKey: s },
|
||||
request: i,
|
||||
event: t,
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
const { updatedURLs: s, notUpdatedURLs: n } = e;
|
||||
|
|
|
@ -85,7 +85,7 @@ var app = new Vue({
|
|||
id: id,
|
||||
params: params,
|
||||
library: library,
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
resetPlayerUI() {
|
||||
|
@ -157,7 +157,7 @@ var app = new Vue({
|
|||
JSON.stringify({
|
||||
action: "set-autoplay",
|
||||
autoplay: value,
|
||||
}),
|
||||
})
|
||||
);
|
||||
this.getCurrentMediaItem();
|
||||
if (value) {
|
||||
|
@ -176,7 +176,7 @@ var app = new Vue({
|
|||
JSON.stringify({
|
||||
action: "seek",
|
||||
time: time,
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
setVolume(volume) {
|
||||
|
@ -184,49 +184,49 @@ var app = new Vue({
|
|||
JSON.stringify({
|
||||
action: "volume",
|
||||
volume: volume,
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
getVolumeMax() {
|
||||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "volumeMax",
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
getQueue() {
|
||||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "get-queue",
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
play() {
|
||||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "play",
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
pause() {
|
||||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "pause",
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
next() {
|
||||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "next",
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
previous() {
|
||||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "previous",
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
searchArtist() {
|
||||
|
@ -251,7 +251,7 @@ var app = new Vue({
|
|||
action: "play-mediaitem",
|
||||
id: id,
|
||||
kind: kind,
|
||||
}),
|
||||
})
|
||||
);
|
||||
this.screen = "player";
|
||||
},
|
||||
|
@ -261,7 +261,7 @@ var app = new Vue({
|
|||
action: "play-next",
|
||||
type: type,
|
||||
id: id,
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
playLater(type, id) {
|
||||
|
@ -270,7 +270,7 @@ var app = new Vue({
|
|||
action: "play-later",
|
||||
type: type,
|
||||
id: id,
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
getLibraryStatus(type, id) {
|
||||
|
@ -280,7 +280,7 @@ var app = new Vue({
|
|||
action: "library-status",
|
||||
type: type,
|
||||
id: id,
|
||||
}),
|
||||
})
|
||||
);
|
||||
} else {
|
||||
this.player.status = {};
|
||||
|
@ -301,7 +301,7 @@ var app = new Vue({
|
|||
action: actionType,
|
||||
term: this.search.query,
|
||||
limit: 20,
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
quickSearch() {
|
||||
|
@ -314,7 +314,7 @@ var app = new Vue({
|
|||
JSON.stringify({
|
||||
action: "quick-play",
|
||||
term: search,
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
parseTime(value) {
|
||||
|
@ -464,7 +464,7 @@ var app = new Vue({
|
|||
action: "queue-move",
|
||||
from: evt.moved.oldIndex,
|
||||
to: evt.moved.newIndex,
|
||||
}),
|
||||
})
|
||||
);
|
||||
this.getQueue();
|
||||
return true;
|
||||
|
@ -473,7 +473,7 @@ var app = new Vue({
|
|||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "repeat",
|
||||
}),
|
||||
})
|
||||
);
|
||||
this.getCurrentMediaItem();
|
||||
},
|
||||
|
@ -481,7 +481,7 @@ var app = new Vue({
|
|||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "shuffle",
|
||||
}),
|
||||
})
|
||||
);
|
||||
this.getCurrentMediaItem();
|
||||
},
|
||||
|
@ -490,7 +490,7 @@ var app = new Vue({
|
|||
JSON.stringify({
|
||||
action: "set-shuffle",
|
||||
shuffle: val,
|
||||
}),
|
||||
})
|
||||
);
|
||||
this.getCurrentMediaItem();
|
||||
},
|
||||
|
@ -535,7 +535,7 @@ var app = new Vue({
|
|||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "get-lyrics",
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
showLyrics() {
|
||||
|
@ -567,7 +567,7 @@ var app = new Vue({
|
|||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "get-currentmediaitem",
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
setStreamerOverlay() {
|
||||
|
@ -717,7 +717,7 @@ var app = new Vue({
|
|||
type: params.kind,
|
||||
id: params.id,
|
||||
rating: rating,
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
},
|
||||
|
@ -731,7 +731,7 @@ var app = new Vue({
|
|||
type: params.kind,
|
||||
id: params.id,
|
||||
add: shouldAdd,
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
},
|
||||
|
@ -739,7 +739,7 @@ var app = new Vue({
|
|||
socket.send(
|
||||
JSON.stringify({
|
||||
action: "quit",
|
||||
}),
|
||||
})
|
||||
);
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1408,7 +1408,7 @@
|
|||
fe();
|
||||
}
|
||||
})(t, e)
|
||||
: t || {}),
|
||||
: t || {})
|
||||
) || (t = {});
|
||||
var n = Object.keys(t),
|
||||
r = e.$options.props,
|
||||
|
@ -1897,7 +1897,7 @@
|
|||
math: "http://www.w3.org/1998/Math/MathML",
|
||||
},
|
||||
qn = p(
|
||||
"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot",
|
||||
"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"
|
||||
),
|
||||
Wn = p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view", !0),
|
||||
Zn = function (e) {
|
||||
|
@ -2201,8 +2201,8 @@
|
|||
isDynamicArg: o,
|
||||
modifiers: a,
|
||||
},
|
||||
s,
|
||||
),
|
||||
s
|
||||
)
|
||||
),
|
||||
(e.plain = !1);
|
||||
}
|
||||
|
@ -2564,7 +2564,7 @@
|
|||
null,
|
||||
t.map(function (t, n) {
|
||||
return Pi(t) + Pi(e[n]);
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
function Pi(e) {
|
||||
|
@ -3176,7 +3176,7 @@
|
|||
Oi,
|
||||
(n._moveCb = function e(r) {
|
||||
(r && r.target !== n) || (r && !/transform$/.test(r.propertyName)) || (n.removeEventListener(Oi, e), (n._moveCb = null), Di(n, t));
|
||||
}),
|
||||
})
|
||||
);
|
||||
}
|
||||
}));
|
||||
|
@ -3232,7 +3232,7 @@
|
|||
e._isMounted && !e._isDestroyed && Qt(e, "beforeUpdate");
|
||||
},
|
||||
},
|
||||
!0,
|
||||
!0
|
||||
),
|
||||
(n = !1),
|
||||
null == e.$vnode && ((e._isMounted = !0), Qt(e, "mounted")),
|
||||
|
@ -3635,7 +3635,7 @@
|
|||
n,
|
||||
(function (e, t) {
|
||||
return e.rawAttrsMap[":" + t] || e.rawAttrsMap["v-bind:" + t] || e.rawAttrsMap[t];
|
||||
})(e, "slot"),
|
||||
})(e, "slot")
|
||||
));
|
||||
if ("template" === e.tag) {
|
||||
var r = Rr(e, oa);
|
||||
|
@ -3969,7 +3969,7 @@
|
|||
.map(function (e) {
|
||||
return "$event." + e + "Key";
|
||||
})
|
||||
.join("||"),
|
||||
.join("||")
|
||||
);
|
||||
} else a.push(s);
|
||||
return (
|
||||
|
@ -4040,7 +4040,7 @@
|
|||
value: e.value,
|
||||
dynamic: e.dynamic,
|
||||
};
|
||||
}),
|
||||
})
|
||||
)
|
||||
: null,
|
||||
a = e.attrsMap["v-bind"];
|
||||
|
@ -4361,7 +4361,7 @@
|
|||
delimiters: n.delimiters,
|
||||
comments: n.comments,
|
||||
},
|
||||
this,
|
||||
this
|
||||
),
|
||||
o = i.render,
|
||||
a = i.staticRenderFns;
|
||||
|
|
|
@ -1,30 +1,22 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "build",
|
||||
"inlineSources": true,
|
||||
"allowJs": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
// Needed to address https://github.com/quasarframework/app-extension-typescript/issues/36
|
||||
"noEmit": false,
|
||||
"resolveJsonModule": true,
|
||||
// Avoid cross-os errors due to inconsistent file casing
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"target": "esnext",
|
||||
"isolatedModules": true,
|
||||
"useDefineForClassFields": true,
|
||||
// Fix Volar issue https://github.com/johnsoncodehk/volar/issues/1153
|
||||
"jsx": "preserve",
|
||||
"lib": ["esnext", "dom"],
|
||||
"experimentalDecorators": true,
|
||||
"baseUrl": "./",
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"noImplicitThis": true,
|
||||
"skipLibCheck": true /* Skip type checking of declaration files. */,
|
||||
"typeRoots": ["node_modules/musickit-typescript", "node_modules/@types"],
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"allowJs": true,
|
||||
"noImplicitAny": true,
|
||||
"strict": true,
|
||||
"inlineSources": true,
|
||||
"sourceMap": true,
|
||||
"outDir": "./build",
|
||||
"baseUrl": ".",
|
||||
"resolveJsonModule": true,
|
||||
"paths": {
|
||||
"*": ["node_modules/*"]
|
||||
},
|
||||
"include": ["src/**/*.ts"],
|
||||
"skipLibCheck": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"typeRoots": ["node_modules/musickit-typescript", "node_modules/@types"]
|
||||
},
|
||||
"include": ["src/main/**/*"]
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
|
||||
},
|
||||
"appId": "cider",
|
||||
"afterPack": "./resources/afterPack.cjs",
|
||||
"afterSign": "./resources/notarize.cjs",
|
||||
"afterPack": "./resources/afterPack.js",
|
||||
"afterSign": "./resources/notarize.js",
|
||||
"protocols": [
|
||||
{
|
||||
"name": "Cider",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue