phcdevworks_scripts 2.2.0 → 2.3.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/phcdevworks_scripts/script/authors.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/script/extensions.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/script/listings.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/script/urls.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/snippet/posts.coffee +3 -0
- data/app/assets/javascripts/phcdevworks_scripts/snippet/urls.coffee +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/authors.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/listings.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/script/urls.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.scss +3 -0
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.scss +3 -0
- data/app/assets/stylesheets/scaffolds.scss +65 -0
- data/app/views/layouts/phcdevworks_scripts/application.html.erb +62 -77
- data/app/views/layouts/phcdevworks_scripts/components/backend/footer/_footer.html.erb +7 -7
- data/app/views/layouts/phcdevworks_scripts/components/backend/navigation/_top_menu.html.erb +37 -37
- data/app/views/layouts/phcdevworks_scripts/components/backend/sidebars/_side_menu.html.erb +257 -239
- data/app/views/phcdevworks_scripts/script/authors/_form.html.erb +4 -2
- data/app/views/phcdevworks_scripts/script/authors/edit.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/authors/index.html.erb +61 -46
- data/app/views/phcdevworks_scripts/script/authors/new.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/extensions/_form.html.erb +6 -2
- data/app/views/phcdevworks_scripts/script/extensions/edit.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/extensions/index.html.erb +56 -42
- data/app/views/phcdevworks_scripts/script/extensions/new.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/listings/_form.html.erb +13 -3
- data/app/views/phcdevworks_scripts/script/listings/edit.html.erb +29 -17
- data/app/views/phcdevworks_scripts/script/listings/index.html.erb +60 -46
- data/app/views/phcdevworks_scripts/script/listings/new.html.erb +29 -18
- data/app/views/phcdevworks_scripts/script/urls/_form.html.erb +7 -1
- data/app/views/phcdevworks_scripts/script/urls/edit.html.erb +41 -17
- data/app/views/phcdevworks_scripts/script/urls/index.html.erb +59 -44
- data/app/views/phcdevworks_scripts/script/urls/new.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/versions/_form.html.erb +2 -0
- data/app/views/phcdevworks_scripts/script/versions/edit.html.erb +27 -15
- data/app/views/phcdevworks_scripts/script/versions/index.html.erb +55 -40
- data/app/views/phcdevworks_scripts/script/versions/new.html.erb +27 -15
- data/app/views/phcdevworks_scripts/snippet/posts/_form.html.erb +1 -0
- data/app/views/phcdevworks_scripts/snippet/posts/edit.html.erb +31 -23
- data/app/views/phcdevworks_scripts/snippet/posts/index.html.erb +68 -54
- data/app/views/phcdevworks_scripts/snippet/posts/new.html.erb +31 -23
- data/app/views/phcdevworks_scripts/snippet/urls/_form.html.erb +2 -2
- data/app/views/phcdevworks_scripts/snippet/urls/edit.html.erb +31 -23
- data/app/views/phcdevworks_scripts/snippet/urls/index.html.erb +66 -52
- data/app/views/phcdevworks_scripts/snippet/urls/new.html.erb +31 -23
- data/config/routes.rb +43 -22
- data/lib/phcdevworks_scripts/engine.rb +6 -8
- data/lib/phcdevworks_scripts/version.rb +1 -1
- metadata +35 -16
- data/app/assets/stylesheets/phcdevworks_scripts/script/authors.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/script/listings.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/script/urls.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.css +0 -4
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.css +0 -4
- data/config/initializers/friendly_id.rb +0 -107
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f369110cea27be96d2804afc4afc4f975b8eb798a353efd06a60960555cfe902
|
4
|
+
data.tar.gz: a70d296b1afe751685a6480ebf3932ba6aea74d64e6032809a4dd798ae333712
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 100475b7513d8fa84e2c595ed2453dcb8e871e6ac6dddb91e8cff2d62a49488cfe89196a4c229e44d526d8fff10d1eb0898697464094843825f7a1141792a6ea
|
7
|
+
data.tar.gz: 2c188110d50b33a8b092c204048c86e87a7453f768723b52932884ea0db81d66d14b72300fc62bbb3214e0f31ed9c06ddd42f3e570e71a9e4d706f6eef43fe6e
|
@@ -0,0 +1,65 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #fff;
|
3
|
+
color: #333;
|
4
|
+
margin: 33px; }
|
5
|
+
|
6
|
+
body, p, ol, ul, td {
|
7
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
8
|
+
font-size: 13px;
|
9
|
+
line-height: 18px; }
|
10
|
+
|
11
|
+
pre {
|
12
|
+
background-color: #eee;
|
13
|
+
padding: 10px;
|
14
|
+
font-size: 11px; }
|
15
|
+
|
16
|
+
a {
|
17
|
+
color: #000; }
|
18
|
+
|
19
|
+
a:visited {
|
20
|
+
color: #666; }
|
21
|
+
|
22
|
+
a:hover {
|
23
|
+
color: #fff;
|
24
|
+
background-color: #000; }
|
25
|
+
|
26
|
+
th {
|
27
|
+
padding-bottom: 5px; }
|
28
|
+
|
29
|
+
td {
|
30
|
+
padding: 0 5px 7px; }
|
31
|
+
|
32
|
+
div.field,
|
33
|
+
div.actions {
|
34
|
+
margin-bottom: 10px; }
|
35
|
+
|
36
|
+
#notice {
|
37
|
+
color: green; }
|
38
|
+
|
39
|
+
.field_with_errors {
|
40
|
+
padding: 2px;
|
41
|
+
background-color: red;
|
42
|
+
display: table; }
|
43
|
+
|
44
|
+
#error_explanation {
|
45
|
+
width: 450px;
|
46
|
+
border: 2px solid red;
|
47
|
+
padding: 7px 7px 0;
|
48
|
+
margin-bottom: 20px;
|
49
|
+
background-color: #f0f0f0; }
|
50
|
+
|
51
|
+
#error_explanation h2 {
|
52
|
+
text-align: left;
|
53
|
+
font-weight: bold;
|
54
|
+
padding: 5px 5px 5px 15px;
|
55
|
+
font-size: 12px;
|
56
|
+
margin: -7px -7px 0;
|
57
|
+
background-color: #c00;
|
58
|
+
color: #fff; }
|
59
|
+
|
60
|
+
#error_explanation ul li {
|
61
|
+
font-size: 12px;
|
62
|
+
list-style: square; }
|
63
|
+
|
64
|
+
label {
|
65
|
+
display: block; }
|
@@ -2,93 +2,78 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
5
|
+
<!-- SEO System -->
|
6
|
+
<% phc_seo_title "PHCDevworks Scripts" %>
|
7
|
+
<% phc_seo_description "Ruby on Rails 6 Script CDN and Code Snippets Listing Management Engine." %>
|
8
|
+
<!-- SEO System -->
|
9
|
+
|
10
|
+
<!-- SEO and Site Description -->
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
14
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
|
15
|
+
<link rel="canonical" href="http://phcdevworks.com">
|
16
|
+
<!-- SEO and Site Description -->
|
17
|
+
|
18
|
+
<!-- Rails Security Tags -->
|
19
|
+
<%= csrf_meta_tags %>
|
20
|
+
<%= csp_meta_tag %>
|
21
|
+
<!-- Rails Security Tags -->
|
22
|
+
|
23
|
+
<!-- CSS Styles -->
|
24
|
+
<%= stylesheet_link_tag "phcdevworks_scripts/application", media: "all" %>
|
25
|
+
<!-- CSS Styles -->
|
26
|
+
|
27
|
+
<!-- Font -->
|
28
|
+
<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"/>
|
29
|
+
<!-- Font -->
|
30
30
|
|
31
31
|
</head>
|
32
32
|
<body>
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
34
|
+
<!-- Page Container -->
|
35
|
+
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
|
36
|
+
|
37
|
+
<!-- Page Header -->
|
38
|
+
<div id="header" class="header navbar-default">
|
39
|
+
<%= render "layouts/phcdevworks_scripts/components/backend/navigation/top_menu" %>
|
40
|
+
</div>
|
41
|
+
<!-- Page Header -->
|
42
|
+
|
43
|
+
<!-- Page Sidebar -->
|
44
|
+
<div id="sidebar" class="sidebar">
|
45
|
+
<%= render "layouts/phcdevworks_scripts/components/backend/sidebars/side_menu" %>
|
46
|
+
</div>
|
47
|
+
<div class="sidebar-bg"></div>
|
48
|
+
<!-- Page Sidebar -->
|
49
|
+
|
50
|
+
<!-- Page Content -->
|
51
|
+
<div id="content" class="content">
|
52
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
53
|
+
<%= yield %>
|
54
|
+
</div>
|
55
|
+
<!-- Page Content -->
|
56
|
+
|
57
|
+
<!-- Footer Content -->
|
58
|
+
<div id="footer" class="row footer mb-4">
|
59
|
+
<%= render "layouts/phcdevworks_scripts/components/backend/footer/footer" %>
|
60
|
+
</div>
|
61
|
+
<!-- Footer Content -->
|
56
62
|
|
57
|
-
<!-- Footer Content -->
|
58
|
-
<div id="footer" class="footer mb-4">
|
59
|
-
<%= render 'layouts/phcdevworks_scripts/components/backend/footer/footer' %>
|
60
63
|
</div>
|
61
|
-
<!--
|
62
|
-
|
63
|
-
</div>
|
64
|
-
<!-- Page Container -->
|
65
|
-
|
66
|
-
<!-- JavaScript -->
|
67
|
-
<%= javascript_include_tag "phcdevworks_scripts/application", 'data-turbolinks-track': 'reload' %>
|
68
|
-
<!-- JavaScript -->
|
64
|
+
<!-- Page Container -->
|
69
65
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
.then( editor => {
|
74
|
-
window.editor = editor;
|
75
|
-
const wordCountPlugin = editor.plugins.get( 'WordCount' );
|
76
|
-
const wordCountWrapper = document.getElementById( 'word-count' );
|
77
|
-
wordCountWrapper.appendChild( wordCountPlugin.wordCountContainer );
|
78
|
-
} )
|
79
|
-
.catch( err => {
|
80
|
-
console.error( err.stack );
|
81
|
-
} );
|
82
|
-
</script>
|
83
|
-
<!-- JavaScript CKEditor -->
|
66
|
+
<!-- JavaScript -->
|
67
|
+
<%= javascript_include_tag "phcdevworks_scripts/application", "data-turbolinks-track": "reload" %>
|
68
|
+
<!-- JavaScript -->
|
84
69
|
|
85
|
-
|
86
|
-
|
70
|
+
<!-- JavaScript Loader -->
|
71
|
+
<script>
|
87
72
|
$(document).ready(function() {
|
88
|
-
|
73
|
+
App.init();
|
89
74
|
});
|
90
|
-
|
91
|
-
|
75
|
+
</script>
|
76
|
+
<!-- JavaScript Loader -->
|
92
77
|
|
93
78
|
</body>
|
94
79
|
</html>
|
@@ -1,16 +1,16 @@
|
|
1
1
|
<!-- Footer Content - Left -->
|
2
2
|
<span>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
<!-- Footer Content - Left - Time in Production -->
|
4
|
+
<i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
|
5
|
+
<span class="font-weight-bold">PHC</span>Devworks Scripts & Snippets -
|
6
|
+
Engine v<%= Gem.loaded_specs["phcdevworks_scripts"].version.to_s %>
|
7
|
+
<!-- Footer Content - Left - Time in Production -->
|
8
8
|
</span>
|
9
9
|
<!-- Footer Content - Left -->
|
10
10
|
|
11
11
|
<!-- Footer Content - Right -->
|
12
12
|
<span class="float-right">
|
13
|
-
|
14
|
-
|
13
|
+
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
14
|
+
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="font-weight-bold">PHC</span>Devworks</u></a>
|
15
15
|
</span>
|
16
16
|
<!-- Footer Content - Right -->
|
@@ -1,37 +1,37 @@
|
|
1
|
-
<!-- Topbar - Navigation Header -->
|
2
|
-
<div class="navbar-header">
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
</div>
|
12
|
-
<!-- Topbar - Navigation Header -->
|
13
|
-
|
14
|
-
<!-- Topbar - Navigation Main -->
|
15
|
-
<% if current_user %>
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
<% end %>
|
37
|
-
<!-- Topbar - Navigation Main -->
|
1
|
+
<!-- Topbar - Navigation Header -->
|
2
|
+
<div class="navbar-header">
|
3
|
+
<%= link_to phcdevworks_scripts.script_listings_path, class: "navbar-brand" do %>
|
4
|
+
<strong>PHCDevworks</strong>Scripts
|
5
|
+
<% end %>
|
6
|
+
<button type="button" class="navbar-toggle" data-click="sidebar-toggled">
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
<span class="icon-bar"></span>
|
10
|
+
</button>
|
11
|
+
</div>
|
12
|
+
<!-- Topbar - Navigation Header -->
|
13
|
+
|
14
|
+
<!-- Topbar - Navigation Main -->
|
15
|
+
<% if current_user %>
|
16
|
+
<ul class="navbar-nav navbar-right">
|
17
|
+
|
18
|
+
<!-- Topbar - Navigation Main - User Menu -->
|
19
|
+
<li class="dropdown navbar-user">
|
20
|
+
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
21
|
+
<%= image_tag current_user.gravatar_url %>
|
22
|
+
<span class="d-none d-md-inline"><%= current_user.firstname + " " + current_user.lastname %></span> <b class="caret"></b>
|
23
|
+
</a>
|
24
|
+
<div class="dropdown-menu dropdown-menu-right">
|
25
|
+
<%= link_to phcdevworks_accounts.edit_user_registration_path, class: "dropdown-item" do %>
|
26
|
+
<i class="fad fa-cogs"></i> Account Settings
|
27
|
+
<% end %>
|
28
|
+
<%= link_to phcdevworks_accounts.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
|
29
|
+
<i class="fad fa-sign-out-alt"></i> Logout
|
30
|
+
<% end %>
|
31
|
+
</div>
|
32
|
+
</li>
|
33
|
+
<!-- Topbar - Navigation Main - User Menu -->
|
34
|
+
|
35
|
+
</ul>
|
36
|
+
<% end %>
|
37
|
+
<!-- Topbar - Navigation Main -->
|