Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/assets/vue/components/basecomponents/ChamiloIcons.js

70 lines
1.9 KiB

/**
* Use it like chamiloIconToClass['eye'] to get the correct class for an icon
*
* Transform name of icons according to https://github.com/chamilo/chamilo-lms/wiki/Graphical-design-guide#default-icons-terminology
* to the classes needed for represent every icon
*/
export const chamiloIconToClass = {
"edit": "mdi mdi-pencil",
"delete": "mdi mdi-delete",
"hammer-wrench": "",
"download": "",
"download-box": "",
"upload": "",
"arrow-left-bold-box": "",
"account-multiple-plus": "",
"cursor-move": "",
"chevron-left": "",
"chevron-right": "",
"arrow-up-bold": "",
"arrow-down-bold": "",
"arrow-right-bold": "",
"magnify-plus-outline": "",
"archive-arrow-up": "",
"alert": "",
"checkbox-marked": "",
"pencil-off": "",
"eye-on": "mdi mdi-eye",
"eye-off": "mdi mdi-eye-off",
"checkbox-multiple-blank": "",
"checkbox-multiple-blank-outline": "",
"sync": "",
"sync-circle": "",
"fullscreen": "",
"fullscreen-exit": "",
"overscan": "",
"play-box-outline": "",
"fit-to-screen": "",
"bug-check": "",
"bug-outline": "",
"package": "",
"text-box-plus": "",
"rocket-launch": "",
"file-pdf-box": "",
"content-save": "",
"send": "",
"file-plus": "",
"cloud-upload": "",
"dots-vertical": "",
"information": "mdi mdi-information",
"account-key": "",
"cog": "mdi mdi-cog",
"plus": "mdi mdi-plus",
"file-generic": "mdi mdi-file",
"file-image": "mdi mdi-file-image",
"file-video": "mdi mdi-file-video",
"file-pdf": "mdi mdi-file-pdf-box",
"file-text": "mdi mdi-file-document",
"folder-generic": "mdi mdi-folder",
"folder-multiple-plus": "mdi mdi-folder-multiple-plus",
"folder-plus": "mdi mdi-folder-plus",
};
export const validator = (value) => {
if (typeof (value) !== "string") {
return false;
}
return Object.keys(chamiloIconToClass).includes(value);
};