periodicjs.ext.reactapp
Version:
144 lines • 3.3 kB
JavaScript
'use strict';
const data_tables = require('./data_tables');
const usertables = [
data_tables.tableField({
field: 'email',
link: true,
headerStyle: {
maxWidth: 200,
overflow: 'hidden',
textOverflow: 'ellipsis',
},
columnStyle: {
maxWidth: 200,
overflow: 'hidden',
textOverflow: 'ellipsis',
},
}),
data_tables.tableCreatedDate,
data_tables.tableField({
title: 'First Name',
field: 'firstname',
}),
data_tables.tableField({
title: 'Last Name',
field: 'lastname',
}),
data_tables.tableField({
// title: 'Last Name',
field: 'activated',
}),
data_tables.tableField({
title: 'User Roles',
field: 'userroles',
}),
data_tables.tableField({
title: 'Account Type',
field: 'accounttype',
}),
data_tables.tableOptions,
];
module.exports = {
user: usertables,
account: usertables,
userrole: [
data_tables.tableField({
field: 'name',
link: true,
headerStyle: {
maxWidth: 150,
// overflow: 'hidden',
// textOverflow: 'ellipsis',
},
columnStyle: {
maxWidth: 150,
// overflow: 'hidden',
// textOverflow: 'ellipsis',
},
}),
data_tables.tableField({
title: 'Role ID',
field: 'userroleid',
}),
data_tables.tableField({
title: 'Privileges',
field: 'privileges',
}),
data_tables.tableField({
title: 'Description',
field: 'description',
}),
data_tables.tableOptions,
],
userprivilege: [
data_tables.tableField({
field: 'name',
link: true,
headerStyle: {
maxWidth: 150,
// overflow: 'hidden',
// textOverflow: 'ellipsis',
},
columnStyle: {
maxWidth: 150,
// overflow: 'hidden',
// textOverflow: 'ellipsis',
},
}),
data_tables.tableField({
title: 'Privilege ID',
field: 'userprivilegeid',
}),
data_tables.tableField({
title: 'Label',
field: 'label',
}),
data_tables.tableField({
title: 'Description',
field: 'description',
}),
data_tables.tableOptions,
],
asset: [
data_tables.tableField({
field: 'name',
link: true,
headerStyle: {
maxWidth: 150,
// overflow: 'hidden',
// textOverflow: 'ellipsis',
},
columnStyle: {
maxWidth: 150,
// overflow: 'hidden',
// textOverflow: 'ellipsis',
},
}),
data_tables.tableCreatedDate,
data_tables.tableField({
title: 'Size',
field: 'transform.size',
}),
data_tables.tableField({
title: 'Attributes',
icon: true,
field: 'transform.attributes',
}),
// data_tables.tableField({
// title: 'Encrypted',
// icon: true,
// field: 'transform.encrypted',
// }),
// data_tables.tableField({
// title: 'Exif',
// icon: true,
// field: 'transform.exif',
// }),
data_tables.tableField({
title: 'Preview',
image: true,
field: 'transform.preview',
}),
data_tables.tableOptions,
],
};