mirror of
https://github.com/directus/directus.git
synced 2026-01-28 10:28:10 -05:00
Merge pull request #396 from directus/tweaks
Tweaked label display and a few translations
This commit is contained in:
@@ -69,6 +69,18 @@ export default defineDisplay(({ i18n }) => ({
|
||||
options: {
|
||||
template: '{{text}}',
|
||||
fields: [
|
||||
{
|
||||
field: 'text',
|
||||
name: i18n.t('text'),
|
||||
type: 'string',
|
||||
meta: {
|
||||
interface: 'text-input',
|
||||
width: 'half',
|
||||
options: {
|
||||
placeholder: i18n.t('displays.labels.choices_text_placeholder'),
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'value',
|
||||
name: i18n.t('value'),
|
||||
@@ -77,19 +89,11 @@ export default defineDisplay(({ i18n }) => ({
|
||||
interface: 'text-input',
|
||||
options: {
|
||||
font: 'monospace',
|
||||
placeholder: i18n.t('displays.labels.choices_value_placeholder'),
|
||||
},
|
||||
width: 'half',
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'text',
|
||||
name: i18n.t('text'),
|
||||
type: 'string',
|
||||
meta: {
|
||||
interface: 'text-input',
|
||||
width: 'half',
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'foreground',
|
||||
name: i18n.t('foreground_color'),
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
<template>
|
||||
<v-select :items="items" @input="$listeners.input" :value="value" />
|
||||
<v-select
|
||||
:items="items"
|
||||
@input="$listeners.input"
|
||||
:value="value"
|
||||
:placeholder="$t('interfaces.interface.placeholder')"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -24,7 +24,11 @@ export default defineInterface(({ i18n }) => ({
|
||||
type: 'string',
|
||||
name: i18n.t('text'),
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'text-input',
|
||||
options: {
|
||||
placeholder: i18n.t('interfaces.dropdown.choices_name_placeholder'),
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -32,9 +36,11 @@ export default defineInterface(({ i18n }) => ({
|
||||
type: 'string',
|
||||
name: i18n.t('value'),
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'text-input',
|
||||
options: {
|
||||
font: 'monospace',
|
||||
placeholder: i18n.t('interfaces.dropdown.choices_name_placeholder'),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -18,7 +18,7 @@ export default defineInterface(({ i18n }) => ({
|
||||
width: 'full',
|
||||
interface: 'repeater',
|
||||
options: {
|
||||
placeholder: i18n.t('interfaces.color.preset_colors_placeholder'),
|
||||
addLabel: i18n.t('interfaces.color.preset_colors_add_label'),
|
||||
template: '{{ name }} - {{ color }}',
|
||||
fields: [
|
||||
{
|
||||
@@ -28,6 +28,9 @@ export default defineInterface(({ i18n }) => ({
|
||||
meta: {
|
||||
interface: 'text-input',
|
||||
width: 'half',
|
||||
options: {
|
||||
placeholder: i18n.t('interfaces.color.name_placeholder'),
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -27,6 +27,9 @@ export default defineInterface(({ i18n }) => ({
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'text-input',
|
||||
options: {
|
||||
placeholder: i18n.t('interfaces.dropdown.choices_name_placeholder'),
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -38,6 +41,7 @@ export default defineInterface(({ i18n }) => ({
|
||||
interface: 'text-input',
|
||||
options: {
|
||||
font: 'monospace',
|
||||
placeholder: i18n.t('interfaces.dropdown.choices_value_placeholder'),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -27,6 +27,9 @@ export default defineInterface(({ i18n }) => ({
|
||||
meta: {
|
||||
interface: 'text-input',
|
||||
width: 'half',
|
||||
options: {
|
||||
placeholder: i18n.t('interfaces.dropdown.choices_name_placeholder'),
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -37,6 +40,7 @@ export default defineInterface(({ i18n }) => ({
|
||||
interface: 'text-input',
|
||||
options: {
|
||||
font: 'monospace',
|
||||
placeholder: i18n.t('interfaces.dropdown.choices_value_placeholder'),
|
||||
},
|
||||
width: 'half',
|
||||
},
|
||||
|
||||
@@ -60,6 +60,7 @@ export default defineComponent({
|
||||
sort: 1,
|
||||
options: {
|
||||
font: 'monospace',
|
||||
placeholder: i18n.t('interfaces.repeater.field_name_placeholder'),
|
||||
},
|
||||
},
|
||||
schema: null,
|
||||
@@ -106,6 +107,9 @@ export default defineComponent({
|
||||
interface: 'text-input',
|
||||
width: 'half',
|
||||
sort: 4,
|
||||
options: {
|
||||
placeholder: i18n.t('interfaces.repeater.field_note_placeholder'),
|
||||
},
|
||||
},
|
||||
schema: null,
|
||||
},
|
||||
|
||||
@@ -61,7 +61,10 @@
|
||||
"description": "Display either a single or a list of labels",
|
||||
"default_foreground": "Default Foreground",
|
||||
"default_background": "Default Background",
|
||||
"format_label": "Format each label"
|
||||
"format_label": "Format each label",
|
||||
"show_as_dot": "Show As Dot",
|
||||
"choices_value_placeholder": "Enter a value...",
|
||||
"choices_text_placeholder": "Enter a text..."
|
||||
|
||||
},
|
||||
"mime-type": {
|
||||
@@ -90,10 +93,6 @@
|
||||
"name": "Name",
|
||||
"both": "Both",
|
||||
"circle_label": "Show user in a circle"
|
||||
},
|
||||
"labels": {
|
||||
"labels": "Labels",
|
||||
"show_as_dot": "Show as dot"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
"description": "Enter or select a color value",
|
||||
"placeholder": "Choose a color...",
|
||||
"preset_colors": "Preset Colors",
|
||||
"preset_colors_placeholder": "Add a new color..."
|
||||
"preset_colors_add_label": "Add new color...",
|
||||
"name_placeholder": "Enter color name..."
|
||||
},
|
||||
"datetime": {
|
||||
"datetime": "Datetime",
|
||||
@@ -58,7 +59,9 @@
|
||||
"allow_other": "Allow Other",
|
||||
"allow_other_label": "Allow Other Values",
|
||||
"allow_none": "Allow None",
|
||||
"allow_none_label": "Allow No Selection"
|
||||
"allow_none_label": "Allow No Selection",
|
||||
"choices_name_placeholder": "Enter a name...",
|
||||
"choices_value_placeholder": "Enter a value..."
|
||||
},
|
||||
"dropdown-multiselect": {
|
||||
"dropdown-multiselect": "Dropdown (Multiple)",
|
||||
@@ -89,7 +92,8 @@
|
||||
},
|
||||
"interface": {
|
||||
"interface": "Interface",
|
||||
"description": "Select an existing interface"
|
||||
"description": "Select an existing interface",
|
||||
"placeholder": "Select an interface..."
|
||||
},
|
||||
"interface-options": {
|
||||
"interface-options": "Interface Options",
|
||||
@@ -139,7 +143,9 @@
|
||||
"max_amount": "Maximum Amount",
|
||||
"max_amount_placeholder": "Maximum amount of items...",
|
||||
"edit_fields": "Edit Fields",
|
||||
"add_label": "\"Add New Row\" Label"
|
||||
"add_label": "\"Add New Row\" Label",
|
||||
"field_name_placeholder": "Enter field name...",
|
||||
"field_note_placeholder": "Enter field note..."
|
||||
},
|
||||
"slider": {
|
||||
"slider": "Slider",
|
||||
|
||||
Reference in New Issue
Block a user