mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 00:33:50 +02:00
42 lines
1.1 KiB
Vue
42 lines
1.1 KiB
Vue
<template>
|
|
<el-dialog
|
|
class="x-dialog"
|
|
:model-value="ossDialog"
|
|
:title="t('dialog.open_source.header')"
|
|
width="650px"
|
|
@close="closeDialog"
|
|
destroy-on-close>
|
|
<div v-once style="height: 350px; overflow: hidden scroll; word-break: break-all">
|
|
<div>
|
|
<span>{{ t('dialog.open_source.description') }}</span>
|
|
</div>
|
|
|
|
<div v-for="lib in openSourceSoftwareLicenses" :key="lib.name" style="margin-top: 15px">
|
|
<p style="font-weight: bold">{{ lib.name }}</p>
|
|
<pre style="font-size: 12px; white-space: pre-line">{{ lib.licenseText }}</pre>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
import { openSourceSoftwareLicenses } from '../../../shared/constants/ossLicenses';
|
|
|
|
const { t } = useI18n();
|
|
|
|
defineProps({
|
|
ossDialog: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
});
|
|
|
|
const emit = defineEmits(['update:ossDialog']);
|
|
|
|
function closeDialog() {
|
|
emit('update:ossDialog', false);
|
|
}
|
|
</script>
|