mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-11 19:06:20 +00:00
Compare commits
47 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1654d39ca | ||
|
|
a698934823 | ||
|
|
0ec92bad85 | ||
|
|
0bb814e763 | ||
|
|
621576db14 | ||
|
|
80969ca029 | ||
|
|
26fc54054f | ||
|
|
8a1fc99fb5 | ||
|
|
e6cc5b36c5 | ||
|
|
6c4c24c166 | ||
|
|
9466ed692b | ||
|
|
5ace3d9996 | ||
|
|
c4642df353 | ||
|
|
aca7fbd1e0 | ||
|
|
90f4d50b7f | ||
|
|
66b23f39a6 | ||
|
|
4d22dab887 | ||
|
|
bc93b05c4e | ||
|
|
60a01908c2 | ||
|
|
5879e6d327 | ||
|
|
88cbfe0bf1 | ||
|
|
74c7d543c0 | ||
|
|
dc81a65c7a | ||
|
|
3358efce1d | ||
|
|
2d71af03d0 | ||
|
|
aae33a6121 | ||
|
|
cc3fe4608d | ||
|
|
38de3595c4 | ||
|
|
4330b04c1f | ||
|
|
70aa906110 | ||
|
|
55851a4cd0 | ||
|
|
3c738925bc | ||
|
|
3dbbf4c85d | ||
|
|
a3f7709adf | ||
|
|
496b71ee7b | ||
|
|
c2aad26e3f | ||
|
|
b84522847a | ||
|
|
231dea143a | ||
|
|
659d48548d | ||
|
|
7dc4524fa0 | ||
|
|
9b2bdaf159 | ||
|
|
d3cc1db2f9 | ||
|
|
34215b4126 | ||
|
|
5fc23030d4 | ||
|
|
4fc23521c1 | ||
|
|
cb3e39729a | ||
|
|
5219f53655 |
9
.github/dependabot.yml
vendored
Normal file
9
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "npm"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
|
target-branch: "dev"
|
||||||
|
labels:
|
||||||
|
- "dependencies"
|
||||||
BIN
.github/noisedash-screenshot-1.jpg
vendored
BIN
.github/noisedash-screenshot-1.jpg
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 78 KiB |
BIN
.github/noisedash-screenshot-4.png
vendored
Normal file
BIN
.github/noisedash-screenshot-4.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
10
.github/workflows/docker-image.yml
vendored
10
.github/workflows/docker-image.yml
vendored
@@ -1,11 +1,15 @@
|
|||||||
name: Docker Image CI
|
name: Docker Image CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
branches: [ main ]
|
types:
|
||||||
|
- labeled
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildx:
|
buildx:
|
||||||
|
if: ${{ github.event.label.name == 'run-workflow' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
@@ -31,4 +35,4 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: noisedash/noisedash:latest,noisedash/noisedash:${{ github.ref_name }}
|
tags: noisedash/noisedash:latest,noisedash/noisedash:${{ github.head_ref }}
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Self-hostable web tool for generating ambient noises
|
Self-hostable web tool for generating ambient noises
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
(More screenshots on the [wiki](https://github.com/kaythomas0/noisedash/wiki/Screenshots))
|
(More screenshots on the [wiki](https://github.com/kaythomas0/noisedash/wiki/Screenshots))
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ Self-hostable web tool for generating ambient noises
|
|||||||
* Generate and customize ambient noises and user-uploadable samples (leveraging [Tone.js](https://github.com/Tonejs/Tone.js/))
|
* Generate and customize ambient noises and user-uploadable samples (leveraging [Tone.js](https://github.com/Tonejs/Tone.js/))
|
||||||
* Save "noise profiles" so you can easily switch between your created soundscapes. Import and export them for easy sharing, record them for use elsewhere
|
* Save "noise profiles" so you can easily switch between your created soundscapes. Import and export them for easy sharing, record them for use elsewhere
|
||||||
* Fine-tune your noises with audio processing tools like filters, LFOs, and effects
|
* Fine-tune your noises with audio processing tools like filters, LFOs, and effects
|
||||||
* Upload and edit audio samples (e.g rain, wind, thunder) to combine with your generated noises
|
* Upload and edit audio samples (e.g rain, wind, thunder) to combine with your generated noises. Add effects to them and set playback modes
|
||||||
* Use admin tools to manage multiple users
|
* Use admin tools to manage multiple users
|
||||||
* Mobile friendly
|
* Mobile friendly
|
||||||
|
|
||||||
@@ -65,3 +65,21 @@ npm run server-prod
|
|||||||
# Contributing
|
# Contributing
|
||||||
|
|
||||||
See [CONTRIBUTING.md](https://github.com/kaythomas0/noisedash/blob/main/CONTRIBUTING.md)
|
See [CONTRIBUTING.md](https://github.com/kaythomas0/noisedash/blob/main/CONTRIBUTING.md)
|
||||||
|
|
||||||
|
# License
|
||||||
|
|
||||||
|
Noisedash, a self-hostable web tool for generating ambient noises
|
||||||
|
Copyright (C) 2021 Kay Thomas <kaythomas@pm.me>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published
|
||||||
|
by the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|||||||
329
package-lock.json
generated
329
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "noisedash",
|
"name": "noisedash",
|
||||||
"version": "0.4.0",
|
"version": "0.6.5",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -1798,6 +1798,29 @@
|
|||||||
"integrity": "sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==",
|
"integrity": "sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"@jridgewell/source-map": {
|
||||||
|
"version": "0.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz",
|
||||||
|
"integrity": "sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@jridgewell/gen-mapping": "^0.3.0",
|
||||||
|
"@jridgewell/trace-mapping": "^0.3.9"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/gen-mapping": {
|
||||||
|
"version": "0.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz",
|
||||||
|
"integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"@jridgewell/set-array": "^1.0.1",
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.4.10",
|
||||||
|
"@jridgewell/trace-mapping": "^0.3.9"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"@jridgewell/sourcemap-codec": {
|
"@jridgewell/sourcemap-codec": {
|
||||||
"version": "1.4.13",
|
"version": "1.4.13",
|
||||||
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz",
|
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz",
|
||||||
@@ -2767,29 +2790,6 @@
|
|||||||
"integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",
|
"integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"terser": {
|
|
||||||
"version": "5.13.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz",
|
|
||||||
"integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"acorn": "^8.5.0",
|
|
||||||
"commander": "^2.20.0",
|
|
||||||
"source-map": "~0.8.0-beta.0",
|
|
||||||
"source-map-support": "~0.5.20"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"source-map": {
|
|
||||||
"version": "0.8.0-beta.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz",
|
|
||||||
"integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"whatwg-url": "^7.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"terser-webpack-plugin": {
|
"terser-webpack-plugin": {
|
||||||
"version": "5.3.1",
|
"version": "5.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.1.tgz",
|
||||||
@@ -2807,7 +2807,6 @@
|
|||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",
|
||||||
"integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
|
"integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"punycode": "^2.1.0"
|
"punycode": "^2.1.0"
|
||||||
}
|
}
|
||||||
@@ -2825,8 +2824,7 @@
|
|||||||
"webidl-conversions": {
|
"webidl-conversions": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
|
||||||
"integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==",
|
"integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"webpack": {
|
"webpack": {
|
||||||
"version": "5.72.1",
|
"version": "5.72.1",
|
||||||
@@ -2870,9 +2868,7 @@
|
|||||||
"version": "7.1.0",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",
|
||||||
"integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",
|
"integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"lodash.sortby": "^4.7.0",
|
|
||||||
"tr46": "^1.0.1",
|
"tr46": "^1.0.1",
|
||||||
"webidl-conversions": "^4.0.2"
|
"webidl-conversions": "^4.0.2"
|
||||||
}
|
}
|
||||||
@@ -3674,29 +3670,6 @@
|
|||||||
"integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",
|
"integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"terser": {
|
|
||||||
"version": "5.13.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz",
|
|
||||||
"integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"acorn": "^8.5.0",
|
|
||||||
"commander": "^2.20.0",
|
|
||||||
"source-map": "~0.8.0-beta.0",
|
|
||||||
"source-map-support": "~0.5.20"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"source-map": {
|
|
||||||
"version": "0.8.0-beta.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz",
|
|
||||||
"integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"whatwg-url": "^7.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"terser-webpack-plugin": {
|
"terser-webpack-plugin": {
|
||||||
"version": "5.3.1",
|
"version": "5.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.1.tgz",
|
||||||
@@ -3736,7 +3709,6 @@
|
|||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",
|
||||||
"integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
|
"integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"punycode": "^2.1.0"
|
"punycode": "^2.1.0"
|
||||||
}
|
}
|
||||||
@@ -3760,8 +3732,7 @@
|
|||||||
"webidl-conversions": {
|
"webidl-conversions": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
|
||||||
"integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==",
|
"integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"webpack": {
|
"webpack": {
|
||||||
"version": "5.72.1",
|
"version": "5.72.1",
|
||||||
@@ -3805,9 +3776,7 @@
|
|||||||
"version": "7.1.0",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",
|
||||||
"integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",
|
"integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"lodash.sortby": "^4.7.0",
|
|
||||||
"tr46": "^1.0.1",
|
"tr46": "^1.0.1",
|
||||||
"webidl-conversions": "^4.0.2"
|
"webidl-conversions": "^4.0.2"
|
||||||
}
|
}
|
||||||
@@ -3975,9 +3944,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@vue/vue-loader-v15": {
|
"@vue/vue-loader-v15": {
|
||||||
"version": "npm:vue-loader@15.9.8",
|
"version": "npm:vue-loader@15.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.9.8.tgz",
|
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.10.0.tgz",
|
||||||
"integrity": "sha512-GwSkxPrihfLR69/dSV3+5CdMQ0D+jXg8Ma1S4nQXKJAznYFX14vHdc/NetQc34Dw+rBbIJyP7JOuVb9Fhprvog==",
|
"integrity": "sha512-VU6tuO8eKajrFeBzMssFUP9SvakEeeSi1BxdTH5o3+1yUyrldp8IERkSdXlMI2t4kxF2sqYUDsQY+WJBxzBmZg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@vue/component-compiler-utils": "^3.1.0",
|
"@vue/component-compiler-utils": "^3.1.0",
|
||||||
@@ -3990,7 +3959,7 @@
|
|||||||
"hash-sum": {
|
"hash-sum": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz",
|
||||||
"integrity": "sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=",
|
"integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"json5": {
|
"json5": {
|
||||||
@@ -4003,9 +3972,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"loader-utils": {
|
"loader-utils": {
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.1.tgz",
|
||||||
"integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
|
"integrity": "sha512-1Qo97Y2oKaU+Ro2xnDMR26g1BwMT29jNbem1EvcujW2jqt+j5COXyscjM7bLQkM9HaxI7pkWeW7gnI072yMI9Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"big.js": "^5.2.2",
|
"big.js": "^5.2.2",
|
||||||
@@ -4701,12 +4670,11 @@
|
|||||||
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
|
||||||
},
|
},
|
||||||
"busboy": {
|
"busboy": {
|
||||||
"version": "0.2.14",
|
"version": "1.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/busboy/-/busboy-0.2.14.tgz",
|
"resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz",
|
||||||
"integrity": "sha1-bCpiLvz0fFe7vh4qnDetNseSVFM=",
|
"integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"dicer": "0.2.5",
|
"streamsearch": "^1.1.0"
|
||||||
"readable-stream": "1.1.x"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bytes": {
|
"bytes": {
|
||||||
@@ -5113,40 +5081,6 @@
|
|||||||
"inherits": "^2.0.3",
|
"inherits": "^2.0.3",
|
||||||
"readable-stream": "^2.2.2",
|
"readable-stream": "^2.2.2",
|
||||||
"typedarray": "^0.0.6"
|
"typedarray": "^0.0.6"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"isarray": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
|
||||||
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
|
|
||||||
},
|
|
||||||
"readable-stream": {
|
|
||||||
"version": "2.3.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
|
|
||||||
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
|
|
||||||
"requires": {
|
|
||||||
"core-util-is": "~1.0.0",
|
|
||||||
"inherits": "~2.0.3",
|
|
||||||
"isarray": "~1.0.0",
|
|
||||||
"process-nextick-args": "~2.0.0",
|
|
||||||
"safe-buffer": "~5.1.1",
|
|
||||||
"string_decoder": "~1.1.1",
|
|
||||||
"util-deprecate": "~1.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"safe-buffer": {
|
|
||||||
"version": "5.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
|
||||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
|
||||||
},
|
|
||||||
"string_decoder": {
|
|
||||||
"version": "1.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
|
||||||
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
|
||||||
"requires": {
|
|
||||||
"safe-buffer": "~5.1.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
@@ -5885,15 +5819,6 @@
|
|||||||
"integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",
|
"integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"dicer": {
|
|
||||||
"version": "0.2.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/dicer/-/dicer-0.2.5.tgz",
|
|
||||||
"integrity": "sha1-WZbAhrszIYyBLAkL3cCc0S+stw8=",
|
|
||||||
"requires": {
|
|
||||||
"readable-stream": "1.1.x",
|
|
||||||
"streamsearch": "0.1.2"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dir-glob": {
|
"dir-glob": {
|
||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
|
||||||
@@ -7503,8 +7428,7 @@
|
|||||||
"acorn": {
|
"acorn": {
|
||||||
"version": "8.7.1",
|
"version": "8.7.1",
|
||||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz",
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz",
|
||||||
"integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==",
|
"integrity": "sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"commander": {
|
"commander": {
|
||||||
"version": "8.3.0",
|
"version": "8.3.0",
|
||||||
@@ -7516,36 +7440,14 @@
|
|||||||
"version": "0.8.0-beta.0",
|
"version": "0.8.0-beta.0",
|
||||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz",
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz",
|
||||||
"integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==",
|
"integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"whatwg-url": "^7.0.0"
|
"whatwg-url": "^7.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"terser": {
|
|
||||||
"version": "5.13.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz",
|
|
||||||
"integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"acorn": "^8.5.0",
|
|
||||||
"commander": "^2.20.0",
|
|
||||||
"source-map": "~0.8.0-beta.0",
|
|
||||||
"source-map-support": "~0.5.20"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"commander": {
|
|
||||||
"version": "2.20.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
|
|
||||||
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tr46": {
|
"tr46": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",
|
||||||
"integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
|
"integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"punycode": "^2.1.0"
|
"punycode": "^2.1.0"
|
||||||
}
|
}
|
||||||
@@ -7553,16 +7455,13 @@
|
|||||||
"webidl-conversions": {
|
"webidl-conversions": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
|
||||||
"integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==",
|
"integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"whatwg-url": {
|
"whatwg-url": {
|
||||||
"version": "7.1.0",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",
|
||||||
"integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",
|
"integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"lodash.sortby": "^4.7.0",
|
|
||||||
"tr46": "^1.0.1",
|
"tr46": "^1.0.1",
|
||||||
"webidl-conversions": "^4.0.2"
|
"webidl-conversions": "^4.0.2"
|
||||||
}
|
}
|
||||||
@@ -8013,9 +7912,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"isarray": {
|
"isarray": {
|
||||||
"version": "0.0.1",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
||||||
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
|
"integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="
|
||||||
},
|
},
|
||||||
"isexe": {
|
"isexe": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
@@ -8243,9 +8142,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"loader-utils": {
|
"loader-utils": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.3.tgz",
|
||||||
"integrity": "sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A==",
|
"integrity": "sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"big.js": "^5.2.2",
|
"big.js": "^5.2.2",
|
||||||
@@ -8304,12 +8203,6 @@
|
|||||||
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
|
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"lodash.sortby": {
|
|
||||||
"version": "4.7.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz",
|
|
||||||
"integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"lodash.truncate": {
|
"lodash.truncate": {
|
||||||
"version": "4.4.2",
|
"version": "4.4.2",
|
||||||
"resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz",
|
||||||
@@ -8700,16 +8593,15 @@
|
|||||||
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
|
||||||
},
|
},
|
||||||
"multer": {
|
"multer": {
|
||||||
"version": "1.4.4",
|
"version": "1.4.5-lts.1",
|
||||||
"resolved": "https://registry.npmjs.org/multer/-/multer-1.4.4.tgz",
|
"resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz",
|
||||||
"integrity": "sha512-2wY2+xD4udX612aMqMcB8Ws2Voq6NIUPEtD1be6m411T4uDH/VtL9i//xvcyFlTVfRdaBsk7hV5tgrGQqhuBiw==",
|
"integrity": "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"append-field": "^1.0.0",
|
"append-field": "^1.0.0",
|
||||||
"busboy": "^0.2.11",
|
"busboy": "^1.0.0",
|
||||||
"concat-stream": "^1.5.2",
|
"concat-stream": "^1.5.2",
|
||||||
"mkdirp": "^0.5.4",
|
"mkdirp": "^0.5.4",
|
||||||
"object-assign": "^4.1.1",
|
"object-assign": "^4.1.1",
|
||||||
"on-finished": "^2.3.0",
|
|
||||||
"type-is": "^1.6.4",
|
"type-is": "^1.6.4",
|
||||||
"xtend": "^4.0.0"
|
"xtend": "^4.0.0"
|
||||||
}
|
}
|
||||||
@@ -8924,14 +8816,6 @@
|
|||||||
"integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==",
|
"integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"on-finished": {
|
|
||||||
"version": "2.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
|
|
||||||
"integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
|
|
||||||
"requires": {
|
|
||||||
"ee-first": "1.1.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"on-headers": {
|
"on-headers": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
|
||||||
@@ -9222,12 +9106,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"passport": {
|
"passport": {
|
||||||
"version": "0.4.1",
|
"version": "0.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/passport/-/passport-0.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/passport/-/passport-0.6.0.tgz",
|
||||||
"integrity": "sha512-IxXgZZs8d7uFSt3eqNjM9NQ3g3uQCW5avD8mRNoXV99Yig50vjuaez6dQK2qC0kVWPRTujxY0dWgGfT09adjYg==",
|
"integrity": "sha512-0fe+p3ZnrWRW74fe8+SvCyf4a3Pb2/h7gFkQ8yTJpAO50gDzlfjZUZTO1k5Eg9kUct22OxHLqDZoKUWRHOh9ug==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"passport-strategy": "1.x.x",
|
"passport-strategy": "1.x.x",
|
||||||
"pause": "0.0.1"
|
"pause": "0.0.1",
|
||||||
|
"utils-merge": "^1.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"passport-local": {
|
"passport-local": {
|
||||||
@@ -9290,7 +9175,7 @@
|
|||||||
"pause": {
|
"pause": {
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz",
|
||||||
"integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10="
|
"integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg=="
|
||||||
},
|
},
|
||||||
"picocolors": {
|
"picocolors": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
@@ -9817,8 +9702,7 @@
|
|||||||
"punycode": {
|
"punycode": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
|
||||||
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
|
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"qs": {
|
"qs": {
|
||||||
"version": "6.10.3",
|
"version": "6.10.3",
|
||||||
@@ -9896,14 +9780,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"readable-stream": {
|
"readable-stream": {
|
||||||
"version": "1.1.14",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
|
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
|
||||||
"integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
|
"integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"core-util-is": "~1.0.0",
|
"core-util-is": "~1.0.0",
|
||||||
"inherits": "~2.0.1",
|
"inherits": "~2.0.3",
|
||||||
"isarray": "0.0.1",
|
"isarray": "~1.0.0",
|
||||||
"string_decoder": "~0.10.x"
|
"process-nextick-args": "~2.0.0",
|
||||||
|
"safe-buffer": "~5.1.1",
|
||||||
|
"string_decoder": "~1.1.1",
|
||||||
|
"util-deprecate": "~1.0.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"safe-buffer": {
|
||||||
|
"version": "5.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||||
|
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"readdirp": {
|
"readdirp": {
|
||||||
@@ -10639,9 +10533,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"streamsearch": {
|
"streamsearch": {
|
||||||
"version": "0.1.2",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",
|
||||||
"integrity": "sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo="
|
"integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg=="
|
||||||
},
|
},
|
||||||
"string-width": {
|
"string-width": {
|
||||||
"version": "4.2.3",
|
"version": "4.2.3",
|
||||||
@@ -10675,9 +10569,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"string_decoder": {
|
"string_decoder": {
|
||||||
"version": "0.10.31",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
|
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
||||||
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
|
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
||||||
|
"requires": {
|
||||||
|
"safe-buffer": "~5.1.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"safe-buffer": {
|
||||||
|
"version": "5.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||||
|
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"strip-ansi": {
|
"strip-ansi": {
|
||||||
"version": "6.0.1",
|
"version": "6.0.1",
|
||||||
@@ -10820,52 +10724,15 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"terser": {
|
"terser": {
|
||||||
"version": "5.13.1",
|
"version": "5.14.2",
|
||||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.13.1.tgz",
|
"resolved": "https://registry.npmjs.org/terser/-/terser-5.14.2.tgz",
|
||||||
"integrity": "sha512-hn4WKOfwnwbYfe48NgrQjqNOH9jzLqRcIfbYytOXCOv46LBfWr9bDS17MQqOi+BWGD0sJK3Sj5NC/gJjiojaoA==",
|
"integrity": "sha512-oL0rGeM/WFQCUd0y2QrWxYnq7tfSuKBiqTjRPWrRgB46WD/kiwHwF8T23z78H6Q6kGCuuHcPB+KULHRdxvVGQA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
|
"@jridgewell/source-map": "^0.3.2",
|
||||||
"acorn": "^8.5.0",
|
"acorn": "^8.5.0",
|
||||||
"commander": "^2.20.0",
|
"commander": "^2.20.0",
|
||||||
"source-map": "~0.8.0-beta.0",
|
|
||||||
"source-map-support": "~0.5.20"
|
"source-map-support": "~0.5.20"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"source-map": {
|
|
||||||
"version": "0.8.0-beta.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz",
|
|
||||||
"integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"whatwg-url": "^7.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tr46": {
|
|
||||||
"version": "1.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",
|
|
||||||
"integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"punycode": "^2.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"webidl-conversions": {
|
|
||||||
"version": "4.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
|
|
||||||
"integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"whatwg-url": {
|
|
||||||
"version": "7.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",
|
|
||||||
"integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"lodash.sortby": "^4.7.0",
|
|
||||||
"tr46": "^1.0.1",
|
|
||||||
"webidl-conversions": "^4.0.2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"terser-webpack-plugin": {
|
"terser-webpack-plugin": {
|
||||||
@@ -11412,9 +11279,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"loader-utils": {
|
"loader-utils": {
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.1.tgz",
|
||||||
"integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==",
|
"integrity": "sha512-1Qo97Y2oKaU+Ro2xnDMR26g1BwMT29jNbem1EvcujW2jqt+j5COXyscjM7bLQkM9HaxI7pkWeW7gnI072yMI9Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"big.js": "^5.2.2",
|
"big.js": "^5.2.2",
|
||||||
@@ -11441,9 +11308,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"vuetify": {
|
"vuetify": {
|
||||||
"version": "2.6.6",
|
"version": "2.6.10",
|
||||||
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.6.6.tgz",
|
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.6.10.tgz",
|
||||||
"integrity": "sha512-H4KtxDFmDN8QiTRiGfBySyjMhVaHAJTKB0llGGKZT5jKxtnx9gvEtMWXKtVuRP0NJJP0H6xBPJHNOH7nT18qiQ=="
|
"integrity": "sha512-fgUeRDDCwYkwu6WGEEKGe7IdfzOsXJCZGrqkn1pcS2ycuoDL8mR2/dejH5iFNnBY6MnsT365PAGn0J+9otjfQg=="
|
||||||
},
|
},
|
||||||
"vuetify-loader": {
|
"vuetify-loader": {
|
||||||
"version": "1.7.3",
|
"version": "1.7.3",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "noisedash",
|
"name": "noisedash",
|
||||||
"version": "0.4.0",
|
"version": "0.6.6",
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": "Kay Thomas <kaythomas@pm.me> (https://kaythomas.dev)",
|
"author": "Kay Thomas <kaythomas@pm.me> (https://kaythomas.dev)",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -19,15 +19,15 @@
|
|||||||
"core-js": "^3.22.7",
|
"core-js": "^3.22.7",
|
||||||
"express": "^4.18.1",
|
"express": "^4.18.1",
|
||||||
"express-session": "^1.17.3",
|
"express-session": "^1.17.3",
|
||||||
"multer": "^1.4.3",
|
"multer": "^1.4.5-lts.1",
|
||||||
"passport": "^0.4.1",
|
"passport": "^0.6.0",
|
||||||
"passport-local": "^1.0.0",
|
"passport-local": "^1.0.0",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"session-file-store": "^1.5.0",
|
"session-file-store": "^1.5.0",
|
||||||
"tone": "^14.7.77",
|
"tone": "^14.7.77",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
"vue-router": "^3.5.4",
|
"vue-router": "^3.5.4",
|
||||||
"vuetify": "^2.6.6",
|
"vuetify": "^2.6.10",
|
||||||
"winston": "^3.3.3"
|
"winston": "^3.3.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -36,7 +36,8 @@ app.use(session({
|
|||||||
store: new FileStore(fileStoreOptions),
|
store: new FileStore(fileStoreOptions),
|
||||||
secret: sessionSecret,
|
secret: sessionSecret,
|
||||||
resave: true,
|
resave: true,
|
||||||
saveUninitialized: true
|
saveUninitialized: true,
|
||||||
|
cookie: { sameSite: 'strict' }
|
||||||
}))
|
}))
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
const msgs = req.session.messages || []
|
const msgs = req.session.messages || []
|
||||||
|
|||||||
@@ -59,14 +59,46 @@ module.exports = function () {
|
|||||||
} else {
|
} else {
|
||||||
const userVersion = row.user_version
|
const userVersion = row.user_version
|
||||||
|
|
||||||
if (userVersion === 0) {
|
db.serialize(() => {
|
||||||
db.run('ALTER TABLE samples ADD COLUMN fade_in REAL DEFAULT 0')
|
if (userVersion < 1) {
|
||||||
db.run('ALTER TABLE samples ADD COLUMN loop_points_enabled INTEGER DEFAULT 0')
|
db.run('ALTER TABLE samples ADD COLUMN fade_in REAL DEFAULT 0')
|
||||||
db.run('ALTER TABLE samples ADD COLUMN loop_start REAL DEFAULT 0')
|
db.run('ALTER TABLE samples ADD COLUMN loop_points_enabled INTEGER DEFAULT 0')
|
||||||
db.run('ALTER TABLE samples ADD COLUMN loop_end REAL DEFAULT 0')
|
db.run('ALTER TABLE samples ADD COLUMN loop_start REAL DEFAULT 0')
|
||||||
|
db.run('ALTER TABLE samples ADD COLUMN loop_end REAL DEFAULT 0')
|
||||||
|
|
||||||
db.run('PRAGMA user_version = 1')
|
db.run('PRAGMA user_version = 1')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (userVersion < 2) {
|
||||||
|
db.run('ALTER TABLE users ADD COLUMN preferences TEXT DEFAULT "{}"')
|
||||||
|
|
||||||
|
db.run('PRAGMA user_version = 2')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (userVersion < 3) {
|
||||||
|
db.run('ALTER TABLE profiles_samples ADD COLUMN reverb_enabled INTEGER DEFAULT 0')
|
||||||
|
db.run('ALTER TABLE profiles_samples ADD COLUMN reverb_pre_delay REAL DEFAULT 0')
|
||||||
|
db.run('ALTER TABLE profiles_samples ADD COLUMN reverb_decay REAL DEFAULT 0')
|
||||||
|
db.run('ALTER TABLE profiles_samples ADD COLUMN reverb_wet INTEGER DEFAULT 0')
|
||||||
|
db.run('ALTER TABLE profiles_samples ADD COLUMN playback_mode TEXT DEFAULT "continuous"')
|
||||||
|
db.run('ALTER TABLE profiles_samples ADD COLUMN sporadic_min INTEGER DEFAULT 30')
|
||||||
|
db.run('ALTER TABLE profiles_samples ADD COLUMN sporadic_max INTEGER DEFAULT 300')
|
||||||
|
|
||||||
|
db.run('PRAGMA user_version = 3')
|
||||||
|
}
|
||||||
|
|
||||||
|
if (userVersion < 4) {
|
||||||
|
db.run('UPDATE users SET preferences = ? WHERE preferences = ?',
|
||||||
|
['{"accentColor":{"alpha":1,"hex":"#607D8B","hexa":"#607D8BFF","hsla":{"h":200,"s":18,"l":46,"a":1},"hsva":{"h":200,"s":31,"v":55,"a":1},"hue":200,"rgba":{"r":96,"g":125,"b":139,"a":1}}}', '{}'],
|
||||||
|
(err) => {
|
||||||
|
if (err) {
|
||||||
|
logger.error(err)
|
||||||
|
} else {
|
||||||
|
db.run('PRAGMA user_version = 4')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -36,8 +36,14 @@ router.get('/admin', (req, res) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
router.get('/logout', (req, res) => {
|
router.get('/logout', (req, res) => {
|
||||||
req.logout()
|
req.logout((err) => {
|
||||||
res.sendStatus(200)
|
if (err) {
|
||||||
|
logger.error(err)
|
||||||
|
res.sendStatus(500)
|
||||||
|
} else {
|
||||||
|
res.sendStatus(200)
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
router.get('/setup', (req, res) => {
|
router.get('/setup', (req, res) => {
|
||||||
|
|||||||
@@ -59,10 +59,28 @@ router.post('/profiles', (req, res) => {
|
|||||||
profileID = this.lastID
|
profileID = this.lastID
|
||||||
|
|
||||||
req.body.samples.forEach(s => {
|
req.body.samples.forEach(s => {
|
||||||
db.run('INSERT INTO profiles_samples (profile, sample, volume) VALUES (?, ?, ?)', [
|
db.run(`INSERT INTO profiles_samples(
|
||||||
|
profile,
|
||||||
|
sample,
|
||||||
|
volume,
|
||||||
|
reverb_enabled,
|
||||||
|
reverb_pre_delay,
|
||||||
|
reverb_decay,
|
||||||
|
reverb_wet,
|
||||||
|
playback_mode,
|
||||||
|
sporadic_min,
|
||||||
|
sporadic_max)
|
||||||
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`, [
|
||||||
profileID,
|
profileID,
|
||||||
s.id,
|
s.id,
|
||||||
s.volume
|
s.volume,
|
||||||
|
s.reverbEnabled,
|
||||||
|
s.reverbPreDelay,
|
||||||
|
s.reverbDecay,
|
||||||
|
s.reverbWet,
|
||||||
|
s.playbackMode,
|
||||||
|
s.sporadicMin,
|
||||||
|
s.sporadicMax
|
||||||
],
|
],
|
||||||
(err) => {
|
(err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
@@ -204,10 +222,28 @@ router.put('/profiles/:profileId', (req, res) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
req.body.samples.forEach(s => {
|
req.body.samples.forEach(s => {
|
||||||
db.run('INSERT INTO profiles_samples (profile, sample, volume) VALUES (?, ?, ?)', [
|
db.run(`INSERT INTO profiles_samples(
|
||||||
|
profile,
|
||||||
|
sample,
|
||||||
|
volume,
|
||||||
|
reverb_enabled,
|
||||||
|
reverb_pre_delay,
|
||||||
|
reverb_decay,
|
||||||
|
reverb_wet,
|
||||||
|
playback_mode,
|
||||||
|
sporadic_min,
|
||||||
|
sporadic_max)
|
||||||
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`, [
|
||||||
req.params.profileId,
|
req.params.profileId,
|
||||||
s.id,
|
s.id,
|
||||||
s.volume
|
s.volume,
|
||||||
|
s.reverbEnabled,
|
||||||
|
s.reverbPreDelay,
|
||||||
|
s.reverbDecay,
|
||||||
|
s.reverbWet,
|
||||||
|
s.playbackMode,
|
||||||
|
s.sporadicMin,
|
||||||
|
s.sporadicMax
|
||||||
],
|
],
|
||||||
(err) => {
|
(err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
@@ -355,6 +391,13 @@ router.get('/profiles/:profileId', (req, res) => {
|
|||||||
samples.id,
|
samples.id,
|
||||||
name,
|
name,
|
||||||
profiles_samples.volume,
|
profiles_samples.volume,
|
||||||
|
profiles_samples.reverb_enabled as reverbEnabled,
|
||||||
|
profiles_samples.reverb_pre_delay as reverbPreDelay,
|
||||||
|
profiles_samples.reverb_decay as reverbDecay,
|
||||||
|
profiles_samples.reverb_wet as reverbWet,
|
||||||
|
profiles_samples.playback_mode as playbackMode,
|
||||||
|
profiles_samples.sporadic_min as sporadicMin,
|
||||||
|
profiles_samples.sporadic_max as sporadicMax,
|
||||||
fade_in as fadeIn,
|
fade_in as fadeIn,
|
||||||
loop_points_enabled as loopPointsEnabled,
|
loop_points_enabled as loopPointsEnabled,
|
||||||
loop_start as loopStart,
|
loop_start as loopStart,
|
||||||
@@ -382,6 +425,13 @@ router.get('/profiles/:profileId', (req, res) => {
|
|||||||
sample.loopPointsEnabled = row.loopPointsEnabled === 1
|
sample.loopPointsEnabled = row.loopPointsEnabled === 1
|
||||||
sample.loopStart = row.loopStart
|
sample.loopStart = row.loopStart
|
||||||
sample.loopEnd = row.loopEnd
|
sample.loopEnd = row.loopEnd
|
||||||
|
sample.reverbEnabled = row.reverbEnabled === 1
|
||||||
|
sample.reverbPreDelay = row.reverbPreDelay
|
||||||
|
sample.reverbDecay = row.reverbDecay
|
||||||
|
sample.reverbWet = row.reverbWet
|
||||||
|
sample.playbackMode = row.playbackMode
|
||||||
|
sample.sporadicMin = row.sporadicMin
|
||||||
|
sample.sporadicMax = row.sporadicMax
|
||||||
|
|
||||||
samples.push(sample)
|
samples.push(sample)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -9,7 +9,11 @@ router.get('/users/current', (req, res) => {
|
|||||||
return res.sendStatus(401)
|
return res.sendStatus(401)
|
||||||
}
|
}
|
||||||
|
|
||||||
db.get('SELECT is_admin as isAdmin, dark_mode as darkMode, can_upload as canUpload, * FROM users WHERE id = ?', [req.user.id], (err, row) => {
|
db.get(`SELECT
|
||||||
|
is_admin as isAdmin,
|
||||||
|
dark_mode as darkMode,
|
||||||
|
can_upload as canUpload,
|
||||||
|
* FROM users WHERE id = ?`, [req.user.id], (err, row) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
logger.error(err)
|
logger.error(err)
|
||||||
return res.sendStatus(500)
|
return res.sendStatus(500)
|
||||||
@@ -24,6 +28,7 @@ router.get('/users/current', (req, res) => {
|
|||||||
user.isAdmin = row.isAdmin === 1
|
user.isAdmin = row.isAdmin === 1
|
||||||
user.darkMode = row.darkMode === 1
|
user.darkMode = row.darkMode === 1
|
||||||
user.canUpload = row.canUpload === 1
|
user.canUpload = row.canUpload === 1
|
||||||
|
user.preferences = JSON.parse(row.preferences)
|
||||||
}
|
}
|
||||||
|
|
||||||
res.json({ user: user })
|
res.json({ user: user })
|
||||||
@@ -67,6 +72,8 @@ router.post('/users', (req, res) => {
|
|||||||
return res.sendStatus(500)
|
return res.sendStatus(500)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const defaultPreferences = '{"accentColor":{"alpha":1,"hex":"#607D8B","hexa":"#607D8BFF","hsla":{"h":200,"s":18,"l":46,"a":1},"hsva":{"h":200,"s":31,"v":55,"a":1},"hue":200,"rgba":{"r":96,"g":125,"b":139,"a":1}}}'
|
||||||
|
|
||||||
if (row.count !== 0) {
|
if (row.count !== 0) {
|
||||||
if (!req.user) {
|
if (!req.user) {
|
||||||
return res.sendStatus(401)
|
return res.sendStatus(401)
|
||||||
@@ -89,15 +96,16 @@ router.post('/users', (req, res) => {
|
|||||||
return res.sendStatus(500)
|
return res.sendStatus(500)
|
||||||
}
|
}
|
||||||
|
|
||||||
db.run(`INSERT INTO users (username, hashed_password, salt, name, is_admin, dark_mode, can_upload)
|
db.run(`INSERT INTO users (username, hashed_password, salt, name, is_admin, dark_mode, can_upload, preferences)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?)`, [
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?)`, [
|
||||||
req.body.username,
|
req.body.username,
|
||||||
hashedPassword,
|
hashedPassword,
|
||||||
salt,
|
salt,
|
||||||
req.body.name,
|
req.body.name,
|
||||||
req.body.isAdmin,
|
req.body.isAdmin,
|
||||||
req.body.darkMode,
|
req.body.darkMode,
|
||||||
req.body.canUpload
|
req.body.canUpload,
|
||||||
|
defaultPreferences
|
||||||
], (err) => {
|
], (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
logger.error(err)
|
logger.error(err)
|
||||||
@@ -120,15 +128,16 @@ router.post('/users', (req, res) => {
|
|||||||
return res.sendStatus(500)
|
return res.sendStatus(500)
|
||||||
}
|
}
|
||||||
|
|
||||||
db.run(`INSERT INTO users (username, hashed_password, salt, name, is_admin, dark_mode, can_upload)
|
db.run(`INSERT INTO users (username, hashed_password, salt, name, is_admin, dark_mode, can_upload, preferences)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?)`, [
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?)`, [
|
||||||
req.body.username,
|
req.body.username,
|
||||||
hashedPassword,
|
hashedPassword,
|
||||||
salt,
|
salt,
|
||||||
req.body.name,
|
req.body.name,
|
||||||
req.body.isAdmin,
|
req.body.isAdmin,
|
||||||
req.body.darkMode,
|
req.body.darkMode,
|
||||||
req.body.canUpload
|
req.body.canUpload,
|
||||||
|
defaultPreferences
|
||||||
], function (err) {
|
], function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
logger.error(err)
|
logger.error(err)
|
||||||
@@ -287,4 +296,23 @@ router.delete('/users/:userId', (req, res) => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
router.patch('/users/preferences', (req, res) => {
|
||||||
|
if (!req.user) {
|
||||||
|
return res.sendStatus(401)
|
||||||
|
}
|
||||||
|
|
||||||
|
const preferences = JSON.stringify(req.body.preferences)
|
||||||
|
|
||||||
|
db.serialize(() => {
|
||||||
|
db.run('UPDATE users SET preferences = ? WHERE id = ?', [preferences, req.user.id], (err) => {
|
||||||
|
if (err) {
|
||||||
|
logger.error(err)
|
||||||
|
return res.sendStatus(500)
|
||||||
|
} else {
|
||||||
|
return res.sendStatus(200)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
module.exports = router
|
module.exports = router
|
||||||
|
|||||||
@@ -8,6 +8,10 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
<h2 class="headline font-weight-bold mb-3">
|
||||||
|
User Management
|
||||||
|
</h2>
|
||||||
|
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
<v-row>
|
<v-row>
|
||||||
ID: {{ currentUser.id }}
|
ID: {{ currentUser.id }}
|
||||||
@@ -26,7 +30,7 @@
|
|||||||
>
|
>
|
||||||
<template #activator="{ on, attrs }">
|
<template #activator="{ on, attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
class="my-3"
|
class="mt-5 mb-10"
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
v-on="on"
|
v-on="on"
|
||||||
@click="resetChangePasswordForm"
|
@click="resetChangePasswordForm"
|
||||||
@@ -77,12 +81,35 @@
|
|||||||
</v-form>
|
</v-form>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
|
<h2 class="headline font-weight-bold mb-3">
|
||||||
|
Preferences
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<h3 class="font-weight-bold">
|
||||||
|
Dark Mode
|
||||||
|
</h3>
|
||||||
|
|
||||||
<v-switch
|
<v-switch
|
||||||
v-model="$vuetify.theme.dark"
|
v-model="$vuetify.theme.dark"
|
||||||
label="Dark Mode"
|
:label="`${$vuetify.theme.dark ? 'On' : 'Off'}`"
|
||||||
@change="toggleDarkMode"
|
@change="toggleDarkMode"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<h3 class="mb-5 font-weight-bold">
|
||||||
|
Accent Color
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<v-color-picker
|
||||||
|
v-model="accentColor"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<v-btn
|
||||||
|
class="mt-5"
|
||||||
|
@click="updateAccentColor"
|
||||||
|
>
|
||||||
|
Apply
|
||||||
|
</v-btn>
|
||||||
|
|
||||||
<v-snackbar
|
<v-snackbar
|
||||||
v-model="snackbar"
|
v-model="snackbar"
|
||||||
timeout="3000"
|
timeout="3000"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
dense
|
dense
|
||||||
>
|
>
|
||||||
<v-app-bar-nav-icon
|
<v-app-bar-nav-icon
|
||||||
@click="getCurrentUser"
|
@click="checkForAdmin"
|
||||||
/>
|
/>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-navigation-drawer
|
<v-navigation-drawer
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<v-row justify="center">
|
<v-row justify="center">
|
||||||
<v-btn
|
<v-btn
|
||||||
:disabled="playDisabled || !isTimerValid"
|
:disabled="playDisabled || !isTimerValid || (loadedSamples.length != 0 && !isSporadicValid)"
|
||||||
class="mx-3 mb-5"
|
class="mx-3 mb-5"
|
||||||
fab
|
fab
|
||||||
large
|
large
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
label="Profiles"
|
label="Profiles"
|
||||||
class="mx-3 mb-5"
|
class="mx-3 mb-5"
|
||||||
:disabled="playDisabled"
|
:disabled="playDisabled"
|
||||||
@change="loadProfile"
|
@change="loadProfile(true)"
|
||||||
/>
|
/>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
@@ -297,7 +297,7 @@
|
|||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-container>
|
<v-container>
|
||||||
<v-row>
|
<v-row>
|
||||||
<p>Select profile to record audio for. This is only supported on Chrome and Firefox.</p>
|
<p>Select profile to record audio for. This is only supported on Chrome and Firefox. Current profile will be saved before recording.</p>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-select
|
<v-select
|
||||||
@@ -652,18 +652,26 @@
|
|||||||
<v-row
|
<v-row
|
||||||
justify="center"
|
justify="center"
|
||||||
>
|
>
|
||||||
{{ sample.name }}
|
<v-col />
|
||||||
|
|
||||||
|
<v-col>
|
||||||
|
<h2 class="mb-5">
|
||||||
|
{{ sample.name }}
|
||||||
|
</h2>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
|
<v-col>
|
||||||
|
<v-btn
|
||||||
|
icon
|
||||||
|
:disabled="playDisabled"
|
||||||
|
@click="removeSample(index)"
|
||||||
|
>
|
||||||
|
<v-icon>mdi-delete</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-btn
|
|
||||||
icon
|
|
||||||
:disabled="playDisabled"
|
|
||||||
@click="removeSample(index)"
|
|
||||||
>
|
|
||||||
<v-icon>mdi-delete</v-icon>
|
|
||||||
</v-btn>
|
|
||||||
|
|
||||||
<v-slider
|
<v-slider
|
||||||
v-model="sample.volume"
|
v-model="sample.volume"
|
||||||
label="Volume"
|
label="Volume"
|
||||||
@@ -679,6 +687,142 @@
|
|||||||
<p>{{ loadedSamples[index].volume }}</p>
|
<p>{{ loadedSamples[index].volume }}</p>
|
||||||
</div>
|
</div>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
<v-row
|
||||||
|
justify="center"
|
||||||
|
>
|
||||||
|
<h3 class="font-weight-regular mb-9">
|
||||||
|
Effects
|
||||||
|
</h3>
|
||||||
|
</v-row>
|
||||||
|
|
||||||
|
<v-expansion-panels class="mb-9">
|
||||||
|
<v-expansion-panel>
|
||||||
|
<v-expansion-panel-header>
|
||||||
|
Reverb
|
||||||
|
</v-expansion-panel-header>
|
||||||
|
<v-expansion-panel-content>
|
||||||
|
<v-row justify="center">
|
||||||
|
<v-checkbox
|
||||||
|
v-model="sample.reverbEnabled"
|
||||||
|
:disabled="playDisabled"
|
||||||
|
label="Enabled"
|
||||||
|
/>
|
||||||
|
</v-row>
|
||||||
|
|
||||||
|
<v-row justify="center">
|
||||||
|
<v-slider
|
||||||
|
v-model="sample.reverbPreDelay"
|
||||||
|
:disabled="playDisabled || !sample.reverbEnabled"
|
||||||
|
label="Pre Delay"
|
||||||
|
thumb-label
|
||||||
|
max="16"
|
||||||
|
min="0"
|
||||||
|
step="0.5"
|
||||||
|
class="mx-3"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="mx-3"
|
||||||
|
>
|
||||||
|
<p>{{ sample.reverbPreDelay }}</p>
|
||||||
|
</div>
|
||||||
|
</v-row>
|
||||||
|
|
||||||
|
<v-row justify="center">
|
||||||
|
<v-slider
|
||||||
|
v-model="sample.reverbDecay"
|
||||||
|
:disabled="playDisabled || !sample.reverbEnabled"
|
||||||
|
label="Decay"
|
||||||
|
thumb-label
|
||||||
|
max="16"
|
||||||
|
min="0"
|
||||||
|
step="0.5"
|
||||||
|
class="mx-3"
|
||||||
|
@input="updateVolume"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="mx-3"
|
||||||
|
>
|
||||||
|
<p> {{ sample.reverbDecay }}</p>
|
||||||
|
</div>
|
||||||
|
</v-row>
|
||||||
|
|
||||||
|
<v-row justify="center">
|
||||||
|
<v-slider
|
||||||
|
v-model="sample.reverbWet"
|
||||||
|
:disabled="playDisabled || !sample.reverbEnabled"
|
||||||
|
label="Wet"
|
||||||
|
thumb-label
|
||||||
|
max="1"
|
||||||
|
min="0"
|
||||||
|
step="0.01"
|
||||||
|
class="mx-3"
|
||||||
|
@input="updateVolume"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="mx-3"
|
||||||
|
>
|
||||||
|
<p>{{ sample.reverbWet }}%</p>
|
||||||
|
</div>
|
||||||
|
</v-row>
|
||||||
|
</v-expansion-panel-content>
|
||||||
|
</v-expansion-panel>
|
||||||
|
</v-expansion-panels>
|
||||||
|
|
||||||
|
<v-row justify="center">
|
||||||
|
<h3 class="font-weight-regular">
|
||||||
|
Playback Mode
|
||||||
|
</h3>
|
||||||
|
</v-row>
|
||||||
|
|
||||||
|
<v-row
|
||||||
|
class="mb-5"
|
||||||
|
>
|
||||||
|
<v-radio-group
|
||||||
|
v-model="sample.playbackMode"
|
||||||
|
:disabled="playDisabled"
|
||||||
|
mandatory
|
||||||
|
>
|
||||||
|
<v-radio
|
||||||
|
label="Continuous (Looped)"
|
||||||
|
value="continuous"
|
||||||
|
/>
|
||||||
|
<v-radio
|
||||||
|
label="Sporadic (Not Looped, Plays Randomly Within Interval)"
|
||||||
|
value="sporadic"
|
||||||
|
/>
|
||||||
|
</v-radio-group>
|
||||||
|
</v-row>
|
||||||
|
|
||||||
|
<v-form
|
||||||
|
v-model="isSporadicValid"
|
||||||
|
>
|
||||||
|
<v-row
|
||||||
|
justify="center"
|
||||||
|
>
|
||||||
|
<v-text-field
|
||||||
|
v-model="sample.sporadicMin"
|
||||||
|
type="number"
|
||||||
|
label="Sporadic Min"
|
||||||
|
class="mx-3"
|
||||||
|
:disabled="sample.playbackMode != 'sporadic' || playDisabled"
|
||||||
|
:rules="[rules.gt(-1)]"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<v-text-field
|
||||||
|
v-model="sample.sporadicMax"
|
||||||
|
type="number"
|
||||||
|
label="Sporadic Max"
|
||||||
|
class="mx-3"
|
||||||
|
:disabled="sample.playbackMode != 'sporadic' || playDisabled"
|
||||||
|
:rules="[rules.gt(0)]"
|
||||||
|
/>
|
||||||
|
</v-row>
|
||||||
|
</v-form>
|
||||||
|
|
||||||
|
<v-divider
|
||||||
|
class="mt-7"
|
||||||
|
/>
|
||||||
</v-container>
|
</v-container>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
@@ -851,7 +995,8 @@
|
|||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="previewSampleLoopPointsEnabled"
|
v-model="previewSampleLoopPointsEnabled"
|
||||||
:disabled="previewSamplePlaying"
|
:disabled="previewSamplePlaying"
|
||||||
label="Use Loop Points"
|
label="Use Loop Points (Continuous Playback Mode Only)"
|
||||||
|
@change="updatePreviewSampleLoopPoints"
|
||||||
/>
|
/>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
@@ -881,7 +1026,7 @@
|
|||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="previewSampleFadeIn"
|
v-model="previewSampleFadeIn"
|
||||||
type="number"
|
type="number"
|
||||||
label="Fade In Time"
|
label="Fade In Time (In continuous mode, this only effects first playback)"
|
||||||
:disabled="previewSamplePlaying"
|
:disabled="previewSamplePlaying"
|
||||||
:rules="[rules.gt(-1)]"
|
:rules="[rules.gt(-1)]"
|
||||||
@change="updatePreviewSamplePlayerFadeIn"
|
@change="updatePreviewSamplePlayerFadeIn"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export default {
|
|||||||
changePasswordDialog: false,
|
changePasswordDialog: false,
|
||||||
isPasswordValid: false,
|
isPasswordValid: false,
|
||||||
password: '',
|
password: '',
|
||||||
|
accentColor: {},
|
||||||
snackbar: false,
|
snackbar: false,
|
||||||
snackbarText: '',
|
snackbarText: '',
|
||||||
rules: {
|
rules: {
|
||||||
@@ -21,6 +22,7 @@ export default {
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.currentUser = response.data.user
|
this.currentUser = response.data.user
|
||||||
|
this.accentColor = this.currentUser.preferences.accentColor
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -45,6 +47,14 @@ export default {
|
|||||||
this.$http.patch('/users/dark-mode', {
|
this.$http.patch('/users/dark-mode', {
|
||||||
darkMode: this.$vuetify.theme.dark
|
darkMode: this.$vuetify.theme.dark
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
updateAccentColor () {
|
||||||
|
const preferences = { accentColor: this.accentColor }
|
||||||
|
this.$http.patch('/users/preferences', {
|
||||||
|
preferences: preferences
|
||||||
|
})
|
||||||
|
this.$vuetify.theme.themes.dark.primary = this.accentColor.hex
|
||||||
|
this.$vuetify.theme.themes.light.primary = this.accentColor.hex
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ export default {
|
|||||||
isAdmin: false,
|
isAdmin: false,
|
||||||
loggedIn: false
|
loggedIn: false
|
||||||
}),
|
}),
|
||||||
|
created () {
|
||||||
|
this.getUserPreferences()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
home () {
|
home () {
|
||||||
this.$router.push('/')
|
this.$router.push('/')
|
||||||
@@ -24,7 +27,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getCurrentUser () {
|
checkForAdmin () {
|
||||||
this.loggedIn = false
|
this.loggedIn = false
|
||||||
this.drawyer = true
|
this.drawyer = true
|
||||||
this.$http.get('/users/current')
|
this.$http.get('/users/current')
|
||||||
@@ -32,12 +35,21 @@ export default {
|
|||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.loggedIn = true
|
this.loggedIn = true
|
||||||
this.isAdmin = response.data.user.isAdmin
|
this.isAdmin = response.data.user.isAdmin
|
||||||
this.$vuetify.theme.dark = response.data.user.darkMode
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.isAdmin = false
|
this.isAdmin = false
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
getUserPreferences () {
|
||||||
|
this.$http.get('/users/current')
|
||||||
|
.then(response => {
|
||||||
|
if (response.status === 200) {
|
||||||
|
const preferences = response.data.user.preferences
|
||||||
|
this.$vuetify.theme.themes.dark.primary = preferences.accentColor.hex
|
||||||
|
this.$vuetify.theme.themes.light.primary = preferences.accentColor.hex
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ export default {
|
|||||||
unwatch: null,
|
unwatch: null,
|
||||||
confirmSwitchProfileDialog: false,
|
confirmSwitchProfileDialog: false,
|
||||||
activeProfile: {},
|
activeProfile: {},
|
||||||
|
isSporadicValid: false,
|
||||||
errorSnackbar: false,
|
errorSnackbar: false,
|
||||||
errorSnackbarText: '',
|
errorSnackbarText: '',
|
||||||
rules: {
|
rules: {
|
||||||
@@ -123,6 +124,13 @@ export default {
|
|||||||
|
|
||||||
this.loadedSamples.forEach(s => {
|
this.loadedSamples.forEach(s => {
|
||||||
settings.push(s.volume)
|
settings.push(s.volume)
|
||||||
|
settings.push(s.reverbEnabled)
|
||||||
|
settings.push(s.reverbPreDelay)
|
||||||
|
settings.push(s.reverbDecay)
|
||||||
|
settings.push(s.reverbWet)
|
||||||
|
settings.push(s.playbackMode)
|
||||||
|
settings.push(s.sporadicMin)
|
||||||
|
settings.push(s.sporadicMax)
|
||||||
})
|
})
|
||||||
|
|
||||||
return settings
|
return settings
|
||||||
@@ -147,11 +155,13 @@ export default {
|
|||||||
this.stop()
|
this.stop()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
play () {
|
async play () {
|
||||||
if (!this.players.loaded) {
|
if (!this.players.loaded) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await Tone.start()
|
||||||
|
|
||||||
this.playDisabled = true
|
this.playDisabled = true
|
||||||
Tone.Transport.cancel()
|
Tone.Transport.cancel()
|
||||||
|
|
||||||
@@ -178,35 +188,73 @@ export default {
|
|||||||
this.lfo.connect(this.filter.frequency).start()
|
this.lfo.connect(this.filter.frequency).start()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.isTimerEnabled) {
|
||||||
|
this.duration = parseInt((this.hours * 3600)) + parseInt((this.minutes * 60)) + parseInt(this.seconds)
|
||||||
|
this.timeRemaining = this.duration
|
||||||
|
this.transportInterval = setInterval(() => this.stop(), this.duration * 1000 + 100)
|
||||||
|
this.timeRemainingInterval = setInterval(() => this.startTimer(), 1000)
|
||||||
|
Tone.Transport.loopEnd = this.duration
|
||||||
|
|
||||||
|
this.noise.sync().start(0).stop(this.duration)
|
||||||
|
} else {
|
||||||
|
this.noise.sync().start(0)
|
||||||
|
}
|
||||||
|
|
||||||
this.loadedSamples.forEach(s => {
|
this.loadedSamples.forEach(s => {
|
||||||
this.players.player(s.id).loop = true
|
this.players.player(s.id).loop = true
|
||||||
this.players.player(s.id).fadeIn = s.fadeIn
|
this.players.player(s.id).fadeIn = s.fadeIn
|
||||||
if (s.loopPointsEnabled) {
|
if (s.loopPointsEnabled) {
|
||||||
this.players.player(s.id).setLoopPoints(s.loopStart, s.loopEnd)
|
this.players.player(s.id).setLoopPoints(s.loopStart, s.loopEnd)
|
||||||
|
} else {
|
||||||
|
this.players.player(s.id).setLoopPoints(0, this.players.player(s.id).buffer.duration)
|
||||||
}
|
}
|
||||||
this.players.player(s.id).volume.value = s.volume
|
this.players.player(s.id).volume.value = s.volume
|
||||||
|
|
||||||
|
this.players.player(s.id).disconnect()
|
||||||
|
if (s.reverbEnabled) {
|
||||||
|
const reverb = new Tone.Reverb(s.reverbDecay).toDestination()
|
||||||
|
reverb.set({ preDelay: s.reverbPreDelay, wet: s.reverbWet })
|
||||||
|
this.players.player(s.id).connect(reverb)
|
||||||
|
} else {
|
||||||
|
this.players.player(s.id).toDestination()
|
||||||
|
}
|
||||||
|
|
||||||
|
if (s.playbackMode === 'sporadic') {
|
||||||
|
this.players.player(s.id).loop = false
|
||||||
|
|
||||||
|
const maxInt = parseInt(s.sporadicMax, 10)
|
||||||
|
const minInt = parseInt(s.sporadicMin, 10)
|
||||||
|
|
||||||
|
if (minInt <= maxInt) {
|
||||||
|
const rand = Math.floor(Math.random() * (maxInt - minInt + 1) + minInt)
|
||||||
|
s.initialSporadicPlayInterval = setInterval(() => this.playSporadicSample(s.id), rand * 1000)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.players.player(s.id).loop = true
|
||||||
|
|
||||||
|
if (this.isTimerEnabled) {
|
||||||
|
this.players.player(s.id).unsync().sync().start(0).stop(this.duration)
|
||||||
|
} else {
|
||||||
|
this.players.player(s.id).unsync().sync().start(0)
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (this.isTimerEnabled) {
|
Tone.Transport.start('+0.1')
|
||||||
this.duration = parseInt((this.hours * 3600)) + parseInt((this.minutes * 60)) + parseInt(this.seconds)
|
},
|
||||||
this.noise.sync().start(0).stop(this.duration)
|
playSporadicSample (id) {
|
||||||
Tone.Transport.loopEnd = this.duration
|
const sample = this.loadedSamples.find(s => s.id === id)
|
||||||
this.timeRemaining = this.duration
|
|
||||||
this.transportInterval = setInterval(() => this.stop(), this.duration * 1000 + 100)
|
|
||||||
this.timeRemainingInterval = setInterval(() => this.startTimer(), 1000)
|
|
||||||
|
|
||||||
this.loadedSamples.forEach(s => {
|
clearInterval(sample.initialSporadicPlayInterval)
|
||||||
this.players.player(s.id).unsync().sync().start(0).stop(this.duration)
|
clearInterval(sample.sporadicInterval)
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.noise.sync().start(0)
|
|
||||||
|
|
||||||
this.loadedSamples.forEach(s => {
|
this.players.player(id).unsync().sync().start()
|
||||||
this.players.player(s.id).unsync().sync().start(0)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
Tone.Transport.start()
|
const maxInt = parseInt(sample.sporadicMax, 10)
|
||||||
|
const minInt = parseInt(sample.sporadicMin, 10)
|
||||||
|
sample.playNextTime = Math.floor(Math.random() * (maxInt - minInt + 1) + minInt)
|
||||||
|
|
||||||
|
sample.sporadicInterval = setInterval(() => this.playSporadicSample(id), sample.playNextTime * 1000)
|
||||||
},
|
},
|
||||||
stop () {
|
stop () {
|
||||||
clearInterval(this.transportInterval)
|
clearInterval(this.transportInterval)
|
||||||
@@ -216,6 +264,13 @@ export default {
|
|||||||
clearInterval(this.timeRemainingInterval)
|
clearInterval(this.timeRemainingInterval)
|
||||||
this.timeRemaining = 0
|
this.timeRemaining = 0
|
||||||
this.duration = 0
|
this.duration = 0
|
||||||
|
|
||||||
|
this.loadedSamples.forEach(s => {
|
||||||
|
if (s.playbackMode === 'sporadic') {
|
||||||
|
clearInterval(s.initialSporadicPlayInterval)
|
||||||
|
clearInterval(s.sporadicInterval)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
startTimer () {
|
startTimer () {
|
||||||
this.timeRemaining -= 1
|
this.timeRemaining -= 1
|
||||||
@@ -289,7 +344,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.exportedProfile = this.profileItems[0]
|
this.exportedProfile = this.profileItems[0]
|
||||||
this.recordedProfile = this.profileItems[0]
|
this.recordedProfile = this.profileItems[0]
|
||||||
this.loadProfile()
|
this.loadProfile(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -365,8 +420,8 @@ export default {
|
|||||||
this.errorSnackbar = true
|
this.errorSnackbar = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
loadProfile () {
|
loadProfile (checkForUnsavedWork) {
|
||||||
if (this.unsavedWork) {
|
if (checkForUnsavedWork && this.unsavedWork) {
|
||||||
this.confirmSwitchProfileDialog = true
|
this.confirmSwitchProfileDialog = true
|
||||||
} else {
|
} else {
|
||||||
this.$http.get('/profiles/'.concat(this.selectedProfile.id))
|
this.$http.get('/profiles/'.concat(this.selectedProfile.id))
|
||||||
@@ -470,6 +525,8 @@ export default {
|
|||||||
this.checkedSamples.forEach(i => {
|
this.checkedSamples.forEach(i => {
|
||||||
const load = this.allSamples.find(e => e.id === i)
|
const load = this.allSamples.find(e => e.id === i)
|
||||||
load.volume = -10
|
load.volume = -10
|
||||||
|
load.sporadicMin = 30
|
||||||
|
load.sporadicMax = 300
|
||||||
this.loadedSamples.push(load)
|
this.loadedSamples.push(load)
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -489,6 +546,9 @@ export default {
|
|||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.canUpload = response.data.user.canUpload
|
this.canUpload = response.data.user.canUpload
|
||||||
this.$vuetify.theme.dark = response.data.user.darkMode
|
this.$vuetify.theme.dark = response.data.user.darkMode
|
||||||
|
const preferences = response.data.user.preferences
|
||||||
|
this.$vuetify.theme.themes.dark.primary = preferences.accentColor.hex
|
||||||
|
this.$vuetify.theme.themes.light.primary = preferences.accentColor.hex
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -649,6 +709,13 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
updatePreviewSampleLoopPoints () {
|
||||||
|
if (this.previewSampleLoopPointsEnabled) {
|
||||||
|
this.samplePreviewPlayer.setLoopPoints(this.previewSampleLoopStart, this.previewSampleLoopEnd)
|
||||||
|
} else {
|
||||||
|
this.samplePreviewPlayer.setLoopPoints(0, this.samplePreviewPlayer.buffer.duration)
|
||||||
|
}
|
||||||
|
},
|
||||||
previewSample () {
|
previewSample () {
|
||||||
if (this.previewSamplePlaying) {
|
if (this.previewSamplePlaying) {
|
||||||
this.previewSamplePlaying = false
|
this.previewSamplePlaying = false
|
||||||
@@ -669,7 +736,16 @@ export default {
|
|||||||
}).then(response => {
|
}).then(response => {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.getSamples()
|
this.getSamples()
|
||||||
this.loadProfile()
|
|
||||||
|
// Update sample if it's already loaded in current profile
|
||||||
|
const sample = this.loadedSamples.find(s => s.id === this.selectedPreviewSample.id)
|
||||||
|
if (sample) {
|
||||||
|
sample.fadeIn = this.previewSampleFadeIn
|
||||||
|
sample.loopPointsEnabled = this.previewSampleLoopPointsEnabled
|
||||||
|
sample.loopStart = this.previewSampleLoopStart
|
||||||
|
sample.loopEnd = this.previewSampleLoopEnd
|
||||||
|
}
|
||||||
|
|
||||||
this.closeEditSampleForm()
|
this.closeEditSampleForm()
|
||||||
this.infoSnackbarText = 'Sample Saved'
|
this.infoSnackbarText = 'Sample Saved'
|
||||||
this.infoSnackbar = true
|
this.infoSnackbar = true
|
||||||
@@ -693,6 +769,9 @@ export default {
|
|||||||
this.profileMoreDialog = false
|
this.profileMoreDialog = false
|
||||||
},
|
},
|
||||||
startRecording () {
|
startRecording () {
|
||||||
|
// Save current profile before recording
|
||||||
|
this.updateProfile()
|
||||||
|
|
||||||
this.$http.get('/profiles/'.concat(this.recordedProfile.id))
|
this.$http.get('/profiles/'.concat(this.recordedProfile.id))
|
||||||
.then(async response => {
|
.then(async response => {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
@@ -761,22 +840,45 @@ export default {
|
|||||||
this.players.player(s.id).fadeIn = s.fadeIn
|
this.players.player(s.id).fadeIn = s.fadeIn
|
||||||
if (s.loopPointsEnabled) {
|
if (s.loopPointsEnabled) {
|
||||||
this.players.player(s.id).setLoopPoints(s.loopStart, s.loopEnd)
|
this.players.player(s.id).setLoopPoints(s.loopStart, s.loopEnd)
|
||||||
|
} else {
|
||||||
|
this.players.player(s.id).setLoopPoints(0, this.players.player(s.id).buffer.duration)
|
||||||
}
|
}
|
||||||
this.players.player(s.id).volume.value = s.volume
|
this.players.player(s.id).volume.value = s.volume
|
||||||
|
|
||||||
this.players.player(s.id).connect(this.recorder)
|
this.players.player(s.id).disconnect()
|
||||||
this.players.player(s.id).unsync().sync().start(0)
|
if (s.reverbEnabled) {
|
||||||
|
const reverb = new Tone.Reverb(s.reverbDecay).connect(this.recorder).toDestination()
|
||||||
|
reverb.set({ preDelay: s.reverbPreDelay, wet: s.reverbWet })
|
||||||
|
this.players.player(s.id).connect(reverb)
|
||||||
|
} else {
|
||||||
|
this.players.player(s.id).connect(this.recorder).toDestination()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.noise.sync().start(0)
|
this.noise.sync().start(0)
|
||||||
|
|
||||||
Tone.Transport.start()
|
this.loadedSamples.forEach(s => {
|
||||||
|
if (s.playbackMode === 'sporadic') {
|
||||||
|
this.players.player(s.id).loop = false
|
||||||
|
|
||||||
|
const maxInt = parseInt(s.sporadicMax, 10)
|
||||||
|
const minInt = parseInt(s.sporadicMin, 10)
|
||||||
|
const rand = Math.floor(Math.random() * (maxInt - minInt + 1) + minInt)
|
||||||
|
|
||||||
|
s.initialSporadicPlayInterval = setInterval(() => this.playSporadicSample(s.id), rand * 1000)
|
||||||
|
} else {
|
||||||
|
this.players.player(s.id).loop = true
|
||||||
|
this.players.player(s.id).unsync().sync().start(0)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
Tone.Transport.start('+0.1')
|
||||||
},
|
},
|
||||||
async stopRecording () {
|
async stopRecording () {
|
||||||
const recording = await this.recorder.stop()
|
const recording = await this.recorder.stop()
|
||||||
|
|
||||||
// Set active profile back to the selected one
|
// Set active profile back to the selected one
|
||||||
this.loadProfile()
|
this.loadProfile(false)
|
||||||
|
|
||||||
const url = URL.createObjectURL(recording)
|
const url = URL.createObjectURL(recording)
|
||||||
const anchor = document.createElement('a')
|
const anchor = document.createElement('a')
|
||||||
@@ -785,6 +887,14 @@ export default {
|
|||||||
anchor.click()
|
anchor.click()
|
||||||
|
|
||||||
clearInterval(this.recordingInterval)
|
clearInterval(this.recordingInterval)
|
||||||
|
|
||||||
|
this.loadedSamples.forEach(s => {
|
||||||
|
if (s.playbackMode === 'sporadic') {
|
||||||
|
clearInterval(s.initialSporadicPlayInterval)
|
||||||
|
clearInterval(s.sporadicInterval)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
this.recordingDialog = false
|
this.recordingDialog = false
|
||||||
this.stop()
|
this.stop()
|
||||||
},
|
},
|
||||||
@@ -792,7 +902,7 @@ export default {
|
|||||||
await this.recorder.stop()
|
await this.recorder.stop()
|
||||||
|
|
||||||
// Set active profile back to the selected one
|
// Set active profile back to the selected one
|
||||||
this.loadProfile()
|
this.loadProfile(false)
|
||||||
|
|
||||||
clearInterval(this.recordingInterval)
|
clearInterval(this.recordingInterval)
|
||||||
this.recordingDialog = false
|
this.recordingDialog = false
|
||||||
@@ -800,7 +910,7 @@ export default {
|
|||||||
},
|
},
|
||||||
discardChanges () {
|
discardChanges () {
|
||||||
this.unsavedWork = false
|
this.unsavedWork = false
|
||||||
this.loadProfile()
|
this.loadProfile(true)
|
||||||
this.confirmSwitchProfileDialog = false
|
this.confirmSwitchProfileDialog = false
|
||||||
},
|
},
|
||||||
saveChanges () {
|
saveChanges () {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Vuetify from 'vuetify/lib/framework'
|
import Vuetify from 'vuetify/lib'
|
||||||
|
|
||||||
import colors from 'vuetify/lib/util/colors'
|
import colors from 'vuetify/lib/util/colors'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user