i18n: better name
This commit is contained in:
@@ -5,7 +5,7 @@ import { useTimeUntil } from "../hooks/useTimeUntil.hooks"
|
|||||||
|
|
||||||
const props = defineProps<{ project?: string; target?: string }>()
|
const props = defineProps<{ project?: string; target?: string }>()
|
||||||
const searchParams = useUrlSearchParams<{ project?: string; target?: string }>(
|
const searchParams = useUrlSearchParams<{ project?: string; target?: string }>(
|
||||||
"history"
|
"history",
|
||||||
)
|
)
|
||||||
|
|
||||||
const projectTitle = ref(props.project)
|
const projectTitle = ref(props.project)
|
||||||
@@ -18,7 +18,7 @@ watch(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
immediate: true,
|
immediate: true,
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
@@ -28,7 +28,7 @@ watch(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
immediate: true,
|
immediate: true,
|
||||||
}
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
const target = computed(() => targetInput.value)
|
const target = computed(() => targetInput.value)
|
||||||
@@ -42,7 +42,7 @@ const targetDate = computed(() =>
|
|||||||
? new Date(targetInput.value).toLocaleDateString(undefined, {
|
? new Date(targetInput.value).toLocaleDateString(undefined, {
|
||||||
dateStyle: "long",
|
dateStyle: "long",
|
||||||
})
|
})
|
||||||
: null
|
: null,
|
||||||
)
|
)
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@@ -129,7 +129,7 @@ const copyUrl = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="target">Target date:</label>
|
<label for="target">Milestone:</label>
|
||||||
<input
|
<input
|
||||||
type="date"
|
type="date"
|
||||||
id="target"
|
id="target"
|
||||||
@@ -138,7 +138,9 @@ const copyUrl = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a :href="url" target="_blank" rel="noopener noreferrer"><button type="button">open url</button></a>
|
<a :href="url" target="_blank" rel="noopener noreferrer"
|
||||||
|
><button type="button">open url</button></a
|
||||||
|
>
|
||||||
<button @click="copyUrl">copy url</button>
|
<button @click="copyUrl">copy url</button>
|
||||||
</div>
|
</div>
|
||||||
<p class="hint">Shrink the window to hide this config.</p>
|
<p class="hint">Shrink the window to hide this config.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user