Compare commits

...

26 Commits

Author SHA1 Message Date
Kay Thomas
d83639b5c6 Merge pull request #54 from kaythomas0/v0.6.9
v0.6.9
2023-02-15 19:44:29 -08:00
Kevin Thomas
5d3a6fb912 Bump to v0.6.9 2023-02-15 16:56:11 -08:00
Kay Thomas
722e0600f1 Merge pull request #53 from kaythomas0/dependabot/npm_and_yarn/sideway/formula-3.0.1
Bump @sideway/formula from 3.0.0 to 3.0.1
2023-02-15 16:54:17 -08:00
dependabot[bot]
cd65c0b714 Bump @sideway/formula from 3.0.0 to 3.0.1
Bumps [@sideway/formula](https://github.com/sideway/formula) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sideway/formula/releases)
- [Commits](https://github.com/sideway/formula/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: "@sideway/formula"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-09 04:23:55 +00:00
Kay Thomas
d73afdb68c Merge pull request #51 from kaythomas0/v0.6.8
v0.6.8
2023-01-09 12:07:01 -08:00
Kevin Thomas
e72503e91e Bump to v0.6.8 2023-01-09 11:26:07 -08:00
Kay Thomas
294a4e4dec Merge pull request #50 from kaythomas0/dependabot/npm_and_yarn/json5-1.0.2
Bump json5 from 1.0.1 to 1.0.2
2023-01-09 11:24:33 -08:00
dependabot[bot]
21fda5ce04 Bump json5 from 1.0.1 to 1.0.2
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-08 08:05:24 +00:00
Kay Thomas
17301b5b31 Merge pull request #49 from kaythomas0/dev
Update dependabot.yml
2022-11-19 15:58:28 -08:00
Kay Thomas
923f5bb52e Update dependabot.yml 2022-11-19 15:57:32 -08:00
Kay Thomas
0cac4f2d5a Merge pull request #48 from kaythomas0/v0.6.7
v0.6.7
2022-11-17 18:00:01 -08:00
Kay Thomas
5b99b8cfc2 Upgrade Vue CLI 2022-11-17 01:38:35 -08:00
Kay Thomas
1ae403171e Merge pull request #46 from kaythomas0/dev
Disable version updates for npm dependencies
2022-11-10 10:32:29 -08:00
Kevin Thomas
c329f4f70a Disable version updates for npm dependencies 2022-11-10 10:31:43 -08:00
Kay Thomas
f1654d39ca Merge pull request #40 from kaythomas0/v0.6.6
v0.6.6
2022-11-10 10:24:29 -08:00
Kevin Thomas
a698934823 Fix loader-utils vulnerability 2022-11-10 09:27:29 -08:00
Kevin Thomas
0ec92bad85 Add dependabot.yml 2022-11-10 09:23:14 -08:00
Kay Thomas
0bb814e763 Merge pull request #37 from kaythomas0/v0.6.5
v0.6.5
2022-09-23 11:22:41 -07:00
Kay Thomas
621576db14 Bump vuetify from 2.6.6 to 2.6.10
Bumps [vuetify](https://github.com/vuetifyjs/vuetify/tree/HEAD/packages/vuetify) from 2.6.6 to 2.6.10.
- [Release notes](https://github.com/vuetifyjs/vuetify/releases)
- [Commits](https://github.com/vuetifyjs/vuetify/commits/v2.6.10/packages/vuetify)

---
updated-dependencies:
- dependency-name: vuetify
  dependency-type: direct:production
...
2022-09-21 22:58:38 -07:00
Kay Thomas
80969ca029 Merge pull request #35 from kaythomas0/v0.6.4
v0.6.4
2022-09-12 22:29:59 -07:00
Kevin Thomas
26fc54054f Fix bug that causes editing a sample to discard unsaved work 2022-09-11 21:17:45 -07:00
Kay Thomas
8a1fc99fb5 Merge pull request #34 from kaythomas0/v0.6.3
v0.6.3
2022-09-11 17:38:08 -07:00
Kevin Thomas
e6cc5b36c5 Fix typo 2022-09-11 15:11:17 -07:00
Kevin Thomas
6c4c24c166 Fix unwanted display of unsaved work dialog 2022-09-06 02:36:36 -07:00
Kevin Thomas
9466ed692b Use strict sameSite cookies 2022-09-06 02:36:19 -07:00
Kevin Thomas
5ace3d9996 Update package*.json 2022-09-06 02:35:54 -07:00
6 changed files with 2498 additions and 2571 deletions

8
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
# Disable version updates for npm dependencies
open-pull-requests-limit: 0

5010
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "noisedash", "name": "noisedash",
"version": "0.6.2", "version": "0.6.9",
"private": true, "private": true,
"author": "Kay Thomas <kaythomas@pm.me> (https://kaythomas.dev)", "author": "Kay Thomas <kaythomas@pm.me> (https://kaythomas.dev)",
"scripts": { "scripts": {
@@ -27,16 +27,16 @@
"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": {
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16", "@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "^5.0.4", "@vue/cli-plugin-babel": "^5.0.8",
"@vue/cli-plugin-eslint": "^5.0.4", "@vue/cli-plugin-eslint": "^5.0.8",
"@vue/cli-plugin-router": "^5.0.4", "@vue/cli-plugin-router": "^5.0.8",
"@vue/cli-service": "^5.0.4", "@vue/cli-service": "^5.0.8",
"@vue/eslint-config-standard": "^6.1.0", "@vue/eslint-config-standard": "^6.1.0",
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-plugin-html": "^6.2.0", "eslint-plugin-html": "^6.2.0",
@@ -47,7 +47,7 @@
"eslint-plugin-vue": "^8.0.3", "eslint-plugin-vue": "^8.0.3",
"sass": "~1.32.0", "sass": "~1.32.0",
"sass-loader": "^10.0.0", "sass-loader": "^10.0.0",
"vue-cli-plugin-vuetify": "^2.5.0", "vue-cli-plugin-vuetify": "^2.5.8",
"vue-template-compiler": "^2.6.11", "vue-template-compiler": "^2.6.11",
"vuetify-loader": "^1.7.3" "vuetify-loader": "^1.7.3"
}, },

View File

@@ -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 || []

View File

@@ -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
@@ -788,7 +788,7 @@
value="continuous" value="continuous"
/> />
<v-radio <v-radio
label="Sporadic (Not Looped, Plays Randomly Within Interval" label="Sporadic (Not Looped, Plays Randomly Within Interval)"
value="sporadic" value="sporadic"
/> />
</v-radio-group> </v-radio-group>
@@ -1026,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"

View File

@@ -344,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)
} }
} }
}) })
@@ -420,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))
@@ -736,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
@@ -760,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) {
@@ -866,7 +878,7 @@ export default {
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')
@@ -890,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
@@ -898,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 () {