use directory terminology instead of folder

This commit is contained in:
Gauthier Roebroeck 2025-09-25 15:59:33 +08:00
parent a339d44c3e
commit 04af84ccf7
10 changed files with 15 additions and 15 deletions

View file

@ -26,7 +26,7 @@ declare module 'vue' {
FragmentHistoryExpandBookFileDeleted: typeof import('./fragments/fragment/history/expand/BookFileDeleted.vue')['default']
FragmentHistoryExpandBookImported: typeof import('./fragments/fragment/history/expand/BookImported.vue')['default']
FragmentHistoryExpandDuplicatePageDeleted: typeof import('./fragments/fragment/history/expand/DuplicatePageDeleted.vue')['default']
FragmentHistoryExpandSeriesFolderDeleted: typeof import('./fragments/fragment/history/expand/SeriesFolderDeleted.vue')['default']
FragmentHistoryExpandSeriesDirectoryDeleted: typeof import('./fragments/fragment/history/expand/SeriesDirectoryDeleted.vue')['default']
FragmentHistoryExpandTable: typeof import('./fragments/fragment/history/expand/Table.vue')['default']
FragmentHistoryTable: typeof import('./fragments/fragment/history/Table.vue')['default']
FragmentLocaleSelector: typeof import('./fragments/fragment/LocaleSelector.vue')['default']

View file

@ -1,6 +1,6 @@
# Components
Vue template files in this folder are automatically imported.
Vue template files in this directory are automatically imported.
## 🚀 Usage

View file

@ -1,6 +1,6 @@
# Fragments
Vue template files in this folder are automatically imported.
Vue template files in this directory are automatically imported.
## 🚀 Usage

View file

@ -96,7 +96,7 @@ import FragmentHistoryExpandBookFileDeleted from '@/fragments/fragment/history/e
import FragmentHistoryExpandBookImported from '@/fragments/fragment/history/expand/BookImported.vue'
import FragmentHistoryExpandBookConverted from '@/fragments/fragment/history/expand/BookConverted.vue'
import FragmentHistoryExpandDuplicatePageDeleted from '@/fragments/fragment/history/expand/DuplicatePageDeleted.vue'
import FragmentHistoryExpandSeriesFolderDeleted from '@/fragments/fragment/history/expand/SeriesFolderDeleted.vue'
import FragmentHistoryExpandSeriesDirectoryDeleted from '@/fragments/fragment/history/expand/SeriesDirectoryDeleted.vue'
import { historicalEventMessages } from '@/utils/i18n/enum/historical-event'
import type { MessageDescriptor } from '@formatjs/intl/src/types'
import { seriesDetailQuery } from '@/colada/series'
@ -188,7 +188,7 @@ function getExpandedComponent(eventType: string): Component | null {
case 'BookFileDeleted':
return markRaw(FragmentHistoryExpandBookFileDeleted)
case 'SeriesFolderDeleted':
return markRaw(FragmentHistoryExpandSeriesFolderDeleted)
return markRaw(FragmentHistoryExpandSeriesDirectoryDeleted)
case 'DuplicatePageDeleted':
return markRaw(FragmentHistoryExpandDuplicatePageDeleted)
case 'BookConverted':

View file

@ -1,22 +1,22 @@
import type { Meta, StoryObj } from '@storybook/vue3-vite'
import SeriesFolderDeleted from './SeriesFolderDeleted.vue'
import SeriesDirectoryDeleted from './SeriesDirectoryDeleted.vue'
import { historySeriesFolderDeleted } from '@/mocks/api/handlers/history'
const meta = {
component: SeriesFolderDeleted,
component: SeriesDirectoryDeleted,
render: (args: object) => ({
components: { SeriesFolderDeleted },
components: { SeriesDirectoryDeleted },
setup() {
return { args }
},
template: '<SeriesFolderDeleted v-bind="args" />',
template: '<SeriesDirectoryDeleted v-bind="args" />',
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
},
args: {},
} satisfies Meta<typeof SeriesFolderDeleted>
} satisfies Meta<typeof SeriesDirectoryDeleted>
export default meta
type Story = StoryObj<typeof meta>

View file

@ -10,7 +10,7 @@ const { event } = defineProps<{
}>()
const rows = computed(() => [
{ header: 'Folder', value: event.properties.name },
{ header: 'Directory', value: event.properties.name },
{ header: 'Reason', value: event.properties.reason },
])
</script>

View file

@ -1 +1 @@
This folder contains the compiled translation files, using `npm run i18n-compile`.
This directory contains the compiled translation files, using `npm run i18n-compile`.

View file

@ -1,5 +1,5 @@
# Pages
Vue components created in this folder will automatically be converted to navigable routes.
Vue components created in this directory will automatically be converted to navigable routes.
Full documentation for this feature can be found in the Official [unplugin-vue-router](https://github.com/posva/unplugin-vue-router) repository.

View file

@ -1,3 +1,3 @@
# Plugins
Plugins are a way to extend the functionality of your Vue application. Use this folder for registering plugins that you want to use globally.
Plugins are a way to extend the functionality of your Vue application. Use this directory for registering plugins that you want to use globally.

View file

@ -9,7 +9,7 @@ export const historicalEventMessages: Record<string, MessageDescriptor> = {
}),
SeriesFolderDeleted: defineMessage({
description: 'Historical event: SeriesFolderDeleted',
defaultMessage: 'Series Folder Deleted',
defaultMessage: 'Series Directory Deleted',
id: 'enum.historicalEvent.SeriesFolderDeleted',
}),
DuplicatePageDeleted: defineMessage({