-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
152 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
website/client/src/pages/settings/siteDataRows/privacyPreferencesRow.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<template> | ||
<tr> | ||
<td colspan="3"> | ||
<h3 | ||
v-once | ||
class="purple-200 mb-0" | ||
> | ||
{{ $t('yourPrivacyPreferences') }} | ||
</h3> | ||
<p | ||
v-once | ||
class="gray-50" | ||
v-html="$t('privacySettingsOverview')" | ||
> | ||
</p> | ||
<div | ||
v-once | ||
class="d-flex justify-content-center" | ||
> | ||
<div class="w-66"> | ||
<div class="mb-28"> | ||
<div | ||
class="d-flex justify-content-between align-items-center" | ||
> | ||
<div class="settings-label w-50"> {{ $t('strictlyNecessary') }}</div> | ||
<div class="settings-label mini green-10"> {{ $t('alwaysActive') }}</div> | ||
</div> | ||
<small class="gray-100"> | ||
{{ $t('requiredToRun') }} | ||
</small> | ||
</div> | ||
<div | ||
class="d-flex justify-content-between align-items-center" | ||
> | ||
<div class="settings-label w-50"> {{ $t('performanceAnalytics') }}</div> | ||
<toggle-switch | ||
v-model="user.preferences.privacy.disableAnalytics" | ||
@change="setUserPreference('privacy', 'disableAnalytics')" | ||
/> | ||
</div> | ||
<div class="mb-4"> | ||
<small class="gray-100"> | ||
{{ $t('usedForSupport') }} | ||
</small> | ||
</div> | ||
<div class="d-flex flex-column justify-content-center"> | ||
<button class="btn btn-primary mx-auto mb-2"> | ||
{{ $t('save') }} | ||
</button> | ||
<a class="mx-auto mb-4">{{ $t('cancel') }}</a> | ||
</div> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
@import '~@/assets/scss/colors.scss'; | ||
button { | ||
width: fit-content; | ||
} | ||
.mb-28 { | ||
margin-bottom: 28px; | ||
} | ||
.settings-label.mini { | ||
font-size: 12px; | ||
text-align: right; | ||
} | ||
.w-66 { | ||
width: 66.7%; | ||
} | ||
</style> | ||
|
||
<script> | ||
import { mapState } from '@/libs/store'; | ||
import ToggleSwitch from '@/components/ui/toggleSwitch.vue'; | ||
import { GenericUserPreferencesMixin } from '@/pages/settings/components/genericUserPreferencesMixin'; | ||
export default { | ||
mixins: [ | ||
GenericUserPreferencesMixin, | ||
], | ||
components: { | ||
ToggleSwitch, | ||
}, | ||
computed: { | ||
...mapState({ | ||
user: 'user.data', | ||
}), | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters