phcscriptcdn 10.1.0 → 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/app/assets/javascripts/phcscriptcdn/frontend/listings.js +2 -0
- data/app/assets/stylesheets/phcscriptcdn/frontend/listings.scss +3 -0
- data/app/controllers/phcscriptcdn/frontend/listings_controller.rb +20 -0
- data/app/helpers/phcscriptcdn/frontend/listings_helper.rb +4 -0
- data/app/models/phcscriptcdn/frontend/listing.rb +8 -0
- data/app/models/phcscriptcdn/script/licence.rb +0 -3
- data/app/views/phcscriptcdn/frontend/listings/index.html.erb +46 -0
- data/app/views/phcscriptcdn/frontend/listings/show.html.erb +59 -0
- data/db/migrate/{20170517064030_create_phcscriptcdn_extensions_versions.rb → 20170517064030_create_phcscriptcdn_extension_versions.rb} +3 -3
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1cc291fff8888bdba91e342dd8aa605cefcd7f7
|
4
|
+
data.tar.gz: 1c9fe3f91b415cfe0b44f1c4b76e346841a3ac9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c631c8eed6733ae0566c5d92d5fa23248ff7944bf10b4d7254d6a917777144e9968098568ee83e7010e9ae54f99ffd6e10d81658e81457892239689665bac09
|
7
|
+
data.tar.gz: 91cbf32f5eca238b76e4775ff3a780f2d86f9433fdc6ee573f0e64008ea5fa70fee845c50448cecc9bc3ddc0ce2606292efef5c0d99dd6c08331d924c52fd9dd
|
@@ -0,0 +1,20 @@
|
|
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
|
@@ -0,0 +1,46 @@
|
|
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 -->
|
@@ -0,0 +1,59 @@
|
|
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 -->
|
@@ -1,8 +1,8 @@
|
|
1
|
-
class
|
1
|
+
class CreatePhcscriptcdnExtensionVersions < ActiveRecord::Migration[5.1]
|
2
2
|
TEXT_BYTES = 1_073_741_823
|
3
3
|
def change
|
4
4
|
|
5
|
-
create_table :
|
5
|
+
create_table :phcscriptcdn_extension_versions do |t|
|
6
6
|
t.string :item_type, {:null=>false}
|
7
7
|
t.integer :item_id, null: false
|
8
8
|
t.string :event, null: false
|
@@ -11,7 +11,7 @@ class CreatePhcscriptcdnExtensionsVersions < ActiveRecord::Migration[5.1]
|
|
11
11
|
t.datetime :created_at
|
12
12
|
end
|
13
13
|
|
14
|
-
add_index :
|
14
|
+
add_index :phcscriptcdn_extension_versions, %i(item_type item_id), :name => 'scriptcdn_ext_versions'
|
15
15
|
|
16
16
|
end
|
17
17
|
end
|
data/lib/phcscriptcdn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 11.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: 2017-07-
|
11
|
+
date: 2017-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -683,8 +683,11 @@ files:
|
|
683
683
|
- Rakefile
|
684
684
|
- app/assets/config/phcscriptcdn_manifest.js
|
685
685
|
- app/assets/javascripts/phcscriptcdn/application.js
|
686
|
+
- app/assets/javascripts/phcscriptcdn/frontend/listings.js
|
686
687
|
- app/assets/stylesheets/phcscriptcdn/application.scss
|
688
|
+
- app/assets/stylesheets/phcscriptcdn/frontend/listings.scss
|
687
689
|
- app/controllers/phcscriptcdn/application_controller.rb
|
690
|
+
- app/controllers/phcscriptcdn/frontend/listings_controller.rb
|
688
691
|
- app/controllers/phcscriptcdn/script/authors_controller.rb
|
689
692
|
- app/controllers/phcscriptcdn/script/extensions_controller.rb
|
690
693
|
- app/controllers/phcscriptcdn/script/licences_controller.rb
|
@@ -692,10 +695,12 @@ files:
|
|
692
695
|
- app/controllers/phcscriptcdn/script/urls_controller.rb
|
693
696
|
- app/controllers/phcscriptcdn/script/versions_controller.rb
|
694
697
|
- app/helpers/phcscriptcdn/application_helper.rb
|
698
|
+
- app/helpers/phcscriptcdn/frontend/listings_helper.rb
|
695
699
|
- app/jobs/phcscriptcdn/application_job.rb
|
696
700
|
- app/models/phcscriptcdn/application_record.rb
|
697
701
|
- app/models/phcscriptcdn/author_versions.rb
|
698
702
|
- app/models/phcscriptcdn/extension_versions.rb
|
703
|
+
- app/models/phcscriptcdn/frontend/listing.rb
|
699
704
|
- app/models/phcscriptcdn/licence_versions.rb
|
700
705
|
- app/models/phcscriptcdn/listing_versions.rb
|
701
706
|
- app/models/phcscriptcdn/script.rb
|
@@ -713,6 +718,8 @@ files:
|
|
713
718
|
- app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb
|
714
719
|
- app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar_links.html.erb
|
715
720
|
- app/views/layouts/phcscriptcdn/frontend.html.erb
|
721
|
+
- app/views/phcscriptcdn/frontend/listings/index.html.erb
|
722
|
+
- app/views/phcscriptcdn/frontend/listings/show.html.erb
|
716
723
|
- app/views/phcscriptcdn/script/authors/_form.html.erb
|
717
724
|
- app/views/phcscriptcdn/script/authors/edit.html.erb
|
718
725
|
- app/views/phcscriptcdn/script/authors/index.html.erb
|
@@ -754,7 +761,7 @@ files:
|
|
754
761
|
- db/migrate/20160731210723_create_phcscriptcdn_script_authors.rb
|
755
762
|
- db/migrate/20160801032225_create_phcscriptcdn_script_licences.rb
|
756
763
|
- db/migrate/20170509002355_create_phcscriptcdn_friendly_id_slugs.rb
|
757
|
-
- db/migrate/
|
764
|
+
- db/migrate/20170517064030_create_phcscriptcdn_extension_versions.rb
|
758
765
|
- db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb
|
759
766
|
- db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb
|
760
767
|
- db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb
|