phcdevworks_portfolio 10.1.1 → 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 -349
- 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 -14
- 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 -45
- 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,131 +1,73 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
<head>
|
3
|
+
<head>
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCDevworks Portfolio" %>
|
7
|
+
<% phc_seo_description "Show your work to the world with PHCDevworks Portfolio. Our open-source Ruby on Rails 7 engine allows you to easily manage a portfolio of projects and creative projects. List items individually with URLs to the individual projects and descriptions." %>
|
8
|
+
<!-- SEO System -->
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
+
<!-- SEO and Site Description -->
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
<!-- Rails Security Tags -->
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<!-- Rails Security Tags -->
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
<!-- CSS Styles -->
|
23
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
24
|
+
<%= stylesheet_link_tag "coloradmin/default/phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
25
|
+
<!-- CSS Styles -->
|
25
26
|
|
26
|
-
|
27
|
-
|
28
|
-
<!-- JavaScript -->
|
27
|
+
</head>
|
28
|
+
<body>
|
29
29
|
|
30
|
-
|
31
|
-
<
|
30
|
+
<!-- -PHCDEV- Page Container -->
|
31
|
+
<div id="app" class="app app-header-fixed app-sidebar-fixed app-with-wide-sidebar">
|
32
32
|
|
33
|
-
|
34
|
-
|
33
|
+
<!-- -PHCDEV- Page Container - Header -->
|
34
|
+
<div id="header" class="app-header">
|
35
|
+
<%= render "layouts/phcdevworks_portfolio/components/backend/navigation/top_menu" %>
|
36
|
+
</div>
|
37
|
+
<!-- -PHCDEV- Page Container - Header -->
|
35
38
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
39
|
+
<!-- -PHCDEV- Page Container - Sidebar -->
|
40
|
+
<div id="sidebar" class="app-sidebar" data-disable-slide-animation="true">
|
41
|
+
<%= render "layouts/phcdevworks_portfolio/components/backend/sidebars/side_menu" %>
|
42
|
+
</div>
|
43
|
+
<div class="app-sidebar-bg"></div>
|
44
|
+
<div class="app-sidebar-mobile-backdrop"><a href="#" data-dismiss="app-sidebar-mobile" class="stretched-link"></a></div>
|
45
|
+
<!-- -PHCDEV- Page Container - Sidebar -->
|
41
46
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
47
|
+
<!-- -PHCDEV- Page Container - Content -->
|
48
|
+
<div id="app" class="app app-content-full-height">
|
49
|
+
<div id="content" class="app-content d-flex flex-column p-0">
|
50
|
+
<!-- -PHCDEV- Page Container - Main -->
|
51
|
+
<div class="app-content-padding flex-grow-1 overflow-hidden" data-scrollbar="true" data-height="100%">
|
52
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
53
|
+
<%= yield %>
|
54
|
+
</div>
|
55
|
+
<!-- -PHCDEV- Page Container - Main -->
|
56
|
+
<!-- -PHCDEV- Page Container - Footer -->
|
57
|
+
<div id="footer" class="app-footer m-0">
|
58
|
+
<%= render "layouts/phcdevworks_portfolio/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- -PHCDEV- Page Container - Footer -->
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<!-- -PHCDEV- Page Container - Content -->
|
48
64
|
|
49
|
-
|
50
|
-
|
51
|
-
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
-
<%= yield %>
|
53
|
-
</div>
|
54
|
-
<!-- Page Content -->
|
65
|
+
</div>
|
66
|
+
<!-- -PHCDEV- Page Container -->
|
55
67
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
</div>
|
60
|
-
<!-- Footer Content -->
|
68
|
+
<!-- JavaScript -->
|
69
|
+
<%= javascript_include_tag "coloradmin/phcthemes_admin_panel_pack_coloradmin" %>
|
70
|
+
<!-- JavaScript -->
|
61
71
|
|
62
|
-
|
63
|
-
<!-- Page Container -->
|
64
|
-
|
65
|
-
<!-- JavaScript CKEditor -->
|
66
|
-
<script>ClassicEditor
|
67
|
-
.create( document.querySelector( '.editor' ), {
|
68
|
-
toolbar: {
|
69
|
-
items: [
|
70
|
-
'heading',
|
71
|
-
'|',
|
72
|
-
'fontBackgroundColor',
|
73
|
-
'fontColor',
|
74
|
-
'horizontalLine',
|
75
|
-
'fontSize',
|
76
|
-
'fontFamily',
|
77
|
-
'highlight',
|
78
|
-
'|',
|
79
|
-
'bold',
|
80
|
-
'underline',
|
81
|
-
'italic',
|
82
|
-
'strikethrough',
|
83
|
-
'link',
|
84
|
-
'removeFormat',
|
85
|
-
'|',
|
86
|
-
'alignment',
|
87
|
-
'indent',
|
88
|
-
'outdent',
|
89
|
-
'|',
|
90
|
-
'blockQuote',
|
91
|
-
'insertTable',
|
92
|
-
'undo',
|
93
|
-
'redo',
|
94
|
-
'|',
|
95
|
-
'subscript',
|
96
|
-
'superscript',
|
97
|
-
'|',
|
98
|
-
'codeBlock',
|
99
|
-
'code',
|
100
|
-
'|',
|
101
|
-
'MathType',
|
102
|
-
'ChemType',
|
103
|
-
'specialCharacters'
|
104
|
-
]
|
105
|
-
},
|
106
|
-
language: 'en',
|
107
|
-
table: {
|
108
|
-
contentToolbar: [
|
109
|
-
'tableColumn',
|
110
|
-
'tableRow',
|
111
|
-
'mergeTableCells',
|
112
|
-
'tableCellProperties',
|
113
|
-
'tableProperties'
|
114
|
-
]
|
115
|
-
},
|
116
|
-
licenseKey: '',
|
117
|
-
} )
|
118
|
-
.then( editor => {
|
119
|
-
window.editor = editor;
|
120
|
-
} )
|
121
|
-
.catch( error => {
|
122
|
-
console.error( 'Oops, something gone wrong!' );
|
123
|
-
console.error( 'Please, report the following error in the https://github.com/ckeditor/ckeditor5 with the build id and the error stack trace:' );
|
124
|
-
console.warn( 'Build id: ulhl6ym1zxhr-qh8kt6relt0l' );
|
125
|
-
console.error( error );
|
126
|
-
} );
|
127
|
-
</script>
|
128
|
-
<!-- JavaScript CKEditor -->
|
129
|
-
|
130
|
-
</body>
|
72
|
+
</body>
|
131
73
|
</html>
|
@@ -1,16 +1,17 @@
|
|
1
|
-
<!--
|
1
|
+
<!-- -PHCDEV- Page Container - Footer - Left -->
|
2
2
|
<span>
|
3
|
-
<!--
|
3
|
+
<!-- -PHCDEV- Page Container - Footer - Left - Copyright -->
|
4
4
|
<i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
|
5
|
-
<span class="
|
6
|
-
|
7
|
-
<!-- Footer Content - Left - Time in Production -->
|
5
|
+
<span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span> Portfolio v<%= Gem.loaded_specs["phcdevworks_portfolio"].version.to_s %>
|
6
|
+
<!-- -PHCDEV- Page Container - Footer - Left - Copyright -->
|
8
7
|
</span>
|
9
|
-
<!--
|
8
|
+
<!-- -PHCDEV- Page Container - Footer - Left -->
|
10
9
|
|
11
|
-
<!--
|
10
|
+
<!-- -PHCDEV- Page Container - Footer - Right -->
|
12
11
|
<span class="float-right">
|
12
|
+
<!-- -PHCDEV- Page Container - Footer - Right - Developed -->
|
13
13
|
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
14
|
-
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="
|
14
|
+
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span></u></a>
|
15
|
+
<!-- -PHCDEV- Page Container - Footer - Right - Developed -->
|
15
16
|
</span>
|
16
|
-
<!--
|
17
|
+
<!-- -PHCDEV- Page Container - Footer - Right -->
|
data/app/views/layouts/phcdevworks_portfolio/components/backend/navigation/_top_menu.html.erb
CHANGED
@@ -1,40 +1,41 @@
|
|
1
|
-
<!-- -
|
1
|
+
<!-- -PHCDEV- Topbar - Navigation Header -->
|
2
2
|
<div class="navbar-header">
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<button type="button" class="navbar-toggle" data-click="sidebar-toggled">
|
9
|
-
<span class="icon-bar"></span>
|
10
|
-
<span class="icon-bar"></span>
|
11
|
-
<span class="icon-bar"></span>
|
4
|
+
<button type="button" class="navbar-mobile-toggler" data-toggle="app-sidebar-mobile">
|
5
|
+
<span class="icon-bar"></span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
12
8
|
</button>
|
13
9
|
|
10
|
+
<%= link_to phcdevworks_accounts_devise.user_path, class: "navbar-brand" do %>
|
11
|
+
<span class="phc_dev_strong_plugin_logo">PHC</span><span class="phc_dev_light_plugin_logo">Devworks</span>
|
12
|
+
<% end %>
|
13
|
+
|
14
14
|
</div>
|
15
|
-
<!-- -
|
15
|
+
<!-- -PHCDEV- Topbar - Navigation Header -->
|
16
16
|
|
17
|
-
<!-- -
|
17
|
+
<!-- -PHCDEV- Topbar - Navigation Main -->
|
18
18
|
<% if current_user %>
|
19
|
-
<
|
20
|
-
|
21
|
-
|
22
|
-
<li class="dropdown navbar-user">
|
23
|
-
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
19
|
+
<div class="navbar-nav">
|
20
|
+
<div class="navbar-item navbar-user dropdown">
|
21
|
+
<a href="#" class="navbar-link dropdown-toggle d-flex align-items-center" data-bs-toggle="dropdown">
|
24
22
|
<%= image_tag current_user.gravatar_url %>
|
25
|
-
<span
|
23
|
+
<span>
|
24
|
+
<span class="d-none d-md-inline"><%= current_user.firstname + " " + current_user.lastname %></span>
|
25
|
+
<b class="caret"></b>
|
26
|
+
</span>
|
26
27
|
</a>
|
27
|
-
<div class="dropdown-menu dropdown-menu-
|
28
|
-
<%= link_to
|
28
|
+
<div class="dropdown-menu dropdown-menu-end me-1">
|
29
|
+
<%= link_to phcdevworks_accounts_devise.edit_user_registration_path, class: "dropdown-item" do %>
|
29
30
|
<i class="fad fa-cogs"></i> Account Settings
|
30
31
|
<% end %>
|
31
|
-
<%= link_to
|
32
|
+
<%= link_to phcdevworks_accounts_devise.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
|
32
33
|
<i class="fad fa-sign-out-alt"></i> Logout
|
33
34
|
<% end %>
|
34
35
|
</div>
|
35
|
-
</
|
36
|
-
|
37
|
-
|
38
|
-
</ul>
|
36
|
+
</div>
|
37
|
+
</div>
|
39
38
|
<% end %>
|
40
|
-
|
39
|
+
|
40
|
+
</div>
|
41
|
+
<!-- -PHCDEV- Topbar - Navigation Main -->
|