Skip to content

Commit

Permalink
chore(prime-vue): flip suffix (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Jul 1, 2024
1 parent 95a7976 commit dae0500
Show file tree
Hide file tree
Showing 98 changed files with 48,293 additions and 48,267 deletions.
2 changes: 1 addition & 1 deletion app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class="h-full md:p-2 p-4"
/>

<VuePrimeToast position="bottom-right"/>
<PrimeVueToast position="bottom-right"/>
</NuxtLayout>
</template>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div id="parameters-menu">
<VuePrimeButton
<PrimeVueButton
:aria-label="$t('components.ParametersMenu.parameters')"
class="!p-2"
icon="fa fa-cog"
Expand All @@ -9,7 +9,7 @@
@click="toggleParametersMenu"
/>

<VuePrimeMenu
<PrimeVueMenu
id="overlay-menu"
ref="parametersMenu"
:aria-label="$t('components.ParametersMenu.parametersMenu')"
Expand All @@ -25,14 +25,14 @@ import type Menu from "primevue/menu";
import type { MenuItem } from "primevue/menuitem";
import { ref } from "vue";
import { useVuePrimeToasts } from "~/composables/vue-prime/useVuePrimeToasts";
import { usePrimeVueToasts } from "~/composables/prime-vue/usePrimeVueToasts";
import { useGameStore } from "~/stores/game/useGameStore";
const gameStore = useGameStore();
const { cancelGame: cancelGameFromStore } = gameStore;
const { game } = storeToRefs(gameStore);
const { t } = useI18n();
const { addSuccessToast } = useVuePrimeToasts();
const { addSuccessToast } = usePrimeVueToasts();
const gameMenuItems = computed<MenuItem>(() => ({
visible: !!game.value._id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
</div>

<VuePrimeDivider class="md:!hidden"/>
<PrimeVueDivider class="md:!hidden"/>

<RoleDescriptionLines
:role="role"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</h2>
</div>

<VuePrimeDivider/>
<PrimeVueDivider/>

<div
v-if="!roles"
Expand All @@ -32,11 +32,11 @@
{{ availableRolesText }}
</p>

<VuePrimeAccordion
<PrimeVueAccordion
class="w-full"
multiple
>
<VuePrimeAccordionTab
<PrimeVueAccordionTab
v-for="role in roles"
:key="role.name"
:pt="{ 'headerAction': { 'aria-label': getAvailableRoleAccordionHeaderAriaLabel(role.name) } }"
Expand All @@ -56,8 +56,8 @@
</template>

<AboutAvailableRoleDescription :role="role"/>
</VuePrimeAccordionTab>
</VuePrimeAccordion>
</PrimeVueAccordionTab>
</PrimeVueAccordion>
</div>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion app/components/pages/about/AboutCreator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</span>
</h2>

<VuePrimeDivider/>
<PrimeVueDivider/>

<p id="about-creator-first-section">
{{ $t("components.AboutCreator.creatorBackground") }}
Expand Down
2 changes: 1 addition & 1 deletion app/components/pages/about/AboutHowToContribute.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</span>
</h2>

<VuePrimeDivider/>
<PrimeVueDivider/>

<p id="about-how-to-contribute-first-section">
{{ $t("components.AboutHowToContribute.thereAreManyWaysToContribute") }}
Expand Down
4 changes: 2 additions & 2 deletions app/components/pages/about/AboutWerewolvesAssistant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</span>
</h2>

<VuePrimeDivider/>
<PrimeVueDivider/>

<p id="about-werewolves-assistant-first-section">
{{ $t("components.AboutWerewolvesAssistant.toHelpGameMaster") }}
Expand Down Expand Up @@ -48,7 +48,7 @@
</span>
</h3>

<VuePrimeDivider/>
<PrimeVueDivider/>

<p id="about-werewolves-assistant-disclaimer-first-section">
{{ $t('components.AboutWerewolvesAssistant.physicalGameIsNeeded') }}
Expand Down
2 changes: 1 addition & 1 deletion app/components/pages/about/AboutWerewolvesGame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</a>
</div>

<VuePrimeDivider/>
<PrimeVueDivider/>

<p
id="about-werewolves-game-first-section"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
id="game-lobby-random-composition-button-container"
v-p-tooltip.top="containerTooltip"
>
<VuePrimeButton
<PrimeVueButton
class="random-composition-button"
:disabled="!isMinimumPlayersReached"
icon="fa-random fa"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
v-p-tooltip.top="containerTooltip"
class="h-full"
>
<VuePrimeButton
<PrimeVueButton
class="!h-full start-game-button"
:disabled="!canCreateGame"
icon="fa-play fa"
Expand All @@ -23,12 +23,12 @@ import { storeToRefs } from "pinia";
import { useCreateGameDtoValidation } from "~/composables/api/game/useCreateGameDtoValidation";
import { useFetchGames } from "~/composables/api/game/useFetchGames";
import { useVuePrimeToasts } from "~/composables/vue-prime/useVuePrimeToasts";
import { usePrimeVueToasts } from "~/composables/prime-vue/usePrimeVueToasts";
import { useCreateGameDtoStore } from "~/stores/game/create-game-dto/useCreateGameDtoStore";
const { t } = useI18n();
const { addSuccessToast } = useVuePrimeToasts();
const { addSuccessToast } = usePrimeVueToasts();
const { createGame } = useFetchGames();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeButton
<PrimeVueButton
id="game-lobby-header-options-button"
icon="fa fa-sliders"
:label="$t('components.GameLobbyHeaderOptionButton.gameOptions')"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeButton
<PrimeVueButton
id="game-lobby-header-position-coordinator-button"
icon="fa fa-users animate__animated animate__slow animate__heartBeat"
:label="$t('components.GameLobbyHeaderPositionCoordinatorButton.positionCoordinator')"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeButtonGroup>
<PrimeVueButtonGroup>
<TransitionGroup
name="fade-list"
>
Expand All @@ -16,7 +16,7 @@
@position-coordinator-button-click="handlePositionCoordinatorButtonClick"
/>
</TransitionGroup>
</VuePrimeButtonGroup>
</PrimeVueButtonGroup>
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<div id="game-lobby-player-input">
<VuePrimeInputGroup
<PrimeVueInputGroup
id="game-lobby-player-input-group"
class="mt-3"
>
<span class="p-float-label">
<VuePrimeInputText
<PrimeVueInputText
id="player-name-input"
v-model="inputValue"
aria-labelledby="player-name-input-help"
Expand All @@ -21,7 +21,7 @@
</label>
</span>

<VuePrimeButton
<PrimeVueButton
id="add-player-button"
:disabled="isAddButtonDisabled"
severity="primary"
Expand All @@ -32,8 +32,8 @@
<span class="me-3">
{{ $t("shared.actions.add") }}
</span>
</VuePrimeButton>
</VuePrimeInputGroup>
</PrimeVueButton>
</PrimeVueInputGroup>

<Transition
mode="out-in"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeDialog
<PrimeVueDialog
id="game-lobby-options-hub"
block-scroll
dismissable-mask
Expand Down Expand Up @@ -33,7 +33,7 @@
@close-dialog="close"
/>
</template>
</VuePrimeDialog>
</PrimeVueDialog>
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeFieldset
<PrimeVueFieldset
id="game-lobby-options-hub-roles-tab-actor"
:pt="{ 'legend': 'ml-4 !p-3 !px-6' }"
>
Expand All @@ -19,7 +19,7 @@
class="w-full"
/>
</GameOptionInputGroup>
</VuePrimeFieldset>
</PrimeVueFieldset>
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeFieldset
<PrimeVueFieldset
id="game-lobby-options-hub-roles-tab-bear-tamer"
:pt="{ 'legend': 'ml-4 !p-3 !px-6' }"
>
Expand All @@ -19,7 +19,7 @@
class="w-full"
/>
</GameOptionInputGroup>
</VuePrimeFieldset>
</PrimeVueFieldset>
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeFieldset
<PrimeVueFieldset
id="game-lobby-options-hub-roles-tab-big-bad-wolf"
:pt="{ 'legend': 'ml-4 !p-3 !px-6' }"
>
Expand All @@ -19,7 +19,7 @@
class="w-full"
/>
</GameOptionInputGroup>
</VuePrimeFieldset>
</PrimeVueFieldset>
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeFieldset
<PrimeVueFieldset
id="game-lobby-options-hub-roles-tab-cupid"
:pt="{ 'legend': 'ml-4 !p-3 !px-6' }"
>
Expand Down Expand Up @@ -33,7 +33,7 @@
class="w-full"
/>
</GameOptionInputGroup>
</VuePrimeFieldset>
</PrimeVueFieldset>
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeFieldset
<PrimeVueFieldset
id="game-lobby-options-hub-roles-tab-defender"
:pt="{ 'legend': 'ml-4 !p-3 !px-6' }"
>
Expand All @@ -19,7 +19,7 @@
class="w-full"
/>
</GameOptionInputGroup>
</VuePrimeFieldset>
</PrimeVueFieldset>
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeFieldset
<PrimeVueFieldset
id="game-lobby-options-hub-roles-tab-elder"
:pt="{ 'legend': 'ml-4 !p-3 !px-6' }"
>
Expand All @@ -14,24 +14,24 @@
option-icon-class="fa fa-heart text-red-500"
:option-label="$t('components.GameLobbyOptionsHubRolesTabElder.options.livesCountAgainstWerewolves.label')"
>
<VuePrimeFloatLabel>
<PrimeVueFloatLabel>
<label
id="game-lobby-options-hub-roles-tab-elder-lives-count-against-werewolves-label"
for="game-lobby-options-hub-roles-tab-elder-lives-count-against-werewolves-input"
>
{{ $t("components.GameLobbyOptionsHubRolesTabElder.options.livesCountAgainstWerewolves.label") }}
</label>

<VuePrimeInputNumber
<PrimeVueInputNumber
id="game-lobby-options-hub-roles-tab-elder-lives-count-against-werewolves-input"
v-model="elderLivesCountAgainstWerewolvesValue"
class="w-full"
:max="5"
:min="1"
/>
</VuePrimeFloatLabel>
</PrimeVueFloatLabel>

<VuePrimeSlider
<PrimeVueSlider
id="game-lobby-options-hub-roles-tab-elder-lives-count-against-werewolves-slider"
v-model="elderLivesCountAgainstWerewolvesValue"
class="mt-4 w-full"
Expand All @@ -53,7 +53,7 @@
class="w-full"
/>
</GameOptionInputGroup>
</VuePrimeFieldset>
</PrimeVueFieldset>
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<VuePrimeFieldset
<PrimeVueFieldset
id="game-lobby-options-hub-roles-tab-fox"
:pt="{ 'legend': 'ml-4 !p-3 !px-6' }"
>
Expand All @@ -19,7 +19,7 @@
class="w-full"
/>
</GameOptionInputGroup>
</VuePrimeFieldset>
</PrimeVueFieldset>
</template>

<script setup lang="ts">
Expand Down
Loading

0 comments on commit dae0500

Please sign in to comment.