Compare commits

...

21 Commits

Author SHA1 Message Date
Kay Thomas
231dea143a Merge pull request #21 from kaythomas0/v0.5.1
v0.5.1
2022-07-12 17:33:40 -07:00
Kevin Thomas
659d48548d Upgrade passport to 0.6.0 2022-07-12 16:34:42 -07:00
Kay Thomas
7dc4524fa0 Merge pull request #20 from kaythomas0/v0.5.0
v0.5.0
2022-07-05 17:26:25 -07:00
Kay Thomas
9b2bdaf159 Fix accent color picker 2022-07-05 15:32:43 -07:00
Kay Thomas
d3cc1db2f9 Update github workflow 2022-07-05 15:18:20 -07:00
Kay Thomas
34215b4126 Upgrade package version 2022-07-04 22:53:59 -07:00
Kay Thomas
5fc23030d4 Upgrade multer 2022-07-04 22:36:39 -07:00
Kay Thomas
4fc23521c1 Update README.md 2022-06-01 12:27:41 -07:00
Kevin Thomas
cb3e39729a Update screenshot 2022-06-01 12:22:14 -07:00
Kay Thomas
5219f53655 Add accent color picker 2022-05-28 00:50:44 -07:00
Kay Thomas
a2b6f1245c Merge pull request #18 from kaythomas0/dev
v0.4.0
2022-05-26 20:51:04 -07:00
Kay Thomas
9400959852 Fix watchable settings 2022-05-26 19:59:01 -07:00
Kay Thomas
72a7f99850 Update CONTRIBUTING.md 2022-05-26 18:59:25 -07:00
Kay Thomas
f40e6d47f4 Run npm update 2022-05-26 17:30:32 -07:00
Kay Thomas
4ab595f3a1 Fix linting errors 2022-05-26 17:08:00 -07:00
Kay Thomas
625ce328dd Update vue cli to version 5 2022-05-26 17:02:33 -07:00
Kay Thomas
411270b850 Update package-lock.json 2022-05-26 16:52:17 -07:00
Kevin Thomas
2cc5051ab4 Warn on unsaved changes 2022-05-25 21:09:41 -07:00
Kay Thomas
ff902fac16 Update FUNDING.yml 2022-05-14 19:29:28 -07:00
Kevin Thomas
8e1a8aeb05 Update CONTRIBUTING.md 2022-05-08 17:05:22 -07:00
Kay Thomas
fa59f8ebfe Update docker-image.yml
Start building multi-platform images with the same tag names
2022-05-04 09:21:36 -07:00
28 changed files with 6265 additions and 7821 deletions

View File

@@ -8,7 +8,7 @@ module.exports = {
'@vue/standard'
],
parserOptions: {
parser: 'babel-eslint'
parser: '@babel/eslint-parser'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',

1
.github/FUNDING.yml vendored
View File

@@ -1,3 +1,4 @@
# These are supported funding model platforms
github: kaythomas0
custom: "https://kaythomas.dev/cryptocurrency.html"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 78 KiB

View File

@@ -1,11 +1,15 @@
name: Docker Image CI
on:
push:
branches: [ main ]
pull_request:
types:
- labeled
branches:
- 'main'
jobs:
buildx:
if: ${{ github.event.label.name == 'run-workflow' }}
runs-on: ubuntu-latest
steps:
-
@@ -25,18 +29,10 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push linux/amd64
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: noisedash/noisedash:latest
-
name: Build and push linux/arm/v7
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/arm/v7
push: true
tags: noisedash/noisedash:latest-armv7
tags: noisedash/noisedash:latest,noisedash/noisedash:${{ github.head_ref }}

View File

@@ -1,4 +1,6 @@
## Project setup
Requires [Node](https://nodejs.org/en/download/) and [Vue CLI](https://cli.vuejs.org/guide/installation.html)
```
npm install
```
@@ -23,5 +25,22 @@ npm run build
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
See [Configuration Reference](https://cli.vuejs.org/config/).

View File

@@ -2,7 +2,7 @@
Self-hostable web tool for generating ambient noises
![Noisedash](./.github/noisedash-screenshot-1.jpg)
![Noisedash](https://raw.githubusercontent.com/kaythomas0/noisedash/dev/.github/noisedash-screenshot-1.jpg)
(More screenshots on the [wiki](https://github.com/kaythomas0/noisedash/wiki/Screenshots))

13670
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,18 +1,14 @@
{
"name": "noisedash",
"descriptions": "Self-hostable web tool for generating ambient noises",
"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",
"version": "0.5.0",
"private": true,
"author": "Kay Thomas <kaythomas@pm.me> (https://kaythomas.dev)",
"scripts": {
"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",
"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": {
"@vscode/sqlite3": "^5.0.8",
@@ -20,38 +16,43 @@
"config": "^3.3.6",
"connect-history-api-fallback": "^1.6.0",
"cookie-parser": "^1.4.5",
"core-js": "^3.19.1",
"express": "^4.17.1",
"express-session": "^1.17.2",
"multer": "^1.4.3",
"passport": "^0.4.1",
"core-js": "^3.22.7",
"express": "^4.18.1",
"express-session": "^1.17.3",
"multer": "^1.4.5-lts.1",
"passport": "^0.6.0",
"passport-local": "^1.0.0",
"path": "^0.12.7",
"session-file-store": "^1.5.0",
"tone": "^14.7.77",
"vue": "^2.6.11",
"vue-router": "^3.5.3",
"vuetify": "^2.5.12",
"vue-router": "^3.5.4",
"vuetify": "^2.6.6",
"winston": "^3.3.3"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.15",
"@vue/cli-plugin-eslint": "^4.5.15",
"@vue/cli-plugin-router": "^4.5.15",
"@vue/cli-service": "^4.5.15",
"@vue/eslint-config-standard": "^5.1.2",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "^5.0.4",
"@vue/cli-plugin-eslint": "^5.0.4",
"@vue/cli-plugin-router": "^5.0.4",
"@vue/cli-service": "^5.0.4",
"@vue/eslint-config-standard": "^6.1.0",
"eslint": "^7.32.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-promise": "^4.2.1",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.2.2",
"eslint-plugin-vue": "^8.0.3",
"sass": "~1.32.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",
"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"
}

View File

@@ -59,7 +59,7 @@ module.exports = function () {
} else {
const userVersion = row.user_version
if (userVersion === 0) {
if (userVersion < 1) {
db.run('ALTER TABLE samples ADD COLUMN fade_in REAL DEFAULT 0')
db.run('ALTER TABLE samples ADD COLUMN loop_points_enabled INTEGER DEFAULT 0')
db.run('ALTER TABLE samples ADD COLUMN loop_start REAL DEFAULT 0')
@@ -67,6 +67,12 @@ module.exports = function () {
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')
}
}
})
})

View File

@@ -36,8 +36,14 @@ router.get('/admin', (req, res) => {
})
router.get('/logout', (req, res) => {
req.logout()
res.sendStatus(200)
req.logout((err) => {
if (err) {
logger.error(err)
res.sendStatus(500)
} else {
res.sendStatus(200)
}
})
})
router.get('/setup', (req, res) => {

View File

@@ -9,7 +9,11 @@ router.get('/users/current', (req, res) => {
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) {
logger.error(err)
return res.sendStatus(500)
@@ -24,6 +28,7 @@ router.get('/users/current', (req, res) => {
user.isAdmin = row.isAdmin === 1
user.darkMode = row.darkMode === 1
user.canUpload = row.canUpload === 1
user.preferences = JSON.parse(row.preferences)
}
res.json({ user: user })
@@ -287,4 +292,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

View File

@@ -8,6 +8,10 @@
</v-col>
</v-row>
<h2 class="headline font-weight-bold mb-3">
User Management
</h2>
<v-col cols="12">
<v-row>
ID: {{ currentUser.id }}
@@ -24,9 +28,9 @@
v-model="changePasswordDialog"
max-width="600px"
>
<template v-slot:activator="{ on, attrs }">
<template #activator="{ on, attrs }">
<v-btn
class="my-3"
class="mt-5 mb-10"
v-bind="attrs"
v-on="on"
@click="resetChangePasswordForm"
@@ -77,19 +81,42 @@
</v-form>
</v-dialog>
<h2 class="headline font-weight-bold mb-3">
Preferences
</h2>
<h3 class="font-weight-bold">
Dark Mode
</h3>
<v-switch
v-model="$vuetify.theme.dark"
label="Dark Mode"
:label="`${$vuetify.theme.dark ? 'On' : 'Off'}`"
@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-model="snackbar"
timeout="3000"
>
{{ snackbarText }}
<template v-slot:action="{ attrs }">
<template #action="{ attrs }">
<v-btn
text
v-bind="attrs"

View File

@@ -12,7 +12,7 @@
v-model="registerUserDialog"
max-width="600px"
>
<template v-slot:activator="{ on, attrs }">
<template #activator="{ on, attrs }">
<v-btn
v-bind="attrs"
v-on="on"
@@ -139,7 +139,7 @@
>
{{ snackbarText }}
<template v-slot:action="{ attrs }">
<template #action="{ attrs }">
<v-btn
text
v-bind="attrs"

View File

@@ -7,7 +7,7 @@
dense
>
<v-app-bar-nav-icon
@click="getCurrentUser"
@click="checkForAdmin"
/>
</v-app-bar>
<v-navigation-drawer
@@ -63,7 +63,7 @@
</v-list-item>
</v-list-item-group>
</v-list>
<template v-slot:append>
<template #append>
<v-btn
block
href="https://github.com/kaythomas0/noisedash"

View File

@@ -50,7 +50,7 @@
>
{{ snackbarText }}
<template v-slot:action="{ attrs }">
<template #action="{ attrs }">
<v-btn
text
v-bind="attrs"

View File

@@ -66,14 +66,14 @@
class="mx-3 my-3"
@click="updateProfile"
>
Save Profile
{{ unsavedWork ? 'Save Profile*' : 'Save Profile' }}
</v-btn>
<v-dialog
v-model="profileDialog"
max-width="600px"
>
<template v-slot:activator="{ on, attrs }">
<template #activator="{ on, attrs }">
<v-btn
v-bind="attrs"
class="mx-3 my-3"
@@ -127,7 +127,7 @@
v-model="profileMoreDialog"
max-width="600px"
>
<template v-slot:activator="{ on, attrs }">
<template #activator="{ on, attrs }">
<v-btn
v-bind="attrs"
class="mx-3 my-3"
@@ -339,7 +339,7 @@
<v-dialog
v-model="recordingDialog"
max-width="600px"
persistent="true"
persistent
>
<v-card>
<v-card-title>
@@ -365,6 +365,36 @@
</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 cols="12">
@@ -656,7 +686,7 @@
v-model="addSampleDialog"
max-width="600px"
>
<template v-slot:activator="{ on, attrs }">
<template #activator="{ on, attrs }">
<v-btn
v-bind="attrs"
class="mx-3 my-3 mb-5"
@@ -716,7 +746,7 @@
v-model="uploadSampleDialog"
max-width="600px"
>
<template v-slot:activator="{ on, attrs }">
<template #activator="{ on, attrs }">
<v-btn
v-bind="attrs"
class="mx-3 my-3 mb-5"
@@ -780,7 +810,7 @@
v-model="editSampleDialog"
max-width="600px"
>
<template v-slot:activator="{ on, attrs }">
<template #activator="{ on, attrs }">
<v-btn
v-bind="attrs"
class="mx-3 my-3 mb-5"
@@ -896,7 +926,7 @@
>
{{ infoSnackbarText }}
<template v-slot:action="{ attrs }">
<template #action="{ attrs }">
<v-btn
text
v-bind="attrs"
@@ -914,7 +944,7 @@
>
{{ errorSnackbarText }}
<template v-slot:action="{ attrs }">
<template #action="{ attrs }">
<v-btn
text
v-bind="attrs"

View File

@@ -1,11 +1,12 @@
export default {
name: 'Admin',
name: 'Account',
data: () => ({
currentUser: {},
changePasswordDialog: false,
isPasswordValid: false,
password: '',
accentColor: {},
snackbar: false,
snackbarText: '',
rules: {
@@ -21,6 +22,7 @@ export default {
.then(response => {
if (response.status === 200) {
this.currentUser = response.data.user
this.accentColor = this.currentUser.preferences.accentColor
}
})
},
@@ -45,6 +47,14 @@ export default {
this.$http.patch('/users/dark-mode', {
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
}
}
}

View File

@@ -6,6 +6,9 @@ export default {
isAdmin: false,
loggedIn: false
}),
created () {
this.getUserPreferences()
},
methods: {
home () {
this.$router.push('/')
@@ -24,7 +27,7 @@ export default {
}
})
},
getCurrentUser () {
checkForAdmin () {
this.loggedIn = false
this.drawyer = true
this.$http.get('/users/current')
@@ -32,12 +35,21 @@ export default {
if (response.status === 200) {
this.loggedIn = true
this.isAdmin = response.data.user.isAdmin
this.$vuetify.theme.dark = response.data.user.darkMode
}
})
.catch(() => {
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
}
})
}
}
}

View File

@@ -1,4 +1,6 @@
export default {
name: 'Login',
data: () => ({
valid: false,
username: '',

View File

@@ -70,6 +70,11 @@ export default {
recordedProfile: {},
recordingFileName: '',
isRecordingValid: false,
unsavedWork: false,
saveProfileText: 'Save Profile',
unwatch: null,
confirmSwitchProfileDialog: false,
activeProfile: {},
errorSnackbar: false,
errorSnackbarText: '',
rules: {
@@ -94,6 +99,33 @@ export default {
}
})
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 () {
@@ -294,6 +326,7 @@ export default {
if (response.status === 200) {
this.profileDialog = false
this.populateProfileItems(response.data.id)
this.unsavedWork = false
this.infoSnackbarText = 'Profile Saved'
this.infoSnackbar = true
}
@@ -322,6 +355,7 @@ export default {
samples: this.loadedSamples
}).then(response => {
if (response.status === 200) {
this.unsavedWork = false
this.infoSnackbarText = 'Profile Saved'
this.infoSnackbar = true
}
@@ -332,33 +366,47 @@ export default {
})
},
loadProfile () {
this.$http.get('/profiles/'.concat(this.selectedProfile.id))
.then(response => {
if (response.status === 200) {
const profile = response.data.profile
if (this.unsavedWork) {
this.confirmSwitchProfileDialog = true
} else {
this.$http.get('/profiles/'.concat(this.selectedProfile.id))
.then(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.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
}
})
.catch(() => {
this.errorSnackbarText = 'Error Loading Profile'
this.errorSnackbar = true
})
this.loadedSamples = profile.samples
this.activeProfile = profile
if (this.unwatch) {
this.unwatch()
}
this.unwatch = this.$watch('changeableSettings', function () {
this.unsavedWork = true
})
}
})
.catch(() => {
this.errorSnackbarText = 'Error Loading Profile'
this.errorSnackbar = true
})
}
},
deleteProfile () {
this.$http.delete('/profiles/'.concat(this.selectedProfile.id))
@@ -441,6 +489,9 @@ export default {
if (response.status === 200) {
this.canUpload = response.data.user.canUpload
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
}
})
},
@@ -749,6 +800,17 @@ export default {
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
}
}
}

View File

@@ -1,4 +1,6 @@
export default {
name: 'Register',
data: () => ({
valid: false,
name: '',

View File

@@ -1,5 +1,5 @@
import Vue from 'vue'
import Vuetify from 'vuetify/lib/framework'
import Vuetify from 'vuetify/lib'
import colors from 'vuetify/lib/util/colors'

View File

@@ -1,15 +1,15 @@
<template>
<Account />
<AccountPage />
</template>
<script>
import Account from '../components/Account'
import AccountPage from '../components/AccountPage'
export default {
name: 'AccountView',
components: {
Account
AccountPage
}
}
</script>

View File

@@ -1,15 +1,15 @@
<template>
<Admin />
<AdminPage />
</template>
<script>
import Admin from '../components/Admin'
import AdminPage from '../components/AdminPage'
export default {
name: 'AdminView',
components: {
Admin
AdminPage
}
}
</script>

View File

@@ -1,15 +1,15 @@
<template>
<Noise />
<NoisePage />
</template>
<script>
import Noise from '../components/Noise'
import NoisePage from '../components/NoisePage'
export default {
name: 'HomeView',
components: {
Noise
NoisePage
}
}
</script>

View File

@@ -1,15 +1,15 @@
<template>
<Login />
<LoginPage />
</template>
<script>
import Login from '../components/Login'
import LoginPage from '../components/LoginPage'
export default {
name: 'LoginView',
components: {
Login
LoginPage
}
}
</script>

View File

@@ -1,15 +1,15 @@
<template>
<Register />
<RegisterPage />
</template>
<script>
import Register from '../components/Register'
import RegisterPage from '../components/RegisterPage'
export default {
name: 'RegisterView',
components: {
Register
RegisterPage
}
}
</script>