Permalink
Browse files

First version

  • Loading branch information...
Shidash committed Aug 23, 2014
0 parents commit 38d1787a21144654c9e7baf895fe34a21e992854
Showing with 1,672 additions and 0 deletions.
  1. +16 −0 .gitignore
  2. +48 −0 Gemfile
  3. +228 −0 Gemfile.lock
  4. +4 −0 README
  5. +6 −0 Rakefile
  6. +7 −0 app/assets/components/application.html
  7. 0 app/assets/images/.keep
  8. +22 −0 app/assets/javascripts/application.js
  9. +3 −0 app/assets/javascripts/bootstrap.js.coffee
  10. +12 −0 app/assets/javascripts/nsadocs.js.coffee
  11. +19 −0 app/assets/stylesheets/application.css
  12. +31 −0 app/assets/stylesheets/bootstrap_and_overrides.css.less
  13. +4 −0 app/assets/stylesheets/nsadocs.css.scss
  14. +69 −0 app/assets/stylesheets/scaffolds.css.scss
  15. +5 −0 app/controllers/application_controller.rb
  16. 0 app/controllers/concerns/.keep
  17. +74 −0 app/controllers/nsadocs_controller.rb
  18. +5 −0 app/controllers/search_controller.rb
  19. +2 −0 app/helpers/application_helper.rb
  20. +2 −0 app/helpers/nsadocs_helper.rb
  21. 0 app/mailers/.keep
  22. 0 app/models/.keep
  23. 0 app/models/concerns/.keep
  24. +19 −0 app/models/nsadoc.rb
  25. +53 −0 app/views/layouts/application.html.erb
  26. +77 −0 app/views/nsadocs/_form.html.erb
  27. +41 −0 app/views/nsadocs/_list.html.erb
  28. +6 −0 app/views/nsadocs/edit.html.erb
  29. +10 −0 app/views/nsadocs/index.html.erb
  30. +4 −0 app/views/nsadocs/index.json.jbuilder
  31. +5 −0 app/views/nsadocs/new.html.erb
  32. +79 −0 app/views/nsadocs/show.html.erb
  33. +1 −0 app/views/nsadocs/show.json.jbuilder
  34. +53 −0 app/views/search/_list.html.erb
  35. +10 −0 app/views/search/index.html.erb
  36. +3 −0 bin/bundle
  37. +4 −0 bin/rails
  38. +4 −0 bin/rake
  39. +4 −0 config.ru
  40. +32 −0 config/application.rb
  41. +4 −0 config/boot.rb
  42. +5 −0 config/environment.rb
  43. +34 −0 config/environments/development.rb
  44. +79 −0 config/environments/production.rb
  45. +39 −0 config/environments/test.rb
  46. +8 −0 config/initializers/assets.rb
  47. +7 −0 config/initializers/backtrace_silencers.rb
  48. +3 −0 config/initializers/cookies_serializer.rb
  49. +9 −0 config/initializers/elasticsearch.rb
  50. +4 −0 config/initializers/filter_parameter_logging.rb
  51. +16 −0 config/initializers/inflections.rb
  52. +4 −0 config/initializers/mime_types.rb
  53. +3 −0 config/initializers/session_store.rb
  54. +9 −0 config/initializers/wrap_parameters.rb
  55. +23 −0 config/locales/en.bootstrap.yml
  56. +23 −0 config/locales/en.yml
  57. +60 −0 config/routes.rb
  58. +22 −0 config/secrets.yml
  59. +7 −0 db/seeds.rb
  60. +3 −0 lib/assets/.bowerrc
  61. 0 lib/assets/.keep
  62. +1 −0 lib/assets/bower.json
  63. +37 −0 lib/index_manager.rb
  64. 0 lib/tasks/.keep
  65. 0 log/.keep
  66. +67 −0 public/404.html
  67. +67 −0 public/422.html
  68. +66 −0 public/500.html
  69. +5 −0 public/robots.txt
  70. 0 test/controllers/.keep
  71. +49 −0 test/controllers/nsadocs_controller_test.rb
  72. 0 test/fixtures/.keep
  73. +35 −0 test/fixtures/nsadocs.yml
  74. 0 test/helpers/.keep
  75. +4 −0 test/helpers/nsadocs_helper_test.rb
  76. 0 test/integration/.keep
  77. 0 test/mailers/.keep
  78. 0 test/models/.keep
  79. +7 −0 test/models/nsadoc_test.rb
  80. +7 −0 test/test_helper.rb
  81. +3 −0 vendor/assets/.bowerrc
  82. 0 vendor/assets/components/.keep
  83. 0 vendor/assets/javascripts/.keep
  84. 0 vendor/assets/stylesheets/.keep
@@ -0,0 +1,16 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp
48 Gemfile
@@ -0,0 +1,48 @@
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.4'
gem 'jquery-datatables-rails', git: 'git://github.com/rweng/jquery-datatables-rails.git'
gem 'less-rails'
gem 'twitter-bootstrap-rails', git: 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring', group: :development
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
gem "thin"
gem "quiet_assets"
gem "simple_form"
gem "elasticsearch", git: "git://github.com/elasticsearch/elasticsearch-ruby.git"
gem "elasticsearch-persistence", git: "git://github.com/elasticsearch/elasticsearch-rails.git", branch: "persistence-model", require: "elasticsearch/persistence/model"
gem "elasticsearch-rails", git: "git://github.com/elasticsearch/elasticsearch-rails.git"
@@ -0,0 +1,228 @@
GIT
remote: git://github.com/elasticsearch/elasticsearch-rails.git
revision: 64111a2b5602c311e08c7d40201a758e6001fb34
specs:
elasticsearch-rails (0.1.3)
GIT
remote: git://github.com/elasticsearch/elasticsearch-rails.git
revision: b21e959fb87c86680db4c164f1407f19588c1432
branch: persistence-model
specs:
elasticsearch-persistence (0.1.3)
activemodel (> 3)
activesupport (> 3)
elasticsearch (> 0.4)
elasticsearch-model (>= 0.1)
hashie
virtus
GIT
remote: git://github.com/elasticsearch/elasticsearch-ruby.git
revision: 495dd967a242bdc96936388fa2d634e6c7b2d647
specs:
elasticsearch (1.0.4)
elasticsearch-api (= 1.0.4)
elasticsearch-transport (= 1.0.4)
elasticsearch-api (1.0.4)
multi_json
elasticsearch-transport (1.0.4)
faraday
multi_json
GIT
remote: git://github.com/rweng/jquery-datatables-rails.git
revision: fca8c73a91a93fbdbe0a55a86d1d4752fbd6a561
specs:
jquery-datatables-rails (2.2.2)
jquery-rails
sass-rails
GIT
remote: git://github.com/seyhunak/twitter-bootstrap-rails.git
revision: 957e3074192555e24bbb01d56932ab8c5af95223
specs:
twitter-bootstrap-rails (3.2.0)
actionpack (>= 3.1)
execjs
rails (>= 3.1)
railties (>= 3.1)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.1.4)
actionpack (= 4.1.4)
actionview (= 4.1.4)
mail (~> 2.5.4)
actionpack (4.1.4)
actionview (= 4.1.4)
activesupport (= 4.1.4)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.4)
activesupport (= 4.1.4)
builder (~> 3.1)
erubis (~> 2.7.0)
activemodel (4.1.4)
activesupport (= 4.1.4)
builder (~> 3.1)
activerecord (4.1.4)
activemodel (= 4.1.4)
activesupport (= 4.1.4)
arel (~> 5.0.0)
activesupport (4.1.4)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
arel (5.0.1.20140414130214)
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
builder (3.2.2)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.7.1)
commonjs (0.2.7)
daemons (1.1.9)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
elasticsearch-model (0.1.4)
activesupport (> 3)
elasticsearch (> 0.4)
hashie
equalizer (0.0.9)
erubis (2.7.0)
eventmachine (1.0.3)
execjs (2.2.1)
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
hashie (3.2.0)
hike (1.2.3)
i18n (0.6.11)
ice_nine (0.11.0)
jbuilder (2.1.3)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (3.1.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
less (2.5.1)
commonjs (~> 0.2.7)
less-rails (2.5.0)
actionpack (>= 3.1)
less (~> 2.5.0)
libv8 (3.16.14.3)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25.1)
minitest (5.4.0)
multi_json (1.10.1)
multipart-post (2.0.0)
polyglot (0.3.5)
quiet_assets (1.0.3)
railties (>= 3.1, < 5.0)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.4)
actionmailer (= 4.1.4)
actionpack (= 4.1.4)
actionview (= 4.1.4)
activemodel (= 4.1.4)
activerecord (= 4.1.4)
activesupport (= 4.1.4)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.4)
sprockets-rails (~> 2.0)
railties (4.1.4)
actionpack (= 4.1.4)
activesupport (= 4.1.4)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.3.2)
rdoc (4.1.1)
json (~> 1.4)
ref (1.0.5)
sass (3.2.19)
sass-rails (4.0.3)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2.0)
sprockets (~> 2.8, <= 2.11.0)
sprockets-rails (~> 2.0)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
simple_form (3.0.2)
actionpack (~> 4.0)
activemodel (~> 4.0)
spring (1.1.3)
sprockets (2.11.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.1.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
therubyracer (0.12.1)
libv8 (~> 3.16.14.0)
ref
thin (1.6.2)
daemons (>= 1.0.9)
eventmachine (>= 1.0.0)
rack (>= 1.0.0)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turbolinks (2.2.2)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.5.3)
execjs (>= 0.3.0)
json (>= 1.8.0)
virtus (1.0.3)
axiom-types (~> 0.1)
coercible (~> 1.0)
descendants_tracker (~> 0.0, >= 0.0.3)
equalizer (~> 0.0, >= 0.0.9)
PLATFORMS
ruby
DEPENDENCIES
coffee-rails (~> 4.0.0)
elasticsearch!
elasticsearch-persistence!
elasticsearch-rails!
jbuilder (~> 2.0)
jquery-datatables-rails!
jquery-rails
less-rails
quiet_assets
rails (= 4.1.4)
sass-rails (~> 4.0.3)
sdoc (~> 0.4.0)
simple_form
spring
therubyracer
thin
turbolinks
twitter-bootstrap-rails!
uglifier (>= 1.3.0)
4 README
@@ -0,0 +1,4 @@
Search, filter, and browse all the NSA documents. Includes full documents and
extracted text and search interface with elasticsearch backend. Work in
progress.
@@ -0,0 +1,6 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
@@ -0,0 +1,7 @@
// This is a manifest file that'll be compiled into application.html, which will include all the files
// listed below.
//
// Any web component HTML file within this directory or vendor/assets/components, if any,
// can be referenced here using a relative path.
//
No changes.
@@ -0,0 +1,22 @@
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require turbolinks
//= require_tree .
//= require dataTables/jquery.dataTables
//= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
//= require dataTables/extras/dataTables.colVis
//= require dataTables/extras/dataTables.colReorder
//= require dataTables/extras/dataTables.responsive
@@ -0,0 +1,3 @@
jQuery ->
$("a[rel~=popover], .has-popover").popover()
$("a[rel~=tooltip], .has-tooltip").tooltip()
@@ -0,0 +1,12 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
$(document).ready ->
$("#docs").dataTable dom: 'C<"clear">Rlfrtip', bFilter: false, columnDefs: [
{
targets: [4..12]
visible: false
}
]
return
@@ -0,0 +1,19 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require_tree .
*= require_self
*= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
*= require dataTables/extras/dataTables.colVis
*= require dataTables/extras/dataTables.colReorder
*= require dataTables/extras/dataTables.responsive
*/
Oops, something went wrong.

0 comments on commit 38d1787

Please sign in to comment.