Skip to content

Commit e80a339

Browse files
Change: LFに強制 (#1331)
1 parent ccf3ff0 commit e80a339

File tree

9 files changed

+1168
-1160
lines changed

9 files changed

+1168
-1160
lines changed

.eslintrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ module.exports = {
2020
},
2121
ignorePatterns: ["dist_electron/**/*", "dist/**/*", "node_modules/**/*"],
2222
rules: {
23+
"linebreak-style":
24+
process.env.NODE_ENV === "production" && process.platform !== "win32"
25+
? ["error", "unix"]
26+
: "off",
2327
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
2428
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
2529
"prettier/prettier": [
@@ -60,6 +64,8 @@ module.exports = {
6064
"./src/background/*.ts",
6165
"./src/electron/*.ts",
6266
"./tests/**/*.ts",
67+
"./build/*.js",
68+
"./build/*.mts",
6369
],
6470
rules: {
6571
"no-console": "off",

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
src/openapi/**/* linguist-generated=true
22
openapi.json linguist-generated=true
33
*.woff2 linguist-vendored=true
4+
5+
* text=auto eol=lf
+108-108
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,108 @@
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

Comments
 (0)