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/custom/build/esm/components/List/ drwxr-xr-x | |
| Viewing file: Select action/file-type: var _excluded = ["title", "subtitle", "button", "isLoading", "items", "customRowComponent"];
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/**
*
* List
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { List as ListCompo, ListHeader, Padded } from '@buffetjs/core';
import { Card } from '@buffetjs/styles';
function List(_ref) {
var title = _ref.title,
subtitle = _ref.subtitle,
button = _ref.button,
isLoading = _ref.isLoading,
items = _ref.items,
customRowComponent = _ref.customRowComponent,
props = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/React.createElement(Card, props, /*#__PURE__*/React.createElement(Padded, {
right: true,
left: true,
size: "md"
}, /*#__PURE__*/React.createElement(ListHeader, {
title: title,
subtitle: subtitle,
button: button
})), /*#__PURE__*/React.createElement(ListCompo, {
items: items,
isLoading: isLoading,
customRowComponent: customRowComponent
}));
}
List.defaultProps = {
button: null,
customRowComponent: null,
isLoading: false,
items: [],
title: null,
subtitle: null
};
List.propTypes = {
button: PropTypes.shape({
color: PropTypes.string,
icon: PropTypes.bool,
type: PropTypes.string
}),
customRowComponent: PropTypes.func,
isLoading: PropTypes.bool,
items: PropTypes.instanceOf(Array),
subtitle: PropTypes.string,
title: PropTypes.string
};
export default List; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0981 ]-- |