Skip to content

Commit

Permalink
refactor: Remove deprecated FwbBlockquote component and related files
Browse files Browse the repository at this point in the history
This commit removes the deprecated FwbBlockquote component and its related files:
- src/components/FwbBlockquote/FwbBlockquote.vue
- src/components/FwbBlockquote/composables/useBlockquoteClasses.ts
- src/components/FwbBlockquote/types.ts

The functionality of the FwbBlockquote component has been replaced by the new FwbBlockquote component located at src/components/Typography/FwbBlockquote.vue.

Note: This commit message follows the established convention of starting with a type (refactor) followed by a concise description of the changes.
  • Loading branch information
ogzcode committed Aug 2, 2024
1 parent b294ab4 commit e5200b2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 72 deletions.
29 changes: 0 additions & 29 deletions src/components/FwbBlockquote/FwbBlockquote.vue

This file was deleted.

40 changes: 0 additions & 40 deletions src/components/FwbBlockquote/composables/useBlockquoteClasses.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/FwbBlockquote/types.ts

This file was deleted.

34 changes: 34 additions & 0 deletions src/components/Typography/FwbBlockquote.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<blockquote :class="blockquoteClasses" :cite="cite">
<slot></slot>
</blockquote>
</template>

<script lang="ts" setup>
import { computed } from 'vue'
import { useMergeClasses } from '@/composables/useMergeClasses'
type BlockquoteType = 'default' | 'solid'
interface BlockquoteProps {
type?: BlockquoteType;
cite?: string;
class?: string;
}
const props = withDefaults(defineProps<BlockquoteProps>(), {
type: 'default',

Check failure on line 20 in src/components/Typography/FwbBlockquote.vue

View workflow job for this annotation

GitHub Actions / lint (18.x)

Expected indentation of 2 spaces but found 4
cite: '',

Check failure on line 21 in src/components/Typography/FwbBlockquote.vue

View workflow job for this annotation

GitHub Actions / lint (18.x)

Expected indentation of 2 spaces but found 4
class: '',

Check failure on line 22 in src/components/Typography/FwbBlockquote.vue

View workflow job for this annotation

GitHub Actions / lint (18.x)

Expected indentation of 2 spaces but found 4
})
const defaultBlockquoteClasses = "font-semibold text-lg italic text-gray-900 dark:text-white";

Check failure on line 25 in src/components/Typography/FwbBlockquote.vue

View workflow job for this annotation

GitHub Actions / lint (18.x)

Strings must use singlequote

Check failure on line 25 in src/components/Typography/FwbBlockquote.vue

View workflow job for this annotation

GitHub Actions / lint (18.x)

Extra semicolon
const solidBlockquoteClasses = "bg-gray-100 dark:bg-gray-800 border-l-4 border-gray-300 p-4 dark:border-gray-500"

Check failure on line 26 in src/components/Typography/FwbBlockquote.vue

View workflow job for this annotation

GitHub Actions / lint (18.x)

Strings must use singlequote
const blockquoteClasses = computed(() => useMergeClasses([
defaultBlockquoteClasses,
props.type === 'solid' ? solidBlockquoteClasses : '',
props.class
]));
</script>

0 comments on commit e5200b2

Please sign in to comment.