social_stream 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/base/app/assets/javascripts/social_stream/contact.js +1 -3
- data/base/app/assets/stylesheets/social_stream-base.css.sass +9 -0
- data/base/app/assets/stylesheets/social_stream/base/adjust/_adjust.css.sass +1 -1
- data/base/app/assets/stylesheets/social_stream/base/contacts/layouts/_contacts.css.sass +11 -7
- data/base/app/assets/stylesheets/social_stream/base/contacts/responsive/_responsive-1200px-min.css.sass +1 -1
- data/base/app/assets/stylesheets/social_stream/base/explore/_explore-search.css.sass +2 -2
- data/base/app/assets/stylesheets/social_stream/base/explore/_explore-timeline.css.sass +1 -2
- data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/_frontpage.css.sass +1 -1
- data/base/app/assets/stylesheets/social_stream/base/layouts/_layout.css.sass +1 -0
- data/base/app/assets/stylesheets/social_stream/base/mixins/_buttons.css.sass +38 -38
- data/base/app/assets/stylesheets/social_stream/base/modals/_modals.css.sass +17 -0
- data/base/app/assets/stylesheets/social_stream/base/modals/layout/_modals.css.sass +35 -0
- data/base/app/assets/stylesheets/social_stream/base/modals/responsive/_responsive-1200px-min.css.sass +5 -0
- data/base/app/assets/stylesheets/social_stream/base/modals/responsive/_responsive-767px-max.css.sass +10 -0
- data/base/app/assets/stylesheets/social_stream/base/modals/responsive/_responsive-768px-979px.css.sass +6 -0
- data/base/app/assets/stylesheets/social_stream/base/profile/_profile.css.sass +7 -5
- data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-1200px-min.css.sass +1 -11
- data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-767px-max.css.sass +2 -1
- data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-768px-979px.css.sass +1 -1
- data/base/app/assets/stylesheets/social_stream/base/search/_header.css.sass +3 -3
- data/base/app/assets/stylesheets/social_stream/base/select2/layout/_sselect2.css.sass +1 -1
- data/base/app/assets/stylesheets/social_stream/base/sidebar/_sidebar.css.sass +0 -1
- data/base/app/assets/stylesheets/social_stream/base/sidebar/layout/_sidebar.css.sass +2 -2
- data/base/app/assets/stylesheets/social_stream/base/sidebar/responsive/_responsive-1200px-min.css.sass +1 -1
- data/base/app/assets/stylesheets/social_stream/base/timeline/layout/_wrapper_activities.css.sass +2 -2
- data/base/app/assets/stylesheets/social_stream/base/toolbar/_toolbar.css.sass +2 -2
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_modal.scss +1 -1
- data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_variables.scss +12 -0
- data/base/app/assets/stylesheets/social_stream/fonts/fonts.css +8 -9
- data/base/app/assets/stylesheets/social_stream/fonts/{JosefinSlabOverlay.ttf → josefinSlab/JosefinSlabOverlay.ttf} +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/{JosefinSlabRegular-Outline.ttf → josefinSlab/JosefinSlabRegular-Outline.ttf} +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/{JosefinSlabRegular.ttf → josefinSlab/JosefinSlabRegular.ttf} +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/{OpenSans-Light.ttf → opensans/OpenSans-Light.ttf} +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/{opensans-regular-webfont.eot → opensans/opensans-regular-webfont.eot} +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/opensans/opensans-regular-webfont.svg +587 -0
- data/base/app/assets/stylesheets/social_stream/fonts/{opensans-regular-webfont.woff → opensans/opensans-regular-webfont.woff} +0 -0
- data/base/app/assets/stylesheets/social_stream/fonts/{opensans-regular.ttf → opensans/opensans-regular.ttf} +0 -0
- data/base/app/views/groups/_form.html.erb +8 -5
- data/base/app/views/home/index.html.erb +1 -1
- data/base/app/views/profiles/_avatar.html.erb +6 -6
- data/base/app/views/repositories/show.html.erb +0 -3
- data/base/config/locales/en.yml +1 -1
- data/base/lib/generators/social_stream/base/templates/initializer.rb +27 -19
- data/base/lib/social_stream/base/version.rb +1 -1
- data/contacts/_contacts.css.sass +64 -0
- data/contacts/layouts/_contacts.css.sass +177 -0
- data/contacts/responsive/_responsive-1200px-min.css.sass +29 -0
- data/contacts/responsive/_responsive-767px-max.css.sass +88 -0
- data/contacts/responsive/_responsive-768px-979px.css.sass +14 -0
- data/documents/app/assets/stylesheets/social_stream/documents/create/layout/_new.css.sass +7 -35
- data/documents/app/assets/stylesheets/social_stream/documents/documents/_documents.css.sass +6 -7
- data/documents/app/assets/stylesheets/social_stream/documents/documents/layout/_documents.css.sass +17 -3
- data/documents/app/assets/stylesheets/social_stream/documents/explore/layout/_explore-documents.css.sass +2 -1
- data/documents/app/assets/stylesheets/social_stream/documents/timeline/_audios.css.sass +4 -3
- data/documents/app/overrides/repositories/_filter/add_new_document_button.html.erb.deface +4 -0
- data/documents/app/views/common_documents/_index.html.erb +21 -17
- data/documents/app/views/documents/index.html.erb +0 -1
- data/documents/app/views/documents/new.html.erb +5 -3
- data/documents/lib/social_stream/documents/version.rb +1 -1
- data/documents/social_stream-documents.gemspec +1 -1
- data/events/app/assets/stylesheets/social_stream/events/responsive/_responsive-1200px-min.css.sass +1 -3
- data/events/app/views/rooms/_index.html.erb +9 -2
- data/events/lib/social_stream/events/version.rb +1 -1
- data/events/social_stream-events.gemspec +1 -1
- data/lib/social_stream/version.rb +1 -1
- data/oauth2_server/app/views/site/clients/_form.html.erb +1 -1
- data/oauth2_server/app/views/site/clients/show.html.erb +47 -45
- data/oauth2_server/lib/social_stream/oauth2_server/version.rb +1 -1
- data/oauth2_server/social_stream-oauth2_server.gemspec +1 -1
- data/presence/ejabberd/ejabberd_scripts/authentication_script +9 -11
- data/presence/lib/social_stream/presence/version.rb +1 -1
- data/presence/social_stream-presence.gemspec +1 -1
- data/social_stream.gemspec +5 -5
- metadata +31 -20
- data/base/app/assets/stylesheets/social_stream/fonts/opensans-regular-webfont.svg +0 -244
@@ -0,0 +1,14 @@
|
|
1
|
+
//
|
2
|
+
// Responsive: Tablet to desktop
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
@media (min-width: 768px) and (max-width: 979px)
|
7
|
+
|
8
|
+
#contacts
|
9
|
+
.contacts
|
10
|
+
.tab-content
|
11
|
+
.contact-list
|
12
|
+
clear: both
|
13
|
+
min-height: 700px
|
14
|
+
padding-bottom: 50px
|
@@ -1,35 +1,7 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
form.new_site_client
|
9
|
-
margin-left: 0px
|
10
|
-
width: 100%
|
11
|
-
.name,
|
12
|
-
.url
|
13
|
-
margin-left: 0px
|
14
|
-
width: 100%
|
15
|
-
input
|
16
|
-
&[type="file"]
|
17
|
-
line-height: 0px
|
18
|
-
#new_file
|
19
|
-
label
|
20
|
-
font-size: 22px
|
21
|
-
font-weight: bold
|
22
|
-
color: #CCC
|
23
|
-
form.new_document
|
24
|
-
section
|
25
|
-
border-bottom: 1px dashed #CCC
|
26
|
-
padding-top: 15px
|
27
|
-
padding-bottom: 15px
|
28
|
-
#document_file
|
29
|
-
@include ellipsis
|
30
|
-
.description
|
31
|
-
textarea
|
32
|
-
height: 100px
|
33
|
-
input
|
34
|
-
&[type="submit"]
|
35
|
-
margin: 8px 0 0
|
1
|
+
#new_file
|
2
|
+
@include grid-core-span(7, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
3
|
+
float: left
|
4
|
+
margin-left: 2.5%
|
5
|
+
h5
|
6
|
+
font-size: 28px
|
7
|
+
color: $red
|
@@ -1,7 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
.documents,
|
2
|
+
.repository
|
3
|
+
h1
|
4
|
+
@include colorfont-big-size
|
5
|
+
.btn
|
6
|
+
@include btn-primary
|
data/documents/app/assets/stylesheets/social_stream/documents/documents/layout/_documents.css.sass
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
div.repository
|
1
|
+
div.repository,
|
2
|
+
.documents
|
2
3
|
@include grid-core-span(10, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
3
4
|
float: left
|
4
5
|
margin-left: 2.5%
|
@@ -28,7 +29,7 @@ section.repository
|
|
28
29
|
.tab-content
|
29
30
|
@include grid-core-span(10, $fluidGridColumnWidth, $fluidGridGutterWidth)
|
30
31
|
padding-bottom: 100px
|
31
|
-
|
32
|
+
|
32
33
|
.repository-list
|
33
34
|
.document,
|
34
35
|
.picture,
|
@@ -52,7 +53,20 @@ section.repository
|
|
52
53
|
margin-left: 44px
|
53
54
|
|
54
55
|
.documents
|
55
|
-
|
56
|
+
|
57
|
+
input
|
58
|
+
&[type="text"]
|
59
|
+
width: 24% !important
|
60
|
+
display: inline
|
61
|
+
margin-top: 20px
|
62
|
+
float: left
|
63
|
+
margin-left: 20px
|
64
|
+
.btn
|
65
|
+
float: right
|
66
|
+
width: auto
|
67
|
+
display: inline-block
|
68
|
+
margin: 23px 16px 0 -14px
|
69
|
+
|
56
70
|
#new_document-modal
|
57
71
|
.modal-body
|
58
72
|
input
|
@@ -4,10 +4,11 @@
|
|
4
4
|
#jp_interface_audio_290
|
5
5
|
border: none
|
6
6
|
|
7
|
-
|
7
|
+
.jp-progress
|
8
8
|
width: 98.5% !important
|
9
|
-
border-bottom: 2px solid #
|
10
|
-
border-right: 2px solid #666
|
9
|
+
border-bottom: 2px solid #444 !important
|
10
|
+
border-right: 2px solid #666 !important
|
11
|
+
background-color: #333 !important
|
11
12
|
div.jp-seek-bar
|
12
13
|
background: none
|
13
14
|
width: 100%
|
@@ -3,27 +3,31 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<%= render partial: 'toolbar/profile', locals: { :subject => profile_or_current_subject } %>
|
6
|
+
<div class="documents">
|
7
|
+
<h1 class="colorfont">
|
8
|
+
<%= t 'document.title.other' %>
|
9
|
+
</h1>
|
6
10
|
|
7
|
-
<%= render partial: 'common_documents/filter' %>
|
11
|
+
<%= render partial: 'common_documents/filter' %>
|
8
12
|
|
9
|
-
<%= render partial: 'common_documents/new_button',
|
10
|
-
|
13
|
+
<%= render partial: 'common_documents/new_button',
|
14
|
+
locals: { owner: profile_or_current_subject } %>
|
11
15
|
|
12
|
-
<section class="documents">
|
13
|
-
|
14
|
-
|
15
|
-
</section>
|
16
|
-
|
17
|
-
|
18
|
-
<nav class="documents">
|
19
|
-
<%= render partial: 'layouts/more',
|
20
|
-
locals: {
|
21
|
-
path: polymorphic_path([profile_subject, Document.new ]),
|
22
|
-
per_page: Document.default_per_page,
|
23
|
-
total: collection.total_count
|
24
|
-
} %>
|
25
|
-
</nav>
|
16
|
+
<section class="documents">
|
17
|
+
<%= render partial: 'common_documents/list',
|
18
|
+
locals: { documents: collection } %>
|
19
|
+
</section>
|
26
20
|
|
21
|
+
|
22
|
+
<nav class="documents">
|
23
|
+
<%= render partial: 'layouts/more',
|
24
|
+
locals: {
|
25
|
+
path: polymorphic_path([profile_subject, Document.new ]),
|
26
|
+
per_page: Document.default_per_page,
|
27
|
+
total: collection.total_count
|
28
|
+
} %>
|
29
|
+
</nav>
|
30
|
+
</div>
|
27
31
|
|
28
32
|
<%= javascript_tag do %>
|
29
33
|
$(function() {
|
@@ -2,8 +2,10 @@
|
|
2
2
|
<%= "#{ current_subject.name }: #{ t('document.new.title') }" %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
|
5
|
+
<section id="new_document">
|
6
|
+
<%= render partial: 'toolbar/profile', locals: { subject: current_subject } %>
|
6
7
|
|
7
|
-
<h1><%= t 'document.new.title' %></h1>
|
8
|
+
<h1><%= t 'document.new.title' %></h1>
|
8
9
|
|
9
|
-
<%= render partial: 'common_documents/form', locals: { document: @document } %>
|
10
|
+
<%= render partial: 'common_documents/form', locals: { document: @document } %>
|
11
|
+
</section>
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
|
14
14
|
# Gem dependencies
|
15
|
-
s.add_runtime_dependency('social_stream-base', '~> 2.0.
|
15
|
+
s.add_runtime_dependency('social_stream-base', '~> 2.0.2')
|
16
16
|
|
17
17
|
s.add_runtime_dependency('paperclip','~> 3.3.0')
|
18
18
|
s.add_runtime_dependency('paperclip-ffmpeg', '~> 0.9.0')
|
@@ -1,6 +1,13 @@
|
|
1
1
|
<div id="rooms">
|
2
2
|
<% current_subject.rooms.each do |room| %>
|
3
3
|
<%= room.name %>
|
4
|
-
<%= link_to
|
4
|
+
<%= link_to room,
|
5
|
+
title: t('room.delete'),
|
6
|
+
class: "room_delete_link",
|
7
|
+
method: :delete,
|
8
|
+
confirm: t('room.confirm_delete'),
|
9
|
+
remote: true do %>
|
10
|
+
<i class="icon_tool16-trash"></i>
|
11
|
+
<% end %>
|
5
12
|
<% end %>
|
6
|
-
</div>
|
13
|
+
</div>
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
|
14
14
|
# Gem dependencies
|
15
|
-
s.add_runtime_dependency('social_stream-base', '~> 2.0.
|
15
|
+
s.add_runtime_dependency('social_stream-base', '~> 2.0.2')
|
16
16
|
s.add_runtime_dependency('rails-scheduler', '~> 0.1.2')
|
17
17
|
|
18
18
|
# Development Gem dependencies
|
@@ -1,50 +1,52 @@
|
|
1
|
-
|
1
|
+
<div class="oauth2_server">
|
2
|
+
<%= render partial: 'toolbar/home' %>
|
2
3
|
|
3
|
-
<section id="oauth2_server">
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
<section id="oauth2_server">
|
5
|
+
<h1>
|
6
|
+
<%= @client.name %>
|
7
|
+
</h1>
|
8
|
+
<a class="pull-right" href="#">
|
9
|
+
ir a tus demás aplicaciones
|
10
|
+
</a>
|
11
|
+
<hr class="soften">
|
12
|
+
<div class="content">
|
13
|
+
<a class="pull-left" href="#">
|
13
14
|
|
14
|
-
|
15
|
+
<%= image_tag('logos/app-default.png', class: "media-object") %>
|
15
16
|
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
|
19
|
+
</a>
|
20
|
+
<article class="media box">
|
21
|
+
<div class="media-body">
|
22
|
+
<h4>
|
23
|
+
<%= Site::Client.human_attribute_name :url %>
|
24
|
+
</h4>
|
25
|
+
<div class="result">
|
26
|
+
<%= link_to @client.url, @client.url%>
|
27
|
+
</div>
|
28
|
+
<h4>
|
29
|
+
<%= Site::Client.human_attribute_name :callback_url %>
|
30
|
+
</h4>
|
31
|
+
<div class="result">
|
32
|
+
<%= @client.callback_url %>
|
33
|
+
</div>
|
34
|
+
<h4>
|
35
|
+
<%= Site::Client.human_attribute_name :id %>
|
36
|
+
</h4>
|
37
|
+
<div class="result">
|
38
|
+
<%= @client.id %>
|
39
|
+
</div>
|
40
|
+
<h4>
|
41
|
+
<%= Site::Client.human_attribute_name :secret %>
|
42
|
+
</h4>
|
43
|
+
<div class="result client_secret">
|
44
|
+
<p>
|
45
|
+
<%= @client.secret %>
|
46
|
+
</p>
|
47
|
+
</div>
|
26
48
|
</div>
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
<%= @client.callback_url %>
|
32
|
-
</div>
|
33
|
-
<h4>
|
34
|
-
<%= Site::Client.human_attribute_name :id %>
|
35
|
-
</h4>
|
36
|
-
<div class="result">
|
37
|
-
<%= @client.id %>
|
38
|
-
</div>
|
39
|
-
<h4>
|
40
|
-
<%= Site::Client.human_attribute_name :secret %>
|
41
|
-
</h4>
|
42
|
-
<div class="result client_secret">
|
43
|
-
<p>
|
44
|
-
<%= @client.secret %>
|
45
|
-
</p>
|
46
|
-
</div>
|
47
|
-
</div>
|
48
|
-
</article>
|
49
|
-
</div>
|
50
|
-
</section>
|
49
|
+
</article>
|
50
|
+
</div>
|
51
|
+
</section>
|
52
|
+
</div>
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
|
14
14
|
# Gem dependencies
|
15
|
-
s.add_runtime_dependency('social_stream-base', '~> 2.0.
|
15
|
+
s.add_runtime_dependency('social_stream-base', '~> 2.0.2')
|
16
16
|
s.add_runtime_dependency('rack-oauth2', '~> 1.0.0')
|
17
17
|
|
18
18
|
s.add_development_dependency('rspec-rails', '~> 2.8.0')
|
@@ -56,22 +56,20 @@ def auth(username,domain,password)
|
|
56
56
|
begin
|
57
57
|
response = RestClient.post accessByPasswordUrl, :user => { :email => username , :password => password }
|
58
58
|
|
59
|
-
|
60
|
-
|
61
|
-
else
|
62
|
-
return false
|
63
|
-
end
|
64
|
-
|
59
|
+
return response.code == 201
|
60
|
+
|
65
61
|
rescue => e
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
62
|
+
if e.class.name == "RestClient::Found" &&
|
63
|
+
e.http_code == 302 &&
|
64
|
+
e.http_body =~ /home/
|
65
|
+
return true
|
70
66
|
end
|
71
67
|
|
68
|
+
$logger.error "#{Process.pid}: Exception in auth(username, password)"
|
69
|
+
$logger.error "#{Process.pid}: #{e.class.name}: #{e.message}"
|
70
|
+
|
72
71
|
return false
|
73
72
|
end
|
74
|
-
|
75
73
|
end
|
76
74
|
|
77
75
|
|