phcscriptcdn 48.0.0 → 49.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -2
  3. data/app/assets/javascripts/phcscriptcdn/application.js +2 -2
  4. data/app/assets/stylesheets/phcscriptcdn/application.scss +2 -2
  5. data/app/controllers/phcscriptcdn/application_controller.rb +20 -10
  6. data/app/controllers/phcscriptcdn/script/authors_controller.rb +19 -8
  7. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +17 -6
  8. data/app/controllers/phcscriptcdn/script/licences_controller.rb +16 -5
  9. data/app/controllers/phcscriptcdn/script/listings_controller.rb +15 -6
  10. data/app/controllers/phcscriptcdn/script/urls_controller.rb +13 -4
  11. data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -4
  12. data/app/helpers/phcscriptcdn/application_helper.rb +0 -10
  13. data/app/helpers/phcscriptcdn/script/authors_helper.rb +4 -0
  14. data/app/helpers/phcscriptcdn/script/extensions_helper.rb +4 -0
  15. data/app/helpers/phcscriptcdn/script/licences_helper.rb +4 -0
  16. data/app/helpers/phcscriptcdn/script/listings_helper.rb +4 -0
  17. data/app/helpers/phcscriptcdn/script/urls_helper.rb +4 -0
  18. data/app/helpers/phcscriptcdn/script/versions_helper.rb +4 -0
  19. data/app/jobs/phcscriptcdn/application_job.rb +2 -2
  20. data/app/mailers/phcscriptcdn/application_mailer.rb +6 -0
  21. data/app/models/phcscriptcdn/application_record.rb +5 -3
  22. data/app/models/phcscriptcdn/script.rb +7 -5
  23. data/app/models/phcscriptcdn/script/author.rb +0 -7
  24. data/app/models/phcscriptcdn/script/listing.rb +3 -13
  25. data/app/models/phcscriptcdn/script/url.rb +2 -2
  26. data/app/models/phcscriptcdn/script/version.rb +1 -1
  27. data/app/views/layouts/phcscriptcdn/application.html.erb +64 -41
  28. data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +9 -4
  29. data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +78 -0
  30. data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +154 -0
  31. data/app/views/phcscriptcdn/script/authors/_form.html.erb +15 -20
  32. data/app/views/phcscriptcdn/script/authors/edit.html.erb +32 -32
  33. data/app/views/phcscriptcdn/script/authors/index.html.erb +50 -60
  34. data/app/views/phcscriptcdn/script/authors/new.html.erb +33 -32
  35. data/app/views/phcscriptcdn/script/authors/show.html.erb +42 -32
  36. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +13 -14
  37. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +32 -31
  38. data/app/views/phcscriptcdn/script/extensions/index.html.erb +45 -52
  39. data/app/views/phcscriptcdn/script/extensions/new.html.erb +31 -30
  40. data/app/views/phcscriptcdn/script/extensions/show.html.erb +41 -31
  41. data/app/views/phcscriptcdn/script/licences/_form.html.erb +21 -21
  42. data/app/views/phcscriptcdn/script/licences/edit.html.erb +31 -31
  43. data/app/views/phcscriptcdn/script/licences/index.html.erb +55 -62
  44. data/app/views/phcscriptcdn/script/licences/new.html.erb +31 -31
  45. data/app/views/phcscriptcdn/script/licences/show.html.erb +41 -31
  46. data/app/views/phcscriptcdn/script/listings/_form.html.erb +27 -28
  47. data/app/views/phcscriptcdn/script/listings/edit.html.erb +29 -30
  48. data/app/views/phcscriptcdn/script/listings/index.html.erb +45 -54
  49. data/app/views/phcscriptcdn/script/listings/new.html.erb +28 -30
  50. data/app/views/phcscriptcdn/script/listings/show.html.erb +38 -28
  51. data/app/views/phcscriptcdn/script/urls/_form.html.erb +13 -14
  52. data/app/views/phcscriptcdn/script/urls/edit.html.erb +17 -30
  53. data/app/views/phcscriptcdn/script/urls/index.html.erb +47 -54
  54. data/app/views/phcscriptcdn/script/urls/new.html.erb +31 -31
  55. data/app/views/phcscriptcdn/script/urls/show.html.erb +41 -30
  56. data/app/views/phcscriptcdn/script/versions/_form.html.erb +9 -10
  57. data/app/views/phcscriptcdn/script/versions/edit.html.erb +31 -31
  58. data/app/views/phcscriptcdn/script/versions/index.html.erb +43 -50
  59. data/app/views/phcscriptcdn/script/versions/new.html.erb +31 -31
  60. data/app/views/phcscriptcdn/script/versions/show.html.erb +41 -31
  61. data/config/routes.rb +19 -22
  62. data/db/migrate/{20160731205917_create_phcscriptcdn_script_listings.rb → 20160821183652_create_phcscriptcdn_script_listings.rb} +5 -6
  63. data/db/migrate/{20160731210723_create_phcscriptcdn_script_authors.rb → 20160821183714_create_phcscriptcdn_script_authors.rb} +1 -2
  64. data/db/migrate/{20160731205205_create_phcscriptcdn_script_extensions.rb → 20160821183735_create_phcscriptcdn_script_extensions.rb} +1 -1
  65. data/db/migrate/{20160801032225_create_phcscriptcdn_script_licences.rb → 20160821183805_create_phcscriptcdn_script_licences.rb} +1 -1
  66. data/db/migrate/{20160731210626_create_phcscriptcdn_script_urls.rb → 20160821183830_create_phcscriptcdn_script_urls.rb} +5 -5
  67. data/db/migrate/{20160731205954_create_phcscriptcdn_script_versions.rb → 20160821183946_create_phcscriptcdn_script_versions.rb} +1 -1
  68. data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +1 -0
  69. data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +1 -0
  70. data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -16
  71. data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +1 -0
  72. data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +1 -0
  73. data/lib/phcscriptcdn/engine.rb +6 -1
  74. data/lib/phcscriptcdn/version.rb +1 -1
  75. metadata +100 -116
  76. data/app/assets/javascripts/phcscriptcdn/frontend/listings.js +0 -2
  77. data/app/assets/stylesheets/phcscriptcdn/frontend/listings.scss +0 -3
  78. data/app/controllers/phcscriptcdn/frontend/listings_controller.rb +0 -20
  79. data/app/helpers/phcscriptcdn/frontend/listings_helper.rb +0 -4
  80. data/app/models/phcscriptcdn/frontend/listing.rb +0 -8
  81. data/app/views/layouts/phcscriptcdn/components/backend/navigation/_navigation.html.erb +0 -56
  82. data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb +0 -5
  83. data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar_links.html.erb +0 -0
  84. data/app/views/layouts/phcscriptcdn/frontend.html.erb +0 -22
  85. data/app/views/phcscriptcdn/frontend/listings/index.html.erb +0 -46
  86. data/app/views/phcscriptcdn/frontend/listings/show.html.erb +0 -59
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the frontend/listings controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,20 +0,0 @@
1
- require_dependency "phcscriptcdn/application_controller"
2
-
3
- module Phcscriptcdn
4
- class Frontend::ListingsController < ApplicationController
5
-
6
- # Change Layout
7
- layout '/layouts/phcscriptcdn/frontend.html.erb'
8
-
9
- # Script Listing Index
10
- def index
11
- @script_listings_index = Script::Listing.all
12
- end
13
-
14
- # Script Listing Post
15
- def show
16
- @script_listings_single = Script::Listing.friendly.find(params[:id])
17
- end
18
-
19
- end
20
- end
@@ -1,4 +0,0 @@
1
- module Phcscriptcdn
2
- module Frontend::ListingsHelper
3
- end
4
- end
@@ -1,8 +0,0 @@
1
- module Phcscriptcdn
2
- class Frontend::Listing < ApplicationRecord
3
-
4
- # Clean URL Initialize
5
- extend FriendlyId
6
-
7
- end
8
- end
@@ -1,56 +0,0 @@
1
- <section class="sidebar">
2
- <ul class="sidebar-menu">
3
- <li class="<%= is_active_controller('phcscriptcdn/script/listings') %> treeview">
4
- <%= link_to "#" do %>
5
- <i class="fa fa-code"></i> <span>Script Listings</span>
6
- <span class="fa arrow"></span>
7
- <% end %>
8
- <ul class="treeview-menu">
9
- <li class="<%= is_active_controller('phcscriptcdn/script/listings') %>">
10
- <%= link_to script_listings_path do %>
11
- <i class="fa fa-circle-o"></i>
12
- All Script Listings
13
- <% end %>
14
- </li>
15
- <li class="<%= is_active_controller('phcscriptcdn/script/listings#new') %>">
16
- <%= link_to new_script_listing_path do %>
17
- <i class="fa fa-circle-o"></i>
18
- Add a New Listing
19
- <% end %>
20
- </li>
21
- </ul>
22
- </li>
23
- <li class="phcscriptcdn/script/authors') %> <%= is_active_controller('phcscriptcdn/script/licences') %> <%= is_active_controller('phcscriptcdn/script/extensions') %> <%= is_active_controller('phcscriptcdn/script/versions') %> treeview">
24
- <%= link_to "#" do %>
25
- <i class="fa fa-code"></i> <span>Script CDN Modules</span>
26
- <span class="fa arrow"></span>
27
- <% end %>
28
- <ul class="treeview-menu">
29
- <li class="<%= is_active_controller('phcscriptcdn/script/authors') %>">
30
- <%= link_to script_authors_path do %>
31
- <i class="fa fa-circle-o"></i>
32
- Script Authors
33
- <% end %>
34
- </li>
35
- <li class="<%= is_active_controller('phcscriptcdn/script/licences') %>">
36
- <%= link_to script_licences_path do %>
37
- <i class="fa fa-circle-o"></i>
38
- Script Licences
39
- <% end %>
40
- </li>
41
- <li class="<%= is_active_controller('phcscriptcdn/script/extensions') %>">
42
- <%= link_to script_extensions_path do %>
43
- <i class="fa fa-circle-o"></i>
44
- Script Extensions
45
- <% end %>
46
- </li>
47
- <li class="<%= is_active_controller('phcscriptcdn/script/versions') %>">
48
- <%= link_to script_versions_path do %>
49
- <i class="fa fa-circle-o"></i>
50
- Script Versions
51
- <% end %>
52
- </li>
53
- </ul>
54
- </li>
55
- </ul>
56
- </section>
@@ -1,5 +0,0 @@
1
- <!-- Mobile Toggle -->
2
- <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
3
- <span class="sr-only">Toggle navigation</span>
4
- </a>
5
- <!-- Mobile Toggle -->
@@ -1,22 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
-
6
- <title>PHCScriptCDN - Script Listing Manager</title>
7
-
8
- <%= stylesheet_link_tag "phcscriptcdn/application", media: "all" %>
9
- <%= javascript_include_tag "phcscriptcdn/application" %>
10
- <%= csrf_meta_tags %>
11
-
12
- </head>
13
-
14
- <body>
15
- <div class="container">
16
- <div class="row">
17
- <%= yield %>
18
- </div>
19
- </div>
20
- </body>
21
-
22
- </html>
@@ -1,46 +0,0 @@
1
- <!-- Title System -->
2
- <% phc_title "PHCNetworks Script CDN" %>
3
- <% phc_title_tagline "Global Script Delivery Network" %>
4
- <!-- Title System -->
5
-
6
- <!-- Page Content -->
7
- <section>
8
- <div class="container">
9
- <div class="row">
10
-
11
- <!-- Left Sidebar -->
12
- <div class="col-md-3 col-sm-3">
13
- </div>
14
- <!-- Left Sidebar -->
15
-
16
- <!-- Script CDN List -->
17
- <div class="col-md-9 col-sm-9">
18
-
19
- <% @script_listings_index.each do |script_listings_index| %>
20
- <div class="blog-post-item">
21
- <h2><%= link_to script_listings_index.scripttitle, phcscriptcdn.frontend_listing_path(script_listings_index) %> <small></small></h2>
22
- <ul class="blog-post-info list-inline">
23
- <li>
24
- <%= link_to "#" do %>
25
- <i class="fa fa-clock-o"></i>
26
- <span class="font-lato"><%= script_listings_index.created_at %></span>
27
- <% end %>
28
- </li>
29
- <li>
30
- <%= link_to "#" do %>
31
- <i class="fa fa-user"></i>
32
- <span class="font-lato">Posted By - <%= script_listings_index.user_name %></span>
33
- <% end %>
34
- </li>
35
- </ul>
36
- <div></div>
37
- </div>
38
- <% end %>
39
-
40
- </div>
41
- <!-- Script CDN List -->
42
-
43
- </div>
44
- </div>
45
- </section>
46
- <!-- Page Content -->
@@ -1,59 +0,0 @@
1
- <!-- Title System -->
2
- <% phc_title @script_listings_single.scripttitle + " CDN" %>
3
- <% phc_title_tagline "Global Script Delivery Network" %>
4
- <!-- Title System -->
5
-
6
- <section>
7
- <div class="container">
8
- <div class="row">
9
-
10
- <!-- Script Listing -->
11
- <div class="col-md-9 col-sm-9">
12
-
13
- <h1 class="blog-post-title"><%= @script_listings_single.scripttitle %> <small></small></h1>
14
- <ul class="blog-post-info list-inline">
15
- <li>
16
- <%= link_to "#" do %>
17
- <i class="fa fa-clock-o"></i>
18
- <span class="font-lato"><%= @script_listings_single.created_at %></span>
19
- <% end %>
20
- </li>
21
- <li>
22
- <i class="fa fa-folder-open-o"></i>
23
- <% @script_listings_single.urls.extensions.each do |script_listing_url_extensions| %>
24
- <%= link_to "#" do %>
25
- <span class="font-lato"><%= script_listing_url_extensions.scriptextensionname %></span>
26
- <% end %>
27
- <% end %>
28
- </li>
29
- <li>
30
- <%= link_to "#" do %>
31
- <i class="fa fa-user"></i>
32
- <span class="font-lato">Posted By - <%= @script_listings_single.user_name %></span>
33
- <% end %>
34
- </li>
35
- </ul>
36
- <div>
37
- <%= @script_listings_single.scriptdescription.html_safe %>
38
- <p><small>Source: <i><%= @script_listings_single.descriptionsource %></i></small></p>
39
- </div>
40
- <br/>
41
- <div>
42
- <!-- Script Urls -->
43
- <% @script_listings_single.urls.each do |script_listing_urls| %>
44
- <input id="cdn_copy_trgt" type="text" class="form-control" value="<%= script_listing_urls.scripturl %>">
45
- <% end %>
46
- <!-- Script Urls -->
47
- </div>
48
- </div>
49
- <!-- Script Listing -->
50
-
51
- <!-- Right Sidebar -->
52
- <div class="col-md-3 col-sm-3">
53
- </div>
54
- <!-- Right Sidebar -->
55
-
56
- </div>
57
- </div>
58
- </section>
59
- <!-- Page Content -->