diff --git a/next-ui/src/components.d.ts b/next-ui/src/components.d.ts index a742e5a2d..b4b8ec757 100644 --- a/next-ui/src/components.d.ts +++ b/next-ui/src/components.d.ts @@ -14,6 +14,7 @@ declare module 'vue' { AppFooter: typeof import('./components/AppFooter.vue')['default'] DialogConfirm: typeof import('./components/dialog/Confirm.vue')['default'] DialogConfirmEdit: typeof import('./components/dialog/ConfirmEdit.vue')['default'] + FormattedMessage: typeof import('./components/FormattedMessage.ts')['default'] FragmentApikeyGenerateDialog: typeof import('./fragments/fragment/apikey/GenerateDialog.vue')['default'] FragmentApikeyTable: typeof import('./fragments/fragment/apikey/Table.vue')['default'] FragmentBuildCommit: typeof import('./fragments/fragment/BuildCommit.vue')['default'] diff --git a/next-ui/src/components/apikey/DeletionWarning.stories.ts b/next-ui/src/components/apikey/DeletionWarning.stories.ts new file mode 100644 index 000000000..eed0095ef --- /dev/null +++ b/next-ui/src/components/apikey/DeletionWarning.stories.ts @@ -0,0 +1,25 @@ +import type { Meta, StoryObj } from '@storybook/vue3-vite' + +import DeletionWarning from './DeletionWarning.vue' + +const meta = { + component: DeletionWarning, + render: (args: object) => ({ + components: { DeletionWarning }, + setup() { + return { args } + }, + template: '', + }), + parameters: { + // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout + }, + args: {}, +} satisfies Meta + +export default meta +type Story = StoryObj + +export const Default: Story = { + args: {}, +} diff --git a/next-ui/src/components/apikey/DeletionWarning.vue b/next-ui/src/components/apikey/DeletionWarning.vue index f083e0dab..9e3a93d4d 100644 --- a/next-ui/src/components/apikey/DeletionWarning.vue +++ b/next-ui/src/components/apikey/DeletionWarning.vue @@ -4,16 +4,33 @@ variant="tonal" class="mb-4" > -
The API key will be deleted from this server.
-
    -
  • - Any application or scripts using this API key will no longer be able to access the Komga - API. -
  • -
  • Authentication activity for this API key will be permanently deleted.
  • -
-
This action cannot be undone.
+ + + + + - + diff --git a/next-ui/src/components/apikey/ForceSyncWarning.stories.ts b/next-ui/src/components/apikey/ForceSyncWarning.stories.ts new file mode 100644 index 000000000..f8f45a227 --- /dev/null +++ b/next-ui/src/components/apikey/ForceSyncWarning.stories.ts @@ -0,0 +1,25 @@ +import type { Meta, StoryObj } from '@storybook/vue3-vite' + +import ForceSyncWarning from './ForceSyncWarning.vue' + +const meta = { + component: ForceSyncWarning, + render: (args: object) => ({ + components: { ForceSyncWarning }, + setup() { + return { args } + }, + template: '', + }), + parameters: { + // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout + }, + args: {}, +} satisfies Meta + +export default meta +type Story = StoryObj + +export const Default: Story = { + args: {}, +} diff --git a/next-ui/src/components/apikey/ForceSyncWarning.vue b/next-ui/src/components/apikey/ForceSyncWarning.vue index 53db33b7c..5b6c75913 100644 --- a/next-ui/src/components/apikey/ForceSyncWarning.vue +++ b/next-ui/src/components/apikey/ForceSyncWarning.vue @@ -4,11 +4,28 @@ variant="tonal" class="mb-4" > -
    -
  • This will delete all sync history for this API key.
  • -
  • Your Kobo will sync everything on the next sync.
  • -
+ + + + - + diff --git a/next-ui/src/components/user/DeletionWarning.stories.ts b/next-ui/src/components/user/DeletionWarning.stories.ts new file mode 100644 index 000000000..eed0095ef --- /dev/null +++ b/next-ui/src/components/user/DeletionWarning.stories.ts @@ -0,0 +1,25 @@ +import type { Meta, StoryObj } from '@storybook/vue3-vite' + +import DeletionWarning from './DeletionWarning.vue' + +const meta = { + component: DeletionWarning, + render: (args: object) => ({ + components: { DeletionWarning }, + setup() { + return { args } + }, + template: '', + }), + parameters: { + // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout + }, + args: {}, +} satisfies Meta + +export default meta +type Story = StoryObj + +export const Default: Story = { + args: {}, +} diff --git a/next-ui/src/components/user/DeletionWarning.vue b/next-ui/src/components/user/DeletionWarning.vue index d35fce4b9..406ebbf37 100644 --- a/next-ui/src/components/user/DeletionWarning.vue +++ b/next-ui/src/components/user/DeletionWarning.vue @@ -4,13 +4,33 @@ variant="tonal" class="mb-4" > -
The user account will be deleted from this server.
-
    -
  • The read progress for this user account will be permanently deleted.
  • -
  • Authentication activity for this user will be permanently deleted.
  • -
-
This action cannot be undone.
+ + + + + - +