phccodesnipper 1.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/controllers/phccodesnipper/application_controller.rb +17 -17
  4. data/app/controllers/phccodesnipper/script/snippets_controller.rb +11 -10
  5. data/app/controllers/phccodesnipper/script/urls_controller.rb +3 -3
  6. data/app/models/phccodesnipper/script/snippet.rb +23 -1
  7. data/app/models/phccodesnipper/script/url.rb +8 -0
  8. data/app/views/layouts/phccodesnipper/application.html.erb +6 -5
  9. data/app/views/layouts/phccodesnipper/components/backend/footer/_footer.html.erb +5 -5
  10. data/app/views/layouts/phccodesnipper/components/backend/sidebars/_side_menu.html.erb +43 -26
  11. data/app/views/phccodesnipper/script/snippets/_form.html.erb +20 -17
  12. data/app/views/phccodesnipper/script/snippets/edit.html.erb +17 -21
  13. data/app/views/phccodesnipper/script/snippets/index.html.erb +14 -21
  14. data/app/views/phccodesnipper/script/snippets/new.html.erb +18 -22
  15. data/app/views/phccodesnipper/script/snippets/show.html.erb +4 -16
  16. data/app/views/phccodesnipper/script/urls/_form.html.erb +14 -10
  17. data/app/views/phccodesnipper/script/urls/edit.html.erb +10 -6
  18. data/app/views/phccodesnipper/script/urls/index.html.erb +21 -29
  19. data/app/views/phccodesnipper/script/urls/new.html.erb +11 -7
  20. data/app/views/phccodesnipper/script/urls/show.html.erb +4 -16
  21. data/config/initializers/friendly_id.rb +107 -0
  22. data/config/routes.rb +4 -4
  23. data/db/migrate/20190508091330_create_phccodesnipper_script_snippets.rb +1 -1
  24. data/db/migrate/20190513040626_create_friendly_id_slugs.rb +21 -0
  25. data/lib/phccodesnipper/engine.rb +16 -15
  26. data/lib/phccodesnipper/version.rb +1 -1
  27. data/lib/phccodesnipper.rb +0 -1
  28. metadata +68 -75
  29. data/app/assets/javascripts/phccodesnipper/script/snippets.coffee +0 -3
  30. data/app/assets/stylesheets/phccodesnipper/script/snippets.scss +0 -3
  31. data/app/assets/stylesheets/scaffolds.scss +0 -65
@@ -1,3 +0,0 @@
1
- # Place all the behaviors and hooks related to the matching controller here.
2
- # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the script::snippets controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,65 +0,0 @@
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; }