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/image-stack-steps/src/components/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/image-stack-steps/src/components/stack-status.js
import { validateStatus } from '../helpers/validate-helpers';
import { stackStatusEnum } from '../image-stack-steps-options';
import { BIcon } from 'ui.icon-set.api.vue';

import '../css/stack-status.css';

export const StackStatus = {
	name: 'ui-image-stack-steps-step-stack-status',
	components: {
		BIcon,
	},
	props: {
		/** @var { StackStatusType } status */
		status: {
			type: Object,
			required: true,
			validator: (value) => {
				return validateStatus(value);
			},
		},
	},
	computed: {
		icon(): string
		{
			switch (this.status.type)
			{
				case stackStatusEnum.OK:
					return 'circle-check';
				case stackStatusEnum.WAIT:
					return 'black-clock';
				case stackStatusEnum.CANCEL:
					return 'cross-circle-60';
				default:
					return this.status.data.icon;
			}
		},
		color(): string
		{
			switch (this.status.type)
			{
				case stackStatusEnum.OK:
					return 'var(--ui-color-primary-alt)';
				case stackStatusEnum.WAIT:
					return 'var(--ui-color-palette-blue-60)';
				case stackStatusEnum.CANCEL:
					return 'var(--ui-color-base-35)';
				default:
					return this.status.data.color;
			}
		},
	},
	template: `
		<div class="ui-image-stack-steps-step-stack-status">
			<BIcon
				v-if="icon"
				:name="icon" :color="color" :size="24"
				class="ui-image-stack-steps-step-stack-status-icon"
			/>
			<div class="ui-image-stack-steps-step-stack-status-icon__overlay"></div>
		</div>
	`,
};

Youez - 2016 - github.com/yon3zu
LinuXploit