phcdevworks_scripts 8.1.1 → 8.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +1 -28
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_scripts_manifest.js +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/application.scss +15 -15
- data/app/assets/stylesheets/phcdevworks_scripts/script/authors.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/extensions.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/listings.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/urls.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/script/versions.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/posts.scss +3 -3
- data/app/assets/stylesheets/phcdevworks_scripts/snippet/urls.scss +3 -3
- data/app/controllers/phcdevworks_scripts/application_controller.rb +13 -13
- data/app/controllers/phcdevworks_scripts/script/authors_controller.rb +83 -83
- data/app/controllers/phcdevworks_scripts/script/extensions_controller.rb +83 -83
- data/app/controllers/phcdevworks_scripts/script/listings_controller.rb +83 -83
- data/app/controllers/phcdevworks_scripts/script/urls_controller.rb +78 -78
- data/app/controllers/phcdevworks_scripts/script/versions_controller.rb +83 -83
- data/app/controllers/phcdevworks_scripts/snippet/posts_controller.rb +82 -82
- data/app/controllers/phcdevworks_scripts/snippet/urls_controller.rb +77 -77
- data/app/helpers/phcdevworks_scripts/application_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/authors_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/extensions_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/listings_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/urls_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/script/versions_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/snippet/posts_helper.rb +4 -4
- data/app/helpers/phcdevworks_scripts/snippet/urls_helper.rb +4 -4
- data/app/jobs/phcdevworks_scripts/application_job.rb +4 -4
- data/app/mailers/phcdevworks_scripts/application_mailer.rb +6 -6
- data/app/models/phcdevworks_scripts/application_record.rb +5 -5
- data/app/models/phcdevworks_scripts/script/author.rb +33 -33
- data/app/models/phcdevworks_scripts/script/extension.rb +32 -32
- data/app/models/phcdevworks_scripts/script/listing.rb +38 -38
- data/app/models/phcdevworks_scripts/script/url.rb +24 -24
- data/app/models/phcdevworks_scripts/script/version.rb +26 -26
- data/app/models/phcdevworks_scripts/script.rb +7 -7
- data/app/models/phcdevworks_scripts/script_author_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_extension_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_listing_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_url_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/script_version_versions.rb +0 -0
- data/app/models/phcdevworks_scripts/snippet/post.rb +28 -28
- data/app/models/phcdevworks_scripts/snippet/url.rb +19 -19
- data/app/models/phcdevworks_scripts/snippet.rb +7 -7
- data/app/models/phcdevworks_scripts/snippet_post_versions.rb +5 -5
- data/app/models/phcdevworks_scripts/snippet_url_versions.rb +5 -5
- data/app/views/layouts/phcdevworks_scripts/application.html.erb +131 -131
- data/app/views/layouts/phcdevworks_scripts/components/backend/footer/_footer.html.erb +0 -0
- data/app/views/layouts/phcdevworks_scripts/components/backend/navigation/_top_menu.html.erb +0 -0
- data/app/views/layouts/phcdevworks_scripts/components/backend/sidebars/_side_menu.html.erb +0 -0
- data/app/views/phcdevworks_scripts/script/authors/_form.html.erb +37 -37
- data/app/views/phcdevworks_scripts/script/authors/edit.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/authors/index.html.erb +78 -78
- data/app/views/phcdevworks_scripts/script/authors/new.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/authors/show.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/extensions/_form.html.erb +32 -32
- data/app/views/phcdevworks_scripts/script/extensions/edit.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/extensions/index.html.erb +73 -73
- data/app/views/phcdevworks_scripts/script/extensions/new.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/extensions/show.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/listings/_form.html.erb +73 -73
- data/app/views/phcdevworks_scripts/script/listings/edit.html.erb +47 -47
- data/app/views/phcdevworks_scripts/script/listings/index.html.erb +76 -76
- data/app/views/phcdevworks_scripts/script/listings/new.html.erb +47 -47
- data/app/views/phcdevworks_scripts/script/listings/show.html.erb +48 -48
- data/app/views/phcdevworks_scripts/script/urls/_form.html.erb +42 -42
- data/app/views/phcdevworks_scripts/script/urls/edit.html.erb +60 -60
- data/app/views/phcdevworks_scripts/script/urls/index.html.erb +76 -76
- data/app/views/phcdevworks_scripts/script/urls/new.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/urls/show.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/versions/_form.html.erb +22 -22
- data/app/views/phcdevworks_scripts/script/versions/edit.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/versions/index.html.erb +72 -72
- data/app/views/phcdevworks_scripts/script/versions/new.html.erb +49 -49
- data/app/views/phcdevworks_scripts/script/versions/show.html.erb +49 -49
- data/app/views/phcdevworks_scripts/snippet/posts/_form.html.erb +28 -28
- data/app/views/phcdevworks_scripts/snippet/posts/edit.html.erb +47 -47
- data/app/views/phcdevworks_scripts/snippet/posts/index.html.erb +82 -82
- data/app/views/phcdevworks_scripts/snippet/posts/new.html.erb +47 -47
- data/app/views/phcdevworks_scripts/snippet/posts/show.html.erb +71 -71
- data/app/views/phcdevworks_scripts/snippet/urls/_form.html.erb +22 -22
- data/app/views/phcdevworks_scripts/snippet/urls/edit.html.erb +47 -47
- data/app/views/phcdevworks_scripts/snippet/urls/index.html.erb +80 -80
- data/app/views/phcdevworks_scripts/snippet/urls/new.html.erb +47 -47
- data/app/views/phcdevworks_scripts/snippet/urls/show.html.erb +71 -71
- data/config/routes.rb +33 -33
- data/config/spring.rb +1 -1
- data/db/migrate/20170517064030_create_phcdevworks_scripts_script_extension_versions.rb +0 -0
- data/db/migrate/20170517064049_create_phcdevworks_scripts_script_listing_versions.rb +18 -18
- data/db/migrate/20170517064114_create_phcdevworks_scripts_script_version_versions.rb +18 -18
- data/db/migrate/20170517064150_create_phcdevworks_scripts_script_url_versions.rb +0 -0
- data/db/migrate/20170517064208_create_phcdevworks_scripts_script_author_versions.rb +18 -18
- data/db/migrate/20190818022002_create_phcdevworks_scripts_snippet_posts.rb +18 -18
- data/db/migrate/20190818022024_create_phcdevworks_scripts_snippet_urls.rb +17 -17
- data/db/migrate/20190818022939_create_phcdevworks_scripts_script_authors.rb +18 -18
- data/db/migrate/20190818023353_create_phcdevworks_scripts_script_listings.rb +29 -29
- data/db/migrate/20190818023709_create_phcdevworks_scripts_script_extensions.rb +17 -17
- data/db/migrate/20190818023911_create_phcdevworks_scripts_script_urls.rb +21 -21
- data/db/migrate/20190818031653_create_phcdevworks_scripts_script_versions.rb +15 -15
- data/db/migrate/20191102092649_create_phcdevworks_scripts_snippet_url_versions.rb +18 -18
- data/db/migrate/20191102092711_create_phcdevworks_scripts_snippet_post_versions.rb +18 -18
- data/lib/phcdevworks_scripts/engine.rb +47 -47
- data/lib/phcdevworks_scripts/version.rb +3 -3
- data/lib/phcdevworks_scripts.rb +6 -6
- data/lib/tasks/phcdevworks_scripts_tasks.rake +4 -4
- metadata +33 -33
@@ -1,28 +1,28 @@
|
|
1
|
-
module PhcdevworksScripts
|
2
|
-
class Snippet::Post < ApplicationRecord
|
3
|
-
|
4
|
-
# Clean URL Initialize
|
5
|
-
extend FriendlyId
|
6
|
-
|
7
|
-
# Paper Trail Initialize
|
8
|
-
has_paper_trail :class_name => 'PhcdevworksScripts::SnippetPostVersions'
|
9
|
-
|
10
|
-
# Relationships
|
11
|
-
has_many :urls, class_name: 'PhcdevworksScripts::Snippet::Url'
|
12
|
-
|
13
|
-
# Form Fields Validation
|
14
|
-
validates :snippet_post_title,
|
15
|
-
presence: true
|
16
|
-
|
17
|
-
validates :snippet_post_code,
|
18
|
-
presence: true
|
19
|
-
|
20
|
-
# Clean URL Define
|
21
|
-
friendly_id :snippet_post_nice_urls, use: [:slugged, :finders]
|
22
|
-
|
23
|
-
def snippet_post_nice_urls
|
24
|
-
[:snippet_post_title]
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
end
|
1
|
+
module PhcdevworksScripts
|
2
|
+
class Snippet::Post < ApplicationRecord
|
3
|
+
|
4
|
+
# Clean URL Initialize
|
5
|
+
extend FriendlyId
|
6
|
+
|
7
|
+
# Paper Trail Initialize
|
8
|
+
has_paper_trail :class_name => 'PhcdevworksScripts::SnippetPostVersions'
|
9
|
+
|
10
|
+
# Relationships
|
11
|
+
has_many :urls, class_name: 'PhcdevworksScripts::Snippet::Url'
|
12
|
+
|
13
|
+
# Form Fields Validation
|
14
|
+
validates :snippet_post_title,
|
15
|
+
presence: true
|
16
|
+
|
17
|
+
validates :snippet_post_code,
|
18
|
+
presence: true
|
19
|
+
|
20
|
+
# Clean URL Define
|
21
|
+
friendly_id :snippet_post_nice_urls, use: [:slugged, :finders]
|
22
|
+
|
23
|
+
def snippet_post_nice_urls
|
24
|
+
[:snippet_post_title]
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -1,19 +1,19 @@
|
|
1
|
-
module PhcdevworksScripts
|
2
|
-
class Snippet::Url < ApplicationRecord
|
3
|
-
|
4
|
-
# Include Core Validations
|
5
|
-
phc_domain_regx = URI::regexp(%w(http https))
|
6
|
-
|
7
|
-
# Paper Trail Initialize
|
8
|
-
has_paper_trail :class_name => 'PhcdevworksScripts::SnippetUrlVersions'
|
9
|
-
|
10
|
-
# Relationships
|
11
|
-
belongs_to :post, class_name: 'PhcdevworksScripts::Snippet::Post'
|
12
|
-
|
13
|
-
# Form Fields Validation
|
14
|
-
validates :snippet_post_url,
|
15
|
-
presence: true,
|
16
|
-
format: { :with => phc_domain_regx, message: "Please follow this URL format http or https://www.**********.com" }
|
17
|
-
|
18
|
-
end
|
19
|
-
end
|
1
|
+
module PhcdevworksScripts
|
2
|
+
class Snippet::Url < ApplicationRecord
|
3
|
+
|
4
|
+
# Include Core Validations
|
5
|
+
phc_domain_regx = URI::regexp(%w(http https))
|
6
|
+
|
7
|
+
# Paper Trail Initialize
|
8
|
+
has_paper_trail :class_name => 'PhcdevworksScripts::SnippetUrlVersions'
|
9
|
+
|
10
|
+
# Relationships
|
11
|
+
belongs_to :post, class_name: 'PhcdevworksScripts::Snippet::Post'
|
12
|
+
|
13
|
+
# Form Fields Validation
|
14
|
+
validates :snippet_post_url,
|
15
|
+
presence: true,
|
16
|
+
format: { :with => phc_domain_regx, message: "Please follow this URL format http or https://www.**********.com" }
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
|
-
module PhcdevworksScripts
|
2
|
-
module Snippet
|
3
|
-
def self.table_name_prefix
|
4
|
-
'phcdevworks_scripts_snippet_'
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module PhcdevworksScripts
|
2
|
+
module Snippet
|
3
|
+
def self.table_name_prefix
|
4
|
+
'phcdevworks_scripts_snippet_'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module PhcdevworksScripts
|
2
|
-
class SnippetPostVersions < PaperTrail::Version
|
3
|
-
self.table_name = :phcdevworks_scripts_snippet_post_versions
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module PhcdevworksScripts
|
2
|
+
class SnippetPostVersions < PaperTrail::Version
|
3
|
+
self.table_name = :phcdevworks_scripts_snippet_post_versions
|
4
|
+
end
|
5
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module PhcdevworksScripts
|
2
|
-
class SnippetUrlVersions < PaperTrail::Version
|
3
|
-
self.table_name = :phcdevworks_scripts_snippet_url_versions
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module PhcdevworksScripts
|
2
|
+
class SnippetUrlVersions < PaperTrail::Version
|
3
|
+
self.table_name = :phcdevworks_scripts_snippet_url_versions
|
4
|
+
end
|
5
|
+
end
|
@@ -1,131 +1,131 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
|
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 charset="utf-8">
|
12
|
-
<title><%= yield(:phc_seo_title) %></title>
|
13
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
-
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
-
<!-- SEO and Site Description -->
|
16
|
-
|
17
|
-
<!-- Rails Security Tags -->
|
18
|
-
<%= csrf_meta_tags %>
|
19
|
-
<%= csp_meta_tag %>
|
20
|
-
<!-- Rails Security Tags -->
|
21
|
-
|
22
|
-
<!-- CSS Styles -->
|
23
|
-
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
-
<!-- CSS Styles -->
|
25
|
-
|
26
|
-
<!-- JavaScript -->
|
27
|
-
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
-
<!-- JavaScript -->
|
29
|
-
|
30
|
-
</head>
|
31
|
-
<body>
|
32
|
-
|
33
|
-
<!-- Page Container -->
|
34
|
-
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
|
35
|
-
|
36
|
-
<!-- Page Header -->
|
37
|
-
<div id="header" class="header navbar-default">
|
38
|
-
<%= render "layouts/phcdevworks_scripts/components/backend/navigation/top_menu" %>
|
39
|
-
</div>
|
40
|
-
<!-- Page Header -->
|
41
|
-
|
42
|
-
<!-- Page Sidebar -->
|
43
|
-
<div id="sidebar" class="sidebar">
|
44
|
-
<%= render "layouts/phcdevworks_scripts/components/backend/sidebars/side_menu" %>
|
45
|
-
</div>
|
46
|
-
<div class="sidebar-bg"></div>
|
47
|
-
<!-- Page Sidebar -->
|
48
|
-
|
49
|
-
<!-- Page Content -->
|
50
|
-
<div id="content" class="content">
|
51
|
-
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
-
<%= yield %>
|
53
|
-
</div>
|
54
|
-
<!-- Page Content -->
|
55
|
-
|
56
|
-
<!-- Footer Content -->
|
57
|
-
<div id="footer" class="footer mb-4">
|
58
|
-
<%= render "layouts/phcdevworks_scripts/components/backend/footer/footer" %>
|
59
|
-
</div>
|
60
|
-
<!-- Footer Content -->
|
61
|
-
|
62
|
-
</div>
|
63
|
-
<!-- Page Container -->
|
64
|
-
|
65
|
-
<!-- JavaScript CKEditor -->
|
66
|
-
<script>ClassicEditor
|
67
|
-
.create( document.querySelector( '.editor' ), {
|
68
|
-
toolbar: {
|
69
|
-
items: [
|
70
|
-
'heading',
|
71
|
-
'|',
|
72
|
-
'fontBackgroundColor',
|
73
|
-
'fontColor',
|
74
|
-
'horizontalLine',
|
75
|
-
'fontSize',
|
76
|
-
'fontFamily',
|
77
|
-
'highlight',
|
78
|
-
'|',
|
79
|
-
'bold',
|
80
|
-
'underline',
|
81
|
-
'italic',
|
82
|
-
'strikethrough',
|
83
|
-
'link',
|
84
|
-
'removeFormat',
|
85
|
-
'|',
|
86
|
-
'alignment',
|
87
|
-
'indent',
|
88
|
-
'outdent',
|
89
|
-
'|',
|
90
|
-
'blockQuote',
|
91
|
-
'insertTable',
|
92
|
-
'undo',
|
93
|
-
'redo',
|
94
|
-
'|',
|
95
|
-
'subscript',
|
96
|
-
'superscript',
|
97
|
-
'|',
|
98
|
-
'codeBlock',
|
99
|
-
'code',
|
100
|
-
'|',
|
101
|
-
'MathType',
|
102
|
-
'ChemType',
|
103
|
-
'specialCharacters'
|
104
|
-
]
|
105
|
-
},
|
106
|
-
language: 'en',
|
107
|
-
table: {
|
108
|
-
contentToolbar: [
|
109
|
-
'tableColumn',
|
110
|
-
'tableRow',
|
111
|
-
'mergeTableCells',
|
112
|
-
'tableCellProperties',
|
113
|
-
'tableProperties'
|
114
|
-
]
|
115
|
-
},
|
116
|
-
licenseKey: '',
|
117
|
-
} )
|
118
|
-
.then( editor => {
|
119
|
-
window.editor = editor;
|
120
|
-
} )
|
121
|
-
.catch( error => {
|
122
|
-
console.error( 'Oops, something gone wrong!' );
|
123
|
-
console.error( 'Please, report the following error in the https://github.com/ckeditor/ckeditor5 with the build id and the error stack trace:' );
|
124
|
-
console.warn( 'Build id: ulhl6ym1zxhr-qh8kt6relt0l' );
|
125
|
-
console.error( error );
|
126
|
-
} );
|
127
|
-
</script>
|
128
|
-
<!-- JavaScript CKEditor -->
|
129
|
-
|
130
|
-
</body>
|
131
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
|
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 charset="utf-8">
|
12
|
+
<title><%= yield(:phc_seo_title) %></title>
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
14
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
|
+
<!-- SEO and Site Description -->
|
16
|
+
|
17
|
+
<!-- Rails Security Tags -->
|
18
|
+
<%= csrf_meta_tags %>
|
19
|
+
<%= csp_meta_tag %>
|
20
|
+
<!-- Rails Security Tags -->
|
21
|
+
|
22
|
+
<!-- CSS Styles -->
|
23
|
+
<%= stylesheet_link_tag "phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
|
+
<!-- CSS Styles -->
|
25
|
+
|
26
|
+
<!-- JavaScript -->
|
27
|
+
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
+
<!-- JavaScript -->
|
29
|
+
|
30
|
+
</head>
|
31
|
+
<body>
|
32
|
+
|
33
|
+
<!-- Page Container -->
|
34
|
+
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
|
35
|
+
|
36
|
+
<!-- Page Header -->
|
37
|
+
<div id="header" class="header navbar-default">
|
38
|
+
<%= render "layouts/phcdevworks_scripts/components/backend/navigation/top_menu" %>
|
39
|
+
</div>
|
40
|
+
<!-- Page Header -->
|
41
|
+
|
42
|
+
<!-- Page Sidebar -->
|
43
|
+
<div id="sidebar" class="sidebar">
|
44
|
+
<%= render "layouts/phcdevworks_scripts/components/backend/sidebars/side_menu" %>
|
45
|
+
</div>
|
46
|
+
<div class="sidebar-bg"></div>
|
47
|
+
<!-- Page Sidebar -->
|
48
|
+
|
49
|
+
<!-- Page Content -->
|
50
|
+
<div id="content" class="content">
|
51
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
+
<%= yield %>
|
53
|
+
</div>
|
54
|
+
<!-- Page Content -->
|
55
|
+
|
56
|
+
<!-- Footer Content -->
|
57
|
+
<div id="footer" class="footer mb-4">
|
58
|
+
<%= render "layouts/phcdevworks_scripts/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- Footer Content -->
|
61
|
+
|
62
|
+
</div>
|
63
|
+
<!-- Page Container -->
|
64
|
+
|
65
|
+
<!-- JavaScript CKEditor -->
|
66
|
+
<script>ClassicEditor
|
67
|
+
.create( document.querySelector( '.editor' ), {
|
68
|
+
toolbar: {
|
69
|
+
items: [
|
70
|
+
'heading',
|
71
|
+
'|',
|
72
|
+
'fontBackgroundColor',
|
73
|
+
'fontColor',
|
74
|
+
'horizontalLine',
|
75
|
+
'fontSize',
|
76
|
+
'fontFamily',
|
77
|
+
'highlight',
|
78
|
+
'|',
|
79
|
+
'bold',
|
80
|
+
'underline',
|
81
|
+
'italic',
|
82
|
+
'strikethrough',
|
83
|
+
'link',
|
84
|
+
'removeFormat',
|
85
|
+
'|',
|
86
|
+
'alignment',
|
87
|
+
'indent',
|
88
|
+
'outdent',
|
89
|
+
'|',
|
90
|
+
'blockQuote',
|
91
|
+
'insertTable',
|
92
|
+
'undo',
|
93
|
+
'redo',
|
94
|
+
'|',
|
95
|
+
'subscript',
|
96
|
+
'superscript',
|
97
|
+
'|',
|
98
|
+
'codeBlock',
|
99
|
+
'code',
|
100
|
+
'|',
|
101
|
+
'MathType',
|
102
|
+
'ChemType',
|
103
|
+
'specialCharacters'
|
104
|
+
]
|
105
|
+
},
|
106
|
+
language: 'en',
|
107
|
+
table: {
|
108
|
+
contentToolbar: [
|
109
|
+
'tableColumn',
|
110
|
+
'tableRow',
|
111
|
+
'mergeTableCells',
|
112
|
+
'tableCellProperties',
|
113
|
+
'tableProperties'
|
114
|
+
]
|
115
|
+
},
|
116
|
+
licenseKey: '',
|
117
|
+
} )
|
118
|
+
.then( editor => {
|
119
|
+
window.editor = editor;
|
120
|
+
} )
|
121
|
+
.catch( error => {
|
122
|
+
console.error( 'Oops, something gone wrong!' );
|
123
|
+
console.error( 'Please, report the following error in the https://github.com/ckeditor/ckeditor5 with the build id and the error stack trace:' );
|
124
|
+
console.warn( 'Build id: ulhl6ym1zxhr-qh8kt6relt0l' );
|
125
|
+
console.error( error );
|
126
|
+
} );
|
127
|
+
</script>
|
128
|
+
<!-- JavaScript CKEditor -->
|
129
|
+
|
130
|
+
</body>
|
131
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,37 +1,37 @@
|
|
1
|
-
<!-- Form - Script - Authors -->
|
2
|
-
<%= form_with(model: script_author, local: true) do |form| %>
|
3
|
-
|
4
|
-
<!-- PHCNotifi Render Validation -->
|
5
|
-
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @script_author %>
|
6
|
-
<!-- PHCNotifi Render Validation -->
|
7
|
-
|
8
|
-
<!-- Form Input Fields -->
|
9
|
-
<div class="form-group field_with_errors">
|
10
|
-
<%= form.label :script_author_first_name, "Author First Name" %>
|
11
|
-
<%= form.text_field :script_author_first_name, placeholder: "Author First Name", class: "form-control" %>
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div class="form-group field_with_errors">
|
15
|
-
<%= form.label :script_author_last_name, "Author Last Name" %>
|
16
|
-
<%= form.text_field :script_author_last_name, placeholder: "Author Last Name", class: "form-control" %>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div class="form-group field_with_errors">
|
20
|
-
<%= form.label :script_author_website, "Author Website" %>
|
21
|
-
<%= form.text_field :script_author_website, placeholder: "Author Website", class: "form-control" %>
|
22
|
-
</div>
|
23
|
-
|
24
|
-
<div class="form-group field_with_errors">
|
25
|
-
<%= form.label :script_author_github, "Author Github Address" %>
|
26
|
-
<%= form.text_field :script_author_github, placeholder: "Author Github Address", class: "form-control" %>
|
27
|
-
</div>
|
28
|
-
<!-- Form Input Fields -->
|
29
|
-
|
30
|
-
<!-- Form Submition Button -->
|
31
|
-
<div class="actions">
|
32
|
-
<%= form.submit class: "btn btn-primary" %>
|
33
|
-
</div>
|
34
|
-
<!-- For Submition Button -->
|
35
|
-
|
36
|
-
<% end %>
|
37
|
-
<!-- Form - Script - Authors -->
|
1
|
+
<!-- Form - Script - Authors -->
|
2
|
+
<%= form_with(model: script_author, local: true) do |form| %>
|
3
|
+
|
4
|
+
<!-- PHCNotifi Render Validation -->
|
5
|
+
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @script_author %>
|
6
|
+
<!-- PHCNotifi Render Validation -->
|
7
|
+
|
8
|
+
<!-- Form Input Fields -->
|
9
|
+
<div class="form-group field_with_errors">
|
10
|
+
<%= form.label :script_author_first_name, "Author First Name" %>
|
11
|
+
<%= form.text_field :script_author_first_name, placeholder: "Author First Name", class: "form-control" %>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="form-group field_with_errors">
|
15
|
+
<%= form.label :script_author_last_name, "Author Last Name" %>
|
16
|
+
<%= form.text_field :script_author_last_name, placeholder: "Author Last Name", class: "form-control" %>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="form-group field_with_errors">
|
20
|
+
<%= form.label :script_author_website, "Author Website" %>
|
21
|
+
<%= form.text_field :script_author_website, placeholder: "Author Website", class: "form-control" %>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
<div class="form-group field_with_errors">
|
25
|
+
<%= form.label :script_author_github, "Author Github Address" %>
|
26
|
+
<%= form.text_field :script_author_github, placeholder: "Author Github Address", class: "form-control" %>
|
27
|
+
</div>
|
28
|
+
<!-- Form Input Fields -->
|
29
|
+
|
30
|
+
<!-- Form Submition Button -->
|
31
|
+
<div class="actions">
|
32
|
+
<%= form.submit class: "btn btn-primary" %>
|
33
|
+
</div>
|
34
|
+
<!-- For Submition Button -->
|
35
|
+
|
36
|
+
<% end %>
|
37
|
+
<!-- Form - Script - Authors -->
|
@@ -1,49 +1,49 @@
|
|
1
|
-
<!-- PHCTitleSEO Title Variables -->
|
2
|
-
<% phc_title "Script Authors" %>
|
3
|
-
<% phc_title_tagline "Update Author Data" %>
|
4
|
-
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
-
<% phc_breadcrumb_two link_to "Author Index", phcdevworks_scripts.script_authors_path %>
|
6
|
-
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
-
<!-- PHCTitleSEO Title Variables -->
|
8
|
-
|
9
|
-
<!-- Page Bradcrumbs -->
|
10
|
-
<ol class="breadcrumb pull-right">
|
11
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
-
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
-
</ol>
|
15
|
-
<!-- Page Bradcrumbs -->
|
16
|
-
|
17
|
-
<!-- Page Header -->
|
18
|
-
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
|
-
<!-- Page Header -->
|
20
|
-
|
21
|
-
<!-- Page Content -->
|
22
|
-
<div class="row">
|
23
|
-
<div class="col-lg-12">
|
24
|
-
|
25
|
-
<!-- Panel -->
|
26
|
-
<div class="panel panel-inverse">
|
27
|
-
|
28
|
-
<!-- Panel - Heading -->
|
29
|
-
<div class="panel-heading">
|
30
|
-
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
31
|
-
</div>
|
32
|
-
<!-- Panel - Heading -->
|
33
|
-
|
34
|
-
<!-- Panel - Body -->
|
35
|
-
<div class="panel-body">
|
36
|
-
|
37
|
-
<!-- Edit Form -->
|
38
|
-
<%= render "form", script_author: @script_author %>
|
39
|
-
<!-- Edit Form -->
|
40
|
-
|
41
|
-
</div>
|
42
|
-
<!-- Panel - Body -->
|
43
|
-
|
44
|
-
</div>
|
45
|
-
<!-- Panel -->
|
46
|
-
|
47
|
-
</div>
|
48
|
-
</div>
|
49
|
-
<!-- Page Content -->
|
1
|
+
<!-- PHCTitleSEO Title Variables -->
|
2
|
+
<% phc_title "Script Authors" %>
|
3
|
+
<% phc_title_tagline "Update Author Data" %>
|
4
|
+
<% phc_breadcrumb_one link_to "Script Index", phcdevworks_scripts.script_listings_path %>
|
5
|
+
<% phc_breadcrumb_two link_to "Author Index", phcdevworks_scripts.script_authors_path %>
|
6
|
+
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
7
|
+
<!-- PHCTitleSEO Title Variables -->
|
8
|
+
|
9
|
+
<!-- Page Bradcrumbs -->
|
10
|
+
<ol class="breadcrumb pull-right">
|
11
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
12
|
+
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
13
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
|
14
|
+
</ol>
|
15
|
+
<!-- Page Bradcrumbs -->
|
16
|
+
|
17
|
+
<!-- Page Header -->
|
18
|
+
<h2 class="page-header"><%= yield(:phc_title) %></h2>
|
19
|
+
<!-- Page Header -->
|
20
|
+
|
21
|
+
<!-- Page Content -->
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<!-- Panel -->
|
26
|
+
<div class="panel panel-inverse">
|
27
|
+
|
28
|
+
<!-- Panel - Heading -->
|
29
|
+
<div class="panel-heading">
|
30
|
+
<h4 class="panel-title"><%= yield(:phc_title) %></h4>
|
31
|
+
</div>
|
32
|
+
<!-- Panel - Heading -->
|
33
|
+
|
34
|
+
<!-- Panel - Body -->
|
35
|
+
<div class="panel-body">
|
36
|
+
|
37
|
+
<!-- Edit Form -->
|
38
|
+
<%= render "form", script_author: @script_author %>
|
39
|
+
<!-- Edit Form -->
|
40
|
+
|
41
|
+
</div>
|
42
|
+
<!-- Panel - Body -->
|
43
|
+
|
44
|
+
</div>
|
45
|
+
<!-- Panel -->
|
46
|
+
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
<!-- Page Content -->
|