phcscriptcdn 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/app/assets/config/phcscriptcdn_manifest.js +1 -1
- data/app/assets/javascripts/phcscriptcdn/application.js +3 -0
- data/app/assets/stylesheets/phcscriptcdn/_custom.scss +0 -0
- data/app/assets/stylesheets/phcscriptcdn/{application.css → application.scss} +8 -0
- data/app/controllers/phcscriptcdn/application_controller.rb +1 -1
- data/app/views/phcscriptcdn/scriptcdn/{information → informations}/_form.html.erb +0 -0
- data/app/views/phcscriptcdn/scriptcdn/{information → informations}/_formpatch.html.erb +0 -0
- data/app/views/phcscriptcdn/scriptcdn/{information → informations}/edit.html.erb +0 -0
- data/app/views/phcscriptcdn/scriptcdn/{information → informations}/index.html.erb +0 -0
- data/app/views/phcscriptcdn/scriptcdn/{information → informations}/new.html.erb +0 -0
- data/app/views/phcscriptcdn/scriptcdn/{information → informations}/show.html.erb +0 -0
- data/config/routes.rb +27 -4
- data/lib/phcscriptcdn/engine.rb +2 -2
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +30 -20
- data/app/assets/javascripts/phcscriptcdn/scriptcdn/authors.js +0 -2
- data/app/assets/javascripts/phcscriptcdn/scriptcdn/information.js +0 -2
- data/app/assets/javascripts/phcscriptcdn/scriptcdn/mains.js +0 -2
- data/app/assets/javascripts/phcscriptcdn/scriptcdn/urls.js +0 -2
- data/app/assets/javascripts/phcscriptcdn/scriptcdn/versions.js +0 -2
- data/app/assets/stylesheets/phcscriptcdn/scriptcdn/authors.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdn/scriptcdn/information.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdn/scriptcdn/mains.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdn/scriptcdn/urls.scss +0 -3
- data/app/assets/stylesheets/phcscriptcdn/scriptcdn/versions.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -89
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7d7c4d0c5cfc280dfa1c4e066c6748a2e8078f0
|
4
|
+
data.tar.gz: 7ab1b6deff7b6336f75d35e504e23db47501bf67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6283b2b3a4e0eb849c72d16a9a65ee3b3d9be009ba5c13a98ab225b4e272c39c9af65b5233bfcfab43988a124812b8baae764f8ee54d727570e3005569e1c329
|
7
|
+
data.tar.gz: f389ed77534fce76b3f934b192758c7c18553586aa9872f26d7b78a922b3aa050512889e8dfc9146d32f1e9d1d4555c5c5d707e57d72d2602cb480de69266ae1
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ PHCScriptCDN(2) script listing software to manage your online script CDN.
|
|
11
11
|
|
12
12
|
#### Step 1 - Add PHCScriptCDN Engine to your gemfile
|
13
13
|
|
14
|
-
gem 'phcscriptcdn', '~>
|
14
|
+
gem 'phcscriptcdn', '~> 2.0'
|
15
15
|
bundle install
|
16
16
|
|
17
17
|
#### Step 2 - Add Database Migration Files
|
@@ -30,7 +30,7 @@ Generate views for customization and app integration.
|
|
30
30
|
rails generate phcscriptcdn:views
|
31
31
|
|
32
32
|
#### Step 5 - Recompile Assets
|
33
|
-
PHCScriptCDN UI requires
|
33
|
+
PHCScriptCDN UI requires Bootstrap and FontAwesome to operate.
|
34
34
|
|
35
35
|
rake assets:clobber
|
36
36
|
rake assets:precompile
|
@@ -1,2 +1,2 @@
|
|
1
1
|
//= link_directory ../javascripts/phcscriptcdn .js
|
2
|
-
//= link_directory ../stylesheets/phcscriptcdn .
|
2
|
+
//= link_directory ../stylesheets/phcscriptcdn .scss
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/config/routes.rb
CHANGED
@@ -1,11 +1,34 @@
|
|
1
1
|
Phcscriptcdn::Engine.routes.draw do
|
2
2
|
|
3
|
+
# CDN Frontend
|
4
|
+
namespace :frontend do
|
5
|
+
|
6
|
+
# Frontend Routes
|
7
|
+
resources :cdnpages
|
8
|
+
|
9
|
+
end
|
10
|
+
|
3
11
|
# Script CDN Listing System
|
4
12
|
namespace :scriptcdn do
|
5
|
-
|
6
|
-
|
7
|
-
|
13
|
+
|
14
|
+
# Main Script Module
|
15
|
+
resources :mains do
|
16
|
+
resources :authors
|
17
|
+
resources :urls
|
18
|
+
resources :versions
|
19
|
+
resources :informations
|
8
20
|
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
# Application API
|
25
|
+
namespace :api, :path => "", :constraints => {:subdomain => "api"} do
|
26
|
+
|
27
|
+
# Routes for API
|
28
|
+
resources :mains, defaults: {format: 'json'}
|
29
|
+
resources :informations, defaults: {format: 'json'}
|
30
|
+
resources :versions, defaults: {format: 'json'}
|
31
|
+
|
9
32
|
end
|
10
33
|
|
11
|
-
end
|
34
|
+
end
|
data/lib/phcscriptcdn/engine.rb
CHANGED
@@ -8,7 +8,7 @@ module Phcscriptcdn
|
|
8
8
|
require 'font-awesome-rails'
|
9
9
|
|
10
10
|
# PHCEngines
|
11
|
-
|
11
|
+
require 'phcnotifi'
|
12
12
|
require 'phctitleseo'
|
13
13
|
|
14
14
|
# Give PHCScriptCDN Own Namespace
|
@@ -29,7 +29,7 @@ module Phcscriptcdn
|
|
29
29
|
# Load Helper Files
|
30
30
|
config.to_prepare do
|
31
31
|
ApplicationController.helper(ApplicationHelper)
|
32
|
-
|
32
|
+
Phcnotifi::ApplicationController.helper(ApplicationHelper)
|
33
33
|
Phctitleseo::ApplicationController.helper(ApplicationHelper)
|
34
34
|
end
|
35
35
|
|
data/lib/phcscriptcdn/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
@@ -44,6 +44,26 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '3.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: phcnotifi
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.0'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 3.0.1
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '3.0'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 3.0.1
|
47
67
|
- !ruby/object:Gem::Dependency
|
48
68
|
name: multi_json
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -366,7 +386,7 @@ dependencies:
|
|
366
386
|
- - ">="
|
367
387
|
- !ruby/object:Gem::Version
|
368
388
|
version: 2.53.4
|
369
|
-
description: PHCScriptCDN(
|
389
|
+
description: PHCScriptCDN(2) script listing software to manage your online script
|
370
390
|
CDN.
|
371
391
|
email:
|
372
392
|
- developers@phcnetworks.net
|
@@ -379,18 +399,8 @@ files:
|
|
379
399
|
- Rakefile
|
380
400
|
- app/assets/config/phcscriptcdn_manifest.js
|
381
401
|
- app/assets/javascripts/phcscriptcdn/application.js
|
382
|
-
- app/assets/
|
383
|
-
- app/assets/
|
384
|
-
- app/assets/javascripts/phcscriptcdn/scriptcdn/mains.js
|
385
|
-
- app/assets/javascripts/phcscriptcdn/scriptcdn/urls.js
|
386
|
-
- app/assets/javascripts/phcscriptcdn/scriptcdn/versions.js
|
387
|
-
- app/assets/stylesheets/phcscriptcdn/application.css
|
388
|
-
- app/assets/stylesheets/phcscriptcdn/scriptcdn/authors.scss
|
389
|
-
- app/assets/stylesheets/phcscriptcdn/scriptcdn/information.scss
|
390
|
-
- app/assets/stylesheets/phcscriptcdn/scriptcdn/mains.scss
|
391
|
-
- app/assets/stylesheets/phcscriptcdn/scriptcdn/urls.scss
|
392
|
-
- app/assets/stylesheets/phcscriptcdn/scriptcdn/versions.scss
|
393
|
-
- app/assets/stylesheets/scaffolds.scss
|
402
|
+
- app/assets/stylesheets/phcscriptcdn/_custom.scss
|
403
|
+
- app/assets/stylesheets/phcscriptcdn/application.scss
|
394
404
|
- app/controllers/phcscriptcdn/application_controller.rb
|
395
405
|
- app/controllers/phcscriptcdn/scriptcdn/authors_controller.rb
|
396
406
|
- app/controllers/phcscriptcdn/scriptcdn/informations_controller.rb
|
@@ -413,12 +423,12 @@ files:
|
|
413
423
|
- app/views/phcscriptcdn/scriptcdn/authors/edit.html.erb
|
414
424
|
- app/views/phcscriptcdn/scriptcdn/authors/index.html.erb
|
415
425
|
- app/views/phcscriptcdn/scriptcdn/authors/new.html.erb
|
416
|
-
- app/views/phcscriptcdn/scriptcdn/
|
417
|
-
- app/views/phcscriptcdn/scriptcdn/
|
418
|
-
- app/views/phcscriptcdn/scriptcdn/
|
419
|
-
- app/views/phcscriptcdn/scriptcdn/
|
420
|
-
- app/views/phcscriptcdn/scriptcdn/
|
421
|
-
- app/views/phcscriptcdn/scriptcdn/
|
426
|
+
- app/views/phcscriptcdn/scriptcdn/informations/_form.html.erb
|
427
|
+
- app/views/phcscriptcdn/scriptcdn/informations/_formpatch.html.erb
|
428
|
+
- app/views/phcscriptcdn/scriptcdn/informations/edit.html.erb
|
429
|
+
- app/views/phcscriptcdn/scriptcdn/informations/index.html.erb
|
430
|
+
- app/views/phcscriptcdn/scriptcdn/informations/new.html.erb
|
431
|
+
- app/views/phcscriptcdn/scriptcdn/informations/show.html.erb
|
422
432
|
- app/views/phcscriptcdn/scriptcdn/mains/_form.html.erb
|
423
433
|
- app/views/phcscriptcdn/scriptcdn/mains/edit.html.erb
|
424
434
|
- app/views/phcscriptcdn/scriptcdn/mains/index.html.erb
|
@@ -1,89 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #fff;
|
3
|
-
color: #333;
|
4
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
-
font-size: 13px;
|
6
|
-
line-height: 18px;
|
7
|
-
margin: 33px;
|
8
|
-
}
|
9
|
-
|
10
|
-
p, ol, ul, td {
|
11
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
12
|
-
font-size: 13px;
|
13
|
-
line-height: 18px;
|
14
|
-
margin: 33px;
|
15
|
-
}
|
16
|
-
|
17
|
-
pre {
|
18
|
-
background-color: #eee;
|
19
|
-
padding: 10px;
|
20
|
-
font-size: 11px;
|
21
|
-
}
|
22
|
-
|
23
|
-
a {
|
24
|
-
color: #000;
|
25
|
-
|
26
|
-
&:visited {
|
27
|
-
color: #666;
|
28
|
-
}
|
29
|
-
|
30
|
-
&:hover {
|
31
|
-
color: #fff;
|
32
|
-
background-color: #000;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
th {
|
37
|
-
padding-bottom: 5px;
|
38
|
-
}
|
39
|
-
|
40
|
-
td {
|
41
|
-
padding-bottom: 7px;
|
42
|
-
padding-left: 5px;
|
43
|
-
padding-right: 5px;
|
44
|
-
}
|
45
|
-
|
46
|
-
div {
|
47
|
-
&.field, &.actions {
|
48
|
-
margin-bottom: 10px;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
#notice {
|
53
|
-
color: green;
|
54
|
-
}
|
55
|
-
|
56
|
-
.field_with_errors {
|
57
|
-
padding: 2px;
|
58
|
-
background-color: red;
|
59
|
-
display: table;
|
60
|
-
}
|
61
|
-
|
62
|
-
#error_explanation {
|
63
|
-
width: 450px;
|
64
|
-
border: 2px solid red;
|
65
|
-
padding: 7px;
|
66
|
-
padding-bottom: 0;
|
67
|
-
margin-bottom: 20px;
|
68
|
-
background-color: #f0f0f0;
|
69
|
-
|
70
|
-
h2 {
|
71
|
-
text-align: left;
|
72
|
-
font-weight: bold;
|
73
|
-
padding: 5px 5px 5px 15px;
|
74
|
-
font-size: 12px;
|
75
|
-
margin: -7px;
|
76
|
-
margin-bottom: 0;
|
77
|
-
background-color: #c00;
|
78
|
-
color: #fff;
|
79
|
-
}
|
80
|
-
|
81
|
-
ul li {
|
82
|
-
font-size: 12px;
|
83
|
-
list-style: square;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
label {
|
88
|
-
display: block;
|
89
|
-
}
|