phcscriptcdnpro 65.0.0 → 66.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07cc75bafff0cb18626755a3f0720e6400be8f5d50f6312bd290fe14504e0b75
4
- data.tar.gz: 486898d0ecb05526ab444a0fd5cce8d031aa5eff6b3af3672e9833b2f08debb5
3
+ metadata.gz: '09c8decc13ec44812f3ba08da4a130dbf55ac546cd46f8bbeb343f5abc593c4f'
4
+ data.tar.gz: 7dd8b56ee20b56056330b911b6685589309835da059a549ffe5d23a6fe4dfc84
5
5
  SHA512:
6
- metadata.gz: 8a8adbc6ff18903451f511a67242bc41e184d9c0accdde7dc094d486d900a2ddafbf90aa69ad6a0ffcf10c004d2fd6cf8d4b4fd6c38392d64eb3707901762493
7
- data.tar.gz: 0e71a6ef0f7dbf53200f072295e21d2c3a18f45d197eab91755bc6b63eb0b0e81f377b4917b6c20be8965d7b6a8f362e5c3c030908303637037b43dd5b4077ef
6
+ metadata.gz: 87871349588850503c72f5eb1dc96e4f35d7d0c8120425baaa497ace6dab1084474b1b614f9393d9385db3b6c8ac0dff81c640ae289292e00b376f5bfe3d80ba
7
+ data.tar.gz: 769d9795daea9b233ecce5da2df84cf7849d3af65f93bab03fde86b145648b27183df44c0f069eb5c27f0887fb8edf511d91ad6e3adc9361e2b29e57b75a0185
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2015-2019 PHCNetco PHCDevworks BradPotts
1
+ Copyright 2012-2019 BradPotts - PHCNetco/PHCDevworks/PHCNetworks
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,2 +1,2 @@
1
1
  // Load Admin Theme
2
- @import "phc_admin_theme_styles_four";
2
+ @import "phc_admin_theme_styles_four";
@@ -8,7 +8,7 @@ module Phcscriptcdnpro
8
8
  helper Phctitleseo::Engine.helpers
9
9
  helper Phcnotifi::Engine.helpers
10
10
  helper Phcaccountspro::Engine.helpers
11
-
11
+
12
12
  # Papertrail Whodunnit Username
13
13
  def user_for_paper_trail
14
14
  current_user ? current_user.username : 'Public user'
@@ -2,24 +2,29 @@
2
2
  <html>
3
3
  <head>
4
4
 
5
- <% phc_seo_title "PHCScriptCDN(Pro) Script Listings" %>
6
- <% phc_seo_description "Conent Management System for ScriptCDNs" %>
5
+ <% phc_seo_title "PHCScriptCDN(Pro) CDNMS" %>
6
+ <% phc_seo_description "Script CDN Listings Management System by PHCDevworks" %>
7
7
 
8
+ <!-- -PHC- SEO and Site Description -->
8
9
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
10
  <title><%= yield(:phc_seo_title) %></title>
10
11
  <meta name="description" content="<%= yield(:phc_seo_description) %>">
11
-
12
12
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
13
13
  <link rel="canonical" href="http://phcmembers.com">
14
+ <!-- -PHC- SEO and Site Description -->
15
+
16
+ <!-- -PHC- Security -->
17
+ <%= csrf_meta_tags %>
18
+ <%= csp_meta_tag %>
19
+ <!-- -PHC- Security -->
20
+
21
+ <!-- -PHC- CSS -->
22
+ <%= stylesheet_link_tag 'phcscriptcdnpro/application', media: 'all', 'data-turbolinks-track': 'reload' %>
23
+ <!-- -PHC- CSS -->
14
24
 
15
25
  <!-- Font -->
16
26
  <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
17
-
18
- <!-- Requried Style Sheets -->
19
- <%= stylesheet_link_tag "phcscriptcdnpro/application", media: "all", 'data-turbolinks-track': 'reload' %>
20
-
21
- <!-- Security -->
22
- <%= csrf_meta_tags %>
27
+ <!-- Font -->
23
28
 
24
29
  </head>
25
30
  <body>
@@ -1,7 +1,6 @@
1
- <!-- Topbar - Navigation -->
2
1
  <!-- Topbar - Navigation Header -->
3
2
  <div class="navbar-header">
4
- <%= link_to phcaccountspro.welcome_status_page_path, class: "navbar-brand" do %>
3
+ <%= link_to phcscriptcdnpro.script_listings_path, class: "navbar-brand" do %>
5
4
  <!--<span class="navbar-logo"></span>-->
6
5
  <strong>PHC</strong>ScriptCDN(Pro)
7
6
  <% end %>
@@ -1,8 +1,9 @@
1
- <!-- Sidebar -->
1
+ <!-- Sidebar for Users and Admin -->
2
2
  <div data-scrollbar="true" data-height="100%">
3
- <% if current_user %>
4
- <!-- Sidebar - User Profile Menu -->
5
- <ul class="nav">
3
+
4
+ <!-- Sidebar - User Profile Menu -->
5
+ <ul class="nav">
6
+ <% if current_user %>
6
7
  <li class="nav-profile">
7
8
  <a href="javascript:;" data-toggle="nav-profile">
8
9
  <div class="cover with-shadow"></div>
@@ -30,12 +31,99 @@
30
31
  </li>
31
32
  </ul>
32
33
  </li>
33
- </ul>
34
- <!-- Sidebar - User Profile Menu -->
35
- <!-- Sidebar - Sidebar Navigation -->
36
- <ul class="nav">
34
+ <% end %>
35
+ <% if current_admin %>
36
+ <li class="nav-profile">
37
+ <a href="javascript:;" data-toggle="nav-profile">
38
+ <div class="cover with-shadow"></div>
39
+ <div class="image">
40
+ <%= image_tag current_admin.gravatar_url %>
41
+ </div>
42
+ <div class="info">
43
+ <b class="caret pull-right"></b>
44
+ <%= current_admin.firstname + ' ' + current_admin.lastname %>
45
+ <small><%= current_admin.username %></small>
46
+ </div>
47
+ </a>
48
+ </li>
49
+ <li>
50
+ <ul class="nav nav-profile">
51
+ <li>
52
+ <%= link_to phcaccountspro.edit_admin_registration_path do %>
53
+ <i class="fas fa-cogs"></i> Account Settings
54
+ <% end %>
55
+ </li>
56
+ <li>
57
+ <%= link_to phcaccountspro.destroy_admin_session_path do %>
58
+ <i class="fas fa-sign-out-alt"></i> Logout
59
+ <% end %>
60
+ </li>
61
+ </ul>
62
+ </li>
63
+ <% end %>
64
+ </ul>
65
+ <!-- Sidebar - User Profile Menu -->
66
+ <!-- Sidebar - Sidebar Navigation -->
67
+ <ul class="nav">
68
+
69
+ <% if defined?phcpresspro %>
70
+ <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
71
+ <li class="nav-header">Article Management</li>
72
+ <li class="has-sub">
73
+ <a href="javascript:;">
74
+ <b class="caret"></b>
75
+ <i class="fas fa-newspaper"></i>
76
+ <span>Article Posts</span>
77
+ </a>
78
+ <ul class="sub-menu">
79
+ <li class="<%= is_active_controller('phcpresspro/article/posts') %>"><%= link_to('Article Index', phcpresspro.article_posts_path) %></li>
80
+ <li class="<%= is_active_controller('phcpresspro/article/posts#new') %>"><%= link_to('New Aritcle', phcpresspro.new_article_post_path) %></li>
81
+ </ul>
82
+ </li>
83
+ <li class="has-sub">
84
+ <a href="javascript:;">
85
+ <b class="caret"></b>
86
+ <i class="fas fa-sitemap"></i>
87
+ <span>Article Categories</span>
88
+ </a>
89
+ <ul class="sub-menu">
90
+ <li class="<%= is_active_controller('phcpresspro/article/categories') %>"><%= link_to('Category Index', phcpresspro.article_categories_path) %></li>
91
+ <li class="<%= is_active_controller('phcpresspro/article/categories#new') %>"><%= link_to('New Category', phcpresspro.new_article_category_path) %></li>
92
+ </ul>
93
+ </li>
94
+ <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
95
+ <% end %>
96
+
97
+ <% if defined?phcmemberspro %>
98
+ <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
99
+ <li class="nav-header">Membership Manager</li>
100
+ <li class="has-sub">
101
+ <a href="javascript:;">
102
+ <b class="caret"></b>
103
+ <i class="fas fa-users"></i>
104
+ <span>Member's Data</span>
105
+ </a>
106
+ <ul class="sub-menu">
107
+ <li class="<%= is_active_controller('phcmemberspro/member/profiles') %>"><%= link_to('Profile Index', phcmemberspro.member_profiles_path) %></li>
108
+ <li class="<%= is_active_controller('phcmemberspro/member/profiles#new') %>"><%= link_to('New Member Profile', phcmemberspro.new_member_profile_path) %></li>
109
+ </ul>
110
+ </li>
111
+ <li class="has-sub">
112
+ <a href="javascript:;">
113
+ <b class="caret"></b>
114
+ <i class="fas fa-list-alt"></i>
115
+ <span>Member's Directory</span>
116
+ </a>
117
+ <ul class="sub-menu">
118
+ <li class="<%= is_active_controller('phcmemberspro/directory/categories') %>"><%= link_to('Directory Index', phcmemberspro.directory_categories_path) %></li>
119
+ <li class="<%= is_active_controller('phcmemberspro/directory/categories#new') %>"><%= link_to('New Directory Listing', phcmemberspro.new_directory_category_path) %></li>
120
+ </ul>
121
+ </li>
122
+ <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
123
+ <% end %>
37
124
 
38
- <!-- Sidebar - Sidebar Navigation - PHCPressPro -->
125
+ <% if defined?phcscriptcdnpro %>
126
+ <!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
39
127
  <li class="nav-header">Script Management</li>
40
128
  <li class="has-sub">
41
129
  <a href="javascript:;">
@@ -45,7 +133,7 @@
45
133
  </a>
46
134
  <ul class="sub-menu">
47
135
  <li class="<%= is_active_controller('phcscriptcdnpro/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdnpro.script_listings_path %></li>
48
- <li class="<%= is_active_controller('phcscriptcdnpro/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdnpro.new_script_listing_path %></li>
136
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdnpro.new_script_listing_path %></li>
49
137
  </ul>
50
138
  </li>
51
139
  <li class="has-sub">
@@ -55,24 +143,27 @@
55
143
  <span>Script Extras</span>
56
144
  </a>
57
145
  <ul class="sub-menu">
58
- <li class="<%= is_active_controller('phcscriptcdnpro/script/authors') %>"><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
59
- <li class="<%= is_active_controller('phcscriptcdnpro/script/licences') %>"><%= link_to "Script Licences", phcscriptcdnpro.script_licences_path %></li>
60
- <li class="<%= is_active_controller('phcscriptcdnpro/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
146
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/authors') %>"><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
147
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/licences') %>"><%= link_to "Script Licences", phcscriptcdnpro.script_licences_path %></li>
148
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
61
149
  <li class="<%= is_active_controller('phcscriptcdnpro/script/versions') %>"><%= link_to "Script Versions", phcscriptcdnpro.script_versions_path %></li>
62
150
  </ul>
63
151
  </li>
64
- <!-- Sidebar - Sidebar Navigation - PHCPressPro -->
152
+ <!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
153
+ <% end %>
154
+
155
+ <% if current_admin %>
65
156
  <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
66
- <li class="nav-header">Account Settings</li>
157
+ <li class="nav-header">Admin Settings</li>
67
158
  <li class="has-sub">
68
159
  <a href="javascript:;">
69
160
  <b class="caret"></b>
70
161
  <i class="fas fa-user"></i>
71
- <span>Accounts Dashboard</span>
162
+ <span>Admin Dashboard</span>
72
163
  </a>
73
164
  <ul class="sub-menu">
74
- <li><%= link_to('Settings', phcaccountspro.edit_user_registration_path) %></li>
75
- <li><%= link_to('Logout', phcaccountspro.destroy_user_session_path, method: :delete) %></li>
165
+ <li class="<%= is_active_controller('phcaccountspro/user/edit') %>"><%= link_to('Settings', phcaccountspro.edit_admin_registration_path) %></li>
166
+ <li class="<%= is_active_controller('phcaccountspro/user/edit') %>"><%= link_to('Logout', phcaccountspro.destroy_admin_session_path, method: :delete) %></li>
76
167
  </ul>
77
168
  </li>
78
169
  <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
@@ -83,55 +174,23 @@
83
174
  </a>
84
175
  </li>
85
176
  <!-- Sidebar - Sidebar Minifier -->
86
- </ul>
87
- <!-- Sidebar - Sidebar Navigation -->
88
- <% end %>
89
- <% if current_admin %>
90
- <!-- Sidebar - User Profile Menu -->
91
- <ul class="nav">
92
- <li class="nav-profile">
93
- <a href="javascript:;" data-toggle="nav-profile">
94
- <div class="cover with-shadow"></div>
95
- <div class="image">
96
- <%= image_tag current_admin.gravatar_url %>
97
- </div>
98
- <div class="info">
99
- <b class="caret pull-right"></b>
100
- <%= current_admin.firstname + ' ' + current_admin.lastname %>
101
- <small><%= current_admin.username %></small>
102
- </div>
103
- </a>
104
- </li>
105
- <li>
106
- <ul class="nav nav-profile">
107
- <li>
108
- <%= link_to phcaccountspro.edit_admin_registration_path do %>
109
- <i class="fas fa-cogs"></i> Account Settings
110
- <% end %>
111
- </li>
112
- <li>
113
- <%= link_to phcaccountspro.destroy_admin_session_path do %>
114
- <i class="fas fa-sign-out-alt"></i> Logout
115
- <% end %>
116
- </li>
117
- </ul>
118
- </li>
119
- </ul>
120
- <!-- Sidebar - User Profile Menu -->
121
- <!-- Sidebar - Sidebar Navigation -->
122
- <ul class="nav">
123
- <li class="nav-header">Accounts Menu</li>
177
+ <% end %>
178
+
179
+ <% if current_user %>
180
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
181
+ <li class="nav-header">Account Settings</li>
124
182
  <li class="has-sub">
125
183
  <a href="javascript:;">
126
184
  <b class="caret"></b>
127
- <i class="fa fa-th-large"></i>
185
+ <i class="fas fa-user"></i>
128
186
  <span>Accounts Dashboard</span>
129
187
  </a>
130
188
  <ul class="sub-menu">
131
- <li><%= link_to('Settings', phcaccountspro.edit_admin_registration_path) %></li>
132
- <li><%= link_to('Logout', phcaccountspro.destroy_admin_session_path, method: :delete) %></li>
189
+ <li class="<%= is_active_controller('phcaccountspro/admin/edit') %>"><%= link_to('Settings', phcaccountspro.edit_user_registration_path) %></li>
190
+ <li class="<%= is_active_controller('phcaccountspro/admin/new') %>"><%= link_to('Logout', phcaccountspro.destroy_user_session_path, method: :delete) %></li>
133
191
  </ul>
134
192
  </li>
193
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
135
194
  <!-- Sidebar - Sidebar Minifier -->
136
195
  <li>
137
196
  <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
@@ -139,8 +198,10 @@
139
198
  </a>
140
199
  </li>
141
200
  <!-- Sidebar - Sidebar Minifier -->
142
- </ul>
143
- <!-- Sidebar - Sidebar Navigation -->
144
- <% end %>
201
+ <% end %>
202
+
203
+ </ul>
204
+ <!-- Sidebar - Sidebar Navigation -->
205
+
145
206
  </div>
146
- <!-- Sidebar -->
207
+ <!-- Sidebar for Users and Admin -->
data/config/routes.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  Phcscriptcdnpro::Engine.routes.draw do
2
2
 
3
- # Add Accounts and Logins
4
- mount Phcaccountspro::Engine => "/"
3
+ # Mount Accounts Engine
4
+ mount Phcaccountspro::Engine, :at => '/'
5
5
 
6
- # Application Routes
6
+ # Application Scripts
7
7
  namespace :script do
8
8
  # Main Script Module
9
9
  resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do
@@ -55,6 +55,7 @@ module Phcscriptcdnpro
55
55
 
56
56
  # Load Requried Helper Files
57
57
  config.to_prepare do
58
+ Phcaccountspro::ApplicationController.helper(ApplicationHelper)
58
59
  Phcnotifi::ApplicationController.helper(ApplicationHelper)
59
60
  Phctitleseo::ApplicationController.helper(ApplicationHelper)
60
61
  end
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "65.0.0"
2
+ VERSION = "66.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcscriptcdnpro
3
3
  version: !ruby/object:Gem::Version
4
- version: 65.0.0
4
+ version: 66.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-17 00:00:00.000000000 Z
11
+ date: 2019-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -428,14 +428,14 @@ dependencies:
428
428
  requirements:
429
429
  - - "~>"
430
430
  - !ruby/object:Gem::Version
431
- version: '58.1'
431
+ version: '59.0'
432
432
  type: :runtime
433
433
  prerelease: false
434
434
  version_requirements: !ruby/object:Gem::Requirement
435
435
  requirements:
436
436
  - - "~>"
437
437
  - !ruby/object:Gem::Version
438
- version: '58.1'
438
+ version: '59.0'
439
439
  - !ruby/object:Gem::Dependency
440
440
  name: sqlite3
441
441
  requirement: !ruby/object:Gem::Requirement