|
1 |
| -<template> |
2 |
| - <q-dialog |
3 |
| - maximized |
4 |
| - transition-show="jump-up" |
5 |
| - transition-hide="jump-down" |
6 |
| - class="accept-retrieve-telemetry-dialog transparent-backdrop" |
7 |
| - v-model="modelValueComputed" |
8 |
| - > |
9 |
| - <q-layout container view="hHh Lpr lff" class="bg-background"> |
10 |
| - <q-header class="q-py-sm"> |
11 |
| - <q-toolbar> |
12 |
| - <div class="column"> |
13 |
| - <q-toolbar-title class="text-display" |
14 |
| - >使いやすさ向上のためのお願い</q-toolbar-title |
15 |
| - > |
16 |
| - </div> |
17 |
| - |
18 |
| - <q-space /> |
19 |
| - |
20 |
| - <div class="row items-center no-wrap"> |
21 |
| - <q-btn |
22 |
| - unelevated |
23 |
| - label="拒否" |
24 |
| - color="toolbar-button" |
25 |
| - text-color="toolbar-button-display" |
26 |
| - class="text-no-wrap q-mr-md text-bold" |
27 |
| - @click="handler(false)" |
28 |
| - /> |
29 |
| - |
30 |
| - <q-btn |
31 |
| - unelevated |
32 |
| - label="許可" |
33 |
| - color="toolbar-button" |
34 |
| - text-color="toolbar-button-display" |
35 |
| - class="text-no-wrap text-bold" |
36 |
| - @click="handler(true)" |
37 |
| - /> |
38 |
| - </div> |
39 |
| - </q-toolbar> |
40 |
| - </q-header> |
41 |
| - |
42 |
| - <q-page-container> |
43 |
| - <q-page> |
44 |
| - <p class="text-body1 q-mb-lg"> |
45 |
| - VOICEVOXはより使いやすいソフトウェアを目指して開発されています。<br /><br /> |
46 |
| - ボタンの配置換えなどの方針を決める際は、各UIの利用率などの情報が重要になります。<br /> |
47 |
| - もしよろしければ、ソフトウェアの利用状況のデータ収集にご協力お願いします。<br /> |
48 |
| - <br /> |
49 |
| - (入力されたテキストデータや音声データの情報は収集しておりませんのでご安心ください。) |
50 |
| - </p> |
51 |
| - <q-card flat bordered> |
52 |
| - <q-card-section> |
53 |
| - <div class="text-h5">プライバシーポリシー</div> |
54 |
| - </q-card-section> |
55 |
| - |
56 |
| - <q-card-section class="text-body1"> |
57 |
| - <div v-html="privacyPolicy"></div> |
58 |
| - </q-card-section> |
59 |
| - </q-card> |
60 |
| - </q-page> |
61 |
| - </q-page-container> |
62 |
| - </q-layout> |
63 |
| - </q-dialog> |
64 |
| -</template> |
65 |
| - |
66 |
| -<script setup lang="ts"> |
67 |
| -import { computed, ref, onMounted } from "vue"; |
68 |
| -import { useStore } from "@/store"; |
69 |
| -import { useMarkdownIt } from "@/plugins/markdownItPlugin"; |
70 |
| -
|
71 |
| -const props = |
72 |
| - defineProps<{ |
73 |
| - modelValue: boolean; |
74 |
| - }>(); |
75 |
| -const emit = |
76 |
| - defineEmits<{ |
77 |
| - (e: "update:modelValue", value: boolean): void; |
78 |
| - }>(); |
79 |
| -
|
80 |
| -const store = useStore(); |
81 |
| -
|
82 |
| -const modelValueComputed = computed({ |
83 |
| - get: () => props.modelValue, |
84 |
| - set: (val) => emit("update:modelValue", val), |
85 |
| -}); |
86 |
| -
|
87 |
| -const handler = (acceptRetrieveTelemetry: boolean) => { |
88 |
| - store.dispatch("SET_ACCEPT_RETRIEVE_TELEMETRY", { |
89 |
| - acceptRetrieveTelemetry: acceptRetrieveTelemetry ? "Accepted" : "Refused", |
90 |
| - }); |
91 |
| -
|
92 |
| - modelValueComputed.value = false; |
93 |
| -}; |
94 |
| -
|
95 |
| -const md = useMarkdownIt(); |
96 |
| -const privacyPolicy = ref(""); |
97 |
| -onMounted(async () => { |
98 |
| - privacyPolicy.value = md.render( |
99 |
| - await store.dispatch("GET_PRIVACY_POLICY_TEXT") |
100 |
| - ); |
101 |
| -}); |
102 |
| -</script> |
103 |
| - |
104 |
| -<style scoped lang="scss"> |
105 |
| -.q-page { |
106 |
| - padding: 3rem; |
107 |
| -} |
108 |
| -</style> |
| 1 | +<template> |
| 2 | + <q-dialog |
| 3 | + maximized |
| 4 | + transition-show="jump-up" |
| 5 | + transition-hide="jump-down" |
| 6 | + class="accept-retrieve-telemetry-dialog transparent-backdrop" |
| 7 | + v-model="modelValueComputed" |
| 8 | + > |
| 9 | + <q-layout container view="hHh Lpr lff" class="bg-background"> |
| 10 | + <q-header class="q-py-sm"> |
| 11 | + <q-toolbar> |
| 12 | + <div class="column"> |
| 13 | + <q-toolbar-title class="text-display" |
| 14 | + >使いやすさ向上のためのお願い</q-toolbar-title |
| 15 | + > |
| 16 | + </div> |
| 17 | + |
| 18 | + <q-space /> |
| 19 | + |
| 20 | + <div class="row items-center no-wrap"> |
| 21 | + <q-btn |
| 22 | + unelevated |
| 23 | + label="拒否" |
| 24 | + color="toolbar-button" |
| 25 | + text-color="toolbar-button-display" |
| 26 | + class="text-no-wrap q-mr-md text-bold" |
| 27 | + @click="handler(false)" |
| 28 | + /> |
| 29 | + |
| 30 | + <q-btn |
| 31 | + unelevated |
| 32 | + label="許可" |
| 33 | + color="toolbar-button" |
| 34 | + text-color="toolbar-button-display" |
| 35 | + class="text-no-wrap text-bold" |
| 36 | + @click="handler(true)" |
| 37 | + /> |
| 38 | + </div> |
| 39 | + </q-toolbar> |
| 40 | + </q-header> |
| 41 | + |
| 42 | + <q-page-container> |
| 43 | + <q-page> |
| 44 | + <p class="text-body1 q-mb-lg"> |
| 45 | + VOICEVOXはより使いやすいソフトウェアを目指して開発されています。<br /><br /> |
| 46 | + ボタンの配置換えなどの方針を決める際は、各UIの利用率などの情報が重要になります。<br /> |
| 47 | + もしよろしければ、ソフトウェアの利用状況のデータ収集にご協力お願いします。<br /> |
| 48 | + <br /> |
| 49 | + (入力されたテキストデータや音声データの情報は収集しておりませんのでご安心ください。) |
| 50 | + </p> |
| 51 | + <q-card flat bordered> |
| 52 | + <q-card-section> |
| 53 | + <div class="text-h5">プライバシーポリシー</div> |
| 54 | + </q-card-section> |
| 55 | + |
| 56 | + <q-card-section class="text-body1"> |
| 57 | + <div v-html="privacyPolicy"></div> |
| 58 | + </q-card-section> |
| 59 | + </q-card> |
| 60 | + </q-page> |
| 61 | + </q-page-container> |
| 62 | + </q-layout> |
| 63 | + </q-dialog> |
| 64 | +</template> |
| 65 | + |
| 66 | +<script setup lang="ts"> |
| 67 | +import { computed, ref, onMounted } from "vue"; |
| 68 | +import { useStore } from "@/store"; |
| 69 | +import { useMarkdownIt } from "@/plugins/markdownItPlugin"; |
| 70 | +
|
| 71 | +const props = |
| 72 | + defineProps<{ |
| 73 | + modelValue: boolean; |
| 74 | + }>(); |
| 75 | +const emit = |
| 76 | + defineEmits<{ |
| 77 | + (e: "update:modelValue", value: boolean): void; |
| 78 | + }>(); |
| 79 | +
|
| 80 | +const store = useStore(); |
| 81 | +
|
| 82 | +const modelValueComputed = computed({ |
| 83 | + get: () => props.modelValue, |
| 84 | + set: (val) => emit("update:modelValue", val), |
| 85 | +}); |
| 86 | +
|
| 87 | +const handler = (acceptRetrieveTelemetry: boolean) => { |
| 88 | + store.dispatch("SET_ACCEPT_RETRIEVE_TELEMETRY", { |
| 89 | + acceptRetrieveTelemetry: acceptRetrieveTelemetry ? "Accepted" : "Refused", |
| 90 | + }); |
| 91 | +
|
| 92 | + modelValueComputed.value = false; |
| 93 | +}; |
| 94 | +
|
| 95 | +const md = useMarkdownIt(); |
| 96 | +const privacyPolicy = ref(""); |
| 97 | +onMounted(async () => { |
| 98 | + privacyPolicy.value = md.render( |
| 99 | + await store.dispatch("GET_PRIVACY_POLICY_TEXT") |
| 100 | + ); |
| 101 | +}); |
| 102 | +</script> |
| 103 | + |
| 104 | +<style scoped lang="scss"> |
| 105 | +.q-page { |
| 106 | + padding: 3rem; |
| 107 | +} |
| 108 | +</style> |
0 commit comments