el_vfs_client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +24 -0
- data/app/assets/images/el_vfs/elfinder/arrows-active.png +0 -0
- data/app/assets/images/el_vfs/elfinder/arrows-normal.png +0 -0
- data/app/assets/images/el_vfs/elfinder/dialogs.png +0 -0
- data/app/assets/images/el_vfs/elfinder/icons-big.png +0 -0
- data/app/assets/images/el_vfs/elfinder/icons-small.png +0 -0
- data/app/assets/images/el_vfs/elfinder/logo.png +0 -0
- data/app/assets/images/el_vfs/elfinder/progress.gif +0 -0
- data/app/assets/images/el_vfs/elfinder/quicklook-bg.png +0 -0
- data/app/assets/images/el_vfs/elfinder/quicklook-icons.png +0 -0
- data/app/assets/images/el_vfs/elfinder/resize.png +0 -0
- data/app/assets/images/el_vfs/elfinder/spinner-mini.gif +0 -0
- data/app/assets/images/el_vfs/elfinder/toolbar.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/el_vfs/ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/javascripts/el_vfs/elfinder.js +9601 -0
- data/app/assets/javascripts/el_vfs/i18n/elfinder.LANG.js +281 -0
- data/app/assets/javascripts/el_vfs/i18n/elfinder.ar.js +280 -0
- data/app/assets/javascripts/el_vfs/i18n/elfinder.ru.js +280 -0
- data/app/assets/stylesheets/el_vfs/el_vfs.sass +4 -0
- data/app/assets/stylesheets/el_vfs/elfinder.sass +1645 -0
- data/app/assets/stylesheets/el_vfs/jquery_ui.sass +1482 -0
- data/app/assets/stylesheets/el_vfs/reset.sass +3 -0
- data/app/assets/stylesheets/el_vfs/theme.sass +82 -0
- data/app/controllers/el_vfs_client/el_finder_controller.rb +36 -0
- data/config/routes.rb +5 -0
- metadata +113 -0
@@ -0,0 +1,82 @@
|
|
1
|
+
/**
|
2
|
+
* MacOS X like theme for elFinder.
|
3
|
+
* Required jquery ui "smoothness" theme.
|
4
|
+
*
|
5
|
+
* @author Dmitry (dio) Levashov
|
6
|
+
*
|
7
|
+
|
8
|
+
/* dialogs
|
9
|
+
|
10
|
+
.std42-dialog
|
11
|
+
background-color: #ededed
|
12
|
+
background-image: none
|
13
|
+
.ui-widget-content
|
14
|
+
background-color: #ededed
|
15
|
+
background-image: none
|
16
|
+
|
17
|
+
/* navbar
|
18
|
+
|
19
|
+
.elfinder .elfinder-navbar
|
20
|
+
background: #dde4eb
|
21
|
+
|
22
|
+
.elfinder-navbar
|
23
|
+
.ui-state-hover
|
24
|
+
background: transparent
|
25
|
+
border-color: transparent
|
26
|
+
.ui-state-active
|
27
|
+
background: #3875d7
|
28
|
+
border-color: #3875d7
|
29
|
+
color: #fff
|
30
|
+
|
31
|
+
/* disabled elfinder
|
32
|
+
|
33
|
+
.elfinder-disabled .elfinder-navbar .ui-state-active
|
34
|
+
background: #dadada
|
35
|
+
border-color: #aaa
|
36
|
+
color: #fff
|
37
|
+
|
38
|
+
/* current directory
|
39
|
+
/* selected file in "icons" view
|
40
|
+
|
41
|
+
.elfinder-cwd-view-icons .elfinder-cwd-file .ui-state-hover
|
42
|
+
background: #ccc
|
43
|
+
|
44
|
+
/* list view
|
45
|
+
|
46
|
+
.elfinder-cwd table tr
|
47
|
+
&:nth-child(odd)
|
48
|
+
background-color: #edf3fe
|
49
|
+
border-top: 1px solid #fff
|
50
|
+
|
51
|
+
/* common selected background/color
|
52
|
+
|
53
|
+
.elfinder-cwd-view-icons .elfinder-cwd-file .elfinder-cwd-filename.ui-state-hover, .elfinder-cwd table td.ui-state-hover, .elfinder-button-menu .ui-state-hover
|
54
|
+
background: #3875d7
|
55
|
+
color: #fff
|
56
|
+
|
57
|
+
/* disabled elfinder
|
58
|
+
|
59
|
+
.elfinder-disabled
|
60
|
+
.elfinder-cwd-view-icons .elfinder-cwd-file .elfinder-cwd-filename.ui-state-hover, .elfinder-cwd table td.ui-state-hover
|
61
|
+
background: #dadada
|
62
|
+
|
63
|
+
/* statusbar
|
64
|
+
|
65
|
+
.elfinder .elfinder-statusbar
|
66
|
+
color: #555
|
67
|
+
a
|
68
|
+
text-decoration: none
|
69
|
+
color: #555
|
70
|
+
|
71
|
+
.std42-dialog .elfinder-help
|
72
|
+
background: #fff
|
73
|
+
.ui-widget-content
|
74
|
+
background: #fff
|
75
|
+
|
76
|
+
/* contextmenu
|
77
|
+
|
78
|
+
.elfinder-contextmenu .ui-state-hover
|
79
|
+
background: #3875d7
|
80
|
+
color: #fff
|
81
|
+
.elfinder-contextmenu-arrow
|
82
|
+
background-image: url('elfinder/arrows-active.png')
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'curb'
|
2
|
+
require 'configliere'
|
3
|
+
module ElVfsClient
|
4
|
+
class ElFinderController < ApplicationController
|
5
|
+
respond_to :json, :html
|
6
|
+
|
7
|
+
def run
|
8
|
+
params.delete(:format)
|
9
|
+
params.delete(:controller)
|
10
|
+
params.delete(:action)
|
11
|
+
c = Curl::Easy.new("#{Settings[:el_vfs][:protocol]}://#{Settings[:el_vfs][:host]}:#{Settings[:el_vfs][:port]}/el_vfs/api/elfinder") do |curl|
|
12
|
+
curl.headers['User-Agent'] = request.user_agent
|
13
|
+
curl.headers['Accept'] = 'application/json'
|
14
|
+
curl.headers['CLIENT_IP'] = request.env['HTTP_CLIENT_IP']
|
15
|
+
curl.headers['X_FORWARDED_FOR'] = request.env['HTTP_X_FORWARDED_FOR']
|
16
|
+
curl.headers['REMOTE_ADDR'] = request.env['REMOTE_ADDR']
|
17
|
+
curl.multipart_form_post = true
|
18
|
+
end
|
19
|
+
|
20
|
+
if params['cmd'] == 'upload'
|
21
|
+
upload = params.delete(:upload)
|
22
|
+
parameters = params.map{ |key, value| Curl::PostField.content(key, value)}
|
23
|
+
files = upload.map{ |file| Curl::PostField.file('upload[]', file.path, file.original_filename) }
|
24
|
+
c.http_post(*parameters, *files)
|
25
|
+
else
|
26
|
+
c.url << "?#{params.to_query}"
|
27
|
+
c.http_get
|
28
|
+
end
|
29
|
+
|
30
|
+
respond_to do |format|
|
31
|
+
format.html { render :json => c.body_str }
|
32
|
+
format.json { render :json => c.body_str }
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
data/config/routes.rb
ADDED
metadata
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: el_vfs_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Dmitry Lihachev
|
9
|
+
- Evgeny Lapin
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2011-11-28 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: configliere
|
17
|
+
requirement: &7356620 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *7356620
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: curb
|
28
|
+
requirement: &7356020 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *7356020
|
37
|
+
description: Description of ElVfsClient.
|
38
|
+
email:
|
39
|
+
- mail@openteam.ru
|
40
|
+
executables: []
|
41
|
+
extensions: []
|
42
|
+
extra_rdoc_files: []
|
43
|
+
files:
|
44
|
+
- app/assets/javascripts/el_vfs/i18n/elfinder.ar.js
|
45
|
+
- app/assets/javascripts/el_vfs/i18n/elfinder.ru.js
|
46
|
+
- app/assets/javascripts/el_vfs/i18n/elfinder.LANG.js
|
47
|
+
- app/assets/javascripts/el_vfs/elfinder.js
|
48
|
+
- app/assets/stylesheets/el_vfs/elfinder.sass
|
49
|
+
- app/assets/stylesheets/el_vfs/reset.sass
|
50
|
+
- app/assets/stylesheets/el_vfs/jquery_ui.sass
|
51
|
+
- app/assets/stylesheets/el_vfs/el_vfs.sass
|
52
|
+
- app/assets/stylesheets/el_vfs/theme.sass
|
53
|
+
- app/assets/images/el_vfs/ui/ui-icons_888888_256x240.png
|
54
|
+
- app/assets/images/el_vfs/ui/ui-bg_glass_55_fbf9ee_1x400.png
|
55
|
+
- app/assets/images/el_vfs/ui/ui-icons_cd0a0a_256x240.png
|
56
|
+
- app/assets/images/el_vfs/ui/ui-bg_glass_75_dadada_1x400.png
|
57
|
+
- app/assets/images/el_vfs/ui/ui-bg_glass_75_e6e6e6_1x400.png
|
58
|
+
- app/assets/images/el_vfs/ui/ui-bg_flat_0_aaaaaa_40x100.png
|
59
|
+
- app/assets/images/el_vfs/ui/ui-bg_flat_75_ffffff_40x100.png
|
60
|
+
- app/assets/images/el_vfs/ui/ui-icons_2e83ff_256x240.png
|
61
|
+
- app/assets/images/el_vfs/ui/ui-bg_highlight-soft_75_cccccc_1x100.png
|
62
|
+
- app/assets/images/el_vfs/ui/ui-icons_454545_256x240.png
|
63
|
+
- app/assets/images/el_vfs/ui/ui-icons_222222_256x240.png
|
64
|
+
- app/assets/images/el_vfs/ui/ui-bg_glass_95_fef1ec_1x400.png
|
65
|
+
- app/assets/images/el_vfs/ui/ui-bg_glass_65_ffffff_1x400.png
|
66
|
+
- app/assets/images/el_vfs/elfinder/logo.png
|
67
|
+
- app/assets/images/el_vfs/elfinder/quicklook-icons.png
|
68
|
+
- app/assets/images/el_vfs/elfinder/toolbar.png
|
69
|
+
- app/assets/images/el_vfs/elfinder/arrows-normal.png
|
70
|
+
- app/assets/images/el_vfs/elfinder/spinner-mini.gif
|
71
|
+
- app/assets/images/el_vfs/elfinder/quicklook-bg.png
|
72
|
+
- app/assets/images/el_vfs/elfinder/icons-big.png
|
73
|
+
- app/assets/images/el_vfs/elfinder/dialogs.png
|
74
|
+
- app/assets/images/el_vfs/elfinder/progress.gif
|
75
|
+
- app/assets/images/el_vfs/elfinder/icons-small.png
|
76
|
+
- app/assets/images/el_vfs/elfinder/arrows-active.png
|
77
|
+
- app/assets/images/el_vfs/elfinder/resize.png
|
78
|
+
- app/controllers/el_vfs_client/el_finder_controller.rb
|
79
|
+
- config/routes.rb
|
80
|
+
- MIT-LICENSE
|
81
|
+
- Rakefile
|
82
|
+
- README.rdoc
|
83
|
+
homepage: http://github.com/openteam/el_vfs_client
|
84
|
+
licenses: []
|
85
|
+
post_install_message:
|
86
|
+
rdoc_options: []
|
87
|
+
require_paths:
|
88
|
+
- lib
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ! '>='
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
hash: -874986719412279499
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
none: false
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
segments:
|
105
|
+
- 0
|
106
|
+
hash: -874986719412279499
|
107
|
+
requirements: []
|
108
|
+
rubyforge_project:
|
109
|
+
rubygems_version: 1.8.10
|
110
|
+
signing_key:
|
111
|
+
specification_version: 3
|
112
|
+
summary: Summary of ElVfsClient.
|
113
|
+
test_files: []
|