ishapi 0.1.8.266 → 0.1.8.268
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/ishapi/application.scss +20 -1
- data/app/controllers/ishapi/application_controller.rb +1 -0
- data/app/controllers/ishapi/email_contexts_controller.rb +28 -0
- data/app/models/ishapi/ability.rb +1 -0
- data/app/views/ishapi/application/_metaline.haml +12 -0
- data/app/views/ishapi/email_contexts/summary.csv.erb +4 -0
- data/app/views/ishapi/newsitems/_index.haml +18 -0
- data/app/views/ishapi/newsitems/_show.haml-trash +5 -0
- data/app/views/ishapi/videos/_show.haml +22 -0
- data/config/routes.rb +2 -0
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '095276ab362796b31c3d2e2320f2d6dcb6137471a9923f79c70e471a5af41a71'
|
|
4
|
+
data.tar.gz: 381555df5c0b9324c8cff9c31d4b4192240ed55dcdf9c27f2babb28692252039
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d83e32d7e6b5a0e5ac5a76d914c2315fd6ee26a1b0f2800f6f7bfb7c760be351a65d3c41741f9badca1e36792e7bfb1b7c13d6145c38cee5e97159fd268b7491
|
|
7
|
+
data.tar.gz: 5a633c0e8cec290423faa0479cb484f959f44f50565201223525f1826ae6fa0226b91148eba42c9ebeff8337a462a1360077f8ab41d404a75833d530ffe4c790
|
|
@@ -13,4 +13,23 @@
|
|
|
13
13
|
*= require_self
|
|
14
14
|
*= require ./galleries.scss
|
|
15
15
|
*= require ./locations.scss
|
|
16
|
-
|
|
16
|
+
**/
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
.my-row { /* necessarily no-wrap */
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-wrap: no-wrap;
|
|
22
|
+
|
|
23
|
+
> * {
|
|
24
|
+
margin-right: 10px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.newsitems--index {
|
|
29
|
+
.items {
|
|
30
|
+
> * {
|
|
31
|
+
margin-bottom: .5em;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -87,6 +87,7 @@ class ::Ishapi::ApplicationController < ActionController::Base
|
|
|
87
87
|
def check_jwt
|
|
88
88
|
begin
|
|
89
89
|
decoded = decode(params[:jwt_token])
|
|
90
|
+
puts! decoded, 'decoded'
|
|
90
91
|
@current_profile = Ish::UserProfile.find decoded['user_profile_id']
|
|
91
92
|
rescue JWT::ExpiredSignature
|
|
92
93
|
Rails.logger.info("JWT::ExpiredSignature")
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
require_dependency "ishapi/application_controller"
|
|
3
|
+
|
|
4
|
+
# gem_dir = Gem::Specification.find_by_name("ish_models").gem_dir
|
|
5
|
+
# require "#{gem_dir}/lib/office/email_conversation"
|
|
6
|
+
|
|
7
|
+
module Ishapi
|
|
8
|
+
class EmailContextsController < ApplicationController
|
|
9
|
+
|
|
10
|
+
before_action :check_jwt
|
|
11
|
+
|
|
12
|
+
def summary
|
|
13
|
+
authorize! :summary, Ish::EmailContext
|
|
14
|
+
@results = Ish::EmailContext.summary
|
|
15
|
+
|
|
16
|
+
respond_to do |format|
|
|
17
|
+
format.html
|
|
18
|
+
format.csv do
|
|
19
|
+
render layout: false
|
|
20
|
+
end
|
|
21
|
+
format.json do
|
|
22
|
+
render json: @results
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
.metaline
|
|
3
|
+
|
|
4
|
+
<b>On</b> #{item.created_at.to_s[0...10]}
|
|
5
|
+
- if item.user_profile
|
|
6
|
+
<b>By</b> #{item.user_profile.name}
|
|
7
|
+
|
|
8
|
+
-# - if item.tags.length > 0
|
|
9
|
+
-# <b>Tags:</b> #{ item.tags.map(&:name).join(', ') }
|
|
10
|
+
|
|
11
|
+
- if defined?(item.premium_tier) && item.premium_tier > 0
|
|
12
|
+
<b>Tier $#{item.premium_tier}</b>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
%section.newsitems.newsitems--index
|
|
4
|
+
|
|
5
|
+
.header
|
|
6
|
+
%h3.title Newsitems
|
|
7
|
+
|
|
8
|
+
.items
|
|
9
|
+
- newsitems.each do |newsitem|
|
|
10
|
+
.Card14
|
|
11
|
+
- if newsitem.video
|
|
12
|
+
\[Video]
|
|
13
|
+
= link_to newsitem.video.name, video_path( newsitem.video )
|
|
14
|
+
= newsitem.name
|
|
15
|
+
= raw newsitem.descr
|
|
16
|
+
= newsitem.video.inspect rescue nil
|
|
17
|
+
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
.videos-show.max-width
|
|
3
|
+
.row
|
|
4
|
+
|
|
5
|
+
- if video.youtube_id.present?
|
|
6
|
+
%iframe{:allowfullscreen => "", :frameborder => "0", :height => "315", :src => "//www.youtube.com/embed/#{video.youtube_id}", :width => "560"}
|
|
7
|
+
- else
|
|
8
|
+
%iframe{:allowfullscreen => "true", :frameborder => "0", :height => "480", :src => "#{video.video.url}", :width => "640"}
|
|
9
|
+
|
|
10
|
+
.my-row
|
|
11
|
+
.a= image_tag video.thumb.url(:thumb)
|
|
12
|
+
.a
|
|
13
|
+
%h3
|
|
14
|
+
= video.name.blank? ? t('videos.rno_title') : video.name
|
|
15
|
+
-# .meta-edit
|
|
16
|
+
-# .inline= button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
|
|
17
|
+
-# = link_to '[~]', edit_video_path( video )
|
|
18
|
+
|
|
19
|
+
= render 'ishapi/application/metaline', :item => video
|
|
20
|
+
.flex-row
|
|
21
|
+
Download File: #{link_to video.video_file_name, video.video.url}
|
|
22
|
+
|
data/config/routes.rb
CHANGED
|
@@ -8,6 +8,8 @@ Ishapi::Engine.routes.draw do
|
|
|
8
8
|
post 'email_messages', to: 'email_messages#receive'
|
|
9
9
|
get 'email_messages/:id', to: 'email_messages#show', as: :email_message
|
|
10
10
|
|
|
11
|
+
get 'email_contexts/summary', to: 'email_contexts#summary'
|
|
12
|
+
|
|
11
13
|
delete 'email_conversations', to: 'email_conversations#delete'
|
|
12
14
|
post 'email_conversations/rmtag/:emailtag', to: 'email_conversations#rmtag'
|
|
13
15
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ishapi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.8.
|
|
4
|
+
version: 0.1.8.268
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- piousbox
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-05-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -209,6 +209,7 @@ files:
|
|
|
209
209
|
- app/assets/stylesheets/ishapi/locations.scss
|
|
210
210
|
- app/assets/stylesheets/scaffold.css
|
|
211
211
|
- app/controllers/ishapi/application_controller.rb
|
|
212
|
+
- app/controllers/ishapi/email_contexts_controller.rb
|
|
212
213
|
- app/controllers/ishapi/email_conversations_controller.rb
|
|
213
214
|
- app/controllers/ishapi/email_messages_controller.rb
|
|
214
215
|
- app/controllers/ishapi/galleries_controller.rb
|
|
@@ -240,8 +241,10 @@ files:
|
|
|
240
241
|
- app/models/ishapi/ability.rb
|
|
241
242
|
- app/views/ishapi/addresses/_show.jbuilder
|
|
242
243
|
- app/views/ishapi/application/_meta.jbuilder
|
|
244
|
+
- app/views/ishapi/application/_metaline.haml
|
|
243
245
|
- app/views/ishapi/application/_pagination.jbuilder
|
|
244
246
|
- app/views/ishapi/application_mailer/forwarder_notify.html.erb
|
|
247
|
+
- app/views/ishapi/email_contexts/summary.csv.erb
|
|
245
248
|
- app/views/ishapi/email_messages/show.haml
|
|
246
249
|
- app/views/ishapi/galleries/_index.jbuilder
|
|
247
250
|
- app/views/ishapi/galleries/_show.jbuilder
|
|
@@ -264,7 +267,9 @@ files:
|
|
|
264
267
|
- app/views/ishapi/markers/_card.haml
|
|
265
268
|
- app/views/ishapi/markers/_index.jbuilder
|
|
266
269
|
- app/views/ishapi/my/videos/index.jbuilder
|
|
270
|
+
- app/views/ishapi/newsitems/_index.haml
|
|
267
271
|
- app/views/ishapi/newsitems/_index.jbuilder
|
|
272
|
+
- app/views/ishapi/newsitems/_show.haml-trash
|
|
268
273
|
- app/views/ishapi/newsitems/index.jbuilder
|
|
269
274
|
- app/views/ishapi/option_price_items/index.jbuilder
|
|
270
275
|
- app/views/ishapi/option_price_items/view.jbuilder
|
|
@@ -285,6 +290,7 @@ files:
|
|
|
285
290
|
- app/views/ishapi/user_profiles/show.jbuilder
|
|
286
291
|
- app/views/ishapi/user_profiles/show.jbuilder-bk
|
|
287
292
|
- app/views/ishapi/videos/_index.jbuilder
|
|
293
|
+
- app/views/ishapi/videos/_show.haml
|
|
288
294
|
- app/views/ishapi/videos/_show.jbuilder
|
|
289
295
|
- app/views/ishapi/videos/index.jbuilder
|
|
290
296
|
- app/views/layouts/ishapi/application.html.haml
|