sbidu_generators 0.1.0
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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +81 -0
- data/Rakefile +36 -0
- data/app/assets/config/sbidu_generators_manifest.js +2 -0
- data/app/assets/javascripts/sbidu_generators/application.js +13 -0
- data/app/assets/stylesheets/sbidu_generators/application.css +15 -0
- data/app/controllers/sbidu_generators/application_controller.rb +5 -0
- data/app/helpers/sbidu_generators/application_helper.rb +4 -0
- data/app/jobs/sbidu_generators/application_job.rb +4 -0
- data/app/mailers/sbidu_generators/application_mailer.rb +6 -0
- data/app/models/sbidu_generators/application_record.rb +5 -0
- data/app/views/layouts/sbidu_generators/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/generators/sbidu_generators/setup_generator.rb +99 -0
- data/lib/generators/sbidu_generators/setup_templates/Dockerfile +40 -0
- data/lib/generators/sbidu_generators/setup_templates/Gemfile +103 -0
- data/lib/generators/sbidu_generators/setup_templates/README.md +165 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/javascripts/starter_kit.js +16 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/javascripts/starter_kit/bootstrap.min.js +7 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/javascripts/starter_kit/holder.min.js +13 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/javascripts/starter_kit/jquery-3.2.1.slim.min.js +4 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/javascripts/starter_kit/popper.min.js +4 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/javascripts/website.js +14 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/stylesheets/starter_kit.css +15 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/stylesheets/starter_kit/banner.css +36 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/stylesheets/starter_kit/bootstrap.min.css +7 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/stylesheets/starter_kit/carousel.css +91 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/stylesheets/starter_kit/general.css +50 -0
- data/lib/generators/sbidu_generators/setup_templates/app/assets/stylesheets/website.css +15 -0
- data/lib/generators/sbidu_generators/setup_templates/app/controllers/application_controller.rb +20 -0
- data/lib/generators/sbidu_generators/setup_templates/app/controllers/dashboard_controller.rb +24 -0
- data/lib/generators/sbidu_generators/setup_templates/app/controllers/landing_controller.rb +12 -0
- data/lib/generators/sbidu_generators/setup_templates/app/controllers/website/base_controller.rb +19 -0
- data/lib/generators/sbidu_generators/setup_templates/app/controllers/website/home_controller.rb +14 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/dashboard/index.html.erb +4 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/layouts/common/_disqus.html.erb +21 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/layouts/kuppayam/_footer.html.erb +25 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/layouts/kuppayam/_navbar.html.erb +58 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/layouts/mailer.html.erb +13 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/layouts/mailer.text.erb +1 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/layouts/website/_footer.html.erb +9 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/layouts/website/_head.html.erb +20 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/layouts/website/_header.html.erb +27 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/layouts/website/theme.html.erb +38 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/website/home/_slide.html.erb +10 -0
- data/lib/generators/sbidu_generators/setup_templates/app/views/website/home/index.html.erb +113 -0
- data/lib/generators/sbidu_generators/setup_templates/config/application.yml +5 -0
- data/lib/generators/sbidu_generators/setup_templates/config/database.sample.yml +57 -0
- data/lib/generators/sbidu_generators/setup_templates/config/database.yml +57 -0
- data/lib/generators/sbidu_generators/setup_templates/config/deploy/production.rb +26 -0
- data/lib/generators/sbidu_generators/setup_templates/config/initializers/assets.rb +15 -0
- data/lib/generators/sbidu_generators/setup_templates/config/initializers/overide_dhatu_controllers.rb +7 -0
- data/lib/generators/sbidu_generators/setup_templates/config/initializers/overide_kuppayam_controllers.rb +47 -0
- data/lib/generators/sbidu_generators/setup_templates/config/initializers/overide_pattana_controllers.rb +46 -0
- data/lib/generators/sbidu_generators/setup_templates/config/initializers/overide_usman_controllers.rb +7 -0
- data/lib/generators/sbidu_generators/setup_templates/config/nginx.conf +68 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/categories.csv +26 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/categories.csv +26 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/events.csv +2 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/offers.csv +2 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/permissions.csv +34 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/prices.csv +91 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/section_types.csv +10 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/sections.csv +11 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/services.csv +117 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/team_members.csv +2 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/testimonials.csv +1 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/dummy/users.csv +6 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/events.csv +2 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/offers.csv +2 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/permissions.csv +34 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/prices.csv +91 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/section_types.csv +11 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/sections.csv +11 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/services.csv +117 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/team_members.csv +2 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/testimonials.csv +1 -0
- data/lib/generators/sbidu_generators/setup_templates/db/data/users.csv +6 -0
- data/lib/generators/sbidu_generators/setup_templates/db/master_data/features.csv +25 -0
- data/lib/generators/sbidu_generators/setup_templates/db/master_data/roles.csv +3 -0
- data/lib/generators/sbidu_generators/setup_templates/docker-compose.yml +24 -0
- data/lib/generators/sbidu_generators/setup_templates/gitignore +46 -0
- data/lib/generators/sbidu_generators/setup_templates/lib/tasks/data.rake +133 -0
- data/lib/generators/sbidu_generators/setup_templates/rspec +2 -0
- data/lib/generators/sbidu_generators/setup_templates/ruby-version +1 -0
- data/lib/generators/sbidu_generators/website_generator.rb +34 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/about_us_controller.rb +16 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/base_controller.rb +67 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/blog_controller.rb +29 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/booking_controller.rb +26 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/careers_controller.rb +14 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/categories_controller.rb +39 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/contact_us_controller.rb +36 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/home_controller.rb +32 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/news_controller.rb +15 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/offers_controller.rb +17 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/products_controller.rb +43 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/promotion_enquiries_controller.rb +32 -0
- data/lib/generators/sbidu_generators/website_templates/app/controllers/website/services_controller.rb +32 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/layouts/common/_banner.html.erb +22 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/about_us/index.html.erb +23 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/blog/_item.html.erb +12 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/blog/index.html.erb +48 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/blog/show.html.erb +115 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/booking/_thank_you.html.erb +19 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/booking/create.js.erb +20 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/contact_us/_contact_us.html.erb +82 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/contact_us/index.html.erb +40 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/home/_slide.html.erb +10 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/home/index.html.erb +113 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/kaminari/_first_page.html.erb +3 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/kaminari/_gap.html.erb +3 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/kaminari/_last_page.html.erb +3 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/kaminari/_next_page.html.erb +3 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/kaminari/_page.html.erb +9 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/kaminari/_paginator.html.erb +15 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/kaminari/_prev_page.html.erb +3 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/offers/_offer_tab.html.erb +100 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/offers/_package_tab.html.erb +128 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/offers/_price_tab.html.erb +114 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/offers/index.html.erb +91 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/promotion_enquiries/_thank_you.html.erb +19 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/promotion_enquiries/create.js.erb +20 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/services/_show.html.erb +78 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/services/index.html.erb +105 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/services/show.html.erb +56 -0
- data/lib/generators/sbidu_generators/website_templates/app/views/website/website_generator.rb +34 -0
- data/lib/generators/sbidu_generators/website_templates/config/routes.rb +32 -0
- data/lib/sbidu_generators.rb +5 -0
- data/lib/sbidu_generators/engine.rb +5 -0
- data/lib/sbidu_generators/version.rb +3 -0
- data/lib/tasks/sbidu_generators_tasks.rake +4 -0
- metadata +314 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# MySQL. Versions 5.1.10 and up are supported.
|
|
2
|
+
#
|
|
3
|
+
# Install the MySQL driver
|
|
4
|
+
# gem install mysql2
|
|
5
|
+
#
|
|
6
|
+
# Ensure the MySQL gem is defined in your Gemfile
|
|
7
|
+
# gem 'mysql2'
|
|
8
|
+
#
|
|
9
|
+
# And be sure to use new-style password hashing:
|
|
10
|
+
# http://dev.mysql.com/doc/refman/5.7/en/old-client.html
|
|
11
|
+
#
|
|
12
|
+
default: &default
|
|
13
|
+
adapter: mysql2
|
|
14
|
+
encoding: utf8
|
|
15
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
16
|
+
username: root
|
|
17
|
+
password:
|
|
18
|
+
socket: /tmp/mysql.sock
|
|
19
|
+
|
|
20
|
+
development:
|
|
21
|
+
<<: *default
|
|
22
|
+
# Sbidu Generators - To Be Changed
|
|
23
|
+
database: <%= app_name.gsub(".", "_") -%>_development
|
|
24
|
+
|
|
25
|
+
# Warning: The database defined as "test" will be erased and
|
|
26
|
+
# re-generated from your development database when you run "rake".
|
|
27
|
+
# Do not set this db to the same as development or production.
|
|
28
|
+
test:
|
|
29
|
+
<<: *default
|
|
30
|
+
# Sbidu Generators - To Be Changed
|
|
31
|
+
database: <%= app_name.gsub(".", "_") -%>_test
|
|
32
|
+
|
|
33
|
+
# As with config/secrets.yml, you never want to store sensitive information,
|
|
34
|
+
# like your database password, in your source code. If your source code is
|
|
35
|
+
# ever seen by anyone, they now have access to your database.
|
|
36
|
+
#
|
|
37
|
+
# Instead, provide the password as a unix environment variable when you boot
|
|
38
|
+
# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
|
|
39
|
+
# for a full rundown on how to provide these environment variables in a
|
|
40
|
+
# production deployment.
|
|
41
|
+
#
|
|
42
|
+
# On Heroku and other platform providers, you may have a full connection URL
|
|
43
|
+
# available as an environment variable. For example:
|
|
44
|
+
#
|
|
45
|
+
# DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase"
|
|
46
|
+
#
|
|
47
|
+
# You can use this database configuration with:
|
|
48
|
+
#
|
|
49
|
+
# production:
|
|
50
|
+
# url: <%= ENV['DATABASE_URL'] %>
|
|
51
|
+
#
|
|
52
|
+
production:
|
|
53
|
+
<<: *default
|
|
54
|
+
# Sbidu Generators - To Be Changed
|
|
55
|
+
database: <%= app_name.gsub(".", "_") -%>_production
|
|
56
|
+
username: <%= ENV['DATABASE_USERNAME'] %>
|
|
57
|
+
password: <%= ENV['DATABASE_PASSWORD'] %>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# MySQL. Versions 5.1.10 and up are supported.
|
|
2
|
+
#
|
|
3
|
+
# Install the MySQL driver
|
|
4
|
+
# gem install mysql2
|
|
5
|
+
#
|
|
6
|
+
# Ensure the MySQL gem is defined in your Gemfile
|
|
7
|
+
# gem 'mysql2'
|
|
8
|
+
#
|
|
9
|
+
# And be sure to use new-style password hashing:
|
|
10
|
+
# http://dev.mysql.com/doc/refman/5.7/en/old-client.html
|
|
11
|
+
#
|
|
12
|
+
default: &default
|
|
13
|
+
adapter: mysql2
|
|
14
|
+
encoding: utf8
|
|
15
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
16
|
+
username: root
|
|
17
|
+
password:
|
|
18
|
+
socket: /tmp/mysql.sock
|
|
19
|
+
|
|
20
|
+
development:
|
|
21
|
+
<<: *default
|
|
22
|
+
# Sbidu Generators - To Be Changed
|
|
23
|
+
database: <%= app_name.gsub(".", "_") -%>_development
|
|
24
|
+
|
|
25
|
+
# Warning: The database defined as "test" will be erased and
|
|
26
|
+
# re-generated from your development database when you run "rake".
|
|
27
|
+
# Do not set this db to the same as development or production.
|
|
28
|
+
test:
|
|
29
|
+
<<: *default
|
|
30
|
+
# Sbidu Generators - To Be Changed
|
|
31
|
+
database: <%= app_name.gsub(".", "_") -%>_test
|
|
32
|
+
|
|
33
|
+
# As with config/secrets.yml, you never want to store sensitive information,
|
|
34
|
+
# like your database password, in your source code. If your source code is
|
|
35
|
+
# ever seen by anyone, they now have access to your database.
|
|
36
|
+
#
|
|
37
|
+
# Instead, provide the password as a unix environment variable when you boot
|
|
38
|
+
# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
|
|
39
|
+
# for a full rundown on how to provide these environment variables in a
|
|
40
|
+
# production deployment.
|
|
41
|
+
#
|
|
42
|
+
# On Heroku and other platform providers, you may have a full connection URL
|
|
43
|
+
# available as an environment variable. For example:
|
|
44
|
+
#
|
|
45
|
+
# DATABASE_URL="mysql2://myuser:mypass@localhost/somedatabase"
|
|
46
|
+
#
|
|
47
|
+
# You can use this database configuration with:
|
|
48
|
+
#
|
|
49
|
+
# production:
|
|
50
|
+
# url: <%= ENV['DATABASE_URL'] %>
|
|
51
|
+
#
|
|
52
|
+
production:
|
|
53
|
+
<<: *default
|
|
54
|
+
# Sbidu Generators - To Be Changed
|
|
55
|
+
database: <%= app_name.gsub(".", "_") -%>_production
|
|
56
|
+
username: <%= ENV['DATABASE_USERNAME'] %>
|
|
57
|
+
password: <%= ENV['DATABASE_PASSWORD'] %>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
set :stage, :production
|
|
2
|
+
set :unicorn_rack_env, 'production'
|
|
3
|
+
set :branch, :master
|
|
4
|
+
|
|
5
|
+
# Sbidu Generators - You might want to change the application name
|
|
6
|
+
set :deploy_to, '/u01/apps/rs/<%= app_name -%>'
|
|
7
|
+
set :log_level, :debug
|
|
8
|
+
|
|
9
|
+
# Extended Server Syntax
|
|
10
|
+
# ======================
|
|
11
|
+
# This can be used to drop a more detailed server
|
|
12
|
+
# definition into the server list. The second argument
|
|
13
|
+
# something that quacks like a hash can be used to set
|
|
14
|
+
# extended properties on the server.
|
|
15
|
+
|
|
16
|
+
# Sbidu Generators - To Be Changed
|
|
17
|
+
role :app, %w{deployer@34.250.212.49}
|
|
18
|
+
role :web, %w{deployer@34.250.212.49}
|
|
19
|
+
role :db, %w{deployer@34.250.212.49}
|
|
20
|
+
server '34.250.212.49', roles: %w{:web, :app, :db}, user: 'deployer'
|
|
21
|
+
|
|
22
|
+
set :ssh_options, {
|
|
23
|
+
#verbose: :debug,
|
|
24
|
+
keys: %w(~/.ssh/id_rsa),
|
|
25
|
+
auth_methods: %w(publickey)
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
|
5
|
+
|
|
6
|
+
# Add additional assets to the asset load path.
|
|
7
|
+
# Rails.application.config.assets.paths << Emoji.images_path
|
|
8
|
+
# Add Yarn node_modules folder to the asset load path.
|
|
9
|
+
Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
|
10
|
+
|
|
11
|
+
# Precompile additional assets.
|
|
12
|
+
# application.js, application.css, and all non-JS/CSS in the app/assets
|
|
13
|
+
# folder are already added.
|
|
14
|
+
Rails.application.config.assets.precompile += %w( website.js website.css starter_kit.js starter_kit.css )
|
|
15
|
+
Rails.application.config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Kuppayam::ImagesController.class_eval do
|
|
2
|
+
|
|
3
|
+
include Usman::AuthenticationHelper
|
|
4
|
+
|
|
5
|
+
layout 'kuppayam/admin'
|
|
6
|
+
|
|
7
|
+
before_action :current_user
|
|
8
|
+
before_action :require_user
|
|
9
|
+
before_action :require_site_admin
|
|
10
|
+
|
|
11
|
+
def set_default_title
|
|
12
|
+
set_title("Manage Images | Admin")
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
Kuppayam::ImportDataController.class_eval do
|
|
18
|
+
|
|
19
|
+
include Usman::AuthenticationHelper
|
|
20
|
+
|
|
21
|
+
layout 'kuppayam/admin'
|
|
22
|
+
|
|
23
|
+
before_action :current_user
|
|
24
|
+
before_action :require_user
|
|
25
|
+
before_action :require_site_admin
|
|
26
|
+
|
|
27
|
+
def set_default_title
|
|
28
|
+
set_title("Manage Import Data | Admin")
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
Kuppayam::DocumentsController.class_eval do
|
|
34
|
+
|
|
35
|
+
include Usman::AuthenticationHelper
|
|
36
|
+
|
|
37
|
+
layout 'kuppayam/admin'
|
|
38
|
+
|
|
39
|
+
before_action :current_user
|
|
40
|
+
before_action :require_user
|
|
41
|
+
before_action :require_site_admin
|
|
42
|
+
|
|
43
|
+
def set_default_title
|
|
44
|
+
set_title("Manage Documents | Admin")
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Pattana::ApplicationController.class_eval do
|
|
2
|
+
|
|
3
|
+
include Usman::AuthenticationHelper
|
|
4
|
+
|
|
5
|
+
before_action :current_user
|
|
6
|
+
before_action :require_user
|
|
7
|
+
helper_method :breadcrumb_home_path
|
|
8
|
+
|
|
9
|
+
def breadcrumb_home_path
|
|
10
|
+
main_app.dashboard_path
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
Pattana::DashboardController.class_eval do
|
|
16
|
+
|
|
17
|
+
helper_method :require_site_admin
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
Pattana::ResourceController.class_eval do
|
|
22
|
+
|
|
23
|
+
include Usman::AuthenticationHelper
|
|
24
|
+
|
|
25
|
+
layout 'kuppayam/admin'
|
|
26
|
+
|
|
27
|
+
before_action :current_user
|
|
28
|
+
before_action :require_user
|
|
29
|
+
|
|
30
|
+
before_action :require_read_permission, only: [:index, :show]
|
|
31
|
+
before_action :require_create_permission, only: [:create]
|
|
32
|
+
before_action :require_update_permission, only: [:update, :update_status, :mark_as_featured, :remove_from_featured]
|
|
33
|
+
before_action :require_delete_permission, only: [:destroy]
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
Pattana::Api::V1::DocsController.class_eval do
|
|
38
|
+
|
|
39
|
+
def set_tab_items
|
|
40
|
+
@tab_items = {
|
|
41
|
+
usman: { nav_class: "docs/usman", icon_class: "fa-group", url: usman.docs_api_v1_register_path, text: "User APIs"},
|
|
42
|
+
pattana: { nav_class: "docs/pattana", icon_class: "fa-globe", url: pattana.docs_api_v1_countries_path, text: "Location APIs"}
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
upstream puma_docker_app {
|
|
2
|
+
server app:3000;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
server {
|
|
7
|
+
|
|
8
|
+
listen 80;
|
|
9
|
+
|
|
10
|
+
client_max_body_size 4G;
|
|
11
|
+
keepalive_timeout 10;
|
|
12
|
+
|
|
13
|
+
error_page 500 502 504 /500.html;
|
|
14
|
+
error_page 503 @503;
|
|
15
|
+
|
|
16
|
+
server_name localhost puma_docker_app;
|
|
17
|
+
|
|
18
|
+
# Sbidu Generators - To Be Changed
|
|
19
|
+
root /var/www/<%= app_name.gsub(".", "_") -%>/public;
|
|
20
|
+
try_files $uri/index.html $uri @puma_docker_app;
|
|
21
|
+
|
|
22
|
+
location @puma_docker_app {
|
|
23
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
24
|
+
proxy_set_header Host $http_host;
|
|
25
|
+
proxy_redirect off;
|
|
26
|
+
|
|
27
|
+
proxy_pass http://puma_docker_app;
|
|
28
|
+
# limit_req zone=one;
|
|
29
|
+
|
|
30
|
+
# Sbidu Generators - To Be Changed
|
|
31
|
+
access_log /var/www/<%= app_name.gsub(".", "_") -%>/log/nginx.access.log;
|
|
32
|
+
error_log /var/www/<%= app_name.gsub(".", "_") -%>/log/nginx.error.log;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
location ^~ /assets/ {
|
|
36
|
+
gzip_static on;
|
|
37
|
+
expires max;
|
|
38
|
+
add_header Cache-Control public;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
location = /50x.html {
|
|
42
|
+
root html;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
location = /404.html {
|
|
46
|
+
root html;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
location @503 {
|
|
50
|
+
error_page 405 = /system/maintenance.html;
|
|
51
|
+
if (-f $document_root/system/maintenance.html) {
|
|
52
|
+
rewrite ^(.*)$ /system/maintenance.html break;
|
|
53
|
+
}
|
|
54
|
+
rewrite ^(.*)$ /503.html break;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if ($request_method !~ ^(GET|HEAD|PUT|PATCH|POST|DELETE|OPTIONS)$ ){
|
|
58
|
+
return 405;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (-f $document_root/system/maintenance.html) {
|
|
62
|
+
return 503;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
location ~ \.(php|html)$ {
|
|
66
|
+
return 405;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name, category_type, one_liner, description, parent, status, priority
|
|
2
|
+
BEAUTY SALON DUBAI, Dhatu::BlogPost, BEAUTY SALON DUBAI, BEAUTY SALON DUBAI,,published,1
|
|
3
|
+
BEAUTY SALON DUBAI PRICE LIST, Dhatu::BlogPost, BEAUTY SALON DUBAI PRICE LIST, BEAUTY SALON DUBAI PRICE LIST,,published,1
|
|
4
|
+
BEST HAIR SALON DUBAI, Dhatu::BlogPost, BEST HAIR SALON DUBAI, BEST HAIR SALON DUBAI,,published,1
|
|
5
|
+
DUBAI BEAUTY SALON DEALS, Dhatu::BlogPost, DUBAI BEAUTY SALON DEALS, DUBAI BEAUTY SALON DEALS,,published,1
|
|
6
|
+
DUBAI BEAUTY SALON PACKAGES, Dhatu::BlogPost, DUBAI BEAUTY SALON PACKAGES, DUBAI BEAUTY SALON PACKAGES,,published,1
|
|
7
|
+
HAIR SALON DUBAI, Dhatu::BlogPost, HAIR SALON DUBAI, HAIR SALON DUBAI,,published,1
|
|
8
|
+
NAIL SALON DUBAI, Dhatu::BlogPost, NAIL SALON DUBAI, NAIL SALON DUBAI,,published,1
|
|
9
|
+
FACIALS, Dhatu::Price, FACIALS, FACIALS,,published,1
|
|
10
|
+
WAXING, Dhatu::Price, WAXING, WAXING,,published,1
|
|
11
|
+
THREADING, Dhatu::Price, THREADING, THREADING,,published,1
|
|
12
|
+
HAIR CUT, Dhatu::Price, HAIR CUT, HAIR CUT,,published,1
|
|
13
|
+
HAIR COLORING, Dhatu::Price, HAIR COLORING, HAIR COLORING,,published,1
|
|
14
|
+
HAIR RE-BONDING, Dhatu::Price, HAIR RE-BONDING, HAIR RE-BONDING,,published,1
|
|
15
|
+
HIGHLIGHTS, Dhatu::Price, HIGHLIGHTS, HIGHLIGHTS,,published,1
|
|
16
|
+
PEDICURE & MANICURE, Dhatu::Price, PEDICURE & MANICURE, PEDICURE & MANICURE,,published,1
|
|
17
|
+
BODY MASSAGE, Dhatu::Price, BODY MASSAGE, BODY MASSAGE,,published,1
|
|
18
|
+
PARTY MAKE UP, Dhatu::Price, PARTY MAKE UP, PARTY MAKE UP,,published,1
|
|
19
|
+
ROYAL PREMIUM, Dhatu::Price, ROYAL PREMIUM, ROYAL PREMIUM,,published,1
|
|
20
|
+
ROYAL REGULAR, Dhatu::Price, ROYAL REGULAR, ROYAL REGULAR,,published,1
|
|
21
|
+
Hair, Dhatu::Service, Hair, Hair,,published,1
|
|
22
|
+
Beauty, Dhatu::Service, Beauty, Beauty,,published,1
|
|
23
|
+
Body, Dhatu::Service, Body, Body,,published,1
|
|
24
|
+
Kids, Dhatu::Service, Kids, Kids,,published,1
|
|
25
|
+
Treatments, Dhatu::Service, Treatments, Treatments,,published,1
|
|
26
|
+
Skin and Facial Treatments, Dhatu::Service, Skin and Facial Treatments, Skin and Facial Treatments,,published,1
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name, category_type, one_liner, description, parent, status, priority
|
|
2
|
+
BEAUTY SALON DUBAI, Dhatu::BlogPost, BEAUTY SALON DUBAI, BEAUTY SALON DUBAI,,published,1
|
|
3
|
+
BEAUTY SALON DUBAI PRICE LIST, Dhatu::BlogPost, BEAUTY SALON DUBAI PRICE LIST, BEAUTY SALON DUBAI PRICE LIST,,published,1
|
|
4
|
+
BEST HAIR SALON DUBAI, Dhatu::BlogPost, BEST HAIR SALON DUBAI, BEST HAIR SALON DUBAI,,published,1
|
|
5
|
+
DUBAI BEAUTY SALON DEALS, Dhatu::BlogPost, DUBAI BEAUTY SALON DEALS, DUBAI BEAUTY SALON DEALS,,published,1
|
|
6
|
+
DUBAI BEAUTY SALON PACKAGES, Dhatu::BlogPost, DUBAI BEAUTY SALON PACKAGES, DUBAI BEAUTY SALON PACKAGES,,published,1
|
|
7
|
+
HAIR SALON DUBAI, Dhatu::BlogPost, HAIR SALON DUBAI, HAIR SALON DUBAI,,published,1
|
|
8
|
+
NAIL SALON DUBAI, Dhatu::BlogPost, NAIL SALON DUBAI, NAIL SALON DUBAI,,published,1
|
|
9
|
+
FACIALS, Dhatu::Price, FACIALS, FACIALS,,published,1
|
|
10
|
+
WAXING, Dhatu::Price, WAXING, WAXING,,published,1
|
|
11
|
+
THREADING, Dhatu::Price, THREADING, THREADING,,published,1
|
|
12
|
+
HAIR CUT, Dhatu::Price, HAIR CUT, HAIR CUT,,published,1
|
|
13
|
+
HAIR COLORING, Dhatu::Price, HAIR COLORING, HAIR COLORING,,published,1
|
|
14
|
+
HAIR RE-BONDING, Dhatu::Price, HAIR RE-BONDING, HAIR RE-BONDING,,published,1
|
|
15
|
+
HIGHLIGHTS, Dhatu::Price, HIGHLIGHTS, HIGHLIGHTS,,published,1
|
|
16
|
+
PEDICURE & MANICURE, Dhatu::Price, PEDICURE & MANICURE, PEDICURE & MANICURE,,published,1
|
|
17
|
+
BODY MASSAGE, Dhatu::Price, BODY MASSAGE, BODY MASSAGE,,published,1
|
|
18
|
+
PARTY MAKE UP, Dhatu::Price, PARTY MAKE UP, PARTY MAKE UP,,published,1
|
|
19
|
+
ROYAL PREMIUM, Dhatu::Price, ROYAL PREMIUM, ROYAL PREMIUM,,published,1
|
|
20
|
+
ROYAL REGULAR, Dhatu::Price, ROYAL REGULAR, ROYAL REGULAR,,published,1
|
|
21
|
+
Hair, Dhatu::Service, Hair, Hair,,published,1
|
|
22
|
+
Beauty, Dhatu::Service, Beauty, Beauty,,published,1
|
|
23
|
+
Body, Dhatu::Service, Body, Body,,published,1
|
|
24
|
+
Kids, Dhatu::Service, Kids, Kids,,published,1
|
|
25
|
+
Treatments, Dhatu::Service, Treatments, Treatments,,published,1
|
|
26
|
+
Skin and Facial Treatments, Dhatu::Service, Skin and Facial Treatments, Skin and Facial Treatments,,published,1
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
user,feature,can_create,can_read,can_update,can_delete
|
|
2
|
+
anas,Dhatu::Category,TRUE,TRUE,TRUE,TRUE
|
|
3
|
+
anas,Dhatu::Section,TRUE,TRUE,TRUE,TRUE
|
|
4
|
+
anas,Dhatu::SectionType,TRUE,TRUE,TRUE,FALSE
|
|
5
|
+
anas,Dhatu::Branch,TRUE,TRUE,TRUE,TRUE
|
|
6
|
+
anas,Dhatu::BlogPost,TRUE,TRUE,TRUE,TRUE
|
|
7
|
+
anas,Dhatu::Booking,TRUE,TRUE,TRUE,TRUE
|
|
8
|
+
anas,Dhatu::Offer,TRUE,TRUE,TRUE,TRUE
|
|
9
|
+
anas,User,TRUE,TRUE,TRUE,TRUE
|
|
10
|
+
anas,Role,TRUE,TRUE,TRUE,FALSE
|
|
11
|
+
anas,Permission,TRUE,TRUE,TRUE,FALSE
|
|
12
|
+
vinodh,Dhatu::Price,TRUE,TRUE,TRUE,TRUE
|
|
13
|
+
vinodh,Dhatu::Category,TRUE,TRUE,TRUE,TRUE
|
|
14
|
+
vinodh,Dhatu::Section,TRUE,TRUE,TRUE,TRUE
|
|
15
|
+
vinodh,Dhatu::SectionType,TRUE,TRUE,TRUE,FALSE
|
|
16
|
+
vinodh,Dhatu::Branch,TRUE,TRUE,TRUE,TRUE
|
|
17
|
+
vinodh,Dhatu::BlogPost,TRUE,TRUE,TRUE,TRUE
|
|
18
|
+
vinodh,Dhatu::Booking,TRUE,TRUE,TRUE,TRUE
|
|
19
|
+
vinodh,Dhatu::Offer,TRUE,TRUE,TRUE,TRUE
|
|
20
|
+
vinodh,User,TRUE,TRUE,TRUE,TRUE
|
|
21
|
+
vinodh,Role,TRUE,TRUE,TRUE,FALSE
|
|
22
|
+
vinodh,Permission,TRUE,TRUE,TRUE,FALSE
|
|
23
|
+
junaid,Dhatu::Price,TRUE,TRUE,TRUE,TRUE
|
|
24
|
+
junaid,Dhatu::Category,TRUE,TRUE,TRUE,TRUE
|
|
25
|
+
junaid,Dhatu::Section,TRUE,TRUE,TRUE,TRUE
|
|
26
|
+
junaid,Dhatu::SectionType,TRUE,TRUE,TRUE,FALSE
|
|
27
|
+
junaid,Dhatu::Branch,TRUE,TRUE,TRUE,TRUE
|
|
28
|
+
junaid,Dhatu::BlogPost,TRUE,TRUE,TRUE,TRUE
|
|
29
|
+
junaid,Dhatu::Booking,TRUE,TRUE,TRUE,TRUE
|
|
30
|
+
junaid,Dhatu::Offer,TRUE,TRUE,TRUE,TRUE
|
|
31
|
+
junaid,User,TRUE,TRUE,TRUE,TRUE
|
|
32
|
+
junaid,Role,TRUE,TRUE,TRUE,FALSE
|
|
33
|
+
junaid,Permission,TRUE,TRUE,TRUE,FALSE
|
|
34
|
+
anas,Dhatu::Price,TRUE,TRUE,TRUE,TRUE
|