From 0b249406c906db4dcb39fe2bf1a3fa8af443d4a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20Papa=C3=AFx=20=28Dorvak=29?= Date: Mon, 8 Jan 2024 19:59:38 +0100 Subject: [PATCH] v1.0.0 --- .gitignore | 163 + .idea/DeezerRPC.iml | 9 + .idea/discord.xml | 7 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 105 + README.md | Bin 0 -> 828 bytes assets/rpc/default.png | Bin 0 -> 11568 bytes assets/rpc/listening.png | Bin 0 -> 7923 bytes assets/rpc/paused.png | Bin 0 -> 8077 bytes assets/rpc/streaming.png | Bin 0 -> 24597 bytes package-assets.js | 4 + package-lock.json | 7349 +++++++++++++++++ package.json | 73 + src/app/app.ts | 43 + src/main.ts | 94 + src/manager/titlebar.ts | 65 + src/manager/tray.ts | 99 + src/manager/window.ts | 33 + src/model/episode.ts | 50 + src/model/player.ts | 39 + src/model/radio.ts | 43 + src/model/song.ts | 49 + src/model/unknown.ts | 43 + src/player/player.ts | 132 + src/preload/titlebar.ts | 18 + src/util/preferences.ts | 11 + src/util/update.ts | 48 + .../fonts/MabryDeezer/MabryDeezer-Bold.eot | Bin 0 -> 180668 bytes .../fonts/MabryDeezer/MabryDeezer-Bold.ttf | Bin 0 -> 180476 bytes .../fonts/MabryDeezer/MabryDeezer-Bold.woff | Bin 0 -> 82920 bytes .../fonts/MabryDeezer/MabryDeezer-Bold.woff2 | Bin 0 -> 63032 bytes src/web/css/splash.css | 31 + src/web/images/deezer.png | Bin 0 -> 8140 bytes src/web/images/logo.svg | 53 + src/web/splash.html | 14 + src/web/titlebar.html | 8 + tsconfig.json | 8 + 38 files changed, 8605 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/DeezerRPC.iml create mode 100644 .idea/discord.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 README.md create mode 100644 assets/rpc/default.png create mode 100644 assets/rpc/listening.png create mode 100644 assets/rpc/paused.png create mode 100644 assets/rpc/streaming.png create mode 100644 package-assets.js create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 src/app/app.ts create mode 100644 src/main.ts create mode 100644 src/manager/titlebar.ts create mode 100644 src/manager/tray.ts create mode 100644 src/manager/window.ts create mode 100644 src/model/episode.ts create mode 100644 src/model/player.ts create mode 100644 src/model/radio.ts create mode 100644 src/model/song.ts create mode 100644 src/model/unknown.ts create mode 100644 src/player/player.ts create mode 100644 src/preload/titlebar.ts create mode 100644 src/util/preferences.ts create mode 100644 src/util/update.ts create mode 100644 src/web/css/fonts/MabryDeezer/MabryDeezer-Bold.eot create mode 100644 src/web/css/fonts/MabryDeezer/MabryDeezer-Bold.ttf create mode 100644 src/web/css/fonts/MabryDeezer/MabryDeezer-Bold.woff create mode 100644 src/web/css/fonts/MabryDeezer/MabryDeezer-Bold.woff2 create mode 100644 src/web/css/splash.css create mode 100644 src/web/images/deezer.png create mode 100644 src/web/images/logo.svg create mode 100644 src/web/splash.html create mode 100644 src/web/titlebar.html create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a7996cd --- /dev/null +++ b/.gitignore @@ -0,0 +1,163 @@ + +# Created by https://www.gitignore.io/api/node,linux,macos,windows +# Edit at https://www.gitignore.io/?templates=node,linux,macos,windows + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Node ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.gitignore.io/api/node,linux,macos,windows + +# Custom +dist/* +build/* diff --git a/.idea/DeezerRPC.iml b/.idea/DeezerRPC.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/DeezerRPC.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..d8e9561 --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..2dff20c --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..816ca29 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + { + "associatedIndex": 3 +} + + + + + + + + + + + + + + + + + + + + + + + +