first
This commit is contained in:
commit
5ae7c28432
207 changed files with 5691 additions and 0 deletions
43
.dockerignore
Normal file
43
.dockerignore
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
# Ignore git data and repository config
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.github
|
||||||
|
|
||||||
|
# Ignore bundler caching and local configs
|
||||||
|
/.bundle
|
||||||
|
/vendor/bundle
|
||||||
|
|
||||||
|
# Ignore local application configuration and secrets
|
||||||
|
/config/master.key
|
||||||
|
/config/credentials/*.key
|
||||||
|
/.env*
|
||||||
|
|
||||||
|
# Ignore log files and temporary runtime storage
|
||||||
|
/log/*
|
||||||
|
!/log/.keep
|
||||||
|
/tmp/*
|
||||||
|
!/tmp/.keep
|
||||||
|
|
||||||
|
# Ignore specific pid files but preserve directory tracking
|
||||||
|
/tmp/pids/*
|
||||||
|
!/tmp/pids/.keep
|
||||||
|
|
||||||
|
# Ignore active storage local uploads and development SQLite databases
|
||||||
|
/storage/*
|
||||||
|
!/storage/.keep
|
||||||
|
/tmp/storage/*
|
||||||
|
!/tmp/storage/.keep
|
||||||
|
/db/*.sqlite3
|
||||||
|
/db/*.sqlite3-journal
|
||||||
|
|
||||||
|
# Ignore JavaScript / CSS asset compilation source modules and artifacts
|
||||||
|
/node_modules
|
||||||
|
/npm-debug.log
|
||||||
|
/yarn-error.log
|
||||||
|
/app/assets/builds/*
|
||||||
|
!/app/assets/builds/.keep
|
||||||
|
/public/assets
|
||||||
|
|
||||||
|
# Ignore OS-specific system files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
9
.gitattributes
vendored
Normal file
9
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
|
||||||
|
|
||||||
|
# Mark the database schema as having been generated.
|
||||||
|
db/schema.rb linguist-generated
|
||||||
|
|
||||||
|
# Mark any vendored files as having been vendored.
|
||||||
|
vendor/* linguist-vendored
|
||||||
|
config/credentials/*.yml.enc diff=rails_credentials
|
||||||
|
config/credentials.yml.enc diff=rails_credentials
|
||||||
12
.github/dependabot.yml
vendored
Normal file
12
.github/dependabot.yml
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: bundler
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
open-pull-requests-limit: 10
|
||||||
130
.github/workflows/ci.yml
vendored
Normal file
130
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,130 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
scan_ruby:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
|
- name: Scan for common Rails security vulnerabilities using static analysis
|
||||||
|
run: bin/brakeman --no-pager
|
||||||
|
|
||||||
|
- name: Scan for known security vulnerabilities in gems used
|
||||||
|
run: bin/bundler-audit
|
||||||
|
|
||||||
|
scan_js:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
|
- name: Scan for security vulnerabilities in JavaScript dependencies
|
||||||
|
run: bin/importmap audit
|
||||||
|
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
RUBOCOP_CACHE_ROOT: tmp/rubocop
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
|
- name: Prepare RuboCop cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
env:
|
||||||
|
DEPENDENCIES_HASH: ${{ hashFiles('.ruby-version', '**/.rubocop.yml', '**/.rubocop_todo.yml', 'Gemfile.lock') }}
|
||||||
|
with:
|
||||||
|
path: ${{ env.RUBOCOP_CACHE_ROOT }}
|
||||||
|
key: rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-${{ github.ref_name == github.event.repository.default_branch && github.run_id || 'default' }}
|
||||||
|
restore-keys: |
|
||||||
|
rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-
|
||||||
|
|
||||||
|
- name: Lint code for consistent style
|
||||||
|
run: bin/rubocop -f github
|
||||||
|
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# services:
|
||||||
|
# redis:
|
||||||
|
# image: valkey/valkey:8
|
||||||
|
# ports:
|
||||||
|
# - 6379:6379
|
||||||
|
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y libvips
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
env:
|
||||||
|
RAILS_ENV: test
|
||||||
|
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
|
||||||
|
# REDIS_URL: redis://localhost:6379/0
|
||||||
|
run: bin/rails db:test:prepare test
|
||||||
|
|
||||||
|
system-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# services:
|
||||||
|
# redis:
|
||||||
|
# image: valkey/valkey:8
|
||||||
|
# ports:
|
||||||
|
# - 6379:6379
|
||||||
|
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
|
||||||
|
steps:
|
||||||
|
- name: Install packages
|
||||||
|
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y libvips
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
bundler-cache: true
|
||||||
|
|
||||||
|
- name: Run System Tests
|
||||||
|
env:
|
||||||
|
RAILS_ENV: test
|
||||||
|
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
|
||||||
|
# REDIS_URL: redis://localhost:6379/0
|
||||||
|
run: bin/rails db:test:prepare test:system
|
||||||
|
|
||||||
|
- name: Keep screenshots from failed system tests
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: screenshots
|
||||||
|
path: ${{ github.workspace }}/tmp/screenshots
|
||||||
|
if-no-files-found: ignore
|
||||||
41
.gitignore
vendored
Normal file
41
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
||||||
|
#
|
||||||
|
# Temporary files generated by your text editor or operating system
|
||||||
|
# belong in git's global ignore instead:
|
||||||
|
# `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore`
|
||||||
|
|
||||||
|
# Ignore bundler config.
|
||||||
|
/.bundle
|
||||||
|
|
||||||
|
# Ignore all environment files.
|
||||||
|
/.env*
|
||||||
|
|
||||||
|
# Ignore all logfiles and tempfiles.
|
||||||
|
/log/*
|
||||||
|
/tmp/*
|
||||||
|
!/log/.keep
|
||||||
|
!/tmp/.keep
|
||||||
|
|
||||||
|
# Ignore pidfiles, but keep the directory.
|
||||||
|
/tmp/pids/*
|
||||||
|
!/tmp/pids/
|
||||||
|
!/tmp/pids/.keep
|
||||||
|
|
||||||
|
# Ignore storage (uploaded files in development and any SQLite databases).
|
||||||
|
/storage/*
|
||||||
|
!/storage/.keep
|
||||||
|
/tmp/storage/*
|
||||||
|
!/tmp/storage/
|
||||||
|
!/tmp/storage/.keep
|
||||||
|
|
||||||
|
/public/assets
|
||||||
|
|
||||||
|
# Ignore key files for decrypting credentials and more.
|
||||||
|
/config/*.key
|
||||||
|
|
||||||
|
/db/seeds.rb
|
||||||
|
sqlite_data
|
||||||
|
/sqlite_data
|
||||||
|
sqlite_data/
|
||||||
|
sqlite_data/*
|
||||||
|
db/seeds.rb
|
||||||
3
.kamal/hooks/docker-setup.sample
Executable file
3
.kamal/hooks/docker-setup.sample
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
echo "Docker set up on $KAMAL_HOSTS..."
|
||||||
3
.kamal/hooks/post-app-boot.sample
Executable file
3
.kamal/hooks/post-app-boot.sample
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
echo "Booted app version $KAMAL_VERSION on $KAMAL_HOSTS..."
|
||||||
14
.kamal/hooks/post-deploy.sample
Executable file
14
.kamal/hooks/post-deploy.sample
Executable file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# A sample post-deploy hook
|
||||||
|
#
|
||||||
|
# These environment variables are available:
|
||||||
|
# KAMAL_RECORDED_AT
|
||||||
|
# KAMAL_PERFORMER
|
||||||
|
# KAMAL_VERSION
|
||||||
|
# KAMAL_HOSTS
|
||||||
|
# KAMAL_ROLES (if set)
|
||||||
|
# KAMAL_DESTINATION (if set)
|
||||||
|
# KAMAL_RUNTIME
|
||||||
|
|
||||||
|
echo "$KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds"
|
||||||
3
.kamal/hooks/post-proxy-reboot.sample
Executable file
3
.kamal/hooks/post-proxy-reboot.sample
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
echo "Rebooted kamal-proxy on $KAMAL_HOSTS"
|
||||||
3
.kamal/hooks/pre-app-boot.sample
Executable file
3
.kamal/hooks/pre-app-boot.sample
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
echo "Booting app version $KAMAL_VERSION on $KAMAL_HOSTS..."
|
||||||
51
.kamal/hooks/pre-build.sample
Executable file
51
.kamal/hooks/pre-build.sample
Executable file
|
|
@ -0,0 +1,51 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# A sample pre-build hook
|
||||||
|
#
|
||||||
|
# Checks:
|
||||||
|
# 1. We have a clean checkout
|
||||||
|
# 2. A remote is configured
|
||||||
|
# 3. The branch has been pushed to the remote
|
||||||
|
# 4. The version we are deploying matches the remote
|
||||||
|
#
|
||||||
|
# These environment variables are available:
|
||||||
|
# KAMAL_RECORDED_AT
|
||||||
|
# KAMAL_PERFORMER
|
||||||
|
# KAMAL_VERSION
|
||||||
|
# KAMAL_HOSTS
|
||||||
|
# KAMAL_ROLES (if set)
|
||||||
|
# KAMAL_DESTINATION (if set)
|
||||||
|
|
||||||
|
if [ -n "$(git status --porcelain)" ]; then
|
||||||
|
echo "Git checkout is not clean, aborting..." >&2
|
||||||
|
git status --porcelain >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
first_remote=$(git remote)
|
||||||
|
|
||||||
|
if [ -z "$first_remote" ]; then
|
||||||
|
echo "No git remote set, aborting..." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
current_branch=$(git branch --show-current)
|
||||||
|
|
||||||
|
if [ -z "$current_branch" ]; then
|
||||||
|
echo "Not on a git branch, aborting..." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
remote_head=$(git ls-remote $first_remote --tags $current_branch | cut -f1)
|
||||||
|
|
||||||
|
if [ -z "$remote_head" ]; then
|
||||||
|
echo "Branch not pushed to remote, aborting..." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$KAMAL_VERSION" != "$remote_head" ]; then
|
||||||
|
echo "Version ($KAMAL_VERSION) does not match remote HEAD ($remote_head), aborting..." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
47
.kamal/hooks/pre-connect.sample
Executable file
47
.kamal/hooks/pre-connect.sample
Executable file
|
|
@ -0,0 +1,47 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
# A sample pre-connect check
|
||||||
|
#
|
||||||
|
# Warms DNS before connecting to hosts in parallel
|
||||||
|
#
|
||||||
|
# These environment variables are available:
|
||||||
|
# KAMAL_RECORDED_AT
|
||||||
|
# KAMAL_PERFORMER
|
||||||
|
# KAMAL_VERSION
|
||||||
|
# KAMAL_HOSTS
|
||||||
|
# KAMAL_ROLES (if set)
|
||||||
|
# KAMAL_DESTINATION (if set)
|
||||||
|
# KAMAL_RUNTIME
|
||||||
|
|
||||||
|
hosts = ENV["KAMAL_HOSTS"].split(",")
|
||||||
|
results = nil
|
||||||
|
max = 3
|
||||||
|
|
||||||
|
elapsed = Benchmark.realtime do
|
||||||
|
results = hosts.map do |host|
|
||||||
|
Thread.new do
|
||||||
|
tries = 1
|
||||||
|
|
||||||
|
begin
|
||||||
|
Socket.getaddrinfo(host, 0, Socket::AF_UNSPEC, Socket::SOCK_STREAM, nil, Socket::AI_CANONNAME)
|
||||||
|
rescue SocketError
|
||||||
|
if tries < max
|
||||||
|
puts "Retrying DNS warmup: #{host}"
|
||||||
|
tries += 1
|
||||||
|
sleep rand
|
||||||
|
retry
|
||||||
|
else
|
||||||
|
puts "DNS warmup failed: #{host}"
|
||||||
|
host
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
tries
|
||||||
|
end
|
||||||
|
end.map(&:value)
|
||||||
|
end
|
||||||
|
|
||||||
|
retries = results.sum - hosts.size
|
||||||
|
nopes = results.count { |r| r == max }
|
||||||
|
|
||||||
|
puts "Prewarmed %d DNS lookups in %.2f sec: %d retries, %d failures" % [ hosts.size, elapsed, retries, nopes ]
|
||||||
122
.kamal/hooks/pre-deploy.sample
Executable file
122
.kamal/hooks/pre-deploy.sample
Executable file
|
|
@ -0,0 +1,122 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
# A sample pre-deploy hook
|
||||||
|
#
|
||||||
|
# Checks the Github status of the build, waiting for a pending build to complete for up to 720 seconds.
|
||||||
|
#
|
||||||
|
# Fails unless the combined status is "success"
|
||||||
|
#
|
||||||
|
# These environment variables are available:
|
||||||
|
# KAMAL_RECORDED_AT
|
||||||
|
# KAMAL_PERFORMER
|
||||||
|
# KAMAL_VERSION
|
||||||
|
# KAMAL_HOSTS
|
||||||
|
# KAMAL_COMMAND
|
||||||
|
# KAMAL_SUBCOMMAND
|
||||||
|
# KAMAL_ROLES (if set)
|
||||||
|
# KAMAL_DESTINATION (if set)
|
||||||
|
|
||||||
|
# Only check the build status for production deployments
|
||||||
|
if ENV["KAMAL_COMMAND"] == "rollback" || ENV["KAMAL_DESTINATION"] != "production"
|
||||||
|
exit 0
|
||||||
|
end
|
||||||
|
|
||||||
|
require "bundler/inline"
|
||||||
|
|
||||||
|
# true = install gems so this is fast on repeat invocations
|
||||||
|
gemfile(true, quiet: true) do
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "octokit"
|
||||||
|
gem "faraday-retry"
|
||||||
|
end
|
||||||
|
|
||||||
|
MAX_ATTEMPTS = 72
|
||||||
|
ATTEMPTS_GAP = 10
|
||||||
|
|
||||||
|
def exit_with_error(message)
|
||||||
|
$stderr.puts message
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
|
||||||
|
class GithubStatusChecks
|
||||||
|
attr_reader :remote_url, :git_sha, :github_client, :combined_status
|
||||||
|
|
||||||
|
def initialize
|
||||||
|
@remote_url = github_repo_from_remote_url
|
||||||
|
@git_sha = `git rev-parse HEAD`.strip
|
||||||
|
@github_client = Octokit::Client.new(access_token: ENV["GITHUB_TOKEN"])
|
||||||
|
refresh!
|
||||||
|
end
|
||||||
|
|
||||||
|
def refresh!
|
||||||
|
@combined_status = github_client.combined_status(remote_url, git_sha)
|
||||||
|
end
|
||||||
|
|
||||||
|
def state
|
||||||
|
combined_status[:state]
|
||||||
|
end
|
||||||
|
|
||||||
|
def first_status_url
|
||||||
|
first_status = combined_status[:statuses].find { |status| status[:state] == state }
|
||||||
|
first_status && first_status[:target_url]
|
||||||
|
end
|
||||||
|
|
||||||
|
def complete_count
|
||||||
|
combined_status[:statuses].count { |status| status[:state] != "pending"}
|
||||||
|
end
|
||||||
|
|
||||||
|
def total_count
|
||||||
|
combined_status[:statuses].count
|
||||||
|
end
|
||||||
|
|
||||||
|
def current_status
|
||||||
|
if total_count > 0
|
||||||
|
"Completed #{complete_count}/#{total_count} checks, see #{first_status_url} ..."
|
||||||
|
else
|
||||||
|
"Build not started..."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
def github_repo_from_remote_url
|
||||||
|
url = `git config --get remote.origin.url`.strip.delete_suffix(".git")
|
||||||
|
if url.start_with?("https://github.com/")
|
||||||
|
url.delete_prefix("https://github.com/")
|
||||||
|
elsif url.start_with?("git@github.com:")
|
||||||
|
url.delete_prefix("git@github.com:")
|
||||||
|
else
|
||||||
|
url
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
$stdout.sync = true
|
||||||
|
|
||||||
|
begin
|
||||||
|
puts "Checking build status..."
|
||||||
|
|
||||||
|
attempts = 0
|
||||||
|
checks = GithubStatusChecks.new
|
||||||
|
|
||||||
|
loop do
|
||||||
|
case checks.state
|
||||||
|
when "success"
|
||||||
|
puts "Checks passed, see #{checks.first_status_url}"
|
||||||
|
exit 0
|
||||||
|
when "failure"
|
||||||
|
exit_with_error "Checks failed, see #{checks.first_status_url}"
|
||||||
|
when "pending"
|
||||||
|
attempts += 1
|
||||||
|
end
|
||||||
|
|
||||||
|
exit_with_error "Checks are still pending, gave up after #{MAX_ATTEMPTS * ATTEMPTS_GAP} seconds" if attempts == MAX_ATTEMPTS
|
||||||
|
|
||||||
|
puts checks.current_status
|
||||||
|
sleep(ATTEMPTS_GAP)
|
||||||
|
checks.refresh!
|
||||||
|
end
|
||||||
|
rescue Octokit::NotFound
|
||||||
|
exit_with_error "Build status could not be found"
|
||||||
|
end
|
||||||
3
.kamal/hooks/pre-proxy-reboot.sample
Executable file
3
.kamal/hooks/pre-proxy-reboot.sample
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
echo "Rebooting kamal-proxy on $KAMAL_HOSTS..."
|
||||||
20
.kamal/secrets
Normal file
20
.kamal/secrets
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Secrets defined here are available for reference under registry/password, env/secret, builder/secrets,
|
||||||
|
# and accessories/*/env/secret in config/deploy.yml. All secrets should be pulled from either
|
||||||
|
# password manager, ENV, or a file. DO NOT ENTER RAW CREDENTIALS HERE! This file needs to be safe for git.
|
||||||
|
|
||||||
|
# Example of extracting secrets from 1password (or another compatible pw manager)
|
||||||
|
# SECRETS=$(kamal secrets fetch --adapter 1password --account your-account --from Vault/Item KAMAL_REGISTRY_PASSWORD RAILS_MASTER_KEY)
|
||||||
|
# KAMAL_REGISTRY_PASSWORD=$(kamal secrets extract KAMAL_REGISTRY_PASSWORD ${SECRETS})
|
||||||
|
# RAILS_MASTER_KEY=$(kamal secrets extract RAILS_MASTER_KEY ${SECRETS})
|
||||||
|
|
||||||
|
# Example of extracting secrets from Rails credentials
|
||||||
|
# KAMAL_REGISTRY_PASSWORD=$(rails credentials:fetch kamal.registry_password)
|
||||||
|
|
||||||
|
# Use a GITHUB_TOKEN if private repositories are needed for the image
|
||||||
|
# GITHUB_TOKEN=$(gh config get -h github.com oauth_token)
|
||||||
|
|
||||||
|
# Grab the registry password from ENV
|
||||||
|
# KAMAL_REGISTRY_PASSWORD=$KAMAL_REGISTRY_PASSWORD
|
||||||
|
|
||||||
|
# Improve security by using a password manager. Never check config/master.key into git!
|
||||||
|
RAILS_MASTER_KEY=$(cat config/master.key)
|
||||||
8
.rubocop.yml
Normal file
8
.rubocop.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Omakase Ruby styling for Rails
|
||||||
|
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
|
||||||
|
|
||||||
|
# Overwrite or add rules to create your own house style
|
||||||
|
#
|
||||||
|
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
|
||||||
|
# Layout/SpaceInsideArrayLiteralBrackets:
|
||||||
|
# Enabled: false
|
||||||
1
.ruby-version
Normal file
1
.ruby-version
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
ruby-3.4.7
|
||||||
77
Dockerfile
Normal file
77
Dockerfile
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
# check=error=true
|
||||||
|
|
||||||
|
# This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand:
|
||||||
|
# docker build -t serenityapp .
|
||||||
|
# docker run -d -p 80:80 -e RAILS_MASTER_KEY=<value from config/master.key> --name serenityapp serenityapp
|
||||||
|
|
||||||
|
# For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html
|
||||||
|
|
||||||
|
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
|
||||||
|
ARG RUBY_VERSION=3.4.7
|
||||||
|
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
|
||||||
|
|
||||||
|
# Rails app lives here
|
||||||
|
WORKDIR /rails
|
||||||
|
|
||||||
|
# Install base packages
|
||||||
|
RUN apt-get update -qq && \
|
||||||
|
apt-get install --no-install-recommends -y curl libjemalloc2 libvips sqlite3 && \
|
||||||
|
ln -s /usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so && \
|
||||||
|
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||||
|
|
||||||
|
# Set production environment variables and enable jemalloc for reduced memory usage and latency.
|
||||||
|
ENV RAILS_ENV="production" \
|
||||||
|
BUNDLE_DEPLOYMENT="1" \
|
||||||
|
BUNDLE_PATH="/usr/local/bundle" \
|
||||||
|
BUNDLE_WITHOUT="development" \
|
||||||
|
LD_PRELOAD="/usr/local/lib/libjemalloc.so"
|
||||||
|
|
||||||
|
# Throw-away build stage to reduce size of final image
|
||||||
|
FROM base AS build
|
||||||
|
|
||||||
|
# Install packages needed to build gems
|
||||||
|
RUN apt-get update -qq && \
|
||||||
|
apt-get install --no-install-recommends -y build-essential git libvips libyaml-dev pkg-config && \
|
||||||
|
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||||
|
|
||||||
|
# Install application gems
|
||||||
|
COPY vendor/* ./vendor/
|
||||||
|
COPY Gemfile Gemfile.lock ./
|
||||||
|
|
||||||
|
RUN bundle install && \
|
||||||
|
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
|
||||||
|
# -j 1 disable parallel compilation to avoid a QEMU bug: https://github.com/rails/bootsnap/issues/495
|
||||||
|
bundle exec bootsnap precompile -j 1 --gemfile
|
||||||
|
|
||||||
|
# Copy application code
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Precompile bootsnap code for faster boot times.
|
||||||
|
# -j 1 disable parallel compilation to avoid a QEMU bug: https://github.com/rails/bootsnap/issues/495
|
||||||
|
RUN bundle exec bootsnap precompile -j 1 app/ lib/
|
||||||
|
|
||||||
|
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
|
||||||
|
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Final stage for app image
|
||||||
|
FROM base
|
||||||
|
|
||||||
|
# Run and own only the runtime files as a non-root user for security
|
||||||
|
RUN groupadd --system --gid 1000 rails && \
|
||||||
|
useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash
|
||||||
|
USER 1000:1000
|
||||||
|
|
||||||
|
# Copy built artifacts: gems, application
|
||||||
|
COPY --chown=rails:rails --from=build "${BUNDLE_PATH}" "${BUNDLE_PATH}"
|
||||||
|
COPY --chown=rails:rails --from=build /rails /rails
|
||||||
|
|
||||||
|
# Entrypoint prepares the database.
|
||||||
|
ENTRYPOINT ["/rails/bin/docker-entrypoint"]
|
||||||
|
|
||||||
|
# Start server via Thruster by default, this can be overwritten at runtime
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["./bin/thrust", "./bin/rails", "server"]
|
||||||
66
Gemfile
Normal file
66
Gemfile
Normal file
|
|
@ -0,0 +1,66 @@
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
|
||||||
|
gem "rails", "~> 8.1.3", ">= 8.1.3.1"
|
||||||
|
# The modern asset pipeline for Rails [https://github.com/rails/propshaft]
|
||||||
|
gem "propshaft"
|
||||||
|
# Use sqlite3 as the database for Active Record
|
||||||
|
gem "sqlite3", ">= 2.1"
|
||||||
|
# Use the Puma web server [https://github.com/puma/puma]
|
||||||
|
gem "puma", ">= 5.0"
|
||||||
|
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
|
||||||
|
gem "importmap-rails"
|
||||||
|
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
|
||||||
|
gem "turbo-rails"
|
||||||
|
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
|
||||||
|
gem "stimulus-rails"
|
||||||
|
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
|
||||||
|
gem "jbuilder"
|
||||||
|
|
||||||
|
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
|
||||||
|
gem "bcrypt", "~> 3.1.7"
|
||||||
|
|
||||||
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||||
|
gem "tzinfo-data", platforms: %i[ windows jruby ]
|
||||||
|
|
||||||
|
# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable
|
||||||
|
gem "solid_cache"
|
||||||
|
gem "solid_queue"
|
||||||
|
gem "solid_cable"
|
||||||
|
|
||||||
|
# Reduces boot times through caching; required in config/boot.rb
|
||||||
|
gem "bootsnap", require: false
|
||||||
|
|
||||||
|
# Deploy this application anywhere as a Docker container [https://kamal-deploy.org]
|
||||||
|
gem "kamal", require: false
|
||||||
|
|
||||||
|
# Add HTTP asset caching/compression and X-Sendfile acceleration to Puma [https://github.com/basecamp/thruster/]
|
||||||
|
gem "thruster", require: false
|
||||||
|
|
||||||
|
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
|
||||||
|
gem "image_processing", "~> 1.2"
|
||||||
|
|
||||||
|
group :development, :test do
|
||||||
|
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
|
||||||
|
gem "debug", platforms: %i[ mri windows ], require: "debug/prelude"
|
||||||
|
|
||||||
|
# Audits gems for known security defects (use config/bundler-audit.yml to ignore issues)
|
||||||
|
gem "bundler-audit", require: false
|
||||||
|
|
||||||
|
# Static analysis for security vulnerabilities [https://brakemanscanner.org/]
|
||||||
|
gem "brakeman", require: false
|
||||||
|
|
||||||
|
# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
|
||||||
|
gem "rubocop-rails-omakase", require: false
|
||||||
|
end
|
||||||
|
|
||||||
|
group :development do
|
||||||
|
# Use console on exceptions pages [https://github.com/rails/web-console]
|
||||||
|
gem "web-console"
|
||||||
|
end
|
||||||
|
|
||||||
|
group :test do
|
||||||
|
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
|
||||||
|
gem "capybara"
|
||||||
|
gem "selenium-webdriver"
|
||||||
|
end
|
||||||
558
Gemfile.lock
Normal file
558
Gemfile.lock
Normal file
|
|
@ -0,0 +1,558 @@
|
||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
action_text-trix (2.1.19)
|
||||||
|
railties
|
||||||
|
actioncable (8.1.3.1)
|
||||||
|
actionpack (= 8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
nio4r (~> 2.0)
|
||||||
|
websocket-driver (>= 0.6.1)
|
||||||
|
zeitwerk (~> 2.6)
|
||||||
|
actionmailbox (8.1.3.1)
|
||||||
|
actionpack (= 8.1.3.1)
|
||||||
|
activejob (= 8.1.3.1)
|
||||||
|
activerecord (= 8.1.3.1)
|
||||||
|
activestorage (= 8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
mail (>= 2.8.0)
|
||||||
|
actionmailer (8.1.3.1)
|
||||||
|
actionpack (= 8.1.3.1)
|
||||||
|
actionview (= 8.1.3.1)
|
||||||
|
activejob (= 8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
mail (>= 2.8.0)
|
||||||
|
rails-dom-testing (~> 2.2)
|
||||||
|
actionpack (8.1.3.1)
|
||||||
|
actionview (= 8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
nokogiri (>= 1.8.5)
|
||||||
|
rack (>= 2.2.4)
|
||||||
|
rack-session (>= 1.0.1)
|
||||||
|
rack-test (>= 0.6.3)
|
||||||
|
rails-dom-testing (~> 2.2)
|
||||||
|
rails-html-sanitizer (~> 1.6)
|
||||||
|
useragent (~> 0.16)
|
||||||
|
actiontext (8.1.3.1)
|
||||||
|
action_text-trix (~> 2.1.15)
|
||||||
|
actionpack (= 8.1.3.1)
|
||||||
|
activerecord (= 8.1.3.1)
|
||||||
|
activestorage (= 8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
globalid (>= 0.6.0)
|
||||||
|
nokogiri (>= 1.8.5)
|
||||||
|
actionview (8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
builder (~> 3.1)
|
||||||
|
erubi (~> 1.11)
|
||||||
|
rails-dom-testing (~> 2.2)
|
||||||
|
rails-html-sanitizer (~> 1.6)
|
||||||
|
activejob (8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
globalid (>= 0.3.6)
|
||||||
|
activemodel (8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
activerecord (8.1.3.1)
|
||||||
|
activemodel (= 8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
timeout (>= 0.4.0)
|
||||||
|
activestorage (8.1.3.1)
|
||||||
|
actionpack (= 8.1.3.1)
|
||||||
|
activejob (= 8.1.3.1)
|
||||||
|
activerecord (= 8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
marcel (~> 1.0)
|
||||||
|
activesupport (8.1.3.1)
|
||||||
|
base64
|
||||||
|
bigdecimal
|
||||||
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
||||||
|
connection_pool (>= 2.2.5)
|
||||||
|
drb
|
||||||
|
i18n (>= 1.6, < 2)
|
||||||
|
json
|
||||||
|
logger (>= 1.4.2)
|
||||||
|
minitest (>= 5.1)
|
||||||
|
securerandom (>= 0.3)
|
||||||
|
tzinfo (~> 2.0, >= 2.0.5)
|
||||||
|
uri (>= 0.13.1)
|
||||||
|
addressable (2.9.0)
|
||||||
|
public_suffix (>= 2.0.2, < 8.0)
|
||||||
|
ast (2.4.3)
|
||||||
|
base64 (0.3.0)
|
||||||
|
bcrypt (3.1.22)
|
||||||
|
bcrypt_pbkdf (1.1.2)
|
||||||
|
bigdecimal (4.1.2)
|
||||||
|
bindex (0.8.1)
|
||||||
|
bootsnap (1.25.0)
|
||||||
|
msgpack (~> 1.5)
|
||||||
|
brakeman (8.0.6)
|
||||||
|
racc
|
||||||
|
builder (3.3.0)
|
||||||
|
bundler-audit (0.9.3)
|
||||||
|
bundler (>= 1.2.0)
|
||||||
|
thor (~> 1.0)
|
||||||
|
capybara (3.40.0)
|
||||||
|
addressable
|
||||||
|
matrix
|
||||||
|
mini_mime (>= 0.1.3)
|
||||||
|
nokogiri (~> 1.11)
|
||||||
|
rack (>= 1.6.0)
|
||||||
|
rack-test (>= 0.6.3)
|
||||||
|
regexp_parser (>= 1.5, < 3.0)
|
||||||
|
xpath (~> 3.2)
|
||||||
|
concurrent-ruby (1.3.8)
|
||||||
|
connection_pool (3.0.2)
|
||||||
|
crass (1.0.7)
|
||||||
|
date (3.5.1)
|
||||||
|
debug (1.11.1)
|
||||||
|
irb (~> 1.10)
|
||||||
|
reline (>= 0.3.8)
|
||||||
|
dotenv (3.2.0)
|
||||||
|
drb (2.2.3)
|
||||||
|
ed25519 (1.4.0)
|
||||||
|
erb (6.0.7)
|
||||||
|
erubi (1.13.1)
|
||||||
|
et-orbi (1.4.1)
|
||||||
|
tzinfo
|
||||||
|
ffi (1.17.4-aarch64-linux-gnu)
|
||||||
|
ffi (1.17.4-aarch64-linux-musl)
|
||||||
|
ffi (1.17.4-arm-linux-gnu)
|
||||||
|
ffi (1.17.4-arm-linux-musl)
|
||||||
|
ffi (1.17.4-x86_64-linux-gnu)
|
||||||
|
ffi (1.17.4-x86_64-linux-musl)
|
||||||
|
fugit (1.13.0)
|
||||||
|
et-orbi (~> 1.4)
|
||||||
|
raabro (~> 1.4)
|
||||||
|
globalid (1.4.0)
|
||||||
|
activesupport (>= 6.1)
|
||||||
|
i18n (1.15.2)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
image_processing (1.14.0)
|
||||||
|
mini_magick (>= 4.9.5, < 6)
|
||||||
|
ruby-vips (>= 2.0.17, < 3)
|
||||||
|
importmap-rails (2.2.3)
|
||||||
|
actionpack (>= 6.0.0)
|
||||||
|
activesupport (>= 6.0.0)
|
||||||
|
railties (>= 6.0.0)
|
||||||
|
io-console (0.9.2)
|
||||||
|
irb (1.18.0)
|
||||||
|
pp (>= 0.6.0)
|
||||||
|
prism (>= 1.3.0)
|
||||||
|
rdoc (>= 4.0.0)
|
||||||
|
reline (>= 0.4.2)
|
||||||
|
jbuilder (2.15.1)
|
||||||
|
actionview (>= 7.0.0)
|
||||||
|
activesupport (>= 7.0.0)
|
||||||
|
json (2.21.2)
|
||||||
|
kamal (2.12.0)
|
||||||
|
activesupport (>= 7.0)
|
||||||
|
base64 (~> 0.2)
|
||||||
|
bcrypt_pbkdf (~> 1.0)
|
||||||
|
concurrent-ruby (~> 1.2)
|
||||||
|
dotenv (~> 3.1)
|
||||||
|
ed25519 (~> 1.4)
|
||||||
|
net-ssh (~> 7.3)
|
||||||
|
sshkit (>= 1.23.0, < 2.0)
|
||||||
|
thor (~> 1.3)
|
||||||
|
zeitwerk (>= 2.6.18, < 3.0)
|
||||||
|
language_server-protocol (3.17.0.6)
|
||||||
|
lint_roller (1.1.0)
|
||||||
|
logger (1.7.0)
|
||||||
|
loofah (2.25.2)
|
||||||
|
crass (~> 1.0.2)
|
||||||
|
nokogiri (>= 1.12.0)
|
||||||
|
mail (2.9.1)
|
||||||
|
logger
|
||||||
|
mini_mime (>= 0.1.1)
|
||||||
|
net-imap
|
||||||
|
net-pop
|
||||||
|
net-smtp
|
||||||
|
marcel (1.2.1)
|
||||||
|
matrix (0.4.3)
|
||||||
|
mini_magick (5.3.3)
|
||||||
|
logger
|
||||||
|
mini_mime (1.1.5)
|
||||||
|
minitest (6.0.6)
|
||||||
|
drb (~> 2.0)
|
||||||
|
prism (~> 1.5)
|
||||||
|
msgpack (1.8.4)
|
||||||
|
net-imap (0.6.6)
|
||||||
|
date
|
||||||
|
net-protocol
|
||||||
|
net-pop (0.1.2)
|
||||||
|
net-protocol
|
||||||
|
net-protocol (0.2.2)
|
||||||
|
timeout
|
||||||
|
net-scp (4.1.0)
|
||||||
|
net-ssh (>= 2.6.5, < 8.0.0)
|
||||||
|
net-sftp (4.0.0)
|
||||||
|
net-ssh (>= 5.0.0, < 8.0.0)
|
||||||
|
net-smtp (0.5.1)
|
||||||
|
net-protocol
|
||||||
|
net-ssh (7.3.3)
|
||||||
|
nio4r (2.7.5)
|
||||||
|
nokogiri (1.19.4-aarch64-linux-gnu)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.19.4-aarch64-linux-musl)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.19.4-arm-linux-gnu)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.19.4-arm-linux-musl)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.19.4-x86_64-linux-gnu)
|
||||||
|
racc (~> 1.4)
|
||||||
|
nokogiri (1.19.4-x86_64-linux-musl)
|
||||||
|
racc (~> 1.4)
|
||||||
|
ostruct (0.6.3)
|
||||||
|
parallel (2.1.0)
|
||||||
|
parser (3.3.12.0)
|
||||||
|
ast (~> 2.4.1)
|
||||||
|
racc
|
||||||
|
pp (0.6.4)
|
||||||
|
prettyprint
|
||||||
|
prettyprint (0.2.0)
|
||||||
|
prism (1.9.0)
|
||||||
|
propshaft (1.3.2)
|
||||||
|
actionpack (>= 7.0.0)
|
||||||
|
activesupport (>= 7.0.0)
|
||||||
|
rack
|
||||||
|
public_suffix (7.0.5)
|
||||||
|
puma (8.0.2)
|
||||||
|
nio4r (~> 2.0)
|
||||||
|
raabro (1.5.0)
|
||||||
|
racc (1.8.1)
|
||||||
|
rack (3.2.7)
|
||||||
|
rack-session (2.1.2)
|
||||||
|
base64 (>= 0.1.0)
|
||||||
|
rack (>= 3.0.0)
|
||||||
|
rack-test (2.2.0)
|
||||||
|
rack (>= 1.3)
|
||||||
|
rackup (2.3.1)
|
||||||
|
rack (>= 3)
|
||||||
|
rails (8.1.3.1)
|
||||||
|
actioncable (= 8.1.3.1)
|
||||||
|
actionmailbox (= 8.1.3.1)
|
||||||
|
actionmailer (= 8.1.3.1)
|
||||||
|
actionpack (= 8.1.3.1)
|
||||||
|
actiontext (= 8.1.3.1)
|
||||||
|
actionview (= 8.1.3.1)
|
||||||
|
activejob (= 8.1.3.1)
|
||||||
|
activemodel (= 8.1.3.1)
|
||||||
|
activerecord (= 8.1.3.1)
|
||||||
|
activestorage (= 8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
bundler (>= 1.15.0)
|
||||||
|
railties (= 8.1.3.1)
|
||||||
|
rails-dom-testing (2.3.0)
|
||||||
|
activesupport (>= 5.0.0)
|
||||||
|
minitest
|
||||||
|
nokogiri (>= 1.6)
|
||||||
|
rails-html-sanitizer (1.7.1)
|
||||||
|
loofah (~> 2.25, >= 2.25.2)
|
||||||
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
||||||
|
railties (8.1.3.1)
|
||||||
|
actionpack (= 8.1.3.1)
|
||||||
|
activesupport (= 8.1.3.1)
|
||||||
|
irb (~> 1.13)
|
||||||
|
rackup (>= 1.0.0)
|
||||||
|
rake (>= 12.2)
|
||||||
|
thor (~> 1.0, >= 1.2.2)
|
||||||
|
tsort (>= 0.2)
|
||||||
|
zeitwerk (~> 2.6)
|
||||||
|
rainbow (3.1.1)
|
||||||
|
rake (13.4.2)
|
||||||
|
rbs (4.2.0)
|
||||||
|
logger
|
||||||
|
prism (>= 1.6.0)
|
||||||
|
tsort
|
||||||
|
rdoc (8.0.0)
|
||||||
|
erb
|
||||||
|
prism (>= 1.6.0)
|
||||||
|
rbs (>= 4.0.0)
|
||||||
|
tsort
|
||||||
|
regexp_parser (2.12.0)
|
||||||
|
reline (0.7.0)
|
||||||
|
io-console (~> 0.5)
|
||||||
|
rexml (3.4.4)
|
||||||
|
rubocop (1.89.0)
|
||||||
|
json (~> 2.3)
|
||||||
|
language_server-protocol (~> 3.17.0.2)
|
||||||
|
lint_roller (~> 1.1.0)
|
||||||
|
parallel (>= 1.10)
|
||||||
|
parser (>= 3.3.0.2)
|
||||||
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
|
regexp_parser (>= 2.9.3, < 3.0)
|
||||||
|
rubocop-ast (>= 1.49.0, < 2.0)
|
||||||
|
ruby-progressbar (~> 1.7)
|
||||||
|
unicode-display_width (>= 2.4.0, < 4.0)
|
||||||
|
rubocop-ast (1.50.0)
|
||||||
|
parser (>= 3.3.7.2)
|
||||||
|
prism (~> 1.7)
|
||||||
|
rubocop-performance (1.27.0)
|
||||||
|
lint_roller (~> 1.1)
|
||||||
|
rubocop (>= 1.89.0, < 2.0)
|
||||||
|
rubocop-ast (>= 1.47.1, < 2.0)
|
||||||
|
rubocop-rails (2.37.0)
|
||||||
|
activesupport (>= 4.2.0)
|
||||||
|
lint_roller (~> 1.1)
|
||||||
|
rack (>= 1.1)
|
||||||
|
rubocop (>= 1.89.0, < 2.0)
|
||||||
|
rubocop-ast (>= 1.44.0, < 2.0)
|
||||||
|
rubocop-rails-omakase (1.1.0)
|
||||||
|
rubocop (>= 1.72)
|
||||||
|
rubocop-performance (>= 1.24)
|
||||||
|
rubocop-rails (>= 2.30)
|
||||||
|
ruby-progressbar (1.13.0)
|
||||||
|
ruby-vips (2.3.0)
|
||||||
|
ffi (~> 1.12)
|
||||||
|
logger
|
||||||
|
rubyzip (3.5.0)
|
||||||
|
securerandom (0.4.1)
|
||||||
|
selenium-webdriver (4.47.0)
|
||||||
|
base64 (~> 0.2)
|
||||||
|
logger (~> 1.4)
|
||||||
|
rexml (~> 3.2, >= 3.2.5)
|
||||||
|
rubyzip (>= 1.2.2, < 4.0)
|
||||||
|
websocket (~> 1.0)
|
||||||
|
solid_cable (4.0.2)
|
||||||
|
actioncable (>= 7.2)
|
||||||
|
activejob (>= 7.2)
|
||||||
|
activerecord (>= 7.2)
|
||||||
|
railties (>= 7.2)
|
||||||
|
solid_cache (1.0.10)
|
||||||
|
activejob (>= 7.2)
|
||||||
|
activerecord (>= 7.2)
|
||||||
|
railties (>= 7.2)
|
||||||
|
solid_queue (1.7.0)
|
||||||
|
activejob (>= 7.1)
|
||||||
|
activerecord (>= 7.1)
|
||||||
|
concurrent-ruby (>= 1.3.1)
|
||||||
|
fugit (~> 1.11)
|
||||||
|
railties (>= 7.1)
|
||||||
|
thor (>= 1.3.1)
|
||||||
|
sqlite3 (2.9.6-aarch64-linux-gnu)
|
||||||
|
sqlite3 (2.9.6-aarch64-linux-musl)
|
||||||
|
sqlite3 (2.9.6-arm-linux-gnu)
|
||||||
|
sqlite3 (2.9.6-arm-linux-musl)
|
||||||
|
sqlite3 (2.9.6-x86_64-linux-gnu)
|
||||||
|
sqlite3 (2.9.6-x86_64-linux-musl)
|
||||||
|
sshkit (1.25.1)
|
||||||
|
base64
|
||||||
|
logger
|
||||||
|
net-scp (>= 1.1.2)
|
||||||
|
net-sftp (>= 2.1.2)
|
||||||
|
net-ssh (>= 2.8.0)
|
||||||
|
ostruct
|
||||||
|
stimulus-rails (1.3.4)
|
||||||
|
railties (>= 6.0.0)
|
||||||
|
thor (1.5.0)
|
||||||
|
thruster (0.1.25)
|
||||||
|
thruster (0.1.25-aarch64-linux)
|
||||||
|
thruster (0.1.25-x86_64-linux)
|
||||||
|
timeout (0.6.1)
|
||||||
|
tsort (0.2.0)
|
||||||
|
turbo-rails (2.0.23)
|
||||||
|
actionpack (>= 7.1.0)
|
||||||
|
railties (>= 7.1.0)
|
||||||
|
tzinfo (2.0.6)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
unicode-display_width (3.2.0)
|
||||||
|
unicode-emoji (~> 4.1)
|
||||||
|
unicode-emoji (4.2.0)
|
||||||
|
uri (1.1.1)
|
||||||
|
useragent (0.16.11)
|
||||||
|
web-console (4.3.0)
|
||||||
|
actionview (>= 8.0.0)
|
||||||
|
bindex (>= 0.4.0)
|
||||||
|
railties (>= 8.0.0)
|
||||||
|
websocket (1.2.11)
|
||||||
|
websocket-driver (0.8.2)
|
||||||
|
base64
|
||||||
|
websocket-extensions (>= 0.1.0)
|
||||||
|
websocket-extensions (0.1.5)
|
||||||
|
xpath (3.2.0)
|
||||||
|
nokogiri (~> 1.8)
|
||||||
|
zeitwerk (2.8.3)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
aarch64-linux
|
||||||
|
aarch64-linux-gnu
|
||||||
|
aarch64-linux-musl
|
||||||
|
arm-linux-gnu
|
||||||
|
arm-linux-musl
|
||||||
|
x86_64-linux
|
||||||
|
x86_64-linux-gnu
|
||||||
|
x86_64-linux-musl
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
bcrypt (~> 3.1.7)
|
||||||
|
bootsnap
|
||||||
|
brakeman
|
||||||
|
bundler-audit
|
||||||
|
capybara
|
||||||
|
debug
|
||||||
|
image_processing (~> 1.2)
|
||||||
|
importmap-rails
|
||||||
|
jbuilder
|
||||||
|
kamal
|
||||||
|
propshaft
|
||||||
|
puma (>= 5.0)
|
||||||
|
rails (~> 8.1.3, >= 8.1.3.1)
|
||||||
|
rubocop-rails-omakase
|
||||||
|
selenium-webdriver
|
||||||
|
solid_cable
|
||||||
|
solid_cache
|
||||||
|
solid_queue
|
||||||
|
sqlite3 (>= 2.1)
|
||||||
|
stimulus-rails
|
||||||
|
thruster
|
||||||
|
turbo-rails
|
||||||
|
tzinfo-data
|
||||||
|
web-console
|
||||||
|
|
||||||
|
CHECKSUMS
|
||||||
|
action_text-trix (2.1.19) sha256=7012f59421009cf284aa651294896414d653a61a2417c9b8714c8476d2f74009
|
||||||
|
actioncable (8.1.3.1) sha256=e318528295c878a3efdfe25f0f2267c80cb7a76eba41bb5f64d44aa380a3d91b
|
||||||
|
actionmailbox (8.1.3.1) sha256=5f704972097d843ade8e435e93694a1dac732b926df1717aceba1f3840082b1c
|
||||||
|
actionmailer (8.1.3.1) sha256=88ea441b28ff02a0c6c006468892642a3d9942affce9d294e81a74504aa5c43c
|
||||||
|
actionpack (8.1.3.1) sha256=974cb7154548e81f470b1b0f247b99cb38e87825899dca58610596e2817723d0
|
||||||
|
actiontext (8.1.3.1) sha256=5da729d833d1a29cddb1eee938878e55e503d2613e00e735f5daf58c2ba98af2
|
||||||
|
actionview (8.1.3.1) sha256=2da68b8414c47b43bfbed1ce69c5afe1c04f78c267aacb5660a4cab5ca12cfb6
|
||||||
|
activejob (8.1.3.1) sha256=1c8dd275df930df40deecffec63d913a550a33fd94bd298f69721dd96939954a
|
||||||
|
activemodel (8.1.3.1) sha256=99cc02ce2faec371d14440949d85787ebd23a907c9baef0a9d4bcd4d21888f88
|
||||||
|
activerecord (8.1.3.1) sha256=0a2fb6c28f4938f6b013a3a549bec0a7e37d535f3dc8990e804bcc3258c0403b
|
||||||
|
activestorage (8.1.3.1) sha256=f555254f387b1cffa499d2fd3115d12635eadc5b15206a8534316a67036163ef
|
||||||
|
activesupport (8.1.3.1) sha256=85458765f25ea48b9019c46b6bb3fa5683197bf4280d9f06710a6e8d7a831376
|
||||||
|
addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af
|
||||||
|
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
||||||
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
||||||
|
bcrypt (3.1.22) sha256=1f0072e88c2d705d94aff7f2c5cb02eb3f1ec4b8368671e19112527489f29032
|
||||||
|
bcrypt_pbkdf (1.1.2) sha256=c2414c23ce66869b3eb9f643d6a3374d8322dfb5078125c82792304c10b94cf6
|
||||||
|
bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
|
||||||
|
bindex (0.8.1) sha256=7b1ecc9dc539ed8bccfc8cb4d2732046227b09d6f37582ff12e50a5047ceb17e
|
||||||
|
bootsnap (1.25.0) sha256=41059e7d0f9cb4023a33465d095f64b913fc9d1b808d6524c307da945fbcffcf
|
||||||
|
brakeman (8.0.6) sha256=759cc69341115e6c2dcd47b6fd8649a0b9bd540e3585ac8a0a94e31c66fee386
|
||||||
|
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
|
||||||
|
bundler (4.0.18) sha256=02d9a17429de1847b4e0c9f27a9ee4b20c0a74c0a641b4e77195d6019e3618ac
|
||||||
|
bundler-audit (0.9.3) sha256=81c8766c71e47d0d28a0f98c7eed028539f21a6ea3cd8f685eb6f42333c9b4e9
|
||||||
|
capybara (3.40.0) sha256=42dba720578ea1ca65fd7a41d163dd368502c191804558f6e0f71b391054aeef
|
||||||
|
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
||||||
|
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
||||||
|
crass (1.0.7) sha256=94868719948664c89ddcaf0a37c65048413dfcb1c869470a5f7a7ceb5390b295
|
||||||
|
date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
|
||||||
|
debug (1.11.1) sha256=2e0b0ac6119f2207a6f8ac7d4a73ca8eb4e440f64da0a3136c30343146e952b6
|
||||||
|
dotenv (3.2.0) sha256=e375b83121ea7ca4ce20f214740076129ab8514cd81378161f11c03853fe619d
|
||||||
|
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
||||||
|
ed25519 (1.4.0) sha256=16e97f5198689a154247169f3453ef4cfd3f7a47481fde0ae33206cdfdcac506
|
||||||
|
erb (6.0.7) sha256=c5ca6dc25b0ef974a44dc8f59fe847577122483b1968a38dec305c60bf91ee92
|
||||||
|
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
|
||||||
|
et-orbi (1.4.1) sha256=007e2685b1d873415a7587ef889336c6dcdf8a47fc9c9a63547582b21660a11b
|
||||||
|
ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
|
||||||
|
ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39
|
||||||
|
ffi (1.17.4-arm-linux-gnu) sha256=d6dbddf7cb77bf955411af5f187a65b8cd378cb003c15c05697f5feee1cb1564
|
||||||
|
ffi (1.17.4-arm-linux-musl) sha256=9d4838ded0465bef6e2426935f6bcc93134b6616785a84ffd2a3d82bc3cf6f95
|
||||||
|
ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d
|
||||||
|
ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e
|
||||||
|
fugit (1.13.0) sha256=a4f093fce740da52f216740a5041e2a594ea763cdb89e8b2754ca4399634ab18
|
||||||
|
globalid (1.4.0) sha256=037f12fbf1d9d7a014d501c2d5c77356fd4ddd96d7a7991d6700bba96706f427
|
||||||
|
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
||||||
|
image_processing (1.14.0) sha256=754cc169c9c262980889bec6bfd325ed1dafad34f85242b5a07b60af004742fb
|
||||||
|
importmap-rails (2.2.3) sha256=7101be2a4dc97cf1558fb8f573a718404c5f6bcfe94f304bf1f39e444feeb16a
|
||||||
|
io-console (0.9.2) sha256=efa74f891dd03c0939a931dfc6e74c2813d904763d456ea9762b0525e748db08
|
||||||
|
irb (1.18.0) sha256=de9454a0703a54704b9811a5ef31a60c86949fbf4013fcf244fabc7c775248e3
|
||||||
|
jbuilder (2.15.1) sha256=2430bec28fb0cebacb5875b1009cf9d8bc3c303ccb810c4c8b062a4b51457637
|
||||||
|
json (2.21.2) sha256=1f1d3b7cf2b3ba1a69beca0bb6db13d5438b80bff3cd54cdaaa620b9b07c1c6a
|
||||||
|
kamal (2.12.0) sha256=c51d1ab085e515470f98d0c0f043637122b5ebf76e8b610cb1fbbed0b7f9b8fa
|
||||||
|
language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
|
||||||
|
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
||||||
|
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
||||||
|
loofah (2.25.2) sha256=2007f746959ac65552456e04b433e83deb22759ab38c838b4445c70e43425918
|
||||||
|
mail (2.9.1) sha256=06574eca475253d6c18145dd70af80d0eb970182d55053497c5f4d797ea160e8
|
||||||
|
marcel (1.2.1) sha256=1678e9360e32f9eafa917c80029e2f6d10b2715c66a4b87b6d0da9b9cd1f859f
|
||||||
|
matrix (0.4.3) sha256=a0d5ab7ddcc1973ff690ab361b67f359acbb16958d1dc072b8b956a286564c5b
|
||||||
|
mini_magick (5.3.3) sha256=b3beed8a8cef36bd03666365f14b89cd344da0ecd373af53e617c71bfd426aab
|
||||||
|
mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef
|
||||||
|
minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
|
||||||
|
msgpack (1.8.4) sha256=4411c22d350dd1c20250f7eada3cca2695438c2f769cf0782f0cd065d90a3e7b
|
||||||
|
net-imap (0.6.6) sha256=96aa4ee50df3060203e649efc341f53480b791d49e150f2fdebf68beb141a8df
|
||||||
|
net-pop (0.1.2) sha256=848b4e982013c15b2f0382792268763b748cce91c9e91e36b0f27ed26420dff3
|
||||||
|
net-protocol (0.2.2) sha256=aa73e0cba6a125369de9837b8d8ef82a61849360eba0521900e2c3713aa162a8
|
||||||
|
net-scp (4.1.0) sha256=a99b0b92a1e5d360b0de4ffbf2dc0c91531502d3d4f56c28b0139a7c093d1a5d
|
||||||
|
net-sftp (4.0.0) sha256=65bb91c859c2f93b09826757af11b69af931a3a9155050f50d1b06d384526364
|
||||||
|
net-smtp (0.5.1) sha256=ed96a0af63c524fceb4b29b0d352195c30d82dd916a42f03c62a3a70e5b70736
|
||||||
|
net-ssh (7.3.3) sha256=831def58b2c51dcef66ec00d29397d4f210de89c19fe78f95873ca30f386e86a
|
||||||
|
nio4r (2.7.5) sha256=6c90168e48fb5f8e768419c93abb94ba2b892a1d0602cb06eef16d8b7df1dca1
|
||||||
|
nokogiri (1.19.4-aarch64-linux-gnu) sha256=1269fb644a6de405057a53dd5c762b1209b43ca7424f839454d3dbc677c31a8f
|
||||||
|
nokogiri (1.19.4-aarch64-linux-musl) sha256=35c65b9ce72b3bb03207bdbe7067915019dc18c1b9b59139684bd6690fdd01af
|
||||||
|
nokogiri (1.19.4-arm-linux-gnu) sha256=a301313e38bb065d68239e79734bcd6f56fb6efaacebde29e9abf2a4735340ca
|
||||||
|
nokogiri (1.19.4-arm-linux-musl) sha256=588923c101bcfa78869734d247d25b598674323e7f22474fc468f6e5647311eb
|
||||||
|
nokogiri (1.19.4-x86_64-linux-gnu) sha256=379fae440b28915e3f19d752ce2dcf8465ed2b2fbefd2a7ca0dd497bc981a06a
|
||||||
|
nokogiri (1.19.4-x86_64-linux-musl) sha256=17dfb7c1fa194ae02fbf7c51a7afc8d278045ab3fdacfd86f91d02d7b274470b
|
||||||
|
ostruct (0.6.3) sha256=95a2ed4a4bd1d190784e666b47b2d3f078e4a9efda2fccf18f84ddc6538ed912
|
||||||
|
parallel (2.1.0) sha256=b35258865c2e31134c5ecb708beaaf6772adf9d5efae28e93e99260877b09356
|
||||||
|
parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828
|
||||||
|
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
|
||||||
|
prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
|
||||||
|
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
|
||||||
|
propshaft (1.3.2) sha256=1d56a3e56a92c21bfc29caf07406b5386b00d4c47ddf357cf989a5a234b1389e
|
||||||
|
public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623
|
||||||
|
puma (8.0.2) sha256=c8ed871dfbbe66448ea9ffd46692342d9804d4071522b52b5331b7b6e7b686fb
|
||||||
|
raabro (1.5.0) sha256=3f998a7bc84f9c84df3ab580634d2e0a5bda4f0841168d56035f529c9877440a
|
||||||
|
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
||||||
|
rack (3.2.7) sha256=93e13e1c24f93556671d85d2d79fa228c3485815c50d7e2f265b5330c6528fb7
|
||||||
|
rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
|
||||||
|
rack-test (2.2.0) sha256=005a36692c306ac0b4a9350355ee080fd09ddef1148a5f8b2ac636c720f5c463
|
||||||
|
rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
|
||||||
|
rails (8.1.3.1) sha256=ccd11a36bfc171bf9c66d585d14c0ece91c0c9dde840aae60c0118d6f5c9c52a
|
||||||
|
rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
|
||||||
|
rails-html-sanitizer (1.7.1) sha256=e797a7c9b01e567307e317c576b49ab4168017e63eea4dba9ce3cb587e2f22c2
|
||||||
|
railties (8.1.3.1) sha256=2388a232579a00cefea4487de66c8553c3408c1300abdc6cf1799d86ffb04487
|
||||||
|
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
||||||
|
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
|
||||||
|
rbs (4.2.0) sha256=51f7b886dcc05bc09e10b901daa6a81829f6adc03101d6ca9ea4aac6103e0674
|
||||||
|
rdoc (8.0.0) sha256=03bf8c08a9639658855a0cfd77c0abca8325c227693f7f33f82957811348c469
|
||||||
|
regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb
|
||||||
|
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
||||||
|
rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142
|
||||||
|
rubocop (1.89.0) sha256=4dee8e3ee9c45e474834efd9e8d6fd031e8331c8dacdff0de4ad65ae0a6faae7
|
||||||
|
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
|
||||||
|
rubocop-performance (1.27.0) sha256=eeeb1374d062a368ee1c787b70eb0b0cc4b184cb1f8565f424760946146d61ce
|
||||||
|
rubocop-rails (2.37.0) sha256=6e1645add5060e0328f8ddda0d820f55697c591394398bf14bb9dccb62f14b7e
|
||||||
|
rubocop-rails-omakase (1.1.0) sha256=2af73ac8ee5852de2919abbd2618af9c15c19b512c4cfc1f9a5d3b6ef009109d
|
||||||
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
||||||
|
ruby-vips (2.3.0) sha256=e685ec02c13969912debbd98019e50492e12989282da5f37d05f5471442f5374
|
||||||
|
rubyzip (3.5.0) sha256=f77c49d737a849b662f6ca4de473f31b4ecd8288f1c9f901a5c820641f0f8d7c
|
||||||
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
||||||
|
selenium-webdriver (4.47.0) sha256=67f915b8223d2133bbaa13e92fd98854175394f086e2036a9eff4f5561fd69e4
|
||||||
|
solid_cable (4.0.2) sha256=084636a67679ad00d23088b33c84047e614bcf41ee559db24b414d83cdc42d03
|
||||||
|
solid_cache (1.0.10) sha256=bc05a2fb3ac78a6f43cbb5946679cf9db67dd30d22939ededc385cb93e120d41
|
||||||
|
solid_queue (1.7.0) sha256=6566b70b801d1c317c81bba7bcdd5677c019afac584a30374b4164002ca356d3
|
||||||
|
sqlite3 (2.9.6-aarch64-linux-gnu) sha256=d8b1f7d23efd7abac285775a9566562fc7debfef79d594e3a20354406fb7907c
|
||||||
|
sqlite3 (2.9.6-aarch64-linux-musl) sha256=3579e1c98cdc7ff5c3722847bb63ed4e1efb7ff675cb5e1e48ef2d4da5fb3bc9
|
||||||
|
sqlite3 (2.9.6-arm-linux-gnu) sha256=33541500e3615da02afe54a9cc38b17a6985d3cf9d8b76d6d0a83002f114e7ec
|
||||||
|
sqlite3 (2.9.6-arm-linux-musl) sha256=c5490af48bb228fefa54314e9541375c3907e70f8109f3881b5ff97e1c93ae33
|
||||||
|
sqlite3 (2.9.6-x86_64-linux-gnu) sha256=613188ce02f614126ddbc38c5e217ccffd6306d0dcd9adca9764547aa890a634
|
||||||
|
sqlite3 (2.9.6-x86_64-linux-musl) sha256=d493b11818a3573387a1d56e1ee8fa00da23a683a7a1cc063e7a0feeed843abf
|
||||||
|
sshkit (1.25.1) sha256=be3f10b9d6eb0b44d5eaba3f7cbe41bc6bb894bce4339688ac20124391455b78
|
||||||
|
stimulus-rails (1.3.4) sha256=765676ffa1f33af64ce026d26b48e8ffb2e0b94e0f50e9119e11d6107d67cb06
|
||||||
|
thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
|
||||||
|
thruster (0.1.25) sha256=d97d704e91fa37d5858bc238dea6186f7310b633abfeea9f2ba814f252203716
|
||||||
|
thruster (0.1.25-aarch64-linux) sha256=495265b11fc3c3596ae0d70ed902b60db82dafb2a5b47a2c527d3176ee3cf311
|
||||||
|
thruster (0.1.25-x86_64-linux) sha256=e5586003b34dc2f4200f8412101e906621e276bb294d41d1b63a3c41e348503d
|
||||||
|
timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
|
||||||
|
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
|
||||||
|
turbo-rails (2.0.23) sha256=ee0d90733aafff056cf51ff11e803d65e43cae258cc55f6492020ec1f9f9315f
|
||||||
|
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
||||||
|
unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42
|
||||||
|
unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
|
||||||
|
uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
|
||||||
|
useragent (0.16.11) sha256=700e6413ad4bb954bb63547fa098dddf7b0ebe75b40cc6f93b8d54255b173844
|
||||||
|
web-console (4.3.0) sha256=e13b71301cdfc2093f155b5aa3a622db80b4672d1f2f713119cc7ec7ac6a6da4
|
||||||
|
websocket (1.2.11) sha256=b7e7a74e2410b5e85c25858b26b3322f29161e300935f70a0e0d3c35e0462737
|
||||||
|
websocket-driver (0.8.2) sha256=97c556b019bf3410b4961002ac501621e9322d3f8a7bc02161a09301cc4c4146
|
||||||
|
websocket-extensions (0.1.5) sha256=1c6ba63092cda343eb53fc657110c71c754c56484aad42578495227d717a8241
|
||||||
|
xpath (3.2.0) sha256=6dfda79d91bb3b949b947ecc5919f042ef2f399b904013eb3ef6d20dd3a4082e
|
||||||
|
zeitwerk (2.8.3) sha256=2c85125a8467ce069e20123d1e709a08955c9d29c118c25b46b7b7fafdbb92e5
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
4.0.18
|
||||||
24
README.md
Normal file
24
README.md
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
# README
|
||||||
|
|
||||||
|
This README would normally document whatever steps are necessary to get the
|
||||||
|
application up and running.
|
||||||
|
|
||||||
|
Things you may want to cover:
|
||||||
|
|
||||||
|
* Ruby version
|
||||||
|
|
||||||
|
* System dependencies
|
||||||
|
|
||||||
|
* Configuration
|
||||||
|
|
||||||
|
* Database creation
|
||||||
|
|
||||||
|
* Database initialization
|
||||||
|
|
||||||
|
* How to run the test suite
|
||||||
|
|
||||||
|
* Services (job queues, cache servers, search engines, etc.)
|
||||||
|
|
||||||
|
* Deployment instructions
|
||||||
|
|
||||||
|
* ...
|
||||||
6
Rakefile
Normal file
6
Rakefile
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
||||||
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
||||||
|
|
||||||
|
require_relative "config/application"
|
||||||
|
|
||||||
|
Rails.application.load_tasks
|
||||||
0
app/assets/images/.keep
Normal file
0
app/assets/images/.keep
Normal file
440
app/assets/stylesheets/actiontext.css
Normal file
440
app/assets/stylesheets/actiontext.css
Normal file
|
|
@ -0,0 +1,440 @@
|
||||||
|
/*
|
||||||
|
* Default Trix editor styles. See Action Text overwrites below.
|
||||||
|
*/
|
||||||
|
|
||||||
|
trix-editor {
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
border-radius: 3px;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0.4em 0.6em;
|
||||||
|
min-height: 5em;
|
||||||
|
outline: none; }
|
||||||
|
|
||||||
|
trix-toolbar * {
|
||||||
|
box-sizing: border-box; }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button-row {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
overflow-x: auto; }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button-group {
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
border-top-color: #ccc;
|
||||||
|
border-bottom-color: #888;
|
||||||
|
border-radius: 3px; }
|
||||||
|
trix-toolbar .trix-button-group:not(:first-child) {
|
||||||
|
margin-left: 1.5vw; }
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
trix-toolbar .trix-button-group:not(:first-child) {
|
||||||
|
margin-left: 0; } }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button-group-spacer {
|
||||||
|
flex-grow: 1; }
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
trix-toolbar .trix-button-group-spacer {
|
||||||
|
display: none; } }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
color: rgba(0, 0, 0, 0.6);
|
||||||
|
font-size: 0.75em;
|
||||||
|
font-weight: 600;
|
||||||
|
white-space: nowrap;
|
||||||
|
padding: 0 0.5em;
|
||||||
|
margin: 0;
|
||||||
|
outline: none;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent; }
|
||||||
|
trix-toolbar .trix-button:not(:first-child) {
|
||||||
|
border-left: 1px solid #ccc; }
|
||||||
|
trix-toolbar .trix-button.trix-active {
|
||||||
|
background: #cbeefa;
|
||||||
|
color: black; }
|
||||||
|
trix-toolbar .trix-button:not(:disabled) {
|
||||||
|
cursor: pointer; }
|
||||||
|
trix-toolbar .trix-button:disabled {
|
||||||
|
color: rgba(0, 0, 0, 0.125); }
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
trix-toolbar .trix-button {
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
padding: 0 0.3em; } }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon {
|
||||||
|
font-size: inherit;
|
||||||
|
width: 2.6em;
|
||||||
|
height: 1.6em;
|
||||||
|
max-width: calc(0.8em + 4vw);
|
||||||
|
text-indent: -9999px; }
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
trix-toolbar .trix-button--icon {
|
||||||
|
height: 2em;
|
||||||
|
max-width: calc(0.8em + 3.5vw); } }
|
||||||
|
trix-toolbar .trix-button--icon::before {
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.6;
|
||||||
|
content: "";
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: contain; }
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
trix-toolbar .trix-button--icon::before {
|
||||||
|
right: 6%;
|
||||||
|
left: 6%; } }
|
||||||
|
trix-toolbar .trix-button--icon.trix-active::before {
|
||||||
|
opacity: 1; }
|
||||||
|
trix-toolbar .trix-button--icon:disabled::before {
|
||||||
|
opacity: 0.125; }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-attach::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
|
||||||
|
top: 8%;
|
||||||
|
bottom: 4%; }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-bold::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-italic::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-link::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-strike::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-quote::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-heading-1::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-code::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-bullet-list::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-number-list::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-undo::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-redo::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-decrease-nesting-level::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--icon-increase-nesting-level::before {
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
|
||||||
|
|
||||||
|
trix-toolbar .trix-dialogs {
|
||||||
|
position: relative; }
|
||||||
|
|
||||||
|
trix-toolbar .trix-dialog {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
font-size: 0.75em;
|
||||||
|
padding: 15px 10px;
|
||||||
|
background: #fff;
|
||||||
|
box-shadow: 0 0.3em 1em #ccc;
|
||||||
|
border-top: 2px solid #888;
|
||||||
|
border-radius: 5px;
|
||||||
|
z-index: 5; }
|
||||||
|
|
||||||
|
trix-toolbar .trix-input--dialog {
|
||||||
|
font-size: inherit;
|
||||||
|
font-weight: normal;
|
||||||
|
padding: 0.5em 0.8em;
|
||||||
|
margin: 0 10px 0 0;
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: none;
|
||||||
|
outline: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-appearance: none; }
|
||||||
|
trix-toolbar .trix-input--dialog.validate:invalid {
|
||||||
|
box-shadow: #F00 0px 0px 1.5px 1px; }
|
||||||
|
|
||||||
|
trix-toolbar .trix-button--dialog {
|
||||||
|
font-size: inherit;
|
||||||
|
padding: 0.5em;
|
||||||
|
border-bottom: none; }
|
||||||
|
|
||||||
|
trix-toolbar .trix-dialog--link {
|
||||||
|
max-width: 600px; }
|
||||||
|
|
||||||
|
trix-toolbar .trix-dialog__link-fields {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline; }
|
||||||
|
trix-toolbar .trix-dialog__link-fields .trix-input {
|
||||||
|
flex: 1; }
|
||||||
|
trix-toolbar .trix-dialog__link-fields .trix-button-group {
|
||||||
|
flex: 0 0 content;
|
||||||
|
margin: 0; }
|
||||||
|
|
||||||
|
trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none; }
|
||||||
|
|
||||||
|
trix-editor [data-trix-mutable]::-moz-selection,
|
||||||
|
trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
|
||||||
|
background: none; }
|
||||||
|
|
||||||
|
trix-editor [data-trix-mutable]::selection,
|
||||||
|
trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {
|
||||||
|
background: none; }
|
||||||
|
|
||||||
|
trix-editor .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
|
||||||
|
background: highlight; }
|
||||||
|
|
||||||
|
trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
|
||||||
|
background: highlight; }
|
||||||
|
|
||||||
|
trix-editor [data-trix-mutable].attachment.attachment--file {
|
||||||
|
box-shadow: 0 0 0 2px highlight;
|
||||||
|
border-color: transparent; }
|
||||||
|
|
||||||
|
trix-editor [data-trix-mutable].attachment img {
|
||||||
|
box-shadow: 0 0 0 2px highlight; }
|
||||||
|
|
||||||
|
trix-editor .attachment {
|
||||||
|
position: relative; }
|
||||||
|
trix-editor .attachment:hover {
|
||||||
|
cursor: default; }
|
||||||
|
|
||||||
|
trix-editor .attachment--preview .attachment__caption:hover {
|
||||||
|
cursor: text; }
|
||||||
|
|
||||||
|
trix-editor .attachment__progress {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
height: 20px;
|
||||||
|
top: calc(50% - 10px);
|
||||||
|
left: 5%;
|
||||||
|
width: 90%;
|
||||||
|
opacity: 0.9;
|
||||||
|
transition: opacity 200ms ease-in; }
|
||||||
|
trix-editor .attachment__progress[value="100"] {
|
||||||
|
opacity: 0; }
|
||||||
|
|
||||||
|
trix-editor .attachment__caption-editor {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-size: inherit;
|
||||||
|
font-family: inherit;
|
||||||
|
line-height: inherit;
|
||||||
|
color: inherit;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: top;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-appearance: none; }
|
||||||
|
|
||||||
|
trix-editor .attachment__toolbar {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
top: -0.9em;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center; }
|
||||||
|
|
||||||
|
trix-editor .trix-button-group {
|
||||||
|
display: inline-flex; }
|
||||||
|
|
||||||
|
trix-editor .trix-button {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
color: #666;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 80%;
|
||||||
|
padding: 0 0.8em;
|
||||||
|
margin: 0;
|
||||||
|
outline: none;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
background: transparent; }
|
||||||
|
trix-editor .trix-button:not(:first-child) {
|
||||||
|
border-left: 1px solid #ccc; }
|
||||||
|
trix-editor .trix-button.trix-active {
|
||||||
|
background: #cbeefa; }
|
||||||
|
trix-editor .trix-button:not(:disabled) {
|
||||||
|
cursor: pointer; }
|
||||||
|
|
||||||
|
trix-editor .trix-button--remove {
|
||||||
|
text-indent: -9999px;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0;
|
||||||
|
outline: none;
|
||||||
|
width: 1.8em;
|
||||||
|
height: 1.8em;
|
||||||
|
line-height: 1.8em;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 2px solid highlight;
|
||||||
|
box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); }
|
||||||
|
trix-editor .trix-button--remove::before {
|
||||||
|
display: inline-block;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.7;
|
||||||
|
content: "";
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 90%; }
|
||||||
|
trix-editor .trix-button--remove:hover {
|
||||||
|
border-color: #333; }
|
||||||
|
trix-editor .trix-button--remove:hover::before {
|
||||||
|
opacity: 1; }
|
||||||
|
|
||||||
|
trix-editor .attachment__metadata-container {
|
||||||
|
position: relative; }
|
||||||
|
|
||||||
|
trix-editor .attachment__metadata {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 2em;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
max-width: 90%;
|
||||||
|
padding: 0.1em 0.6em;
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: #fff;
|
||||||
|
background-color: rgba(0, 0, 0, 0.7);
|
||||||
|
border-radius: 3px; }
|
||||||
|
trix-editor .attachment__metadata .attachment__name {
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 100%;
|
||||||
|
vertical-align: bottom;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap; }
|
||||||
|
trix-editor .attachment__metadata .attachment__size {
|
||||||
|
margin-left: 0.2em;
|
||||||
|
white-space: nowrap; }
|
||||||
|
|
||||||
|
.trix-content {
|
||||||
|
line-height: 1.5;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
word-break: break-word; }
|
||||||
|
.trix-content * {
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0; }
|
||||||
|
.trix-content h1 {
|
||||||
|
font-size: 1.2em;
|
||||||
|
line-height: 1.2; }
|
||||||
|
.trix-content blockquote {
|
||||||
|
border: 0 solid #ccc;
|
||||||
|
border-left-width: 0.3em;
|
||||||
|
margin-left: 0.3em;
|
||||||
|
padding-left: 0.6em; }
|
||||||
|
.trix-content [dir=rtl] blockquote,
|
||||||
|
.trix-content blockquote[dir=rtl] {
|
||||||
|
border-width: 0;
|
||||||
|
border-right-width: 0.3em;
|
||||||
|
margin-right: 0.3em;
|
||||||
|
padding-right: 0.6em; }
|
||||||
|
.trix-content li {
|
||||||
|
margin-left: 1em; }
|
||||||
|
.trix-content [dir=rtl] li {
|
||||||
|
margin-right: 1em; }
|
||||||
|
.trix-content pre {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
vertical-align: top;
|
||||||
|
font-family: monospace;
|
||||||
|
font-size: 0.9em;
|
||||||
|
padding: 0.5em;
|
||||||
|
white-space: pre;
|
||||||
|
background-color: #eee;
|
||||||
|
overflow-x: auto; }
|
||||||
|
.trix-content img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto; }
|
||||||
|
.trix-content .attachment {
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
max-width: 100%; }
|
||||||
|
.trix-content .attachment a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none; }
|
||||||
|
.trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
|
||||||
|
color: inherit; }
|
||||||
|
.trix-content .attachment__caption {
|
||||||
|
text-align: center; }
|
||||||
|
.trix-content .attachment__caption .attachment__name + .attachment__size::before {
|
||||||
|
content: ' \2022 '; }
|
||||||
|
.trix-content .attachment--preview {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center; }
|
||||||
|
.trix-content .attachment--preview .attachment__caption {
|
||||||
|
color: #666;
|
||||||
|
font-size: 0.9em;
|
||||||
|
line-height: 1.2; }
|
||||||
|
.trix-content .attachment--file {
|
||||||
|
color: #333;
|
||||||
|
line-height: 1;
|
||||||
|
margin: 0 2px 2px 2px;
|
||||||
|
padding: 0.4em 1em;
|
||||||
|
border: 1px solid #bbb;
|
||||||
|
border-radius: 5px; }
|
||||||
|
.trix-content .attachment-gallery {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
position: relative; }
|
||||||
|
.trix-content .attachment-gallery .attachment {
|
||||||
|
flex: 1 0 33%;
|
||||||
|
padding: 0 0.5em;
|
||||||
|
max-width: 33%; }
|
||||||
|
.trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
|
||||||
|
flex-basis: 50%;
|
||||||
|
max-width: 50%; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We need to override trix.css’s image gallery styles to accommodate the
|
||||||
|
* <action-text-attachment> element we wrap around attachments. Otherwise,
|
||||||
|
* images in galleries will be squished by the max-width: 33%; rule.
|
||||||
|
*/
|
||||||
|
.trix-content .attachment-gallery > action-text-attachment,
|
||||||
|
.trix-content .attachment-gallery > .attachment {
|
||||||
|
flex: 1 0 33%;
|
||||||
|
padding: 0 0.5em;
|
||||||
|
max-width: 33%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
|
||||||
|
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
|
||||||
|
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
|
||||||
|
flex-basis: 50%;
|
||||||
|
max-width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.trix-content action-text-attachment .attachment {
|
||||||
|
padding: 0 !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
}
|
||||||
472
app/assets/stylesheets/application.css
Normal file
472
app/assets/stylesheets/application.css
Normal file
|
|
@ -0,0 +1,472 @@
|
||||||
|
/*
|
||||||
|
* This is a manifest file that'll be compiled into application.css.
|
||||||
|
*
|
||||||
|
* With Propshaft, assets are served efficiently without preprocessing steps. You can still include
|
||||||
|
* application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
|
||||||
|
* cascading order, meaning styles declared later in the document or manifest will override earlier ones,
|
||||||
|
* depending on specificity.
|
||||||
|
*
|
||||||
|
* Consider organizing styles into separate files for maintainability.
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
* This is a manifest file that'll be compiled into application.css.
|
||||||
|
*
|
||||||
|
* With Propshaft, assets are served efficiently without preprocessing steps. You can still include
|
||||||
|
* application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
|
||||||
|
* cascading order, meaning styles declared later in the document or manifest will override earlier ones,
|
||||||
|
* depending on specificity.
|
||||||
|
*
|
||||||
|
* Consider organizing styles into separate files for maintainability.
|
||||||
|
*/
|
||||||
|
// <weight>: Use a value from 300 to 900
|
||||||
|
// <uniquifier>: Use a unique and descriptive class name
|
||||||
|
.header ul ul {
|
||||||
|
background: var(--content-background-color);
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 10px;
|
||||||
|
padding: 0.5em;
|
||||||
|
z-index: 1;
|
||||||
|
border: var(--border);
|
||||||
|
min-width: 100%;
|
||||||
|
box-shadow: 0px 1px 5px rgba(0,0,0,0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header ul li:hover ul,
|
||||||
|
.header ul li:focus-within ul {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.webringy {
|
||||||
|
width: 29rem;
|
||||||
|
overflow: scroll;
|
||||||
|
height:8rem;
|
||||||
|
background: #3a6662;}
|
||||||
|
|
||||||
|
.header ul li strong {
|
||||||
|
color: var(--link-color);
|
||||||
|
text-decoration: underline;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header ul ul li a {
|
||||||
|
display: block;
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.winky-sans-all{
|
||||||
|
font-family: "Winky Sans", sans-serif;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-weight: 600;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
table.intereststable {
|
||||||
|
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown {
|
||||||
|
float: none;
|
||||||
|
width: 5rem;}
|
||||||
|
|
||||||
|
.dropdown .dropbtn {
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 1rem;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
color: white;
|
||||||
|
padding: 14px 16px;
|
||||||
|
background-color: inherit;
|
||||||
|
font-family: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus {
|
||||||
|
background-color: purple;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-content {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
min-width: 160px;
|
||||||
|
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
||||||
|
z-index: 1;}
|
||||||
|
|
||||||
|
.dropdown-content a {
|
||||||
|
float: none;
|
||||||
|
color: black;
|
||||||
|
padding: 12px 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
display: block;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-content a:hover {
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.show {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
section.bottomindex {
|
||||||
|
border: 1px solid black;
|
||||||
|
width: 550px;
|
||||||
|
height: 230px;
|
||||||
|
overflow: scroll;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
section.etc {
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 10px;
|
||||||
|
width:260px;
|
||||||
|
height: 350px;
|
||||||
|
overflow: scroll;
|
||||||
|
margin-left: 730px;
|
||||||
|
}
|
||||||
|
@font-face { font-family: "rustic roadway"; src: url('../fonts/RusticRoadway.otf'); format("opentype");}
|
||||||
|
@font-face { font-family: "brillant"; src: url('../fonts/brillant.otf'); format("opentype");}
|
||||||
|
|
||||||
|
#writer {
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 10px; /* creates some space around the widget */
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: "brillant"
|
||||||
|
}
|
||||||
|
|
||||||
|
#writer a {
|
||||||
|
color: #A04668;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#writer a:hover {
|
||||||
|
color: #FFB17A;
|
||||||
|
text-dcoration: dotted underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
#writer table {
|
||||||
|
/* makes the background pure white */
|
||||||
|
margin: 0 auto; /* centers the widget */
|
||||||
|
}
|
||||||
|
|
||||||
|
#writer table tr td {
|
||||||
|
/* creates some space between the links and text inside the widget */
|
||||||
|
}
|
||||||
|
|
||||||
|
#writer .webring-prev {
|
||||||
|
text-align:right;
|
||||||
|
}
|
||||||
|
|
||||||
|
#writer .webring-info {
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#writer .webring-next {
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#writer .webring-links {
|
||||||
|
font-size:small;
|
||||||
|
}
|
||||||
|
|
||||||
|
section.blogdesc {
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
#minty {
|
||||||
|
padding: .5em;
|
||||||
|
background-color:#e4c5e6;
|
||||||
|
border: 1px solid #3af2e6;
|
||||||
|
color: #000;}
|
||||||
|
|
||||||
|
#minty a {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
#minty-username {
|
||||||
|
margin-bottom: .5em;
|
||||||
|
}
|
||||||
|
.marquee {
|
||||||
|
position: absolute;
|
||||||
|
width:100%;
|
||||||
|
margin-top: 25px;
|
||||||
|
}
|
||||||
|
#minty-content {
|
||||||
|
margin: 0 1em 0.5em 1em;
|
||||||
|
}
|
||||||
|
section.aboutus {
|
||||||
|
border: 1px solid black;
|
||||||
|
padding:10px;
|
||||||
|
width: 29.375rem;
|
||||||
|
height: auto;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
margin-left:230px;
|
||||||
|
overflow: scroll;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
section.latestpost {
|
||||||
|
position: absolute;
|
||||||
|
width: 12.5rem;
|
||||||
|
height: 28rem;
|
||||||
|
overflow: scroll;
|
||||||
|
margin-left: -15px;
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
section.posts {
|
||||||
|
margin: 0 auto;
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
section.interests {
|
||||||
|
float: right;
|
||||||
|
width: 250px;
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
section.createmember {
|
||||||
|
float: right;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
section.membertable {
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 3%;
|
||||||
|
}
|
||||||
|
section.memberspecific {
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
padding: 3%;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
tr.member {
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
||||||
|
td.member {
|
||||||
|
padding: 25px;
|
||||||
|
|
||||||
|
}
|
||||||
|
td.memberinterests {
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
section.memberlist {
|
||||||
|
width: 850px;
|
||||||
|
height: auto;
|
||||||
|
border: 1px solid black;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 9px;
|
||||||
|
}
|
||||||
|
section.avatarimg {
|
||||||
|
border: 3px double black;
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
section.memberinner {
|
||||||
|
border:1px solid black;
|
||||||
|
width: 243px;
|
||||||
|
height: auto;
|
||||||
|
float: left;
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
color: #fff;
|
||||||
|
font-family: monospace;
|
||||||
|
font-size: 1rem;
|
||||||
|
background: #2d0042;
|
||||||
|
background: linear-gradient(90deg, rgba(45, 0, 66, 1) 0%, rgba(0, 145, 138, 1) 49%, rgba(255, 161, 252, 1) 100%);
|
||||||
|
section.inner {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
section.about {
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 480px;
|
||||||
|
height: auto;
|
||||||
|
border:2px outset #000;
|
||||||
|
}
|
||||||
|
section.footer {
|
||||||
|
background: #2d0042;
|
||||||
|
background: linear-gradient(90deg, rgba(45, 0, 66, 1) 0%, rgba(0, 145, 138, 1) 49%, rgba(255, 161, 252, 1) 100%);
|
||||||
|
width: 750px;
|
||||||
|
color: #fff;
|
||||||
|
height: 30px;
|
||||||
|
text-align: center;
|
||||||
|
padding-left: 2%;
|
||||||
|
padding-right: 2%;
|
||||||
|
padding-bottom: 1%;
|
||||||
|
margin: auto;
|
||||||
|
border:3px outset #000;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
border: 5px outset #42f548;
|
||||||
|
color: #000;
|
||||||
|
width: auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.profilenews {
|
||||||
|
background: #fff;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
main {
|
||||||
|
width:46.875rem;
|
||||||
|
height: auto;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: #2d0042;
|
||||||
|
background: linear-gradient(90deg, rgba(45, 0, 66, 1) 0%, rgba(0, 145, 138, 1) 49%, rgba(255, 161, 252, 1) 100%);
|
||||||
|
border: 8px groove #00918A;
|
||||||
|
box-shadow: 8px 2px 5px 2px #a3ffc3;
|
||||||
|
padding-left: 2%;
|
||||||
|
padding-right: 2%;
|
||||||
|
|
||||||
|
}
|
||||||
|
.header {
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
background: #2d0042;
|
||||||
|
background: radial-gradient(circle, rgba(45, 0, 66, 1) 0%, rgba(0, 145, 138, 1) 49%, rgba(255, 161, 252, 1) 100%);
|
||||||
|
color: #fff;}
|
||||||
|
.headerall {
|
||||||
|
color: #fff;
|
||||||
|
background: #ffe0e8;
|
||||||
|
background: #2d0042;
|
||||||
|
background: radial-gradient(circle, rgba(45, 0, 66, 1) 0%, rgba(0, 145, 138, 1) 49%, rgba(255, 161, 252, 1) 100%);}
|
||||||
|
a {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
a:visited {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.header a{
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
section.profileinner {
|
||||||
|
text-align: left;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
section.article {
|
||||||
|
text-align: center;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 5px;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
section.profile {
|
||||||
|
text-align: center;
|
||||||
|
padding: 15px;
|
||||||
|
color: #fff;
|
||||||
|
background-color:#845d91;
|
||||||
|
}
|
||||||
|
h1.h1bio {
|
||||||
|
width: 350px;
|
||||||
|
color:#fff;
|
||||||
|
margin: auto;
|
||||||
|
background: #2d0042;
|
||||||
|
background: radial-gradient(circle, rgba(45, 0, 66, 1) 0%, rgba(0, 145, 138, 1) 49%, rgba(255, 161, 252, 1) 100%);}
|
||||||
|
section.homepage {
|
||||||
|
|
||||||
|
}
|
||||||
|
a:visited {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
a:hover {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
section.auth {
|
||||||
|
float:right;
|
||||||
|
box-shadow: 3px 3px 3px gray;
|
||||||
|
background: #fff;
|
||||||
|
color: #000;
|
||||||
|
|
||||||
|
}
|
||||||
|
section.newstuff {
|
||||||
|
width:200px;
|
||||||
|
border:5px outset #42f548;
|
||||||
|
background: pink;
|
||||||
|
color: #000;
|
||||||
|
text-align: center;
|
||||||
|
margin: auto;
|
||||||
|
padding: 3px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
section.articleshow {
|
||||||
|
align-content: center;
|
||||||
|
background: pink;
|
||||||
|
color: #000;
|
||||||
|
border:5px outset #42f548;
|
||||||
|
}
|
||||||
|
section.newstuff a, a:visited, a:hover {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
table.articleshowing {
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.articleshowing a {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.articleshowing a:visited {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
table.articleshowing a:hover {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
section.profilelist { margin: auto; width: 300px; align-content: center; padding: 10px; overflow: scroll; background-color:
|
||||||
|
pink; color: #000;
|
||||||
|
border:5px outset #42f548;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 490px) {
|
||||||
|
main {
|
||||||
|
width:22.875rem;
|
||||||
|
height:100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
background: #2d0042;
|
||||||
|
background: linear-gradient(90deg, rgba(45, 0, 66, 1) 0%, rgba(0, 145, 138, 1) 49%, rgba(255, 161, 252, 1) 100%);
|
||||||
|
border: 8px groove #00918A;
|
||||||
|
box-shadow: 8px 2px 5px 2px #a3ffc3;
|
||||||
|
padding-left: 2%;
|
||||||
|
padding-right: 2%;
|
||||||
|
|
||||||
|
}
|
||||||
|
section.aboutus {
|
||||||
|
border: 1px solid black;
|
||||||
|
padding:10px;
|
||||||
|
width: 13.3rem;
|
||||||
|
height: auto;
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: center;
|
||||||
|
overflow: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
section.latestpost {
|
||||||
|
width: 4.5rem;
|
||||||
|
height: 15rem;
|
||||||
|
overflow: scroll;
|
||||||
|
border: 1px solid black;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
section.footer {
|
||||||
|
background: #2d0042;
|
||||||
|
background: linear-gradient(90deg, rgba(45, 0, 66, 1) 0%, rgba(0, 145, 138, 1) 49%, rgba(255, 161, 252, 1) 100%);
|
||||||
|
width: 25rem;
|
||||||
|
color: #fff;
|
||||||
|
height: 2rem;
|
||||||
|
text-align: center;
|
||||||
|
padding-left: 2%;
|
||||||
|
padding-right: 2%;
|
||||||
|
padding-bottom: 1%;
|
||||||
|
margin: auto;
|
||||||
|
border:3px outset #000;
|
||||||
|
}
|
||||||
|
}
|
||||||
16
app/channels/application_cable/connection.rb
Normal file
16
app/channels/application_cable/connection.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
module ApplicationCable
|
||||||
|
class Connection < ActionCable::Connection::Base
|
||||||
|
identified_by :current_user
|
||||||
|
|
||||||
|
def connect
|
||||||
|
set_current_user || reject_unauthorized_connection
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
def set_current_user
|
||||||
|
if session = Session.find_by(id: cookies.signed[:session_id])
|
||||||
|
self.current_user = session.user
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
22
app/controllers/application_controller.rb
Normal file
22
app/controllers/application_controller.rb
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
class ApplicationController < ActionController::Base
|
||||||
|
include Authentication
|
||||||
|
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
|
||||||
|
allow_browser versions: :modern
|
||||||
|
|
||||||
|
# Changes to the importmap will invalidate the etag for HTML responses
|
||||||
|
stale_when_importmap_changes
|
||||||
|
helper_method :current_user
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def current_user
|
||||||
|
|
||||||
|
@current_user ||= User.find_by(id: session[:user_id]) if session[:user_id]
|
||||||
|
end
|
||||||
|
|
||||||
|
def authenticate_user!
|
||||||
|
unless current_user
|
||||||
|
redirect_to login_path, alert: "You must be logged in to access this page."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
70
app/controllers/blogs_controller.rb
Normal file
70
app/controllers/blogs_controller.rb
Normal file
|
|
@ -0,0 +1,70 @@
|
||||||
|
class BlogsController < ApplicationController
|
||||||
|
|
||||||
|
#class BlogsController < ApplicationController
|
||||||
|
before_action :authenticate_user!, only: [:destroy, :new, :create, :edit, :update]
|
||||||
|
allow_unauthenticated_access(only: %i[index show])
|
||||||
|
before_action :set_profile
|
||||||
|
before_action :set_blog, only: [:show, :edit, :update, :destroy]
|
||||||
|
def index
|
||||||
|
@blogs = Blog.all
|
||||||
|
end
|
||||||
|
|
||||||
|
def edit
|
||||||
|
@blog = Blog.find(params[:id])
|
||||||
|
end
|
||||||
|
def new
|
||||||
|
@blog = @profile.blogs.new
|
||||||
|
@blog = @profile.blogs.build
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def create
|
||||||
|
@blog = @profile.blogs.new(blog_params)
|
||||||
|
|
||||||
|
if @blog.save
|
||||||
|
|
||||||
|
redirect_to root_path, notice: 'Blog was successfully created.'
|
||||||
|
else
|
||||||
|
|
||||||
|
render :new, notice: 'Could not save blog.'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
def destroy
|
||||||
|
@profile = Profile.find(params[:profile_id])
|
||||||
|
@profile = @profile.blogs.find(params[:id])
|
||||||
|
@blog.destroy
|
||||||
|
redirect_to profile_path(@profile), notice: "Blog deleted."
|
||||||
|
end
|
||||||
|
def show
|
||||||
|
@profile = Profile.find(params[:profile_id])
|
||||||
|
@blog = @profile.blogs.find(params[:id])
|
||||||
|
@posts = @blog.posts.order(created_at: :desc)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def update
|
||||||
|
@blog = Blog.find(params[:id])
|
||||||
|
|
||||||
|
if @blog.update(blog_params)
|
||||||
|
redirect_to profile_blog_path(@profile)
|
||||||
|
else
|
||||||
|
render :edit
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
private
|
||||||
|
|
||||||
|
def blog_params
|
||||||
|
params.require(:blog).permit(:title, :topic)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def set_profile
|
||||||
|
@profile = Profile.find(params[:profile_id])
|
||||||
|
end
|
||||||
|
def set_blog
|
||||||
|
@blog = @profile.blogs.find(params[:id])
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
0
app/controllers/concerns/.keep
Normal file
0
app/controllers/concerns/.keep
Normal file
52
app/controllers/concerns/authentication.rb
Normal file
52
app/controllers/concerns/authentication.rb
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
module Authentication
|
||||||
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
|
included do
|
||||||
|
before_action :require_authentication
|
||||||
|
helper_method :authenticated?
|
||||||
|
end
|
||||||
|
|
||||||
|
class_methods do
|
||||||
|
def allow_unauthenticated_access(**options)
|
||||||
|
skip_before_action :require_authentication, **options
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
def authenticated?
|
||||||
|
resume_session
|
||||||
|
end
|
||||||
|
|
||||||
|
def require_authentication
|
||||||
|
resume_session || request_authentication
|
||||||
|
end
|
||||||
|
|
||||||
|
def resume_session
|
||||||
|
Current.session ||= find_session_by_cookie
|
||||||
|
end
|
||||||
|
|
||||||
|
def find_session_by_cookie
|
||||||
|
Session.find_by(id: cookies.signed[:session_id]) if cookies.signed[:session_id]
|
||||||
|
end
|
||||||
|
|
||||||
|
def request_authentication
|
||||||
|
session[:return_to_after_authenticating] = request.url
|
||||||
|
redirect_to new_session_path
|
||||||
|
end
|
||||||
|
|
||||||
|
def after_authentication_url
|
||||||
|
session.delete(:return_to_after_authenticating) || root_url
|
||||||
|
end
|
||||||
|
|
||||||
|
def start_new_session_for(user)
|
||||||
|
user.sessions.create!(user_agent: request.user_agent, ip_address: request.remote_ip).tap do |session|
|
||||||
|
Current.session = session
|
||||||
|
cookies.signed.permanent[:session_id] = { value: session.id, httponly: true, same_site: :lax }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def terminate_session
|
||||||
|
Current.session.destroy
|
||||||
|
cookies.delete(:session_id)
|
||||||
|
end
|
||||||
|
end
|
||||||
53
app/controllers/miniblogs_controller.rb
Normal file
53
app/controllers/miniblogs_controller.rb
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
class MiniblogsController < ApplicationController
|
||||||
|
allow_unauthenticated_access(only: %i[index show])
|
||||||
|
def index
|
||||||
|
@miniblog = Miniblog.all
|
||||||
|
end
|
||||||
|
def edit
|
||||||
|
@miniblog = Miniblog.find(params[:id])
|
||||||
|
end
|
||||||
|
|
||||||
|
def update
|
||||||
|
@miniblog = Miniblog.find(params[:id])
|
||||||
|
if @miniblog.update(scrap_params)
|
||||||
|
redirect_to posts_path, notice: "scrap edited."
|
||||||
|
else
|
||||||
|
render :edit, status: :unprocessable_entity, notice: "U fucked up somewhere."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def new
|
||||||
|
@miniblog = Miniblog.new
|
||||||
|
end
|
||||||
|
|
||||||
|
def create
|
||||||
|
@miniblog = Miniblog.new(miniblog_params)
|
||||||
|
if @miniblog.save
|
||||||
|
redirect_to miniblog_path, notice: "scrap created."
|
||||||
|
else
|
||||||
|
render :new, status: :unprocessable_entity, notice: "U fucked up somewhere."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
@miniblog = Miniblog.find(params[:id])
|
||||||
|
@miniblog.destroy
|
||||||
|
redirect_to welcome_index_path, notice: "Member deleted."
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def show
|
||||||
|
@miniblog = Miniblog.find_by(id: params[:id])
|
||||||
|
if @miniblog.nil?
|
||||||
|
flash[:alert] = "Miniblog entry not found"
|
||||||
|
redirect_to welcome_index_path
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def miniblog_params
|
||||||
|
params.require(:scrap).permit(:text, :music, :mood)
|
||||||
|
end
|
||||||
|
end
|
||||||
2
app/controllers/miniposts_controller.rb
Normal file
2
app/controllers/miniposts_controller.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
class MinipostsController < ApplicationController
|
||||||
|
end
|
||||||
35
app/controllers/passwords_controller.rb
Normal file
35
app/controllers/passwords_controller.rb
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
class PasswordsController < ApplicationController
|
||||||
|
allow_unauthenticated_access
|
||||||
|
before_action :set_user_by_token, only: %i[ edit update ]
|
||||||
|
rate_limit to: 10, within: 3.minutes, only: :create, with: -> { redirect_to new_password_path, alert: "Try again later." }
|
||||||
|
|
||||||
|
def new
|
||||||
|
end
|
||||||
|
|
||||||
|
def create
|
||||||
|
if user = User.find_by(email_address: params[:email_address])
|
||||||
|
PasswordsMailer.reset(user).deliver_later
|
||||||
|
end
|
||||||
|
|
||||||
|
redirect_to new_session_path, notice: "Password reset instructions sent (if user with that email address exists)."
|
||||||
|
end
|
||||||
|
|
||||||
|
def edit
|
||||||
|
end
|
||||||
|
|
||||||
|
def update
|
||||||
|
if @user.update(params.permit(:password, :password_confirmation))
|
||||||
|
@user.sessions.destroy_all
|
||||||
|
redirect_to new_session_path, notice: "Password has been reset."
|
||||||
|
else
|
||||||
|
redirect_to edit_password_path(params[:token]), alert: "Passwords did not match."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
def set_user_by_token
|
||||||
|
@user = User.find_by_password_reset_token!(params[:token])
|
||||||
|
rescue ActiveSupport::MessageVerifier::InvalidSignature
|
||||||
|
redirect_to new_password_path, alert: "Password reset link is invalid or has expired."
|
||||||
|
end
|
||||||
|
end
|
||||||
82
app/controllers/posts_controller.rb
Normal file
82
app/controllers/posts_controller.rb
Normal file
|
|
@ -0,0 +1,82 @@
|
||||||
|
class PostsController < ApplicationController
|
||||||
|
before_action :authenticate_user!, only: [:new, :create, :edit, :update, :destroy]
|
||||||
|
allow_unauthenticated_access(only: [:index, :show])
|
||||||
|
|
||||||
|
#before_action :set_profile
|
||||||
|
before_action :set_blog
|
||||||
|
#before_action :set_post, only: [:show, :edit, :update, :destroy]
|
||||||
|
|
||||||
|
def index
|
||||||
|
#@blog = Blog.all
|
||||||
|
@posts = Post.order(created_at: :desc)
|
||||||
|
end
|
||||||
|
|
||||||
|
def show
|
||||||
|
# @blog = Blog.find(params[:blog_id])
|
||||||
|
@profile = Profile.find(params[:profile_id])
|
||||||
|
@blog = Blog.find(params[:blog_id])
|
||||||
|
@post = Post.find(params[:id])
|
||||||
|
end
|
||||||
|
|
||||||
|
def new
|
||||||
|
@profile = Profile.find(params[:profile_id])
|
||||||
|
@blog = Blog.find(params[:blog_id])
|
||||||
|
@post = @blog.posts.build
|
||||||
|
end
|
||||||
|
|
||||||
|
def create
|
||||||
|
@profile = Profile.find(params[:profile_id])
|
||||||
|
@blog = Blog.find(params[:blog_id])
|
||||||
|
@post = @blog.posts.create(post_params)
|
||||||
|
if @post.save
|
||||||
|
redirect_to profile_blog_post_path(@profile, @blog, @post), notice: "Post created."
|
||||||
|
else
|
||||||
|
render :new, status: :unprocessable_entity
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def edit
|
||||||
|
@profile = Profile.find(params[:profile_id])
|
||||||
|
@blog = Blog.find(params[:blog_id])
|
||||||
|
@post = @blog.posts.find(params[:id])
|
||||||
|
end
|
||||||
|
|
||||||
|
def update
|
||||||
|
@profile = Profile.find(params[:profile_id])
|
||||||
|
@blog = Blog.find(params[:blog_id])
|
||||||
|
@post = @blog.posts.find(params[:id])
|
||||||
|
if @post.update(post_params)
|
||||||
|
redirect_to profile_blog_post_path(@profile, @blog, @post), notice: "Post updated."
|
||||||
|
else
|
||||||
|
render :edit, status: :unprocessable_entity
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
|
||||||
|
@profile = Profile.find(params[:profile_id])
|
||||||
|
@blog = Blog.find(params[:blog_id])
|
||||||
|
#@post = @blog.posts.find(params[:id])
|
||||||
|
@post = Post.find(params[:id])
|
||||||
|
@post.destroy
|
||||||
|
redirect_to profile_blog_path(@profile, @blog), notice: "Post deleted."
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def set_profile
|
||||||
|
@profile = profile.find(params[:profile_id])
|
||||||
|
end
|
||||||
|
|
||||||
|
def set_blog
|
||||||
|
@blog = Blog.find(params[:blog_id])
|
||||||
|
end
|
||||||
|
|
||||||
|
# def set_post
|
||||||
|
# @post = @blog.post.find(params[:id])
|
||||||
|
#end
|
||||||
|
|
||||||
|
def post_params
|
||||||
|
params.require(:post).permit(:title, :body, :text, :mood, :music, :icon_image)
|
||||||
|
end
|
||||||
|
end
|
||||||
60
app/controllers/profiles_controller.rb
Normal file
60
app/controllers/profiles_controller.rb
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
class ProfilesController < ApplicationController
|
||||||
|
|
||||||
|
#class MembersController < ApplicationController
|
||||||
|
before_action :authenticate_user!, only: [:edit, :update]
|
||||||
|
allow_unauthenticated_access(only: %i[index show])
|
||||||
|
def index
|
||||||
|
#@members = Member.all
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def blogs
|
||||||
|
@blog = Blog.all
|
||||||
|
end
|
||||||
|
def edit
|
||||||
|
@profile = Profile.find(params[:id])
|
||||||
|
end
|
||||||
|
def new
|
||||||
|
@profile = current_user.profiles.new
|
||||||
|
end
|
||||||
|
def update
|
||||||
|
@profile = Profile.find(params[:id])
|
||||||
|
if @profile.update(profile_params)
|
||||||
|
redirect_to @profile
|
||||||
|
else
|
||||||
|
render :edit
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
#def create
|
||||||
|
# @member = current_user.members.new(member_params)
|
||||||
|
|
||||||
|
# if @member.save
|
||||||
|
# redirect_to @member
|
||||||
|
# else
|
||||||
|
# redirect_to root_path
|
||||||
|
# end
|
||||||
|
#end
|
||||||
|
|
||||||
|
#def destroy
|
||||||
|
# @profile = Member.find(params[:id])
|
||||||
|
# @member.destroy
|
||||||
|
# redirect_to member_path(@member), notice: "Member deleted."
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
def show
|
||||||
|
@profile = Profile.find_by(id: params[:id])
|
||||||
|
if @profile.nil?
|
||||||
|
flash[:alert] = "serenity borked it"
|
||||||
|
redirect_to root_path
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
private
|
||||||
|
|
||||||
|
def profile_params
|
||||||
|
params.require(:profile).permit(:name, :bio, :age, :pronouns, :interests, :avatar_image )
|
||||||
|
end
|
||||||
|
|
||||||
31
app/controllers/sessions_controller.rb
Normal file
31
app/controllers/sessions_controller.rb
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
class SessionsController < ApplicationController
|
||||||
|
|
||||||
|
allow_unauthenticated_access only: %i[new create]
|
||||||
|
rate_limit to: 10, within: 3.minutes, only: :create, with: -> { redirect_to new_session_path, alert: "Try again later." }
|
||||||
|
|
||||||
|
|
||||||
|
def new
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def create
|
||||||
|
|
||||||
|
user = User.find_by(email_address: params[:email_address])
|
||||||
|
|
||||||
|
if user&.authenticate(params[:password])
|
||||||
|
session[:user_id] = user.id
|
||||||
|
start_new_session_for(user)
|
||||||
|
redirect_to root_path, notice: "Signed in!"
|
||||||
|
else
|
||||||
|
flash[:alert] = "Invalid email or password"
|
||||||
|
render :new, status: :unprocessable_entity
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
session.delete(:user_id)
|
||||||
|
reset_session
|
||||||
|
redirect_to root_path, notice: "Signed out!"
|
||||||
|
end
|
||||||
|
end
|
||||||
2
app/controllers/site_reports_controller.rb
Normal file
2
app/controllers/site_reports_controller.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
class SiteReportsController < ApplicationController
|
||||||
|
end
|
||||||
61
app/controllers/sitereports_controller.rb
Normal file
61
app/controllers/sitereports_controller.rb
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
class SitereportsController < ApplicationController
|
||||||
|
|
||||||
|
before_action :authenticate_user!, only: [:new, :create, :edit, :update, :destroy]
|
||||||
|
allow_unauthenticated_access(only: [:index, :show])
|
||||||
|
|
||||||
|
def index
|
||||||
|
@sitereports = sitereport.order(created_at: :desc)
|
||||||
|
end
|
||||||
|
|
||||||
|
def show
|
||||||
|
@sitereports = Sitereport.find(params[:id])
|
||||||
|
end
|
||||||
|
|
||||||
|
def new
|
||||||
|
@sitereport = sitereports.new
|
||||||
|
end
|
||||||
|
|
||||||
|
def create
|
||||||
|
@sitereport = @sitereports.build(sitereport_params)
|
||||||
|
if @sitereport.save
|
||||||
|
redirect_to welcome_index_path, notice: "status created."
|
||||||
|
else
|
||||||
|
render :new, status: :unprocessable_entity
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def edit
|
||||||
|
@sitereports = Sitereport.find(params[:id])
|
||||||
|
end
|
||||||
|
|
||||||
|
def update
|
||||||
|
if @sitereport.update(sitereport_params)
|
||||||
|
redirect_to welcome_index_path, notice: "sitereport updated."
|
||||||
|
else
|
||||||
|
render :edit, status: :unprocessable_entity
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def destroy
|
||||||
|
@sitereport.destroy
|
||||||
|
#redirect_to profile_blog_path(@profile, @blog), notice: "sitereport deleted."
|
||||||
|
redirect_to welcome_index_path, notice: "deleted"
|
||||||
|
end
|
||||||
|
private
|
||||||
|
|
||||||
|
#def set_profile
|
||||||
|
# @profile = profile.find(params[:profile_id])
|
||||||
|
# end
|
||||||
|
|
||||||
|
#def set_blog
|
||||||
|
# @blog = @profile.blogs.find(params[:blog_id])
|
||||||
|
#end
|
||||||
|
|
||||||
|
#def set_post
|
||||||
|
# @post = @blog.posts.find(params[:id])
|
||||||
|
#end
|
||||||
|
|
||||||
|
def sitereport_params
|
||||||
|
params.require(:sitereport).permit(:newshit)
|
||||||
|
end
|
||||||
|
end
|
||||||
5
app/controllers/updates_controller.rb
Normal file
5
app/controllers/updates_controller.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
class UpdatesController < ApplicationController
|
||||||
|
before_action :authenticate_user!, only: [:new, :create, :edit, :update, :destroy]
|
||||||
|
allow_unauthenticated_access(only: [:index, :show])
|
||||||
|
|
||||||
|
end
|
||||||
21
app/controllers/welcome_controller.rb
Normal file
21
app/controllers/welcome_controller.rb
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
class WelcomeController < ApplicationController
|
||||||
|
allow_unauthenticated_access(only: %i[index show])
|
||||||
|
def index
|
||||||
|
@latest_report = Sitereport.order(created_at: :desc).limit(5)
|
||||||
|
# @latest_report = Sitereport.all.order(created_at: :desc)
|
||||||
|
@latest_post = Post.order(created_at: :desc).first
|
||||||
|
end
|
||||||
|
def new
|
||||||
|
end
|
||||||
|
def edit
|
||||||
|
end
|
||||||
|
def destroy
|
||||||
|
end
|
||||||
|
def update
|
||||||
|
end
|
||||||
|
def show
|
||||||
|
end
|
||||||
|
def create
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
2
app/helpers/application_helper.rb
Normal file
2
app/helpers/application_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module ApplicationHelper
|
||||||
|
end
|
||||||
2
app/helpers/bio_helper.rb
Normal file
2
app/helpers/bio_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module BioHelper
|
||||||
|
end
|
||||||
2
app/helpers/blogs_helper.rb
Normal file
2
app/helpers/blogs_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module BlogsHelper
|
||||||
|
end
|
||||||
2
app/helpers/miniblogs_helper.rb
Normal file
2
app/helpers/miniblogs_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module MiniblogsHelper
|
||||||
|
end
|
||||||
2
app/helpers/miniposts_helper.rb
Normal file
2
app/helpers/miniposts_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module MinipostsHelper
|
||||||
|
end
|
||||||
2
app/helpers/posts_helper.rb
Normal file
2
app/helpers/posts_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module PostsHelper
|
||||||
|
end
|
||||||
2
app/helpers/profiles_helper.rb
Normal file
2
app/helpers/profiles_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module ProfilesHelper
|
||||||
|
end
|
||||||
2
app/helpers/site_reports_helper.rb
Normal file
2
app/helpers/site_reports_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module SiteReportsHelper
|
||||||
|
end
|
||||||
2
app/helpers/sitereports_helper.rb
Normal file
2
app/helpers/sitereports_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module SitereportsHelper
|
||||||
|
end
|
||||||
2
app/helpers/updates_helper.rb
Normal file
2
app/helpers/updates_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module UpdatesHelper
|
||||||
|
end
|
||||||
2
app/helpers/welcome_helper.rb
Normal file
2
app/helpers/welcome_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
module WelcomeHelper
|
||||||
|
end
|
||||||
6
app/javascript/application.js
Normal file
6
app/javascript/application.js
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
||||||
|
import "@hotwired/turbo-rails"
|
||||||
|
import "controllers"
|
||||||
|
|
||||||
|
import "trix"
|
||||||
|
import "@rails/actiontext"
|
||||||
9
app/javascript/controllers/application.js
Normal file
9
app/javascript/controllers/application.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
import { Application } from "@hotwired/stimulus"
|
||||||
|
|
||||||
|
const application = Application.start()
|
||||||
|
|
||||||
|
// Configure Stimulus development experience
|
||||||
|
application.debug = false
|
||||||
|
window.Stimulus = application
|
||||||
|
|
||||||
|
export { application }
|
||||||
7
app/javascript/controllers/hello_controller.js
Normal file
7
app/javascript/controllers/hello_controller.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
import { Controller } from "@hotwired/stimulus"
|
||||||
|
|
||||||
|
export default class extends Controller {
|
||||||
|
connect() {
|
||||||
|
this.element.textContent = "Hello World!"
|
||||||
|
}
|
||||||
|
}
|
||||||
4
app/javascript/controllers/index.js
Normal file
4
app/javascript/controllers/index.js
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
// Import and register all your controllers from the importmap via controllers/**/*_controller
|
||||||
|
import { application } from "controllers/application"
|
||||||
|
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
|
||||||
|
eagerLoadControllersFrom("controllers", application)
|
||||||
7
app/jobs/application_job.rb
Normal file
7
app/jobs/application_job.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
class ApplicationJob < ActiveJob::Base
|
||||||
|
# Automatically retry jobs that encountered a deadlock
|
||||||
|
# retry_on ActiveRecord::Deadlocked
|
||||||
|
|
||||||
|
# Most jobs are safe to ignore if the underlying records are no longer available
|
||||||
|
# discard_on ActiveJob::DeserializationError
|
||||||
|
end
|
||||||
4
app/mailers/application_mailer.rb
Normal file
4
app/mailers/application_mailer.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
class ApplicationMailer < ActionMailer::Base
|
||||||
|
default from: "from@example.com"
|
||||||
|
layout "mailer"
|
||||||
|
end
|
||||||
6
app/mailers/passwords_mailer.rb
Normal file
6
app/mailers/passwords_mailer.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
class PasswordsMailer < ApplicationMailer
|
||||||
|
def reset(user)
|
||||||
|
@user = user
|
||||||
|
mail subject: "Reset your password", to: user.email_address
|
||||||
|
end
|
||||||
|
end
|
||||||
3
app/models/application_record.rb
Normal file
3
app/models/application_record.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
class ApplicationRecord < ActiveRecord::Base
|
||||||
|
primary_abstract_class
|
||||||
|
end
|
||||||
7
app/models/blog.rb
Normal file
7
app/models/blog.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
class Blog < ApplicationRecord
|
||||||
|
has_rich_text :topic
|
||||||
|
has_many :posts, dependent: :destroy
|
||||||
|
belongs_to :profile
|
||||||
|
validates :topic, presence: true,
|
||||||
|
length: { minimum: 5 }
|
||||||
|
end
|
||||||
0
app/models/concerns/.keep
Normal file
0
app/models/concerns/.keep
Normal file
4
app/models/current.rb
Normal file
4
app/models/current.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
class Current < ActiveSupport::CurrentAttributes
|
||||||
|
attribute :session
|
||||||
|
delegate :user, to: :session, allow_nil: true
|
||||||
|
end
|
||||||
5
app/models/miniblog.rb
Normal file
5
app/models/miniblog.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
class Miniblog < ApplicationRecord
|
||||||
|
has_one_attached :image
|
||||||
|
has_rich_text :text
|
||||||
|
#has_rich_text :notes
|
||||||
|
end
|
||||||
13
app/models/post.rb
Normal file
13
app/models/post.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
class Post < ApplicationRecord
|
||||||
|
belongs_to :blog
|
||||||
|
has_one_attached :icon_image
|
||||||
|
#has_many :comments
|
||||||
|
has_rich_text :body
|
||||||
|
has_rich_text :mood
|
||||||
|
has_rich_text :music
|
||||||
|
validates :title, presence: true,
|
||||||
|
length: { minimum: 2 }
|
||||||
|
validates :body, presence: true,
|
||||||
|
length: { minimum: 5 }
|
||||||
|
# validates :icon_image, presence:true
|
||||||
|
end
|
||||||
12
app/models/profile.rb
Normal file
12
app/models/profile.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
class Profile < ApplicationRecord
|
||||||
|
belongs_to :user
|
||||||
|
has_one_attached :avatar_image
|
||||||
|
has_rich_text :bio
|
||||||
|
# has_rich_text
|
||||||
|
has_many :blogs
|
||||||
|
# has_many :posts
|
||||||
|
|
||||||
|
validates :name, presence: true,
|
||||||
|
length: { minimum: 1 }
|
||||||
|
# validates :avatar_image, presence:true
|
||||||
|
end
|
||||||
3
app/models/session.rb
Normal file
3
app/models/session.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
class Session < ApplicationRecord
|
||||||
|
belongs_to :user
|
||||||
|
end
|
||||||
5
app/models/sitereport.rb
Normal file
5
app/models/sitereport.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
class Sitereport < ApplicationRecord
|
||||||
|
#has_one_attached :image
|
||||||
|
has_rich_text :context
|
||||||
|
#has_rich_text :notes
|
||||||
|
end
|
||||||
6
app/models/user.rb
Normal file
6
app/models/user.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
class User < ApplicationRecord
|
||||||
|
has_secure_password
|
||||||
|
has_many :sessions, dependent: :destroy
|
||||||
|
has_one :profile
|
||||||
|
normalizes :email_address, with: ->(e) { e.strip.downcase }
|
||||||
|
end
|
||||||
14
app/views/active_storage/blobs/_blob.html.erb
Normal file
14
app/views/active_storage/blobs/_blob.html.erb
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
<figure class="attachment attachment--<%= blob.representable? ? "preview" : "file" %> attachment--<%= blob.filename.extension %>">
|
||||||
|
<% if blob.representable? %>
|
||||||
|
<%= image_tag blob.representation(resize_to_limit: local_assigns[:in_gallery] ? [ 800, 600 ] : [ 1024, 768 ]) %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<figcaption class="attachment__caption">
|
||||||
|
<% if caption = blob.try(:caption) %>
|
||||||
|
<%= caption %>
|
||||||
|
<% else %>
|
||||||
|
<span class="attachment__name"><%= blob.filename %></span>
|
||||||
|
<span class="attachment__size"><%= number_to_human_size blob.byte_size %></span>
|
||||||
|
<% end %>
|
||||||
|
</figcaption>
|
||||||
|
</figure>
|
||||||
18
app/views/blogs/edit.html.erb
Normal file
18
app/views/blogs/edit.html.erb
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
<section class="articlenew"><h3>Edit your blog!</h3>
|
||||||
|
|
||||||
|
<%= form_with model: [@profile, @blog] do |form| %>
|
||||||
|
<%= form.label :title %><br />
|
||||||
|
<%= form.text_area :title %>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= form.label :topic %><br>
|
||||||
|
<%= form.rich_text_area :topic %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<%= form.submit %>
|
||||||
|
<% end %>
|
||||||
|
</section>
|
||||||
|
|
||||||
8
app/views/blogs/index.html.erb
Normal file
8
app/views/blogs/index.html.erb
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
<h2>categories.....</h2><section class="uhidk"><% @blogs.each do |blog| %>
|
||||||
|
<li style="border: 3px double purple;padding:1%;"> <%= link_to blog.title, profile_blog_path(blog.profile, blog) %> <hr style="border: 5px groove purple;">
|
||||||
|
Description: <br><%= truncate(blog.topic.to_plain_text, length: 400) %> || <%= blog.posts.count %> posts.
|
||||||
|
</section>
|
||||||
|
</li>
|
||||||
|
<br><% end %>
|
||||||
|
</ul>
|
||||||
20
app/views/blogs/new.html.erb
Normal file
20
app/views/blogs/new.html.erb
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<section class="articlenew"><h3>Create your blog!</h3>
|
||||||
|
|
||||||
|
<%= form_with model: [@profile, @blog] do |form| %>
|
||||||
|
<%= form.label :title %><br />
|
||||||
|
<%= form.text_area :title %>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= form.label :topic %><br>
|
||||||
|
<%= form.rich_text_area :topic %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<%= form.submit %>
|
||||||
|
<% end %>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
42
app/views/blogs/show.html.erb
Normal file
42
app/views/blogs/show.html.erb
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
<section class="blog">
|
||||||
|
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<% if current_user %>
|
||||||
|
<%= link_to "Edit", edit_profile_blog_path %> | <%= link_to "New Post", new_profile_blog_post_path(@profile, @blog) %> <br>
|
||||||
|
<% end %>
|
||||||
|
</small>
|
||||||
|
|
||||||
|
|
||||||
|
<% if @blog.title.present? %>
|
||||||
|
<h2><%= @blog.title %></h2>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<%= @blog.topic %>
|
||||||
|
<hr style="border: 2px groove purple;">
|
||||||
|
<% @posts.each do |post| %>
|
||||||
|
<section class="posts"><%= post.created_at %>
|
||||||
|
<h2> <%= post.title %> | <%= link_to 'Read', profile_blog_post_path(@profile, @blog, post) %> </h2>
|
||||||
|
<center><% if post.icon_image.attached? %>
|
||||||
|
<%= image_tag post.icon_image, width: "100", height: "100" %>
|
||||||
|
<% else %>
|
||||||
|
<p>No image available.</p></center>
|
||||||
|
<% end %><br>
|
||||||
|
Content:
|
||||||
|
<%= post.body.to_plain_text.truncate(100) %>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<% if current_user %>
|
||||||
|
|
||||||
|
<%= link_to 'Edit', edit_profile_blog_post_path(@profile, @blog, post) %>
|
||||||
|
<%= link_to 'Destroy', profile_blog_post_path(@profile, @blog, post), data: {
|
||||||
|
turbo_method: :delete,
|
||||||
|
turbo_confirm: "Are you sure?"
|
||||||
|
} %>
|
||||||
|
<% end %>
|
||||||
|
</section>
|
||||||
|
<br>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
3
app/views/layouts/action_text/contents/_content.html.erb
Normal file
3
app/views/layouts/action_text/contents/_content.html.erb
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<div class="trix-content">
|
||||||
|
<%= yield -%>
|
||||||
|
</div>
|
||||||
61
app/views/layouts/application.html.erb
Normal file
61
app/views/layouts/application.html.erb
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script src="dd.js"></script>
|
||||||
|
<title><%= content_for(:title) || "aggie" %></title>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="application-name" content="aggie">
|
||||||
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
<%= csrf_meta_tags %>
|
||||||
|
<%= csp_meta_tag %>
|
||||||
|
|
||||||
|
<link rel="icon" type="image/x-icon" href="https://file.garden/Zw17vw8ctXTQw7PV/upvotey.png">
|
||||||
|
<%= yield :head %>
|
||||||
|
|
||||||
|
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
|
||||||
|
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
|
||||||
|
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon" href="/icon.png"> <link rel="alternate" type="application/rss+xml" title="RSS" href="/feed.xml"
|
||||||
|
/><link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<%# Includes all stylesheet files in app/assets/stylesheets %>
|
||||||
|
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
|
||||||
|
<%= javascript_importmap_tags %>
|
||||||
|
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body data-turbo="false">
|
||||||
|
|
||||||
|
<main><br> <div class="headerall"><h3 class="float"><img src="https://cupboard.alien.town/u/aTjOHe.png" width="80px" alt="A
|
||||||
|
cup of coffee emoji with the alien emoji face in the coffee.">the alien town...</h3><div class="header"><a href="/">Home</a>
|
||||||
|
| <a href="/profiles/1">About Me</a> | <a href="/profiles/1/blogs">Pages</a> | <a
|
||||||
|
href="https://guestbooks.alien.town/guestbook/6">Guestbook</a> | <a href="https://blog.agnes.love">Blog</a> |
|
||||||
|
<a href="https://lesbian.alien.dentist/@feed.atom"><img
|
||||||
|
src="https://file.garden/aJzQmzrHVB4BLKwu/46.png" alt="pink rss feed logo"></a></div></div> <br><br> <section
|
||||||
|
class="article"> <section class="auth">
|
||||||
|
<% if current_user %>
|
||||||
|
<%= button_to "Sign Out", sign_out_path, method: :delete %>
|
||||||
|
|
||||||
|
<% else %>
|
||||||
|
<%= button_to "Sign In", login_path %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
</section></section>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<%= yield %>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<section class="footer">
|
||||||
|
<a href="mailto:agnes@omg.lol" rel="me">agnes@omg.lol</br>
|
||||||
|
<a href="https://treasurechest.alien.town/agnes/al13ntown">v. 1.0</a> | hand coded by aggie 📔</section>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
29
app/views/layouts/application.html.erb.save
Normal file
29
app/views/layouts/application.html.erb.save
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title><%= content_for(:title) || "Serenityapp" %></title>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
<meta name="application-name" content="Serenityapp">
|
||||||
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
<%= csrf_meta_tags %>
|
||||||
|
<%= csp_meta_tag %>
|
||||||
|
|
||||||
|
<%= yield :head %>
|
||||||
|
|
||||||
|
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
|
||||||
|
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
|
||||||
|
|
||||||
|
<link rel="icon" href="/icon.png" type="image/png">
|
||||||
|
<link rel="icon" href="/icon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/icon.png">
|
||||||
|
|
||||||
|
<%# Includes all stylesheet files in app/assets/stylesheets %>
|
||||||
|
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
|
||||||
|
<%= javascript_importmap_tags %>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<%= yield %>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
13
app/views/layouts/mailer.html.erb
Normal file
13
app/views/layouts/mailer.html.erb
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
|
<style>
|
||||||
|
/* Email styles need to be inline */
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<%= yield %>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
1
app/views/layouts/mailer.text.erb
Normal file
1
app/views/layouts/mailer.text.erb
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<%= yield %>
|
||||||
9
app/views/passwords/edit.html.erb
Normal file
9
app/views/passwords/edit.html.erb
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
<h1>Update your password</h1>
|
||||||
|
|
||||||
|
<%= tag.div(flash[:alert], style: "color:red") if flash[:alert] %>
|
||||||
|
|
||||||
|
<%= form_with url: password_path(params[:token]), method: :put do |form| %>
|
||||||
|
<%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72 %><br>
|
||||||
|
<%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72 %><br>
|
||||||
|
<%= form.submit "Save" %>
|
||||||
|
<% end %>
|
||||||
8
app/views/passwords/new.html.erb
Normal file
8
app/views/passwords/new.html.erb
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
<h1>Forgot your password?</h1>
|
||||||
|
|
||||||
|
<%= tag.div(flash[:alert], style: "color:red") if flash[:alert] %>
|
||||||
|
|
||||||
|
<%= form_with url: passwords_path do |form| %>
|
||||||
|
<%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address] %><br>
|
||||||
|
<%= form.submit "Email reset instructions" %>
|
||||||
|
<% end %>
|
||||||
6
app/views/passwords_mailer/reset.html.erb
Normal file
6
app/views/passwords_mailer/reset.html.erb
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<p>
|
||||||
|
You can reset your password on
|
||||||
|
<%= link_to "this password reset page", edit_password_url(@user.password_reset_token) %>.
|
||||||
|
|
||||||
|
This link will expire in <%= distance_of_time_in_words(0, @user.password_reset_token_expires_in) %>.
|
||||||
|
</p>
|
||||||
4
app/views/passwords_mailer/reset.text.erb
Normal file
4
app/views/passwords_mailer/reset.text.erb
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
You can reset your password on
|
||||||
|
<%= edit_password_url(@user.password_reset_token) %>
|
||||||
|
|
||||||
|
This link will expire in <%= distance_of_time_in_words(0, @user.password_reset_token_expires_in) %>.
|
||||||
33
app/views/posts/edit.html.erb
Normal file
33
app/views/posts/edit.html.erb
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
<section class="articlenew">
|
||||||
|
<h2>Edit Post</h2>
|
||||||
|
|
||||||
|
<%= form_with model: [@profile, @blog, @post], multipart: true do |f| %>
|
||||||
|
<div>
|
||||||
|
<%= f.label :title %>
|
||||||
|
<%= f.text_area :title %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<%= f.label :body %>
|
||||||
|
<%= f.rich_text_area :body %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<%= f.label :mood %>
|
||||||
|
<%= f.text_area :mood %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<%= f.label :music %>
|
||||||
|
<%= f.text_area :music %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<%= f.label :icon_image %>
|
||||||
|
<%= f.file_field :icon_image %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<%= f.submit "Edit Post" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
</section>
|
||||||
30
app/views/posts/new.html.erb
Normal file
30
app/views/posts/new.html.erb
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
|
||||||
|
<section class="articlenew">
|
||||||
|
<h2>New Post</h2>
|
||||||
|
|
||||||
|
<%= form_with model: [@profile, @blog, @post], multipart: true do |f| %>
|
||||||
|
|
||||||
|
<%= f.label :title %>
|
||||||
|
<%= f.text_area :title %>
|
||||||
|
|
||||||
|
|
||||||
|
<%= f.label :body %>
|
||||||
|
<%= f.rich_text_area :body %>
|
||||||
|
|
||||||
|
|
||||||
|
<%= f.label :mood %>
|
||||||
|
<%= f.text_area :mood %>
|
||||||
|
|
||||||
|
<%= f.label :music %>
|
||||||
|
<%= f.text_area :music %>
|
||||||
|
|
||||||
|
<%= f.label :icon_image %>
|
||||||
|
<%= f.file_field :icon_image %>
|
||||||
|
|
||||||
|
|
||||||
|
<%= f.submit "Create Post" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
48
app/views/posts/show.html.erb
Normal file
48
app/views/posts/show.html.erb
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
<% if current_user %>
|
||||||
|
<small>
|
||||||
|
<%= link_to 'Edit', edit_profile_blog_post_path(@profile, @blog, @post) %>
|
||||||
|
<%= button_to "Delete",
|
||||||
|
profile_blog_post_path(@profile, @blog, @post),
|
||||||
|
method: :delete,
|
||||||
|
data: { turbo_confirm: "Are you sure?" } %> | <% end %>
|
||||||
|
</small> <%= link_to 'Back', profile_blog_path(@profile, @blog) %><br>
|
||||||
|
<section class="inner"><p>
|
||||||
|
|
||||||
|
<% if @post.icon_image.attached? %>
|
||||||
|
<%= image_tag @post.icon_image, width: "100", height: "100" %>
|
||||||
|
<% else %>
|
||||||
|
<p>No image available.</p></center>
|
||||||
|
<% end %>
|
||||||
|
<br> <strong>Title:</strong>
|
||||||
|
<%= @post.title %>
|
||||||
|
</p>
|
||||||
|
<%= @post.created_at.in_time_zone("Eastern Time (US & Canada)").strftime("%B %d, %Y %H:%M %p") %>
|
||||||
|
<p>
|
||||||
|
<strong></strong>
|
||||||
|
<%= @post.body %>
|
||||||
|
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<% if @post.music.present? %>
|
||||||
|
<strong>Currently Listening To...:</strong>
|
||||||
|
<%= @post.music %>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
<% if @post.mood.present? %>
|
||||||
|
<p>
|
||||||
|
<strong>Current Mood:</strong>
|
||||||
|
<%= @post.mood %></p>
|
||||||
|
<% end %>
|
||||||
|
<hr>
|
||||||
|
<section class="comment">
|
||||||
|
<h2>Comments</h2>
|
||||||
|
<h2>Add a comment:</h2>
|
||||||
|
<section class="comment">
|
||||||
|
<!-- begin wwww.htmlcommentbox.com -->
|
||||||
|
<div id="HCB_comment_box"><a href="http://www.htmlcommentbox.com">Comment Form</a> is loading comments...</div>
|
||||||
|
<link rel="stylesheet" type="text/css" href="https://www.htmlcommentbox.com/static/skins/bootstrap/twitter-bootstrap.css?v=0" />
|
||||||
|
<script type="text/javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={};} (function(){var s=document.createElement("script"), l=hcb_user.PAGE || (""+window.location).replace(/'/g,"%27"), h="https://www.htmlcommentbox.com";s.setAttribute("type","text/javascript");s.setAttribute("src", h+"/jread?page="+encodeURIComponent(l).replace("+","%2B")+"&mod=%241%24wq1rdBcg%24I2ULE.Sdf3QRU4qHM3OVg0"+"&opts=16798&num=10&ts=1771659693602");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script>
|
||||||
|
<!-- end www.htmlcommentbox.com -->
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
37
app/views/profiles/edit.html.erb
Normal file
37
app/views/profiles/edit.html.erb
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
<h1>Edit Profile</h1>
|
||||||
|
<%= form_with model: (@profile) do |form| %>
|
||||||
|
<% if @profile.errors.any? %>
|
||||||
|
<p>Oopsiesssssss u fucked up</p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= form.label :avatar_image %><br />
|
||||||
|
<%= form.file_field :avatar_image %>
|
||||||
|
<p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= form.label :name %><br>
|
||||||
|
<%= form.text_area :name %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= form.label :bio %><br>
|
||||||
|
<%= form.rich_text_area :bio %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= form.label :age %><br>
|
||||||
|
<%= form.text_area :age %><br>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<%= form.label :pronouns %><br>
|
||||||
|
<%= form.text_area :pronouns %><br>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<%= form.label :interests %><br>
|
||||||
|
<%= form.text_area :interests %><br>
|
||||||
|
</p>
|
||||||
|
<%= form.submit %>
|
||||||
|
<% end %>
|
||||||
|
</section>
|
||||||
16
app/views/profiles/show.html.erb
Normal file
16
app/views/profiles/show.html.erb
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<% if current_user %>
|
||||||
|
<%= link_to "Edit", edit_profile_path %>
|
||||||
|
<% end %>
|
||||||
|
<section class="profile">
|
||||||
|
<br>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<h1 class="h1bio"><%= @profile.name %></h1>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<center><%= image_tag @profile.avatar_image if @profile.avatar_image.attached? %>
|
||||||
|
</center><li>Pronouns: <%= @profile.pronouns %></li>
|
||||||
|
<li>Age: <%= @profile.age %></li>
|
||||||
|
<h2><i>about the creature</i></h2>
|
||||||
|
<%= @profile.bio %>
|
||||||
|
</section>
|
||||||
22
app/views/pwa/manifest.json.erb
Normal file
22
app/views/pwa/manifest.json.erb
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"name": "Serenityapp",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "/icon.png",
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "512x512"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/icon.png",
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"purpose": "maskable"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"start_url": "/",
|
||||||
|
"display": "standalone",
|
||||||
|
"scope": "/",
|
||||||
|
"description": "Serenityapp.",
|
||||||
|
"theme_color": "red",
|
||||||
|
"background_color": "red"
|
||||||
|
}
|
||||||
26
app/views/pwa/service-worker.js
Normal file
26
app/views/pwa/service-worker.js
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
// Add a service worker for processing Web Push notifications:
|
||||||
|
//
|
||||||
|
// self.addEventListener("push", async (event) => {
|
||||||
|
// const { title, options } = await event.data.json()
|
||||||
|
// event.waitUntil(self.registration.showNotification(title, options))
|
||||||
|
// })
|
||||||
|
//
|
||||||
|
// self.addEventListener("notificationclick", function(event) {
|
||||||
|
// event.notification.close()
|
||||||
|
// event.waitUntil(
|
||||||
|
// clients.matchAll({ type: "window" }).then((clientList) => {
|
||||||
|
// for (let i = 0; i < clientList.length; i++) {
|
||||||
|
// let client = clientList[i]
|
||||||
|
// let clientPath = (new URL(client.url)).pathname
|
||||||
|
//
|
||||||
|
// if (clientPath == event.notification.data.path && "focus" in client) {
|
||||||
|
// return client.focus()
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// if (clients.openWindow) {
|
||||||
|
// return clients.openWindow(event.notification.data.path)
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// )
|
||||||
|
// })
|
||||||
11
app/views/sessions/new.html.erb
Normal file
11
app/views/sessions/new.html.erb
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<%= tag.div(flash[:alert], style: "color:red") if flash[:alert] %>
|
||||||
|
<%= tag.div(flash[:notice], style: "color:green") if flash[:notice] %>
|
||||||
|
|
||||||
|
<%= form_with url: session_path do |form| %>
|
||||||
|
<%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address] %><br>
|
||||||
|
<%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72 %><br>
|
||||||
|
<%= form.submit "Sign in" %>
|
||||||
|
<% end %>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<%= link_to "Forgot password?", new_password_path %>
|
||||||
54
app/views/welcome/index.html.erb
Normal file
54
app/views/welcome/index.html.erb
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
<div class="article"><section class="latestpost"> Updates:<br><marquee class="MyMarquee" id="my_marquee" direction="left"
|
||||||
|
behavior="1" scrollamount="4">august 24: i remade my site! again!</marquee> <h3>Latest....</h3>
|
||||||
|
|
||||||
|
<% if @latest_post %>
|
||||||
|
<h2><%= @latest_post.title %></h2> <%=@latest_post.created_at.in_time_zone("Eastern Time (US & Canada)").strftime("%B %d, %Y %H:%M %p") %>
|
||||||
|
<p><%= truncate(@latest_post.body.to_plain_text, length: 200) %></p>
|
||||||
|
<p>Category: <%= @latest_post.blog.title %></p>
|
||||||
|
<%= link_to 'Read More', profile_blog_post_path(@latest_post.blog.profile, @latest_post.blog, @latest_post) %>
|
||||||
|
<% else %>
|
||||||
|
<p>No posts yet.</p>
|
||||||
|
<% end %><hr>more linkz... <li><a href="https://alien.holiday">Sillyblog</a></li>
|
||||||
|
<li><a href="https://agnes.alien.town">Writing Portfolio</a></li>
|
||||||
|
<li><a href="https://alien.femslash.party">Journal</a></li></section> <section class="aboutus"> <h3>welcome to outer space !</h3><img src="https://file.garden/Zw17vw8ctXTQw7PV/button-88x31(24).gif" alt="site button"><br>hi, i'm agnes the alien (it/its), a
|
||||||
|
creative alientype thing on the web. personal & fandom & tech & etc. this is my home, i live here, be kind.<br><br> <div
|
||||||
|
class="webringy">recent statuses..<br><br>agnes said:<br><script src="https://status.lol/agnes.js?time&link&fluent&no-emoji&since='2026'"></script></div><hr> <img
|
||||||
|
src="https://file.garden/Zw17vw8ctXTQw7PV/hearteyed2.jpg" alt="heart eyed motherfucker button"><img
|
||||||
|
src="https://file.garden/Zw17vw8ctXTQw7PV/alien2.gif" alt="encounter an alien"><img
|
||||||
|
src="https://file.garden/Zw17vw8ctXTQw7PV/we'd.gif" alt="pothead"><img src="https://file.garden/Zw17vw8ctXTQw7PV/80s.gif"
|
||||||
|
alt="i love the 1980s"><img src="https://file.garden/Zw17vw8ctXTQw7PV/BUT_ilovemyfriends.jpg" alt="i heart my friends"><img
|
||||||
|
src="https://file.garden/Zw17vw8ctXTQw7PV/lesflat.png" alt="lesbian flag button"> <img
|
||||||
|
src="https://cupboard.alien.town/u/4m1Ds7.gif" alt="logo for the trollz cartoon and sparkling"><img
|
||||||
|
src="https://cupboard.alien.town/u/AMJCMb.gif" alt="femslash forever"><img src="https://cupboard.alien.town/u/sxhVYy.gif"
|
||||||
|
alt="bloc party band logo"> <img src="https://cupboard.alien.town/u/CoGjR2.gif" alt="starfleet academy"><hr><div
|
||||||
|
class="webringy">Webrings and such!<hr><a href="https://lxak.net/quaker-ring/">Quaker Ring</a><br><a
|
||||||
|
href="https://webri.ng/webring/quakering/previous?via="https%3A%2F%2Fagnes.love%2F">Previous</a> <a
|
||||||
|
href="https://webri.ng/webring/quakering/next?via="https%3A%2F%2Fagnes.love%2F">Next</a><br><div id="femslashfans"> <a
|
||||||
|
href="https://alien.hospital/femslashring"> | <img src="https://file.garden/Zw17vw8ctXTQw7PV/femslashfansonline.png"
|
||||||
|
alt="computer popup window graphic with a double venus symbol and it says femslash fans online"></a> | <br> <b>MY</b>
|
||||||
|
femslash OTP is...<br><b><i> 💞 NAHLA X ANISHA ! 💞 </b></i><br>
|
||||||
|
<a href="https://alien.hospital/femslashring?action=previous">previous</a>
|
||||||
|
<a href="https://alien.hospital/femslashring?action=random">random</a>
|
||||||
|
<a href="https://alien.hospital/femslashring?action=next">next</a>
|
||||||
|
</div>
|
||||||
|
<br><div id="trekblorbo" style="border:5px darkblue double; background:url('https://file.garden/Zw17vw8ctXTQw7PV/backstars.gif');text-shadow:1px 1px #fff;text-align:center;width:170px;">
|
||||||
|
<a href="https://alien.hospital/trekblorboring"> MY STAR TREK BLORBO IS... <br><img src="https://file.garden/Zw17vw8ctXTQw7PV/sfaaa.png" alt="caleb mir from starfleet academy"><br> 💖CALEB MIR💖 <br>
|
||||||
|
<a href="https://alien.hospital/trekblorboring?action=previous">previous</a>
|
||||||
|
<a href="https://alien.hospital/trekblorboring?action=random">random</a>
|
||||||
|
<a href="https://alien.hospital/trekblorboring?action=next">next</a>
|
||||||
|
</div> <div id='sapphicring3'>
|
||||||
|
<a href='https://sunnishinez.neocities.org/webring/sapphicring'><img src='https://sunnishinez.neocities.org/webring/sapphic/sappho.png'></a><br>
|
||||||
|
<a href='https://sunnishinez.neocities.org/webring/sapphicring?action=previous'><img src='https://sunnishinez.neocities.org/webring/sapphic/s_arright.png'></a>
|
||||||
|
<a href='https://sunnishinez.neocities.org/webring/sapphicring?action=random'>random</a>
|
||||||
|
<a href='https://sunnishinez.neocities.org/webring/sapphicring?action=next'><img src='https://sunnishinez.neocities.org/webring/sapphic/s_arleft.png'></a>
|
||||||
|
</div><hr> <div class="off-platform-webring">
|
||||||
|
<a href="https://sakk.ie/off-platform/"><b>Off-Platform Webring</b></a><br />
|
||||||
|
<a href="https://sakk.ie/off-platform?action=previous">←</a>
|
||||||
|
<a href="https://sakk.ie/off-platform?action=random">random</a>
|
||||||
|
<a href="https://sakk.ie/off-platform?action=next">→</a>
|
||||||
|
</div>
|
||||||
|
<div id='birdring'>
|
||||||
|
<script type="text/javascript" src="https://possumlark.org/webrings/birding/onionring-variables.js"></script>
|
||||||
|
<script type="text/javascript" src="https://possumlark.org/webrings/birding/onionring-widget.js"></script>
|
||||||
|
</div> <div style="width:180px;border:1px solid #ff69b4;background:#ffe4f1;font-family:verdana,arial;font-size:11px;text-align:center;"><div style="background:#ff69b4;color:#fff;padding:4px;font-weight:bold;">pinkring</div><div style="padding:6px;"><a href="https://www.riri.my/pink/index.php?site=AGNS&prev">prev</a> | <a href="https://www.riri.my/pink/index.php?site=AGNS&next">next</a><br><a href="https://www.riri.my/pink/index.php?rand">random</a> | <a href="https://www.riri.my/pink/">join</a></div></div></div></div>
|
||||||
|
</section>
|
||||||
7
bin/brakeman
Executable file
7
bin/brakeman
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
require "rubygems"
|
||||||
|
require "bundler/setup"
|
||||||
|
|
||||||
|
ARGV.unshift("--ensure-latest")
|
||||||
|
|
||||||
|
load Gem.bin_path("brakeman", "brakeman")
|
||||||
6
bin/bundler-audit
Executable file
6
bin/bundler-audit
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
require_relative "../config/boot"
|
||||||
|
require "bundler/audit/cli"
|
||||||
|
|
||||||
|
ARGV.concat %w[ --config config/bundler-audit.yml ] if ARGV.empty? || ARGV.include?("check")
|
||||||
|
Bundler::Audit::CLI.start
|
||||||
6
bin/ci
Executable file
6
bin/ci
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
require_relative "../config/boot"
|
||||||
|
require "active_support/continuous_integration"
|
||||||
|
|
||||||
|
CI = ActiveSupport::ContinuousIntegration
|
||||||
|
require_relative "../config/ci.rb"
|
||||||
2
bin/dev
Executable file
2
bin/dev
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
exec "./bin/rails", "server", *ARGV
|
||||||
8
bin/docker-entrypoint
Executable file
8
bin/docker-entrypoint
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
# If running the rails server then create or migrate existing database
|
||||||
|
if [ "${@: -2:1}" == "./bin/rails" ] && [ "${@: -1:1}" == "server" ]; then
|
||||||
|
./bin/rails db:prepare
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "${@}"
|
||||||
4
bin/importmap
Executable file
4
bin/importmap
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
require_relative "../config/application"
|
||||||
|
require "importmap/commands"
|
||||||
6
bin/jobs
Executable file
6
bin/jobs
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
require_relative "../config/environment"
|
||||||
|
require "solid_queue/cli"
|
||||||
|
|
||||||
|
SolidQueue::Cli.start(ARGV)
|
||||||
16
bin/kamal
Executable file
16
bin/kamal
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
#
|
||||||
|
# This file was generated by Bundler.
|
||||||
|
#
|
||||||
|
# The application 'kamal' is installed as part of a gem, and
|
||||||
|
# this file is here to facilitate running it.
|
||||||
|
#
|
||||||
|
|
||||||
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
||||||
|
|
||||||
|
require "rubygems"
|
||||||
|
require "bundler/setup"
|
||||||
|
|
||||||
|
load Gem.bin_path("kamal", "kamal")
|
||||||
4
bin/rails
Executable file
4
bin/rails
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
APP_PATH = File.expand_path("../config/application", __dir__)
|
||||||
|
require_relative "../config/boot"
|
||||||
|
require "rails/commands"
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue