periodicjs.ext.reactapp
Version:
126 lines (122 loc) • 37.9 kB
HTML
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" href="/extensions/periodicjs.ext.reactapp/favicon.ico"><title>Async Admin</title><script type="text/javascript">var __padmin={name:"jewel",title:"Jewel ML",noauth:!1,basename:"",adminPath:"",login:{url:"https://local-trainer.jewelml.io:8600/api/jwt/token",options:{method:"POST",headers:{Accept:"application/json",clientid:"e48be84c0c0cf64a942e85127eecfd4a",entitytype:"account"}}},hot_reload:!0,use_sockets:!1,data_tables:{standard_user:[{label:"Email",sortid:"email",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Email"},iconProps:{title:"Email"},link:{baseUrl:"/data/standard_users/:id",params:[{key:":id",val:"_id"}]},linkProps:{style:{textDecoration:"none"}},headerColumnProps:{style:{maxWidth:200,overflow:"hidden",textOverflow:"ellipsis"}},columnProps:{style:{maxWidth:200,overflow:"hidden",textOverflow:"ellipsis"}}},{label:"Create Date",sortid:"createdat",sortable:!0,momentFormat:"MM/DD/YYYY | hh:mm:ssa",headerColumnProps:{style:{minWidth:160}},columnProps:{style:{minWidth:160}}},{label:"First Name",sortid:"firstname",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"First Name"},iconProps:{title:"First Name"},headerColumnProps:{},columnProps:{}},{label:"Last Name",sortid:"lastname",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Last Name"},iconProps:{title:"Last Name"},headerColumnProps:{},columnProps:{}},{label:"Activated",sortid:"activated",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Activated"},iconProps:{title:"Activated"},headerColumnProps:{},columnProps:{}},{label:"User Roles",sortid:"userroles",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"User Roles"},iconProps:{title:"User Roles"},headerColumnProps:{},columnProps:{}},{label:"Account Type",sortid:"accounttype",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Account Type"},iconProps:{title:"Account Type"},headerColumnProps:{},columnProps:{}},{label:"Options",headerColumnProps:{style:{minWidth:70}},columnProps:{style:{minWidth:70}},sortable:!0,buttons:[{children:"",passProps:{onClick:"func:this.props.reduxRouter.push",onclickBaseUrl:"/data/standard_users/:id",onclickLinkParams:[{key:":id",val:"_id"}],buttonProps:{icon:"fa fa-pencil",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"},style:{marginRight:10}}},{children:"",passProps:{onClick:"func:this.props.fetchAction",onclickBaseUrl:"/contentdata/standard_users/:id?format=json",onclickLinkParams:[{key:":id",val:"_id"}],fetchProps:{method:"DELETE"},successProps:{success:{notification:{text:"Deleted",timeout:4e3,type:"success"}},successCallback:"func:this.props.reduxRouter.push",successProps:"/data/standard_users"},confirmModal:{},buttonProps:{icon:"fa fa-times",color:"isDanger",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"}}}]}],standard_account:[{label:"Email",sortid:"email",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Email"},iconProps:{title:"Email"},link:{baseUrl:"/data/standard_accounts/:id",params:[{key:":id",val:"_id"}]},linkProps:{style:{textDecoration:"none"}},headerColumnProps:{style:{maxWidth:200,overflow:"hidden",textOverflow:"ellipsis"}},columnProps:{style:{maxWidth:200,overflow:"hidden",textOverflow:"ellipsis"}}},{label:"Create Date",sortid:"createdat",sortable:!0,momentFormat:"MM/DD/YYYY | hh:mm:ssa",headerColumnProps:{style:{minWidth:160}},columnProps:{style:{minWidth:160}}},{label:"First Name",sortid:"firstname",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"First Name"},iconProps:{title:"First Name"},headerColumnProps:{},columnProps:{}},{label:"Last Name",sortid:"lastname",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Last Name"},iconProps:{title:"Last Name"},headerColumnProps:{},columnProps:{}},{label:"Activated",sortid:"activated",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Activated"},iconProps:{title:"Activated"},headerColumnProps:{},columnProps:{}},{label:"User Roles",sortid:"userroles",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"User Roles"},iconProps:{title:"User Roles"},headerColumnProps:{},columnProps:{}},{label:"Account Type",sortid:"accounttype",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Account Type"},iconProps:{title:"Account Type"},headerColumnProps:{},columnProps:{}},{label:"Options",headerColumnProps:{style:{minWidth:70}},columnProps:{style:{minWidth:70}},sortable:!0,buttons:[{children:"",passProps:{onClick:"func:this.props.reduxRouter.push",onclickBaseUrl:"/data/standard_accounts/:id",onclickLinkParams:[{key:":id",val:"_id"}],buttonProps:{icon:"fa fa-pencil",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"},style:{marginRight:10}}},{children:"",passProps:{onClick:"func:this.props.fetchAction",onclickBaseUrl:"/contentdata/standard_accounts/:id?format=json",onclickLinkParams:[{key:":id",val:"_id"}],fetchProps:{method:"DELETE"},successProps:{success:{notification:{text:"Deleted",timeout:4e3,type:"success"}},successCallback:"func:this.props.reduxRouter.push",successProps:"/data/standard_accounts"},confirmModal:{},buttonProps:{icon:"fa fa-times",color:"isDanger",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"}}}]}],standard_userrole:[{label:"Name",sortid:"name",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Name"},iconProps:{title:"Name"},link:{baseUrl:"/data/standard_userroles/:id",params:[{key:":id",val:"_id"}]},linkProps:{style:{textDecoration:"none"}},headerColumnProps:{style:{maxWidth:150}},columnProps:{style:{maxWidth:150}}},{label:"Role ID",sortid:"userroleid",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Role ID"},iconProps:{title:"Role ID"},headerColumnProps:{},columnProps:{}},{label:"Privileges",sortid:"privileges",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Privileges"},iconProps:{title:"Privileges"},headerColumnProps:{},columnProps:{}},{label:"Description",sortid:"description",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Description"},iconProps:{title:"Description"},headerColumnProps:{},columnProps:{}},{label:"Options",headerColumnProps:{style:{minWidth:70}},columnProps:{style:{minWidth:70}},sortable:!0,buttons:[{children:"",passProps:{onClick:"func:this.props.reduxRouter.push",onclickBaseUrl:"/data/standard_userroles/:id",onclickLinkParams:[{key:":id",val:"_id"}],buttonProps:{icon:"fa fa-pencil",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"},style:{marginRight:10}}},{children:"",passProps:{onClick:"func:this.props.fetchAction",onclickBaseUrl:"/contentdata/standard_userroles/:id?format=json",onclickLinkParams:[{key:":id",val:"_id"}],fetchProps:{method:"DELETE"},successProps:{success:{notification:{text:"Deleted",timeout:4e3,type:"success"}},successCallback:"func:this.props.reduxRouter.push",successProps:"/data/standard_userroles"},confirmModal:{},buttonProps:{icon:"fa fa-times",color:"isDanger",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"}}}]}],standard_userprivilege:[{label:"Name",sortid:"name",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Name"},iconProps:{title:"Name"},link:{baseUrl:"/data/standard_userprivileges/:id",params:[{key:":id",val:"_id"}]},linkProps:{style:{textDecoration:"none"}},headerColumnProps:{style:{maxWidth:150}},columnProps:{style:{maxWidth:150}}},{label:"Privilege ID",sortid:"userprivilegeid",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Privilege ID"},iconProps:{title:"Privilege ID"},headerColumnProps:{},columnProps:{}},{label:"Label",sortid:"label",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Label"},iconProps:{title:"Label"},headerColumnProps:{},columnProps:{}},{label:"Description",sortid:"description",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Description"},iconProps:{title:"Description"},headerColumnProps:{},columnProps:{}},{label:"Options",headerColumnProps:{style:{minWidth:70}},columnProps:{style:{minWidth:70}},sortable:!0,buttons:[{children:"",passProps:{onClick:"func:this.props.reduxRouter.push",onclickBaseUrl:"/data/standard_userprivileges/:id",onclickLinkParams:[{key:":id",val:"_id"}],buttonProps:{icon:"fa fa-pencil",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"},style:{marginRight:10}}},{children:"",passProps:{onClick:"func:this.props.fetchAction",onclickBaseUrl:"/contentdata/standard_userprivileges/:id?format=json",onclickLinkParams:[{key:":id",val:"_id"}],fetchProps:{method:"DELETE"},successProps:{success:{notification:{text:"Deleted",timeout:4e3,type:"success"}},successCallback:"func:this.props.reduxRouter.push",successProps:"/data/standard_userprivileges"},confirmModal:{},buttonProps:{icon:"fa fa-times",color:"isDanger",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"}}}]}],standard_asset:[{label:"Name",sortid:"name",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Name"},iconProps:{title:"Name"},link:{baseUrl:"/data/standard_assets/:id",params:[{key:":id",val:"_id"}]},linkProps:{style:{textDecoration:"none"}},headerColumnProps:{style:{maxWidth:150}},columnProps:{style:{maxWidth:150}}},{label:"Create Date",sortid:"createdat",sortable:!0,momentFormat:"MM/DD/YYYY | hh:mm:ssa",headerColumnProps:{style:{minWidth:160}},columnProps:{style:{minWidth:160}}},{label:"Size",sortid:"transform.size",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Size"},iconProps:{title:"Size"},headerColumnProps:{},columnProps:{}},{label:"Attributes",sortid:"transform.attributes",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Attributes"},icon:!0,iconProps:{title:"Attributes"},headerColumnProps:{},columnProps:{}},{label:"Preview",sortid:"transform.preview",sortable:!0,image:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Preview"},iconProps:{title:"Preview"},headerColumnProps:{},columnProps:{}},{label:"Options",headerColumnProps:{style:{minWidth:70}},columnProps:{style:{minWidth:70}},sortable:!0,buttons:[{children:"",passProps:{onClick:"func:this.props.reduxRouter.push",onclickBaseUrl:"/data/standard_assets/:id",onclickLinkParams:[{key:":id",val:"_id"}],buttonProps:{icon:"fa fa-pencil",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"},style:{marginRight:10}}},{children:"",passProps:{onClick:"func:this.props.fetchAction",onclickBaseUrl:"/contentdata/standard_assets/:id?format=json",onclickLinkParams:[{key:":id",val:"_id"}],fetchProps:{method:"DELETE"},successProps:{success:{notification:{text:"Deleted",timeout:4e3,type:"success"}},successCallback:"func:this.props.reduxRouter.push",successProps:"/data/standard_assets"},confirmModal:{},buttonProps:{icon:"fa fa-times",color:"isDanger",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"}}}]}],configuration:[{label:"Filepath",sortid:"filepath",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Filepath"},iconProps:{title:"Filepath"},link:{baseUrl:"/data/configurations/:id",params:[{key:":id",val:"_id"}]},linkProps:{style:{textDecoration:"none"}},headerColumnProps:{style:{maxWidth:350,overflow:"hidden",textOverflow:"ellipsis"}},columnProps:{style:{maxWidth:350,overflow:"hidden",textOverflow:"ellipsis"}}},{label:"Environment",sortid:"environment",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Environment"},iconProps:{title:"Environment"},headerColumnProps:{},columnProps:{}},{label:"Container",sortid:"container",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Container"},iconProps:{title:"Container"},headerColumnProps:{},columnProps:{}},{label:"Create Date",sortid:"createdat",sortable:!0,momentFormat:"MM/DD/YYYY | hh:mm:ssa",headerColumnProps:{style:{minWidth:160}},columnProps:{style:{minWidth:160}}},{label:"Options",headerColumnProps:{style:{minWidth:70}},columnProps:{style:{minWidth:70}},sortable:!0,buttons:[{children:"",passProps:{onClick:"func:this.props.reduxRouter.push",onclickBaseUrl:"/data/configurations/:id",onclickLinkParams:[{key:":id",val:"_id"}],buttonProps:{icon:"fa fa-pencil",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"},style:{marginRight:10}}},{children:"",passProps:{onClick:"func:this.props.fetchAction",onclickBaseUrl:"/contentdata/configurations/:id?format=json",onclickLinkParams:[{key:":id",val:"_id"}],fetchProps:{method:"DELETE"},successProps:{success:{notification:{text:"Deleted",timeout:4e3,type:"success"}},successCallback:"func:this.props.reduxRouter.push",successProps:"/data/configurations"},confirmModal:{},buttonProps:{icon:"fa fa-times",color:"isDanger",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"}}}]}],extension:[{label:"Name",sortid:"name",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Name"},iconProps:{title:"Name"},link:{baseUrl:"/data/extensions/:id",params:[{key:":id",val:"_id"}]},linkProps:{style:{textDecoration:"none"}},headerColumnProps:{style:{maxWidth:250}},columnProps:{style:{maxWidth:250}}},{label:"Source",sortid:"source",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Source"},iconProps:{title:"Source"},headerColumnProps:{},columnProps:{}},{label:"Version",sortid:"version",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Version"},iconProps:{title:"Version"},headerColumnProps:{},columnProps:{}},{label:"Type",sortid:"periodic_type",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Type"},iconProps:{title:"Type"},headerColumnProps:{},columnProps:{}},{label:"Priority",sortid:"periodic_priority",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Priority"},iconProps:{title:"Priority"},headerColumnProps:{},columnProps:{}},{label:"Compatibility",sortid:"periodic_compatibility",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Compatibility"},iconProps:{title:"Compatibility"},headerColumnProps:{},columnProps:{}},{label:"Create Date",sortid:"createdat",sortable:!0,momentFormat:"MM/DD/YYYY | hh:mm:ssa",headerColumnProps:{style:{minWidth:160}},columnProps:{style:{minWidth:160}}},{label:"Options",headerColumnProps:{style:{minWidth:70}},columnProps:{style:{minWidth:70}},sortable:!0,buttons:[{children:"",passProps:{onClick:"func:this.props.reduxRouter.push",onclickBaseUrl:"/data/extensions/:id",onclickLinkParams:[{key:":id",val:"_id"}],buttonProps:{icon:"fa fa-pencil",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"},style:{marginRight:10}}},{children:"",passProps:{onClick:"func:this.props.fetchAction",onclickBaseUrl:"/contentdata/extensions/:id?format=json",onclickLinkParams:[{key:":id",val:"_id"}],fetchProps:{method:"DELETE"},successProps:{success:{notification:{text:"Deleted",timeout:4e3,type:"success"}},successCallback:"func:this.props.reduxRouter.push",successProps:"/data/extensions"},confirmModal:{},buttonProps:{icon:"fa fa-times",color:"isDanger",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"}}}]}],dblog_logger:[{label:"ObjectId",sortid:"_id",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"ObjectId"},iconProps:{title:"ObjectId"},link:{baseUrl:"/data/dblog_loggers/:id",params:[{key:":id",val:"_id"}]},linkProps:{style:{textDecoration:"none"}},headerColumnProps:{},columnProps:{}},{label:"Create Date",sortid:"createdat",sortable:!0,momentFormat:"MM/DD/YYYY | hh:mm:ssa",headerColumnProps:{style:{minWidth:160}},columnProps:{style:{minWidth:160}}},{label:"Hostname",sortid:"hostname",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Hostname"},iconProps:{title:"Hostname"},headerColumnProps:{},columnProps:{}},{label:"Level",sortid:"level",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Level"},iconProps:{title:"Level"},headerColumnProps:{},columnProps:{}},{label:"Message",sortid:"msg",sortable:!0,imageProps:{style:{maxHeight:"4rem",maxWidth:"4rem",overflow:"hidden"},alt:"Message"},iconProps:{title:"Message"},headerColumnProps:{style:{maxWidth:150}},columnProps:{style:{maxWidth:150}}},{label:"Options",headerColumnProps:{style:{minWidth:70}},columnProps:{style:{minWidth:70}},sortable:!0,buttons:[{children:"",passProps:{onClick:"func:this.props.reduxRouter.push",onclickBaseUrl:"/data/dblog_loggers/:id",onclickLinkParams:[{key:":id",val:"_id"}],buttonProps:{icon:"fa fa-pencil",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"},style:{marginRight:10}}},{children:"",passProps:{onClick:"func:this.props.fetchAction",onclickBaseUrl:"/contentdata/dblog_loggers/:id?format=json",onclickLinkParams:[{key:":id",val:"_id"}],fetchProps:{method:"DELETE"},successProps:{success:{notification:{text:"Deleted",timeout:4e3,type:"success"}},successCallback:"func:this.props.reduxRouter.push",successProps:"/data/dblog_loggers"},confirmModal:{},buttonProps:{icon:"fa fa-times",color:"isDanger",isIconRight:!0,size:"isSmall",className:"__reactapp_icon_button"}}}]}]},ui:{sidebarBG:"#ffffff",header:{color:"isWhite",isBold:!1,buttonColor:"isBlack",customButton:!1,navLabelStyle:{},userNameStyle:{},containerStyle:{},useHeaderLogout:!1,useGlobalSearch:!1},fixedSidebar:!0,footer:{navStyle:{position:"relative",borderTop:"none"}},sidebar:{containerStyle:{},use_floating_nav:!0},initialization:{show_header:!0,show_footer:!0,refresh_manifests:!1,refresh_components:!1,refresh_navigation:!1,show_sidebar_overlay:!0},notifications:{error_timeout:1e4,timed_timeout:1e4,supressResourceErrors:!1,hide_login_notification:!1}},socket_server:!1,routerHistory:"browserHistory",userprofile:{url:"https://local-trainer.jewelml.io:8600/api/jwt/profile",options:{method:"POST",headers:{Accept:"application/json",clientid:"e48be84c0c0cf64a942e85127eecfd4a",entitytype:"account","Content-Type":"application/json"}}},auth:{enforce_mfa:!1,logged_out_path:"/",logged_in_homepage:"/dashboard"},server_side_react:!0,default_user_image:"/favicon.png",encryption_key_path:"otherdocs/certs/current/star_jewelml_io.key",include_index_route:!0,skip_catch_all_route:!0,socket_server_options:{transports:["polling","websocket"]},custom_css_stylesheet:"/stylesheets/jewelml.css",application:{environment:"development",use_offline_cache:!1,additional_footer:!0,additional_header:!0},includeCoreData:{manifest:!0,navigation:!0},navigationLayout:{wrapper:{style:{width:"100%",height:"auto",maxHeight:"auto"}},container:{style:{left:0,padding:"0 0 3rem",marginTop:"3.6rem"}}},default_manifests:{include_settings:!0,include_core_data:!0},default_navigation:{include_settings:!0},extension_overrides:{customCardProps:{standard_account:{}},customIndexButton:{standard_asset:{onClick:"func:this.props.createModal",onclickProps:{title:"Upload new assets",pathname:"/r-admin/standard_assets/newmodal"}}},customIndexTableProps:{standard_asset:{flattenRowDataOptions:{maxDepth:2}}},customDetailEditor:{dblog_logger:{base:!1,advanced:!0}},customIndexPageComponents:{configuration:{component:"code",props:{style:{display:"block",border:"1px solid #d3d6db",boxShadow:"inset 0 1px 2px rgba(17,17,17,.1)",padding:"0.5rem",backgroundColor:"whitesmoke"}},children:[{component:"em",props:{style:{color:"lightslategrey"}},children:"//creating configurations"},{component:"br"},{component:"div",children:"$ periodicjs cco [type] [name] [environment] [path/to/output/config/json]"},{component:"div",children:"$ periodicjs createConfig [type] [name] [environment] [path/to/output/config/json]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//types: app|application|ext|extension|ext-local|extension-local|con|container|con-local|container-local"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example creating configuration"},{component:"br"},{component:"div",children:"$ periodicjs createConfig ext periodicjs.ext.dbseed development ~/Desktop/dev.dbseed-config.json"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//add configuration"},{component:"br"},{component:"div",children:"$ periodicjs aco [path/to/configuration/json]"},{component:"div",children:"$ periodicjs addConfig [path/to/configuration/json]"},{component:"div",children:"$ node index.js --cli --crud=ext --crud_op=create --crud_arg=[path/to/configuration/json]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example manually adding configuration"},{component:"br"},{component:"div",children:"$ periodicjs addConfig /home/myuser/documents/projects/appconfig-dev.json"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//remove configuration"},{component:"br"},{component:"div",children:"$ periodicjs rco [id-of-configuration-doc]"},{component:"div",children:"$ periodicjs removeConfig [id-of-configuration-doc]"},{component:"div",children:"$ node index.js --cli --crud=ext --crud_op=remove --crud_arg=[id-of-configuration-doc]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example manually removing bdb7aa6485aebe8ac81992def07c6f96"},{component:"br"},{component:"div",children:"$ periodicjs removeConfig bdb7aa6485aebe8ac81992def07c6f96"}]},extension:{component:"code",props:{style:{display:"block",border:"1px solid #d3d6db",boxShadow:"inset 0 1px 2px rgba(17,17,17,.1)",padding:"0.5rem",backgroundColor:"whitesmoke"}},children:[{component:"em",props:{style:{color:"lightslategrey"}},children:"//add extension"},{component:"br"},{component:"div",children:"$ periodicjs aex [name-of-extension]"},{component:"div",children:"$ periodicjs addExtension [name-of-extension]"},{component:"div",children:"$ node index.js --cli --crud=ext --crud_op=create --crud_arg=[name-of-extension]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example manually adding periodicjs.ext.passport"},{component:"br"},{component:"div",children:"$ npm i periodicjs.ext.passport"},{component:"div",children:"$ periodicjs addExtension periodicjs.ext.passport"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//remove extension"},{component:"br"},{component:"div",children:"$ periodicjs rex [name-of-extension]"},{component:"div",children:"$ periodicjs removeExtension [name-of-extension]"},{component:"div",children:"$ node index.js --cli --crud=ext --crud_op=remove --crud_arg=[name-of-extension]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example manually removing periodicjs.ext.passport"},{component:"br"},{component:"div",children:"$ periodicjs removeExtension periodicjs.ext.passport"},{component:"div",children:"$ npm rm periodicjs.ext.passport"}]}},customDetailPageComponents:{configuration:{component:"code",props:{style:{display:"block",border:"1px solid #d3d6db",boxShadow:"inset 0 1px 2px rgba(17,17,17,.1)",padding:"0.5rem",backgroundColor:"whitesmoke"}},children:[{component:"em",props:{style:{color:"lightslategrey"}},children:"//creating configurations"},{component:"br"},{component:"div",children:"$ periodicjs cco [type] [name] [environment] [path/to/output/config/json]"},{component:"div",children:"$ periodicjs createConfig [type] [name] [environment] [path/to/output/config/json]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//types: app|application|ext|extension|ext-local|extension-local|con|container|con-local|container-local"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example creating configuration"},{component:"br"},{component:"div",children:"$ periodicjs createConfig ext periodicjs.ext.dbseed development ~/Desktop/dev.dbseed-config.json"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//add configuration"},{component:"br"},{component:"div",children:"$ periodicjs aco [path/to/configuration/json]"},{component:"div",children:"$ periodicjs addConfig [path/to/configuration/json]"},{component:"div",children:"$ node index.js --cli --crud=ext --crud_op=create --crud_arg=[path/to/configuration/json]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example manually adding configuration"},{component:"br"},{component:"div",children:"$ periodicjs addConfig /home/myuser/documents/projects/appconfig-dev.json"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//remove configuration"},{component:"br"},{component:"div",children:"$ periodicjs rco [id-of-configuration-doc]"},{component:"div",children:"$ periodicjs removeConfig [id-of-configuration-doc]"},{component:"div",children:"$ node index.js --cli --crud=ext --crud_op=remove --crud_arg=[id-of-configuration-doc]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example manually removing bdb7aa6485aebe8ac81992def07c6f96"},{component:"br"},{component:"div",children:"$ periodicjs removeConfig bdb7aa6485aebe8ac81992def07c6f96"}]},extension:{component:"code",props:{style:{display:"block",border:"1px solid #d3d6db",boxShadow:"inset 0 1px 2px rgba(17,17,17,.1)",padding:"0.5rem",backgroundColor:"whitesmoke"}},children:[{component:"em",props:{style:{color:"lightslategrey"}},children:"//add extension"},{component:"br"},{component:"div",children:"$ periodicjs aex [name-of-extension]"},{component:"div",children:"$ periodicjs addExtension [name-of-extension]"},{component:"div",children:"$ node index.js --cli --crud=ext --crud_op=create --crud_arg=[name-of-extension]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example manually adding periodicjs.ext.passport"},{component:"br"},{component:"div",children:"$ npm i periodicjs.ext.passport"},{component:"div",children:"$ periodicjs addExtension periodicjs.ext.passport"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//remove extension"},{component:"br"},{component:"div",children:"$ periodicjs rex [name-of-extension]"},{component:"div",children:"$ periodicjs removeExtension [name-of-extension]"},{component:"div",children:"$ node index.js --cli --crud=ext --crud_op=remove --crud_arg=[name-of-extension]"},{component:"br"},{component:"em",props:{style:{color:"lightslategrey"}},children:"//example manually removing periodicjs.ext.passport"},{component:"br"},{component:"div",children:"$ periodicjs removeExtension periodicjs.ext.passport"},{component:"div",children:"$ npm rm periodicjs.ext.passport"}]}}},additional_js_files:{header:[],footer:[]}}</script><link href="/extensions/periodicjs.ext.reactapp/static/css/main.1e463fe6.css" rel="stylesheet"></head><body><div id="root"></div><script type="text/javascript">function updatePreview(e, formElement){
// console.warn('updatePreview this',this);
// console.warn('updatePreview arguments',arguments);
// console.warn('updatePreview',{e, formElement});
// // return {};
// console.warn('this.setState',this.setState);
const original_function_body = this.state.reduction_function;
try {
const numeral = window.__reactapp.__ra_helpers.numeral;
const moment = window.__reactapp.__ra_helpers.moment;
const props = {numeral,moment,luxon};
const functionBody = '"use strict";\n var window={}; var document={}; var global={};'+this.state.reduction_function;
const reduceTransform = Function('datasetData',functionBody);
Object.defineProperty(
reduceTransform,
'name',
{
value: 'reduceTransform',
}
);
// console.log({functionBody,props,});
const preview = reduceTransform.call({props},this.state.dataset_data);
// console.log({preview});
this.setState({preview});
} catch(e){
this.setState({reduction_function:original_function_body})
console.error(e);
this.props.errorNotification(e);
}
}
function formRedirect(options){
var pathname = window.location.pathname;
var dimension = options.dimension||'';
var redirectpath = pathname+'/?property='+options.property+'&start_date='+options.start_date+'&end_date='+options.end_date+'&dimension='+dimension.split('/').filter(p=>p).join('/');
var fixedpath = (redirectpath.charAt(0)==='/')?redirectpath:'/'+redirectpath;
this.props.reduxRouter.push(redirectpath.replace(/\/\//gi,''));
}
function testRef(component){
console.warn({component});
}
/*
window.__reactapp = Object.assign({}, {
__ra_helpers: {
numeral,
moment,
capitalize,
pluralize,
},
}, window.__reactapp);
*/</script><script>function routerRedirect(formdata){
// console.log({formdata});
const nonFormFields = [ '$loki', 'formDataError', 'meta', '__formIsSubmitting', '__formOptions', ];
const fields = Object.keys(formdata).filter(field=>nonFormFields.indexOf(field)===-1);
const qs = fields.reduce((querystring,field)=>{
if(typeof formdata[field] !=='undefined') querystring+='&'+field+'='+formdata[field]+'';
return querystring;
},'');
const pathname = window.location.pathname;
const redirect = pathname+'?'+qs;
// console.log({ fields, qs, pathname, redirect});
this.props.reduxRouter.push(redirect);
}
function testRef(element){
console.warn('testing ref',{element})
}
function getDBQueryFormRef(element){
window.__elmRef_data_warehouse_db_form = element;
}
function getDBQueryResultsRef(element){
window.__elmRef_data_warehouse_db_results = element;
}
function setDBQueryResults(responseData){
// console.warn({responseData});
const data = responseData.data;
const resourses = Object.keys(data).reduce((result,item,index)=>{
result.push(data[item]);
return result;
},[]) ;
// console.log('resourses',resourses)
window.__elmRef_data_warehouse_db_results.setState({hasLoaded:false},()=>{
__elmRef_data_warehouse_db_results.assignResources( resourses);
});
}
function getPreviewVizRef(element){
console.warn({element})
if(element){
if(element.props.visualization_id!==window.__elmRef_previewViz.visualization_id){
window.__elmRef_previewViz.visualization_id = element.props.visualization_id;
window.__elmRef_previewViz.tabs = {};
}
window.__elmRef_previewViz.tabs[element.props.tabIndex]=element;
}
}
window.__elmRef_previewViz={
visualization_id:undefined,
tabs:{},
};
function handleVizTypeChance(element){
const chartType = document.querySelector('.chart_type_'+element.tabIndex);
const chartProps = document.querySelector('.chart_props_'+element.tabIndex);
const chartGraph = document.querySelector('.chart_graph_'+element.tabIndex);
const chartGraphItem = document.querySelector('.chart_graph_items_'+element.tabIndex);
const chartPie = document.querySelector('.chart_pie_'+element.tabIndex);
// console.log({element, chartType},'this',this)
if(this.state[element.name] !=='chart'){
chartType.classList.add('__rep_hide');
chartProps.classList.add('__rep_hide');
chartGraph.classList.add('__rep_hide');
chartGraphItem.classList.add('__rep_hide');
chartPie.classList.add('__rep_hide');
} else{
chartType.classList.remove('__rep_hide');
chartProps.classList.remove('__rep_hide');
chartGraph.classList.remove('__rep_hide');
chartGraphItem.classList.remove('__rep_hide');
chartPie.classList.remove('__rep_hide');
}
}
function getFilterQueryRef(element){
// console.warn('SETTING FILTER FORM')
window.__elmRef_filter_query_form = element;
}</script><style>body,body.__ra_mc_loaded.__reactapp_body_loaded{overflow-y:auto;overflow-x:hidden}html{overflow-x:hidden}div#root{min-height:100%;height:auto}dt{font-weight:700}a{color:#6991ac}.__re-bulma_button.__re-bulma_is-primary.__re-bulma_is-outlined{background-color:transparent;border-color:#6991ac;color:#6991ac}.__re-bulma_button.__re-bulma_is-primary{background-color:#6991ac;border-color:transparent;color:#fff}.__re-bulma_button.__re-bulma_is-primary.__re-bulma_is-outlined:focus,.__re-bulma_button.__re-bulma_is-primary.__re-bulma_is-outlined:hover{background-color:#6991ac;border-color:#6991ac;color:#fff}.__re-bulma_hero.__re-bulma_is-white .__re-bulma_nav-item a:not(.__re-bulma_button).__re-bulma_is-active,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_nav-item a:not(.__re-bulma_button):hover,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-boxed a,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-boxed span,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-toggle a,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-toggle span,.__re-bulma_hero.__re-bulma_is-white a.__re-bulma_nav-item.__re-bulma_is-active,.__re-bulma_hero.__re-bulma_is-white a.__re-bulma_nav-item:hover{color:#6991ac}.__re-bulma_notification.__re-bulma_is-primary{background-color:#6991ac;color:#fff}.__re-bulma_button.__re-bulma_is-primary.__re-bulma_is-active,.__re-bulma_button.__re-bulma_is-primary:focus,.__re-bulma_button.__re-bulma_is-primary:hover{border-color:transparent;color:#fff;background-color:#627e92}.rc-switch-checked{border:1px solid #6991ac;background-color:#6991ac}.__re-bulma_card-header-title{color:#f5f5f5;background-color:#303438}.__re-bulma_card-header-icon{background-color:#303438}.__re-bulma_select:after{border-color:#6991ac}.__re-bulma_button.__re-bulma_is-active,.__re-bulma_button:focus,button:active{border-color:#6991ac}.__re-bulma_input.__re-bulma_is-active,.__re-bulma_input:active,.__re-bulma_input:focus,.__re-bulma_is-active.__re-bulma_textarea,.__re-bulma_textarea:active,.__re-bulma_textarea:focus{border-color:#6991ac}.__re-bulma_select select.__re-bulma_is-active,.__re-bulma_select select:active,.__re-bulma_select select:focus{border-color:#6991ac}.__re-bulma_tabs li.__re-bulma_is-active a,.__re-bulma_tabs li.__re-bulma_is-active span{color:#6991ac}.__re-bulma_hero.__re-bulma_is-primary{background-color:#6991ac;color:#fff}.__rep_tab .__re-bulma_tabs li{display:block;bottom:-2px;position:relative}.__re-bulma_modal-card-head{vertical-align:baseline;background-color:#303438;border-bottom:1px solid #d3d6db}.__re-bulma_modal-card-title{color:#fff}.__re-bulma_hero-body{padding:40px 20px}.carousel .slide section{text-align:left}.carousel .slide .__re-bulma_media-left{margin:0 10px 0 0;padding:0}.Medium-Speed{animation-duration:.5s}.__rep_data_table_column{max-width:15rem;text-overflow:ellipsis;overflow:hidden}.__rep_data_table_column:hover{word-break:break-all}.__re-bulma_modal.__rep_use_side_preview{width:90%;margin:auto}.__re-bulma_modal.__rep_use_side_preview .__re-bulma_modal-card.__re-bulma_modal_card{min-width:95%;width:auto}.__rep_hide_preview{display:none}.__rep_drop_cap:first-child::first-letter{float:left!important;font-size:3rem;line-height:2rem}.__rep_menu_dropdown{padding:.5rem 0}.__re-bulma_select button,.__re-bulma_select input,.__re-bulma_select select,.__re-bulma_select textarea{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}.__rep_menu_dropdown .__rep_menu_dropdown_content{display:none;position:absolute;flex-direction:column;top:3rem;padding:1rem;background:#fff;z-index:1000;box-shadow:rgba(17,17,17,.1) 0 2px 3px,rgba(17,17,17,.1) 0 0 0 1px;text-align:left}.__rep_menu_dropdown:hover .__rep_menu_dropdown_content{display:flex}.__rep_menu_dropdown .__rep_menu_dropdown_content .__rep_menu_dropdown{padding:0}.__rep_title_container .__re-bulma_select select{background-color:transparent;border-color:#6991ac;color:#6991ac}.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-boxed li.__re-bulma_is-active a,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-boxed li.__re-bulma_is-active a:hover,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-boxed li.__re-bulma_is-active span,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-boxed li.__re-bulma_is-active span:hover,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-toggle li.__re-bulma_is-active a,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-toggle li.__re-bulma_is-active a:hover,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-toggle li.__re-bulma_is-active span,.__re-bulma_hero.__re-bulma_is-white .__re-bulma_tabs.__re-bulma_is-toggle li.__re-bulma_is-active span:hover{background-color:#fff;border-color:#d3d6db;border-bottom-color:transparent;color:#6991ac}.__re-bulma_tabs a,.__re-bulma_tabs span{color:#69707a}.__re-bulma_hero .__re-bulma_tabs ul{border-bottom:1px solid #d3d6db}@media screen and (min-width:769px){.is-hidden-tablet{display:none}}@media screen and (max-width:768px){.__re-bulma_nav{padding:0 1rem}.__re-bulma_columns.mobile-spacing .__re-bulma_column{margin:4rem 0}.__re-bulma_hero-body{padding:60px 20px}}</style><script src="/extensions/periodicjs.ext.reactapp/static/js/main.11f70117.js"></script></body></html>