Skip to content

Commit

Permalink
[fix]:form-response-base ->response-form-base
Browse files Browse the repository at this point in the history
に名前変更
  • Loading branch information
Qro committed May 2, 2024
1 parent 8e34250 commit e31f782
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import type { ResponseSettings } from '~/components/form-response-base/form-response-base-settings';
import type { ResponseSettings } from '~/components/response-form-base/response-form-base-settings';
import type {
ResponseFormQuestionInvalid,
ResponseFormQuestionSettings,
} from '~/components/form-response-base/questionnaire-settings';
} from '~/components/response-form-base/questionnaire-settings';
type ModelValue = ResponseSettings &
ResponseFormQuestionSettings &
Expand Down Expand Up @@ -110,3 +110,4 @@ const modelValue = computed({
}
</style>
~/components/form-response-base/questionnaire-settings
~/components/response-form-base/form-response-base-settings~/components/response-form-base/questionnaire-settings
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts" setup>
import type { ResponseSettingsMultipleChoice } from '~/components/form-response-base/form-response-base-settings';
import type { ResponseSettingsMultipleChoice } from '~/components/response-form-base/response-form-base-settings';
import type {
ResponseFormQuestionInvalid,
ResponseFormQuestionSettingsBase,
ResponseFormQuestionSettingsMultipleChoice,
} from '~/components/form-response-base/questionnaire-settings';
} from '~/components/response-form-base/questionnaire-settings';
type ModelValue = ResponseSettingsMultipleChoice &
ResponseFormQuestionSettingsMultipleChoice &
Expand Down Expand Up @@ -73,3 +73,4 @@ const name = computed(() => `multiple-choice-input-${createId()}`);
}
</style>
~/components/form-response-base/questionnaire-settings
~/components/response-form-base/form-response-base-settings~/components/response-form-base/questionnaire-settings
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts" setup>
import type { ResponseSettingsNumber } from '~/components/form-response-base/form-response-base-settings';
import type { ResponseSettingsNumber } from '~/components/response-form-base/response-form-base-settings';
import type {
ResponseFormQuestionInvalid,
ResponseFormQuestionSettingsBase,
ResponseFormQuestionSettingsNumber,
} from '~/components/form-response-base/questionnaire-settings';
} from '~/components/response-form-base/questionnaire-settings';
type ModelValue = ResponseSettingsNumber &
ResponseFormQuestionSettingsNumber &
Expand Down Expand Up @@ -41,3 +41,4 @@ const question = computed({
}
</style>
~/components/form-response-base/questionnaire-settings
~/components/response-form-base/form-response-base-settings~/components/response-form-base/questionnaire-settings
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts" setup>
import type { ResponseSettingsScale } from '~/components/form-response-base/form-response-base-settings';
import type { ResponseSettingsScale } from '~/components/response-form-base/response-form-base-settings';
import type {
ResponseFormQuestionInvalid,
ResponseFormQuestionSettingsBase,
ResponseFormQuestionSettingsScale,
} from '~/components/form-response-base/questionnaire-settings';
} from '~/components/response-form-base/questionnaire-settings';
type ModelValue = ResponseSettingsScale &
ResponseFormQuestionSettingsScale &
Expand Down Expand Up @@ -88,3 +88,4 @@ const name = computed(() => `scale-input-${createId()}`);
}
</style>
~/components/form-response-base/questionnaire-settings
~/components/response-form-base/form-response-base-settings~/components/response-form-base/questionnaire-settings
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts" setup>
import type { ResponseSettingsSingleChoice } from '~/components/form-response-base/form-response-base-settings';
import type { ResponseSettingsSingleChoice } from '~/components/response-form-base/response-form-base-settings';
import type {
ResponseFormQuestionInvalid,
ResponseFormQuestionSettingsBase,
ResponseFormQuestionSettingsSingleChoice,
} from '~/components/form-response-base/questionnaire-settings';
} from '~/components/response-form-base/questionnaire-settings';
type ModelValue = ResponseSettingsSingleChoice &
ResponseFormQuestionSettingsSingleChoice &
Expand Down Expand Up @@ -71,3 +71,4 @@ const optionIds = question.value.options.map(() => createId());
}
</style>
~/components/form-response-base/questionnaire-settings
~/components/response-form-base/form-response-base-settings~/components/response-form-base/questionnaire-settings
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts" setup>
import type { ResponseSettingsText } from '~/components/form-response-base/form-response-base-settings';
import type { ResponseSettingsText } from '~/components/response-form-base/response-form-base-settings';
import type {
ResponseFormQuestionInvalid,
ResponseFormQuestionSettingsBase,
ResponseFormQuestionSettingsText,
} from '~/components/form-response-base/questionnaire-settings';
} from '~/components/response-form-base/questionnaire-settings';
type ModelValue = ResponseSettingsText &
ResponseFormQuestionSettingsText &
Expand Down Expand Up @@ -40,3 +40,4 @@ const question = computed({
}
</style>
~/components/form-response-base/questionnaire-settings
~/components/response-form-base/form-response-base-settings~/components/response-form-base/questionnaire-settings
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts" setup>
import type { ResponseSettingsTextLong } from '~/components/form-response-base/form-response-base-settings';
import type { ResponseSettingsTextLong } from '~/components/response-form-base/response-form-base-settings';
import type {
ResponseFormQuestionInvalid,
ResponseFormQuestionSettingsBase,
ResponseFormQuestionSettingsTextLong,
} from '~/components/form-response-base/questionnaire-settings';
} from '~/components/response-form-base/questionnaire-settings';
type ModelValue = ResponseSettingsTextLong &
ResponseFormQuestionSettingsTextLong &
Expand Down Expand Up @@ -41,3 +41,4 @@ const question = computed({
}
</style>
~/components/form-response-base/questionnaire-settings
~/components/response-form-base/form-response-base-settings~/components/response-form-base/questionnaire-settings
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script lang="ts" setup>
import {
defaultQuestionSettingsByType,
type ResponseFormBody,
type ResponseSettings,
} from '~/components/form-response-base/form-response-base-settings';
import type {
ResponseFormQuestionInvalid,
ResponseFormQuestionSettings,
ResponseFormQuestionnaireFormSettings,
} from '~/components/form-response-base/questionnaire-settings';
} from '~/components/response-form-base/questionnaire-settings';
import {
defaultQuestionSettingsByType,
type ResponseFormBody,
type ResponseSettings,
} from '~/components/response-form-base/response-form-base-settings';
const form = ref<HTMLFormElement | null>(null);
Expand Down Expand Up @@ -145,13 +145,13 @@ const convertResponseSettingsToResponseFormBody = (
): ResponseFormBody => res;
const handleSend = () => {
console.log("edit requested");
console.log('edit requested');
if (!checkValidity()) return;
emit(
'send',
convertResponseSettingsToResponseFormBody(responseSettings.value),
);
console.log("edit completed");
console.log('edit completed');
};
const handleSave = () => {
Expand Down Expand Up @@ -263,3 +263,4 @@ const handleSave = () => {
}
}
</style>
~/components/response-form-base/form-response-base-settings~/components/response-form-base/questionnaire-settings
4 changes: 2 additions & 2 deletions pages/questionnaires/[questionnaireID]/responses/new.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts" setup>
import type { ResponseFormQuestionnaireFormSettings } from '~/components/form-response-base/questionnaire-settings';;
import type { ResponseFormQuestionnaireFormSettings } from '~/components/form-response-base/questionnaire-settings';

Check failure on line 2 in pages/questionnaires/[questionnaireID]/responses/new.vue

View workflow job for this annotation

GitHub Actions / build

Cannot find module '~/components/form-response-base/questionnaire-settings' or its corresponding type declarations.
const formSettings: ResponseFormQuestionnaireFormSettings = {
title: 'アンケートのタイトル',
description: 'アンケートの説明',
Expand Down Expand Up @@ -71,3 +70,4 @@ const sending = '送信';

<style lang="scss" scoped></style>
~/components/form-response-base/questionnaire-settings
~/components/response-form-base/questionnaire-settings
1 change: 1 addition & 0 deletions pages/responses/[responseID]/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,4 @@ const sending = '変更';
</template>

<style lang="scss" scoped></style>
~/components/response-form-base/questionnaire-settings

0 comments on commit e31f782

Please sign in to comment.