rails_app 0.5.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +30 -1
  4. data/bin/rails_app +1 -1
  5. data/lib/rails_app/cli.rb +16 -7
  6. data/lib/rails_app/command.rb +8 -3
  7. data/lib/rails_app/options_data.rb +57 -0
  8. data/lib/rails_app/rails_app.rb +2 -2
  9. data/lib/rails_app/template/app_bulma/assets/stylesheets/application.bulma.scss +43 -0
  10. data/lib/rails_app/template/app_bulma/views/devise/confirmations/new.html.erb +16 -0
  11. data/lib/rails_app/template/app_bulma/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  12. data/lib/rails_app/template/app_bulma/views/devise/mailer/email_changed.html.erb +7 -0
  13. data/lib/rails_app/template/app_bulma/views/devise/mailer/password_change.html.erb +3 -0
  14. data/lib/rails_app/template/app_bulma/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  15. data/lib/rails_app/template/app_bulma/views/devise/mailer/unlock_instructions.html.erb +7 -0
  16. data/lib/rails_app/template/app_bulma/views/devise/passwords/edit.html.erb +25 -0
  17. data/lib/rails_app/template/app_bulma/views/devise/passwords/new.html.erb +16 -0
  18. data/lib/rails_app/template/app_bulma/views/devise/registrations/edit.html.erb +43 -0
  19. data/lib/rails_app/template/app_bulma/views/devise/registrations/new.html.erb +29 -0
  20. data/lib/rails_app/template/app_bulma/views/devise/sessions/new.html.erb +26 -0
  21. data/lib/rails_app/template/app_bulma/views/devise/shared/_error_messages.html.erb +15 -0
  22. data/lib/rails_app/template/app_bulma/views/devise/shared/_links.html.erb +25 -0
  23. data/lib/rails_app/template/app_bulma/views/devise/unlocks/new.html.erb +16 -0
  24. data/lib/rails_app/template/app_bulma/views/layouts/application.html.erb +19 -0
  25. data/lib/rails_app/template/app_bulma/views/layouts/mailer.html.erb +13 -0
  26. data/lib/rails_app/template/app_bulma/views/layouts/mailer.text.erb +1 -0
  27. data/lib/rails_app/template/app_bulma/views/shared/_navbar.html.erb +33 -0
  28. data/lib/rails_app/template/app_bulma/views/static/home.html.erb +2 -0
  29. data/lib/rails_app/template/app_tailwind/assets/stylesheets/application.tailwind.css +18 -0
  30. data/lib/rails_app/template/app_tailwind/assets/stylesheets/components/alerts.css +8 -0
  31. data/lib/rails_app/template/app_tailwind/assets/stylesheets/components/buttons.css +30 -0
  32. data/lib/rails_app/template/app_tailwind/assets/stylesheets/components/cards.css +3 -0
  33. data/lib/rails_app/template/app_tailwind/assets/stylesheets/components/forms.css +21 -0
  34. data/lib/rails_app/template/app_tailwind/assets/stylesheets/components/links.css +39 -0
  35. data/lib/rails_app/template/app_tailwind/assets/stylesheets/components/pagination.css +39 -0
  36. data/lib/rails_app/template/app_tailwind/assets/stylesheets/components/tables.css +19 -0
  37. data/lib/rails_app/template/app_tailwind/assets/stylesheets/components/typography.css +32 -0
  38. data/lib/rails_app/template/app_tailwind/assets/stylesheets/custom.css +3 -0
  39. data/lib/rails_app/template/app_tailwind/assets/stylesheets/flatpickr_themes/light.css +809 -0
  40. data/lib/rails_app/template/app_tailwind/assets/stylesheets/simple_calendar.css +94 -0
  41. data/lib/rails_app/template/app_tailwind/postcss.config.js +10 -0
  42. data/lib/rails_app/template/app_tailwind/tailwind.config.js +37 -0
  43. data/lib/rails_app/template/app_tailwind/views/devise/confirmations/new.html.erb +16 -0
  44. data/lib/rails_app/template/app_tailwind/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  45. data/lib/rails_app/template/app_tailwind/views/devise/mailer/email_changed.html.erb +7 -0
  46. data/lib/rails_app/template/app_tailwind/views/devise/mailer/password_change.html.erb +3 -0
  47. data/lib/rails_app/template/app_tailwind/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  48. data/lib/rails_app/template/app_tailwind/views/devise/mailer/unlock_instructions.html.erb +7 -0
  49. data/lib/rails_app/template/app_tailwind/views/devise/passwords/edit.html.erb +25 -0
  50. data/lib/rails_app/template/app_tailwind/views/devise/passwords/new.html.erb +16 -0
  51. data/lib/rails_app/template/app_tailwind/views/devise/registrations/edit.html.erb +50 -0
  52. data/lib/rails_app/template/app_tailwind/views/devise/registrations/new.html.erb +31 -0
  53. data/lib/rails_app/template/app_tailwind/views/devise/sessions/new.html.erb +30 -0
  54. data/lib/rails_app/template/app_tailwind/views/devise/shared/_error_messages.html.erb +15 -0
  55. data/lib/rails_app/template/app_tailwind/views/devise/shared/_links.html.erb +25 -0
  56. data/lib/rails_app/template/app_tailwind/views/devise/unlocks/new.html.erb +16 -0
  57. data/lib/rails_app/template/app_tailwind/views/layouts/application.html.erb +28 -0
  58. data/lib/rails_app/template/app_tailwind/views/layouts/mailer.html.erb +13 -0
  59. data/lib/rails_app/template/app_tailwind/views/layouts/mailer.text.erb +1 -0
  60. data/lib/rails_app/template/app_tailwind/views/shared/_navbar.html.erb +23 -0
  61. data/lib/rails_app/template/app_tailwind/views/static/home.html.erb +2 -0
  62. data/lib/rails_app/template/template.rb +13 -5
  63. data/lib/rails_app/version.rb +1 -1
  64. data/lib/rails_app.rb +1 -0
  65. data/screenshot_cli.png +0 -0
  66. data/screenshot_cli_db.png +0 -0
  67. metadata +56 -1
@@ -0,0 +1,30 @@
1
+ .btn {
2
+ @apply focus:ring-4 font-medium focus:outline-none;
3
+ @apply px-5 py-2.5;
4
+ }
5
+
6
+ .btn-sm {
7
+ @apply focus:ring-4 font-medium focus:outline-none;
8
+ @apply px-3 py-1.5;
9
+ }
10
+
11
+ .btn-primary {
12
+ @apply text-sm font-medium text-white;
13
+ @apply bg-primary-700 hover:bg-primary-800 focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800;
14
+ }
15
+
16
+ .btn-outline-primary {
17
+ @apply text-sm font-medium text-primary-700;
18
+ @apply border border-primary-700 hover:bg-primary-700 hover:text-white focus:ring-primary-300 dark:border-primary-600 dark:hover:bg-primary-600 dark:hover:text-white dark:focus:ring-primary-800;
19
+ }
20
+
21
+ .btn-success {
22
+ @apply text-sm font-medium text-white;
23
+ @apply bg-success-700 hover:bg-success-800 focus:ring-success-300 dark:bg-success-600 dark:hover:bg-success-700 dark:focus:ring-success-800;
24
+ }
25
+
26
+ .btn-outline-success {
27
+ @apply text-sm font-medium text-success-700;
28
+ @apply border border-success-700 hover:bg-success-700 hover:text-white focus:ring-success-300 dark:border-success-600 dark:hover:bg-success-600 dark:hover:text-white dark:focus:ring-success-800;
29
+ }
30
+
@@ -0,0 +1,3 @@
1
+ .card {
2
+ @apply block p-6 bg-white border border-gray-200 shadow;
3
+ }
@@ -0,0 +1,21 @@
1
+ @layer components {
2
+ .form-control {
3
+ @apply bg-gray-50 border border-gray-300 text-gray-900 text-sm focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500;
4
+ }
5
+
6
+ .form-control-sm {
7
+ @apply block w-full p-2 text-gray-900 border border-gray-300 bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500;
8
+ }
9
+
10
+ .form-label {
11
+ @apply block mb-1 pr-1 text-sm font-medium text-gray-900 dark:text-white;
12
+ }
13
+
14
+ .form-check-input {
15
+ @apply w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 dark:focus:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600;
16
+ }
17
+
18
+ .form-select {
19
+ @apply bg-gray-50 border border-gray-300 text-gray-900 text-sm focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500;
20
+ }
21
+ }
@@ -0,0 +1,39 @@
1
+ .nav-link {
2
+ @apply block py-2 px-3 text-gray-900 rounded md:border-0 md:p-0;
3
+ @apply text-gray-900 capitalize hover:bg-gray-200 md:dark:hover:text-red-500 md:hover:bg-transparent md:border-0 md:hover:text-red-700 md:p-0;
4
+ @apply dark:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent;
5
+
6
+ &.active {
7
+ @apply text-red-500;
8
+ }
9
+
10
+ &.hover {
11
+ @apply text-red-500;
12
+ }
13
+
14
+ a {
15
+ @apply text-gray-200;
16
+ }
17
+ }
18
+
19
+ .nav-link-dropdown {
20
+ @apply block text-gray-900 px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white;
21
+
22
+ &.active {
23
+ @apply text-red-500;
24
+ }
25
+ }
26
+
27
+ .nav-dropdown-menu {
28
+ @apply z-10 hidden font-normal bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700 dark:divide-gray-600;
29
+ }
30
+
31
+ .nav-dropdown-button {
32
+ @apply flex items-center justify-between w-full py-2 px-3 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 md:w-auto dark:text-white md:dark:hover:text-blue-500 dark:focus:text-white dark:border-gray-700 dark:hover:bg-gray-700 md:dark:hover:bg-transparent;
33
+ }
34
+
35
+ .admin-nav-link-active {
36
+ svg {
37
+ @apply text-white;
38
+ }
39
+ }
@@ -0,0 +1,39 @@
1
+ /* Light Jumpstart theme for Pagy's default renderer */
2
+
3
+ .pagination {
4
+ @apply inline-flex flex-wrap items-center justify-start;
5
+
6
+ .page {
7
+ &:first-child a, &:first-child {
8
+ @apply rounded-tl rounded-bl;
9
+ }
10
+
11
+ &:last-child a, &:last-child {
12
+ @apply rounded-tr rounded-br;
13
+ }
14
+ }
15
+
16
+ .disabled, .gap {
17
+ @apply border relative block leading-tight bg-white text-gray-500 no-underline py-2 px-3;
18
+ @apply dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600;
19
+ margin-left: -1px;
20
+ }
21
+
22
+ .page {
23
+ &.active {
24
+ @apply z-10 border border-primary-500 bg-primary-500 text-white relative block leading-tight no-underline py-2 px-3;
25
+ @apply dark:bg-primary-800 dark:text-gray-200 dark:border-primary-600;
26
+ margin-left: -1px;
27
+ }
28
+
29
+ a {
30
+ @apply border relative block leading-tight bg-white text-primary-500 no-underline py-2 px-3;
31
+ @apply dark:bg-gray-800 dark:text-gray-200 dark:border-gray-600;
32
+ margin-left: -1px;
33
+
34
+ &:hover {
35
+ @apply bg-gray-200 dark:bg-gray-700;
36
+ }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,19 @@
1
+ .admin-table {
2
+ @apply w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400 border rounded;
3
+
4
+ thead {
5
+ @apply text-xs text-gray-700 uppercase bg-gray-100 dark:bg-gray-700 dark:text-gray-400;
6
+ }
7
+
8
+ thead tr th {
9
+ @apply border px-4 py-2;
10
+ }
11
+
12
+ tbody tr {
13
+ @apply bg-white border-b dark:bg-gray-800 dark:border-gray-700;
14
+ }
15
+
16
+ tbody tr td {
17
+ @apply border px-4 py-2;
18
+ }
19
+ }
@@ -0,0 +1,32 @@
1
+ .font-display {
2
+ @apply text-5xl font-bold leading-tight tracking-tight;
3
+ }
4
+
5
+
6
+ h1, .h1 {
7
+ @apply text-4xl font-bold leading-tight tracking-tight;
8
+ }
9
+
10
+ h2, .h2 {
11
+ @apply text-3xl font-bold leading-tight;
12
+ }
13
+
14
+ h3, .h3 {
15
+ @apply text-2xl font-bold leading-normal;
16
+ }
17
+
18
+ h4, .h4 {
19
+ @apply text-xl font-bold leading-normal;
20
+ }
21
+
22
+ h5, .h5 {
23
+ @apply text-lg font-bold leading-normal;
24
+ }
25
+
26
+ h6, .h6 {
27
+ @apply font-bold;
28
+ }
29
+
30
+ a {
31
+ @apply text-primary-600 hover:text-primary-500;
32
+ }
@@ -0,0 +1,3 @@
1
+ .debug-dump {
2
+ color: red;
3
+ }