switch from api application to full-stack application
This commit is contained in:
parent
068de731dc
commit
572e1f821c
1
.browserslistrc
Normal file
1
.browserslistrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
defaults
|
||||||
128
.gitignore
vendored
128
.gitignore
vendored
@ -1,113 +1,37 @@
|
|||||||
#----------------------------------------------------------------------------
|
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
||||||
# Ignore these files when committing to a git repository.
|
|
||||||
#
|
#
|
||||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
||||||
#
|
|
||||||
# The original version of this file is found here:
|
|
||||||
# https://github.com/RailsApps/rails-composer/blob/master/files/gitignore.txt
|
|
||||||
#
|
|
||||||
# Corrections? Improvements? Create a GitHub issue:
|
|
||||||
# http://github.com/RailsApps/rails-composer/issues
|
|
||||||
#----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
# bundler state
|
|
||||||
/.bundle
|
|
||||||
/vendor/bundle/
|
|
||||||
/vendor/ruby/
|
|
||||||
|
|
||||||
# minimal Rails specific artifacts
|
|
||||||
db/*.sqlite3
|
|
||||||
/db/*.sqlite3-journal
|
|
||||||
/log/*
|
|
||||||
/tmp/*
|
|
||||||
|
|
||||||
# add /config/database.yml if it contains passwords
|
|
||||||
# /config/database.yml
|
|
||||||
|
|
||||||
# various artifacts
|
|
||||||
**.war
|
|
||||||
*.rbc
|
|
||||||
*.sassc
|
|
||||||
.redcar/
|
|
||||||
.sass-cache
|
|
||||||
/config/config.yml
|
|
||||||
/coverage.data
|
|
||||||
/coverage/
|
|
||||||
/db/*.javadb/
|
|
||||||
/db/*.sqlite3
|
|
||||||
/doc/api/
|
|
||||||
/doc/app/
|
|
||||||
/doc/features.html
|
|
||||||
/doc/specs.html
|
|
||||||
/public/cache
|
|
||||||
/public/stylesheets/compiled
|
|
||||||
/public/system/*
|
|
||||||
/spec/tmp/*
|
|
||||||
/cache
|
|
||||||
/capybara*
|
|
||||||
/capybara-*.html
|
|
||||||
/gems
|
|
||||||
/specifications
|
|
||||||
rerun.txt
|
|
||||||
pickle-email-*.html
|
|
||||||
.zeus.sock
|
|
||||||
|
|
||||||
# If you find yourself ignoring temporary files generated by your text editor
|
# If you find yourself ignoring temporary files generated by your text editor
|
||||||
# or operating system, you probably want to add a global ignore instead:
|
# or operating system, you probably want to add a global ignore instead:
|
||||||
# git config --global core.excludesfile ~/.gitignore_global
|
# git config --global core.excludesfile '~/.gitignore_global'
|
||||||
#
|
|
||||||
# Here are some files you may want to ignore globally:
|
|
||||||
|
|
||||||
# scm revert files
|
# Ignore bundler config.
|
||||||
**.orig
|
/.bundle
|
||||||
|
|
||||||
# Mac finder artifacts
|
# Ignore the default SQLite database.
|
||||||
.DS_Store
|
/db/*.sqlite3
|
||||||
|
/db/*.sqlite3-journal
|
||||||
|
/db/*.sqlite3-*
|
||||||
|
|
||||||
# Netbeans project directory
|
# Ignore all logfiles and tempfiles.
|
||||||
/nbproject/
|
/log/*
|
||||||
|
/tmp/*
|
||||||
|
!/log/.keep
|
||||||
|
!/tmp/.keep
|
||||||
|
|
||||||
# Textmate project files
|
# Ignore uploaded files in development.
|
||||||
/*.tmproj
|
/storage/*
|
||||||
|
!/storage/.keep
|
||||||
|
|
||||||
# vim artifacts
|
/public/assets
|
||||||
**.swp
|
.byebug_history
|
||||||
|
|
||||||
# Environment files that may contain sensitive data
|
# Ignore master key for decrypting credentials and more.
|
||||||
.env
|
/config/master.key
|
||||||
.powenv
|
|
||||||
|
|
||||||
# tilde files are usually backup files from a text editor
|
/public/packs
|
||||||
*~
|
/public/packs-test
|
||||||
|
/node_modules
|
||||||
# User-specific stuff
|
/yarn-error.log
|
||||||
.idea/**/workspace.xml
|
yarn-debug.log*
|
||||||
.idea/**/tasks.xml
|
.yarn-integrity
|
||||||
.idea/**/usage.statistics.xml
|
|
||||||
.idea/**/dictionaries
|
|
||||||
.idea/**/shelf
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
.idea/**/contentModel.xml
|
|
||||||
|
|
||||||
# Sensitive or high-churn files
|
|
||||||
.idea/**/dataSources/
|
|
||||||
.idea/**/dataSources.ids
|
|
||||||
.idea/**/dataSources.local.xml
|
|
||||||
.idea/**/sqlDataSources.xml
|
|
||||||
.idea/**/dynamic.xml
|
|
||||||
.idea/**/uiDesigner.xml
|
|
||||||
.idea/**/dbnavigator.xml
|
|
||||||
|
|
||||||
*.bak
|
|
||||||
*.rbc
|
|
||||||
.#*
|
|
||||||
.rbx
|
|
||||||
/.rdoc
|
|
||||||
/TAGS
|
|
||||||
/coverage
|
|
||||||
/html
|
|
||||||
/pkg
|
|
||||||
Gemfile.lock
|
|
||||||
.idea
|
.idea
|
||||||
/.idea/tiss2go.iml
|
|
||||||
|
|||||||
7
.rakeTasks
Normal file
7
.rakeTasks
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Settings><!--This file was automatically generated by Ruby plugin.
|
||||||
|
You are allowed to:
|
||||||
|
1. Remove rake task
|
||||||
|
2. Add existing rake tasks
|
||||||
|
To add existing rake tasks automatically delete this file and reload the project.
|
||||||
|
--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
|
||||||
@ -1 +1 @@
|
|||||||
ruby-2.7.0@global
|
ruby-2.7.0
|
||||||
|
|||||||
35
Gemfile
35
Gemfile
@ -3,20 +3,22 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|||||||
|
|
||||||
ruby '2.7.0'
|
ruby '2.7.0'
|
||||||
|
|
||||||
|
gem 'nokogiri', require: false
|
||||||
|
|
||||||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||||
|
gem 'rails', '6.0.2.1'
|
||||||
gem 'rails', '=6.0.2.1' #, platforms: [:ruby]
|
|
||||||
# TODO install rails on windows manually, nokogiri installation fails:
|
|
||||||
# ridk exec pacman -S mingw-w64-x86_64-libxslt
|
|
||||||
# gem install nokogiri --platform=ruby -- --use-system-libraries
|
|
||||||
# gem rails -v 6.0.2.1
|
|
||||||
|
|
||||||
# Use sqlite3 as the database for Active Record
|
# Use sqlite3 as the database for Active Record
|
||||||
gem 'sqlite3', '~> 1.4'
|
gem 'sqlite3', '~> 1.4'
|
||||||
# Use Puma as the app server
|
# Use Puma as the app server
|
||||||
gem 'puma', '~> 4.1'
|
gem 'puma', '~> 4.1'
|
||||||
|
# Use SCSS for stylesheets
|
||||||
|
gem 'sass-rails', '>= 6'
|
||||||
|
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
|
||||||
|
gem 'webpacker', '~> 4.0'
|
||||||
|
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
||||||
|
gem 'turbolinks', '~> 5'
|
||||||
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
||||||
# gem 'jbuilder', '~> 2.7'
|
gem 'jbuilder', '~> 2.7'
|
||||||
# Use Redis adapter to run Action Cable in production
|
# Use Redis adapter to run Action Cable in production
|
||||||
# gem 'redis', '~> 4.0'
|
# gem 'redis', '~> 4.0'
|
||||||
# Use Active Model has_secure_password
|
# Use Active Model has_secure_password
|
||||||
@ -28,19 +30,22 @@ gem 'puma', '~> 4.1'
|
|||||||
# Reduces boot times through caching; required in config/boot.rb
|
# Reduces boot times through caching; required in config/boot.rb
|
||||||
gem 'bootsnap', '>= 1.4.2', require: false
|
gem 'bootsnap', '>= 1.4.2', require: false
|
||||||
|
|
||||||
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
|
|
||||||
# gem 'rack-cors'
|
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
||||||
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'listen', '>= 3.0.5', '< 3.2'
|
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
||||||
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
gem 'web-console', '>= 3.3.0'
|
||||||
gem 'spring'
|
end
|
||||||
gem 'spring-watcher-listen', '~> 2.0.0'
|
|
||||||
|
group :test do
|
||||||
|
# Adds support for Capybara system testing and selenium driver
|
||||||
|
gem 'capybara', '>= 2.15'
|
||||||
|
gem 'selenium-webdriver'
|
||||||
|
# Easy installation and use of web drivers to run system tests with browsers
|
||||||
|
gem 'webdrivers'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||||
|
|||||||
213
Gemfile.lock
Normal file
213
Gemfile.lock
Normal file
@ -0,0 +1,213 @@
|
|||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
actioncable (6.0.2.1)
|
||||||
|
actionpack (= 6.0.2.1)
|
||||||
|
nio4r (~> 2.0)
|
||||||
|
websocket-driver (>= 0.6.1)
|
||||||
|
actionmailbox (6.0.2.1)
|
||||||
|
actionpack (= 6.0.2.1)
|
||||||
|
activejob (= 6.0.2.1)
|
||||||
|
activerecord (= 6.0.2.1)
|
||||||
|
activestorage (= 6.0.2.1)
|
||||||
|
activesupport (= 6.0.2.1)
|
||||||
|
mail (>= 2.7.1)
|
||||||
|
actionmailer (6.0.2.1)
|
||||||
|
actionpack (= 6.0.2.1)
|
||||||
|
actionview (= 6.0.2.1)
|
||||||
|
activejob (= 6.0.2.1)
|
||||||
|
mail (~> 2.5, >= 2.5.4)
|
||||||
|
rails-dom-testing (~> 2.0)
|
||||||
|
actionpack (6.0.2.1)
|
||||||
|
actionview (= 6.0.2.1)
|
||||||
|
activesupport (= 6.0.2.1)
|
||||||
|
rack (~> 2.0, >= 2.0.8)
|
||||||
|
rack-test (>= 0.6.3)
|
||||||
|
rails-dom-testing (~> 2.0)
|
||||||
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
||||||
|
actiontext (6.0.2.1)
|
||||||
|
actionpack (= 6.0.2.1)
|
||||||
|
activerecord (= 6.0.2.1)
|
||||||
|
activestorage (= 6.0.2.1)
|
||||||
|
activesupport (= 6.0.2.1)
|
||||||
|
nokogiri (>= 1.8.5)
|
||||||
|
actionview (6.0.2.1)
|
||||||
|
activesupport (= 6.0.2.1)
|
||||||
|
builder (~> 3.1)
|
||||||
|
erubi (~> 1.4)
|
||||||
|
rails-dom-testing (~> 2.0)
|
||||||
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
||||||
|
activejob (6.0.2.1)
|
||||||
|
activesupport (= 6.0.2.1)
|
||||||
|
globalid (>= 0.3.6)
|
||||||
|
activemodel (6.0.2.1)
|
||||||
|
activesupport (= 6.0.2.1)
|
||||||
|
activerecord (6.0.2.1)
|
||||||
|
activemodel (= 6.0.2.1)
|
||||||
|
activesupport (= 6.0.2.1)
|
||||||
|
activestorage (6.0.2.1)
|
||||||
|
actionpack (= 6.0.2.1)
|
||||||
|
activejob (= 6.0.2.1)
|
||||||
|
activerecord (= 6.0.2.1)
|
||||||
|
marcel (~> 0.3.1)
|
||||||
|
activesupport (6.0.2.1)
|
||||||
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
|
i18n (>= 0.7, < 2)
|
||||||
|
minitest (~> 5.1)
|
||||||
|
tzinfo (~> 1.1)
|
||||||
|
zeitwerk (~> 2.2)
|
||||||
|
addressable (2.7.0)
|
||||||
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
|
bindex (0.8.1)
|
||||||
|
bootsnap (1.4.6)
|
||||||
|
msgpack (~> 1.0)
|
||||||
|
builder (3.2.4)
|
||||||
|
byebug (11.1.1)
|
||||||
|
capybara (3.32.1)
|
||||||
|
addressable
|
||||||
|
mini_mime (>= 0.1.3)
|
||||||
|
nokogiri (~> 1.8)
|
||||||
|
rack (>= 1.6.0)
|
||||||
|
rack-test (>= 0.6.3)
|
||||||
|
regexp_parser (~> 1.5)
|
||||||
|
xpath (~> 3.2)
|
||||||
|
childprocess (3.0.0)
|
||||||
|
concurrent-ruby (1.1.6)
|
||||||
|
crass (1.0.6)
|
||||||
|
erubi (1.9.0)
|
||||||
|
ffi (1.12.2-x64-mingw32)
|
||||||
|
globalid (0.4.2)
|
||||||
|
activesupport (>= 4.2.0)
|
||||||
|
i18n (1.8.2)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
jbuilder (2.10.0)
|
||||||
|
activesupport (>= 5.0.0)
|
||||||
|
loofah (2.5.0)
|
||||||
|
crass (~> 1.0.2)
|
||||||
|
nokogiri (>= 1.5.9)
|
||||||
|
mail (2.7.1)
|
||||||
|
mini_mime (>= 0.1.1)
|
||||||
|
marcel (0.3.3)
|
||||||
|
mimemagic (~> 0.3.2)
|
||||||
|
method_source (1.0.0)
|
||||||
|
mimemagic (0.3.4)
|
||||||
|
mini_mime (1.0.2)
|
||||||
|
mini_portile2 (2.4.0)
|
||||||
|
minitest (5.14.0)
|
||||||
|
msgpack (1.3.3-x64-mingw32)
|
||||||
|
nio4r (2.5.2)
|
||||||
|
nokogiri (1.10.9)
|
||||||
|
mini_portile2 (~> 2.4.0)
|
||||||
|
public_suffix (4.0.4)
|
||||||
|
puma (4.3.3)
|
||||||
|
nio4r (~> 2.0)
|
||||||
|
rack (2.2.2)
|
||||||
|
rack-proxy (0.6.5)
|
||||||
|
rack
|
||||||
|
rack-test (1.1.0)
|
||||||
|
rack (>= 1.0, < 3)
|
||||||
|
rails (6.0.2.1)
|
||||||
|
actioncable (= 6.0.2.1)
|
||||||
|
actionmailbox (= 6.0.2.1)
|
||||||
|
actionmailer (= 6.0.2.1)
|
||||||
|
actionpack (= 6.0.2.1)
|
||||||
|
actiontext (= 6.0.2.1)
|
||||||
|
actionview (= 6.0.2.1)
|
||||||
|
activejob (= 6.0.2.1)
|
||||||
|
activemodel (= 6.0.2.1)
|
||||||
|
activerecord (= 6.0.2.1)
|
||||||
|
activestorage (= 6.0.2.1)
|
||||||
|
activesupport (= 6.0.2.1)
|
||||||
|
bundler (>= 1.3.0)
|
||||||
|
railties (= 6.0.2.1)
|
||||||
|
sprockets-rails (>= 2.0.0)
|
||||||
|
rails-dom-testing (2.0.3)
|
||||||
|
activesupport (>= 4.2.0)
|
||||||
|
nokogiri (>= 1.6)
|
||||||
|
rails-html-sanitizer (1.3.0)
|
||||||
|
loofah (~> 2.3)
|
||||||
|
railties (6.0.2.1)
|
||||||
|
actionpack (= 6.0.2.1)
|
||||||
|
activesupport (= 6.0.2.1)
|
||||||
|
method_source
|
||||||
|
rake (>= 0.8.7)
|
||||||
|
thor (>= 0.20.3, < 2.0)
|
||||||
|
rake (13.0.1)
|
||||||
|
regexp_parser (1.7.0)
|
||||||
|
rubyzip (2.3.0)
|
||||||
|
sass-rails (6.0.0)
|
||||||
|
sassc-rails (~> 2.1, >= 2.1.1)
|
||||||
|
sassc (2.2.1-x64-mingw32)
|
||||||
|
ffi (~> 1.9)
|
||||||
|
sassc-rails (2.1.2)
|
||||||
|
railties (>= 4.0.0)
|
||||||
|
sassc (>= 2.0)
|
||||||
|
sprockets (> 3.0)
|
||||||
|
sprockets-rails
|
||||||
|
tilt
|
||||||
|
selenium-webdriver (3.142.7)
|
||||||
|
childprocess (>= 0.5, < 4.0)
|
||||||
|
rubyzip (>= 1.2.2)
|
||||||
|
sprockets (4.0.0)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
rack (> 1, < 3)
|
||||||
|
sprockets-rails (3.2.1)
|
||||||
|
actionpack (>= 4.0)
|
||||||
|
activesupport (>= 4.0)
|
||||||
|
sprockets (>= 3.0.0)
|
||||||
|
sqlite3 (1.4.2)
|
||||||
|
thor (1.0.1)
|
||||||
|
thread_safe (0.3.6)
|
||||||
|
tilt (2.0.10)
|
||||||
|
turbolinks (5.2.1)
|
||||||
|
turbolinks-source (~> 5.2)
|
||||||
|
turbolinks-source (5.2.0)
|
||||||
|
tzinfo (1.2.7)
|
||||||
|
thread_safe (~> 0.1)
|
||||||
|
tzinfo-data (1.2019.3)
|
||||||
|
tzinfo (>= 1.0.0)
|
||||||
|
web-console (4.0.1)
|
||||||
|
actionview (>= 6.0.0)
|
||||||
|
activemodel (>= 6.0.0)
|
||||||
|
bindex (>= 0.4.0)
|
||||||
|
railties (>= 6.0.0)
|
||||||
|
webdrivers (4.2.0)
|
||||||
|
nokogiri (~> 1.6)
|
||||||
|
rubyzip (>= 1.3.0)
|
||||||
|
selenium-webdriver (>= 3.0, < 4.0)
|
||||||
|
webpacker (4.2.2)
|
||||||
|
activesupport (>= 4.2)
|
||||||
|
rack-proxy (>= 0.6.1)
|
||||||
|
railties (>= 4.2)
|
||||||
|
websocket-driver (0.7.1)
|
||||||
|
websocket-extensions (>= 0.1.0)
|
||||||
|
websocket-extensions (0.1.4)
|
||||||
|
xpath (3.2.0)
|
||||||
|
nokogiri (~> 1.8)
|
||||||
|
zeitwerk (2.3.0)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
x64-mingw32
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
bootsnap (>= 1.4.2)
|
||||||
|
byebug
|
||||||
|
capybara (>= 2.15)
|
||||||
|
jbuilder (~> 2.7)
|
||||||
|
nokogiri
|
||||||
|
puma (~> 4.1)
|
||||||
|
rails (= 6.0.2.1)
|
||||||
|
sass-rails (>= 6)
|
||||||
|
selenium-webdriver
|
||||||
|
sqlite3 (~> 1.4)
|
||||||
|
turbolinks (~> 5)
|
||||||
|
tzinfo-data
|
||||||
|
web-console (>= 3.3.0)
|
||||||
|
webdrivers
|
||||||
|
webpacker (~> 4.0)
|
||||||
|
|
||||||
|
RUBY VERSION
|
||||||
|
ruby 2.7.0p0
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
2.1.4
|
||||||
2
app/assets/config/manifest.js
Normal file
2
app/assets/config/manifest.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
//= link_tree ../images
|
||||||
|
//= link_directory ../stylesheets .css
|
||||||
0
app/assets/images/.keep
Normal file
0
app/assets/images/.keep
Normal file
15
app/assets/stylesheets/application.css
Normal file
15
app/assets/stylesheets/application.css
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
||||||
|
* listed below.
|
||||||
|
*
|
||||||
|
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
||||||
|
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
||||||
|
*
|
||||||
|
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
||||||
|
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
||||||
|
* files in this directory. Styles in this file should be added after the last require_* statement.
|
||||||
|
* It is generally better to create a new file per style scope.
|
||||||
|
*
|
||||||
|
*= require_tree .
|
||||||
|
*= require_self
|
||||||
|
*/
|
||||||
3
app/assets/stylesheets/login.scss
Normal file
3
app/assets/stylesheets/login.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Place all the styles related to the login controller here.
|
||||||
|
// They will automatically be included in application.css.
|
||||||
|
// You can use Sass (SCSS) here: https://sass-lang.com/
|
||||||
@ -1,2 +1,2 @@
|
|||||||
class ApplicationController < ActionController::API
|
class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
class CoursesController < ApplicationController
|
|
||||||
end
|
|
||||||
4
app/controllers/login_controller.rb
Normal file
4
app/controllers/login_controller.rb
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
class LoginController < ApplicationController
|
||||||
|
def index
|
||||||
|
end
|
||||||
|
end
|
||||||
@ -1,2 +0,0 @@
|
|||||||
class PeopleController < ApplicationController
|
|
||||||
end
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
class ProjectsController < ApplicationController
|
|
||||||
end
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
class ThesesController < ApplicationController
|
|
||||||
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/login_helper.rb
Normal file
2
app/helpers/login_helper.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
module LoginHelper
|
||||||
|
end
|
||||||
6
app/javascript/channels/consumer.js
Normal file
6
app/javascript/channels/consumer.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// Action Cable provides the framework to deal with WebSockets in Rails.
|
||||||
|
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
|
||||||
|
|
||||||
|
import { createConsumer } from "@rails/actioncable"
|
||||||
|
|
||||||
|
export default createConsumer()
|
||||||
5
app/javascript/channels/index.js
Normal file
5
app/javascript/channels/index.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
// Load all the channels within this directory and all subdirectories.
|
||||||
|
// Channel files must be named *_channel.js.
|
||||||
|
|
||||||
|
const channels = require.context('.', true, /_channel\.js$/)
|
||||||
|
channels.keys().forEach(channels)
|
||||||
17
app/javascript/packs/application.js
Normal file
17
app/javascript/packs/application.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// 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.
|
||||||
|
|
||||||
|
require("@rails/ujs").start()
|
||||||
|
require("turbolinks").start()
|
||||||
|
require("@rails/activestorage").start()
|
||||||
|
require("channels")
|
||||||
|
|
||||||
|
|
||||||
|
// 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)
|
||||||
15
app/views/layouts/application.html.erb
Normal file
15
app/views/layouts/application.html.erb
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Tiss2go</title>
|
||||||
|
<%= csrf_meta_tags %>
|
||||||
|
<%= csp_meta_tag %>
|
||||||
|
|
||||||
|
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||||
|
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<%= yield %>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
2
app/views/login/index.html.erb
Normal file
2
app/views/login/index.html.erb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<h1>Login#index</h1>
|
||||||
|
<p>Find me in app/views/login/index.html.erb</p>
|
||||||
72
babel.config.js
Normal file
72
babel.config.js
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
module.exports = function(api) {
|
||||||
|
var validEnv = ['development', 'test', 'production']
|
||||||
|
var currentEnv = api.env()
|
||||||
|
var isDevelopmentEnv = api.env('development')
|
||||||
|
var isProductionEnv = api.env('production')
|
||||||
|
var isTestEnv = api.env('test')
|
||||||
|
|
||||||
|
if (!validEnv.includes(currentEnv)) {
|
||||||
|
throw new Error(
|
||||||
|
'Please specify a valid `NODE_ENV` or ' +
|
||||||
|
'`BABEL_ENV` environment variables. Valid values are "development", ' +
|
||||||
|
'"test", and "production". Instead, received: ' +
|
||||||
|
JSON.stringify(currentEnv) +
|
||||||
|
'.'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
presets: [
|
||||||
|
isTestEnv && [
|
||||||
|
'@babel/preset-env',
|
||||||
|
{
|
||||||
|
targets: {
|
||||||
|
node: 'current'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
(isProductionEnv || isDevelopmentEnv) && [
|
||||||
|
'@babel/preset-env',
|
||||||
|
{
|
||||||
|
forceAllTransforms: true,
|
||||||
|
useBuiltIns: 'entry',
|
||||||
|
corejs: 3,
|
||||||
|
modules: false,
|
||||||
|
exclude: ['transform-typeof-symbol']
|
||||||
|
}
|
||||||
|
]
|
||||||
|
].filter(Boolean),
|
||||||
|
plugins: [
|
||||||
|
'babel-plugin-macros',
|
||||||
|
'@babel/plugin-syntax-dynamic-import',
|
||||||
|
isTestEnv && 'babel-plugin-dynamic-import-node',
|
||||||
|
'@babel/plugin-transform-destructuring',
|
||||||
|
[
|
||||||
|
'@babel/plugin-proposal-class-properties',
|
||||||
|
{
|
||||||
|
loose: true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'@babel/plugin-proposal-object-rest-spread',
|
||||||
|
{
|
||||||
|
useBuiltIns: true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'@babel/plugin-transform-runtime',
|
||||||
|
{
|
||||||
|
helpers: false,
|
||||||
|
regenerator: true,
|
||||||
|
corejs: false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'@babel/plugin-transform-regenerator',
|
||||||
|
{
|
||||||
|
async: false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
].filter(Boolean)
|
||||||
|
}
|
||||||
|
}
|
||||||
114
bin/bundle
114
bin/bundle
@ -1,114 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
#
|
|
||||||
# This file was generated by Bundler.
|
|
||||||
#
|
|
||||||
# The application 'bundle' is installed as part of a gem, and
|
|
||||||
# this file is here to facilitate running it.
|
|
||||||
#
|
|
||||||
|
|
||||||
require "rubygems"
|
|
||||||
|
|
||||||
m = Module.new do
|
|
||||||
module_function
|
|
||||||
|
|
||||||
def invoked_as_script?
|
|
||||||
File.expand_path($0) == File.expand_path(__FILE__)
|
|
||||||
end
|
|
||||||
|
|
||||||
def env_var_version
|
|
||||||
ENV["BUNDLER_VERSION"]
|
|
||||||
end
|
|
||||||
|
|
||||||
def cli_arg_version
|
|
||||||
return unless invoked_as_script? # don't want to hijack other binstubs
|
|
||||||
return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
|
|
||||||
bundler_version = nil
|
|
||||||
update_index = nil
|
|
||||||
ARGV.each_with_index do |a, i|
|
|
||||||
if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
|
|
||||||
bundler_version = a
|
|
||||||
end
|
|
||||||
next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
|
|
||||||
bundler_version = $1
|
|
||||||
update_index = i
|
|
||||||
end
|
|
||||||
bundler_version
|
|
||||||
end
|
|
||||||
|
|
||||||
def gemfile
|
|
||||||
gemfile = ENV["BUNDLE_GEMFILE"]
|
|
||||||
return gemfile if gemfile && !gemfile.empty?
|
|
||||||
|
|
||||||
File.expand_path("../../Gemfile", __FILE__)
|
|
||||||
end
|
|
||||||
|
|
||||||
def lockfile
|
|
||||||
lockfile =
|
|
||||||
case File.basename(gemfile)
|
|
||||||
when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
|
|
||||||
else "#{gemfile}.lock"
|
|
||||||
end
|
|
||||||
File.expand_path(lockfile)
|
|
||||||
end
|
|
||||||
|
|
||||||
def lockfile_version
|
|
||||||
return unless File.file?(lockfile)
|
|
||||||
lockfile_contents = File.read(lockfile)
|
|
||||||
return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
|
|
||||||
Regexp.last_match(1)
|
|
||||||
end
|
|
||||||
|
|
||||||
def bundler_version
|
|
||||||
@bundler_version ||=
|
|
||||||
env_var_version || cli_arg_version ||
|
|
||||||
lockfile_version
|
|
||||||
end
|
|
||||||
|
|
||||||
def bundler_requirement
|
|
||||||
return "#{Gem::Requirement.default}.a" unless bundler_version
|
|
||||||
|
|
||||||
bundler_gem_version = Gem::Version.new(bundler_version)
|
|
||||||
|
|
||||||
requirement = bundler_gem_version.approximate_recommendation
|
|
||||||
|
|
||||||
return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
|
|
||||||
|
|
||||||
requirement += ".a" if bundler_gem_version.prerelease?
|
|
||||||
|
|
||||||
requirement
|
|
||||||
end
|
|
||||||
|
|
||||||
def load_bundler!
|
|
||||||
ENV["BUNDLE_GEMFILE"] ||= gemfile
|
|
||||||
|
|
||||||
activate_bundler
|
|
||||||
end
|
|
||||||
|
|
||||||
def activate_bundler
|
|
||||||
gem_error = activation_error_handling do
|
|
||||||
gem "bundler", bundler_requirement
|
|
||||||
end
|
|
||||||
return if gem_error.nil?
|
|
||||||
require_error = activation_error_handling do
|
|
||||||
require "bundler/version"
|
|
||||||
end
|
|
||||||
return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
|
|
||||||
warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
|
|
||||||
exit 42
|
|
||||||
end
|
|
||||||
|
|
||||||
def activation_error_handling
|
|
||||||
yield
|
|
||||||
nil
|
|
||||||
rescue StandardError, LoadError => e
|
|
||||||
e
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
m.load_bundler!
|
|
||||||
|
|
||||||
if m.invoked_as_script?
|
|
||||||
load Gem.bin_path("bundler", "bundle")
|
|
||||||
end
|
|
||||||
@ -1,9 +1,4 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby.exe
|
||||||
begin
|
|
||||||
load File.expand_path('../spring', __FILE__)
|
|
||||||
rescue LoadError => e
|
|
||||||
raise unless e.message.include?('spring')
|
|
||||||
end
|
|
||||||
APP_PATH = File.expand_path('../config/application', __dir__)
|
APP_PATH = File.expand_path('../config/application', __dir__)
|
||||||
require_relative '../config/boot'
|
require_relative '../config/boot'
|
||||||
require 'rails/commands'
|
require 'rails/commands'
|
||||||
|
|||||||
7
bin/rake
7
bin/rake
@ -1,9 +1,4 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby.exe
|
||||||
begin
|
|
||||||
load File.expand_path('../spring', __FILE__)
|
|
||||||
rescue LoadError => e
|
|
||||||
raise unless e.message.include?('spring')
|
|
||||||
end
|
|
||||||
require_relative '../config/boot'
|
require_relative '../config/boot'
|
||||||
require 'rake'
|
require 'rake'
|
||||||
Rake.application.run
|
Rake.application.run
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby.exe
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
# path to your application root.
|
# path to your application root.
|
||||||
@ -17,6 +17,9 @@ FileUtils.chdir APP_ROOT do
|
|||||||
system! 'gem install bundler --conservative'
|
system! 'gem install bundler --conservative'
|
||||||
system('bundle check') || system!('bundle install')
|
system('bundle check') || system!('bundle install')
|
||||||
|
|
||||||
|
# Install JavaScript dependencies
|
||||||
|
# system('bin/yarn')
|
||||||
|
|
||||||
# puts "\n== Copying sample files =="
|
# puts "\n== Copying sample files =="
|
||||||
# unless File.exist?('config/database.yml')
|
# unless File.exist?('config/database.yml')
|
||||||
# FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
|
# FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
|
||||||
|
|||||||
17
bin/spring
17
bin/spring
@ -1,17 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
|
|
||||||
# This file loads Spring without using Bundler, in order to be fast.
|
|
||||||
# It gets overwritten when you run the `spring binstub` command.
|
|
||||||
|
|
||||||
unless defined?(Spring)
|
|
||||||
require 'rubygems'
|
|
||||||
require 'bundler'
|
|
||||||
|
|
||||||
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
|
|
||||||
spring = lockfile.specs.detect { |spec| spec.name == 'spring' }
|
|
||||||
if spring
|
|
||||||
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
|
|
||||||
gem 'spring', spring.version
|
|
||||||
require 'spring/binstub'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
18
bin/webpack
Normal file
18
bin/webpack
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
||||||
|
ENV["NODE_ENV"] ||= "development"
|
||||||
|
|
||||||
|
require "pathname"
|
||||||
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
||||||
|
Pathname.new(__FILE__).realpath)
|
||||||
|
|
||||||
|
require "bundler/setup"
|
||||||
|
|
||||||
|
require "webpacker"
|
||||||
|
require "webpacker/webpack_runner"
|
||||||
|
|
||||||
|
APP_ROOT = File.expand_path("..", __dir__)
|
||||||
|
Dir.chdir(APP_ROOT) do
|
||||||
|
Webpacker::WebpackRunner.run(ARGV)
|
||||||
|
end
|
||||||
18
bin/webpack-dev-server
Normal file
18
bin/webpack-dev-server
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
||||||
|
ENV["NODE_ENV"] ||= "development"
|
||||||
|
|
||||||
|
require "pathname"
|
||||||
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
||||||
|
Pathname.new(__FILE__).realpath)
|
||||||
|
|
||||||
|
require "bundler/setup"
|
||||||
|
|
||||||
|
require "webpacker"
|
||||||
|
require "webpacker/dev_server_runner"
|
||||||
|
|
||||||
|
APP_ROOT = File.expand_path("..", __dir__)
|
||||||
|
Dir.chdir(APP_ROOT) do
|
||||||
|
Webpacker::DevServerRunner.run(ARGV)
|
||||||
|
end
|
||||||
11
bin/yarn
Normal file
11
bin/yarn
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env ruby.exe
|
||||||
|
APP_ROOT = File.expand_path('..', __dir__)
|
||||||
|
Dir.chdir(APP_ROOT) do
|
||||||
|
begin
|
||||||
|
exec "yarnpkg", *ARGV
|
||||||
|
rescue Errno::ENOENT
|
||||||
|
$stderr.puts "Yarn executable was not detected in the system."
|
||||||
|
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
end
|
||||||
@ -1,19 +1,6 @@
|
|||||||
require_relative 'boot'
|
require_relative 'boot'
|
||||||
|
|
||||||
require "rails"
|
require 'rails/all'
|
||||||
# Pick the frameworks you want:
|
|
||||||
require "active_model/railtie"
|
|
||||||
require "active_job/railtie"
|
|
||||||
require "active_record/railtie"
|
|
||||||
require "active_storage/engine"
|
|
||||||
require "action_controller/railtie"
|
|
||||||
require "action_mailer/railtie"
|
|
||||||
require "action_mailbox/engine"
|
|
||||||
require "action_text/engine"
|
|
||||||
require "action_view/railtie"
|
|
||||||
require "action_cable/engine"
|
|
||||||
# require "sprockets/railtie"
|
|
||||||
require "rails/test_unit/railtie"
|
|
||||||
|
|
||||||
# Require the gems listed in Gemfile, including any gems
|
# Require the gems listed in Gemfile, including any gems
|
||||||
# you've limited to :test, :development, or :production.
|
# you've limited to :test, :development, or :production.
|
||||||
@ -28,10 +15,5 @@ module Tiss2go
|
|||||||
# Application configuration can go into files in config/initializers
|
# Application configuration can go into files in config/initializers
|
||||||
# -- all .rb files in that directory are automatically loaded after loading
|
# -- all .rb files in that directory are automatically loaded after loading
|
||||||
# the framework and any gems in your application.
|
# the framework and any gems in your application.
|
||||||
|
|
||||||
# Only loads a smaller set of middleware suitable for API only apps.
|
|
||||||
# Middleware like session, flash, cookies can be added back manually.
|
|
||||||
# Skip views, helpers and assets when generating a new resource.
|
|
||||||
config.api_only = true
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
//a2JoBrEdwktZ8ld1SCA9/HY8mECvsO7D2wMnTkI1vrGO/f6YukPMhWxQoxN2sraAEOlMBSEvhZBuph+9NcSv7yHZtrAE+jDQBuhFzYod2MR6xm7VBJAE/e5igRXY4t3XUXOB764OKMXE++XLmUglVMHfaaXmklqGfrVnG/k4xGP/Dr8R5ammpL9er8nKCEzSpmvKo+jnVVjPkm2Ku89ImDeBe+0Xw7n3QaeeZ3U39Y8h4xazGnyHdHeQPvMzO4jfa1uUWHrwZ6V3z93ghX012tC7i/WzRnvTaMTWOmmTl5/zbhr9CJNnHU4HrJlww6KO7CAvKM3u4dUG3nNkXMIUk8P1cEXaznVQ3zAS9loCPFNMCke7Ar38bpunbfqHvKjPY6NaZNDC7rs4pfU/c4m3kLBUxvLEqhIwbM--iSMU+cEHLW3vFiow--aFI1eZq6IPlsokp4+MPbLQ==
|
48vmrApqBGZdCnPpveHSdT2qpJjkibVXIfdanKKK2p/xSNn6zYjytUshxfe/72uV1uibwLtXAaKW7W1rBNFCWh2KycHNWNDbKMp4swSpOFWdCd821QvmghvV7RHAGlm9lJBjPpwT2s7sZUy4si+CooNVPQJ9Qu5egjkBGtgRd9mJy0IPG1rM7EzVLuq4NDYfoBFzz0ENVWiuZHMZ0if+8/xkAMGDa6G5DYG4sPEfZKY/XlVPiPnXIH1K6eFEk/YZlEu61r4krmBxPWzRE+S0Dk3dYcbluLuNDDpkwhF5eyL+JjWvyYcKPqeUTU0m261EEvAsI+pV3aJr3O31LTq/80ubNQYZeWA+kNTvf+ZoSzzTLINAV58+bZfi7/+m6KXKiN+TWLJ7El779sr2aKI0Pqf39LBwkz7QuIGf--J1dii4FxGjzY28MW--ehS76ZxyLo4nshG+eNE/tQ==
|
||||||
@ -15,6 +15,9 @@ Rails.application.configure do
|
|||||||
# Enable/disable caching. By default caching is disabled.
|
# Enable/disable caching. By default caching is disabled.
|
||||||
# Run rails dev:cache to toggle caching.
|
# Run rails dev:cache to toggle caching.
|
||||||
if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
||||||
|
config.action_controller.perform_caching = true
|
||||||
|
config.action_controller.enable_fragment_cache_logging = true
|
||||||
|
|
||||||
config.cache_store = :memory_store
|
config.cache_store = :memory_store
|
||||||
config.public_file_server.headers = {
|
config.public_file_server.headers = {
|
||||||
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
||||||
@ -42,11 +45,18 @@ Rails.application.configure do
|
|||||||
# Highlight code that triggered database queries in logs.
|
# Highlight code that triggered database queries in logs.
|
||||||
config.active_record.verbose_query_logs = true
|
config.active_record.verbose_query_logs = true
|
||||||
|
|
||||||
|
# Debug mode disables concatenation and preprocessing of assets.
|
||||||
|
# This option may cause significant delays in view rendering with a large
|
||||||
|
# number of complex assets.
|
||||||
|
config.assets.debug = true
|
||||||
|
|
||||||
|
# Suppress logger output for asset requests.
|
||||||
|
config.assets.quiet = true
|
||||||
|
|
||||||
# Raises error for missing translations.
|
# Raises error for missing translations.
|
||||||
# config.action_view.raise_on_missing_translations = true
|
# config.action_view.raise_on_missing_translations = true
|
||||||
|
|
||||||
# Use an evented file watcher to asynchronously detect changes in source code,
|
# Use an evented file watcher to asynchronously detect changes in source code,
|
||||||
# routes, locales, etc. This feature depends on the listen gem.
|
# routes, locales, etc. This feature depends on the listen gem.
|
||||||
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
# config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
||||||
end
|
end
|
||||||
|
|||||||
@ -12,6 +12,7 @@ Rails.application.configure do
|
|||||||
|
|
||||||
# Full error reports are disabled and caching is turned on.
|
# Full error reports are disabled and caching is turned on.
|
||||||
config.consider_all_requests_local = false
|
config.consider_all_requests_local = false
|
||||||
|
config.action_controller.perform_caching = true
|
||||||
|
|
||||||
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
|
||||||
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
|
||||||
@ -21,6 +22,12 @@ Rails.application.configure do
|
|||||||
# Apache or NGINX already handles this.
|
# Apache or NGINX already handles this.
|
||||||
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
||||||
|
|
||||||
|
# Compress CSS using a preprocessor.
|
||||||
|
# config.assets.css_compressor = :sass
|
||||||
|
|
||||||
|
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||||
|
config.assets.compile = false
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||||
# config.action_controller.asset_host = 'http://assets.example.com'
|
# config.action_controller.asset_host = 'http://assets.example.com'
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
config.cache_classes = false
|
config.cache_classes = true
|
||||||
|
|
||||||
# Do not eager load code on boot. This avoids loading your whole application
|
# Do not eager load code on boot. This avoids loading your whole application
|
||||||
# just for the purpose of running a single test. If you are using a tool that
|
# just for the purpose of running a single test. If you are using a tool that
|
||||||
|
|||||||
14
config/initializers/assets.rb
Normal file
14
config/initializers/assets.rb
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
|
# Version of your assets, change this if you want to expire all your assets.
|
||||||
|
Rails.application.config.assets.version = '1.0'
|
||||||
|
|
||||||
|
# Add additional assets to the asset load path.
|
||||||
|
# Rails.application.config.assets.paths << Emoji.images_path
|
||||||
|
# Add Yarn node_modules folder to the asset load path.
|
||||||
|
Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
||||||
|
|
||||||
|
# Precompile additional assets.
|
||||||
|
# application.js, application.css, and all non-JS/CSS in the app/assets
|
||||||
|
# folder are already added.
|
||||||
|
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
||||||
30
config/initializers/content_security_policy.rb
Normal file
30
config/initializers/content_security_policy.rb
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
|
# Define an application-wide content security policy
|
||||||
|
# For further information see the following documentation
|
||||||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
||||||
|
|
||||||
|
# Rails.application.config.content_security_policy do |policy|
|
||||||
|
# policy.default_src :self, :https
|
||||||
|
# policy.font_src :self, :https, :data
|
||||||
|
# policy.img_src :self, :https, :data
|
||||||
|
# policy.object_src :none
|
||||||
|
# policy.script_src :self, :https
|
||||||
|
# policy.style_src :self, :https
|
||||||
|
# # If you are using webpack-dev-server then specify webpack-dev-server host
|
||||||
|
# policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
|
||||||
|
|
||||||
|
# # Specify URI for violation reports
|
||||||
|
# # policy.report_uri "/csp-violation-report-endpoint"
|
||||||
|
# end
|
||||||
|
|
||||||
|
# If you are using UJS then enable automatic nonce generation
|
||||||
|
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
|
||||||
|
|
||||||
|
# Set the nonce only to specific directives
|
||||||
|
# Rails.application.config.content_security_policy_nonce_directives = %w(script-src)
|
||||||
|
|
||||||
|
# Report CSP violations to a specified URI
|
||||||
|
# For further information see the following documentation:
|
||||||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
||||||
|
# Rails.application.config.content_security_policy_report_only = true
|
||||||
5
config/initializers/cookies_serializer.rb
Normal file
5
config/initializers/cookies_serializer.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
|
# Specify a serializer for the signed and encrypted cookie jars.
|
||||||
|
# Valid options are :json, :marshal, and :hybrid.
|
||||||
|
Rails.application.config.action_dispatch.cookies_serializer = :json
|
||||||
@ -1,16 +0,0 @@
|
|||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# Avoid CORS issues when API is called from the frontend app.
|
|
||||||
# Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin AJAX requests.
|
|
||||||
|
|
||||||
# Read more: https://github.com/cyu/rack-cors
|
|
||||||
|
|
||||||
# Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
|
||||||
# allow do
|
|
||||||
# origins 'example.com'
|
|
||||||
#
|
|
||||||
# resource '*',
|
|
||||||
# headers: :any,
|
|
||||||
# methods: [:get, :post, :put, :patch, :delete, :options, :head]
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
@ -1 +1 @@
|
|||||||
820db71b3797170d8a62f87109f13df5
|
c613ccf18a17c07b3d83e084b360f9c1
|
||||||
@ -1,9 +1,4 @@
|
|||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
|
get 'login/index'
|
||||||
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
|
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
|
||||||
|
|
||||||
# Listing resources
|
|
||||||
resources :courses
|
|
||||||
resources :people
|
|
||||||
resources :projects
|
|
||||||
resources :theses
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,6 +0,0 @@
|
|||||||
Spring.watch(
|
|
||||||
".ruby-version",
|
|
||||||
".rbenv-vars",
|
|
||||||
"tmp/restart.txt",
|
|
||||||
"tmp/caching-dev.txt"
|
|
||||||
)
|
|
||||||
5
config/webpack/development.js
Normal file
5
config/webpack/development.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development'
|
||||||
|
|
||||||
|
const environment = require('./environment')
|
||||||
|
|
||||||
|
module.exports = environment.toWebpackConfig()
|
||||||
3
config/webpack/environment.js
Normal file
3
config/webpack/environment.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
const { environment } = require('@rails/webpacker')
|
||||||
|
|
||||||
|
module.exports = environment
|
||||||
5
config/webpack/production.js
Normal file
5
config/webpack/production.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
|
||||||
|
|
||||||
|
const environment = require('./environment')
|
||||||
|
|
||||||
|
module.exports = environment.toWebpackConfig()
|
||||||
5
config/webpack/test.js
Normal file
5
config/webpack/test.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development'
|
||||||
|
|
||||||
|
const environment = require('./environment')
|
||||||
|
|
||||||
|
module.exports = environment.toWebpackConfig()
|
||||||
96
config/webpacker.yml
Normal file
96
config/webpacker.yml
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
||||||
|
|
||||||
|
default: &default
|
||||||
|
source_path: app/javascript
|
||||||
|
source_entry_path: packs
|
||||||
|
public_root_path: public
|
||||||
|
public_output_path: packs
|
||||||
|
cache_path: tmp/cache/webpacker
|
||||||
|
check_yarn_integrity: false
|
||||||
|
webpack_compile_output: true
|
||||||
|
|
||||||
|
# Additional paths webpack should lookup modules
|
||||||
|
# ['app/assets', 'engine/foo/app/assets']
|
||||||
|
resolved_paths: []
|
||||||
|
|
||||||
|
# Reload manifest.json on all requests so we reload latest compiled packs
|
||||||
|
cache_manifest: false
|
||||||
|
|
||||||
|
# Extract and emit a css file
|
||||||
|
extract_css: false
|
||||||
|
|
||||||
|
static_assets_extensions:
|
||||||
|
- .jpg
|
||||||
|
- .jpeg
|
||||||
|
- .png
|
||||||
|
- .gif
|
||||||
|
- .tiff
|
||||||
|
- .ico
|
||||||
|
- .svg
|
||||||
|
- .eot
|
||||||
|
- .otf
|
||||||
|
- .ttf
|
||||||
|
- .woff
|
||||||
|
- .woff2
|
||||||
|
|
||||||
|
extensions:
|
||||||
|
- .mjs
|
||||||
|
- .js
|
||||||
|
- .sass
|
||||||
|
- .scss
|
||||||
|
- .css
|
||||||
|
- .module.sass
|
||||||
|
- .module.scss
|
||||||
|
- .module.css
|
||||||
|
- .png
|
||||||
|
- .svg
|
||||||
|
- .gif
|
||||||
|
- .jpeg
|
||||||
|
- .jpg
|
||||||
|
|
||||||
|
development:
|
||||||
|
<<: *default
|
||||||
|
compile: true
|
||||||
|
|
||||||
|
# Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
|
||||||
|
check_yarn_integrity: true
|
||||||
|
|
||||||
|
# Reference: https://webpack.js.org/configuration/dev-server/
|
||||||
|
dev_server:
|
||||||
|
https: false
|
||||||
|
host: localhost
|
||||||
|
port: 3035
|
||||||
|
public: localhost:3035
|
||||||
|
hmr: false
|
||||||
|
# Inline should be set to true if using HMR
|
||||||
|
inline: true
|
||||||
|
overlay: true
|
||||||
|
compress: true
|
||||||
|
disable_host_check: true
|
||||||
|
use_local_ip: false
|
||||||
|
quiet: false
|
||||||
|
pretty: false
|
||||||
|
headers:
|
||||||
|
'Access-Control-Allow-Origin': '*'
|
||||||
|
watch_options:
|
||||||
|
ignored: '**/node_modules/**'
|
||||||
|
|
||||||
|
|
||||||
|
test:
|
||||||
|
<<: *default
|
||||||
|
compile: true
|
||||||
|
|
||||||
|
# Compile test packs to a separate directory
|
||||||
|
public_output_path: packs-test
|
||||||
|
|
||||||
|
production:
|
||||||
|
<<: *default
|
||||||
|
|
||||||
|
# Production depends on precompilation of packs prior to booting for performance.
|
||||||
|
compile: false
|
||||||
|
|
||||||
|
# Extract and emit a css file
|
||||||
|
extract_css: true
|
||||||
|
|
||||||
|
# Cache manifest.json for performance
|
||||||
|
cache_manifest: true
|
||||||
0
lib/assets/.keep
Normal file
0
lib/assets/.keep
Normal file
15
package.json
Normal file
15
package.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "tiss2go",
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@rails/actioncable": "^6.0.0",
|
||||||
|
"@rails/activestorage": "^6.0.0",
|
||||||
|
"@rails/ujs": "^6.0.0",
|
||||||
|
"@rails/webpacker": "4.2.2",
|
||||||
|
"turbolinks": "^5.2.0"
|
||||||
|
},
|
||||||
|
"version": "0.1.0",
|
||||||
|
"devDependencies": {
|
||||||
|
"webpack-dev-server": "^3.10.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
12
postcss.config.js
Normal file
12
postcss.config.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
require('postcss-import'),
|
||||||
|
require('postcss-flexbugs-fixes'),
|
||||||
|
require('postcss-preset-env')({
|
||||||
|
autoprefixer: {
|
||||||
|
flexbox: 'no-2009'
|
||||||
|
},
|
||||||
|
stage: 3
|
||||||
|
})
|
||||||
|
]
|
||||||
|
}
|
||||||
67
public/404.html
Normal file
67
public/404.html
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>The page you were looking for doesn't exist (404)</title>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<style>
|
||||||
|
.rails-default-error-page {
|
||||||
|
background-color: #EFEFEF;
|
||||||
|
color: #2E2F30;
|
||||||
|
text-align: center;
|
||||||
|
font-family: arial, sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page div.dialog {
|
||||||
|
width: 95%;
|
||||||
|
max-width: 33em;
|
||||||
|
margin: 4em auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page div.dialog > div {
|
||||||
|
border: 1px solid #CCC;
|
||||||
|
border-right-color: #999;
|
||||||
|
border-left-color: #999;
|
||||||
|
border-bottom-color: #BBB;
|
||||||
|
border-top: #B00100 solid 4px;
|
||||||
|
border-top-left-radius: 9px;
|
||||||
|
border-top-right-radius: 9px;
|
||||||
|
background-color: white;
|
||||||
|
padding: 7px 12% 0;
|
||||||
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page h1 {
|
||||||
|
font-size: 100%;
|
||||||
|
color: #730E15;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page div.dialog > p {
|
||||||
|
margin: 0 0 1em;
|
||||||
|
padding: 1em;
|
||||||
|
background-color: #F7F7F7;
|
||||||
|
border: 1px solid #CCC;
|
||||||
|
border-right-color: #999;
|
||||||
|
border-left-color: #999;
|
||||||
|
border-bottom-color: #999;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
border-top-color: #DADADA;
|
||||||
|
color: #666;
|
||||||
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="rails-default-error-page">
|
||||||
|
<!-- This file lives in public/404.html -->
|
||||||
|
<div class="dialog">
|
||||||
|
<div>
|
||||||
|
<h1>The page you were looking for doesn't exist.</h1>
|
||||||
|
<p>You may have mistyped the address or the page may have moved.</p>
|
||||||
|
</div>
|
||||||
|
<p>If you are the application owner check the logs for more information.</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
67
public/422.html
Normal file
67
public/422.html
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>The change you wanted was rejected (422)</title>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<style>
|
||||||
|
.rails-default-error-page {
|
||||||
|
background-color: #EFEFEF;
|
||||||
|
color: #2E2F30;
|
||||||
|
text-align: center;
|
||||||
|
font-family: arial, sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page div.dialog {
|
||||||
|
width: 95%;
|
||||||
|
max-width: 33em;
|
||||||
|
margin: 4em auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page div.dialog > div {
|
||||||
|
border: 1px solid #CCC;
|
||||||
|
border-right-color: #999;
|
||||||
|
border-left-color: #999;
|
||||||
|
border-bottom-color: #BBB;
|
||||||
|
border-top: #B00100 solid 4px;
|
||||||
|
border-top-left-radius: 9px;
|
||||||
|
border-top-right-radius: 9px;
|
||||||
|
background-color: white;
|
||||||
|
padding: 7px 12% 0;
|
||||||
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page h1 {
|
||||||
|
font-size: 100%;
|
||||||
|
color: #730E15;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page div.dialog > p {
|
||||||
|
margin: 0 0 1em;
|
||||||
|
padding: 1em;
|
||||||
|
background-color: #F7F7F7;
|
||||||
|
border: 1px solid #CCC;
|
||||||
|
border-right-color: #999;
|
||||||
|
border-left-color: #999;
|
||||||
|
border-bottom-color: #999;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
border-top-color: #DADADA;
|
||||||
|
color: #666;
|
||||||
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="rails-default-error-page">
|
||||||
|
<!-- This file lives in public/422.html -->
|
||||||
|
<div class="dialog">
|
||||||
|
<div>
|
||||||
|
<h1>The change you wanted was rejected.</h1>
|
||||||
|
<p>Maybe you tried to change something you didn't have access to.</p>
|
||||||
|
</div>
|
||||||
|
<p>If you are the application owner check the logs for more information.</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
66
public/500.html
Normal file
66
public/500.html
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>We're sorry, but something went wrong (500)</title>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<style>
|
||||||
|
.rails-default-error-page {
|
||||||
|
background-color: #EFEFEF;
|
||||||
|
color: #2E2F30;
|
||||||
|
text-align: center;
|
||||||
|
font-family: arial, sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page div.dialog {
|
||||||
|
width: 95%;
|
||||||
|
max-width: 33em;
|
||||||
|
margin: 4em auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page div.dialog > div {
|
||||||
|
border: 1px solid #CCC;
|
||||||
|
border-right-color: #999;
|
||||||
|
border-left-color: #999;
|
||||||
|
border-bottom-color: #BBB;
|
||||||
|
border-top: #B00100 solid 4px;
|
||||||
|
border-top-left-radius: 9px;
|
||||||
|
border-top-right-radius: 9px;
|
||||||
|
background-color: white;
|
||||||
|
padding: 7px 12% 0;
|
||||||
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page h1 {
|
||||||
|
font-size: 100%;
|
||||||
|
color: #730E15;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rails-default-error-page div.dialog > p {
|
||||||
|
margin: 0 0 1em;
|
||||||
|
padding: 1em;
|
||||||
|
background-color: #F7F7F7;
|
||||||
|
border: 1px solid #CCC;
|
||||||
|
border-right-color: #999;
|
||||||
|
border-left-color: #999;
|
||||||
|
border-bottom-color: #999;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
border-top-color: #DADADA;
|
||||||
|
color: #666;
|
||||||
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="rails-default-error-page">
|
||||||
|
<!-- This file lives in public/500.html -->
|
||||||
|
<div class="dialog">
|
||||||
|
<div>
|
||||||
|
<h1>We're sorry, but something went wrong.</h1>
|
||||||
|
</div>
|
||||||
|
<p>If you are the application owner check the logs for more information.</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
0
public/apple-touch-icon-precomposed.png
Normal file
0
public/apple-touch-icon-precomposed.png
Normal file
0
public/apple-touch-icon.png
Normal file
0
public/apple-touch-icon.png
Normal file
0
public/favicon.ico
Normal file
0
public/favicon.ico
Normal file
5
test/application_system_test_case.rb
Normal file
5
test/application_system_test_case.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
require "test_helper"
|
||||||
|
|
||||||
|
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
|
||||||
|
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
|
||||||
|
end
|
||||||
@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class CoursesControllerTest < ActionDispatch::IntegrationTest
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
9
test/controllers/login_controller_test.rb
Normal file
9
test/controllers/login_controller_test.rb
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class LoginControllerTest < ActionDispatch::IntegrationTest
|
||||||
|
test "should get index" do
|
||||||
|
get login_index_url
|
||||||
|
assert_response :success
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class PeopleControllerTest < ActionDispatch::IntegrationTest
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class ProjectsControllerTest < ActionDispatch::IntegrationTest
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class ThesesControllerTest < ActionDispatch::IntegrationTest
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
0
test/helpers/.keep
Normal file
0
test/helpers/.keep
Normal file
0
test/system/.keep
Normal file
0
test/system/.keep
Normal file
@ -4,7 +4,7 @@ require 'rails/test_help'
|
|||||||
|
|
||||||
class ActiveSupport::TestCase
|
class ActiveSupport::TestCase
|
||||||
# Run tests in parallel with specified workers
|
# Run tests in parallel with specified workers
|
||||||
parallelize(workers: :number_of_processors)
|
parallelize(workers: :number_of_processors, with: :threads)
|
||||||
|
|
||||||
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
||||||
fixtures :all
|
fixtures :all
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user