mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-02-22 14:40:00 +00:00
Fix repo extension router and icon (#5588)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
<SvgIcon v-else-if="name === 'org'" :path="mdiAccountGroupOutline" size="1.3rem" />
|
||||
<SvgIcon v-else-if="name === 'cron'" :path="mdiCalendarClockOutline" size="1.3rem" />
|
||||
<SvgIcon v-else-if="name === 'toolbox'" :path="mdiToolboxOutline" size="1.3rem" />
|
||||
<SvgIcon v-else-if="name === 'puzzle'" :path="mdiPuzzleOutline" size="1.3rem" />
|
||||
<SvgIcon
|
||||
v-else-if="name === 'status-failure' || name === 'status-error' || name === 'status-killed'"
|
||||
type="mdi"
|
||||
@@ -155,6 +156,7 @@ import {
|
||||
mdiPlayOutline,
|
||||
mdiPlus,
|
||||
mdiPower,
|
||||
mdiPuzzleOutline,
|
||||
mdiRadioboxBlank,
|
||||
mdiRadioboxIndeterminateVariant,
|
||||
mdiShieldKeyOutline,
|
||||
@@ -242,6 +244,7 @@ export type IconNames =
|
||||
| 'org'
|
||||
| 'cron'
|
||||
| 'toolbox'
|
||||
| 'puzzle'
|
||||
| 'forge'
|
||||
| 'fullscreen'
|
||||
| 'exit-fullscreen'
|
||||
|
||||
@@ -1,27 +1,18 @@
|
||||
<template>
|
||||
<Settings :title="$t('extensions')" :description="$t('extensions_description')" docs-url="docs/usage/registries">
|
||||
<div class="mb-4 flex flex-row items-center border-b pb-4 dark:border-gray-600">
|
||||
<h1 class="text-color ml-2 text-xl">{{ $t('extensions') }}</h1>
|
||||
</div>
|
||||
<Settings :title="$t('extensions')" :description="$t('extensions_description')" docs-url="docs/usage/extensions">
|
||||
<form @submit.prevent="saveExtensions">
|
||||
<InputField :label="$t('extensions_signatures_public_key')">
|
||||
<pre class="code-box">{{ signaturePublicKey }}</pre>
|
||||
<template #description>
|
||||
{{ $t('extensions_signatures_public_key_description') }}
|
||||
</template>
|
||||
</InputField>
|
||||
<InputField :label="$t('config_extension_endpoint')" docs-url="docs/usage/extensions/configuration-extension">
|
||||
<TextField v-model="extensions.config_extension_endpoint" :placeholder="$t('extension_endpoint_placeholder')" />
|
||||
</InputField>
|
||||
|
||||
<div class="flex flex-col">
|
||||
<span class="text-color font-bold">{{ $t('extensions_signatures_public_key') }}</span>
|
||||
<span class="text-color">{{ $t('extensions_signatures_public_key_description') }}</span>
|
||||
<pre class="code-box">{{ signaturePublicKey }}</pre>
|
||||
</div>
|
||||
|
||||
<div class="mt-4 flex flex-col border-t-1 dark:border-gray-600">
|
||||
<form @submit.prevent="saveExtensions">
|
||||
<InputField :label="$t('config_extension_endpoint')" docs-url="docs/usage/extensions/configuration-extension">
|
||||
<TextField
|
||||
v-model="extensions.config_extension_endpoint"
|
||||
:placeholder="$t('extension_endpoint_placeholder')"
|
||||
/>
|
||||
</InputField>
|
||||
|
||||
<Button :is-loading="isSaving" color="green" type="submit" :text="$t('save')" />
|
||||
</form>
|
||||
</div>
|
||||
<Button :is-loading="isSaving" color="green" type="submit" :text="$t('save')" />
|
||||
</form>
|
||||
</Settings>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
<Tab icon="secret" :to="{ name: 'repo-settings-secrets' }" :title="$t('secrets.secrets')" />
|
||||
<Tab icon="docker" :to="{ name: 'repo-settings-registries' }" :title="$t('registries.registries')" />
|
||||
<Tab icon="cron" :to="{ name: 'repo-settings-crons' }" :title="$t('repo.settings.crons.crons')" />
|
||||
<Tab icon="toolbox" :to="{ name: 'repo-extensions' }" :title="$t('extensions')" />
|
||||
<Tab icon="tag" :to="{ name: 'repo-settings-badge' }" :title="$t('repo.settings.badge.badge')" />
|
||||
<Tab icon="puzzle" :to="{ name: 'repo-settings-extensions' }" :title="$t('extensions')" />
|
||||
<Tab icon="toolbox" :to="{ name: 'repo-settings-actions' }" :title="$t('repo.settings.actions.actions')" />
|
||||
|
||||
<router-view />
|
||||
|
||||
Reference in New Issue
Block a user