2016-04-04 14:39:08 +09:00
|
|
|
import React from 'react';
|
2017-09-29 16:59:24 +09:00
|
|
|
import { registerComponent, Components } from 'meteor/vulcan:lib';
|
2017-09-22 12:24:15 +02:00
|
|
|
import Settings from '../modules/settings/collection.js';
|
2016-04-04 14:39:08 +09:00
|
|
|
|
2017-09-22 12:24:15 +02:00
|
|
|
const SettingName = ({ document }) =>
|
|
|
|
<strong>{document.name}</strong>
|
2016-04-04 14:39:08 +09:00
|
|
|
|
2017-09-22 12:24:15 +02:00
|
|
|
const SettingsDashboard = props =>
|
|
|
|
<div className="settings">
|
2017-10-05 09:14:42 +09:00
|
|
|
<Components.Datatable
|
|
|
|
showSearch={false}
|
|
|
|
showEdit={false}
|
2017-09-22 12:24:15 +02:00
|
|
|
collection={Settings}
|
|
|
|
columns={[
|
|
|
|
{ name: 'name', component: SettingName },
|
|
|
|
'value',
|
|
|
|
'defaultValue',
|
2018-02-05 10:44:56 +09:00
|
|
|
'isPublic',
|
|
|
|
'description',
|
|
|
|
'serverOnly'
|
2017-09-22 12:24:15 +02:00
|
|
|
]}
|
|
|
|
/>
|
|
|
|
</div>
|
2016-04-04 14:39:08 +09:00
|
|
|
|
2017-09-22 12:24:15 +02:00
|
|
|
registerComponent('Settings', SettingsDashboard);
|
2017-08-20 15:36:04 +09:00
|
|
|
|
|
|
|
export default Settings;
|