27389164b0
- Implemented image folder repository with CRUD operations. - Added image reference repository for managing image references to articles. - Created image repository for handling image assets, including listing, inserting, updating, and deleting images. - Introduced image usage repository to track storage usage and quotas for tenants. - Added SQL queries for image assets, folders, references, and usage. - Developed image handler for HTTP endpoints to manage images and folders. - Created database migration scripts for image-related tables and structures.
30 lines
733 B
Vue
30 lines
733 B
Vue
<script setup lang="ts">
|
|
import enUS from "ant-design-vue/es/locale/en_US";
|
|
import zhCN from "ant-design-vue/es/locale/zh_CN";
|
|
import { computed } from "vue";
|
|
import { useI18n } from "vue-i18n";
|
|
|
|
import ImageUploadProgressOverlay from "@/components/ImageUploadProgressOverlay.vue";
|
|
|
|
const { locale } = useI18n();
|
|
const antLocale = computed(() => (locale.value === "en-US" ? enUS : zhCN));
|
|
</script>
|
|
|
|
<template>
|
|
<a-config-provider
|
|
:locale="antLocale"
|
|
:theme="{
|
|
token: {
|
|
colorPrimary: '#1677ff',
|
|
borderRadius: 6,
|
|
colorBgLayout: '#f0f2f5',
|
|
},
|
|
}"
|
|
>
|
|
<a-app class="app-root">
|
|
<router-view />
|
|
<ImageUploadProgressOverlay />
|
|
</a-app>
|
|
</a-config-provider>
|
|
</template>
|