Skip to content

Commit

Permalink
build: build the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanie Gevaert committed Dec 7, 2022
1 parent 2764f06 commit c56d0fe
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 93 deletions.
164 changes: 82 additions & 82 deletions buildchain/src/vue/organisms/fields/ShortlinkField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,89 +40,89 @@ const sanitisedShortlinkId = computed(() => props.shortlinkId === 0 ? null : pro
</script>

<template>
<div class="mb-4">
<div class="flex items-center mb-2">
<h6 class="h6">
{{ label }}
</h6>
<div class="mb-4">
<div class="flex items-center mb-2">
<h6 class="h6">
{{ label }}
</h6>
</div>
<ul
v-if="errors"
class="text-red-500 mb-2"
>
<li
v-for="error in errors"
:key="error"
>
{{ error }}
</li>
</ul>
<div class="meta">
<div class="field">
<label class="heading">
{{ label }}
</label>
<div class="input ltr">
<input
id="shortlink"
v-model="shortlinkInput"
type="text"
class="text fullwidth"
name="shortlink-uri"
:disabled="!allowCustom"
>
</div>
<ul
v-if="errors"
class="text-red-500 mb-2"
>
<li
v-for="error in errors"
:key="error"
>
{{ error }}
</li>
</ul>
<div class="meta">
<div class="field">
<label class="heading">
{{ label }}
</label>
<div class="input ltr">
<input
id="shortlink"
v-model="shortlinkInput"
type="text"
class="text fullwidth"
name="shortlink-uri"
:disabled="!allowCustom"
>
</div>
</div>
<div
v-if="showRedirectOption"
class="field"
>
<label class="heading">
{{ redirectLabel }}
</label>
<div class="input ltr">
<div class="select">
<select name="shortlink-redirect-type">
<option
value="301"
:selected="redirectType === '301'"
>
Permanent
</option>
<option
value="302"
:selected="redirectType === '302'"
>
Temporary
</option>
</select>
</div>
</div>
</div>
</div>
<div
v-if="showRedirectOption"
class="field"
>
<label class="heading">
{{ redirectLabel }}
</label>
<div class="input ltr">
<div class="select">
<select name="shortlink-redirect-type">
<option
value="301"
:selected="redirectType === '301'"
>
Permanent
</option>
<option
value="302"
:selected="redirectType === '302'"
>
Temporary
</option>
</select>
</div>
</div>
<dl class="meta read-only">
<div
v-if="shortlinkUrls"
class="shortlink-urls"
>
<dd
v-for="shortlinkUrl in shortlinkUrls"
:key="shortlinkUrl.shortlinkUrl"
class="value pb-1 text-xs"
>
<a
v-if="showShortlinkUrl(shortlinkUrl.showWhenDevmodeIsOff)"
:href="`${ shortlinkUrl.shortlinkUrl }/${ shortlinkInput }`"
:title="shortlinkUrl.shortlinkUrl"
target="_blank"
>{{ shortlinkUrl.shortlinkUrl }}/{{ shortlinkInput }}</a>
</dd>
</div>
</dl>
<input
type="hidden"
name="shortlinkId"
:value="sanitisedShortlinkId"
>
</div>
</div>
<dl class="meta read-only">
<div
v-if="shortlinkUrls"
class="shortlink-urls"
>
<dd
v-for="shortlinkUrl in shortlinkUrls"
:key="shortlinkUrl.shortlinkUrl"
class="value pb-1 text-xs"
>
<a
v-if="showShortlinkUrl(shortlinkUrl.showWhenDevmodeIsOff)"
:href="`${ shortlinkUrl.shortlinkUrl }/${ shortlinkInput }`"
:title="shortlinkUrl.shortlinkUrl"
target="_blank"
>{{ shortlinkUrl.shortlinkUrl }}/{{ shortlinkInput }}</a>
</dd>
</div>
</dl>
<input
type="hidden"
name="shortlinkId"
:value="sanitisedShortlinkId"
>
</div>
</template>
Loading

0 comments on commit c56d0fe

Please sign in to comment.