Skip to content

Commit 0b1b789

Browse files
committed
chore: update views and Capfile
1 parent 68181f7 commit 0b1b789

File tree

17 files changed

+64
-48
lines changed

17 files changed

+64
-48
lines changed

rails-bootstrap/Capfile

+3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ require "capistrano/maintenance"
4141
require "capistrano/puma"
4242
install_plugin Capistrano::Puma # Default puma tasks
4343
install_plugin Capistrano::Puma::Workers # if you want to control the workers (in cluster mode)
44+
install_plugin Capistrano::Puma::Monit # if you need the monit tasks
45+
install_plugin Capistrano::Puma::Nginx # if you want to upload a nginx site template
4446

4547
require "capistrano/sidekiq"
4648
install_plugin Capistrano::Sidekiq
4749
install_plugin Capistrano::Sidekiq::Systemd
50+
install_plugin Capistrano::Sidekiq::Monit
4851

4952
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
5053
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }

rails-bootstrap/app/frontend/packs/application.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "./timezone";
44
import Rails from "@rails/ujs";
55
import * as ActiveStorage from "@rails/activestorage";
66
import LocalTime from "local-time";
7-
import "channels";
7+
import "../channels";
88

99
import "bootstrap";
1010
import "@fortawesome/fontawesome-free/css/all";
@@ -13,6 +13,6 @@ Rails.start();
1313
ActiveStorage.start();
1414
LocalTime.start();
1515

16-
import "controllers"
16+
import "../controllers"
1717

1818
// require.context('../images', true);
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import * as jstz from "jstz";
1+
import * as jstz from 'jstz';
22

33
function setCookie(name, value) {
4-
let expires = new Date();
5-
expires.setTime(expires.getTime() + (24 * 60 * 60 * 1000));
6-
document.cookie = name + '=' + value + ';expires=' + expires.toUTCString() + ';SameSite=Strict';
4+
const expires = new Date();
5+
expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000);
6+
document.cookie = `${name}=${value};expires=${expires.toUTCString()};SameSite=Strict`;
77
}
88

99
const timezone = jstz.determine();
1010
console.log(timezone.name());
11-
setCookie('timezone', timezone.name());
11+
setCookie('timezone', timezone.name());
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
<div class="container">
2-
<h1 class="mb-3">What's New</h1>
1+
<% title t('.title') %>
2+
<h1><%= t('.title') %></h1>
33

4-
<% @announcements.each do |announcement| %>
5-
<% cache announcement do %>
6-
<%= render announcement %>
7-
<% end %>
4+
<% @announcements.each do |announcement| %>
5+
<% cache announcement do %>
6+
<%= render announcement %>
87
<% end %>
8+
<% end %>
99

10-
<% if @announcements.empty? %>
11-
<div class="m-5">Exciting stuff coming very soon!</div>
12-
<% end %>
10+
<% if @announcements.empty? %>
11+
<div class="m-5">Exciting stuff coming very soon!</div>
12+
<% end %>
1313

14-
<%== pagy_bootstrap_nav(@pagy) %>
14+
<%== pagy_nav(@pagy) %>
1515

16-
</div>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
<h1>Notifications</h1>
1+
<% title t('.title') %>
2+
<h1><%= t('.title') %></h1>
23

34
<%= render @notifications %>
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
<% title t('.title') %>
12
<h1><%= t('.title') %></h1>
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
<% title t('.title') %>
12
<h1><%= t('.title') %></h1>
3+
24
<p class="lead">Use this for your Privacy Policy</p>
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
<% title t('.title') %>
12
<h1><%= t('.title') %></h1>
3+
24
<p class="lead">Use this for your Terms of Service</p>

rails-tailwind/Capfile

+3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ require "capistrano/maintenance"
4141
require "capistrano/puma"
4242
install_plugin Capistrano::Puma # Default puma tasks
4343
install_plugin Capistrano::Puma::Workers # if you want to control the workers (in cluster mode)
44+
install_plugin Capistrano::Puma::Monit # if you need the monit tasks
45+
install_plugin Capistrano::Puma::Nginx # if you want to upload a nginx site template
4446

4547
require "capistrano/sidekiq"
4648
install_plugin Capistrano::Sidekiq
4749
install_plugin Capistrano::Sidekiq::Systemd
50+
install_plugin Capistrano::Sidekiq::Monit
4851

4952
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
5053
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }

rails-tailwind/app/frontend/packs/application.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import "./timezone";
44
import Rails from "@rails/ujs";
55
import * as ActiveStorage from "@rails/activestorage";
66
import LocalTime from "local-time";
7-
import "channels";
7+
import "../channels";
88

99
import "@fortawesome/fontawesome-free/css/all";
1010

1111
Rails.start();
1212
ActiveStorage.start();
1313
LocalTime.start();
1414

15-
import "controllers"
15+
import "../controllers"
1616

1717
// require.context('../images', true);
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import * as jstz from "jstz";
1+
import * as jstz from 'jstz';
22

33
function setCookie(name, value) {
4-
let expires = new Date();
5-
expires.setTime(expires.getTime() + (24 * 60 * 60 * 1000));
6-
document.cookie = name + '=' + value + ';expires=' + expires.toUTCString() + ';SameSite=Strict';
4+
const expires = new Date();
5+
expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000);
6+
document.cookie = `${name}=${value};expires=${expires.toUTCString()};SameSite=Strict`;
77
}
88

99
const timezone = jstz.determine();
1010
console.log(timezone.name());
11-
setCookie('timezone', timezone.name());
11+
setCookie('timezone', timezone.name());
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
@import "tailwindcss/base";
1+
@import 'tailwindcss/base';
22

3-
@import "tailwindcss/components";
3+
@import 'tailwindcss/components';
44

5-
@import "tailwindcss/utilities";
5+
@import 'tailwindcss/utilities';
66

7-
@import "pagy";
7+
@import 'pagy';
88

99
// Announcements
1010

@@ -15,17 +15,17 @@
1515
}
1616
}
1717

18-
.unread-announcements:before {
18+
.unread-announcements::before {
1919
-moz-border-radius: 50%;
2020
-webkit-border-radius: 50%;
2121
border-radius: 50%;
2222
-moz-background-clip: padding-box;
2323
-webkit-background-clip: padding-box;
24-
background-clip: padding-box;
2524
background: indianred;
25+
background-clip: padding-box;
2626
content: '';
2727
display: inline-block;
2828
height: 8px;
2929
width: 8px;
3030
margin-right: 6px;
31-
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
<div class="container">
2-
<h1 class="mb-3">What's New</h1>
1+
<% title t('.title') %>
2+
<h1><%= t('.title') %></h1>
33

4-
<% @announcements.each do |announcement| %>
5-
<% cache announcement do %>
6-
<%= render announcement %>
7-
<% end %>
4+
<% @announcements.each do |announcement| %>
5+
<% cache announcement do %>
6+
<%= render announcement %>
87
<% end %>
8+
<% end %>
99

10-
<% if @announcements.empty? %>
11-
<div class="m-5">Exciting stuff coming very soon!</div>
12-
<% end %>
10+
<% if @announcements.empty? %>
11+
<div class="m-5">Exciting stuff coming very soon!</div>
12+
<% end %>
1313

14-
<%== pagy_nav(@pagy) %>
14+
<%== pagy_nav(@pagy) %>
1515

16-
</div>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
<h1>Notifications</h1>
1+
<% title t('.title') %>
2+
<h1><%= t('.title') %></h1>
23

34
<%= render @notifications %>
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
<h1><%= t('.title') %></h1>
1+
<% title t('.title') %>
2+
<h1><%= t('.title') %></h1>
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
<% title t('.title') %>
12
<h1><%= t('.title') %></h1>
2-
<p>Use this for your Privacy Policy</p>
3+
4+
<p class="lead">Use this for your Privacy Policy</p>
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
<% title t('.title') %>
12
<h1><%= t('.title') %></h1>
2-
<p>Use this for your Terms of Service</p>
3+
4+
<p class="lead">Use this for your Terms of Service</p>

0 commit comments

Comments
 (0)