phcscriptcdn 48.0.0 → 49.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/app/assets/javascripts/phcscriptcdn/application.js +2 -2
- data/app/assets/stylesheets/phcscriptcdn/application.scss +2 -2
- data/app/controllers/phcscriptcdn/application_controller.rb +20 -10
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +19 -8
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +17 -6
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +16 -5
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +15 -6
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +13 -4
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -4
- data/app/helpers/phcscriptcdn/application_helper.rb +0 -10
- data/app/helpers/phcscriptcdn/script/authors_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/extensions_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/licences_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/listings_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/urls_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/versions_helper.rb +4 -0
- data/app/jobs/phcscriptcdn/application_job.rb +2 -2
- data/app/mailers/phcscriptcdn/application_mailer.rb +6 -0
- data/app/models/phcscriptcdn/application_record.rb +5 -3
- data/app/models/phcscriptcdn/script.rb +7 -5
- data/app/models/phcscriptcdn/script/author.rb +0 -7
- data/app/models/phcscriptcdn/script/listing.rb +3 -13
- data/app/models/phcscriptcdn/script/url.rb +2 -2
- data/app/models/phcscriptcdn/script/version.rb +1 -1
- data/app/views/layouts/phcscriptcdn/application.html.erb +64 -41
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +9 -4
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +78 -0
- data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +154 -0
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +15 -20
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +32 -32
- data/app/views/phcscriptcdn/script/authors/index.html.erb +50 -60
- data/app/views/phcscriptcdn/script/authors/new.html.erb +33 -32
- data/app/views/phcscriptcdn/script/authors/show.html.erb +42 -32
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +13 -14
- data/app/views/phcscriptcdn/script/extensions/edit.html.erb +32 -31
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +45 -52
- data/app/views/phcscriptcdn/script/extensions/new.html.erb +31 -30
- data/app/views/phcscriptcdn/script/extensions/show.html.erb +41 -31
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +21 -21
- data/app/views/phcscriptcdn/script/licences/edit.html.erb +31 -31
- data/app/views/phcscriptcdn/script/licences/index.html.erb +55 -62
- data/app/views/phcscriptcdn/script/licences/new.html.erb +31 -31
- data/app/views/phcscriptcdn/script/licences/show.html.erb +41 -31
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +27 -28
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +29 -30
- data/app/views/phcscriptcdn/script/listings/index.html.erb +45 -54
- data/app/views/phcscriptcdn/script/listings/new.html.erb +28 -30
- data/app/views/phcscriptcdn/script/listings/show.html.erb +38 -28
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +13 -14
- data/app/views/phcscriptcdn/script/urls/edit.html.erb +17 -30
- data/app/views/phcscriptcdn/script/urls/index.html.erb +47 -54
- data/app/views/phcscriptcdn/script/urls/new.html.erb +31 -31
- data/app/views/phcscriptcdn/script/urls/show.html.erb +41 -30
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +9 -10
- data/app/views/phcscriptcdn/script/versions/edit.html.erb +31 -31
- data/app/views/phcscriptcdn/script/versions/index.html.erb +43 -50
- data/app/views/phcscriptcdn/script/versions/new.html.erb +31 -31
- data/app/views/phcscriptcdn/script/versions/show.html.erb +41 -31
- data/config/routes.rb +19 -22
- data/db/migrate/{20160731205917_create_phcscriptcdn_script_listings.rb → 20160821183652_create_phcscriptcdn_script_listings.rb} +5 -6
- data/db/migrate/{20160731210723_create_phcscriptcdn_script_authors.rb → 20160821183714_create_phcscriptcdn_script_authors.rb} +1 -2
- data/db/migrate/{20160731205205_create_phcscriptcdn_script_extensions.rb → 20160821183735_create_phcscriptcdn_script_extensions.rb} +1 -1
- data/db/migrate/{20160801032225_create_phcscriptcdn_script_licences.rb → 20160821183805_create_phcscriptcdn_script_licences.rb} +1 -1
- data/db/migrate/{20160731210626_create_phcscriptcdn_script_urls.rb → 20160821183830_create_phcscriptcdn_script_urls.rb} +5 -5
- data/db/migrate/{20160731205954_create_phcscriptcdn_script_versions.rb → 20160821183946_create_phcscriptcdn_script_versions.rb} +1 -1
- data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +1 -0
- data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +1 -0
- data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -16
- data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +1 -0
- data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +1 -0
- data/lib/phcscriptcdn/engine.rb +6 -1
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +100 -116
- data/app/assets/javascripts/phcscriptcdn/frontend/listings.js +0 -2
- data/app/assets/stylesheets/phcscriptcdn/frontend/listings.scss +0 -3
- data/app/controllers/phcscriptcdn/frontend/listings_controller.rb +0 -20
- data/app/helpers/phcscriptcdn/frontend/listings_helper.rb +0 -4
- data/app/models/phcscriptcdn/frontend/listing.rb +0 -8
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_navigation.html.erb +0 -56
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb +0 -5
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar_links.html.erb +0 -0
- data/app/views/layouts/phcscriptcdn/frontend.html.erb +0 -22
- data/app/views/phcscriptcdn/frontend/listings/index.html.erb +0 -46
- data/app/views/phcscriptcdn/frontend/listings/show.html.erb +0 -59
@@ -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,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>
|
File without changes
|
@@ -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 -->
|