aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-03-02 22:16:35 +0900
committerPitu <[email protected]>2019-03-02 22:16:35 +0900
commit789f5fc259b90dd6a3b21fd2aef1a9e54a19506e (patch)
tree7911803b2631ce9b009368c0984f42b442abf46e /src
parentFix uploader not showing up when logged in (diff)
downloadhost.fuwn.me-789f5fc259b90dd6a3b21fd2aef1a9e54a19506e.tar.xz
host.fuwn.me-789f5fc259b90dd6a3b21fd2aef1a9e54a19506e.zip
Removed google analytics
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/albums/link/linkEditPOST.js2
-rw-r--r--src/site/layouts/error.vue9
-rw-r--r--src/site/pages/a/_identifier.vue5
-rw-r--r--src/site/pages/dashboard/account.vue7
-rw-r--r--src/site/pages/dashboard/albums.vue5
-rw-r--r--src/site/pages/dashboard/index.vue5
-rw-r--r--src/site/pages/dashboard/settings.vue6
-rw-r--r--src/site/pages/dashboard/users.vue5
-rw-r--r--src/site/pages/index.vue7
-rw-r--r--src/site/pages/login.vue7
-rw-r--r--src/site/pages/register.vue7
-rw-r--r--src/site/plugins/vue-analytics.js12
12 files changed, 3 insertions, 74 deletions
diff --git a/src/api/routes/albums/link/linkEditPOST.js b/src/api/routes/albums/link/linkEditPOST.js
index 753c496..bb3c41b 100644
--- a/src/api/routes/albums/link/linkEditPOST.js
+++ b/src/api/routes/albums/link/linkEditPOST.js
@@ -25,7 +25,7 @@ class linkEditPOST extends Route {
enableDownload: enableDownload || false,
expiresAt // This one should be null if not supplied
});
- return res.json({ message: 'Editing the link was successfully' });
+ return res.json({ message: 'Editing the link was successfull' });
} catch (error) {
log.error(error);
return res.json({ message: 'There was a problem editing the link' });
diff --git a/src/site/layouts/error.vue b/src/site/layouts/error.vue
index 597653b..77d188f 100644
--- a/src/site/layouts/error.vue
+++ b/src/site/layouts/error.vue
@@ -23,13 +23,6 @@
import Navbar from '~/components/navbar/Navbar.vue';
export default {
- components: { Navbar },
- mounted() {
- this.$ga.page({
- page: '/404',
- title: 'Not Found',
- location: window.location.href
- });
- }
+ components: { Navbar }
};
</script>
diff --git a/src/site/pages/a/_identifier.vue b/src/site/pages/a/_identifier.vue
index 254ed36..1a60332 100644
--- a/src/site/pages/a/_identifier.vue
+++ b/src/site/pages/a/_identifier.vue
@@ -130,11 +130,6 @@ export default {
this.$toast.open(`Error code ${this.error}`, true, 3000);
}
*/
- this.$ga.page({
- page: `/a/${this.$route.params.identifier}`,
- title: `Album | ${this.name}`,
- location: window.location.href
- });
}
};
</script>
diff --git a/src/site/pages/dashboard/account.vue b/src/site/pages/dashboard/account.vue
index e3570c7..8e3bc65 100644
--- a/src/site/pages/dashboard/account.vue
+++ b/src/site/pages/dashboard/account.vue
@@ -64,7 +64,7 @@
</div>
<b-field label="Api key"
- message="This API key lets you use the service from other apps?"
+ message="This API key lets you use the service from other apps"
horizontal>
<b-input v-model="user.apiKey"
expanded />
@@ -102,11 +102,6 @@ export default {
return { title: 'Account' };
},
mounted() {
- this.$ga.page({
- page: '/dashboard/account',
- title: 'Settings',
- location: window.location.href
- });
this.getUserSetttings();
},
methods: {
diff --git a/src/site/pages/dashboard/albums.vue b/src/site/pages/dashboard/albums.vue
index d900f70..abf3334 100644
--- a/src/site/pages/dashboard/albums.vue
+++ b/src/site/pages/dashboard/albums.vue
@@ -299,11 +299,6 @@ export default {
},
mounted() {
this.getAlbums();
- this.$ga.page({
- page: '/dashboard/albums',
- title: 'Albums',
- location: window.location.href
- });
},
methods: {
async linkOptionsChanged(link) {
diff --git a/src/site/pages/dashboard/index.vue b/src/site/pages/dashboard/index.vue
index 76c465b..565d64b 100644
--- a/src/site/pages/dashboard/index.vue
+++ b/src/site/pages/dashboard/index.vue
@@ -83,11 +83,6 @@ export default {
mounted() {
this.getFiles();
this.getAlbums();
- this.$ga.page({
- page: '/dashboard',
- title: 'Dashboard',
- location: window.location.href
- });
},
methods: {
isAlbumSelected(id) {
diff --git a/src/site/pages/dashboard/settings.vue b/src/site/pages/dashboard/settings.vue
index a71358e..02bf5d2 100644
--- a/src/site/pages/dashboard/settings.vue
+++ b/src/site/pages/dashboard/settings.vue
@@ -146,12 +146,6 @@ export default {
return { title: 'Settings' };
},
mounted() {
- this.$ga.page({
- page: '/dashboard/settings',
- title: 'Settings',
- location: window.location.href
- });
-
this.getSettings();
},
methods: {
diff --git a/src/site/pages/dashboard/users.vue b/src/site/pages/dashboard/users.vue
index 59a75d3..820969a 100644
--- a/src/site/pages/dashboard/users.vue
+++ b/src/site/pages/dashboard/users.vue
@@ -222,11 +222,6 @@ export default {
},
mounted() {
this.getUsers();
- this.$ga.page({
- page: '/dashboard/users',
- title: 'Users',
- location: window.location.href
- });
},
methods: {
async getUsers() {
diff --git a/src/site/pages/index.vue b/src/site/pages/index.vue
index b2955be..8c33cde 100644
--- a/src/site/pages/index.vue
+++ b/src/site/pages/index.vue
@@ -103,13 +103,6 @@ export default {
config() {
return this.$store.state.config;
}
- },
- mounted() {
- this.$ga.page({
- page: '/',
- title: 'Home',
- location: window.location.href
- });
}
};
</script>
diff --git a/src/site/pages/login.vue b/src/site/pages/login.vue
index 0c499f2..fe7d64a 100644
--- a/src/site/pages/login.vue
+++ b/src/site/pages/login.vue
@@ -94,13 +94,6 @@ export default {
metaInfo() {
return { title: 'Login' };
},
- mounted() {
- this.$ga.page({
- page: '/login',
- title: 'Login',
- location: window.location.href
- });
- },
methods: {
login() {
if (this.isLoading) return;
diff --git a/src/site/pages/register.vue b/src/site/pages/register.vue
index c331f36..9b882d6 100644
--- a/src/site/pages/register.vue
+++ b/src/site/pages/register.vue
@@ -71,13 +71,6 @@ export default {
metaInfo() {
return { title: 'Register' };
},
- mounted() {
- this.$ga.page({
- page: '/register',
- title: 'Register',
- location: window.location.href
- });
- },
methods: {
register() {
if (this.isLoading) return;
diff --git a/src/site/plugins/vue-analytics.js b/src/site/plugins/vue-analytics.js
deleted file mode 100644
index 79a216b..0000000
--- a/src/site/plugins/vue-analytics.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import Vue from 'vue';
-import VueAnalytics from 'vue-analytics';
-
-const isProduction = process.env.NODE_ENV === 'production';
-
-Vue.use(VueAnalytics, {
- id: 'UA-000000000-0',
- debug: {
- enabled: !isProduction,
- sendHitTask: isProduction
- }
-});