├── .envrc ├── .gitignore ├── .vscode ├── build.sh ├── config.sh ├── defsettings.json ├── setup.sh └── tasks.json ├── LICENSE ├── README.md ├── assets ├── mockup.webp ├── screenshot.jpg ├── vibrant.1024.png ├── vibrant.128.png ├── vibrant.2048.png ├── vibrant.256.png ├── vibrant.512.png └── vibrant.svg ├── flake.lock ├── flake.nix ├── main.py ├── nix └── decky-cli.nix ├── package.json ├── plugin.json ├── pnpm-lock.yaml ├── renovate.json ├── rollup.config.js ├── src ├── index.tsx ├── settings.ts └── util.ts └── tsconfig.json /.envrc: -------------------------------------------------------------------------------- 1 | use flake 2 | dotenv_if_exists 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | *.swp 10 | 11 | pids 12 | logs 13 | results 14 | tmp 15 | 16 | # Coverage reports 17 | coverage 18 | 19 | # API keys and secrets 20 | .env 21 | 22 | # Dependency directory 23 | node_modules 24 | bower_components 25 | .pnpm-store 26 | 27 | # Editors 28 | .idea 29 | *.iml 30 | 31 | # OS metadata 32 | .DS_Store 33 | Thumbs.db 34 | 35 | # Ignore built ts files 36 | dist/ 37 | 38 | __pycache__/ 39 | 40 | /.yalc 41 | yalc.lock 42 | 43 | .vscode/settings.json 44 | 45 | # Ignore output folder 46 | 47 | backend/out 48 | 49 | # Make sure to ignore any instance of the loader's decky_plugin.py 50 | decky_plugin.py 51 | 52 | # Ignore decky CLI for building plugins 53 | out 54 | out/* 55 | cli/ 56 | cli/* 57 | cli/decky 58 | 59 | .direnv/ 60 | .pre-commit-config.yaml 61 | -------------------------------------------------------------------------------- /.vscode/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | CLI_LOCATION="$(pwd)/cli" 3 | echo "Building plugin in $(pwd)" 4 | printf "Please input sudo password to proceed.\n" 5 | 6 | # read -s sudopass 7 | 8 | # printf "\n" 9 | 10 | echo $sudopass | sudo $CLI_LOCATION/decky plugin build $(pwd) 11 | -------------------------------------------------------------------------------- /.vscode/config.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"; 3 | # printf "${SCRIPT_DIR}\n" 4 | # printf "$(dirname $0)\n" 5 | if ! [[ -e "${SCRIPT_DIR}/settings.json" ]]; then 6 | printf '.vscode/settings.json does not exist. Creating it with default settings. Exiting afterwards. Run your task again.\n\n' 7 | cp "${SCRIPT_DIR}/defsettings.json" "${SCRIPT_DIR}/settings.json" 8 | exit 1 9 | else 10 | printf '.vscode/settings.json does exist. Congrats.\n' 11 | printf 'Make sure to change settings.json to match your deck.\n' 12 | fi -------------------------------------------------------------------------------- /.vscode/defsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "deckip": "steamdeck.local", 3 | "deckport": "22", 4 | "deckuser": "deck", 5 | "deckpass": "ssap", 6 | "deckkey": "-i ${env:HOME}/.ssh/id_rsa", 7 | "deckdir": "/home/deck", 8 | "pluginname": "vibrantDeck", 9 | "python.analysis.extraPaths": ["./py_modules"] 10 | } 11 | -------------------------------------------------------------------------------- /.vscode/setup.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | PNPM_INSTALLED="$(which pnpm)" 3 | DOCKER_INSTALLED="$(which docker)" 4 | CLI_INSTALLED="$(pwd)/cli/decky" 5 | 6 | # echo "$PNPM_INSTALLED" 7 | # echo "$DOCKER_INSTALLED" 8 | # echo "$CLI_INSTALLED" 9 | 10 | echo "If you are using alpine linux, do not expect any support." 11 | if [[ "$PNPM_INSTALLED" =~ "which" ]]; then 12 | echo "pnpm is not currently installed, you can install it via your distro's package managment system or via a script that will attempt to do a manual install based on your system. If you wish to proceed with installing via the script then answer "no" (capitals do not matter) and proceed with the rest of the script. Otherwise, just hit enter to proceed and use the script." 13 | read run_pnpm_script 14 | if [[ "$run_pnpm_script" =~ "n" ]]; then 15 | echo "You have chose to install pnpm via npm or your distros package manager. Please make sure to do so before attempting to build your plugin." 16 | else 17 | CURL_INSTALLED="$(which curl)" 18 | WGET_INSTALLED="$(which wget)" 19 | if [[ "$CURL_INSTALLED" =~ "which" ]]; then 20 | printf "curl not found, attempting with wget.\n" 21 | if [[ "$WGET_INSTALLED" =~ "which" ]]; then 22 | printf "wget not found, please install wget or curl.\n" 23 | printf "Could not install pnpm as curl and wget were not found.\n" 24 | else 25 | wget -qO- https://get.pnpm.io/install.sh | sh - 26 | fi 27 | else 28 | curl -fsSL https://get.pnpm.io/install.sh | sh - 29 | fi 30 | fi 31 | fi 32 | 33 | if [[ "$DOCKER_INSTALLED" =~ "which" ]]; then 34 | echo "Docker is not currently installed, in order build plugins with a backend you will need to have Docker installed. Please install Docker via the preferred method for your distribution." 35 | fi 36 | 37 | if ! test -f "$CLI_INSTALLED"; then 38 | echo "The Decky CLI tool (binary file is just called "decky") is used to build your plugin as a zip file which you can then install on your Steam Deck to perform testing. We highly recommend you install it. Hitting enter now will run the script to install Decky CLI and extract it to a folder called cli in the current plugin directory. You can also type 'no' and hit enter to skip this but keep in mind you will not have a usable plugin without building it." 39 | read run_cli_script 40 | if [[ "$run_cli_script" =~ "n" ]]; then 41 | echo "You have chosen to not install the Decky CLI tool to build your plugins. Please install this tool to build and test your plugin before submitting it to the Plugin Database." 42 | else 43 | 44 | SYSTEM_ARCH="$(uname -a)" 45 | 46 | mkdir "$(pwd)"/cli 47 | if [[ "$SYSTEM_ARCH" =~ "x86_64" ]]; then 48 | 49 | if [[ "$SYSTEM_ARCH" =~ "Linux" ]]; then 50 | curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-linux-x86_64" 51 | fi 52 | 53 | if [[ "$SYSTEM_ARCH" =~ "Darwin" ]]; then 54 | curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-macOS-x86_64" 55 | fi 56 | 57 | else 58 | echo "System Arch not found! The only supported systems are Linux x86_64 and Apple x86_64/ARM64, not $SYSTEM_ARCH" 59 | fi 60 | 61 | if [[ "$SYSTEM_ARCH" =~ "arm64" ]]; then 62 | curl -L -o "$(pwd)"/cli/decky "https://github.com/SteamDeckHomebrew/cli/releases/latest/download/decky-macOS-aarch64" 63 | fi 64 | 65 | chmod +x "$(pwd)"/cli/decky 66 | echo "Decky CLI tool is now installed and you can build plugins into easy zip files using the "Build Zip" Task in vscodium." 67 | fi 68 | fi 69 | -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "tasks": [ 4 | //PRELIMINARY SETUP TASKS 5 | //Dependency setup task 6 | { 7 | "label": "depsetup", 8 | "type": "shell", 9 | "group": "none", 10 | "detail": "Install depedencies for basic setup", 11 | "linux": { 12 | "command": "${workspaceFolder}/.vscode/setup.sh" 13 | }, 14 | // // placeholder for windows scripts, not currently planned 15 | // "windows": { 16 | // "command": "call -c ${workspaceFolder}\\.vscode\\setup.bat", 17 | // }, 18 | "problemMatcher": [] 19 | }, 20 | //pnpm setup task to grab all needed modules 21 | { 22 | "label": "pnpmsetup", 23 | "type": "shell", 24 | "group": "none", 25 | "detail": "Setup pnpm", 26 | "command": "which pnpm && pnpm i", 27 | "problemMatcher": [] 28 | }, 29 | //Preliminary "All-in-one" setup task 30 | { 31 | "label": "setup", 32 | "detail": "Set up depedencies, pnpm and update Decky Frontend Library.", 33 | "dependsOrder": "sequence", 34 | "dependsOn": ["depsetup", "pnpmsetup", "updatefrontendlib"], 35 | "problemMatcher": [] 36 | }, 37 | //Preliminary Deploy Config Setup 38 | { 39 | "label": "settingscheck", 40 | "type": "shell", 41 | "group": "none", 42 | "detail": "Check that settings.json has been created", 43 | "linux": { 44 | "command": "${workspaceFolder}/.vscode/config.sh" 45 | }, 46 | // // placeholder for windows scripts, not currently planned 47 | // "windows": { 48 | // "command": "call ${workspaceFolder}\\.vscode\\config.bat", 49 | // }, 50 | "problemMatcher": [] 51 | }, 52 | //BUILD TASKS 53 | { 54 | "label": "cli-build", 55 | "group": "build", 56 | "detail": "Build plugin with CLI", 57 | "linux": { 58 | "command": "${workspaceFolder}/.vscode/build.sh" 59 | }, 60 | // // placeholder for windows logic, not currently planned 61 | // "windows": { 62 | // "command": "call ${workspaceFolder}\\.vscode\\build.bat", 63 | // }, 64 | "problemMatcher": [] 65 | }, 66 | //"All-in-one" build task 67 | { 68 | "label": "build", 69 | "group": "build", 70 | "detail": "Build decky-plugin-template", 71 | "dependsOrder": "sequence", 72 | "dependsOn": ["setup", "settingscheck", "cli-build"], 73 | "problemMatcher": [] 74 | }, 75 | //DEPLOY TASKS 76 | //Copies the zip file of the built plugin to the plugins folder 77 | { 78 | "label": "copyzip", 79 | "detail": "Deploy plugin zip to deck", 80 | "type": "shell", 81 | "group": "none", 82 | "dependsOn": ["chmodplugins"], 83 | "command": "rsync -azp --chmod=D0755,F0755 --rsh='ssh -p ${config:deckport} ${config:deckkey}' out/ ${config:deckuser}@${config:deckip}:${config:deckdir}/homebrew/plugins", 84 | "problemMatcher": [] 85 | }, 86 | // 87 | { 88 | "label": "extractzip", 89 | "detail": "", 90 | "type": "shell", 91 | "group": "none", 92 | "command": "echo '${config:deckdir}/homebrew/plugins/${config:pluginname}.zip' && ssh ${config:deckuser}@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo ${config:deckpass} | sudo -S mkdir 755 -p \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|\")\" && echo ${config:deckpass} | sudo -S chown ${config:deckuser}:${config:deckuser} \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|\")\" && echo ${config:deckpass} | sudo -S bsdtar -xzpf \"${config:deckdir}/homebrew/plugins/${config:pluginname}.zip\" -C \"$(echo \"${config:deckdir}/homebrew/plugins/${config:pluginname}\" | sed \"s| |-|g\")\" --strip-components=1 --fflags '", 93 | "problemMatcher": [] 94 | }, 95 | //"All-in-one" deploy task 96 | { 97 | "label": "deploy", 98 | "dependsOrder": "sequence", 99 | "group": "none", 100 | "dependsOn": ["copyzip", "extractzip"], 101 | "problemMatcher": [] 102 | }, 103 | //"All-in-on" build & deploy task 104 | { 105 | "label": "builddeploy", 106 | "detail": "Builds plugin and deploys to deck", 107 | "dependsOrder": "sequence", 108 | "group": "none", 109 | "dependsOn": ["build", "deploy"], 110 | "problemMatcher": [] 111 | }, 112 | //GENERAL TASKS 113 | //Update Decky Frontend Library, aka DFL 114 | { 115 | "label": "updatefrontendlib", 116 | "type": "shell", 117 | "group": "build", 118 | "detail": "Update deck-frontend-lib aka DFL", 119 | "command": "pnpm update decky-frontend-lib --latest", 120 | "problemMatcher": [] 121 | }, 122 | //Used chmod plugins folder to allow copy-over of files 123 | { 124 | "label": "chmodplugins", 125 | "detail": "chmods plugins folder to prevent perms issues", 126 | "type": "shell", 127 | "group": "none", 128 | "command": "ssh ${config:deckuser}@${config:deckip} -p ${config:deckport} ${config:deckkey} 'echo '${config:deckpass}' | sudo -S chmod -R ug+rw ${config:deckdir}/homebrew/plugins/'", 129 | "problemMatcher": [] 130 | } 131 | ] 132 | } 133 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU LESSER GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | 9 | This version of the GNU Lesser General Public License incorporates 10 | the terms and conditions of version 3 of the GNU General Public 11 | License, supplemented by the additional permissions listed below. 12 | 13 | 0. Additional Definitions. 14 | 15 | As used herein, "this License" refers to version 3 of the GNU Lesser 16 | General Public License, and the "GNU GPL" refers to version 3 of the GNU 17 | General Public License. 18 | 19 | "The Library" refers to a covered work governed by this License, 20 | other than an Application or a Combined Work as defined below. 21 | 22 | An "Application" is any work that makes use of an interface provided 23 | by the Library, but which is not otherwise based on the Library. 24 | Defining a subclass of a class defined by the Library is deemed a mode 25 | of using an interface provided by the Library. 26 | 27 | A "Combined Work" is a work produced by combining or linking an 28 | Application with the Library. The particular version of the Library 29 | with which the Combined Work was made is also called the "Linked 30 | Version". 31 | 32 | The "Minimal Corresponding Source" for a Combined Work means the 33 | Corresponding Source for the Combined Work, excluding any source code 34 | for portions of the Combined Work that, considered in isolation, are 35 | based on the Application, and not on the Linked Version. 36 | 37 | The "Corresponding Application Code" for a Combined Work means the 38 | object code and/or source code for the Application, including any data 39 | and utility programs needed for reproducing the Combined Work from the 40 | Application, but excluding the System Libraries of the Combined Work. 41 | 42 | 1. Exception to Section 3 of the GNU GPL. 43 | 44 | You may convey a covered work under sections 3 and 4 of this License 45 | without being bound by section 3 of the GNU GPL. 46 | 47 | 2. Conveying Modified Versions. 48 | 49 | If you modify a copy of the Library, and, in your modifications, a 50 | facility refers to a function or data to be supplied by an Application 51 | that uses the facility (other than as an argument passed when the 52 | facility is invoked), then you may convey a copy of the modified 53 | version: 54 | 55 | a) under this License, provided that you make a good faith effort to 56 | ensure that, in the event an Application does not supply the 57 | function or data, the facility still operates, and performs 58 | whatever part of its purpose remains meaningful, or 59 | 60 | b) under the GNU GPL, with none of the additional permissions of 61 | this License applicable to that copy. 62 | 63 | 3. Object Code Incorporating Material from Library Header Files. 64 | 65 | The object code form of an Application may incorporate material from 66 | a header file that is part of the Library. You may convey such object 67 | code under terms of your choice, provided that, if the incorporated 68 | material is not limited to numerical parameters, data structure 69 | layouts and accessors, or small macros, inline functions and templates 70 | (ten or fewer lines in length), you do both of the following: 71 | 72 | a) Give prominent notice with each copy of the object code that the 73 | Library is used in it and that the Library and its use are 74 | covered by this License. 75 | 76 | b) Accompany the object code with a copy of the GNU GPL and this license 77 | document. 78 | 79 | 4. Combined Works. 80 | 81 | You may convey a Combined Work under terms of your choice that, 82 | taken together, effectively do not restrict modification of the 83 | portions of the Library contained in the Combined Work and reverse 84 | engineering for debugging such modifications, if you also do each of 85 | the following: 86 | 87 | a) Give prominent notice with each copy of the Combined Work that 88 | the Library is used in it and that the Library and its use are 89 | covered by this License. 90 | 91 | b) Accompany the Combined Work with a copy of the GNU GPL and this license 92 | document. 93 | 94 | c) For a Combined Work that displays copyright notices during 95 | execution, include the copyright notice for the Library among 96 | these notices, as well as a reference directing the user to the 97 | copies of the GNU GPL and this license document. 98 | 99 | d) Do one of the following: 100 | 101 | 0) Convey the Minimal Corresponding Source under the terms of this 102 | License, and the Corresponding Application Code in a form 103 | suitable for, and under terms that permit, the user to 104 | recombine or relink the Application with a modified version of 105 | the Linked Version to produce a modified Combined Work, in the 106 | manner specified by section 6 of the GNU GPL for conveying 107 | Corresponding Source. 108 | 109 | 1) Use a suitable shared library mechanism for linking with the 110 | Library. A suitable mechanism is one that (a) uses at run time 111 | a copy of the Library already present on the user's computer 112 | system, and (b) will operate properly with a modified version 113 | of the Library that is interface-compatible with the Linked 114 | Version. 115 | 116 | e) Provide Installation Information, but only if you would otherwise 117 | be required to provide such information under section 6 of the 118 | GNU GPL, and only to the extent that such information is 119 | necessary to install and execute a modified version of the 120 | Combined Work produced by recombining or relinking the 121 | Application with a modified version of the Linked Version. (If 122 | you use option 4d0, the Installation Information must accompany 123 | the Minimal Corresponding Source and Corresponding Application 124 | Code. If you use option 4d1, you must provide the Installation 125 | Information in the manner specified by section 6 of the GNU GPL 126 | for conveying Corresponding Source.) 127 | 128 | 5. Combined Libraries. 129 | 130 | You may place library facilities that are a work based on the 131 | Library side by side in a single library together with other library 132 | facilities that are not Applications and are not covered by this 133 | License, and convey such a combined library under terms of your 134 | choice, if you do both of the following: 135 | 136 | a) Accompany the combined library with a copy of the same work based 137 | on the Library, uncombined with any other library facilities, 138 | conveyed under the terms of this License. 139 | 140 | b) Give prominent notice with the combined library that part of it 141 | is a work based on the Library, and explaining where to find the 142 | accompanying uncombined form of the same work. 143 | 144 | 6. Revised Versions of the GNU Lesser General Public License. 145 | 146 | The Free Software Foundation may publish revised and/or new versions 147 | of the GNU Lesser General Public License from time to time. Such new 148 | versions will be similar in spirit to the present version, but may 149 | differ in detail to address new problems or concerns. 150 | 151 | Each version is given a distinguishing version number. If the 152 | Library as you received it specifies that a certain numbered version 153 | of the GNU Lesser General Public License "or any later version" 154 | applies to it, you have the option of following the terms and 155 | conditions either of that published version or of any later version 156 | published by the Free Software Foundation. If the Library as you 157 | received it does not specify a version number of the GNU Lesser 158 | General Public License, you may choose any version of the GNU Lesser 159 | General Public License ever published by the Free Software Foundation. 160 | 161 | If the Library as you received it specifies that a proxy can decide 162 | whether future versions of the GNU Lesser General Public License shall 163 | apply, that proxy's public statement of acceptance of any version is 164 | permanent authorization for you to choose that version for the 165 | Library. 166 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Logo vibrantDeck 2 | 3 | A Steam Deck plugin (for Decky Loader) to adjust screen saturation / vibrancy. 4 | 5 | ![Screenshot of Deck UI](assets/screenshot.jpg) 6 | 7 | ![Example Screenshot](assets/mockup.webp) 8 | 9 | ## Build instrutions 10 | 11 | 1. Clone the repository to use as an example for making your plugin. 12 | 2. In your clone of the repository run these commands: 13 | 1. `pnpm i` 14 | 2. `pnpm run build` 15 | 3. You should do this every time you make changes to your plugin. 16 | 17 | Note: If you are recieveing build errors due to an out of date library, you should run this command inside of 18 | your repository: 19 | 20 | ```bash 21 | pnpm update decky-frontend-lib --latest 22 | ``` 23 | 24 | # License 25 | 26 | This project is licensed under the terms of the Lesser GNU General Public License 3.0. You can read the full 27 | license text in [LICENSE](LICENSE). 28 | -------------------------------------------------------------------------------- /assets/mockup.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libvibrant/vibrantDeck/b0043b9a4660f5029b0c17d73e06b5e34eaddd40/assets/mockup.webp -------------------------------------------------------------------------------- /assets/screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libvibrant/vibrantDeck/b0043b9a4660f5029b0c17d73e06b5e34eaddd40/assets/screenshot.jpg -------------------------------------------------------------------------------- /assets/vibrant.1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libvibrant/vibrantDeck/b0043b9a4660f5029b0c17d73e06b5e34eaddd40/assets/vibrant.1024.png -------------------------------------------------------------------------------- /assets/vibrant.128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libvibrant/vibrantDeck/b0043b9a4660f5029b0c17d73e06b5e34eaddd40/assets/vibrant.128.png -------------------------------------------------------------------------------- /assets/vibrant.2048.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libvibrant/vibrantDeck/b0043b9a4660f5029b0c17d73e06b5e34eaddd40/assets/vibrant.2048.png -------------------------------------------------------------------------------- /assets/vibrant.256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libvibrant/vibrantDeck/b0043b9a4660f5029b0c17d73e06b5e34eaddd40/assets/vibrant.256.png -------------------------------------------------------------------------------- /assets/vibrant.512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/libvibrant/vibrantDeck/b0043b9a4660f5029b0c17d73e06b5e34eaddd40/assets/vibrant.512.png -------------------------------------------------------------------------------- /assets/vibrant.svg: -------------------------------------------------------------------------------- 1 | 2 | 20 | vibrant Logo 22 | 24 | 41 | 58 | 75 | 78 | 82 | 86 | 87 | 90 | 94 | 98 | 99 | 102 | 106 | 110 | 111 | 121 | 130 | 139 | 140 | 163 | 170 | 177 | 178 | 180 | 181 | 183 | image/svg+xml 184 | 186 | vibrant Logo 187 | 189 | 190 | 191 | Sefa Eyeoglu <contact@scrumplex.net> 192 | 193 | 194 | 195 | 197 | 199 | 201 | 203 | 205 | 207 | 209 | 210 | 211 | 212 | 216 | 219 | 222 | 226 | 233 | 234 | 241 | 248 | 249 | 250 | 251 | -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- 1 | { 2 | "nodes": { 3 | "flake-compat": { 4 | "flake": false, 5 | "locked": { 6 | "lastModified": 1696426674, 7 | "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", 8 | "owner": "edolstra", 9 | "repo": "flake-compat", 10 | "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", 11 | "type": "github" 12 | }, 13 | "original": { 14 | "owner": "edolstra", 15 | "repo": "flake-compat", 16 | "type": "github" 17 | } 18 | }, 19 | "flake-utils": { 20 | "inputs": { 21 | "systems": "systems" 22 | }, 23 | "locked": { 24 | "lastModified": 1710146030, 25 | "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", 26 | "owner": "numtide", 27 | "repo": "flake-utils", 28 | "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", 29 | "type": "github" 30 | }, 31 | "original": { 32 | "owner": "numtide", 33 | "repo": "flake-utils", 34 | "type": "github" 35 | } 36 | }, 37 | "gitignore": { 38 | "inputs": { 39 | "nixpkgs": [ 40 | "pre-commit-hooks", 41 | "nixpkgs" 42 | ] 43 | }, 44 | "locked": { 45 | "lastModified": 1709087332, 46 | "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", 47 | "owner": "hercules-ci", 48 | "repo": "gitignore.nix", 49 | "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", 50 | "type": "github" 51 | }, 52 | "original": { 53 | "owner": "hercules-ci", 54 | "repo": "gitignore.nix", 55 | "type": "github" 56 | } 57 | }, 58 | "nixpkgs": { 59 | "locked": { 60 | "lastModified": 1712482522, 61 | "narHash": "sha256-Ai/xNgZpbwGcw0TSXwEPwwbPi8Iu906sB9M9z3o6UgA=", 62 | "owner": "nixos", 63 | "repo": "nixpkgs", 64 | "rev": "efe8ce06ca261f370d672def5b1e0be300c726e1", 65 | "type": "github" 66 | }, 67 | "original": { 68 | "owner": "nixos", 69 | "ref": "nixpkgs-unstable", 70 | "repo": "nixpkgs", 71 | "type": "github" 72 | } 73 | }, 74 | "nixpkgs-stable": { 75 | "locked": { 76 | "lastModified": 1710695816, 77 | "narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=", 78 | "owner": "NixOS", 79 | "repo": "nixpkgs", 80 | "rev": "614b4613980a522ba49f0d194531beddbb7220d3", 81 | "type": "github" 82 | }, 83 | "original": { 84 | "owner": "NixOS", 85 | "ref": "nixos-23.11", 86 | "repo": "nixpkgs", 87 | "type": "github" 88 | } 89 | }, 90 | "pre-commit-hooks": { 91 | "inputs": { 92 | "flake-compat": "flake-compat", 93 | "flake-utils": [ 94 | "flake-utils" 95 | ], 96 | "gitignore": "gitignore", 97 | "nixpkgs": [ 98 | "nixpkgs" 99 | ], 100 | "nixpkgs-stable": "nixpkgs-stable" 101 | }, 102 | "locked": { 103 | "lastModified": 1712055707, 104 | "narHash": "sha256-4XLvuSIDZJGS17xEwSrNuJLL7UjDYKGJSbK1WWX2AK8=", 105 | "owner": "cachix", 106 | "repo": "pre-commit-hooks.nix", 107 | "rev": "e35aed5fda3cc79f88ed7f1795021e559582093a", 108 | "type": "github" 109 | }, 110 | "original": { 111 | "owner": "cachix", 112 | "repo": "pre-commit-hooks.nix", 113 | "type": "github" 114 | } 115 | }, 116 | "root": { 117 | "inputs": { 118 | "flake-utils": "flake-utils", 119 | "nixpkgs": "nixpkgs", 120 | "pre-commit-hooks": "pre-commit-hooks" 121 | } 122 | }, 123 | "systems": { 124 | "locked": { 125 | "lastModified": 1681028828, 126 | "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 127 | "owner": "nix-systems", 128 | "repo": "default", 129 | "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 130 | "type": "github" 131 | }, 132 | "original": { 133 | "owner": "nix-systems", 134 | "repo": "default", 135 | "type": "github" 136 | } 137 | } 138 | }, 139 | "root": "root", 140 | "version": 7 141 | } 142 | -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- 1 | { 2 | description = "Discord bot for Prism Launcher"; 3 | 4 | inputs = { 5 | nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; 6 | flake-utils.url = "github:numtide/flake-utils"; 7 | pre-commit-hooks = { 8 | url = "github:cachix/pre-commit-hooks.nix"; 9 | inputs.nixpkgs.follows = "nixpkgs"; 10 | inputs.flake-utils.follows = "flake-utils"; 11 | }; 12 | }; 13 | 14 | outputs = { 15 | self, 16 | nixpkgs, 17 | flake-utils, 18 | pre-commit-hooks, 19 | ... 20 | }: 21 | flake-utils.lib.eachDefaultSystem (system: let 22 | pkgs = nixpkgs.legacyPackages.${system}; 23 | inherit (pkgs) lib; 24 | 25 | decky-cli = pkgs.callPackage ./nix/decky-cli.nix {}; 26 | in { 27 | checks = { 28 | pre-commit-check = pre-commit-hooks.lib.${system}.run { 29 | src = ./.; 30 | excludes = ["flake.lock" "pnpm-lock.yaml"]; 31 | hooks = { 32 | alejandra.enable = true; 33 | prettier.enable = true; 34 | }; 35 | }; 36 | }; 37 | devShells.default = pkgs.mkShell { 38 | shellHook = '' 39 | ${self.checks.${system}.pre-commit-check.shellHook} 40 | 41 | rootDir=$(git rev-parse --show-toplevel) 42 | mkdir -p $rootDir/cli/ 43 | ln -sf ${lib.getExe decky-cli} $rootDir/cli/decky 44 | ''; 45 | packages = with pkgs; [nodejs_latest corepack_latest decky-cli]; 46 | }; 47 | }); 48 | } 49 | -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | """ 2 | vibrantDeck - Adjust color vibrancy of Steam Deck output 3 | Copyright (C) 2022,2023 Sefa Eyeoglu (https://scrumplex.net) 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation, either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . 17 | """ 18 | 19 | import os 20 | import sys 21 | import struct 22 | import subprocess 23 | from typing import Iterable 24 | 25 | # Takes 0.0..1.0, 0.5 being sRGB 0.5..1.0 being "boosted" 26 | SDR_GAMUT_PROP = "GAMESCOPE_COLOR_SDR_GAMUT_WIDENESS" 27 | 28 | 29 | def float_to_long(x: float) -> int: 30 | return struct.unpack("!I", struct.pack("!f", x))[0] 31 | 32 | 33 | def long_to_float(x: int) -> float: 34 | return struct.unpack("!f", struct.pack("!I", x))[0] 35 | 36 | 37 | def set_cardinal_prop(prop_name: str, values: Iterable[int]): 38 | 39 | param = ",".join(map(str, values)) 40 | 41 | command = ["xprop", "-root", "-f", prop_name, 42 | "32c", "-set", prop_name, param] 43 | 44 | if "DISPLAY" not in os.environ: 45 | command.insert(1, ":1") 46 | command.insert(1, "-display") 47 | 48 | completed = subprocess.run(command, stderr=sys.stderr, stdout=sys.stdout) 49 | 50 | return completed.returncode == 0 51 | 52 | 53 | class Plugin: 54 | 55 | async def set_vibrancy(self, vibrancy: float): 56 | vibrancy = max(vibrancy, 0.0) 57 | vibrancy = min(vibrancy, 1.0) 58 | 59 | return set_cardinal_prop(SDR_GAMUT_PROP, [float_to_long(vibrancy)]) 60 | 61 | async def get_vibrancy(self) -> float: 62 | command = ["xprop", "-root", SDR_GAMUT_PROP] 63 | 64 | if "DISPLAY" not in os.environ: 65 | command.insert(1, ":1") 66 | command.insert(1, "-display") 67 | 68 | completed = subprocess.run(command, capture_output=True) 69 | stdout = completed.stdout.decode("utf-8") 70 | 71 | # Good output: "GAMESCOPE_COLOR_SDR_GAMUT_WIDENESS(CARDINAL) = 1065353216" 72 | # Bad output: "GAMESCOPE_COLOR_SDR_GAMUT_WIDENESS: not found." 73 | if "=" in stdout: 74 | 75 | # "1065353216" 76 | wideness_param = stdout.split("=")[1] 77 | # 1065353216 78 | wideness_param = int(wideness_param) 79 | # 1.0 80 | return round(long_to_float(wideness_param), 2) 81 | 82 | return 1.0 83 | -------------------------------------------------------------------------------- /nix/decky-cli.nix: -------------------------------------------------------------------------------- 1 | { 2 | lib, 3 | stdenv, 4 | fetchurl, 5 | autoPatchelfHook, 6 | libgcc, 7 | openssl, 8 | }: 9 | stdenv.mkDerivation (finalAttrs: { 10 | pname = "decky-cli-bin"; 11 | version = "0.0.2"; 12 | 13 | src = fetchurl { 14 | name = "decky-cli-${finalAttrs.version}"; 15 | url = "https://github.com/SteamDeckHomebrew/cli/releases/download/${finalAttrs.version}/decky-linux-x86_64"; 16 | hash = "sha256-nomDValyO9JP06nWm0joSYZ86F757larll0jHqeMXjk="; 17 | }; 18 | 19 | nativeBuildInputs = [autoPatchelfHook]; 20 | buildInputs = [openssl libgcc]; 21 | 22 | dontUnpack = true; 23 | dontConfigure = true; 24 | dontBuild = true; 25 | 26 | installPhase = '' 27 | runHook preInstall 28 | 29 | install -Dm 755 $src $out/bin/decky 30 | 31 | runHook postInstall 32 | ''; 33 | 34 | meta = with lib; { 35 | maintainers = with maintainers; [Scrumplex]; 36 | mainProgram = "decky"; 37 | }; 38 | }) 39 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vibrant-deck", 3 | "version": "2.0.1", 4 | "description": "Adjust color settings of your Deck", 5 | "scripts": { 6 | "build": "shx rm -rf dist && rollup -c", 7 | "watch": "rollup -c -w", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/libvibrant/vibrantDeck.git" 13 | }, 14 | "keywords": [ 15 | "decky", 16 | "plugin", 17 | "vibrant", 18 | "x11", 19 | "libvibrant", 20 | "steam-deck", 21 | "deck" 22 | ], 23 | "author": "Sefa Eyeoglu ", 24 | "license": "LGPL-3.0-or-later", 25 | "bugs": { 26 | "url": "https://github.com/libvibrant/vibrantDeck/issues" 27 | }, 28 | "homepage": "https://github.com/libvibrant/vibrantDeck#readme", 29 | "devDependencies": { 30 | "@rollup/plugin-commonjs": "21.1.0", 31 | "@rollup/plugin-json": "4.1.0", 32 | "@rollup/plugin-node-resolve": "13.3.0", 33 | "@rollup/plugin-replace": "4.0.0", 34 | "@rollup/plugin-typescript": "8.5.0", 35 | "@types/react": "16.14.60", 36 | "@types/webpack": "5.28.3", 37 | "rollup": "2.79.1", 38 | "rollup-plugin-import-assets": "1.1.1", 39 | "shx": "0.3.4", 40 | "tslib": "2.6.2", 41 | "typescript": "4.9.5" 42 | }, 43 | "dependencies": { 44 | "decky-frontend-lib": "3.25.0", 45 | "react-icons": "4.11.0", 46 | "typescript-json-serializer": "6.0.1" 47 | }, 48 | "pnpm": { 49 | "peerDependencyRules": { 50 | "ignoreMissing": [ 51 | "react", 52 | "react-dom" 53 | ] 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /plugin.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vibrantDeck", 3 | "author": "Scrumplex", 4 | "flags": [], 5 | "publish": { 6 | "tags": ["vibrant", "saturation"], 7 | "description": "Adjust color settings of your Deck", 8 | "image": "https://raw.githubusercontent.com/libvibrant/vibrantDeck/main/assets/screenshot.jpg" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: '6.0' 2 | 3 | settings: 4 | autoInstallPeers: true 5 | excludeLinksFromLockfile: false 6 | 7 | dependencies: 8 | decky-frontend-lib: 9 | specifier: 3.25.0 10 | version: 3.25.0 11 | react-icons: 12 | specifier: 4.11.0 13 | version: 4.11.0 14 | typescript-json-serializer: 15 | specifier: 6.0.1 16 | version: 6.0.1 17 | 18 | devDependencies: 19 | '@rollup/plugin-commonjs': 20 | specifier: 21.1.0 21 | version: 21.1.0(rollup@2.79.1) 22 | '@rollup/plugin-json': 23 | specifier: 4.1.0 24 | version: 4.1.0(rollup@2.79.1) 25 | '@rollup/plugin-node-resolve': 26 | specifier: 13.3.0 27 | version: 13.3.0(rollup@2.79.1) 28 | '@rollup/plugin-replace': 29 | specifier: 4.0.0 30 | version: 4.0.0(rollup@2.79.1) 31 | '@rollup/plugin-typescript': 32 | specifier: 8.5.0 33 | version: 8.5.0(rollup@2.79.1)(tslib@2.6.2)(typescript@4.9.5) 34 | '@types/react': 35 | specifier: 16.14.60 36 | version: 16.14.60 37 | '@types/webpack': 38 | specifier: 5.28.3 39 | version: 5.28.3 40 | rollup: 41 | specifier: 2.79.1 42 | version: 2.79.1 43 | rollup-plugin-import-assets: 44 | specifier: 1.1.1 45 | version: 1.1.1(rollup@2.79.1) 46 | shx: 47 | specifier: 0.3.4 48 | version: 0.3.4 49 | tslib: 50 | specifier: 2.6.2 51 | version: 2.6.2 52 | typescript: 53 | specifier: 4.9.5 54 | version: 4.9.5 55 | 56 | packages: 57 | 58 | /@jridgewell/gen-mapping@0.3.3: 59 | resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} 60 | engines: {node: '>=6.0.0'} 61 | dependencies: 62 | '@jridgewell/set-array': 1.1.2 63 | '@jridgewell/sourcemap-codec': 1.4.15 64 | '@jridgewell/trace-mapping': 0.3.18 65 | dev: true 66 | 67 | /@jridgewell/resolve-uri@3.1.0: 68 | resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} 69 | engines: {node: '>=6.0.0'} 70 | dev: true 71 | 72 | /@jridgewell/set-array@1.1.2: 73 | resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} 74 | engines: {node: '>=6.0.0'} 75 | dev: true 76 | 77 | /@jridgewell/source-map@0.3.3: 78 | resolution: {integrity: sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==} 79 | dependencies: 80 | '@jridgewell/gen-mapping': 0.3.3 81 | '@jridgewell/trace-mapping': 0.3.18 82 | dev: true 83 | 84 | /@jridgewell/sourcemap-codec@1.4.14: 85 | resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} 86 | dev: true 87 | 88 | /@jridgewell/sourcemap-codec@1.4.15: 89 | resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} 90 | dev: true 91 | 92 | /@jridgewell/trace-mapping@0.3.18: 93 | resolution: {integrity: sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==} 94 | dependencies: 95 | '@jridgewell/resolve-uri': 3.1.0 96 | '@jridgewell/sourcemap-codec': 1.4.14 97 | dev: true 98 | 99 | /@rollup/plugin-commonjs@21.1.0(rollup@2.79.1): 100 | resolution: {integrity: sha512-6ZtHx3VHIp2ReNNDxHjuUml6ur+WcQ28N1yHgCQwsbNkQg2suhxGMDQGJOn/KuDxKtd1xuZP5xSTwBA4GQ8hbA==} 101 | engines: {node: '>= 8.0.0'} 102 | peerDependencies: 103 | rollup: ^2.38.3 104 | dependencies: 105 | '@rollup/pluginutils': 3.1.0(rollup@2.79.1) 106 | commondir: 1.0.1 107 | estree-walker: 2.0.2 108 | glob: 7.2.3 109 | is-reference: 1.2.1 110 | magic-string: 0.25.9 111 | resolve: 1.22.2 112 | rollup: 2.79.1 113 | dev: true 114 | 115 | /@rollup/plugin-json@4.1.0(rollup@2.79.1): 116 | resolution: {integrity: sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==} 117 | peerDependencies: 118 | rollup: ^1.20.0 || ^2.0.0 119 | dependencies: 120 | '@rollup/pluginutils': 3.1.0(rollup@2.79.1) 121 | rollup: 2.79.1 122 | dev: true 123 | 124 | /@rollup/plugin-node-resolve@13.3.0(rollup@2.79.1): 125 | resolution: {integrity: sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==} 126 | engines: {node: '>= 10.0.0'} 127 | peerDependencies: 128 | rollup: ^2.42.0 129 | dependencies: 130 | '@rollup/pluginutils': 3.1.0(rollup@2.79.1) 131 | '@types/resolve': 1.17.1 132 | deepmerge: 4.3.1 133 | is-builtin-module: 3.2.1 134 | is-module: 1.0.0 135 | resolve: 1.22.2 136 | rollup: 2.79.1 137 | dev: true 138 | 139 | /@rollup/plugin-replace@4.0.0(rollup@2.79.1): 140 | resolution: {integrity: sha512-+rumQFiaNac9y64OHtkHGmdjm7us9bo1PlbgQfdihQtuNxzjpaB064HbRnewUOggLQxVCCyINfStkgmBeQpv1g==} 141 | peerDependencies: 142 | rollup: ^1.20.0 || ^2.0.0 143 | dependencies: 144 | '@rollup/pluginutils': 3.1.0(rollup@2.79.1) 145 | magic-string: 0.25.9 146 | rollup: 2.79.1 147 | dev: true 148 | 149 | /@rollup/plugin-typescript@8.5.0(rollup@2.79.1)(tslib@2.6.2)(typescript@4.9.5): 150 | resolution: {integrity: sha512-wMv1/scv0m/rXx21wD2IsBbJFba8wGF3ErJIr6IKRfRj49S85Lszbxb4DCo8iILpluTjk2GAAu9CoZt4G3ppgQ==} 151 | engines: {node: '>=8.0.0'} 152 | peerDependencies: 153 | rollup: ^2.14.0 154 | tslib: '*' 155 | typescript: '>=3.7.0' 156 | peerDependenciesMeta: 157 | tslib: 158 | optional: true 159 | dependencies: 160 | '@rollup/pluginutils': 3.1.0(rollup@2.79.1) 161 | resolve: 1.22.2 162 | rollup: 2.79.1 163 | tslib: 2.6.2 164 | typescript: 4.9.5 165 | dev: true 166 | 167 | /@rollup/pluginutils@3.1.0(rollup@2.79.1): 168 | resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} 169 | engines: {node: '>= 8.0.0'} 170 | peerDependencies: 171 | rollup: ^1.20.0||^2.0.0 172 | dependencies: 173 | '@types/estree': 0.0.39 174 | estree-walker: 1.0.1 175 | picomatch: 2.3.1 176 | rollup: 2.79.1 177 | dev: true 178 | 179 | /@types/eslint-scope@3.7.4: 180 | resolution: {integrity: sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==} 181 | dependencies: 182 | '@types/eslint': 8.40.2 183 | '@types/estree': 1.0.1 184 | dev: true 185 | 186 | /@types/eslint@8.40.2: 187 | resolution: {integrity: sha512-PRVjQ4Eh9z9pmmtaq8nTjZjQwKFk7YIHIud3lRoKRBgUQjgjRmoGxxGEPXQkF+lH7QkHJRNr5F4aBgYCW0lqpQ==} 188 | dependencies: 189 | '@types/estree': 1.0.1 190 | '@types/json-schema': 7.0.12 191 | dev: true 192 | 193 | /@types/estree@0.0.39: 194 | resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} 195 | dev: true 196 | 197 | /@types/estree@1.0.1: 198 | resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==} 199 | dev: true 200 | 201 | /@types/json-schema@7.0.12: 202 | resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==} 203 | dev: true 204 | 205 | /@types/node@20.3.1: 206 | resolution: {integrity: sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg==} 207 | dev: true 208 | 209 | /@types/prop-types@15.7.5: 210 | resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==} 211 | dev: true 212 | 213 | /@types/react@16.14.60: 214 | resolution: {integrity: sha512-wIFmnczGsTcgwCBeIYOuy2mdXEiKZ5znU/jNOnMZPQyCcIxauMGWlX0TNG4lZ7NxRKj7YUIZRneJQSSdB2jKgg==} 215 | dependencies: 216 | '@types/prop-types': 15.7.5 217 | '@types/scheduler': 0.16.3 218 | csstype: 3.1.2 219 | dev: true 220 | 221 | /@types/resolve@1.17.1: 222 | resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} 223 | dependencies: 224 | '@types/node': 20.3.1 225 | dev: true 226 | 227 | /@types/scheduler@0.16.3: 228 | resolution: {integrity: sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==} 229 | dev: true 230 | 231 | /@types/webpack@5.28.3: 232 | resolution: {integrity: sha512-Hd0GBzpP0mO2ZKChw2V7flK45m01/2g9FalpMum2X66uouzG3P1vkxvOtLVzAWLna4N9h0s2sVjND9Slnlef8A==} 233 | dependencies: 234 | '@types/node': 20.3.1 235 | tapable: 2.2.1 236 | webpack: 5.88.0 237 | transitivePeerDependencies: 238 | - '@swc/core' 239 | - esbuild 240 | - uglify-js 241 | - webpack-cli 242 | dev: true 243 | 244 | /@webassemblyjs/ast@1.11.6: 245 | resolution: {integrity: sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==} 246 | dependencies: 247 | '@webassemblyjs/helper-numbers': 1.11.6 248 | '@webassemblyjs/helper-wasm-bytecode': 1.11.6 249 | dev: true 250 | 251 | /@webassemblyjs/floating-point-hex-parser@1.11.6: 252 | resolution: {integrity: sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==} 253 | dev: true 254 | 255 | /@webassemblyjs/helper-api-error@1.11.6: 256 | resolution: {integrity: sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==} 257 | dev: true 258 | 259 | /@webassemblyjs/helper-buffer@1.11.6: 260 | resolution: {integrity: sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==} 261 | dev: true 262 | 263 | /@webassemblyjs/helper-numbers@1.11.6: 264 | resolution: {integrity: sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==} 265 | dependencies: 266 | '@webassemblyjs/floating-point-hex-parser': 1.11.6 267 | '@webassemblyjs/helper-api-error': 1.11.6 268 | '@xtuc/long': 4.2.2 269 | dev: true 270 | 271 | /@webassemblyjs/helper-wasm-bytecode@1.11.6: 272 | resolution: {integrity: sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==} 273 | dev: true 274 | 275 | /@webassemblyjs/helper-wasm-section@1.11.6: 276 | resolution: {integrity: sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==} 277 | dependencies: 278 | '@webassemblyjs/ast': 1.11.6 279 | '@webassemblyjs/helper-buffer': 1.11.6 280 | '@webassemblyjs/helper-wasm-bytecode': 1.11.6 281 | '@webassemblyjs/wasm-gen': 1.11.6 282 | dev: true 283 | 284 | /@webassemblyjs/ieee754@1.11.6: 285 | resolution: {integrity: sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==} 286 | dependencies: 287 | '@xtuc/ieee754': 1.2.0 288 | dev: true 289 | 290 | /@webassemblyjs/leb128@1.11.6: 291 | resolution: {integrity: sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==} 292 | dependencies: 293 | '@xtuc/long': 4.2.2 294 | dev: true 295 | 296 | /@webassemblyjs/utf8@1.11.6: 297 | resolution: {integrity: sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==} 298 | dev: true 299 | 300 | /@webassemblyjs/wasm-edit@1.11.6: 301 | resolution: {integrity: sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==} 302 | dependencies: 303 | '@webassemblyjs/ast': 1.11.6 304 | '@webassemblyjs/helper-buffer': 1.11.6 305 | '@webassemblyjs/helper-wasm-bytecode': 1.11.6 306 | '@webassemblyjs/helper-wasm-section': 1.11.6 307 | '@webassemblyjs/wasm-gen': 1.11.6 308 | '@webassemblyjs/wasm-opt': 1.11.6 309 | '@webassemblyjs/wasm-parser': 1.11.6 310 | '@webassemblyjs/wast-printer': 1.11.6 311 | dev: true 312 | 313 | /@webassemblyjs/wasm-gen@1.11.6: 314 | resolution: {integrity: sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==} 315 | dependencies: 316 | '@webassemblyjs/ast': 1.11.6 317 | '@webassemblyjs/helper-wasm-bytecode': 1.11.6 318 | '@webassemblyjs/ieee754': 1.11.6 319 | '@webassemblyjs/leb128': 1.11.6 320 | '@webassemblyjs/utf8': 1.11.6 321 | dev: true 322 | 323 | /@webassemblyjs/wasm-opt@1.11.6: 324 | resolution: {integrity: sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==} 325 | dependencies: 326 | '@webassemblyjs/ast': 1.11.6 327 | '@webassemblyjs/helper-buffer': 1.11.6 328 | '@webassemblyjs/wasm-gen': 1.11.6 329 | '@webassemblyjs/wasm-parser': 1.11.6 330 | dev: true 331 | 332 | /@webassemblyjs/wasm-parser@1.11.6: 333 | resolution: {integrity: sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==} 334 | dependencies: 335 | '@webassemblyjs/ast': 1.11.6 336 | '@webassemblyjs/helper-api-error': 1.11.6 337 | '@webassemblyjs/helper-wasm-bytecode': 1.11.6 338 | '@webassemblyjs/ieee754': 1.11.6 339 | '@webassemblyjs/leb128': 1.11.6 340 | '@webassemblyjs/utf8': 1.11.6 341 | dev: true 342 | 343 | /@webassemblyjs/wast-printer@1.11.6: 344 | resolution: {integrity: sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==} 345 | dependencies: 346 | '@webassemblyjs/ast': 1.11.6 347 | '@xtuc/long': 4.2.2 348 | dev: true 349 | 350 | /@xtuc/ieee754@1.2.0: 351 | resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} 352 | dev: true 353 | 354 | /@xtuc/long@4.2.2: 355 | resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==} 356 | dev: true 357 | 358 | /acorn-import-assertions@1.9.0(acorn@8.9.0): 359 | resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==} 360 | peerDependencies: 361 | acorn: ^8 362 | dependencies: 363 | acorn: 8.9.0 364 | dev: true 365 | 366 | /acorn@8.9.0: 367 | resolution: {integrity: sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==} 368 | engines: {node: '>=0.4.0'} 369 | hasBin: true 370 | dev: true 371 | 372 | /ajv-keywords@3.5.2(ajv@6.12.6): 373 | resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} 374 | peerDependencies: 375 | ajv: ^6.9.1 376 | dependencies: 377 | ajv: 6.12.6 378 | dev: true 379 | 380 | /ajv@6.12.6: 381 | resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} 382 | dependencies: 383 | fast-deep-equal: 3.1.3 384 | fast-json-stable-stringify: 2.1.0 385 | json-schema-traverse: 0.4.1 386 | uri-js: 4.4.1 387 | dev: true 388 | 389 | /balanced-match@1.0.2: 390 | resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} 391 | dev: true 392 | 393 | /brace-expansion@1.1.11: 394 | resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} 395 | dependencies: 396 | balanced-match: 1.0.2 397 | concat-map: 0.0.1 398 | dev: true 399 | 400 | /browserslist@4.21.9: 401 | resolution: {integrity: sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg==} 402 | engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} 403 | hasBin: true 404 | dependencies: 405 | caniuse-lite: 1.0.30001508 406 | electron-to-chromium: 1.4.440 407 | node-releases: 2.0.12 408 | update-browserslist-db: 1.0.11(browserslist@4.21.9) 409 | dev: true 410 | 411 | /buffer-from@1.1.2: 412 | resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} 413 | dev: true 414 | 415 | /builtin-modules@3.3.0: 416 | resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} 417 | engines: {node: '>=6'} 418 | dev: true 419 | 420 | /caniuse-lite@1.0.30001508: 421 | resolution: {integrity: sha512-sdQZOJdmt3GJs1UMNpCCCyeuS2IEGLXnHyAo9yIO5JJDjbjoVRij4M1qep6P6gFpptD1PqIYgzM+gwJbOi92mw==} 422 | dev: true 423 | 424 | /chrome-trace-event@1.0.3: 425 | resolution: {integrity: sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==} 426 | engines: {node: '>=6.0'} 427 | dev: true 428 | 429 | /commander@2.20.3: 430 | resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} 431 | dev: true 432 | 433 | /commondir@1.0.1: 434 | resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} 435 | dev: true 436 | 437 | /concat-map@0.0.1: 438 | resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} 439 | dev: true 440 | 441 | /csstype@3.1.2: 442 | resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} 443 | dev: true 444 | 445 | /decky-frontend-lib@3.25.0: 446 | resolution: {integrity: sha512-2lBoHS2AIRmuluq/bGdHBz+uyToQE7k3K/vDq1MQbDZ4eC+8CGDuh2T8yZOj3D0yjGP2MdikNNAWPA9Z5l2qDg==} 447 | dev: false 448 | 449 | /deepmerge@4.3.1: 450 | resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} 451 | engines: {node: '>=0.10.0'} 452 | dev: true 453 | 454 | /electron-to-chromium@1.4.440: 455 | resolution: {integrity: sha512-r6dCgNpRhPwiWlxbHzZQ/d9swfPaEJGi8ekqRBwQYaR3WmA5VkqQfBWSDDjuJU1ntO+W9tHx8OHV/96Q8e0dVw==} 456 | dev: true 457 | 458 | /enhanced-resolve@5.15.0: 459 | resolution: {integrity: sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==} 460 | engines: {node: '>=10.13.0'} 461 | dependencies: 462 | graceful-fs: 4.2.11 463 | tapable: 2.2.1 464 | dev: true 465 | 466 | /es-module-lexer@1.3.0: 467 | resolution: {integrity: sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA==} 468 | dev: true 469 | 470 | /escalade@3.1.1: 471 | resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} 472 | engines: {node: '>=6'} 473 | dev: true 474 | 475 | /eslint-scope@5.1.1: 476 | resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} 477 | engines: {node: '>=8.0.0'} 478 | dependencies: 479 | esrecurse: 4.3.0 480 | estraverse: 4.3.0 481 | dev: true 482 | 483 | /esrecurse@4.3.0: 484 | resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} 485 | engines: {node: '>=4.0'} 486 | dependencies: 487 | estraverse: 5.3.0 488 | dev: true 489 | 490 | /estraverse@4.3.0: 491 | resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==} 492 | engines: {node: '>=4.0'} 493 | dev: true 494 | 495 | /estraverse@5.3.0: 496 | resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} 497 | engines: {node: '>=4.0'} 498 | dev: true 499 | 500 | /estree-walker@0.6.1: 501 | resolution: {integrity: sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==} 502 | dev: true 503 | 504 | /estree-walker@1.0.1: 505 | resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} 506 | dev: true 507 | 508 | /estree-walker@2.0.2: 509 | resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} 510 | dev: true 511 | 512 | /events@3.3.0: 513 | resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} 514 | engines: {node: '>=0.8.x'} 515 | dev: true 516 | 517 | /fast-deep-equal@3.1.3: 518 | resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} 519 | dev: true 520 | 521 | /fast-json-stable-stringify@2.1.0: 522 | resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} 523 | dev: true 524 | 525 | /fs.realpath@1.0.0: 526 | resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} 527 | dev: true 528 | 529 | /fsevents@2.3.3: 530 | resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} 531 | engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} 532 | os: [darwin] 533 | requiresBuild: true 534 | dev: true 535 | optional: true 536 | 537 | /function-bind@1.1.1: 538 | resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} 539 | dev: true 540 | 541 | /glob-to-regexp@0.4.1: 542 | resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} 543 | dev: true 544 | 545 | /glob@7.2.3: 546 | resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} 547 | dependencies: 548 | fs.realpath: 1.0.0 549 | inflight: 1.0.6 550 | inherits: 2.0.4 551 | minimatch: 3.1.2 552 | once: 1.4.0 553 | path-is-absolute: 1.0.1 554 | dev: true 555 | 556 | /graceful-fs@4.2.11: 557 | resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} 558 | dev: true 559 | 560 | /has-flag@4.0.0: 561 | resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} 562 | engines: {node: '>=8'} 563 | dev: true 564 | 565 | /has@1.0.3: 566 | resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==} 567 | engines: {node: '>= 0.4.0'} 568 | dependencies: 569 | function-bind: 1.1.1 570 | dev: true 571 | 572 | /inflight@1.0.6: 573 | resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} 574 | dependencies: 575 | once: 1.4.0 576 | wrappy: 1.0.2 577 | dev: true 578 | 579 | /inherits@2.0.4: 580 | resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} 581 | dev: true 582 | 583 | /interpret@1.4.0: 584 | resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==} 585 | engines: {node: '>= 0.10'} 586 | dev: true 587 | 588 | /is-builtin-module@3.2.1: 589 | resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==} 590 | engines: {node: '>=6'} 591 | dependencies: 592 | builtin-modules: 3.3.0 593 | dev: true 594 | 595 | /is-core-module@2.12.1: 596 | resolution: {integrity: sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==} 597 | dependencies: 598 | has: 1.0.3 599 | dev: true 600 | 601 | /is-module@1.0.0: 602 | resolution: {integrity: sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==} 603 | dev: true 604 | 605 | /is-reference@1.2.1: 606 | resolution: {integrity: sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==} 607 | dependencies: 608 | '@types/estree': 1.0.1 609 | dev: true 610 | 611 | /jest-worker@27.5.1: 612 | resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} 613 | engines: {node: '>= 10.13.0'} 614 | dependencies: 615 | '@types/node': 20.3.1 616 | merge-stream: 2.0.0 617 | supports-color: 8.1.1 618 | dev: true 619 | 620 | /json-parse-even-better-errors@2.3.1: 621 | resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} 622 | dev: true 623 | 624 | /json-schema-traverse@0.4.1: 625 | resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} 626 | dev: true 627 | 628 | /loader-runner@4.3.0: 629 | resolution: {integrity: sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==} 630 | engines: {node: '>=6.11.5'} 631 | dev: true 632 | 633 | /magic-string@0.25.9: 634 | resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} 635 | dependencies: 636 | sourcemap-codec: 1.4.8 637 | dev: true 638 | 639 | /merge-stream@2.0.0: 640 | resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} 641 | dev: true 642 | 643 | /mime-db@1.52.0: 644 | resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} 645 | engines: {node: '>= 0.6'} 646 | dev: true 647 | 648 | /mime-types@2.1.35: 649 | resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} 650 | engines: {node: '>= 0.6'} 651 | dependencies: 652 | mime-db: 1.52.0 653 | dev: true 654 | 655 | /minimatch@3.1.2: 656 | resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} 657 | dependencies: 658 | brace-expansion: 1.1.11 659 | dev: true 660 | 661 | /minimist@1.2.8: 662 | resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} 663 | dev: true 664 | 665 | /neo-async@2.6.2: 666 | resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} 667 | dev: true 668 | 669 | /node-releases@2.0.12: 670 | resolution: {integrity: sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==} 671 | dev: true 672 | 673 | /once@1.4.0: 674 | resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} 675 | dependencies: 676 | wrappy: 1.0.2 677 | dev: true 678 | 679 | /path-is-absolute@1.0.1: 680 | resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} 681 | engines: {node: '>=0.10.0'} 682 | dev: true 683 | 684 | /path-parse@1.0.7: 685 | resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} 686 | dev: true 687 | 688 | /picocolors@1.0.0: 689 | resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} 690 | dev: true 691 | 692 | /picomatch@2.3.1: 693 | resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} 694 | engines: {node: '>=8.6'} 695 | dev: true 696 | 697 | /punycode@2.3.0: 698 | resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} 699 | engines: {node: '>=6'} 700 | dev: true 701 | 702 | /randombytes@2.1.0: 703 | resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} 704 | dependencies: 705 | safe-buffer: 5.2.1 706 | dev: true 707 | 708 | /react-icons@4.11.0: 709 | resolution: {integrity: sha512-V+4khzYcE5EBk/BvcuYRq6V/osf11ODUM2J8hg2FDSswRrGvqiYUYPRy4OdrWaQOBj4NcpJfmHZLNaD+VH0TyA==} 710 | peerDependencies: 711 | react: '*' 712 | peerDependenciesMeta: 713 | react: 714 | optional: true 715 | dev: false 716 | 717 | /rechoir@0.6.2: 718 | resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==} 719 | engines: {node: '>= 0.10'} 720 | dependencies: 721 | resolve: 1.22.2 722 | dev: true 723 | 724 | /reflect-metadata@0.1.13: 725 | resolution: {integrity: sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==} 726 | dev: false 727 | 728 | /resolve@1.22.2: 729 | resolution: {integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==} 730 | hasBin: true 731 | dependencies: 732 | is-core-module: 2.12.1 733 | path-parse: 1.0.7 734 | supports-preserve-symlinks-flag: 1.0.0 735 | dev: true 736 | 737 | /rollup-plugin-import-assets@1.1.1(rollup@2.79.1): 738 | resolution: {integrity: sha512-u5zJwOjguTf2N+wETq2weNKGvNkuVc1UX/fPgg215p5xPvGOaI6/BTc024E9brvFjSQTfIYqgvwogQdipknu1g==} 739 | peerDependencies: 740 | rollup: '>=1.9.0' 741 | dependencies: 742 | rollup: 2.79.1 743 | rollup-pluginutils: 2.8.2 744 | url-join: 4.0.1 745 | dev: true 746 | 747 | /rollup-pluginutils@2.8.2: 748 | resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} 749 | dependencies: 750 | estree-walker: 0.6.1 751 | dev: true 752 | 753 | /rollup@2.79.1: 754 | resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} 755 | engines: {node: '>=10.0.0'} 756 | hasBin: true 757 | optionalDependencies: 758 | fsevents: 2.3.3 759 | dev: true 760 | 761 | /safe-buffer@5.2.1: 762 | resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} 763 | dev: true 764 | 765 | /schema-utils@3.3.0: 766 | resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} 767 | engines: {node: '>= 10.13.0'} 768 | dependencies: 769 | '@types/json-schema': 7.0.12 770 | ajv: 6.12.6 771 | ajv-keywords: 3.5.2(ajv@6.12.6) 772 | dev: true 773 | 774 | /serialize-javascript@6.0.1: 775 | resolution: {integrity: sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==} 776 | dependencies: 777 | randombytes: 2.1.0 778 | dev: true 779 | 780 | /shelljs@0.8.5: 781 | resolution: {integrity: sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==} 782 | engines: {node: '>=4'} 783 | hasBin: true 784 | dependencies: 785 | glob: 7.2.3 786 | interpret: 1.4.0 787 | rechoir: 0.6.2 788 | dev: true 789 | 790 | /shx@0.3.4: 791 | resolution: {integrity: sha512-N6A9MLVqjxZYcVn8hLmtneQWIJtp8IKzMP4eMnx+nqkvXoqinUPCbUFLp2UcWTEIUONhlk0ewxr/jaVGlc+J+g==} 792 | engines: {node: '>=6'} 793 | hasBin: true 794 | dependencies: 795 | minimist: 1.2.8 796 | shelljs: 0.8.5 797 | dev: true 798 | 799 | /source-map-support@0.5.21: 800 | resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} 801 | dependencies: 802 | buffer-from: 1.1.2 803 | source-map: 0.6.1 804 | dev: true 805 | 806 | /source-map@0.6.1: 807 | resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} 808 | engines: {node: '>=0.10.0'} 809 | dev: true 810 | 811 | /sourcemap-codec@1.4.8: 812 | resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} 813 | deprecated: Please use @jridgewell/sourcemap-codec instead 814 | dev: true 815 | 816 | /supports-color@8.1.1: 817 | resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==} 818 | engines: {node: '>=10'} 819 | dependencies: 820 | has-flag: 4.0.0 821 | dev: true 822 | 823 | /supports-preserve-symlinks-flag@1.0.0: 824 | resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} 825 | engines: {node: '>= 0.4'} 826 | dev: true 827 | 828 | /tapable@2.2.1: 829 | resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} 830 | engines: {node: '>=6'} 831 | dev: true 832 | 833 | /terser-webpack-plugin@5.3.9(webpack@5.88.0): 834 | resolution: {integrity: sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==} 835 | engines: {node: '>= 10.13.0'} 836 | peerDependencies: 837 | '@swc/core': '*' 838 | esbuild: '*' 839 | uglify-js: '*' 840 | webpack: ^5.1.0 841 | peerDependenciesMeta: 842 | '@swc/core': 843 | optional: true 844 | esbuild: 845 | optional: true 846 | uglify-js: 847 | optional: true 848 | dependencies: 849 | '@jridgewell/trace-mapping': 0.3.18 850 | jest-worker: 27.5.1 851 | schema-utils: 3.3.0 852 | serialize-javascript: 6.0.1 853 | terser: 5.18.1 854 | webpack: 5.88.0 855 | dev: true 856 | 857 | /terser@5.18.1: 858 | resolution: {integrity: sha512-j1n0Ao919h/Ai5r43VAnfV/7azUYW43GPxK7qSATzrsERfW7+y2QW9Cp9ufnRF5CQUWbnLSo7UJokSWCqg4tsQ==} 859 | engines: {node: '>=10'} 860 | hasBin: true 861 | dependencies: 862 | '@jridgewell/source-map': 0.3.3 863 | acorn: 8.9.0 864 | commander: 2.20.3 865 | source-map-support: 0.5.21 866 | dev: true 867 | 868 | /tslib@2.6.2: 869 | resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} 870 | 871 | /typescript-json-serializer@6.0.1: 872 | resolution: {integrity: sha512-95UQOeV3V+WIx5+7dBZd6/pN+cQSsGXxIdDvPmYhkHYH6VrIgQ3DK+IM3ixKVjFwvch8LnWhIY3F/Zhp4bNfSA==} 873 | dependencies: 874 | reflect-metadata: 0.1.13 875 | tslib: 2.6.2 876 | dev: false 877 | 878 | /typescript@4.9.5: 879 | resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} 880 | engines: {node: '>=4.2.0'} 881 | hasBin: true 882 | dev: true 883 | 884 | /update-browserslist-db@1.0.11(browserslist@4.21.9): 885 | resolution: {integrity: sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==} 886 | hasBin: true 887 | peerDependencies: 888 | browserslist: '>= 4.21.0' 889 | dependencies: 890 | browserslist: 4.21.9 891 | escalade: 3.1.1 892 | picocolors: 1.0.0 893 | dev: true 894 | 895 | /uri-js@4.4.1: 896 | resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} 897 | dependencies: 898 | punycode: 2.3.0 899 | dev: true 900 | 901 | /url-join@4.0.1: 902 | resolution: {integrity: sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==} 903 | dev: true 904 | 905 | /watchpack@2.4.0: 906 | resolution: {integrity: sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==} 907 | engines: {node: '>=10.13.0'} 908 | dependencies: 909 | glob-to-regexp: 0.4.1 910 | graceful-fs: 4.2.11 911 | dev: true 912 | 913 | /webpack-sources@3.2.3: 914 | resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==} 915 | engines: {node: '>=10.13.0'} 916 | dev: true 917 | 918 | /webpack@5.88.0: 919 | resolution: {integrity: sha512-O3jDhG5e44qIBSi/P6KpcCcH7HD+nYIHVBhdWFxcLOcIGN8zGo5nqF3BjyNCxIh4p1vFdNnreZv2h2KkoAw3lw==} 920 | engines: {node: '>=10.13.0'} 921 | hasBin: true 922 | peerDependencies: 923 | webpack-cli: '*' 924 | peerDependenciesMeta: 925 | webpack-cli: 926 | optional: true 927 | dependencies: 928 | '@types/eslint-scope': 3.7.4 929 | '@types/estree': 1.0.1 930 | '@webassemblyjs/ast': 1.11.6 931 | '@webassemblyjs/wasm-edit': 1.11.6 932 | '@webassemblyjs/wasm-parser': 1.11.6 933 | acorn: 8.9.0 934 | acorn-import-assertions: 1.9.0(acorn@8.9.0) 935 | browserslist: 4.21.9 936 | chrome-trace-event: 1.0.3 937 | enhanced-resolve: 5.15.0 938 | es-module-lexer: 1.3.0 939 | eslint-scope: 5.1.1 940 | events: 3.3.0 941 | glob-to-regexp: 0.4.1 942 | graceful-fs: 4.2.11 943 | json-parse-even-better-errors: 2.3.1 944 | loader-runner: 4.3.0 945 | mime-types: 2.1.35 946 | neo-async: 2.6.2 947 | schema-utils: 3.3.0 948 | tapable: 2.2.1 949 | terser-webpack-plugin: 5.3.9(webpack@5.88.0) 950 | watchpack: 2.4.0 951 | webpack-sources: 3.2.3 952 | transitivePeerDependencies: 953 | - '@swc/core' 954 | - esbuild 955 | - uglify-js 956 | dev: true 957 | 958 | /wrappy@1.0.2: 959 | resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} 960 | dev: true 961 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": ["config:base", "config:js-app"] 4 | } 5 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | import commonjs from "@rollup/plugin-commonjs"; 2 | import json from "@rollup/plugin-json"; 3 | import { nodeResolve } from "@rollup/plugin-node-resolve"; 4 | import replace from "@rollup/plugin-replace"; 5 | import typescript from "@rollup/plugin-typescript"; 6 | import { defineConfig } from "rollup"; 7 | import importAssets from "rollup-plugin-import-assets"; 8 | 9 | import { name } from "./plugin.json"; 10 | 11 | export default defineConfig({ 12 | input: "./src/index.tsx", 13 | plugins: [ 14 | commonjs(), 15 | nodeResolve(), 16 | typescript(), 17 | json(), 18 | replace({ 19 | preventAssignment: false, 20 | "process.env.NODE_ENV": JSON.stringify("production"), 21 | }), 22 | importAssets({ 23 | publicPath: `http://127.0.0.1:1337/plugins/${name}/`, 24 | }), 25 | ], 26 | context: "window", 27 | external: ["react", "react-dom", "decky-frontend-lib"], 28 | output: { 29 | file: "dist/index.js", 30 | globals: { 31 | react: "SP_REACT", 32 | "react-dom": "SP_REACTDOM", 33 | "decky-frontend-lib": "DFL", 34 | }, 35 | format: "iife", 36 | exports: "default", 37 | }, 38 | }); 39 | -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- 1 | /*! 2 | * vibrantDeck - Adjust color vibrancy of Steam Deck output 3 | * Copyright (C) 2022 Sefa Eyeoglu (https://scrumplex.net) 4 | * 5 | * This program is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | import { 20 | definePlugin, 21 | PanelSection, 22 | PanelSectionRow, 23 | SliderField, 24 | ServerAPI, 25 | ToggleField, 26 | staticClasses, 27 | } from "decky-frontend-lib"; 28 | import { VFC, useState, useEffect } from "react"; 29 | import { FaEyeDropper } from "react-icons/fa"; 30 | import { 31 | loadSettingsFromLocalStorage, 32 | Settings, 33 | saveSettingsToLocalStorage, 34 | } from "./settings"; 35 | import { RunningApps, Backend, DEFAULT_APP } from "./util"; 36 | 37 | let settings: Settings; 38 | 39 | const Content: VFC<{ 40 | applyFn: (appId: string) => void; 41 | resetFn: () => void; 42 | listenModeFn: (enabled: boolean) => void; 43 | }> = ({ applyFn, resetFn, listenModeFn }) => { 44 | const [initialized, setInitialized] = useState(false); 45 | 46 | const [currentEnabled, setCurrentEnabled] = useState(true); 47 | const [currentAppOverride, setCurrentAppOverride] = useState(false); 48 | const [currentAppOverridable, setCurrentAppOverridable] = 49 | useState(false); 50 | const [currentTargetVibrancy, setCurrentTargetVibrancy] = 51 | useState(100); 52 | 53 | const refresh = () => { 54 | // prevent updates while we are reloading 55 | setInitialized(false); 56 | 57 | setCurrentEnabled(settings.enabled); 58 | 59 | const activeApp = RunningApps.active(); 60 | // does active app have a saved setting 61 | setCurrentAppOverride(settings.perApp[activeApp]?.hasSettings() || false); 62 | setCurrentAppOverridable(activeApp != DEFAULT_APP); 63 | 64 | // get configured vibrancy for current app (also Deck UI!) 65 | setCurrentTargetVibrancy(settings.appVibrancy(activeApp)); 66 | 67 | setInitialized(true); 68 | }; 69 | 70 | useEffect(() => { 71 | if (!initialized || !currentEnabled) return; 72 | 73 | let activeApp = RunningApps.active(); 74 | if (currentAppOverride && currentAppOverridable) { 75 | console.log( 76 | `Setting app ${activeApp} to vibrancy ${currentTargetVibrancy}`, 77 | ); 78 | } else { 79 | console.log(`Setting global to vibrancy ${currentTargetVibrancy}`); 80 | activeApp = DEFAULT_APP; 81 | } 82 | settings.ensureApp(activeApp).vibrancy = currentTargetVibrancy; 83 | applyFn(RunningApps.active()); 84 | 85 | saveSettingsToLocalStorage(settings); 86 | }, [currentTargetVibrancy, currentEnabled, initialized]); 87 | 88 | useEffect(() => { 89 | if (!initialized || !currentEnabled) return; 90 | applyFn(RunningApps.active()); 91 | 92 | saveSettingsToLocalStorage(settings); 93 | }, [currentEnabled, initialized]); 94 | 95 | useEffect(() => { 96 | if (!initialized || !currentEnabled) return; 97 | 98 | const activeApp = RunningApps.active(); 99 | if (activeApp == DEFAULT_APP) return; 100 | 101 | console.log(`Setting app ${activeApp} to override ${currentAppOverride}`); 102 | 103 | if (!currentAppOverride) { 104 | settings.ensureApp(activeApp).vibrancy = undefined; 105 | setCurrentTargetVibrancy(settings.appVibrancy(DEFAULT_APP)); 106 | } 107 | saveSettingsToLocalStorage(settings); 108 | }, [currentAppOverride, currentEnabled, initialized]); 109 | 110 | useEffect(() => { 111 | if (!initialized) return; 112 | 113 | listenModeFn(currentEnabled); 114 | 115 | if (!currentEnabled) resetFn(); 116 | 117 | settings.enabled = currentEnabled; 118 | saveSettingsToLocalStorage(settings); 119 | }, [currentEnabled, initialized]); 120 | 121 | useEffect(() => { 122 | refresh(); 123 | }, []); 124 | 125 | return ( 126 |
127 | 128 | 129 | { 133 | setCurrentEnabled(enabled); 134 | }} 135 | /> 136 | 137 | 138 | {currentEnabled && ( 139 | 140 | 141 | { 153 | setCurrentAppOverride(override); 154 | }} 155 | /> 156 | 157 | 158 | { 167 | setCurrentTargetVibrancy(vibrancy); 168 | }} 169 | /> 170 | 171 | 172 | )} 173 |
174 | ); 175 | }; 176 | 177 | export default definePlugin((serverAPI: ServerAPI) => { 178 | // load settings 179 | settings = loadSettingsFromLocalStorage(); 180 | 181 | const backend = new Backend(serverAPI); 182 | const runningApps = new RunningApps(); 183 | 184 | const applySettings = (appId: string) => { 185 | const vibrancy = settings.appVibrancy(appId); 186 | backend.applyVibrancy(vibrancy); 187 | }; 188 | 189 | const resetSettings = () => { 190 | // NOTE: This code ignores night mode as we don't have a good way to interface with it. 191 | console.log("Resetting color values to defaults"); 192 | backend.applyVibrancy(100); 193 | }; 194 | 195 | const listenForRunningApps = (enabled: boolean) => { 196 | if (enabled) { 197 | console.log("Listening for actively running apps"); 198 | runningApps.register(); 199 | } else { 200 | console.log("Stopped listening for actively running apps"); 201 | runningApps.unregister(); 202 | } 203 | }; 204 | 205 | // apply initially 206 | if (settings.enabled) { 207 | applySettings(RunningApps.active()); 208 | } 209 | 210 | runningApps.listenActiveChange(() => applySettings(RunningApps.active())); 211 | listenForRunningApps(settings.enabled); 212 | 213 | return { 214 | title:
vibrantDeck
, 215 | content: ( 216 | 221 | ), 222 | icon: , 223 | onDismount() { 224 | runningApps.unregister(); 225 | // reset color settings to default values 226 | resetSettings(); 227 | }, 228 | }; 229 | }); 230 | -------------------------------------------------------------------------------- /src/settings.ts: -------------------------------------------------------------------------------- 1 | import { 2 | JsonObject, 3 | JsonProperty, 4 | JsonSerializer, 5 | } from "typescript-json-serializer"; 6 | import { DEFAULT_APP } from "./util"; 7 | 8 | const SETTINGS_KEY = "vibrantDeck-v2"; 9 | 10 | const serializer = new JsonSerializer(); 11 | 12 | @JsonObject() 13 | export class AppSetting { 14 | @JsonProperty() 15 | vibrancy?: number; 16 | 17 | hasSettings(): boolean { 18 | if (this.vibrancy != undefined) return true; 19 | return false; 20 | } 21 | } 22 | 23 | @JsonObject() 24 | export class Settings { 25 | @JsonProperty() 26 | enabled: boolean = true; 27 | @JsonProperty({ dataStructure: "dictionary", type: AppSetting }) 28 | perApp: { [appId: string]: AppSetting } = {}; 29 | @JsonProperty() 30 | advancedSettingsUI: boolean = true; 31 | 32 | ensureApp(appId: string): AppSetting { 33 | if (!(appId in this.perApp)) { 34 | this.perApp[appId] = new AppSetting(); 35 | } 36 | return this.perApp[appId]; 37 | } 38 | 39 | appVibrancy(appId: string): number { 40 | // app vibrancy or global saturation or fallback 100 41 | if (this.perApp[appId]?.vibrancy != undefined) 42 | return this.perApp[appId].vibrancy!!; 43 | if (this.perApp[DEFAULT_APP]?.vibrancy != undefined) 44 | return this.perApp[DEFAULT_APP].vibrancy!!; 45 | return 100; 46 | } 47 | } 48 | 49 | export function loadSettingsFromLocalStorage(): Settings { 50 | const settingsString = localStorage.getItem(SETTINGS_KEY) || "{}"; 51 | const settingsJson = JSON.parse(settingsString); 52 | const settings = serializer.deserializeObject(settingsJson, Settings); 53 | return settings || new Settings(); 54 | } 55 | 56 | export function saveSettingsToLocalStorage(settings: Settings) { 57 | const settingsJson = serializer.serializeObject(settings) || {}; 58 | const settingsString = JSON.stringify(settingsJson); 59 | localStorage.setItem(SETTINGS_KEY, settingsString); 60 | } 61 | -------------------------------------------------------------------------------- /src/util.ts: -------------------------------------------------------------------------------- 1 | import { Router, ServerAPI } from "decky-frontend-lib"; 2 | 3 | interface VibrancyArgs { 4 | vibrancy: number; 5 | } 6 | 7 | type ActiveAppChangedHandler = (newAppId: string, oldAppId: string) => void; 8 | type UnregisterFn = () => void; 9 | 10 | export const DEFAULT_APP = "0"; 11 | 12 | export class RunningApps { 13 | private listeners: ActiveAppChangedHandler[] = []; 14 | private lastAppId: string = ""; 15 | private intervalId: any; 16 | 17 | private pollActive() { 18 | const newApp = RunningApps.active(); 19 | if (this.lastAppId != newApp) { 20 | this.listeners.forEach((h) => h(newApp, this.lastAppId)); 21 | } 22 | this.lastAppId = newApp; 23 | } 24 | 25 | register() { 26 | if (this.intervalId == undefined) 27 | this.intervalId = setInterval(() => this.pollActive(), 100); 28 | } 29 | 30 | unregister() { 31 | if (this.intervalId != undefined) clearInterval(this.intervalId); 32 | this.intervalId = undefined; 33 | } 34 | 35 | listenActiveChange(fn: ActiveAppChangedHandler): UnregisterFn { 36 | const idx = this.listeners.push(fn) - 1; 37 | return () => { 38 | this.listeners.splice(idx, 1); 39 | }; 40 | } 41 | 42 | static active() { 43 | return Router.MainRunningApp?.appid || DEFAULT_APP; 44 | } 45 | } 46 | 47 | export class Backend { 48 | private serverAPI: ServerAPI; 49 | 50 | constructor(serverAPI: ServerAPI) { 51 | this.serverAPI = serverAPI; 52 | } 53 | 54 | applyVibrancy(vibrancy: number) { 55 | console.log("Applying vibrancy " + vibrancy.toString()); 56 | this.serverAPI.callPluginMethod("set_vibrancy", { 57 | vibrancy: vibrancy / 200.0, // Gamescope wants 0.0..1.0, where 0.5 is sRGB, let's map our 0..200 to that 58 | }); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "outDir": "dist", 4 | "module": "ESNext", 5 | "target": "ES2020", 6 | "jsx": "react", 7 | "jsxFactory": "window.SP_REACT.createElement", 8 | "jsxFragmentFactory": "window.SP_REACT.Fragment", 9 | "declaration": false, 10 | "moduleResolution": "node", 11 | "noUnusedLocals": true, 12 | "noUnusedParameters": true, 13 | "esModuleInterop": true, 14 | "noImplicitReturns": true, 15 | "noImplicitThis": true, 16 | "noImplicitAny": true, 17 | "strict": true, 18 | "suppressImplicitAnyIndexErrors": true, 19 | "allowSyntheticDefaultImports": true, 20 | "skipLibCheck": true, 21 | "emitDecoratorMetadata": true, 22 | "experimentalDecorators": true 23 | }, 24 | "include": ["src"], 25 | "exclude": ["node_modules"] 26 | } 27 | --------------------------------------------------------------------------------