403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/uploader/tile-widget/src/components/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/uploader/tile-widget/src/components/file-icon.js
import { FileIcon } from 'ui.icons.generator';

import type { BitrixVueComponentProps } from 'ui.vue3';
/**
 * @memberof BX.UI.Uploader
 */
export const FileIconComponent: BitrixVueComponentProps = {
	props: {
		name: {
			type: String,
		},
		type: {
			type: String,
		},
		color: {
			type: String,
		},
		size: {
			type: Number,
			default: 36,
		},
		align: {
			type: String,
			default: 'center',
		},
	},
	mounted(): void
	{
		this.render();
	},
	updated(): void
	{
		this.render();
	},
	methods: {
		render(): void
		{
			this.$el.innerHTML = '';

			const icon = new FileIcon({
				name: this.name,
				fileType: this.type,
				color: this.color,
				size: this.size,
				align: this.align,
			});

			icon.renderTo(this.$el);
		},
	},
	template: '<span></span>',
};

Youez - 2016 - github.com/yon3zu
LinuXploit