rails_db_admin 2.1.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/controllers/rails_db_admin/erp_app/desktop/base_controller.rb +6 -4
- data/app/controllers/rails_db_admin/erp_app/desktop/queries_controller.rb +1 -1
- data/db/migrate/20131112013053_add_rails_db_admin_missing_indexes.rb +17 -0
- data/lib/rails_db_admin.rb +0 -1
- data/lib/rails_db_admin/engine.rb +1 -1
- data/lib/rails_db_admin/extjs/json_column_builder.rb +53 -43
- data/lib/rails_db_admin/table_support.rb +24 -15
- data/lib/rails_db_admin/version.rb +7 -3
- data/public/images/icons/rails_db_admin/rails_db_admin_16x16.png +0 -0
- data/public/images/icons/rails_db_admin/rails_db_admin_64x64.png +0 -0
- data/public/images/icons/rails_db_admin/rails_db_admin_light_16x16.png +0 -0
- data/public/images/splash/images/console-icon.png +0 -0
- data/public/images/splash/images/data-model-icon.png +0 -0
- data/public/images/splash/splash.png +0 -0
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/database_combo.js +28 -25
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/module.js +276 -215
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/queries_tree_menu.js +3 -3
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/query_panel.js +100 -97
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/readonly_table_data_grid.js +22 -18
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/report_panel.js +1 -1
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/reports_tree_panel.js +2 -2
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/splash_screen.js +136 -0
- data/public/javascripts/erp_app/desktop/applications/rails_db_admin/tables_tree_menu.js +25 -10
- data/public/stylesheets/erp_app/desktop/applications/rails_db_admin/rails_db_admin.css +4 -0
- metadata +44 -44
- data/app/helpers/rails_db_admin/application_helper.rb +0 -4
- data/public/images/icons/rails_db_admin/rails_db_admin_48x48.png +0 -0
@@ -16,10 +16,16 @@ Ext.define("Compass.ErpApp.Desktop.Applications.RailsDbAdmin.TablesMenuTreePanel
|
|
16
16
|
xtype: 'textfield',
|
17
17
|
flex: 1,
|
18
18
|
emptyText: 'Table Name',
|
19
|
-
listeners:{
|
20
|
-
change:function(comp, newValue, oldValue){
|
19
|
+
listeners: {
|
20
|
+
change: function (comp, newValue, oldValue) {
|
21
21
|
var store = comp.up('treepanel').getStore();
|
22
|
-
|
22
|
+
|
23
|
+
setTimeout(function(){
|
24
|
+
if(!store.loading){
|
25
|
+
store.reload({params: {name: newValue}});
|
26
|
+
}
|
27
|
+
}, 500);
|
28
|
+
|
23
29
|
}
|
24
30
|
}
|
25
31
|
}
|
@@ -32,10 +38,10 @@ Ext.define("Compass.ErpApp.Desktop.Applications.RailsDbAdmin.TablesMenuTreePanel
|
|
32
38
|
url: '/rails_db_admin/erp_app/desktop/base/tables'
|
33
39
|
},
|
34
40
|
root: {
|
35
|
-
text: 'Tables',
|
36
|
-
expanded:
|
41
|
+
text: 'Database Tables',
|
42
|
+
expanded: true,
|
37
43
|
draggable: false,
|
38
|
-
iconCls: 'icon-
|
44
|
+
iconCls: 'icon-database'
|
39
45
|
},
|
40
46
|
fields: [
|
41
47
|
{
|
@@ -61,6 +67,15 @@ Ext.define("Compass.ErpApp.Desktop.Applications.RailsDbAdmin.TablesMenuTreePanel
|
|
61
67
|
}),
|
62
68
|
animate: false,
|
63
69
|
listeners: {
|
70
|
+
'itemclick': function (view, record, item, index, e, eOpts) {
|
71
|
+
|
72
|
+
e.stopEvent();
|
73
|
+
if (!record.data['isTable']) {
|
74
|
+
return false;
|
75
|
+
}
|
76
|
+
self.initialConfig.module.getTableData(record.data.text);
|
77
|
+
},
|
78
|
+
|
64
79
|
'itemcontextmenu': function (view, record, item, index, e) {
|
65
80
|
e.stopEvent();
|
66
81
|
if (!record.data['isTable']) {
|
@@ -71,21 +86,21 @@ Ext.define("Compass.ErpApp.Desktop.Applications.RailsDbAdmin.TablesMenuTreePanel
|
|
71
86
|
items: [
|
72
87
|
{
|
73
88
|
text: "Select Top 50",
|
74
|
-
iconCls: 'icon-
|
89
|
+
iconCls: 'icon-db-rowselect',
|
75
90
|
listeners: {
|
76
91
|
scope: record,
|
77
92
|
'click': function () {
|
78
|
-
self.initialConfig.module.selectTopFifty(this.data.
|
93
|
+
self.initialConfig.module.selectTopFifty(this.data.text);
|
79
94
|
}
|
80
95
|
}
|
81
96
|
},
|
82
97
|
{
|
83
98
|
text: "Edit Table Data",
|
84
|
-
iconCls: 'icon-edit',
|
99
|
+
iconCls: 'icon-db-edit-data',
|
85
100
|
listeners: {
|
86
101
|
scope: record,
|
87
102
|
'click': function () {
|
88
|
-
self.initialConfig.module.getTableData(this.data.
|
103
|
+
self.initialConfig.module.getTableData(this.data.text);
|
89
104
|
}
|
90
105
|
}
|
91
106
|
}
|
@@ -3,6 +3,10 @@
|
|
3
3
|
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/icons/rails_db_admin/rails_db_admin_16x16.png', sizingMethod='crop');
|
4
4
|
}
|
5
5
|
|
6
|
+
.icon-rails_db_admin-light {
|
7
|
+
background-image:url( /images/icons/rails_db_admin/rails_db_admin_light_16x16.png ) !important;
|
8
|
+
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/icons/rails_db_admin/rails_db_admin_16x16.png', sizingMethod='crop');
|
9
|
+
}
|
6
10
|
|
7
11
|
|
8
12
|
|
metadata
CHANGED
@@ -1,48 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_db_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 3.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rick Koloski, Russell Holmes
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
14
|
+
name: erp_app
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '4.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
26
|
+
version: '4.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: erp_dev_svcs
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
33
|
+
version: '4.0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
40
|
+
version: '4.0'
|
46
41
|
description: RailsDB Admin is similar in functionality to PHPMyAdmin and other database
|
47
42
|
browsing and data editing tools. It uses the CompassAE database connection information
|
48
43
|
to discover the schema for an installation, and generates Extjs UIs for creating
|
@@ -53,56 +48,63 @@ executables: []
|
|
53
48
|
extensions: []
|
54
49
|
extra_rdoc_files: []
|
55
50
|
files:
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
59
|
-
- public/images/icons/rails_db_admin/rails_db_admin_48x48.png
|
60
|
-
- public/javascripts/erp_app/desktop/applications/rails_db_admin/database_combo.js
|
61
|
-
- public/javascripts/erp_app/desktop/applications/rails_db_admin/module.js
|
62
|
-
- public/javascripts/erp_app/desktop/applications/rails_db_admin/queries_tree_menu.js
|
63
|
-
- public/javascripts/erp_app/desktop/applications/rails_db_admin/query_panel.js
|
64
|
-
- public/javascripts/erp_app/desktop/applications/rails_db_admin/readonly_table_data_grid.js
|
65
|
-
- public/javascripts/erp_app/desktop/applications/rails_db_admin/report_panel.js
|
66
|
-
- public/javascripts/erp_app/desktop/applications/rails_db_admin/reports_tree_panel.js
|
67
|
-
- public/javascripts/erp_app/desktop/applications/rails_db_admin/tables_tree_menu.js
|
68
|
-
- public/stylesheets/erp_app/desktop/applications/rails_db_admin/rails_db_admin.css
|
51
|
+
- GPL-3-LICENSE
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
69
54
|
- app/assets/javascripts/rails_db_admin/application.js
|
70
55
|
- app/assets/stylesheets/rails_db_admin/application.css
|
71
56
|
- app/controllers/rails_db_admin/erp_app/desktop/base_controller.rb
|
72
57
|
- app/controllers/rails_db_admin/erp_app/desktop/queries_controller.rb
|
73
58
|
- app/controllers/rails_db_admin/erp_app/desktop/reports_controller.rb
|
74
59
|
- app/controllers/rails_db_admin/reports/base_controller.rb
|
75
|
-
- app/helpers/rails_db_admin/application_helper.rb
|
76
60
|
- app/models/report.rb
|
77
61
|
- app/views/rails_db_admin/reports/base/no_report.erb
|
78
62
|
- app/views/rails_db_admin/reports/base/show_report.erb
|
79
63
|
- config/routes.rb
|
80
64
|
- db/data_migrations/20110816005525_rails_db_admin_application.rb
|
81
65
|
- db/migrate/20121210160131_add_reports.rb
|
66
|
+
- db/migrate/20131112013053_add_rails_db_admin_missing_indexes.rb
|
67
|
+
- lib/rails_db_admin.rb
|
82
68
|
- lib/rails_db_admin/config.rb
|
83
69
|
- lib/rails_db_admin/connection_handler.rb
|
84
70
|
- lib/rails_db_admin/engine.rb
|
85
71
|
- lib/rails_db_admin/extensions/railties/action_view/base.rb
|
86
72
|
- lib/rails_db_admin/extensions/railties/action_view/helpers/report_helper.rb
|
73
|
+
- lib/rails_db_admin/extjs.rb
|
87
74
|
- lib/rails_db_admin/extjs/json_column_builder.rb
|
88
75
|
- lib/rails_db_admin/extjs/json_data_builder.rb
|
89
|
-
- lib/rails_db_admin/extjs.rb
|
90
76
|
- lib/rails_db_admin/query_support.rb
|
91
77
|
- lib/rails_db_admin/report_support.rb
|
92
78
|
- lib/rails_db_admin/table_support.rb
|
93
79
|
- lib/rails_db_admin/version.rb
|
94
|
-
- lib/rails_db_admin.rb
|
95
80
|
- lib/tasks/rails_db_admin_tasks.rake
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
81
|
+
- public/images/icons/rails_db_admin/rails_db_admin_16x16.png
|
82
|
+
- public/images/icons/rails_db_admin/rails_db_admin_24x24.png
|
83
|
+
- public/images/icons/rails_db_admin/rails_db_admin_32x32.png
|
84
|
+
- public/images/icons/rails_db_admin/rails_db_admin_64x64.png
|
85
|
+
- public/images/icons/rails_db_admin/rails_db_admin_light_16x16.png
|
86
|
+
- public/images/splash/images/console-icon.png
|
87
|
+
- public/images/splash/images/data-model-icon.png
|
88
|
+
- public/images/splash/splash.png
|
89
|
+
- public/javascripts/erp_app/desktop/applications/rails_db_admin/database_combo.js
|
90
|
+
- public/javascripts/erp_app/desktop/applications/rails_db_admin/module.js
|
91
|
+
- public/javascripts/erp_app/desktop/applications/rails_db_admin/queries_tree_menu.js
|
92
|
+
- public/javascripts/erp_app/desktop/applications/rails_db_admin/query_panel.js
|
93
|
+
- public/javascripts/erp_app/desktop/applications/rails_db_admin/readonly_table_data_grid.js
|
94
|
+
- public/javascripts/erp_app/desktop/applications/rails_db_admin/report_panel.js
|
95
|
+
- public/javascripts/erp_app/desktop/applications/rails_db_admin/reports_tree_panel.js
|
96
|
+
- public/javascripts/erp_app/desktop/applications/rails_db_admin/splash_screen.js
|
97
|
+
- public/javascripts/erp_app/desktop/applications/rails_db_admin/tables_tree_menu.js
|
98
|
+
- public/stylesheets/erp_app/desktop/applications/rails_db_admin/rails_db_admin.css
|
99
99
|
- spec/controllers/rails_db_admin/erp_app/desktop/base_controller_spec.rb
|
100
100
|
- spec/controllers/rails_db_admin/erp_app/desktop/queries_controller_spec.rb
|
101
|
+
- spec/dummy/Rakefile
|
101
102
|
- spec/dummy/app/assets/javascripts/application.js
|
102
103
|
- spec/dummy/app/assets/stylesheets/application.css
|
103
104
|
- spec/dummy/app/controllers/application_controller.rb
|
104
105
|
- spec/dummy/app/helpers/application_helper.rb
|
105
106
|
- spec/dummy/app/views/layouts/application.html.erb
|
107
|
+
- spec/dummy/config.ru
|
106
108
|
- spec/dummy/config/application.rb
|
107
109
|
- spec/dummy/config/boot.rb
|
108
110
|
- spec/dummy/config/database.yml
|
@@ -117,12 +119,10 @@ files:
|
|
117
119
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
118
120
|
- spec/dummy/config/locales/en.yml
|
119
121
|
- spec/dummy/config/routes.rb
|
120
|
-
- spec/dummy/config.ru
|
121
122
|
- spec/dummy/public/404.html
|
122
123
|
- spec/dummy/public/422.html
|
123
124
|
- spec/dummy/public/500.html
|
124
125
|
- spec/dummy/public/favicon.ico
|
125
|
-
- spec/dummy/Rakefile
|
126
126
|
- spec/dummy/script/rails
|
127
127
|
- spec/lib/rails_db_admin/extjs/json_column_builder_spec.rb
|
128
128
|
- spec/lib/rails_db_admin/extjs/json_data_builder_spec.rb
|
@@ -130,28 +130,28 @@ files:
|
|
130
130
|
- spec/lib/rails_db_admin/table_support_spec.rb
|
131
131
|
- spec/spec_helper.rb
|
132
132
|
homepage: http://development.compassagile.com
|
133
|
-
licenses:
|
133
|
+
licenses:
|
134
|
+
- GPL-3-LICENSE
|
135
|
+
metadata: {}
|
134
136
|
post_install_message:
|
135
137
|
rdoc_options: []
|
136
138
|
require_paths:
|
137
139
|
- lib
|
138
140
|
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
141
|
requirements:
|
141
|
-
- -
|
142
|
+
- - ">="
|
142
143
|
- !ruby/object:Gem::Version
|
143
144
|
version: '0'
|
144
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
146
|
requirements:
|
147
|
-
- -
|
147
|
+
- - ">="
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version:
|
152
|
+
rubygems_version: 2.2.2
|
153
153
|
signing_key:
|
154
|
-
specification_version:
|
154
|
+
specification_version: 4
|
155
155
|
summary: RailsDB Admin is similar in functionality to PHPMyAdmin and other database
|
156
156
|
browsing and data editing tools.
|
157
157
|
test_files:
|
Binary file
|