Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/@buffetjs/core/src/components/AttributeIcon/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import styled from 'styled-components';
const Div = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
height: 20px;
width: 35px;
> svg {
align-self: center;
}
background-color: ${({ type }) => {
switch (type) {
case 'boolean':
return '#69ba05';
case 'date':
case 'datetime':
case 'time':
case 'timestamp':
return '#1c8ee2';
case 'component':
return '#666666';
case 'contentType':
return '#ff6458';
case 'dynamiczone':
return '#333333';
case 'email':
return '#ff6400';
case 'enumeration':
case 'enum':
return '#f8b295';
case 'json':
case 'JSON':
return '#3C8C98';
case 'media':
case 'file':
case 'files':
return '#b981d5';
case 'number':
return '#e8442f';
case 'password':
return '#ff9900';
case 'string':
case 'text':
return '#ffb500';
case 'relation':
return '#1c5de7';
case 'richtext':
return '#ff9200';
case 'singleType':
return '#F4A7B4';
case 'uid':
return '#c3814f';
default:
return '';
}
}};
border-radius: 2px;
`;
export default Div;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0075 ]-- |