Use existing codebase for Tabletop Companion

This commit is contained in:
Trevor Vallender 2024-05-26 09:06:27 +01:00
parent df777e9927
commit e3f53839d5
8 changed files with 21 additions and 28 deletions

View File

@ -1,14 +1,7 @@
# Forg
# Tabletop Companion
Forg is a _Family ORGaniser_.
It will allow you to:
- Set and assign todos
- Includes regularly scheduled tasks, such as housework
- Set a meal plan
- Allows for advanced reminders to cook/purchase ingredients/defrost
- Manage a shopping list
Tabletop Companion is a lightweight way to assist you playing tabletop games, online with
the video chat software of your choice or offline at a physical table.
## Development setup

View File

@ -5,12 +5,12 @@ class UserMailer < ApplicationMailer
@user = params[:user]
@token = params[:token]
mail(to: @user.email, subject: "[Forg] Verify your email")
mail(to: @user.email, subject: "[Tabletop Companion] Verify your email")
end
def email_verified
@user = params[:user]
mail(to: @user.email, subject: "[Forg] Your email has been verified")
mail(to: @user.email, subject: "[Tabletop Companion] Your email has been verified")
end
end

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><%= "#{yield(:title)} | " if content_for? :title %><%= t("forg") %></title>
<title><%= "#{yield(:title)} | " if content_for? :title %><%= t("site_name") %></title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
@ -14,11 +14,11 @@
<body>
<header>
<h1><%= link_to t("forg"), root_path %></h1>
<h1><%= link_to t("site_name"), root_path %></h1>
</header>
<nav>
<ul>
<li><%= link_to t("forg"), root_path %></li>
<li><%= link_to t("site_name"), root_path %></li>
<% if logged_in? %>
<li><%= link_to t("log_out"), logout_path, data: {turbo_method: :delete} %></li>
<% else %>

View File

@ -6,7 +6,7 @@ require "rails/all"
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module Forg
module TabletopCompanion
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 7.1

View File

@ -7,4 +7,4 @@ test:
production:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
channel_prefix: forg_production
channel_prefix: tabletop_companion_production

View File

@ -9,12 +9,12 @@ default: &default
development:
<<: *default
database: forg_development
database: tabletop_companion_development
test:
<<: *default
database: forg_test
database: tabletop_companion_test
production:
<<: *default
database: forg_production
database: tabletop_companion_production

View File

@ -1,5 +1,5 @@
en:
forg: Forg
site_name: Tabletop Companion
log_in: Log in
log_out: Log out
sign_up: Sign up
@ -9,8 +9,8 @@ en:
greeting: "Hello, %{name}"
sign_off: |
See you soon,
The Forg team
sign_off_html: "<p>See you soon,<br>The Forg team</p>"
The Tabletop Companion team
sign_off_html: "<p>See you soon,<br>The Tabletop Companion team</p>"
account_verifications:
show:
success: "Thanks for verifying your email address! You can now log in."
@ -31,16 +31,16 @@ en:
sign_up: Sign up
create:
error: "Could not create account: %{error}"
success: "Thanks for joining Forg, %{name}! Please check your email to verify your address."
success: "Thanks for joining Tabletop Companion, %{name}! Please check your email to verify your address."
user_mailer:
email_verified:
content: |-
Thanks for verifying your email address, and welcome to Forg!
Thanks for verifying your email address, and welcome to Tabletop Companion!
You can now go ahead and log in. Enjoy!
email_verification:
content: |-
If you did not sign up for Forg, please ignore this email.
If you did not sign up for Tabletop Companion, please ignore this email.
Otherwise, please visit the link below to verify your email address.

View File

@ -1,6 +1,6 @@
Rails.application.routes.draw do
get 'todos/index'
default_url_options host: "forg-app.com"
get "todos/index"
default_url_options host: "summonplayer.com"
root "todos#index"