2025-05-06 09:27:53 +02:00
|
|
|
import {createVuetify } from "vuetify";
|
2023-01-30 08:36:02 +00:00
|
|
|
|
|
|
|
|
// Import all .vue icons and process them, so they can be used
|
|
|
|
|
// as $vuetify.icons.<iconname>
|
|
|
|
|
var icons = {}
|
2025-03-31 16:33:54 +02:00
|
|
|
const modules = import.meta.glob('@/assets/icons/*.vue', {eager: true});
|
|
|
|
|
Object.keys(modules).map(path => {
|
|
|
|
|
// Remove"./"
|
|
|
|
|
const parts = path.split("/");
|
|
|
|
|
const iconName = parts[parts.length - 1].split(".")[0];
|
|
|
|
|
icons[iconName] = { component: modules[path].default }
|
|
|
|
|
});
|
|
|
|
|
|
2023-04-26 11:39:32 +02:00
|
|
|
export default function(ignoredconfig) {
|
2025-05-06 09:27:53 +02:00
|
|
|
return createVuetify({
|
2023-04-26 11:39:32 +02:00
|
|
|
icons: {
|
|
|
|
|
iconfont: 'md',
|
|
|
|
|
values: icons,
|
|
|
|
|
},
|
|
|
|
|
options: {
|
|
|
|
|
customProperties: true
|
|
|
|
|
},
|
|
|
|
|
theme: {
|
|
|
|
|
options: {
|
|
|
|
|
customProperties: true,
|
|
|
|
|
},
|
|
|
|
|
dark: false,
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|