import Telescope from 'meteor/nova:lib';
import React from 'react';
const renderSetting = (field, key) => {
return (
{key} |
{field.type && field.type.name} |
{field.private ? private : Telescope.settings.get(key)} |
{field.defaultValue && field.defaultValue.toString()} |
{field.form && field.form.instructions} |
)
}
const Settings = props => {
return (
Settings
Name |
Type |
Value |
Default |
Description |
{_.map(_.omit(Telescope.settings.collection.simpleSchema()._schema, (value, key) => key.indexOf("$") >= 0), renderSetting)}
)
}
module.exports = Settings
export default Settings