Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"

- name: Set up database
run: bundle exec rails db:setup

Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
config/database.yml
.env

# Ignore bundler config.
Expand Down Expand Up @@ -72,3 +71,6 @@ yarn-debug.log*
/config/master.key
/config/credentials/production.key
/config/credentials/google-drive.json

/app/assets/builds/*
!/app/assets/builds/.keep
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ ENV GIT_COMMIT_COUNT=$GIT_COMMIT_COUNT
RUN apt-get update -qq && apt-get install -y cron curl build-essential shared-mime-info sqlite3 tar \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# Install NodeJS 16 for webpacker and precompile assets
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
RUN corepack enable

RUN mkdir /webapp
WORKDIR /webapp

Expand Down
12 changes: 6 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ gem "abbrev"
gem 'active_storage_validations'
gem 'binding_of_caller'
gem 'bullet'
gem 'coffee-rails'
gem 'devise'
gem 'devise_invitable'
gem 'devise-two-factor'
Expand All @@ -17,16 +16,19 @@ gem 'gutentag'
gem 'google-apis-drive_v3'
gem 'icalendar'
gem 'image_processing'
gem 'importmap-rails'
gem "kamal"
gem 'loaf'
gem 'lockbox'
gem 'minidusen'
gem 'mini_magick'
gem 'mission_control-jobs'
gem 'net-http-persistent'
gem 'pagy'
gem 'paperclip'
gem 'paper_trail'
gem 'paranoia'
gem 'propshaft'
gem 'psych', '< 4' # https://stackoverflow.com/questions/71191685/visit-psych-nodes-alias-unknown-alias-default-psychbadalias
gem 'rack-cors', require: 'rack/cors'
gem 'rails', '~> 8.0.0'
Expand All @@ -36,15 +38,13 @@ gem 'ransack'
gem 'rb-readline'
gem 'rqrcode'
gem 'secure_headers', '~> 6.3'
gem 'sprockets'
gem 'sprockets-rails'
gem 'solid_queue'
gem 'sqlite3'
gem 'stackprof'
gem 'tailwindcss-rails-webpacker', '~> 0.2.1'
gem 'tailwindcss-rails', "3.3.2"
gem "tailwindcss-ruby", "3.4.17"
gem 'turbo-rails'
gem 'tzinfo'
gem 'uglifier'
gem 'webpacker'

group :development, :test do
gem 'memory_profiler', require: false
Expand Down
78 changes: 44 additions & 34 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ GEM
chunky_png (1.4.0)
climate_control (0.2.0)
coderay (1.1.3)
coffee-rails (5.0.0)
coffee-script (>= 2.2.0)
railties (>= 5.2.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.3.5)
connection_pool (2.5.3)
crass (1.0.6)
Expand Down Expand Up @@ -151,7 +144,8 @@ GEM
edge_rider (2.4.0)
activerecord (>= 3.2)
erubi (1.13.1)
execjs (2.10.0)
et-orbi (1.3.0)
tzinfo
faraday (2.13.1)
faraday-net_http (>= 2.0, < 3.5)
json
Expand All @@ -161,6 +155,9 @@ GEM
ffi (1.17.2-arm64-darwin)
ffi (1.17.2-x86_64-linux-gnu)
flamegraph (0.9.5)
fugit (1.11.2)
et-orbi (~> 1, >= 1.2.11)
raabro (~> 1.4)
globalid (1.2.1)
activesupport (>= 6.1)
google-apis-core (0.17.0)
Expand Down Expand Up @@ -201,6 +198,10 @@ GEM
image_processing (1.14.0)
mini_magick (>= 4.9.5, < 6)
ruby-vips (>= 2.0.17, < 3)
importmap-rails (2.2.2)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)
io-console (0.8.0)
irb (1.15.2)
pp (>= 0.6.0)
Expand Down Expand Up @@ -254,6 +255,16 @@ GEM
activesupport (>= 3.2)
edge_rider (>= 0.2.5)
minitest (5.25.5)
mission_control-jobs (1.1.0)
actioncable (>= 7.1)
actionpack (>= 7.1)
activejob (>= 7.1)
activerecord (>= 7.1)
importmap-rails (>= 1.2.1)
irb (~> 1.13)
railties (>= 7.1)
stimulus-rails
turbo-rails
multi_json (1.15.0)
mutex_m (0.3.0)
net-http (0.6.0)
Expand Down Expand Up @@ -302,21 +313,24 @@ GEM
prettyprint
prettyprint (0.2.0)
prism (1.4.0)
propshaft (1.2.1)
actionpack (>= 7.0.0)
activesupport (>= 7.0.0)
rack
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
psych (3.3.4)
public_suffix (6.0.2)
puma (6.6.0)
nio4r (~> 2.0)
raabro (1.4.0)
racc (1.8.1)
rack (3.1.16)
rack-cors (2.0.2)
rack (>= 2.0.0)
rack-mini-profiler (3.3.1)
rack (>= 1.2.0)
rack-proxy (0.7.7)
rack
rack-session (2.1.1)
base64 (>= 0.1.0)
rack (>= 3.0.0)
Expand Down Expand Up @@ -425,21 +439,19 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
semantic_range (3.1.0)
shoulda-context (2.0.0)
signet (0.20.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
sprockets (4.2.2)
concurrent-ruby (~> 1.0)
logger
rack (>= 2.2.4, < 4)
sprockets-rails (3.5.2)
actionpack (>= 6.1)
activesupport (>= 6.1)
sprockets (>= 3.0.0)
solid_queue (1.2.1)
activejob (>= 7.1)
activerecord (>= 7.1)
concurrent-ruby (>= 1.3.1)
fugit (~> 1.11.0)
railties (>= 7.1)
thor (>= 1.3.1)
sqlite3 (2.6.0-arm64-darwin)
sqlite3 (2.6.0-x86_64-linux-gnu)
sshkit (1.24.0)
Expand All @@ -450,8 +462,13 @@ GEM
net-ssh (>= 2.8.0)
ostruct
stackprof (0.2.27)
tailwindcss-rails-webpacker (0.2.1)
rails (>= 6.0.0)
stimulus-rails (1.3.4)
railties (>= 6.0.0)
tailwindcss-rails (3.3.2)
railties (>= 7.0.0)
tailwindcss-ruby (~> 3.0)
tailwindcss-ruby (3.4.17-arm64-darwin)
tailwindcss-ruby (3.4.17-x86_64-linux)
terrapin (0.6.0)
climate_control (>= 0.0.3, < 1.0)
thor (1.4.0)
Expand All @@ -463,8 +480,6 @@ GEM
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uber (0.1.0)
uglifier (4.2.1)
execjs (>= 0.3.0, < 3)
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
Expand All @@ -482,11 +497,6 @@ GEM
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (~> 4.0, < 4.11)
webpacker (5.4.4)
activesupport (>= 5.2)
rack-proxy (>= 0.6.1)
railties (>= 5.2)
semantic_range (>= 2.3.0)
websocket (1.2.11)
websocket-driver (0.7.7)
base64
Expand All @@ -510,7 +520,6 @@ DEPENDENCIES
brakeman
bullet
capybara
coffee-rails
devise
devise-two-factor
devise_invitable
Expand All @@ -524,13 +533,15 @@ DEPENDENCIES
honeybadger (~> 4.0)
icalendar
image_processing
importmap-rails
kamal
loaf
lockbox
matrix
memory_profiler
mini_magick
minidusen
mission_control-jobs
net-http-persistent
net-imap
net-pop
Expand All @@ -539,6 +550,7 @@ DEPENDENCIES
paper_trail
paperclip
paranoia
propshaft
pry
psych (< 4)
puma
Expand All @@ -557,17 +569,15 @@ DEPENDENCIES
rubocop-rails
secure_headers (~> 6.3)
shoulda-context
sprockets
sprockets-rails
solid_queue
sqlite3
stackprof
tailwindcss-rails-webpacker (~> 0.2.1)
tailwindcss-rails (= 3.3.2)
tailwindcss-ruby (= 3.4.17)
turbo-rails
tzinfo
uglifier
web-console
webdrivers
webpacker
whenever

BUNDLED WITH
Expand Down
2 changes: 2 additions & 0 deletions Procfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web: bin/rails server
css: bin/rails tailwindcss:watch
Empty file added app/assets/builds/.keep
Empty file.
1 change: 0 additions & 1 deletion app/assets/config/manifest.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*@import '~flatpickr';*/
/*@import '~tablesort';*/
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import 'trix/dist/trix';
@import 'flatpickr/dist/flatpickr';

trix-editor.form-control {
min-height: 300px;
Expand Down
14 changes: 14 additions & 0 deletions app/assets/stylesheets/application.tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@config '../../../tailwind.config.js';

@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
}
4 changes: 4 additions & 0 deletions app/controllers/mission_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class MissionController < ApplicationController
before_action :lid?
before_action -> { redirect_to root_path unless current_user.dev? }
end
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/* eslint no-console:0 */
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
//
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
// layout file, like app/views/layouts/application.html.erb


// Uncomment to copy all static images under ../images to the output folder and reference
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)
// or the `imagePath` JavaScript helper below.
//
// const images = require.context('../images', true)
// const imagePath = (name) => images(name, true)

// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "controllers"
import Rails from '@rails/ujs';
import 'core-js/stable'
import 'regenerator-runtime/runtime'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'googleauth'
require 'stringio'

class DatabaseBackup < ApplicationJob
class DatabaseBackupJob < ApplicationJob
queue_as :default

def perform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'googleauth'
require 'stringio'

class StorageBackup < ApplicationJob
class StorageBackupJob < ApplicationJob
queue_as :default

def perform
Expand Down
6 changes: 3 additions & 3 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
<link rel="manifest" href="/img/site.webmanifest">
<link rel="shortcut icon" href="/img/favicon.ico">

<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbo-track': 'reload' %>
<%= javascript_pack_tag 'application', 'data-turbo-track': 'reload' %>
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbo-track': 'reload' %>

<%= csrf_meta_tags %>
<%= javascript_importmap_tags %>
</head>
<body class="h-full">
<div class="bg-gray-100 dark:bg-black min-h-screen h-full">
Expand Down
5 changes: 3 additions & 2 deletions app/views/layouts/application_public.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hamers zonder Sikkel</title>
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbo-track': 'reload' %>
<%= javascript_pack_tag 'application', 'data-turbo-track': 'reload' %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbo-track': 'reload' %>
<%= stylesheet_link_tag 'tailwind', media: 'all', 'data-turbo-track': 'reload' %>
<%= javascript_importmap_tags %>

<%= csrf_meta_tags %>
</head>
Expand Down
Loading
Loading