feat: add agpl as a license option (#1012)

Co-authored-by: MiniDigger | Martin <admin@benndorf.dev>
This commit is contained in:
Lachlan 2022-11-09 03:43:33 +08:00 committed by GitHub
parent b1be7534b8
commit 956ce62994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 1 deletions

View File

@ -62,6 +62,7 @@ hangar:
- "Apache 2.0"
- "GPL"
- "LGPL"
- "AGPL"
- "Other"
announcements:

File diff suppressed because one or more lines are too long

View File

@ -2,6 +2,7 @@
import MITLogo from "~/components/logos/licenses/MITLogo.vue";
import GPLLogo from "~/components/logos/licenses/GPLLogo.vue";
import LGPLLogo from "~/components/logos/licenses/LGPLLogo.vue";
import AGPLLogo from "~/components/logos/licenses/AGPLLogo.vue";
const props = withDefaults(
defineProps<{
@ -19,5 +20,6 @@ const props = withDefaults(
<icon-mdi-feather v-else-if="license === 'Apache 2.0'" v-bind="$attrs" :width="size" :height="size" />
<GPLLogo v-else-if="license === 'GPL'" v-bind="$attrs" :width="size" :height="size" />
<LGPLLogo v-else-if="license === 'LGPL'" v-bind="$attrs" :width="size" :height="size" />
<AGPLLogo v-else-if="license === 'AGPL'" v-bind="$attrs" :width="size" :height="size" />
<icon-mdi-gavel v-else-if="license === 'Other'" v-bind="$attrs" :width="size" :height="size" />
</template>

View File

@ -232,7 +232,6 @@ function createProject() {
:values="backendData.licenseOptions"
:label="i18n.t('project.new.step3.type')"
:rules="[required()]"
:model-value="unspecifiedLicenseName"
/>
</div>
<div v-if="isCustomLicense" class="basis-full md:basis-8/12 mt-4">