Skip to content

Commit db5780c

Browse files
committed
feat(uninstall): Add an uninstall screen for the web extension
1 parent ff94ac7 commit db5780c

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

pages/uninstall.vue

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<template>
2+
<div>
3+
<v-row justify="center" align="center">
4+
<v-col cols="10" sm="8">
5+
<v-img src="/undraw_heartbroken.svg" max-width="400"/>
6+
<h1 class="headline text-h2">We're sad to see you&nbsp;go!</h1>
7+
<p class="subtitle-2 text-h5 mt-2">
8+
Would you mind giving us some feedback on what made you turn away from floccus?
9+
</p>
10+
<v-textarea
11+
v-model="message"
12+
auto-grow
13+
solo
14+
label="What was your main reason for removing floccus?">
15+
>
16+
</v-textarea>
17+
<p>This feedback form is powered by Sentry. By pressing submit you agree to store the entered data anonymously on Sentry's servers. None of your bookmark data will be sent to Sentry.</p>
18+
<v-btn
19+
:disabled="!submitEnabled"
20+
color="primary"
21+
@click="onSubmit()">
22+
Submit feedback
23+
</v-btn>
24+
</v-col>
25+
</v-row>
26+
</div>
27+
</template>
28+
29+
<script>
30+
import * as Sentry from '@sentry/browser'
31+
Sentry.setTag('platform', 'web')
32+
Sentry.setTag('uninstalled', true)
33+
const dsn = 'https://836f0f772fbf2e12b9dd651b8e6b6338@o4507214911307776.ingest.de.sentry.io/4507216408870992'
34+
35+
export default {
36+
name: 'UninstallPage',
37+
data() {
38+
return {
39+
email: '',
40+
message: '',
41+
}
42+
},
43+
computed: {
44+
submitEnabled() {
45+
return this.message.length > 0
46+
},
47+
version() {
48+
const params = (new URL(window.location.href)).searchParams
49+
return params.get('version')
50+
}
51+
},
52+
methods: {
53+
async onSubmit() {
54+
if (!this.submitEnabled) {
55+
return
56+
}
57+
if (!(await Sentry.isInitialized())) {
58+
Sentry.init({
59+
dsn,
60+
integrations: [],
61+
sampleRate: 0,
62+
release: this.version,
63+
debug: true,
64+
})
65+
}
66+
Sentry.captureFeedback({
67+
message: this.message,
68+
})
69+
this.message = ''
70+
alert('Thank you for your feedback!')
71+
}
72+
},
73+
head: {
74+
title: 'Goodbye',
75+
meta: [
76+
{ hid: 'description', name: 'description', content: 'Floccus offers seamless cross-browser bookmarks syncing, here you can find all the answers to your questions.' },
77+
{ hid: 'og:title', property: 'og:title', content: 'Goodbye - Floccus bookmarks sync' },
78+
{ hid: "twitter:title", name: "twitter:title", content: 'Goodbye - Floccus bookmarks sync' },
79+
],
80+
},
81+
}
82+
</script>

0 commit comments

Comments
 (0)