Skip to content

Commit

Permalink
Base commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-koba-mobidev committed Jan 24, 2018
1 parent db71e6c commit 55b52ea
Show file tree
Hide file tree
Showing 285 changed files with 7,651 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.bundle/
log/*.log
pkg/
test/dummy/db/*.sqlite3
test/dummy/db/*.sqlite3-journal
test/dummy/log/*.log
test/dummy/tmp/
7 changes: 7 additions & 0 deletions .idea/.rakeTasks

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions .idea/boxroom-engine.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
source 'https://rubygems.org'

# Declare your gem's dependencies in boxroom.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec

# Declare any dependencies that are still in development here instead of in
# your gemspec. These might include edge Rails or gems from your path or
# Git. Remember to move these dependencies to your gemspec before releasing
# your gem to rubygems.org.

# To use a debugger
# gem 'byebug', group: [:development, :test]
152 changes: 152 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
PATH
remote: .
specs:
boxroom (0.1.0)
acts_as_tree
dynamic_form
jquery-fileupload-rails
paperclip
rails (~> 5.0.2)

GEM
remote: https://rubygems.org/
specs:
actioncable (5.0.2)
actionpack (= 5.0.2)
nio4r (>= 1.2, < 3.0)
websocket-driver (~> 0.6.1)
actionmailer (5.0.2)
actionpack (= 5.0.2)
actionview (= 5.0.2)
activejob (= 5.0.2)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.0.2)
actionview (= 5.0.2)
activesupport (= 5.0.2)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.2)
activesupport (= 5.0.2)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.0.2)
activesupport (= 5.0.2)
globalid (>= 0.3.6)
activemodel (5.0.2)
activesupport (= 5.0.2)
activerecord (5.0.2)
activemodel (= 5.0.2)
activesupport (= 5.0.2)
arel (~> 7.0)
activesupport (5.0.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
acts_as_tree (2.7.0)
activerecord (>= 3.0.0)
arel (7.1.4)
builder (3.2.3)
climate_control (0.2.0)
cocaine (0.5.8)
climate_control (>= 0.0.3, < 1.0)
concurrent-ruby (1.0.5)
crass (1.0.2)
dynamic_form (1.1.4)
erubis (2.7.0)
ffi (1.9.18)
globalid (0.4.1)
activesupport (>= 4.2.0)
i18n (0.9.0)
concurrent-ruby (~> 1.0)
jquery-fileupload-rails (0.4.7)
actionpack (>= 3.1)
railties (>= 3.1)
sass (>= 3.2)
loofah (2.1.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.0)
mini_mime (>= 0.1.1)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mimemagic (0.3.2)
mini_mime (0.1.4)
mini_portile2 (2.3.0)
minitest (5.10.3)
nio4r (2.0.0)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
paperclip (5.1.0)
activemodel (>= 4.2.0)
activesupport (>= 4.2.0)
cocaine (~> 0.5.5)
mime-types
mimemagic (~> 0.3.0)
rack (2.0.1)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.0.2)
actioncable (= 5.0.2)
actionmailer (= 5.0.2)
actionpack (= 5.0.2)
actionview (= 5.0.2)
activejob (= 5.0.2)
activemodel (= 5.0.2)
activerecord (= 5.0.2)
activesupport (= 5.0.2)
bundler (>= 1.3.0, < 2.0)
railties (= 5.0.2)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.2)
activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.0.2)
actionpack (= 5.0.2)
activesupport (= 5.0.2)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.2.1)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
sass (3.5.3)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.11)
thor (0.20.0)
thread_safe (0.3.6)
tzinfo (1.2.4)
thread_safe (~> 0.1)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)

PLATFORMS
ruby

DEPENDENCIES
boxroom!
sqlite3

BUNDLED WITH
1.16.0
20 changes: 20 additions & 0 deletions MIT-LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright 2018 Serge Koba

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# boxroom-engine
Boxroom web file manager Rails engine
# Boxroom
This is a Rails engine built based on code of [Boxroom](https://github.com/mischa78/boxroom) project.

# Features


## Install
- add to Gemfile
- run `rails boxroom:install:migrations`
- run `rails db:migrate`

## Config
- Create `config/initializers/boxroom.rb`
```ruby
Boxroom.configure do |config|
config.site_name = 'Boxroom'
config.logo = 'boxroom/logo.png'
end
```
- mount engine in `config/routes.rb`
```ruby
mount Boxroom::Engine => "/boxroom"
```

## Contributing
Please feel free to leave an issue or PR.

## License
The engine is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
36 changes: 36 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

require 'rdoc/task'

RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Boxroom'
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include('README.md')
rdoc.rdoc_files.include('lib/**/*.rb')
end

APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'


load 'rails/tasks/statistics.rake'



require 'bundler/gem_tasks'

require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end


task default: :test
2 changes: 2 additions & 0 deletions app/assets/config/boxroom_manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//= link_directory ../javascripts/boxroom .js
//= link_directory ../stylesheets/boxroom .css
Empty file added app/assets/images/boxroom/.keep
Empty file.
Binary file added app/assets/images/boxroom/clipboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/clipboard_add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/exclamation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/extend.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/failed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/file_add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/7z.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/ai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/aif.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/aiff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/audio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/bz2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/conf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/cpp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/cs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/css.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/csv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/divx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/doc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/docx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/boxroom/fileicons/dot.png
Binary file added app/assets/images/boxroom/fileicons/fla.png
Binary file added app/assets/images/boxroom/fileicons/gif.png
Binary file added app/assets/images/boxroom/fileicons/gz.png
Binary file added app/assets/images/boxroom/fileicons/htm.png
Binary file added app/assets/images/boxroom/fileicons/html.png
Binary file added app/assets/images/boxroom/fileicons/image.png
Binary file added app/assets/images/boxroom/fileicons/java.png
Binary file added app/assets/images/boxroom/fileicons/jpeg.png
Binary file added app/assets/images/boxroom/fileicons/jpg.png
Binary file added app/assets/images/boxroom/fileicons/js.png
Binary file added app/assets/images/boxroom/fileicons/mdb.png
Binary file added app/assets/images/boxroom/fileicons/mdbx.png
Binary file added app/assets/images/boxroom/fileicons/mov.png
Binary file added app/assets/images/boxroom/fileicons/mp3.png
Binary file added app/assets/images/boxroom/fileicons/mpg.png
Binary file added app/assets/images/boxroom/fileicons/ogg.png
Binary file added app/assets/images/boxroom/fileicons/pdf.png
Binary file added app/assets/images/boxroom/fileicons/php.png
Binary file added app/assets/images/boxroom/fileicons/pl.png
Binary file added app/assets/images/boxroom/fileicons/png.png
Binary file added app/assets/images/boxroom/fileicons/ppt.png
Binary file added app/assets/images/boxroom/fileicons/pptx.png
Binary file added app/assets/images/boxroom/fileicons/ps.png
Binary file added app/assets/images/boxroom/fileicons/py.png
Binary file added app/assets/images/boxroom/fileicons/ram.png
Binary file added app/assets/images/boxroom/fileicons/rar.png
Binary file added app/assets/images/boxroom/fileicons/rb.png
Binary file added app/assets/images/boxroom/fileicons/rm.png
Binary file added app/assets/images/boxroom/fileicons/rtf.png
Binary file added app/assets/images/boxroom/fileicons/sql.png
Binary file added app/assets/images/boxroom/fileicons/swf.png
Binary file added app/assets/images/boxroom/fileicons/tar.png
Binary file added app/assets/images/boxroom/fileicons/tgz.png
Binary file added app/assets/images/boxroom/fileicons/txt.png
Binary file added app/assets/images/boxroom/fileicons/video.png
Binary file added app/assets/images/boxroom/fileicons/wav.png
Binary file added app/assets/images/boxroom/fileicons/wma.png
Binary file added app/assets/images/boxroom/fileicons/wmv.png
Binary file added app/assets/images/boxroom/fileicons/xls.png
Binary file added app/assets/images/boxroom/fileicons/xlsx.png
Binary file added app/assets/images/boxroom/fileicons/xml.png
Binary file added app/assets/images/boxroom/fileicons/xvid.png
Binary file added app/assets/images/boxroom/fileicons/zip.png
Binary file added app/assets/images/boxroom/folder.png
Binary file added app/assets/images/boxroom/folder_add.png
Binary file added app/assets/images/boxroom/group.png
Binary file added app/assets/images/boxroom/group_add.png
Binary file added app/assets/images/boxroom/group_grey.png
Binary file added app/assets/images/boxroom/information.png
Binary file added app/assets/images/boxroom/logo.png
Binary file added app/assets/images/boxroom/move.png
Binary file added app/assets/images/boxroom/permissions.png
Binary file added app/assets/images/boxroom/share.png
Binary file added app/assets/images/boxroom/spinner.gif
Binary file added app/assets/images/boxroom/tick.png
Binary file added app/assets/images/boxroom/user.png
Binary file added app/assets/images/boxroom/user_add.png
Loading

0 comments on commit 55b52ea

Please sign in to comment.