tabulator-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -7
- data/VERSIONS.md +2 -0
- data/lib/tabulator-rails/version.rb +1 -1
- data/tabulator-rails.gemspec +0 -1
- metadata +2 -107
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/test-app/.gitignore +0 -23
- data/test-app/Gemfile +0 -59
- data/test-app/Gemfile.lock +0 -210
- data/test-app/README.md +0 -24
- data/test-app/Rakefile +0 -6
- data/test-app/app/assets/config/manifest.js +0 -3
- data/test-app/app/assets/images/.keep +0 -0
- data/test-app/app/assets/javascripts/application.js +0 -17
- data/test-app/app/assets/javascripts/cable.js +0 -13
- data/test-app/app/assets/javascripts/channels/.keep +0 -0
- data/test-app/app/assets/javascripts/posts.js +0 -28
- data/test-app/app/assets/stylesheets/application.css +0 -16
- data/test-app/app/assets/stylesheets/posts.scss +0 -3
- data/test-app/app/assets/stylesheets/scaffolds.scss +0 -84
- data/test-app/app/channels/application_cable/channel.rb +0 -4
- data/test-app/app/channels/application_cable/connection.rb +0 -4
- data/test-app/app/controllers/application_controller.rb +0 -3
- data/test-app/app/controllers/concerns/.keep +0 -0
- data/test-app/app/controllers/posts_controller.rb +0 -3
- data/test-app/app/helpers/application_helper.rb +0 -2
- data/test-app/app/helpers/posts_helper.rb +0 -2
- data/test-app/app/jobs/application_job.rb +0 -2
- data/test-app/app/mailers/application_mailer.rb +0 -4
- data/test-app/app/models/application_record.rb +0 -3
- data/test-app/app/models/concerns/.keep +0 -0
- data/test-app/app/models/post.rb +0 -2
- data/test-app/app/views/layouts/application.html.erb +0 -14
- data/test-app/app/views/layouts/mailer.html.erb +0 -13
- data/test-app/app/views/layouts/mailer.text.erb +0 -1
- data/test-app/app/views/posts/index.html.erb +0 -3
- data/test-app/bin/bundle +0 -3
- data/test-app/bin/rails +0 -9
- data/test-app/bin/rake +0 -9
- data/test-app/bin/setup +0 -38
- data/test-app/bin/spring +0 -17
- data/test-app/bin/update +0 -29
- data/test-app/bin/yarn +0 -11
- data/test-app/config.ru +0 -5
- data/test-app/config/application.rb +0 -18
- data/test-app/config/boot.rb +0 -3
- data/test-app/config/cable.yml +0 -10
- data/test-app/config/database.yml +0 -25
- data/test-app/config/environment.rb +0 -5
- data/test-app/config/environments/development.rb +0 -54
- data/test-app/config/environments/production.rb +0 -91
- data/test-app/config/environments/test.rb +0 -42
- data/test-app/config/initializers/application_controller_renderer.rb +0 -8
- data/test-app/config/initializers/assets.rb +0 -14
- data/test-app/config/initializers/backtrace_silencers.rb +0 -7
- data/test-app/config/initializers/cookies_serializer.rb +0 -5
- data/test-app/config/initializers/filter_parameter_logging.rb +0 -4
- data/test-app/config/initializers/inflections.rb +0 -16
- data/test-app/config/initializers/mime_types.rb +0 -4
- data/test-app/config/initializers/wrap_parameters.rb +0 -14
- data/test-app/config/locales/en.yml +0 -33
- data/test-app/config/puma.rb +0 -56
- data/test-app/config/routes.rb +0 -6
- data/test-app/config/secrets.yml +0 -32
- data/test-app/config/spring.rb +0 -6
- data/test-app/db/migrate/20180109155755_create_posts.rb +0 -8
- data/test-app/db/schema.rb +0 -20
- data/test-app/db/seeds.rb +0 -7
- data/test-app/lib/assets/.keep +0 -0
- data/test-app/lib/tasks/.keep +0 -0
- data/test-app/log/.keep +0 -0
- data/test-app/package.json +0 -5
- data/test-app/public/404.html +0 -67
- data/test-app/public/422.html +0 -67
- data/test-app/public/500.html +0 -66
- data/test-app/public/apple-touch-icon-precomposed.png +0 -0
- data/test-app/public/apple-touch-icon.png +0 -0
- data/test-app/public/favicon.ico +0 -0
- data/test-app/public/robots.txt +0 -1
- data/test-app/test/application_system_test_case.rb +0 -5
- data/test-app/test/controllers/.keep +0 -0
- data/test-app/test/controllers/posts_controller_test.rb +0 -48
- data/test-app/test/fixtures/.keep +0 -0
- data/test-app/test/fixtures/files/.keep +0 -0
- data/test-app/test/fixtures/posts.yml +0 -11
- data/test-app/test/helpers/.keep +0 -0
- data/test-app/test/integration/.keep +0 -0
- data/test-app/test/mailers/.keep +0 -0
- data/test-app/test/models/.keep +0 -0
- data/test-app/test/models/post_test.rb +0 -7
- data/test-app/test/system/.keep +0 -0
- data/test-app/test/system/posts_test.rb +0 -9
- data/test-app/test/test_helper.rb +0 -9
- data/test-app/tmp/.keep +0 -0
- data/test-app/vendor/.keep +0 -0
data/test-app/README.md
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
data/test-app/Rakefile
DELETED
File without changes
|
@@ -1,17 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
|
5
|
-
// vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery-ui
|
15
|
-
//= require tabulator
|
16
|
-
//= require rails-ujs
|
17
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// Action Cable provides the framework to deal with WebSockets in Rails.
|
2
|
-
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
|
3
|
-
//
|
4
|
-
//= require action_cable
|
5
|
-
//= require_self
|
6
|
-
//= require_tree ./channels
|
7
|
-
|
8
|
-
(function() {
|
9
|
-
this.App || (this.App = {});
|
10
|
-
|
11
|
-
App.cable = ActionCable.createConsumer();
|
12
|
-
|
13
|
-
}).call(this);
|
File without changes
|
@@ -1,28 +0,0 @@
|
|
1
|
-
$(document).ready(function() {
|
2
|
-
$("#example-table").tabulator({
|
3
|
-
height:205, // set height of table, this enables the Virtual DOM and improves render speed dramatically (can be any valid css height value)
|
4
|
-
layout:"fitColumns", //fit columns to width of table (optional)
|
5
|
-
columns:[ //Define Table Columns
|
6
|
-
{title:"Name", field:"name", width:150},
|
7
|
-
{title:"Age", field:"age", align:"left", formatter:"progress"},
|
8
|
-
{title:"Favourite Color", field:"col"},
|
9
|
-
{title:"Date Of Birth", field:"dob", sorter:"date", align:"center"},
|
10
|
-
],
|
11
|
-
rowClick:function(e, row){ //trigger an alert message when the row is clicked
|
12
|
-
alert("Row " + row.getData().id + " Clicked!!!!");
|
13
|
-
},
|
14
|
-
});
|
15
|
-
|
16
|
-
|
17
|
-
var tabledata = [
|
18
|
-
{id:1, name:"Oli Bob", age:"12", col:"red", dob:""},
|
19
|
-
{id:2, name:"Mary May", age:"1", col:"blue", dob:"14/05/1982"},
|
20
|
-
{id:3, name:"Christine Lobowski", age:"42", col:"green", dob:"22/05/1982"},
|
21
|
-
{id:4, name:"Brendon Philips", age:"125", col:"orange", dob:"01/08/1980"},
|
22
|
-
{id:5, name:"Margret Marmajuke", age:"16", col:"yellow", dob:"31/01/1999"},
|
23
|
-
];
|
24
|
-
|
25
|
-
//load sample data into the table
|
26
|
-
$("#example-table").tabulator("setData", tabledata);
|
27
|
-
|
28
|
-
});
|
@@ -1,16 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
-
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require tabulator
|
14
|
-
*= require_tree .
|
15
|
-
*= require_self
|
16
|
-
*/
|
@@ -1,84 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #fff;
|
3
|
-
color: #333;
|
4
|
-
margin: 33px;
|
5
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
6
|
-
font-size: 13px;
|
7
|
-
line-height: 18px;
|
8
|
-
}
|
9
|
-
|
10
|
-
p, ol, ul, td {
|
11
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
12
|
-
font-size: 13px;
|
13
|
-
line-height: 18px;
|
14
|
-
}
|
15
|
-
|
16
|
-
pre {
|
17
|
-
background-color: #eee;
|
18
|
-
padding: 10px;
|
19
|
-
font-size: 11px;
|
20
|
-
}
|
21
|
-
|
22
|
-
a {
|
23
|
-
color: #000;
|
24
|
-
|
25
|
-
&:visited {
|
26
|
-
color: #666;
|
27
|
-
}
|
28
|
-
|
29
|
-
&:hover {
|
30
|
-
color: #fff;
|
31
|
-
background-color: #000;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
th {
|
36
|
-
padding-bottom: 5px;
|
37
|
-
}
|
38
|
-
|
39
|
-
td {
|
40
|
-
padding: 0 5px 7px;
|
41
|
-
}
|
42
|
-
|
43
|
-
div {
|
44
|
-
&.field, &.actions {
|
45
|
-
margin-bottom: 10px;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
#notice {
|
50
|
-
color: green;
|
51
|
-
}
|
52
|
-
|
53
|
-
.field_with_errors {
|
54
|
-
padding: 2px;
|
55
|
-
background-color: red;
|
56
|
-
display: table;
|
57
|
-
}
|
58
|
-
|
59
|
-
#error_explanation {
|
60
|
-
width: 450px;
|
61
|
-
border: 2px solid red;
|
62
|
-
padding: 7px 7px 0;
|
63
|
-
margin-bottom: 20px;
|
64
|
-
background-color: #f0f0f0;
|
65
|
-
|
66
|
-
h2 {
|
67
|
-
text-align: left;
|
68
|
-
font-weight: bold;
|
69
|
-
padding: 5px 5px 5px 15px;
|
70
|
-
font-size: 12px;
|
71
|
-
margin: -7px -7px 0;
|
72
|
-
background-color: #c00;
|
73
|
-
color: #fff;
|
74
|
-
}
|
75
|
-
|
76
|
-
ul li {
|
77
|
-
font-size: 12px;
|
78
|
-
list-style: square;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
label {
|
83
|
-
display: block;
|
84
|
-
}
|
File without changes
|
File without changes
|
data/test-app/app/models/post.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>TestApp</title>
|
5
|
-
<%= csrf_meta_tags %>
|
6
|
-
|
7
|
-
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
8
|
-
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body>
|
12
|
-
<%= yield %>
|
13
|
-
</body>
|
14
|
-
</html>
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= yield %>
|
data/test-app/bin/bundle
DELETED
data/test-app/bin/rails
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
begin
|
3
|
-
load File.expand_path('../spring', __FILE__)
|
4
|
-
rescue LoadError => e
|
5
|
-
raise unless e.message.include?('spring')
|
6
|
-
end
|
7
|
-
APP_PATH = File.expand_path('../config/application', __dir__)
|
8
|
-
require_relative '../config/boot'
|
9
|
-
require 'rails/commands'
|
data/test-app/bin/rake
DELETED
data/test-app/bin/setup
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'pathname'
|
3
|
-
require 'fileutils'
|
4
|
-
include FileUtils
|
5
|
-
|
6
|
-
# path to your application root.
|
7
|
-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
8
|
-
|
9
|
-
def system!(*args)
|
10
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
11
|
-
end
|
12
|
-
|
13
|
-
chdir APP_ROOT do
|
14
|
-
# This script is a starting point to setup your application.
|
15
|
-
# Add necessary setup steps to this file.
|
16
|
-
|
17
|
-
puts '== Installing dependencies =='
|
18
|
-
system! 'gem install bundler --conservative'
|
19
|
-
system('bundle check') || system!('bundle install')
|
20
|
-
|
21
|
-
# Install JavaScript dependencies if using Yarn
|
22
|
-
# system('bin/yarn')
|
23
|
-
|
24
|
-
|
25
|
-
# puts "\n== Copying sample files =="
|
26
|
-
# unless File.exist?('config/database.yml')
|
27
|
-
# cp 'config/database.yml.sample', 'config/database.yml'
|
28
|
-
# end
|
29
|
-
|
30
|
-
puts "\n== Preparing database =="
|
31
|
-
system! 'bin/rails db:setup'
|
32
|
-
|
33
|
-
puts "\n== Removing old logs and tempfiles =="
|
34
|
-
system! 'bin/rails log:clear tmp:clear'
|
35
|
-
|
36
|
-
puts "\n== Restarting application server =="
|
37
|
-
system! 'bin/rails restart'
|
38
|
-
end
|
data/test-app/bin/spring
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# This file loads spring without using Bundler, in order to be fast.
|
4
|
-
# It gets overwritten when you run the `spring binstub` command.
|
5
|
-
|
6
|
-
unless defined?(Spring)
|
7
|
-
require 'rubygems'
|
8
|
-
require 'bundler'
|
9
|
-
|
10
|
-
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
|
11
|
-
spring = lockfile.specs.detect { |spec| spec.name == "spring" }
|
12
|
-
if spring
|
13
|
-
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
14
|
-
gem 'spring', spring.version
|
15
|
-
require 'spring/binstub'
|
16
|
-
end
|
17
|
-
end
|
data/test-app/bin/update
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'pathname'
|
3
|
-
require 'fileutils'
|
4
|
-
include FileUtils
|
5
|
-
|
6
|
-
# path to your application root.
|
7
|
-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
8
|
-
|
9
|
-
def system!(*args)
|
10
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
11
|
-
end
|
12
|
-
|
13
|
-
chdir APP_ROOT do
|
14
|
-
# This script is a way to update your development environment automatically.
|
15
|
-
# Add necessary update steps to this file.
|
16
|
-
|
17
|
-
puts '== Installing dependencies =='
|
18
|
-
system! 'gem install bundler --conservative'
|
19
|
-
system('bundle check') || system!('bundle install')
|
20
|
-
|
21
|
-
puts "\n== Updating database =="
|
22
|
-
system! 'bin/rails db:migrate'
|
23
|
-
|
24
|
-
puts "\n== Removing old logs and tempfiles =="
|
25
|
-
system! 'bin/rails log:clear tmp:clear'
|
26
|
-
|
27
|
-
puts "\n== Restarting application server =="
|
28
|
-
system! 'bin/rails restart'
|
29
|
-
end
|
data/test-app/bin/yarn
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
VENDOR_PATH = File.expand_path('..', __dir__)
|
3
|
-
Dir.chdir(VENDOR_PATH) do
|
4
|
-
begin
|
5
|
-
exec "yarnpkg #{ARGV.join(" ")}"
|
6
|
-
rescue Errno::ENOENT
|
7
|
-
$stderr.puts "Yarn executable was not detected in the system."
|
8
|
-
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
|
9
|
-
exit 1
|
10
|
-
end
|
11
|
-
end
|