mno-enterprise-core 3.2.1 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/mno_enterprise/application_controller.rb +5 -5
  3. data/app/helpers/mno_enterprise/image_helper.rb +32 -0
  4. data/app/models/mno_enterprise/app.rb +11 -2
  5. data/app/models/mno_enterprise/base_resource.rb +2 -0
  6. data/app/models/mno_enterprise/credit_card.rb +7 -4
  7. data/app/models/mno_enterprise/impac/dashboard.rb +4 -1
  8. data/app/models/mno_enterprise/impac/widget.rb +10 -4
  9. data/app/models/mno_enterprise/org_invite.rb +7 -3
  10. data/app/models/mno_enterprise/shared_entity.rb +17 -0
  11. data/app/models/mno_enterprise/user.rb +7 -2
  12. data/app/pdf/mno_enterprise/invoice_pdf.rb +176 -183
  13. data/app/views/system_notifications/email-change.html.erb +1 -1
  14. data/app/views/system_notifications/email-change.text.erb +1 -1
  15. data/config/initializers/audit_log.rb +28 -1
  16. data/config/locales/templates/components/en.yml +29 -4
  17. data/config/locales/templates/dashboard/en.yml +2 -2
  18. data/config/locales/templates/dashboard/marketplace/en.yml +5 -5
  19. data/config/locales/templates/dashboard/organization/en.yml +14 -8
  20. data/config/locales/templates/dashboard/organization/id.yml +4 -4
  21. data/config/locales/templates/dashboard/organization/zh.yml +4 -4
  22. data/config/locales/templates/dashboard/teams/en.yml +3 -3
  23. data/config/locales/templates/dashboard/teams/id.yml +3 -3
  24. data/config/locales/templates/dashboard/teams/zh.yml +3 -3
  25. data/config/locales/templates/onboarding/en.yml +45 -0
  26. data/config/locales/views/auth/confirmations/en.yml +5 -3
  27. data/config/locales/views/webhook/o_auth/providers/en.yml +2 -2
  28. data/lib/generators/mno_enterprise/install/install_generator.rb +19 -1
  29. data/lib/generators/mno_enterprise/install/templates/Procfile.dev +1 -0
  30. data/lib/generators/mno_enterprise/install/templates/config/initializers/mno_enterprise.rb +7 -50
  31. data/lib/generators/mno_enterprise/install/templates/config/newrelic.yml +3 -3
  32. data/lib/generators/mno_enterprise/install/templates/config/settings.yml +49 -2
  33. data/lib/generators/mno_enterprise/install/templates/nginx.conf +71 -0
  34. data/lib/generators/mno_enterprise/install/templates/stylesheets/variables.less +148 -141
  35. data/lib/html_processor.rb +14 -14
  36. data/lib/mno_enterprise/concerns/controllers/auth/registrations_controller.rb +18 -15
  37. data/lib/mno_enterprise/concerns/models/ability.rb +6 -3
  38. data/lib/mno_enterprise/concerns/models/app_instance.rb +2 -3
  39. data/lib/mno_enterprise/concerns/models/intercom_user.rb +22 -0
  40. data/lib/mno_enterprise/concerns/models/organization.rb +8 -0
  41. data/lib/mno_enterprise/concerns/models/shared_entity.rb +36 -0
  42. data/lib/mno_enterprise/concerns/models/team.rb +7 -0
  43. data/lib/mno_enterprise/testing_support/common_rake.rb +1 -1
  44. data/lib/mno_enterprise/testing_support/factories/apps.rb +6 -0
  45. data/lib/mno_enterprise/testing_support/factories/audit_event.rb +2 -0
  46. data/lib/mno_enterprise/testing_support/mno_enterprise_api_test_helper.rb +47 -16
  47. data/lib/mno_enterprise/testing_support/organizations_shared_helpers.rb +6 -9
  48. data/lib/mno_enterprise/version.rb +1 -1
  49. data/spec/config/initializers/audit_log_spec.rb +5 -0
  50. data/spec/controllers/mno_enterprise/application_controller_spec.rb +4 -4
  51. data/spec/helpers/image_helper_spec.rb +69 -0
  52. data/spec/models/mno_enterprise/ability_spec.rb +5 -0
  53. data/spec/models/mno_enterprise/app_spec.rb +1 -1
  54. data/spec/models/mno_enterprise/base_resource_spec.rb +37 -0
  55. data/spec/models/mno_enterprise/credit_card_spec.rb +18 -0
  56. data/spec/models/mno_enterprise/organization_spec.rb +16 -0
  57. data/spec/models/mno_enterprise/shared_entity_spec.rb +7 -0
  58. data/spec/models/mno_enterprise/user_spec.rb +83 -15
  59. metadata +15 -2
@@ -13,7 +13,7 @@
13
13
 
14
14
  <p>We received a request to change your email address in the platform to <%= @info[:unconfirmed_email] %>.</p>
15
15
 
16
- <p>If you did not request an email change, contact us.</p>
16
+ <p>If you did not request an email change, contact us at <%= mail_to(MnoEnterprise.support_email) %>.</p>
17
17
 
18
18
  <p>
19
19
  Regards,<br/>
@@ -3,7 +3,7 @@ Hi <%= @info[:first_name] %>
3
3
 
4
4
  We received a request to change your email address in the platform to <%= @info[:unconfirmed_email] %>.
5
5
 
6
- If you did not request an email change, contact us.
6
+ If you did not request an email change, contact us at <%= MnoEnterprise.support_email %>.
7
7
 
8
8
 
9
9
  Regards,
@@ -1,3 +1,30 @@
1
1
  unless defined? AUDIT_LOG_CONFIG
2
- AUDIT_LOG_CONFIG = Rails.application.config_for('audit_log') rescue {}
2
+ begin
3
+ AUDIT_LOG_CONFIG = Rails.application.config_for('audit_log')
4
+ rescue
5
+ AUDIT_LOG_CONFIG = {
6
+ "events" => {
7
+ "app_add" => "%{name} added",
8
+ "app_destroy" => "%{name} removed",
9
+ "app_launch" => "%{name} launched",
10
+ "dashboard_create" => "Dashboard '%{name}' created",
11
+ "dashboard_delete" => "Dashboard '%{name}' deleted",
12
+ "widget_create" => "Widget '%{name}' added",
13
+ "widget_delete" => "Widget '%{name}' deleted",
14
+ "widget_update" => "Widget '%{name}' updated with params: '%{widget_action}'",
15
+ "user_invite" => "%{user_email} invited",
16
+ "user_invite_accept" => "%{user_email} accepted invitation",
17
+ "user_confirm" => "%{user_email} accepted invitation",
18
+ "user_add" => "User '%{user_email}' signed up",
19
+ "user_role_update" => "User '%{email}' role changed to '%{role}'",
20
+ "user_role_delete" => "User '%{email}' removed from org",
21
+ "team_add" => "Team '%{name}' created",
22
+ "team_delete" => "Team '%{name}' deleted",
23
+ "team_update" => "Team '%{name}' user list modified. Action: %{action}, User(s) '%{users}'",
24
+ "team_apps_update" => "Team '%{name}' app list modified. New list: '%{apps}'",
25
+ "app_connected" => "App '%{name}' connected",
26
+ "app_disconnected" => "App '%{name}' disconnected",
27
+ }
28
+ }
29
+ end
3
30
  end
@@ -20,11 +20,36 @@ en:
20
20
  app_not_managed_by_us: The app you requested does not seem to be managed by us.
21
21
  did_you_type_the_right_url: Are you sure you typed the right url?
22
22
 
23
+ layout:
24
+ your_dashboard_is_loading: "Your dashboard is loading..."
25
+
26
+ without_organisation:
27
+ hello: "Hi, {name}!"
28
+ text: "Unfortunately, your account is not attached to an organisation. Please contact your administrator."
29
+ text_if_can_create: "Unfortunately, your account is not attached to an organisation. Please contact your administrator or create a new one using the button below."
30
+ button: "Create an organisation"
31
+ logout: "Logout"
32
+
23
33
  app_install_btn:
24
34
  conflicting_app: "You cannot install this App as it is incompatible with:"
25
35
  start_app: "Start Now!"
26
36
  launch_app: "Launch App"
27
- connect_app: "Connect App"
28
- success_notification_title: "{{name}} has been added to your account"
29
- success_launch_notification_body: "To start using {{name}}, click on the {{name}} icon then click on \"Launch\"."
30
- success_connect_notification_body: "To start using {{name}}, click on the {{name}} icon then click on \"Connect\"."
37
+ create_account: "Create an account"
38
+ create_account_tooltip: "A new tab will open for you to create an account. Afterwards, return here to connect it."
39
+ connect_app: "Connect an existing account"
40
+ access_addon: "Access Add-on"
41
+ insufficient_privilege: "You do not have the sufficient privileges. Contact your administrator."
42
+ success_notification_title: "{name} has been added to your account"
43
+ success_launch_notification_body: "To start using {name}, click on the {name} icon then click on \"Launch\"."
44
+ success_connect_notification_body: "To start using {name}, click on the {name} icon then click on \"Connect\"."
45
+
46
+ audit_events_list:
47
+ loading_events: Loading Events
48
+ table:
49
+ date: Date
50
+ user: User
51
+ action: Action
52
+ description: Description
53
+
54
+ mno_pagination:
55
+ items_per_page: "Items per page: "
@@ -42,9 +42,9 @@ en:
42
42
  apps_list:
43
43
  title: Dashboard
44
44
  manual_data_sync: Manual Data Sync
45
- manual_data_sync_tooltip: Trigger a manual sync between {{appname}} and Maestrano.
45
+ manual_data_sync_tooltip: Trigger a manual sync between {appname} and Maestrano.
46
46
  disconnect_link: Disconnect Link
47
- disconnect_link_tooltip: Are you sure you want to disconnect {{appname}} and Maestrano?
47
+ disconnect_link_tooltip: Are you sure you want to disconnect {appname} and Maestrano?
48
48
  restart: Restart
49
49
  delete: Delete
50
50
  linked_to: Linked to
@@ -23,9 +23,9 @@ en:
23
23
  tag_star: "Star!™ Tutorials"
24
24
  tag_connec: "Connec!™ Ready"
25
25
  conflicting_app: "You cannot install this app as it is incompatible with:"
26
- success_notification_title: "{{name}} has been added to your account"
27
- success_launch_notification_body: "To start using {{name}}, click on the {{name}} icon then click on \"Launch\"."
28
- success_connect_notification_body: "To start using {{name}}, click on the {{name}} icon then click on \"Connect\"."
26
+ success_notification_title: "{name} has been added to your account"
27
+ success_launch_notification_body: "To start using {name}, click on the {name} icon then click on \"Launch\"."
28
+ success_connect_notification_body: "To start using {name}, click on the {name} icon then click on \"Connect\"."
29
29
  no_reviews: "No reviews on"
30
30
  write_review: "Write a review"
31
31
  number_of_reviews: "Reviews per page:"
@@ -50,7 +50,7 @@ en:
50
50
  question_search: "Search..."
51
51
  question_ask: "Ask a question"
52
52
  question_ask_placeholder: "Enter your question here..."
53
- no_review: "There are no reviews of {{name}}."
53
+ no_review: "There are no reviews of {name}."
54
54
  answers: "Answers"
55
55
  answer_q: "Answer this Question"
56
56
  answer_placeholder: "Enter your answer to this question here..."
@@ -82,7 +82,7 @@ en:
82
82
  delete_modal_body: "Do you really want to delete your question?"
83
83
  delete_modal_cancel: "Cancel"
84
84
  delete_modal_delete: "Delete"
85
- no_question: "There are no questions on {{name}}."
85
+ no_question: "There are no questions on {name}."
86
86
  comment:
87
87
  delete_modal_header: "Delete a comment"
88
88
  delete_modal_body: "Do you really want to delete your comment?"
@@ -7,12 +7,15 @@ en:
7
7
  title: Sorry we couldn't process this payment
8
8
  explanation: Your account is currently in arrears as we were unable to charge your designated credit card.
9
9
  recommendation: "Please make sure your credit card details are up to date, then click the button below."
10
- warning: "Unfortunately if we are unable to charge your credit card by {{date}}, your applications will be automatically shut down."
10
+ warning: "Unfortunately if we are unable to charge your credit card by {date}, your applications will be automatically shut down."
11
11
  retry: Retry Payment
12
12
 
13
+ audit_log:
14
+ export: Export
15
+
13
16
  billing:
14
- current_billing_html: "Your billing for the current invoicing period is: <b>{{amount}}</b>"
15
- current_credit_html: "You have <b>{{amount}}</b> credit on your account to be used for the next payment. Note that this credit account will also be linked to any organization you create."
17
+ current_billing_html: "Your billing for the current invoicing period is: <b>{amount}</b>"
18
+ current_credit_html: "You have <b>{amount}</b> credit on your account to be used for the next payment. Note that this credit account will also be linked to any organization you create."
16
19
  disclaimer: Note that the amount for your current invoicing period is indicative and might not reflect the latest changes in your current billing.
17
20
  about_title: About our billing cycle
18
21
  about_body: Our invoicing period runs from the 25th of the previous month to the 24th of the current month. Any amount due (current spending minus credit) is charged on the 2nd of the following month.
@@ -46,11 +49,14 @@ en:
46
49
 
47
50
  index:
48
51
  title: Company
52
+ audit_log:
53
+ title: Audit Log
49
54
  billing:
50
55
  title: Billing
51
56
  current_billing: Current Billing
52
57
  billing_details: Billing Details
53
58
  past_invoices: Past Invoices
59
+ account_statement: Account Statements
54
60
  members:
55
61
  title: Members
56
62
  teams:
@@ -61,7 +67,7 @@ en:
61
67
  title: Settings
62
68
 
63
69
  invoices:
64
- disclaimer: All amounts are displayed in {{currency}}
70
+ disclaimer: All amounts are displayed in {currency}
65
71
  period: Period
66
72
  amount: Amount
67
73
  paid: Paid
@@ -78,8 +84,8 @@ en:
78
84
  edit: Edit
79
85
  remove: Remove
80
86
  invite_modal:
81
- title_name: "Edit Member: {{name}} {{surname}}"
82
- title_email: "Edit Member: {{email}}"
87
+ title_name: "Edit Member: {name} {surname}"
88
+ title_email: "Edit Member: {email}"
83
89
  description: Enter the email addresses of the people you want to invite in your company
84
90
  example: "One address per line, e.g.:"
85
91
  disclaimer: Please note that for security reasons unaccepted invites will automatically expire after 3 days.
@@ -96,8 +102,8 @@ en:
96
102
  super_admin: A Super Admin has all power within the company including access to billing management
97
103
  removal_modal:
98
104
  title: Confirm action
99
- body_name: Are you really sure you want to remove {{name}} {{surname}}?
100
- body_email: Are you really sure you want to remove {{email}}?
105
+ body_name: Are you really sure you want to remove {name} {surname}?
106
+ body_email: Are you really sure you want to remove {email}?
101
107
  cancel: Cancel
102
108
  remove: Remove
103
109
 
@@ -7,12 +7,12 @@ id:
7
7
  title: "Maaf kami tidak dapat memproses pembayaran ini"
8
8
  explanation: "Akun Anda saat ini dalam tunggakan karena kami tidak mampu membebankan kartu kredit Anda."
9
9
  recommendation: "Pastikan detail kartu kredit Anda adalah yang terbaru, lalu klik tombol di bawah ini."
10
- warning: "Sayang sekali jika kami tidak dapat membebankan kartu kredit Anda pada {{date}}, aplikasi Anda akan secara otomatis nonaktif."
10
+ warning: "Sayang sekali jika kami tidak dapat membebankan kartu kredit Anda pada {date}, aplikasi Anda akan secara otomatis nonaktif."
11
11
  retry: "Coba Lagi Pembayaran"
12
12
 
13
13
  billing:
14
- current_billing_html: "Tagihan Anda untuk periode tagihan saat ini adalah: <b>{{amount}}</b>"
15
- current_credit_html: "Anda memiliki <b>{{amount}}</b> kredit di akun Anda untuk digunakan pada pembayaran berikutnya. Perhatikan bahwa akun kredit ini juga akan dihubungkan ke organisasi apa pun yang Anda buat."
14
+ current_billing_html: "Tagihan Anda untuk periode tagihan saat ini adalah: <b>{amount}</b>"
15
+ current_credit_html: "Anda memiliki <b>{amount}</b> kredit di akun Anda untuk digunakan pada pembayaran berikutnya. Perhatikan bahwa akun kredit ini juga akan dihubungkan ke organisasi apa pun yang Anda buat."
16
16
  disclaimer: "Perhatikan bahwa jumlah untuk periode tagihan Anda bersifat indikatif dan mungkin tidak menunjukkan perubahan terakhir dalam penagihan Anda saat ini."
17
17
  about_title: "Tentang siklus penagihan kami"
18
18
  about_body: "Periode tagihan kami berlangsung dari tanggal 25 pada bulan sebelumnya hingga tanggal 24 bulan ini. Jumlah utang (belanja saat ini dikurangi kredit) dibebankan tanggal 2 pada bulan berikutnya."
@@ -58,7 +58,7 @@ id:
58
58
  title: Penyetelan
59
59
 
60
60
  invoices:
61
- disclaimer: Seluruh jumlah ditampilkan dalam {{currency}}
61
+ disclaimer: Seluruh jumlah ditampilkan dalam {currency}
62
62
  period: Periode
63
63
  amount: Jumlah
64
64
  paid: Sudah Dibayar
@@ -7,12 +7,12 @@ zh:
7
7
  title: "对不起我们无法处理此付款"
8
8
  explanation: "您的帐户目前尚有欠款,因为我们无法用您指定的信用卡结帐。"
9
9
  recommendation: "请确定您的信用卡信息是最新的,然后点击以下按钮。"
10
- warning: "很遗憾,如果我们无法在{{date}}前使用您的信用卡结帐,您的应用程序将自动关闭。"
10
+ warning: "很遗憾,如果我们无法在{date}前使用您的信用卡结帐,您的应用程序将自动关闭。"
11
11
  retry: "重试付款"
12
12
 
13
13
  billing:
14
- current_billing_html: "您在目前开票期限内的帐单金额是: <b>{{amount}}</b>"
15
- current_credit_html: "您的帐户余额有<b>{{amount}}</b>,可供下次付款使用。注意,此信用帐户也会连接至您创建的任何公司组织。"
14
+ current_billing_html: "您在目前开票期限内的帐单金额是: <b>{amount}</b>"
15
+ current_credit_html: "您的帐户余额有<b>{amount}</b>,可供下次付款使用。注意,此信用帐户也会连接至您创建的任何公司组织。"
16
16
  disclaimer: "请注意,您在目前开票期限内的帐单金额仅供参考,不一定能反映您的目前帐单的最新变动。"
17
17
  about_title: "关于我们的帐单周期"
18
18
  about_body: "我们的开票期从上个月的25号至本月24号。任何到期款项(当前支出扣除余额)在下个月的2号结帐。"
@@ -58,7 +58,7 @@ zh:
58
58
  title: 设置
59
59
 
60
60
  invoices:
61
- disclaimer: 所有金额以{{currency}}显示
61
+ disclaimer: 所有金额以{currency}显示
62
62
  period: 期限
63
63
  amount: 金额
64
64
  paid: 已支付
@@ -22,7 +22,7 @@ en:
22
22
 
23
23
  member_removal_modal:
24
24
  title: Confirm action
25
- confirmation: "Are you sure you want to remove {{fullname}} from {{teamname}}?"
25
+ confirmation: "Are you sure you want to remove {fullname} from {teamname}?"
26
26
  cancel: Cancel
27
27
  remove: Remove
28
28
 
@@ -34,12 +34,12 @@ en:
34
34
 
35
35
  team_delete_modal:
36
36
  title: Confirm action
37
- confirmation: "Are you really sure you want to remove {{teamname}}?"
37
+ confirmation: "Are you really sure you want to remove {teamname}?"
38
38
  cancel: Cancel
39
39
  remove: Remove
40
40
 
41
41
  team_list:
42
- no_team_member_warning: "{{teamname}} does not have any team member yet!"
42
+ no_team_member_warning: "{teamname} does not have any team member yet!"
43
43
  add_team_members: Add Team Members
44
44
  tbl_name: Name
45
45
  tbl_surname: Surname
@@ -20,7 +20,7 @@
20
20
  add: Tambahkan
21
21
  member_removal_modal:
22
22
  title: Konfirmasi tindakan
23
- confirmation: Yakin ingin menghapus {{fullname}} dari {{teamname}}?
23
+ confirmation: Yakin ingin menghapus {fullname} dari {teamname}?
24
24
  cancel: Batalkan
25
25
  remove: Hapus
26
26
  team_add_modal:
@@ -30,11 +30,11 @@
30
30
  create: Buat
31
31
  team_delete_modal:
32
32
  title: Konfirmasi tindakan
33
- confirmation: Yakin ingin menghapus {{teamname}}?
33
+ confirmation: Yakin ingin menghapus {teamname}?
34
34
  cancel: Batalkan
35
35
  remove: Hapus
36
36
  team_list:
37
- no_team_member_warning: '{{teamname}} belum memiliki satu pun anggota tim!'
37
+ no_team_member_warning: '{teamname} belum memiliki satu pun anggota tim!'
38
38
  add_team_members: Tambahkan Anggota Tim
39
39
  tbl_name: Nama
40
40
  tbl_surname: Nama belakang
@@ -20,7 +20,7 @@ zh:
20
20
  add: 添加
21
21
  member_removal_modal:
22
22
  title: 确认操作
23
- confirmation: 您确定要从{{teamname}}移除{{fullname}}
23
+ confirmation: 您确定要从{teamname}移除{fullname}?
24
24
  cancel: 取消
25
25
  remove: 移除
26
26
  team_add_modal:
@@ -30,11 +30,11 @@ zh:
30
30
  create: 创建
31
31
  team_delete_modal:
32
32
  title: 确认操作
33
- confirmation: 您真的确定要移除{{teamname}}
33
+ confirmation: 您真的确定要移除{teamname}?
34
34
  cancel: 取消
35
35
  remove: 移除
36
36
  team_list:
37
- no_team_member_warning: '{{teamname}}尚无任何成员!'
37
+ no_team_member_warning: '{teamname}尚无任何成员!'
38
38
  add_team_members: 添加团队成员
39
39
  tbl_name: 名字
40
40
  tbl_surname: 姓氏
@@ -0,0 +1,45 @@
1
+ en:
2
+ mno_enterprise:
3
+ templates:
4
+ app_feature:
5
+ single_sign_on: "Single Sign-on"
6
+ single_billing: "Single billing"
7
+ data_sharing: "Data-sharing"
8
+ onboarding:
9
+ breadcrumb:
10
+ step1: "Welcome"
11
+ step2: "Select your application(s)"
12
+ step3: "Connect your application(s)"
13
+ step4: "Discover your account"
14
+ welcome:
15
+ title: "Welcome, {name}!"
16
+ intro: "Setting up the Maestrano platform for the first time takes just a few minutes."
17
+ setup: "Our easy setup guide will take you through the process of connecting your first business applications and offer some insights on how to get the most out of your new cloud platform."
18
+ choose_my_apps: "Choose my apps!"
19
+ connect_my_apps: "Connect my apps!"
20
+ discover_your_account: "Discover your account now!"
21
+ select_your_app:
22
+ title: "Select the applications you want to connect"
23
+ search: "Search"
24
+ categories: "Categories"
25
+ max_apps_selected: "You cannot start with more than 4 apps, you will be able to add more at a later stage."
26
+ data_sync:
27
+ what_data: "What data will be synchronised"
28
+ start: "Visualise what data will be synchronised from your applications by clicking on their icons."
29
+ learn_more: "Learn how Maestrano synchronises data between your applications."
30
+ no_entity_shared: "No entities are shared"
31
+ app_infos_modal:
32
+ what_is: "What is {name}?"
33
+ how_is_app_integrated:
34
+ title: "How is {name} integrated to Maestrano?"
35
+ connector: "{name} is an add-on on Maestrano. You either need an existing account or to create an account.<br>The only thing you need to do is to authorise Maestrano to synchronise data with your account by clicking on \"connect my account\""
36
+ cloud: "{name} is a cloud app."
37
+ cube: "{name} is a cube app."
38
+ what_is_shared: "What data is shared with {name}?"
39
+ free_trial: "{duration} days free trial"
40
+ connect_apps:
41
+ connect_applications: "Connect your applications"
42
+ apps_to_connect: "Click on <b>Connect an existing account</b> button on each application to connect them now, you can skip this step if you want to connect your {nb, plural, one{application} other{applications}} later."
43
+ all_apps_connected: "{nb, plural, one{Your application is connected} other{Your applications are all connected}}! Click on the button below to go to the last step."
44
+ go_to_dashboard: "Go to my dashboard!"
45
+ skip: "Skip & Go to my dashboard!"
@@ -9,9 +9,11 @@ en:
9
9
  title: Almost there
10
10
  confirm: Confirm my account
11
11
  lounge:
12
- title: Congratulations! We've sent you a confirmation link, please check your email inbox.
13
- subtitle: If you did not receive the email please click resend.
14
- resend: Resend!
12
+ title: Confirmation sent!
13
+ subtitle: "We've sent you a confirmation link, please check your email inbox."
14
+ resend:
15
+ description: If you did not receive the email please click resend.
16
+ button: Resend!
15
17
  support_tip_html: "Or if you prefer you can send an email to our %{email} directly and we'll activate it for you."
16
18
  support_team: customer care service
17
19
  support_email_subject: Signup Verification
@@ -9,7 +9,7 @@ en:
9
9
  which_version_used: "Which version of MYOB do you use?"
10
10
  my_version_is: "My version of MYOB is:"
11
11
  connect: "Connect"
12
- connect_to: "Connect to {{appname}}"
12
+ connect_to: "Connect to {appname}"
13
13
 
14
14
  xero:
15
15
  how_do_you_want_to_connect: "How do you want us to connect your Xero account?"
@@ -17,4 +17,4 @@ en:
17
17
  payroll: "Payroll"
18
18
  which_country_for_the_account: "What is the country associated with your Xero account?"
19
19
  connect: "Connect"
20
- connect_to: "Connect to {{appname}}"
20
+ connect_to: "Connect to {appname}"
@@ -8,15 +8,26 @@ module MnoEnterprise
8
8
 
9
9
  # class_option :skip_rspec, type: :boolean, default: false, desc: 'Skip rspec-rails installation'
10
10
  # class_option :skip_factory_girl, type: :boolean, default: false, desc: 'Skip factory_girl installation'
11
+ class_option :skip_application_config, type: :boolean, default: false, desc: 'Skip Application config'
11
12
  class_option :skip_frontend, type: :boolean, default: false, desc: 'Skip frontend installation'
12
13
  class_option :skip_admin, type: :boolean, default: false, desc: 'Skip admin installation'
13
14
 
15
+ def application_config
16
+ return if options[:skip_application_config]
17
+
18
+ say("\n")
19
+ @company_name = ask("Company Name [My Company]: ").presence || "My Company"
20
+ @support_email = ask("Support email [support@example.com]: ").presence || "support@example.com"
21
+ @system_email = ask("System email [no-reply@example.com]: ").presence || "no-reply@example.com"
22
+ end
23
+
14
24
  def copy_initializer
15
25
  # Foreman config
16
26
  template "Procfile"
17
27
  template "Procfile.dev"
18
28
  template ".foreman"
19
29
  template ".healthcheck"
30
+ template "nginx.conf"
20
31
 
21
32
  template "config/initializers/mno_enterprise.rb"
22
33
  template "config/mno_enterprise_styleguide.yml"
@@ -30,6 +41,7 @@ module MnoEnterprise
30
41
  template "config/application.yml", "config/application.yml"
31
42
  template "config/application.yml", "config/application.sample.yml"
32
43
 
44
+ @new_relic_app_name = new_relic_app_name
33
45
  template "config/newrelic.yml", "config/newrelic.yml"
34
46
  end
35
47
 
@@ -130,7 +142,7 @@ module MnoEnterprise
130
142
  say_status("==> Maestrano Enterprise Angular has been installed", nil)
131
143
  say("- You can quickly customize the platform style in frontend/src/app/stylesheets")
132
144
  say("- You can customize the whole frontend by overriding mno-enterprise-angular in frontend/src/")
133
- say("- You can run 'rake mnoe:frontend:dist' to rebuild the frontend after changing frontend/src")
145
+ say("- You can run 'rake mnoe:frontend:build' to rebuild the frontend after changing frontend/src")
134
146
  end
135
147
 
136
148
  if @install_admin
@@ -162,6 +174,12 @@ module MnoEnterprise
162
174
  end
163
175
  answer.downcase[0] == ?y
164
176
  end
177
+
178
+ def new_relic_app_name
179
+ app_name = Rails.application.class.parent_name.to_s
180
+ name = app_name.parameterize.gsub('enterprise', '')
181
+ "frontend-#{name}"
182
+ end
165
183
  end
166
184
  end
167
185
  end