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_. 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.
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
## Development setup ## Development setup

View File

@ -5,12 +5,12 @@ class UserMailer < ApplicationMailer
@user = params[:user] @user = params[:user]
@token = params[:token] @token = params[:token]
mail(to: @user.email, subject: "[Forg] Verify your email") mail(to: @user.email, subject: "[Tabletop Companion] Verify your email")
end end
def email_verified def email_verified
@user = params[:user] @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
end end

View File

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

View File

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

View File

@ -7,4 +7,4 @@ test:
production: production:
adapter: redis adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> 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: development:
<<: *default <<: *default
database: forg_development database: tabletop_companion_development
test: test:
<<: *default <<: *default
database: forg_test database: tabletop_companion_test
production: production:
<<: *default <<: *default
database: forg_production database: tabletop_companion_production

View File

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

View File

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