forked from external-repos/noisedash
Compare commits
24 Commits
old-docker
...
v0.4.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2b6f1245c | ||
|
|
9400959852 | ||
|
|
72a7f99850 | ||
|
|
f40e6d47f4 | ||
|
|
4ab595f3a1 | ||
|
|
625ce328dd | ||
|
|
411270b850 | ||
|
|
2cc5051ab4 | ||
|
|
ff902fac16 | ||
|
|
8e1a8aeb05 | ||
|
|
fa59f8ebfe | ||
|
|
f8289ad4d1 | ||
|
|
5fb7066e59 | ||
|
|
6cc6493ee6 | ||
|
|
c97c87f58c | ||
|
|
4bc985d36e | ||
|
|
c6ff0b6def | ||
|
|
319be778b0 | ||
|
|
86141a124c | ||
|
|
8ad174b0af | ||
|
|
c485b0a786 | ||
|
|
e13a056706 | ||
|
|
232163064e | ||
|
|
5a5660c361 |
@@ -8,7 +8,7 @@ module.exports = {
|
|||||||
'@vue/standard'
|
'@vue/standard'
|
||||||
],
|
],
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
parser: 'babel-eslint'
|
parser: '@babel/eslint-parser'
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
|||||||
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1,3 +1,4 @@
|
|||||||
# These are supported funding model platforms
|
# These are supported funding model platforms
|
||||||
|
|
||||||
github: kaythomas0
|
github: kaythomas0
|
||||||
|
custom: "https://kaythomas.dev/cryptocurrency.html"
|
||||||
|
|||||||
34
.github/workflows/docker-image.yml
vendored
Normal file
34
.github/workflows/docker-image.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: Docker Image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
buildx:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: noisedash/noisedash:latest,noisedash/noisedash:${{ github.ref_name }}
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
## Project setup
|
## Project setup
|
||||||
|
Requires [Node](https://nodejs.org/en/download/) and [Vue CLI](https://cli.vuejs.org/guide/installation.html)
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
@@ -23,5 +25,22 @@ npm run build
|
|||||||
npm run lint
|
npm run lint
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Directory Summary
|
||||||
|
|
||||||
|
Here are some of the more important files and directories:
|
||||||
|
|
||||||
|
* `config/default.json`: Contains the default configuration file
|
||||||
|
* `server/*`: Where all of the node server related code is
|
||||||
|
* `server/app.js`: The main server file where server settings are set
|
||||||
|
* `server/db.js`: Where the database is created
|
||||||
|
* `server/logger.js`: Where the logger is created and configured
|
||||||
|
* `server/bin/www.js`: The entry point of the server application (what you run to start the server)
|
||||||
|
* `server/boot/*`: These are run on server startup
|
||||||
|
* `server/routes/*`: Where all of the server routes and logic are defined
|
||||||
|
* `src/*`: Contains all the frontend code
|
||||||
|
* `src/components/*`: Where all of the Vue components are defined, split into vue and js files for each component
|
||||||
|
* `src/router/index.js`: Where all the routing and route-protection logic is defined
|
||||||
|
* `src/views/*`: Contains all the views
|
||||||
|
|
||||||
### Customize configuration
|
### Customize configuration
|
||||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ Self-hostable web tool for generating ambient noises
|
|||||||
# Features
|
# Features
|
||||||
|
|
||||||
* 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
|
* 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 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
|
||||||
* Use admin tools to manage multiple users
|
* Use admin tools to manage multiple users
|
||||||
* Mobile friendly
|
* Mobile friendly
|
||||||
|
|
||||||
|
|||||||
13574
package-lock.json
generated
13574
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
53
package.json
53
package.json
@@ -1,18 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "noisedash",
|
"name": "noisedash",
|
||||||
"descriptions": "Self-hostable web tool for generating ambient noises",
|
"version": "0.4.0",
|
||||||
"homepage": "https://github.com/kaythomas0/noisedash",
|
|
||||||
"bugs": "https://github.com/kaythomas0/noisedash/issues",
|
|
||||||
"license": "AGPL-3.0-or-later",
|
|
||||||
"author": "Kay Thomas <kaythomas@pm.me> (https://kaythomas.dev)",
|
|
||||||
"version": "0.2.0",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"author": "Kay Thomas <kaythomas@pm.me> (https://kaythomas.dev)",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"server": "node server/bin/www.js",
|
|
||||||
"server-prod": "NODE_ENV=production node server/bin/www.js",
|
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint",
|
||||||
|
"server": "node server/bin/www.js",
|
||||||
|
"server-prod": "NODE_ENV=production node server/bin/www.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vscode/sqlite3": "^5.0.8",
|
"@vscode/sqlite3": "^5.0.8",
|
||||||
@@ -20,9 +16,9 @@
|
|||||||
"config": "^3.3.6",
|
"config": "^3.3.6",
|
||||||
"connect-history-api-fallback": "^1.6.0",
|
"connect-history-api-fallback": "^1.6.0",
|
||||||
"cookie-parser": "^1.4.5",
|
"cookie-parser": "^1.4.5",
|
||||||
"core-js": "^3.19.1",
|
"core-js": "^3.22.7",
|
||||||
"express": "^4.17.1",
|
"express": "^4.18.1",
|
||||||
"express-session": "^1.17.2",
|
"express-session": "^1.17.3",
|
||||||
"multer": "^1.4.3",
|
"multer": "^1.4.3",
|
||||||
"passport": "^0.4.1",
|
"passport": "^0.4.1",
|
||||||
"passport-local": "^1.0.0",
|
"passport-local": "^1.0.0",
|
||||||
@@ -30,28 +26,33 @@
|
|||||||
"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.3",
|
"vue-router": "^3.5.4",
|
||||||
"vuetify": "^2.5.12",
|
"vuetify": "^2.6.6",
|
||||||
"winston": "^3.3.3"
|
"winston": "^3.3.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "^4.5.15",
|
"@babel/core": "^7.12.16",
|
||||||
"@vue/cli-plugin-eslint": "^4.5.15",
|
"@babel/eslint-parser": "^7.12.16",
|
||||||
"@vue/cli-plugin-router": "^4.5.15",
|
"@vue/cli-plugin-babel": "^5.0.4",
|
||||||
"@vue/cli-service": "^4.5.15",
|
"@vue/cli-plugin-eslint": "^5.0.4",
|
||||||
"@vue/eslint-config-standard": "^5.1.2",
|
"@vue/cli-plugin-router": "^5.0.4",
|
||||||
"babel-eslint": "^10.1.0",
|
"@vue/cli-service": "^5.0.4",
|
||||||
"eslint": "^6.7.2",
|
"@vue/eslint-config-standard": "^6.1.0",
|
||||||
|
"eslint": "^7.32.0",
|
||||||
"eslint-plugin-html": "^6.2.0",
|
"eslint-plugin-html": "^6.2.0",
|
||||||
"eslint-plugin-import": "^2.25.2",
|
"eslint-plugin-import": "^2.25.3",
|
||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"eslint-plugin-promise": "^4.2.1",
|
"eslint-plugin-promise": "^5.1.0",
|
||||||
"eslint-plugin-standard": "^4.0.0",
|
"eslint-plugin-standard": "^4.0.0",
|
||||||
"eslint-plugin-vue": "^6.2.2",
|
"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.4.3",
|
"vue-cli-plugin-vuetify": "^2.5.0",
|
||||||
"vue-template-compiler": "^2.6.11",
|
"vue-template-compiler": "^2.6.11",
|
||||||
"vuetify-loader": "^1.7.3"
|
"vuetify-loader": "^1.7.3"
|
||||||
}
|
},
|
||||||
|
"bugs": "https://github.com/kaythomas0/noisedash/issues",
|
||||||
|
"descriptions": "Self-hostable web tool for generating ambient noises",
|
||||||
|
"homepage": "https://github.com/kaythomas0/noisedash",
|
||||||
|
"license": "AGPL-3.0-or-later"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
v-model="changePasswordDialog"
|
v-model="changePasswordDialog"
|
||||||
max-width="600px"
|
max-width="600px"
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ on, attrs }">
|
<template #activator="{ on, attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
class="my-3"
|
class="my-3"
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
>
|
>
|
||||||
{{ snackbarText }}
|
{{ snackbarText }}
|
||||||
|
|
||||||
<template v-slot:action="{ attrs }">
|
<template #action="{ attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
text
|
text
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
v-model="registerUserDialog"
|
v-model="registerUserDialog"
|
||||||
max-width="600px"
|
max-width="600px"
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ on, attrs }">
|
<template #activator="{ on, attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
v-on="on"
|
v-on="on"
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
>
|
>
|
||||||
{{ snackbarText }}
|
{{ snackbarText }}
|
||||||
|
|
||||||
<template v-slot:action="{ attrs }">
|
<template #action="{ attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
text
|
text
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-list-item-group>
|
</v-list-item-group>
|
||||||
</v-list>
|
</v-list>
|
||||||
<template v-slot:append>
|
<template #append>
|
||||||
<v-btn
|
<v-btn
|
||||||
block
|
block
|
||||||
href="https://github.com/kaythomas0/noisedash"
|
href="https://github.com/kaythomas0/noisedash"
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
>
|
>
|
||||||
{{ snackbarText }}
|
{{ snackbarText }}
|
||||||
|
|
||||||
<template v-slot:action="{ attrs }">
|
<template #action="{ attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
text
|
text
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
@@ -66,14 +66,14 @@
|
|||||||
class="mx-3 my-3"
|
class="mx-3 my-3"
|
||||||
@click="updateProfile"
|
@click="updateProfile"
|
||||||
>
|
>
|
||||||
Save Profile
|
{{ unsavedWork ? 'Save Profile*' : 'Save Profile' }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
|
||||||
<v-dialog
|
<v-dialog
|
||||||
v-model="profileDialog"
|
v-model="profileDialog"
|
||||||
max-width="600px"
|
max-width="600px"
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ on, attrs }">
|
<template #activator="{ on, attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
class="mx-3 my-3"
|
class="mx-3 my-3"
|
||||||
@@ -90,18 +90,16 @@
|
|||||||
>
|
>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>
|
<v-card-title>
|
||||||
<span class="text-h5">Profile Name</span>
|
<span class="text-h5">Save Profile As...</span>
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-container>
|
<v-container>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12">
|
<v-text-field
|
||||||
<v-text-field
|
v-model="profileName"
|
||||||
v-model="profileName"
|
label="Profile Name"
|
||||||
label="Profile Name"
|
:rules="[rules.required()]"
|
||||||
:rules="[rules.required()]"
|
/>
|
||||||
/>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-container>
|
</v-container>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
@@ -129,7 +127,7 @@
|
|||||||
v-model="profileMoreDialog"
|
v-model="profileMoreDialog"
|
||||||
max-width="600px"
|
max-width="600px"
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ on, attrs }">
|
<template #activator="{ on, attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
class="mx-3 my-3"
|
class="mx-3 my-3"
|
||||||
@@ -168,6 +166,16 @@
|
|||||||
Export Profile
|
Export Profile
|
||||||
</v-list-item-title>
|
</v-list-item-title>
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
|
<v-list-item
|
||||||
|
@click="openStartRecordingDialog"
|
||||||
|
>
|
||||||
|
<v-list-item-icon>
|
||||||
|
<v-icon>mdi-record</v-icon>
|
||||||
|
</v-list-item-icon>
|
||||||
|
<v-list-item-title>
|
||||||
|
Record Profile Audio
|
||||||
|
</v-list-item-title>
|
||||||
|
</v-list-item>
|
||||||
</v-list-item-group>
|
</v-list-item-group>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -252,7 +260,6 @@
|
|||||||
:items="profileItems"
|
:items="profileItems"
|
||||||
return-object
|
return-object
|
||||||
label="Profiles"
|
label="Profiles"
|
||||||
class="mx-3 mb-5"
|
|
||||||
/>
|
/>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-container>
|
</v-container>
|
||||||
@@ -274,6 +281,120 @@
|
|||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
|
<v-dialog
|
||||||
|
v-model="startRecordingDialog"
|
||||||
|
max-width="600px"
|
||||||
|
>
|
||||||
|
<v-form
|
||||||
|
ref="startRecordingForm"
|
||||||
|
v-model="isRecordingValid"
|
||||||
|
>
|
||||||
|
<v-card>
|
||||||
|
<v-card-title>
|
||||||
|
<span class="text-h5">Start Recording</span>
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text>
|
||||||
|
<v-container>
|
||||||
|
<v-row>
|
||||||
|
<p>Select profile to record audio for. This is only supported on Chrome and Firefox.</p>
|
||||||
|
</v-row>
|
||||||
|
<v-row>
|
||||||
|
<v-select
|
||||||
|
v-model="recordedProfile"
|
||||||
|
:items="profileItems"
|
||||||
|
return-object
|
||||||
|
label="Profiles"
|
||||||
|
/>
|
||||||
|
</v-row>
|
||||||
|
<v-row>
|
||||||
|
<v-text-field
|
||||||
|
v-model="recordingFileName"
|
||||||
|
label="File Name"
|
||||||
|
:rules="[rules.required()]"
|
||||||
|
/>
|
||||||
|
</v-row>
|
||||||
|
</v-container>
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer />
|
||||||
|
<v-btn
|
||||||
|
text
|
||||||
|
@click="startRecordingDialog = false"
|
||||||
|
>
|
||||||
|
Close
|
||||||
|
</v-btn>
|
||||||
|
<v-btn
|
||||||
|
text
|
||||||
|
:disabled="!isRecordingValid"
|
||||||
|
@click="startRecording"
|
||||||
|
>
|
||||||
|
Record
|
||||||
|
</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-form>
|
||||||
|
</v-dialog>
|
||||||
|
|
||||||
|
<v-dialog
|
||||||
|
v-model="recordingDialog"
|
||||||
|
max-width="600px"
|
||||||
|
persistent
|
||||||
|
>
|
||||||
|
<v-card>
|
||||||
|
<v-card-title>
|
||||||
|
<span class="text-h5">Recording</span>
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text>
|
||||||
|
Time Elapsed: {{ recordingTimeElapsed }} Seconds
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer />
|
||||||
|
<v-btn
|
||||||
|
text
|
||||||
|
@click="cancelRecording"
|
||||||
|
>
|
||||||
|
Cancel
|
||||||
|
</v-btn>
|
||||||
|
<v-btn
|
||||||
|
text
|
||||||
|
@click="stopRecording"
|
||||||
|
>
|
||||||
|
Stop and Save
|
||||||
|
</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-dialog>
|
||||||
|
|
||||||
|
<v-dialog
|
||||||
|
v-model="confirmSwitchProfileDialog"
|
||||||
|
max-width="600px"
|
||||||
|
persistent
|
||||||
|
>
|
||||||
|
<v-card>
|
||||||
|
<v-card-title>
|
||||||
|
<span class="text-h5">Save Profile?</span>
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text>
|
||||||
|
You have unsaved work on your current profile. Would you like to save it before switching?
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer />
|
||||||
|
<v-btn
|
||||||
|
text
|
||||||
|
@click="discardChanges"
|
||||||
|
>
|
||||||
|
Discard Changes
|
||||||
|
</v-btn>
|
||||||
|
<v-btn
|
||||||
|
text
|
||||||
|
@click="saveChanges"
|
||||||
|
>
|
||||||
|
Save Profile
|
||||||
|
</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-dialog>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
@@ -345,7 +466,7 @@
|
|||||||
label="Volume"
|
label="Volume"
|
||||||
thumb-label
|
thumb-label
|
||||||
max="0"
|
max="0"
|
||||||
min="-30"
|
min="-60"
|
||||||
class="mx-3"
|
class="mx-3"
|
||||||
@input="updateVolume"
|
@input="updateVolume"
|
||||||
/>
|
/>
|
||||||
@@ -548,7 +669,7 @@
|
|||||||
label="Volume"
|
label="Volume"
|
||||||
thumb-label
|
thumb-label
|
||||||
max="0"
|
max="0"
|
||||||
min="-30"
|
min="-60"
|
||||||
class="mx-3"
|
class="mx-3"
|
||||||
@input="updateSampleVolume(sample.id, index)"
|
@input="updateSampleVolume(sample.id, index)"
|
||||||
/>
|
/>
|
||||||
@@ -565,7 +686,7 @@
|
|||||||
v-model="addSampleDialog"
|
v-model="addSampleDialog"
|
||||||
max-width="600px"
|
max-width="600px"
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ on, attrs }">
|
<template #activator="{ on, attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
class="mx-3 my-3 mb-5"
|
class="mx-3 my-3 mb-5"
|
||||||
@@ -625,7 +746,7 @@
|
|||||||
v-model="uploadSampleDialog"
|
v-model="uploadSampleDialog"
|
||||||
max-width="600px"
|
max-width="600px"
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ on, attrs }">
|
<template #activator="{ on, attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
class="mx-3 my-3 mb-5"
|
class="mx-3 my-3 mb-5"
|
||||||
@@ -646,9 +767,7 @@
|
|||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-container>
|
<v-container>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12">
|
<p><strong>WARNING:</strong> Uploaded samples are publicly accessible.</p>
|
||||||
<p><strong>WARNING:</strong> Uploaded samples are publicly accessible.</p>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-file-input
|
<v-file-input
|
||||||
@@ -659,13 +778,11 @@
|
|||||||
/>
|
/>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12">
|
<v-text-field
|
||||||
<v-text-field
|
v-model="sampleName"
|
||||||
v-model="sampleName"
|
label="Sample Name"
|
||||||
label="Sample Name"
|
:rules="[rules.required()]"
|
||||||
:rules="[rules.required()]"
|
/>
|
||||||
/>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-container>
|
</v-container>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
@@ -693,7 +810,7 @@
|
|||||||
v-model="editSampleDialog"
|
v-model="editSampleDialog"
|
||||||
max-width="600px"
|
max-width="600px"
|
||||||
>
|
>
|
||||||
<template v-slot:activator="{ on, attrs }">
|
<template #activator="{ on, attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
class="mx-3 my-3 mb-5"
|
class="mx-3 my-3 mb-5"
|
||||||
@@ -711,7 +828,7 @@
|
|||||||
>
|
>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>
|
<v-card-title>
|
||||||
<span class="text-h5">Edit Sample</span>
|
<span class="text-h5">Edit Samples</span>
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-container>
|
<v-container>
|
||||||
@@ -722,7 +839,6 @@
|
|||||||
item-text="name"
|
item-text="name"
|
||||||
return-object
|
return-object
|
||||||
label="Samples"
|
label="Samples"
|
||||||
class="mx-3"
|
|
||||||
@change="loadPreviewSample"
|
@change="loadPreviewSample"
|
||||||
/>
|
/>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -736,7 +852,6 @@
|
|||||||
v-model="previewSampleLoopPointsEnabled"
|
v-model="previewSampleLoopPointsEnabled"
|
||||||
:disabled="previewSamplePlaying"
|
:disabled="previewSamplePlaying"
|
||||||
label="Use Loop Points"
|
label="Use Loop Points"
|
||||||
class="mx-3"
|
|
||||||
/>
|
/>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
@@ -745,7 +860,7 @@
|
|||||||
v-model="previewSampleLoopStart"
|
v-model="previewSampleLoopStart"
|
||||||
type="number"
|
type="number"
|
||||||
label="Loop Start Time"
|
label="Loop Start Time"
|
||||||
class="mx-3"
|
class="mr-3"
|
||||||
:disabled="!previewSampleLoopPointsEnabled || previewSamplePlaying"
|
:disabled="!previewSampleLoopPointsEnabled || previewSamplePlaying"
|
||||||
:rules="[rules.gt(-1)]"
|
:rules="[rules.gt(-1)]"
|
||||||
@change="updatePreviewSamplePlayerLoopPoints"
|
@change="updatePreviewSamplePlayerLoopPoints"
|
||||||
@@ -755,7 +870,7 @@
|
|||||||
v-model="previewSampleLoopEnd"
|
v-model="previewSampleLoopEnd"
|
||||||
type="number"
|
type="number"
|
||||||
label="Loop End Time"
|
label="Loop End Time"
|
||||||
class="mx-3"
|
class="ml-3"
|
||||||
:disabled="!previewSampleLoopPointsEnabled || previewSamplePlaying"
|
:disabled="!previewSampleLoopPointsEnabled || previewSamplePlaying"
|
||||||
:rules="[rules.gt(-1), rules.lt(previewSampleLength)]"
|
:rules="[rules.gt(-1), rules.lt(previewSampleLength)]"
|
||||||
@change="updatePreviewSamplePlayerLoopPoints"
|
@change="updatePreviewSamplePlayerLoopPoints"
|
||||||
@@ -767,7 +882,6 @@
|
|||||||
v-model="previewSampleFadeIn"
|
v-model="previewSampleFadeIn"
|
||||||
type="number"
|
type="number"
|
||||||
label="Fade In Time"
|
label="Fade In Time"
|
||||||
class="mx-3"
|
|
||||||
:disabled="previewSamplePlaying"
|
:disabled="previewSamplePlaying"
|
||||||
:rules="[rules.gt(-1)]"
|
:rules="[rules.gt(-1)]"
|
||||||
@change="updatePreviewSamplePlayerFadeIn"
|
@change="updatePreviewSamplePlayerFadeIn"
|
||||||
@@ -812,7 +926,7 @@
|
|||||||
>
|
>
|
||||||
{{ infoSnackbarText }}
|
{{ infoSnackbarText }}
|
||||||
|
|
||||||
<template v-slot:action="{ attrs }">
|
<template #action="{ attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
text
|
text
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
@@ -830,7 +944,7 @@
|
|||||||
>
|
>
|
||||||
{{ errorSnackbarText }}
|
{{ errorSnackbarText }}
|
||||||
|
|
||||||
<template v-slot:action="{ attrs }">
|
<template #action="{ attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
text
|
text
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
export default {
|
export default {
|
||||||
name: 'Admin',
|
name: 'Account',
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
currentUser: {},
|
currentUser: {},
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
export default {
|
export default {
|
||||||
|
name: 'Login',
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
valid: false,
|
valid: false,
|
||||||
username: '',
|
username: '',
|
||||||
|
|||||||
@@ -64,6 +64,17 @@ export default {
|
|||||||
previewSampleButtonText: 'Preview Sample',
|
previewSampleButtonText: 'Preview Sample',
|
||||||
previewSampleLoading: true,
|
previewSampleLoading: true,
|
||||||
previewSampleLength: 0,
|
previewSampleLength: 0,
|
||||||
|
startRecordingDialog: false,
|
||||||
|
recordingDialog: false,
|
||||||
|
recordingTimeElapsed: 0,
|
||||||
|
recordedProfile: {},
|
||||||
|
recordingFileName: '',
|
||||||
|
isRecordingValid: false,
|
||||||
|
unsavedWork: false,
|
||||||
|
saveProfileText: 'Save Profile',
|
||||||
|
unwatch: null,
|
||||||
|
confirmSwitchProfileDialog: false,
|
||||||
|
activeProfile: {},
|
||||||
errorSnackbar: false,
|
errorSnackbar: false,
|
||||||
errorSnackbarText: '',
|
errorSnackbarText: '',
|
||||||
rules: {
|
rules: {
|
||||||
@@ -88,6 +99,33 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
return samples
|
return samples
|
||||||
|
},
|
||||||
|
changeableSettings: function () {
|
||||||
|
const settings = [
|
||||||
|
this.isTimerEnabled,
|
||||||
|
this.hours,
|
||||||
|
this.minutes,
|
||||||
|
this.seconds,
|
||||||
|
this.volume,
|
||||||
|
this.noiseColor,
|
||||||
|
this.isFilterEnabled,
|
||||||
|
this.filterType,
|
||||||
|
this.filterCutoff,
|
||||||
|
this.isLFOFilterCutoffEnabled,
|
||||||
|
this.lfoFilterCutoffFrequency,
|
||||||
|
this.lfoFilterCutoffRange,
|
||||||
|
this.isTremoloEnabled,
|
||||||
|
this.tremoloDepth,
|
||||||
|
this.tremoloFrequency,
|
||||||
|
this.isTimerEnabled,
|
||||||
|
this.loadedSamples
|
||||||
|
]
|
||||||
|
|
||||||
|
this.loadedSamples.forEach(s => {
|
||||||
|
settings.push(s.volume)
|
||||||
|
})
|
||||||
|
|
||||||
|
return settings
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -98,6 +136,7 @@ export default {
|
|||||||
this.players = new Tone.Players()
|
this.players = new Tone.Players()
|
||||||
this.samplePreviewPlayer = new Tone.Player().toDestination()
|
this.samplePreviewPlayer = new Tone.Player().toDestination()
|
||||||
this.samplePreviewPlayer.loop = true
|
this.samplePreviewPlayer.loop = true
|
||||||
|
this.recorder = new Tone.Recorder()
|
||||||
|
|
||||||
this.populateProfileItems(0)
|
this.populateProfileItems(0)
|
||||||
this.populatePreviewSampleItems()
|
this.populatePreviewSampleItems()
|
||||||
@@ -249,6 +288,7 @@ export default {
|
|||||||
this.selectedProfile = this.profileItems.find(p => p.id === profileId)
|
this.selectedProfile = this.profileItems.find(p => p.id === profileId)
|
||||||
}
|
}
|
||||||
this.exportedProfile = this.profileItems[0]
|
this.exportedProfile = this.profileItems[0]
|
||||||
|
this.recordedProfile = this.profileItems[0]
|
||||||
this.loadProfile()
|
this.loadProfile()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -286,6 +326,7 @@ export default {
|
|||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
this.profileDialog = false
|
this.profileDialog = false
|
||||||
this.populateProfileItems(response.data.id)
|
this.populateProfileItems(response.data.id)
|
||||||
|
this.unsavedWork = false
|
||||||
this.infoSnackbarText = 'Profile Saved'
|
this.infoSnackbarText = 'Profile Saved'
|
||||||
this.infoSnackbar = true
|
this.infoSnackbar = true
|
||||||
}
|
}
|
||||||
@@ -314,6 +355,7 @@ export default {
|
|||||||
samples: this.loadedSamples
|
samples: this.loadedSamples
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
|
this.unsavedWork = false
|
||||||
this.infoSnackbarText = 'Profile Saved'
|
this.infoSnackbarText = 'Profile Saved'
|
||||||
this.infoSnackbar = true
|
this.infoSnackbar = true
|
||||||
}
|
}
|
||||||
@@ -324,33 +366,47 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
loadProfile () {
|
loadProfile () {
|
||||||
this.$http.get('/profiles/'.concat(this.selectedProfile.id))
|
if (this.unsavedWork) {
|
||||||
.then(response => {
|
this.confirmSwitchProfileDialog = true
|
||||||
if (response.status === 200) {
|
} else {
|
||||||
const profile = response.data.profile
|
this.$http.get('/profiles/'.concat(this.selectedProfile.id))
|
||||||
|
.then(response => {
|
||||||
|
if (response.status === 200) {
|
||||||
|
const profile = response.data.profile
|
||||||
|
|
||||||
this.isTimerEnabled = profile.isTimerEnabled
|
this.isTimerEnabled = profile.isTimerEnabled
|
||||||
this.duration = profile.duration
|
this.duration = profile.duration
|
||||||
this.volume = profile.volume
|
this.volume = profile.volume
|
||||||
this.noiseColor = profile.noiseColor
|
this.noiseColor = profile.noiseColor
|
||||||
this.isFilterEnabled = profile.isFilterEnabled
|
this.isFilterEnabled = profile.isFilterEnabled
|
||||||
this.filterType = profile.filterType
|
this.filterType = profile.filterType
|
||||||
this.filterCutoff = profile.filterCutoff
|
this.filterCutoff = profile.filterCutoff
|
||||||
this.isLFOFilterCutoffEnabled = profile.isLFOFilterCutoffEnabled
|
this.isLFOFilterCutoffEnabled = profile.isLFOFilterCutoffEnabled
|
||||||
this.lfoFilterCutoffFrequency = profile.lfoFilterCutoffFrequency
|
this.lfoFilterCutoffFrequency = profile.lfoFilterCutoffFrequency
|
||||||
this.lfoFilterCutoffRange[0] = profile.lfoFilterCutoffLow
|
this.lfoFilterCutoffRange[0] = profile.lfoFilterCutoffLow
|
||||||
this.lfoFilterCutoffRange[1] = profile.lfoFilterCutoffHigh
|
this.lfoFilterCutoffRange[1] = profile.lfoFilterCutoffHigh
|
||||||
this.isTremoloEnabled = profile.isTremoloEnabled
|
this.isTremoloEnabled = profile.isTremoloEnabled
|
||||||
this.tremoloFrequency = profile.tremoloFrequency
|
this.tremoloFrequency = profile.tremoloFrequency
|
||||||
this.tremoloDepth = profile.tremoloDepth
|
this.tremoloDepth = profile.tremoloDepth
|
||||||
|
|
||||||
this.loadedSamples = profile.samples
|
this.loadedSamples = profile.samples
|
||||||
}
|
|
||||||
})
|
this.activeProfile = profile
|
||||||
.catch(() => {
|
|
||||||
this.errorSnackbarText = 'Error Loading Profile'
|
if (this.unwatch) {
|
||||||
this.errorSnackbar = true
|
this.unwatch()
|
||||||
})
|
}
|
||||||
|
|
||||||
|
this.unwatch = this.$watch('changeableSettings', function () {
|
||||||
|
this.unsavedWork = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.errorSnackbarText = 'Error Loading Profile'
|
||||||
|
this.errorSnackbar = true
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
deleteProfile () {
|
deleteProfile () {
|
||||||
this.$http.delete('/profiles/'.concat(this.selectedProfile.id))
|
this.$http.delete('/profiles/'.concat(this.selectedProfile.id))
|
||||||
@@ -483,7 +539,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.errorSnackbarText = 'Error Saving Profile'
|
this.errorSnackbarText = 'Error Importing Profile'
|
||||||
this.errorSnackbar = true
|
this.errorSnackbar = true
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -536,7 +592,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.errorSnackbarText = 'Error Loading Profile'
|
this.errorSnackbarText = 'Error Exporting Profile'
|
||||||
this.errorSnackbar = true
|
this.errorSnackbar = true
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -631,6 +687,127 @@ export default {
|
|||||||
if (this.previewSampleLoopStart >= 0 && this.previewSampleLoopEnd <= this.previewSampleLength) {
|
if (this.previewSampleLoopStart >= 0 && this.previewSampleLoopEnd <= this.previewSampleLength) {
|
||||||
this.samplePreviewPlayer.setLoopPoints(this.previewSampleLoopStart, this.previewSampleLoopEnd)
|
this.samplePreviewPlayer.setLoopPoints(this.previewSampleLoopStart, this.previewSampleLoopEnd)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
openStartRecordingDialog () {
|
||||||
|
this.startRecordingDialog = true
|
||||||
|
this.profileMoreDialog = false
|
||||||
|
},
|
||||||
|
startRecording () {
|
||||||
|
this.$http.get('/profiles/'.concat(this.recordedProfile.id))
|
||||||
|
.then(async response => {
|
||||||
|
if (response.status === 200) {
|
||||||
|
const profile = response.data.profile
|
||||||
|
|
||||||
|
this.isTimerEnabled = profile.isTimerEnabled
|
||||||
|
this.duration = profile.duration
|
||||||
|
this.volume = profile.volume
|
||||||
|
this.noiseColor = profile.noiseColor
|
||||||
|
this.isFilterEnabled = profile.isFilterEnabled
|
||||||
|
this.filterType = profile.filterType
|
||||||
|
this.filterCutoff = profile.filterCutoff
|
||||||
|
this.isLFOFilterCutoffEnabled = profile.isLFOFilterCutoffEnabled
|
||||||
|
this.lfoFilterCutoffFrequency = profile.lfoFilterCutoffFrequency
|
||||||
|
this.lfoFilterCutoffRange[0] = profile.lfoFilterCutoffLow
|
||||||
|
this.lfoFilterCutoffRange[1] = profile.lfoFilterCutoffHigh
|
||||||
|
this.isTremoloEnabled = profile.isTremoloEnabled
|
||||||
|
this.tremoloFrequency = profile.tremoloFrequency
|
||||||
|
this.tremoloDepth = profile.tremoloDepth
|
||||||
|
|
||||||
|
this.loadedSamples = profile.samples
|
||||||
|
|
||||||
|
this.startRecordingDialog = false
|
||||||
|
this.recordingDialog = true
|
||||||
|
this.recordingTimeElapsed = 0
|
||||||
|
|
||||||
|
await this.recorder.start()
|
||||||
|
this.recordingInterval = setInterval(() => this.recordingTimeElapsed++, 1000)
|
||||||
|
this.playProfileForRecording()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.errorSnackbarText = 'Error Recording Profile'
|
||||||
|
this.errorSnackbar = true
|
||||||
|
})
|
||||||
|
},
|
||||||
|
playProfileForRecording () {
|
||||||
|
this.playDisabled = true
|
||||||
|
Tone.Transport.cancel()
|
||||||
|
|
||||||
|
if (!this.isFilterEnabled && !this.isTremoloEnabled) {
|
||||||
|
this.noise = new Tone.Noise({ volume: this.volume, type: this.noiseColor }).connect(this.recorder).toDestination()
|
||||||
|
} else if (!this.isFilterEnabled && this.isTremoloEnabled) {
|
||||||
|
this.tremolo = new Tone.Tremolo({ frequency: this.tremoloFrequency, depth: this.tremoloDepth }).connect(this.recorder).toDestination().start()
|
||||||
|
this.noise = new Tone.Noise({ volume: this.volume, type: this.noiseColor }).connect(this.tremolo)
|
||||||
|
} else if (this.isFilterEnabled && !this.isTremoloEnabled) {
|
||||||
|
this.filter = new Tone.Filter(this.filterCutoff, this.filterType).connect(this.recorder).toDestination()
|
||||||
|
this.noise = new Tone.Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
|
||||||
|
} else if (this.isFilterEnabled && this.isTremoloEnabled) {
|
||||||
|
this.tremolo = new Tone.Tremolo({ frequency: this.tremoloFrequency, depth: this.tremoloDepth }).connect(this.recorder).toDestination().start()
|
||||||
|
this.filter = new Tone.Filter(this.filterCutoff, this.filterType).connect(this.tremolo)
|
||||||
|
this.noise = new Tone.Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
|
||||||
|
} else {
|
||||||
|
this.tremolo = new Tone.Tremolo({ frequency: this.tremoloFrequency, depth: this.tremoloDepth }).connect(this.recorder).toDestination().start()
|
||||||
|
this.filter = new Tone.Filter(this.filterCutoff, this.filterType).connect(this.tremolo)
|
||||||
|
this.noise = new Tone.Noise({ volume: this.volume, type: this.noiseColor }).connect(this.filter)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.isLFOFilterCutoffEnabled) {
|
||||||
|
this.lfo = new Tone.LFO({ frequency: this.lfoFilterCutoffFrequency, min: this.lfoFilterCutoffRange[0], max: this.lfoFilterCutoffRange[1] })
|
||||||
|
this.lfo.connect(this.filter.frequency).start()
|
||||||
|
}
|
||||||
|
|
||||||
|
this.loadedSamples.forEach(s => {
|
||||||
|
this.players.player(s.id).loop = true
|
||||||
|
this.players.player(s.id).fadeIn = s.fadeIn
|
||||||
|
if (s.loopPointsEnabled) {
|
||||||
|
this.players.player(s.id).setLoopPoints(s.loopStart, s.loopEnd)
|
||||||
|
}
|
||||||
|
this.players.player(s.id).volume.value = s.volume
|
||||||
|
|
||||||
|
this.players.player(s.id).connect(this.recorder)
|
||||||
|
this.players.player(s.id).unsync().sync().start(0)
|
||||||
|
})
|
||||||
|
|
||||||
|
this.noise.sync().start(0)
|
||||||
|
|
||||||
|
Tone.Transport.start()
|
||||||
|
},
|
||||||
|
async stopRecording () {
|
||||||
|
const recording = await this.recorder.stop()
|
||||||
|
|
||||||
|
// Set active profile back to the selected one
|
||||||
|
this.loadProfile()
|
||||||
|
|
||||||
|
const url = URL.createObjectURL(recording)
|
||||||
|
const anchor = document.createElement('a')
|
||||||
|
anchor.download = this.recordingFileName + '.webm'
|
||||||
|
anchor.href = url
|
||||||
|
anchor.click()
|
||||||
|
|
||||||
|
clearInterval(this.recordingInterval)
|
||||||
|
this.recordingDialog = false
|
||||||
|
this.stop()
|
||||||
|
},
|
||||||
|
async cancelRecording () {
|
||||||
|
await this.recorder.stop()
|
||||||
|
|
||||||
|
// Set active profile back to the selected one
|
||||||
|
this.loadProfile()
|
||||||
|
|
||||||
|
clearInterval(this.recordingInterval)
|
||||||
|
this.recordingDialog = false
|
||||||
|
this.stop()
|
||||||
|
},
|
||||||
|
discardChanges () {
|
||||||
|
this.unsavedWork = false
|
||||||
|
this.loadProfile()
|
||||||
|
this.confirmSwitchProfileDialog = false
|
||||||
|
},
|
||||||
|
saveChanges () {
|
||||||
|
// Set active profile back to previously selected one before saving
|
||||||
|
this.selectedProfile = this.profileItems.find(p => p.text === this.activeProfile.name)
|
||||||
|
this.updateProfile()
|
||||||
|
this.confirmSwitchProfileDialog = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
export default {
|
export default {
|
||||||
|
name: 'Register',
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
valid: false,
|
valid: false,
|
||||||
name: '',
|
name: '',
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<Account />
|
<AccountPage />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Account from '../components/Account'
|
import AccountPage from '../components/AccountPage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AccountView',
|
name: 'AccountView',
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
Account
|
AccountPage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<Admin />
|
<AdminPage />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Admin from '../components/Admin'
|
import AdminPage from '../components/AdminPage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AdminView',
|
name: 'AdminView',
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
Admin
|
AdminPage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<Noise />
|
<NoisePage />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Noise from '../components/Noise'
|
import NoisePage from '../components/NoisePage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'HomeView',
|
name: 'HomeView',
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
Noise
|
NoisePage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<Login />
|
<LoginPage />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Login from '../components/Login'
|
import LoginPage from '../components/LoginPage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'LoginView',
|
name: 'LoginView',
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
Login
|
LoginPage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<Register />
|
<RegisterPage />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Register from '../components/Register'
|
import RegisterPage from '../components/RegisterPage'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RegisterView',
|
name: 'RegisterView',
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
Register
|
RegisterPage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user