File tree 17 files changed +64
-48
lines changed
17 files changed +64
-48
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,13 @@ require "capistrano/maintenance"
41
41
require "capistrano/puma"
42
42
install_plugin Capistrano ::Puma # Default puma tasks
43
43
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
44
46
45
47
require "capistrano/sidekiq"
46
48
install_plugin Capistrano ::Sidekiq
47
49
install_plugin Capistrano ::Sidekiq ::Systemd
50
+ install_plugin Capistrano ::Sidekiq ::Monit
48
51
49
52
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
50
53
Dir . glob ( "lib/capistrano/tasks/*.rake" ) . each { |r | import r }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import "./timezone";
4
4
import Rails from "@rails/ujs" ;
5
5
import * as ActiveStorage from "@rails/activestorage" ;
6
6
import LocalTime from "local-time" ;
7
- import "channels" ;
7
+ import "../ channels" ;
8
8
9
9
import "bootstrap" ;
10
10
import "@fortawesome/fontawesome-free/css/all" ;
@@ -13,6 +13,6 @@ Rails.start();
13
13
ActiveStorage . start ( ) ;
14
14
LocalTime . start ( ) ;
15
15
16
- import "controllers"
16
+ import "../ controllers"
17
17
18
18
// require.context('../images', true);
Original file line number Diff line number Diff line change 1
- import * as jstz from " jstz" ;
1
+ import * as jstz from ' jstz' ;
2
2
3
3
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` ;
7
7
}
8
8
9
9
const timezone = jstz . determine ( ) ;
10
10
console . log ( timezone . name ( ) ) ;
11
- setCookie ( 'timezone' , timezone . name ( ) ) ;
11
+ setCookie ( 'timezone' , timezone . name ( ) ) ;
Original file line number Diff line number Diff line change 1
- < div class =" container " >
2
- < h1 class =" mb-3 " > What's New </ h1 >
1
+ <% title t('.title') % >
2
+ <h1 > <%= t ( '.title' ) %> </ h1 >
3
3
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 %>
8
7
<% end %>
8
+ <% end %>
9
9
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 %>
13
13
14
- <%== pagy_bootstrap_nav ( @pagy ) %>
14
+ <%== pagy_nav ( @pagy ) %>
15
15
16
- </ div >
Original file line number Diff line number Diff line change 1
- < h1 > Notifications</ h1 >
1
+ <% title t('.title') %>
2
+ <h1 > <%= t ( '.title' ) %> </ h1 >
2
3
3
4
<%= render @notifications %>
Original file line number Diff line number Diff line change
1
+ <% title t('.title') %>
1
2
<h1 > <%= t ( '.title' ) %> </ h1 >
Original file line number Diff line number Diff line change
1
+ <% title t('.title') %>
1
2
<h1 > <%= t ( '.title' ) %> </ h1 >
3
+
2
4
< p class ="lead "> Use this for your Privacy Policy</ p >
Original file line number Diff line number Diff line change
1
+ <% title t('.title') %>
1
2
<h1 > <%= t ( '.title' ) %> </ h1 >
3
+
2
4
< p class ="lead "> Use this for your Terms of Service</ p >
Original file line number Diff line number Diff line change @@ -41,10 +41,13 @@ require "capistrano/maintenance"
41
41
require "capistrano/puma"
42
42
install_plugin Capistrano ::Puma # Default puma tasks
43
43
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
44
46
45
47
require "capistrano/sidekiq"
46
48
install_plugin Capistrano ::Sidekiq
47
49
install_plugin Capistrano ::Sidekiq ::Systemd
50
+ install_plugin Capistrano ::Sidekiq ::Monit
48
51
49
52
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
50
53
Dir . glob ( "lib/capistrano/tasks/*.rake" ) . each { |r | import r }
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ import "./timezone";
4
4
import Rails from "@rails/ujs" ;
5
5
import * as ActiveStorage from "@rails/activestorage" ;
6
6
import LocalTime from "local-time" ;
7
- import "channels" ;
7
+ import "../ channels" ;
8
8
9
9
import "@fortawesome/fontawesome-free/css/all" ;
10
10
11
11
Rails . start ( ) ;
12
12
ActiveStorage . start ( ) ;
13
13
LocalTime . start ( ) ;
14
14
15
- import "controllers"
15
+ import "../ controllers"
16
16
17
17
// require.context('../images', true);
Original file line number Diff line number Diff line change 1
- import * as jstz from " jstz" ;
1
+ import * as jstz from ' jstz' ;
2
2
3
3
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` ;
7
7
}
8
8
9
9
const timezone = jstz . determine ( ) ;
10
10
console . log ( timezone . name ( ) ) ;
11
- setCookie ( 'timezone' , timezone . name ( ) ) ;
11
+ setCookie ( 'timezone' , timezone . name ( ) ) ;
Original file line number Diff line number Diff line change 1
- @import " tailwindcss/base" ;
1
+ @import ' tailwindcss/base' ;
2
2
3
- @import " tailwindcss/components" ;
3
+ @import ' tailwindcss/components' ;
4
4
5
- @import " tailwindcss/utilities" ;
5
+ @import ' tailwindcss/utilities' ;
6
6
7
- @import " pagy" ;
7
+ @import ' pagy' ;
8
8
9
9
// Announcements
10
10
15
15
}
16
16
}
17
17
18
- .unread-announcements :before {
18
+ .unread-announcements :: before {
19
19
-moz-border-radius : 50% ;
20
20
-webkit-border-radius : 50% ;
21
21
border-radius : 50% ;
22
22
-moz-background-clip : padding-box ;
23
23
-webkit-background-clip : padding-box ;
24
- background-clip : padding-box ;
25
24
background : indianred ;
25
+ background-clip : padding-box ;
26
26
content : ' ' ;
27
27
display : inline-block ;
28
28
height : 8px ;
29
29
width : 8px ;
30
30
margin-right : 6px ;
31
- }
31
+ }
Original file line number Diff line number Diff line change 1
- < div class =" container " >
2
- < h1 class =" mb-3 " > What's New </ h1 >
1
+ <% title t('.title') % >
2
+ <h1 > <%= t ( '.title' ) %> </ h1 >
3
3
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 %>
8
7
<% end %>
8
+ <% end %>
9
9
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 %>
13
13
14
- <%== pagy_nav ( @pagy ) %>
14
+ <%== pagy_nav ( @pagy ) %>
15
15
16
- </ div >
Original file line number Diff line number Diff line change 1
- < h1 > Notifications</ h1 >
1
+ <% title t('.title') %>
2
+ <h1 > <%= t ( '.title' ) %> </ h1 >
2
3
3
4
<%= render @notifications %>
Original file line number Diff line number Diff line change 1
- < h1 > <%= t ( '.title' ) %> </ h1 >
1
+ <% title t('.title') %>
2
+ <h1 > <%= t ( '.title' ) %> </ h1 >
Original file line number Diff line number Diff line change
1
+ <% title t('.title') %>
1
2
<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 number Diff line number Diff line change
1
+ <% title t('.title') %>
1
2
<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 >
You can’t perform that action at this time.
0 commit comments