rails_db_admin 3.0.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{public → app/assets}/images/icons/rails_db_admin/rails_db_admin_16x16.png +0 -0
- data/{public → app/assets}/images/icons/rails_db_admin/rails_db_admin_24x24.png +0 -0
- data/{public → app/assets}/images/icons/rails_db_admin/rails_db_admin_32x32.png +0 -0
- data/{public → app/assets}/images/icons/rails_db_admin/rails_db_admin_64x64.png +0 -0
- data/{public → app/assets}/images/icons/rails_db_admin/rails_db_admin_light_16x16.png +0 -0
- data/app/assets/images/splash/db_admin_splash.png +0 -0
- data/{public → app/assets}/images/splash/images/console-icon.png +0 -0
- data/{public → app/assets}/images/splash/images/data-model-icon.png +0 -0
- data/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/app.js +20 -0
- data/{public → app/assets}/javascripts/erp_app/desktop/applications/rails_db_admin/database_combo.js +1 -1
- data/{public → app/assets}/javascripts/erp_app/desktop/applications/rails_db_admin/module.js +227 -135
- data/{public → app/assets}/javascripts/erp_app/desktop/applications/rails_db_admin/queries_tree_menu.js +6 -6
- data/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/query_panel.js +383 -0
- data/{public → app/assets}/javascripts/erp_app/desktop/applications/rails_db_admin/readonly_table_data_grid.js +0 -0
- data/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/reports/ParamWindow.js +426 -0
- data/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/reports/ParamsManager.js +177 -0
- data/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/reports/RolesPanel.js +95 -0
- data/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/reports/SetDefaultWindow.js +244 -0
- data/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/reports/Settings.js +155 -0
- data/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/reports/TreePanel.js +391 -0
- data/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/splash_screen.js +163 -0
- data/{public → app/assets}/javascripts/erp_app/desktop/applications/rails_db_admin/tables_tree_menu.js +5 -3
- data/app/assets/javascripts/erp_app/shared/MultiOption.js +151 -0
- data/app/assets/javascripts/erp_app/shared/ReportsParams.js +289 -0
- data/app/assets/javascripts/erp_app/shared/rails_db_admin_shared.js +13 -0
- data/{public/stylesheets/erp_app/desktop/applications/rails_db_admin/rails_db_admin.css → app/assets/stylesheets/erp_app/shared/rails_db_admin_shared.css} +5 -10
- data/app/controllers/rails_db_admin/erp_app/desktop/base_controller.rb +7 -6
- data/app/controllers/rails_db_admin/erp_app/desktop/queries_controller.rb +88 -74
- data/app/controllers/rails_db_admin/erp_app/desktop/reports_controller.rb +361 -30
- data/app/controllers/rails_db_admin/reports/base_controller.rb +105 -22
- data/app/mailers/report_mailer.rb +15 -0
- data/app/models/report.rb +227 -14
- data/app/views/rails_db_admin/reports/base/error_report.erb +27 -0
- data/app/views/report_mailer/email_report.html.erb +255 -0
- data/config/routes.rb +2 -1
- data/db/data_migrations/20110816005525_rails_db_admin_application.rb +6 -14
- data/db/data_migrations/20151015093724_add_report_role_type.rb +15 -0
- data/db/migrate/20121210160131_add_reports.rb +2 -0
- data/db/migrate/20150926061259_add_meta_data_to_reports.rb +9 -0
- data/lib/rails_db_admin.rb +4 -2
- data/lib/rails_db_admin/engine.rb +12 -4
- data/lib/rails_db_admin/erp_string_parser.rb +26 -0
- data/lib/rails_db_admin/extensions/railties/action_view/helpers/report_helper.rb +167 -10
- data/lib/rails_db_admin/extjs/json_data_builder.rb +36 -20
- data/lib/rails_db_admin/query_params.rb +14 -0
- data/lib/rails_db_admin/query_support.rb +56 -46
- data/lib/rails_db_admin/services/report_helper.rb +241 -0
- data/lib/rails_db_admin/version.rb +1 -1
- metadata +41 -30
- data/app/assets/javascripts/rails_db_admin/application.js +0 -9
- data/app/assets/stylesheets/rails_db_admin/application.css +0 -7
- data/app/views/rails_db_admin/reports/base/show_report.erb +0 -11
- data/db/migrate/20131112013053_add_rails_db_admin_missing_indexes.rb +0 -17
- data/lib/rails_db_admin/report_support.rb +0 -52
- data/public/images/splash/splash.png +0 -0
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/query_panel.js +0 -223
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/report_panel.js +0 -78
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/reports_tree_panel.js +0 -237
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/splash_screen.js +0 -136
@@ -1,136 +0,0 @@
|
|
1
|
-
Ext.define("Compass.ErpApp.Desktop.Applications.RailsDbAdmin.SplashScreen", {
|
2
|
-
title: 'Startup',
|
3
|
-
extend: "Ext.panel.Panel",
|
4
|
-
alias: 'widget.railsdbadmin_splash_screen',
|
5
|
-
autoScroll: true,
|
6
|
-
items: [
|
7
|
-
{
|
8
|
-
html: "<div style='margin: 15px 50px 5px 50px;'><hr /><h2 style='margin: 3px 0px 0px 0px; color: #555; text-align: center'>Database Navigator</h2><hr /></div>"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
xtype: 'image',
|
12
|
-
style: 'padding-left: 50%; margin-left: -400px;',
|
13
|
-
src: '/images/splash/splash.png' // src: 'http://placehold.it/800x250'
|
14
|
-
},
|
15
|
-
{
|
16
|
-
html: "<div style='margin: 15px 50px 5px 50px;'><p style='margin: 0px; color: #222; text-align: center; font-size: 16px; font-weight: 300;'>Click on the shortcuts below to get started.</p></div>"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
xtype: 'panel',
|
20
|
-
layout: 'column',
|
21
|
-
style: 'width: 480px; margin-top: 0px; margin-left: auto; margin-right: auto;',
|
22
|
-
items: [
|
23
|
-
|
24
|
-
{
|
25
|
-
xtype: 'panel',
|
26
|
-
height: 140,
|
27
|
-
width: 140,
|
28
|
-
style:{
|
29
|
-
margin: '0px 0px 5px 10px;',
|
30
|
-
cursor: 'pointer'
|
31
|
-
},
|
32
|
-
bodyStyle: 'background: #ddd; padding: 20px; border-radius: 7px; border-color: #aaa !important;',
|
33
|
-
border: true,
|
34
|
-
bodyBorder: true,
|
35
|
-
overCls: 'shortcut-hover',
|
36
|
-
items: [
|
37
|
-
{
|
38
|
-
xtype: 'image',
|
39
|
-
src: '/images/splash/images/data-model-icon.png',
|
40
|
-
height: 80,
|
41
|
-
width: 80,
|
42
|
-
style: 'margin: 0px 0px 5px 10px;',
|
43
|
-
listeners: {
|
44
|
-
render: function (component) {
|
45
|
-
component.getEl().on('click', function (e) {
|
46
|
-
var module = compassDesktop.getModule('rails_db_admin-win');
|
47
|
-
|
48
|
-
module.setWindowStatus('Retrieving Docs...');
|
49
|
-
module.openIframeInTab('Data Models', 'http://documentation.compassagile.com');
|
50
|
-
module.clearWindowStatus();
|
51
|
-
|
52
|
-
}, component);
|
53
|
-
}
|
54
|
-
}
|
55
|
-
},
|
56
|
-
{
|
57
|
-
html: "<p style='background-color: #ddd; margin: 0px; text-align: center'>Browse the DB models</p>"
|
58
|
-
}
|
59
|
-
]
|
60
|
-
},
|
61
|
-
{
|
62
|
-
xtype: 'panel',
|
63
|
-
height: 140,
|
64
|
-
width: 140,
|
65
|
-
style:{
|
66
|
-
margin: '0px 0px 5px 10px;',
|
67
|
-
cursor: 'pointer'
|
68
|
-
},
|
69
|
-
bodyStyle: 'background: #ddd; padding: 20px; border-radius: 7px; border-color: #aaa !important;',
|
70
|
-
border: true,
|
71
|
-
bodyBorder: true,
|
72
|
-
overCls: 'shortcut-hover',
|
73
|
-
items: [
|
74
|
-
{
|
75
|
-
xtype: 'image',
|
76
|
-
src: '/images/splash/images/console-icon.png',
|
77
|
-
height: 80,
|
78
|
-
width: 80,
|
79
|
-
style: 'margin: 0px 0px 5px 10px;',
|
80
|
-
listeners: {
|
81
|
-
render: function (component) {
|
82
|
-
component.getEl().on('click', function (e) {
|
83
|
-
var module = compassDesktop.getModule('rails_db_admin-win');
|
84
|
-
|
85
|
-
module.addConsolePanel();
|
86
|
-
}, component);
|
87
|
-
}
|
88
|
-
}
|
89
|
-
},
|
90
|
-
{
|
91
|
-
html: "<p style='background-color: #ddd; margin: 0px; text-align: center'>Open a console</p>"
|
92
|
-
}
|
93
|
-
]
|
94
|
-
},
|
95
|
-
{
|
96
|
-
xtype: 'panel',
|
97
|
-
height: 140,
|
98
|
-
width: 140,
|
99
|
-
style:{
|
100
|
-
margin: '0px 0px 5px 10px;',
|
101
|
-
cursor: 'pointer'
|
102
|
-
},
|
103
|
-
bodyStyle: 'background: #ddd; padding: 20px; border-radius: 7px; border-color: #aaa !important;',
|
104
|
-
border: true,
|
105
|
-
bodyBorder: true,
|
106
|
-
overCls: 'shortcut-hover',
|
107
|
-
items: [
|
108
|
-
{
|
109
|
-
xtype: 'image',
|
110
|
-
src: '/images/knitkit/splash/images/tutorials.png',
|
111
|
-
height: 80,
|
112
|
-
width: 80,
|
113
|
-
style: 'margin: 0px 0px 5px 10px;',
|
114
|
-
listeners: {
|
115
|
-
render: function (component) {
|
116
|
-
component.getEl().on('click', function (e) {
|
117
|
-
var module = compassDesktop.getModule('rails_db_admin-win');
|
118
|
-
|
119
|
-
module.setWindowStatus('Retrieving Docs...');
|
120
|
-
module.openIframeInTab('Tutorials', 'http://tutorials.compassagile.com');
|
121
|
-
module.clearWindowStatus();
|
122
|
-
|
123
|
-
}, component);
|
124
|
-
}
|
125
|
-
}
|
126
|
-
},
|
127
|
-
{
|
128
|
-
html: "<p style='background-color: #ddd; margin: 0px; text-align: center'>Learn More!</p>"
|
129
|
-
}
|
130
|
-
]
|
131
|
-
}
|
132
|
-
]
|
133
|
-
}
|
134
|
-
]
|
135
|
-
|
136
|
-
});
|