ish_manager 0.1.8.346 → 0.1.8.348
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/ish_manager/email_templates.scss +4 -1
- data/app/controllers/ish_manager/email_contexts_controller.rb +5 -3
- data/app/mailers/ish_manager/office_mailer.rb +1 -1
- data/app/views/202212 Mailchimp Templates/202212 1col fixed-width.html +863 -0
- data/app/views/202212 Mailchimp Templates/202212 1col full-width.html +906 -0
- data/app/views/202212 Mailchimp Templates/202212 2col fixed-width 2.html +1003 -0
- data/app/views/202212 Mailchimp Templates/202212 2col fixed-width.html +1082 -0
- data/app/views/202212 Mailchimp Templates/202212 2col full-width 2.html +1053 -0
- data/app/views/202212 Mailchimp Templates/202212 2col full-width.html +1147 -0
- data/app/views/202212 Mailchimp Templates/202212 3col fixed-width.html +1087 -0
- data/app/views/202212 Mailchimp Templates/202212 3col full-width.html +1136 -0
- data/app/views/202212 Mailchimp Templates/202212 catalog various-colors-1.html +1223 -0
- data/app/views/202212 Mailchimp Templates/202212 educate.html +1080 -0
- data/app/views/202212 Mailchimp Templates/202212 follow up.html +1001 -0
- data/app/views/202212 Mailchimp Templates/202212 make an announcement.html +1048 -0
- data/app/views/202212 Mailchimp Templates/202212 sell-a-product.html +977 -0
- data/app/views/202212 Mailchimp Templates/202212 tell a story.html +1168 -0
- data/app/views/202212 Mailchimp Templates/202212 theme art-newsletter.html +1612 -0
- data/app/views/202212 Mailchimp Templates/202212 theme caribou-xmas.html +856 -0
- data/app/views/202212 Mailchimp Templates/202212 theme colorbox.html +1027 -0
- data/app/views/202212 Mailchimp Templates/202212 theme competition-invitation.html +918 -0
- data/app/views/202212 Mailchimp Templates/202212 theme event-veerle.html +1132 -0
- data/app/views/202212 Mailchimp Templates/202212 theme fall-colors.html +1407 -0
- data/app/views/202212 Mailchimp Templates/202212 theme gift-giving.html +787 -0
- data/app/views/202212 Mailchimp Templates/202212 theme giftgiving-snowmen.html +731 -0
- data/app/views/202212 Mailchimp Templates/202212 theme heart-of-flowers.html +795 -0
- data/app/views/202212 Mailchimp Templates/202212 theme hero-card.html +915 -0
- data/app/views/202212 Mailchimp Templates/202212 theme hero-image.html +1148 -0
- data/app/views/202212 Mailchimp Templates/202212 theme monthly-contest.html +967 -0
- data/app/views/202212 Mailchimp Templates/202212 theme multiple-event.html +1189 -0
- data/app/views/202212 Mailchimp Templates/202212 theme postcard.html +914 -0
- data/app/views/202212 Mailchimp Templates/202212 theme snowy-fields.html +733 -0
- data/app/views/202212 Mailchimp Templates/202212 theme soft.html +849 -0
- data/app/views/202212 Mailchimp Templates/202212 theme sophisticated.html +1079 -0
- data/app/views/202212 Mailchimp Templates/202212 theme subtle.html +1218 -0
- data/app/views/202212 Mailchimp Templates/202212 theme ticket.html +1015 -0
- data/app/views/202212 Mailchimp Templates/202212 theme whale.html +888 -0
- data/app/views/ish_manager/application/_main_footer.haml +5 -3
- data/app/views/ish_manager/email_contexts/_form.haml +3 -1
- data/app/views/ish_manager/email_contexts/show.haml +3 -3
- data/app/views/layouts/ish_manager/application.haml +10 -6
- data/lib/systemd/system/ish_email_worker.service +19 -0
- data/lib/systemd/system/ish_sidekiq.service +20 -0
- data/lib/tasks/office_tasks.rake +27 -0
- metadata +39 -2
@@ -11,9 +11,11 @@
|
|
11
11
|
%li <b>Role name:</b> #{@current_profile.role_name}
|
12
12
|
|
13
13
|
.col-sm-4
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
%ul
|
15
|
+
%li \~__^
|
16
|
+
%li= @version
|
17
|
+
%li= Time.now.to_s
|
18
|
+
-# <pre>#{@changelog}</pre>
|
17
19
|
|
18
20
|
.col-sm-2
|
19
21
|
= button_to 'Logout', main_app.destroy_user_session_path, :method => :delete
|
@@ -4,12 +4,13 @@
|
|
4
4
|
%ul
|
5
5
|
%li <b>Type:</b> #{@email_ctx.type}
|
6
6
|
%li <b>Title:</b> #{@email_ctx.title}
|
7
|
-
%li <b>Template:</b> #{@email_ctx.email_template.slug}
|
8
7
|
%li <b>From:</b> #{@email_ctx.from_email}
|
9
8
|
%li <b>Subject:</b> #{@email_ctx.subject}
|
10
9
|
- if @email_ctx.type == Ish::EmailContext::TYPE_SINGLE
|
11
10
|
%li <b>To:</b> #{@email_ctx.to_email}
|
12
11
|
%li <b>Template:</b> #{@email_ctx.email_template.slug} <b>Type:</b> #{@email_ctx.email_template.type}
|
12
|
+
%li <b>Send at:</b> #{@email_ctx.send_at&.strftime('%Y-%m-%d %l:%M%P')}
|
13
|
+
%li <b>Sent at:</b> #{@email_ctx.sent_at&.strftime('%Y-%m-%d %l:%M%P')}
|
13
14
|
|
14
15
|
-#
|
15
16
|
-# Yes sent
|
@@ -23,8 +24,6 @@
|
|
23
24
|
= link_to '[view]', campaign_lead_path( c_lead )
|
24
25
|
,
|
25
26
|
|
26
|
-
%li <b>Sent at:</b> #{@email_ctx.sent_at.strftime('%Y-%m-%d %l:%M%P')}
|
27
|
-
|
28
27
|
- else # Draft
|
29
28
|
- if @email_ctx.type == Ish::EmailContext::TYPE_CAMPAIGN
|
30
29
|
%li <b>Leads (#{@email_ctx.leads.length}):</b> #{@email_ctx.leads.map { |p| p&.email }.join(", ") }
|
@@ -35,6 +34,7 @@
|
|
35
34
|
|
36
35
|
- if @email_ctx.sent_at
|
37
36
|
= raw @email_ctx.rendered_str
|
37
|
+
= @email_ctx.tmpl
|
38
38
|
|
39
39
|
- else
|
40
40
|
%iframe{ src: email_context_iframe_path(@email_ctx), width: '100%', height: '100%' }
|
@@ -38,14 +38,18 @@
|
|
38
38
|
.col-sm-12
|
39
39
|
- if notice
|
40
40
|
- if notice.class == Array
|
41
|
-
%ul
|
41
|
+
%ul.notice
|
42
42
|
- notice.map do |n|
|
43
|
-
%li
|
44
|
-
|
45
|
-
|
46
|
-
%p.notice= notice
|
43
|
+
%li= n
|
44
|
+
- else
|
45
|
+
%p.notice= notice
|
47
46
|
- if alert
|
48
|
-
|
47
|
+
- if alert.class == Array
|
48
|
+
%ul.alert
|
49
|
+
- alert.map do |n|
|
50
|
+
%li= n
|
51
|
+
- else
|
52
|
+
%p.alert= alert
|
49
53
|
= yield
|
50
54
|
= render 'ish_manager/application/main_footer'
|
51
55
|
= render 'analytics' if Rails.env.production?
|
@@ -0,0 +1,19 @@
|
|
1
|
+
[Unit]
|
2
|
+
Description=send emails
|
3
|
+
|
4
|
+
[Service]
|
5
|
+
# not type forking
|
6
|
+
Type=sipmle
|
7
|
+
User=ubuntu
|
8
|
+
WorkingDirectory=/home/ubuntu/projects/microsites3a/current
|
9
|
+
ExecStart=/home/ubuntu/.rbenv/shims/bundle exec rake office:email_worker >> /var/log/ish_email_worker.log 2>> /var/log/ish_email_worker_err.log
|
10
|
+
ExecStop=/bin/echo nothing
|
11
|
+
Restart=on-failure
|
12
|
+
Environment=RAILS_ENV=production
|
13
|
+
Environment=GITHUB_TOKEN=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
|
14
|
+
Environment=GMAIL_DOMAIN=email-smtp.us-east-1.amazonaws.com
|
15
|
+
Environment=GMAIL_USERNAME=AKIA4DHE3QS74O74KEXG
|
16
|
+
Environment=GMAIL_PASSWORD=BIdanfOIGD1bkHhHykRtEHBu1uf97xXIHbZ6xASWAtGG
|
17
|
+
|
18
|
+
[Install]
|
19
|
+
WantedBy=multi-user.target
|
@@ -0,0 +1,20 @@
|
|
1
|
+
[Unit]
|
2
|
+
Description=sidekiq
|
3
|
+
|
4
|
+
[Service]
|
5
|
+
# not type forking
|
6
|
+
Type=simple
|
7
|
+
User=ubuntu
|
8
|
+
WorkingDirectory=/home/ubuntu/projects/microsites3a/current
|
9
|
+
ExecStart=/home/ubuntu/.rbenv/shims/bundle exec sidekiq -q mailers default >> /var/log/ish_sidekiq.log 2>> /var/log/ish_sidekiq_err.log
|
10
|
+
ExecStop=/bin/echo nothing
|
11
|
+
Restart=on-failure
|
12
|
+
Environment=RAILS_ENV=production
|
13
|
+
Environment=GITHUB_TOKEN=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
|
14
|
+
Environment=GMAIL_DOMAIN=email-smtp.us-east-1.amazonaws.com
|
15
|
+
Environment=GMAIL_USERNAME=AKIA4DHE3QS74O74KEXG
|
16
|
+
Environment=GMAIL_PASSWORD=BIdanfOIGD1bkHhHykRtEHBu1uf97xXIHbZ6xASWAtGG
|
17
|
+
|
18
|
+
[Install]
|
19
|
+
WantedBy=multi-user.target
|
20
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
|
2
|
+
def puts! a, b=''
|
3
|
+
puts "+++ +++ #{b}"
|
4
|
+
puts a.inspect
|
5
|
+
end
|
6
|
+
|
7
|
+
namespace :office do
|
8
|
+
|
9
|
+
desc "send emails"
|
10
|
+
task :email_worker => :environment do
|
11
|
+
while true do
|
12
|
+
|
13
|
+
ctxs = ::Ish::EmailContext.current.unsent
|
14
|
+
puts! ctxs.count, 'ctxs'
|
15
|
+
ctxs.map do |ctx|
|
16
|
+
IshManager::OfficeMailer.send_context_email( ctx[:id].to_s ).deliver_later
|
17
|
+
print '.'
|
18
|
+
end
|
19
|
+
|
20
|
+
# sleep 1.minute
|
21
|
+
sleep 10.seconds
|
22
|
+
print '^'
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.348
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -308,6 +308,40 @@ files:
|
|
308
308
|
- app/mailers/ish_manager/meeting_mailer.rb
|
309
309
|
- app/mailers/ish_manager/office_mailer.rb
|
310
310
|
- app/models/ish_manager/ability.rb
|
311
|
+
- app/views/202212 Mailchimp Templates/202212 1col fixed-width.html
|
312
|
+
- app/views/202212 Mailchimp Templates/202212 1col full-width.html
|
313
|
+
- app/views/202212 Mailchimp Templates/202212 2col fixed-width 2.html
|
314
|
+
- app/views/202212 Mailchimp Templates/202212 2col fixed-width.html
|
315
|
+
- app/views/202212 Mailchimp Templates/202212 2col full-width 2.html
|
316
|
+
- app/views/202212 Mailchimp Templates/202212 2col full-width.html
|
317
|
+
- app/views/202212 Mailchimp Templates/202212 3col fixed-width.html
|
318
|
+
- app/views/202212 Mailchimp Templates/202212 3col full-width.html
|
319
|
+
- app/views/202212 Mailchimp Templates/202212 catalog various-colors-1.html
|
320
|
+
- app/views/202212 Mailchimp Templates/202212 educate.html
|
321
|
+
- app/views/202212 Mailchimp Templates/202212 follow up.html
|
322
|
+
- app/views/202212 Mailchimp Templates/202212 make an announcement.html
|
323
|
+
- app/views/202212 Mailchimp Templates/202212 sell-a-product.html
|
324
|
+
- app/views/202212 Mailchimp Templates/202212 tell a story.html
|
325
|
+
- app/views/202212 Mailchimp Templates/202212 theme art-newsletter.html
|
326
|
+
- app/views/202212 Mailchimp Templates/202212 theme caribou-xmas.html
|
327
|
+
- app/views/202212 Mailchimp Templates/202212 theme colorbox.html
|
328
|
+
- app/views/202212 Mailchimp Templates/202212 theme competition-invitation.html
|
329
|
+
- app/views/202212 Mailchimp Templates/202212 theme event-veerle.html
|
330
|
+
- app/views/202212 Mailchimp Templates/202212 theme fall-colors.html
|
331
|
+
- app/views/202212 Mailchimp Templates/202212 theme gift-giving.html
|
332
|
+
- app/views/202212 Mailchimp Templates/202212 theme giftgiving-snowmen.html
|
333
|
+
- app/views/202212 Mailchimp Templates/202212 theme heart-of-flowers.html
|
334
|
+
- app/views/202212 Mailchimp Templates/202212 theme hero-card.html
|
335
|
+
- app/views/202212 Mailchimp Templates/202212 theme hero-image.html
|
336
|
+
- app/views/202212 Mailchimp Templates/202212 theme monthly-contest.html
|
337
|
+
- app/views/202212 Mailchimp Templates/202212 theme multiple-event.html
|
338
|
+
- app/views/202212 Mailchimp Templates/202212 theme postcard.html
|
339
|
+
- app/views/202212 Mailchimp Templates/202212 theme snowy-fields.html
|
340
|
+
- app/views/202212 Mailchimp Templates/202212 theme soft.html
|
341
|
+
- app/views/202212 Mailchimp Templates/202212 theme sophisticated.html
|
342
|
+
- app/views/202212 Mailchimp Templates/202212 theme subtle.html
|
343
|
+
- app/views/202212 Mailchimp Templates/202212 theme ticket.html
|
344
|
+
- app/views/202212 Mailchimp Templates/202212 theme whale.html
|
311
345
|
- app/views/ish_manager/application/_analytics.html
|
312
346
|
- app/views/ish_manager/application/_debug.haml
|
313
347
|
- app/views/ish_manager/application/_form_errors.haml
|
@@ -461,10 +495,13 @@ files:
|
|
461
495
|
- lib/ish_manager.rb
|
462
496
|
- lib/ish_manager/engine.rb
|
463
497
|
- lib/ish_manager/version.rb
|
498
|
+
- lib/systemd/system/ish_email_worker.service
|
499
|
+
- lib/systemd/system/ish_sidekiq.service
|
464
500
|
- lib/systemd/system/stockwatcher.service
|
465
501
|
- lib/systemd/system/watch_stocks.service
|
466
502
|
- lib/tasks/done/migrate.rake
|
467
503
|
- lib/tasks/ish_manager_tasks.rake
|
504
|
+
- lib/tasks/office_tasks.rake
|
468
505
|
homepage: http://wasya.co
|
469
506
|
licenses:
|
470
507
|
- MIT
|