phcdevworks_portfolio 10.0.5 → 11.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +1 -0
- data/app/assets/config/phcdevworks_portfolio_manifest.js +2 -3
- data/app/controllers/phcdevworks_portfolio/application_controller.rb +13 -13
- data/app/controllers/phcdevworks_portfolio/project/pages_controller.rb +21 -21
- data/app/controllers/phcdevworks_portfolio/project/posts_controller.rb +76 -76
- data/app/controllers/phcdevworks_portfolio/project/types_controller.rb +77 -77
- data/app/helpers/phcdevworks_portfolio/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_portfolio/project/pages_helper.rb +4 -4
- data/app/helpers/phcdevworks_portfolio/project/posts_helper.rb +4 -4
- data/app/helpers/phcdevworks_portfolio/project/types_helper.rb +4 -4
- data/app/jobs/phcdevworks_portfolio/application_job.rb +4 -4
- data/app/mailers/phcdevworks_portfolio/application_mailer.rb +6 -6
- data/app/models/phcdevworks_portfolio/application_record.rb +5 -5
- data/app/models/phcdevworks_portfolio/project/post.rb +27 -27
- data/app/models/phcdevworks_portfolio/project/type.rb +22 -22
- data/app/models/phcdevworks_portfolio/project.rb +7 -7
- data/app/models/phcdevworks_portfolio/project_post_versions.rb +5 -5
- data/app/models/phcdevworks_portfolio/project_type_versions.rb +5 -5
- data/app/views/layouts/phcdevworks_portfolio/application.html.erb +58 -116
- data/app/views/layouts/phcdevworks_portfolio/components/backend/footer/_footer.html.erb +10 -9
- data/app/views/layouts/phcdevworks_portfolio/components/backend/navigation/_top_menu.html.erb +26 -25
- data/app/views/layouts/phcdevworks_portfolio/components/backend/sidebars/_side_menu.html.erb +491 -287
- data/app/views/phcdevworks_portfolio/project/posts/_form.html.erb +64 -64
- data/app/views/phcdevworks_portfolio/project/posts/edit.html.erb +39 -47
- data/app/views/phcdevworks_portfolio/project/posts/index.html.erb +75 -83
- data/app/views/phcdevworks_portfolio/project/posts/new.html.erb +39 -47
- data/app/views/phcdevworks_portfolio/project/types/_form.html.erb +22 -22
- data/app/views/phcdevworks_portfolio/project/types/edit.html.erb +39 -47
- data/app/views/phcdevworks_portfolio/project/types/index.html.erb +71 -79
- data/app/views/phcdevworks_portfolio/project/types/new.html.erb +39 -47
- data/config/routes.rb +10 -15
- data/config/spring.rb +1 -1
- data/db/migrate/20191014112330_create_phcdevworks_portfolio_project_posts.rb +21 -21
- data/db/migrate/20191021225316_create_phcdevworks_portfolio_project_types.rb +17 -17
- data/db/migrate/20191024232111_create_phcdevworks_portfolio_project_categories_posts.rb +10 -10
- data/db/migrate/20191024232406_create_phcdevworks_portfolio_project_posts_types.rb +10 -10
- data/db/migrate/20191102091459_create_phcdevworks_portfolio_project_post_versions.rb +18 -18
- data/db/migrate/20191102091744_create_phcdevworks_portfolio_project_type_versions.rb +18 -18
- data/lib/phcdevworks_portfolio/engine.rb +45 -46
- data/lib/phcdevworks_portfolio/version.rb +3 -3
- metadata +36 -84
- data/app/assets/stylesheets/phcdevworks_portfolio/application.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_portfolio/project/pages.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_portfolio/project/posts.scss +0 -0
- data/app/assets/stylesheets/phcdevworks_portfolio/project/types.scss +0 -3
- data/app/views/layouts/phcdevworks_portfolio/frontend.html.erb +0 -0
@@ -1,79 +1,71 @@
|
|
1
|
-
<!--
|
2
|
-
<% phc_title "Portfolio Manager" %>
|
3
|
-
<% phc_title_tagline "Project Type Index" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Type List", phcdevworks_portfolio.project_types_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!--
|
7
|
-
|
8
|
-
<!--
|
9
|
-
<ol class="breadcrumb
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!--
|
14
|
-
|
15
|
-
<!--
|
16
|
-
<
|
17
|
-
<!--
|
18
|
-
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
<!-- Panel - Body -->
|
73
|
-
|
74
|
-
</div>
|
75
|
-
<!-- Panel -->
|
76
|
-
|
77
|
-
</div>
|
78
|
-
</div>
|
79
|
-
<!-- Page Content -->
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
|
+
<% phc_title "Portfolio Manager" %>
|
3
|
+
<% phc_title_tagline "Project Type Index" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Type List", phcdevworks_portfolio.project_types_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
7
|
+
|
8
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- -PHCDEV- Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
|
+
|
19
|
+
<!-- -PHCDEV- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
21
|
+
|
22
|
+
<!-- -PHCDEV- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDEV- Panel - Heading -->
|
27
|
+
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
30
|
+
|
31
|
+
<!-- -PHCDEV- Index - Table -->
|
32
|
+
<div class="table-responsive">
|
33
|
+
<table class="table table-striped table-bordered">
|
34
|
+
|
35
|
+
<thead>
|
36
|
+
<tr>
|
37
|
+
<th>Project Type</th>
|
38
|
+
<th></th>
|
39
|
+
</tr>
|
40
|
+
</thead>
|
41
|
+
|
42
|
+
<tbody>
|
43
|
+
<% @project_types.each do |project_type| %>
|
44
|
+
<tr>
|
45
|
+
<td><%= project_type.project_type_name %></td>
|
46
|
+
<td>
|
47
|
+
<div class="btn-group d-flex" role="group">
|
48
|
+
<%= link_to "Update Type Name", edit_project_type_path(project_type), class: "btn btn-purple btn-xs" %>
|
49
|
+
<%= link_to "Remove Project Type", project_type, method: :delete, data: { confirm: "Are you sure? This will also remove the Members addresses and listings. This action cannot be reversed." }, class: "btn btn-danger btn-xs" %>
|
50
|
+
</div>
|
51
|
+
</td>
|
52
|
+
</tr>
|
53
|
+
<% end %>
|
54
|
+
</tbody>
|
55
|
+
|
56
|
+
</table>
|
57
|
+
</div>
|
58
|
+
<!-- -PHCDEV- Index - Table -->
|
59
|
+
|
60
|
+
<!-- -PHCDEV- New Button -->
|
61
|
+
<%= link_to phcdevworks_portfolio.new_project_type_path, class: "btn btn-primary btn-sm" do %>
|
62
|
+
<i class="fad fa-plus-circle"></i>
|
63
|
+
Add a New Project Type
|
64
|
+
<% end %>
|
65
|
+
<!-- -PHCDEV- New Button -->
|
66
|
+
|
67
|
+
</div>
|
68
|
+
<!-- -PHCDEV- Panel - Body -->
|
69
|
+
|
70
|
+
</div>
|
71
|
+
<!-- -PHCDEV- Panel -->
|
@@ -1,47 +1,39 @@
|
|
1
|
-
<!--
|
2
|
-
<% phc_title "Portfolio Manager" %>
|
3
|
-
<% phc_title_tagline "Update Project Type" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Type List", phcdevworks_portfolio.project_types_path %>
|
5
|
-
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
-
<!--
|
7
|
-
|
8
|
-
<!--
|
9
|
-
<ol class="breadcrumb
|
10
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
-
</ol>
|
13
|
-
<!--
|
14
|
-
|
15
|
-
<!--
|
16
|
-
<
|
17
|
-
<!--
|
18
|
-
|
19
|
-
<!--
|
20
|
-
<div class="
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<!-- Panel - Body -->
|
41
|
-
|
42
|
-
</div>
|
43
|
-
<!-- Panel -->
|
44
|
-
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
<!-- Page Content -->
|
1
|
+
<!-- -PHCDEV- Title Variables -->
|
2
|
+
<% phc_title "Portfolio Manager" %>
|
3
|
+
<% phc_title_tagline "Update Project Type" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Type List", phcdevworks_portfolio.project_types_path %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
6
|
+
<!-- -PHCDEV- Title Variables -->
|
7
|
+
|
8
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
9
|
+
<ol class="breadcrumb float-xl-end">
|
10
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
12
|
+
</ol>
|
13
|
+
<!-- -PHCDEV- Bradcrumbs -->
|
14
|
+
|
15
|
+
<!-- -PHCDEV- Header -->
|
16
|
+
<h1 class="page-header"><%= yield(:phc_title) %></h1>
|
17
|
+
<!-- -PHCDEV- Header -->
|
18
|
+
|
19
|
+
<!-- -PHCDEV- Panel -->
|
20
|
+
<div class="panel panel-inverse">
|
21
|
+
|
22
|
+
<!-- -PHCDEV- Panel - Heading -->
|
23
|
+
<div class="panel-heading">
|
24
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
25
|
+
</div>
|
26
|
+
<!-- -PHCDEV- Panel - Heading -->
|
27
|
+
|
28
|
+
<!-- -PHCDEV- Panel - Body -->
|
29
|
+
<div class="panel-body">
|
30
|
+
|
31
|
+
<!-- -PHCDEV- New Form -->
|
32
|
+
<%= render 'form', project_type: @project_type %>
|
33
|
+
<!-- -PHCDEV- New Form -->
|
34
|
+
|
35
|
+
</div>
|
36
|
+
<!-- -PHCDEV- Panel - Body -->
|
37
|
+
|
38
|
+
</div>
|
39
|
+
<!-- -PHCDEV- Panel -->
|
data/config/routes.rb
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
PhcdevworksPortfolio::Engine.routes.draw do
|
2
|
-
|
3
|
-
# Project Routes
|
4
|
-
namespace :project do
|
5
|
-
resources :posts, class_name: "Project::Post"
|
6
|
-
resources :types, class_name: "Project::Type"
|
7
|
-
resources :pages, only: [:index, :show]
|
8
|
-
end
|
9
|
-
|
10
|
-
|
11
|
-
mount PhcdevworksAccounts::Engine, :at => '/'
|
12
|
-
mount PhcdevworksAccountsStripe::Engine, :at => '/'
|
13
|
-
mount PhcdevworksCoreModules::Engine, :at => '/'
|
14
|
-
|
15
|
-
end
|
1
|
+
PhcdevworksPortfolio::Engine.routes.draw do
|
2
|
+
|
3
|
+
# Project Routes
|
4
|
+
namespace :project do
|
5
|
+
resources :posts, class_name: "Project::Post"
|
6
|
+
resources :types, class_name: "Project::Type"
|
7
|
+
resources :pages, only: [:index, :show]
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
data/config/spring.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
Spring.application_root = './spec/test_app'
|
1
|
+
Spring.application_root = './spec/test_app'
|
2
2
|
|
@@ -1,21 +1,21 @@
|
|
1
|
-
class CreatePhcdevworksPortfolioProjectPosts < ActiveRecord::Migration[
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_portfolio_project_posts do |t|
|
4
|
-
|
5
|
-
t.string :project_post_title
|
6
|
-
t.text :project_post_description
|
7
|
-
|
8
|
-
t.string :project_post_url
|
9
|
-
t.string :project_post_status
|
10
|
-
|
11
|
-
t.string :optimization_id
|
12
|
-
|
13
|
-
t.string :slug
|
14
|
-
t.string :user_id
|
15
|
-
t.string :org_id
|
16
|
-
|
17
|
-
t.timestamps
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
1
|
+
class CreatePhcdevworksPortfolioProjectPosts < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_portfolio_project_posts do |t|
|
4
|
+
|
5
|
+
t.string :project_post_title
|
6
|
+
t.text :project_post_description
|
7
|
+
|
8
|
+
t.string :project_post_url
|
9
|
+
t.string :project_post_status
|
10
|
+
|
11
|
+
t.string :optimization_id
|
12
|
+
|
13
|
+
t.string :slug
|
14
|
+
t.string :user_id
|
15
|
+
t.string :org_id
|
16
|
+
|
17
|
+
t.timestamps
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -1,17 +1,17 @@
|
|
1
|
-
class CreatePhcdevworksPortfolioProjectTypes < ActiveRecord::Migration[
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_portfolio_project_types do |t|
|
4
|
-
|
5
|
-
t.string :project_type_name
|
6
|
-
|
7
|
-
t.string :optimization_id
|
8
|
-
|
9
|
-
t.string :slug
|
10
|
-
t.string :user_id
|
11
|
-
t.string :org_id
|
12
|
-
|
13
|
-
t.timestamps
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
1
|
+
class CreatePhcdevworksPortfolioProjectTypes < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_portfolio_project_types do |t|
|
4
|
+
|
5
|
+
t.string :project_type_name
|
6
|
+
|
7
|
+
t.string :optimization_id
|
8
|
+
|
9
|
+
t.string :slug
|
10
|
+
t.string :user_id
|
11
|
+
t.string :org_id
|
12
|
+
|
13
|
+
t.timestamps
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
class CreatePhcdevworksPortfolioProjectCategoriesPosts < ActiveRecord::Migration[
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_portfolio_project_categories_posts do |t|
|
4
|
-
|
5
|
-
t.integer :category_id
|
6
|
-
t.integer :post_id
|
7
|
-
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
1
|
+
class CreatePhcdevworksPortfolioProjectCategoriesPosts < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_portfolio_project_categories_posts do |t|
|
4
|
+
|
5
|
+
t.integer :category_id
|
6
|
+
t.integer :post_id
|
7
|
+
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -1,10 +1,10 @@
|
|
1
|
-
class CreatePhcdevworksPortfolioProjectPostsTypes < ActiveRecord::Migration[
|
2
|
-
def change
|
3
|
-
create_table :phcdevworks_portfolio_project_posts_types do |t|
|
4
|
-
|
5
|
-
t.integer :post_id
|
6
|
-
t.integer :type_id
|
7
|
-
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|
1
|
+
class CreatePhcdevworksPortfolioProjectPostsTypes < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
create_table :phcdevworks_portfolio_project_posts_types do |t|
|
4
|
+
|
5
|
+
t.integer :post_id
|
6
|
+
t.integer :type_id
|
7
|
+
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcdevworksPortfolioProjectPostVersions < ActiveRecord::Migration[
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
create_table :phcdevworks_portfolio_project_post_versions do |t|
|
5
|
-
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
add_index :phcdevworks_portfolio_project_post_versions, %i(item_type item_id), :name => 'project_post_versions'
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcdevworksPortfolioProjectPostVersions < ActiveRecord::Migration[7.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
create_table :phcdevworks_portfolio_project_post_versions do |t|
|
5
|
+
|
6
|
+
t.string :item_type, {:null=>false}
|
7
|
+
t.integer :item_id, null: false
|
8
|
+
t.string :event, null: false
|
9
|
+
t.string :whodunnit
|
10
|
+
t.text :object, limit: TEXT_BYTES
|
11
|
+
t.datetime :created_at
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
add_index :phcdevworks_portfolio_project_post_versions, %i(item_type item_id), :name => 'project_post_versions'
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CreatePhcdevworksPortfolioProjectTypeVersions < ActiveRecord::Migration[
|
2
|
-
TEXT_BYTES = 1_073_741_823
|
3
|
-
def change
|
4
|
-
create_table :phcdevworks_portfolio_project_type_versions do |t|
|
5
|
-
|
6
|
-
t.string :item_type, {:null=>false}
|
7
|
-
t.integer :item_id, null: false
|
8
|
-
t.string :event, null: false
|
9
|
-
t.string :whodunnit
|
10
|
-
t.text :object, limit: TEXT_BYTES
|
11
|
-
t.datetime :created_at
|
12
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
add_index :phcdevworks_portfolio_project_type_versions, %i(item_type item_id), :name => 'project_type_versions'
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
1
|
+
class CreatePhcdevworksPortfolioProjectTypeVersions < ActiveRecord::Migration[7.0]
|
2
|
+
TEXT_BYTES = 1_073_741_823
|
3
|
+
def change
|
4
|
+
create_table :phcdevworks_portfolio_project_type_versions do |t|
|
5
|
+
|
6
|
+
t.string :item_type, {:null=>false}
|
7
|
+
t.integer :item_id, null: false
|
8
|
+
t.string :event, null: false
|
9
|
+
t.string :whodunnit
|
10
|
+
t.text :object, limit: TEXT_BYTES
|
11
|
+
t.datetime :created_at
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
add_index :phcdevworks_portfolio_project_type_versions, %i(item_type item_id), :name => 'project_type_versions'
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -1,48 +1,47 @@
|
|
1
1
|
module PhcdevworksPortfolio
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
end
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
|
4
|
+
# Load Main Dependencies
|
5
|
+
require "jbuilder"
|
6
|
+
require "paper_trail"
|
7
|
+
require "friendly_id"
|
8
|
+
|
9
|
+
# Load Theme Dependencies
|
10
|
+
require "phcthemes_admin_panel_pack"
|
11
|
+
require "phcthemes_web_theme_pack"
|
12
|
+
|
13
|
+
# Load Helper Dependencies
|
14
|
+
require "phcdevworks_core"
|
15
|
+
require "phcdevworks_active_menus"
|
16
|
+
require "phcdevworks_notifications"
|
17
|
+
require "phcdevworks_titleseo"
|
18
|
+
|
19
|
+
# Load Upload Dependencies
|
20
|
+
require "aws-sdk-s3"
|
21
|
+
require "google-cloud-storage"
|
22
|
+
require "mini_magick"
|
23
|
+
|
24
|
+
# Frontend Dependencies
|
25
|
+
require "wicked"
|
26
|
+
require "gravtastic"
|
27
|
+
require "friendly_id"
|
28
|
+
|
29
|
+
# Mailer Dependencies
|
30
|
+
require "mail_form"
|
31
|
+
|
32
|
+
# PHCDevworks Plugins
|
33
|
+
require "phcdevworks_core_modules"
|
34
|
+
|
35
|
+
# Engine Namespace
|
36
|
+
isolate_namespace PhcdevworksPortfolio
|
37
|
+
|
38
|
+
# Rspec Generators
|
39
|
+
config.generators do |g|
|
40
|
+
g.test_framework :rspec
|
41
|
+
g.fixture_replacement :factory_bot
|
42
|
+
g.factory_bot dir: 'spec/factories'
|
43
|
+
g.factory_bot suffix: "factory"
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
48
47
|
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module PhcdevworksPortfolio
|
2
|
-
VERSION =
|
3
|
-
end
|
1
|
+
module PhcdevworksPortfolio
|
2
|
+
VERSION = "11.0.0"
|
3
|
+
end
|