You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
141 lines
6.7 KiB
141 lines
6.7 KiB
<?php
|
|
|
|
//application details
|
|
$apps[$x]['name'] = 'Dashboard';
|
|
$apps[$x]['uuid'] = '55533bef-4f04-434a-92af-999c1e9927f7';
|
|
$apps[$x]['category'] = 'system';
|
|
$apps[$x]['subcategory'] = '';
|
|
$apps[$x]['version'] = '1.0';
|
|
$apps[$x]['license'] = 'Mozilla Public License 1.1';
|
|
$apps[$x]['url'] = 'http://www.fusionpbx.com';
|
|
$apps[$x]['description']['en-us'] = '';
|
|
|
|
//permission details
|
|
$y = 0;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_view';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_add';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_edit';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_delete';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_all';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_group_view';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_group_add';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_group_edit';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_group_delete';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'dashboard_group_all';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
$y++;
|
|
|
|
//dashboard
|
|
$y = 0;
|
|
$apps[$x]['db'][$y]['table']['name'] = 'v_dashboard';
|
|
$apps[$x]['db'][$y]['table']['parent'] = '';
|
|
$z = 0;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_name';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard name.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_path';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard path.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_column_span';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard column span.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_order';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'numeric';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard order.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_enabled';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'boolean';
|
|
$apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false'];
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard enabled.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_description';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = '';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the dashboard description.';
|
|
$z++;
|
|
|
|
//dashboard groups
|
|
$y = 5;
|
|
$apps[$x]['db'][$y]['table']['name'] = 'v_dashboard_groups';
|
|
$apps[$x]['db'][$y]['table']['parent'] = 'v_dashboard';
|
|
$z = 0;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_group_uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'dashboard_uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_dashboard';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'dashboard_uuid';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'group_uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search_by'] = 'no';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the group uuid.';
|
|
$z++;
|
|
|
|
//default settings
|
|
$y=0;
|
|
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "8e44f758-e2ec-41e0-aa81-464fefb3bdb3";
|
|
$apps[$x]['default_settings'][$y]['default_setting_category'] = "dashboard";
|
|
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "chart_text_size";
|
|
$apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
|
|
$apps[$x]['default_settings'][$y]['default_setting_value'] = "30";
|
|
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
|
|
$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
|
|
$y++;
|
|
$apps[$x]['default_settings'][$y]['default_setting_uuid'] = "6e797ac7-31bc-497c-88e3-c41fc12e7e45";
|
|
$apps[$x]['default_settings'][$y]['default_setting_category'] = "dashboard";
|
|
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "chart_text_color";
|
|
$apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
|
|
$apps[$x]['default_settings'][$y]['default_setting_value'] = "#444444";
|
|
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
|
|
$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
|
|
|
|
?>
|