-
-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create settings-panel vue component and use InputFields (#2177)
Co-authored-by: 6543 <6543@obermui.de>
- Loading branch information
Showing
16 changed files
with
153 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<Panel> | ||
<div class="flex flex-row border-b mb-4 pb-4 items-center dark:border-wp-background-100"> | ||
<div class="ml-2"> | ||
<h1 class="text-xl text-wp-text-100">{{ title }}</h1> | ||
<p v-if="desc" class="text-sm text-wp-text-alt-100"> | ||
{{ desc }} | ||
<DocsLink v-if="docsUrl" :topic="title" :url="docsUrl" /> | ||
</p> | ||
<Warning v-if="warning" class="mt-1" :text="warning" /> | ||
</div> | ||
|
||
<div class="ml-auto"> | ||
<slot v-if="$slots.titleActions" name="titleActions" /> | ||
</div> | ||
</div> | ||
|
||
<slot /> | ||
</Panel> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import DocsLink from '~/components/atomic/DocsLink.vue'; | ||
import Warning from '~/components/atomic/Warning.vue'; | ||
import Panel from '~/components/layout/Panel.vue'; | ||
defineProps<{ | ||
title: string; | ||
desc?: string; | ||
docsUrl?: string; | ||
warning?: string; | ||
}>(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.