fill-height is now a class, dense is a density and fix all v-selects
This commit is contained in:
parent
fba172d5cf
commit
bde99dc242
14 changed files with 109 additions and 90 deletions
|
|
@ -782,14 +782,19 @@ class Util {
|
|||
|
||||
getDefaultAvatars() {
|
||||
var images = [];
|
||||
const modules = import.meta.glob("../assets/avatars/*.(jpeg|jpg|png)", { eager: true });
|
||||
const modules = import.meta.glob("@/assets/avatars/*.{jpeg,jpg,png}", {
|
||||
query: '?url',
|
||||
import: 'default',
|
||||
eager: true
|
||||
});
|
||||
Object.keys(modules).map((path) => {
|
||||
var name = path.split("_")[1];
|
||||
name = name.slice(0, name.indexOf("."));
|
||||
name = name.charAt(0).toUpperCase() + name.slice(1);
|
||||
const image = modules[path].default;
|
||||
const image = modules[path];
|
||||
const randomNumber = parseInt(this.randomString(4, "0123456789")).toFixed();
|
||||
images.push({ id: path, image: image, name: "Guest " + name + " " + randomNumber });
|
||||
const title = "Guest " + name + " " + randomNumber;
|
||||
images.push({ id: path, image: image, name: title, title: title });
|
||||
});
|
||||
return images;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue