30 | <%= f.label :current_password %> (we need your current password to confirm your changes)
31 | <%= f.password_field :current_password, autocomplete: "off" %>
32 |
33 |
34 |
35 | <%= f.submit "Update" %>
36 |
37 | <% end %>
38 |
39 |
Cancel my account
40 |
41 |
Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %>
--------------------------------------------------------------------------------
/app/views/layouts/application.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Onebitflix
5 | <%= csrf_meta_tags %>
6 | <%= csp_meta_tag %>
7 |
8 | <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
9 | <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
10 | <%= stylesheet_pack_tag 'application' %>
11 |
12 |
13 |
14 |
15 |
16 |
17 | <%= yield %>
18 | <%= javascript_pack_tag 'application' %>
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/views/layouts/mailer.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 | <%= yield %>
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/views/layouts/mailer.text.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
2 |
--------------------------------------------------------------------------------
/bin/bundle:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
3 | load Gem.bin_path('bundler', 'bundle')
4 |
--------------------------------------------------------------------------------
/bin/rails:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | begin
3 | load File.expand_path('../spring', __FILE__)
4 | rescue LoadError => e
5 | raise unless e.message.include?('spring')
6 | end
7 | APP_PATH = File.expand_path('../config/application', __dir__)
8 | require_relative '../config/boot'
9 | require 'rails/commands'
10 |
--------------------------------------------------------------------------------
/bin/rake:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | begin
3 | load File.expand_path('../spring', __FILE__)
4 | rescue LoadError => e
5 | raise unless e.message.include?('spring')
6 | end
7 | require_relative '../config/boot'
8 | require 'rake'
9 | Rake.application.run
10 |
--------------------------------------------------------------------------------
/bin/setup:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require 'fileutils'
3 | include FileUtils
4 |
5 | # path to your application root.
6 | APP_ROOT = File.expand_path('..', __dir__)
7 |
8 | def system!(*args)
9 | system(*args) || abort("\n== Command #{args} failed ==")
10 | end
11 |
12 | chdir APP_ROOT do
13 | # This script is a starting point to setup your application.
14 | # Add necessary setup steps to this file.
15 |
16 | puts '== Installing dependencies =='
17 | system! 'gem install bundler --conservative'
18 | system('bundle check') || system!('bundle install')
19 |
20 | # Install JavaScript dependencies if using Yarn
21 | # system('bin/yarn')
22 |
23 | # puts "\n== Copying sample files =="
24 | # unless File.exist?('config/database.yml')
25 | # cp 'config/database.yml.sample', 'config/database.yml'
26 | # end
27 |
28 | puts "\n== Preparing database =="
29 | system! 'bin/rails db:setup'
30 |
31 | puts "\n== Removing old logs and tempfiles =="
32 | system! 'bin/rails log:clear tmp:clear'
33 |
34 | puts "\n== Restarting application server =="
35 | system! 'bin/rails restart'
36 | end
37 |
--------------------------------------------------------------------------------
/bin/spring:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | # This file loads spring without using Bundler, in order to be fast.
4 | # It gets overwritten when you run the `spring binstub` command.
5 |
6 | unless defined?(Spring)
7 | require 'rubygems'
8 | require 'bundler'
9 |
10 | lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
11 | spring = lockfile.specs.detect { |spec| spec.name == "spring" }
12 | if spring
13 | Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
14 | gem 'spring', spring.version
15 | require 'spring/binstub'
16 | end
17 | end
18 |
--------------------------------------------------------------------------------
/bin/update:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require 'fileutils'
3 | include FileUtils
4 |
5 | # path to your application root.
6 | APP_ROOT = File.expand_path('..', __dir__)
7 |
8 | def system!(*args)
9 | system(*args) || abort("\n== Command #{args} failed ==")
10 | end
11 |
12 | chdir APP_ROOT do
13 | # This script is a way to update your development environment automatically.
14 | # Add necessary update steps to this file.
15 |
16 | puts '== Installing dependencies =='
17 | system! 'gem install bundler --conservative'
18 | system('bundle check') || system!('bundle install')
19 |
20 | # Install JavaScript dependencies if using Yarn
21 | # system('bin/yarn')
22 |
23 | puts "\n== Updating database =="
24 | system! 'bin/rails db:migrate'
25 |
26 | puts "\n== Removing old logs and tempfiles =="
27 | system! 'bin/rails log:clear tmp:clear'
28 |
29 | puts "\n== Restarting application server =="
30 | system! 'bin/rails restart'
31 | end
32 |
--------------------------------------------------------------------------------
/bin/webpack:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
4 | ENV["NODE_ENV"] ||= "development"
5 |
6 | require "pathname"
7 | ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
8 | Pathname.new(__FILE__).realpath)
9 |
10 | require "rubygems"
11 | require "bundler/setup"
12 |
13 | require "webpacker"
14 | require "webpacker/webpack_runner"
15 | Webpacker::WebpackRunner.run(ARGV)
16 |
--------------------------------------------------------------------------------
/bin/webpack-dev-server:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
4 | ENV["NODE_ENV"] ||= "development"
5 |
6 | require "pathname"
7 | ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
8 | Pathname.new(__FILE__).realpath)
9 |
10 | require "rubygems"
11 | require "bundler/setup"
12 |
13 | require "webpacker"
14 | require "webpacker/dev_server_runner"
15 | Webpacker::DevServerRunner.run(ARGV)
16 |
--------------------------------------------------------------------------------
/bin/yarn:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | APP_ROOT = File.expand_path('..', __dir__)
3 | Dir.chdir(APP_ROOT) do
4 | begin
5 | exec "yarnpkg", *ARGV
6 | rescue Errno::ENOENT
7 | $stderr.puts "Yarn executable was not detected in the system."
8 | $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9 | exit 1
10 | end
11 | end
12 |
--------------------------------------------------------------------------------
/config.ru:
--------------------------------------------------------------------------------
1 | # This file is used by Rack-based servers to start the application.
2 |
3 | require_relative 'config/environment'
4 |
5 | run Rails.application
6 |
--------------------------------------------------------------------------------
/config/application.rb:
--------------------------------------------------------------------------------
1 | require_relative 'boot'
2 |
3 | require 'rails/all'
4 |
5 | # Require the gems listed in Gemfile, including any gems
6 | # you've limited to :test, :development, or :production.
7 | Bundler.require(*Rails.groups)
8 |
9 | module Onebitflix
10 | class Application < Rails::Application
11 | # Initialize configuration defaults for originally generated Rails version.
12 | config.load_defaults 5.2
13 |
14 | # Settings in config/environments/* take precedence over those specified here.
15 | # Application configuration can go into files in config/initializers
16 | # -- all .rb files in that directory are automatically loaded after loading
17 | # the framework and any gems in your application.
18 | end
19 | end
20 |
--------------------------------------------------------------------------------
/config/boot.rb:
--------------------------------------------------------------------------------
1 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2 |
3 | require 'bundler/setup' # Set up gems listed in the Gemfile.
4 | require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
5 |
--------------------------------------------------------------------------------
/config/cable.yml:
--------------------------------------------------------------------------------
1 | development:
2 | adapter: async
3 |
4 | test:
5 | adapter: async
6 |
7 | production:
8 | adapter: redis
9 | url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
10 | channel_prefix: onebitflix_production
11 |
--------------------------------------------------------------------------------
/config/credentials.yml.enc:
--------------------------------------------------------------------------------
1 | W25O2MJhnRnIby3m5OYSZj2zFLlZVYZhiyHuM+PEuA6pLL9yldFr2pEkxp1xVL+LdyJsMvww2I4MOi6TB9T9/jVU461F1FktdBaHdlohVdwFfm5boQTrHcFtmyZamLk6iWf1YbfITok0V26MRKa30sjNZrCMQLYQCjO/WJZqvtSK3fIGYpR4V5JEPxUYBp/mX5Kt0Vyofu4vMH3tQ844WNcXhruPTSpweW/2vxFF/KfhGBqZRdHXE/NXZ2uRZA6sXcKlL/NuBpxzEjHXo+vnt4Add95ZomUNwdxPSrYBlu717V5MjPOQfkRWPPISkde0mf7/b+7saE4sUN6/G/9Vt443lAFA2Tp0lwimA8u8Orpk1cYu3LFl6eXkGiFB81VflAmg3IslS9h3hcq7PybbL1ZktWYEKXyuuEvaKtz7lfu99YJmT1Nt6MZw92VQ9sK95fHtt5bUaNqKxI2MldQzEu7250gcPhsGOVXVe3F7EFp8GlQCUkzOad77FHQMcDeiS4NbTBW9yks=--9vaqDJFCykLsXqdk--OazkWfpHbdTpxLiCtBSAdw==
--------------------------------------------------------------------------------
/config/database.yml:
--------------------------------------------------------------------------------
1 | default: &default
2 | adapter: postgresql
3 | encoding: unicode
4 | username: leonardo
5 | password: 12345678
6 | development:
7 | <<: *default
8 | database: onebitflix2_development
--------------------------------------------------------------------------------
/config/environment.rb:
--------------------------------------------------------------------------------
1 | # Load the Rails application.
2 | require_relative 'application'
3 |
4 | # Initialize the Rails application.
5 | Rails.application.initialize!
6 |
--------------------------------------------------------------------------------
/config/environments/development.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Verifies that versions and hashed value of the package contents in the project's package.json
3 | config.webpacker.check_yarn_integrity = true
4 | # Settings specified here will take precedence over those in config/application.rb.
5 |
6 | # In the development environment your application's code is reloaded on
7 | # every request. This slows down response time but is perfect for development
8 | # since you don't have to restart the web server when you make code changes.
9 | config.cache_classes = false
10 |
11 | # Do not eager load code on boot.
12 | config.eager_load = false
13 |
14 | # Show full error reports.
15 | config.consider_all_requests_local = true
16 |
17 | # Enable/disable caching. By default caching is disabled.
18 | # Run rails dev:cache to toggle caching.
19 | if Rails.root.join('tmp', 'caching-dev.txt').exist?
20 | config.action_controller.perform_caching = true
21 |
22 | config.cache_store = :memory_store
23 | config.public_file_server.headers = {
24 | 'Cache-Control' => "public, max-age=#{2.days.to_i}"
25 | }
26 | else
27 | config.action_controller.perform_caching = false
28 |
29 | config.cache_store = :null_store
30 | end
31 |
32 | # Store uploaded files on the local file system (see config/storage.yml for options)
33 | config.active_storage.service = :local
34 |
35 | # Don't care if the mailer can't send.
36 | config.action_mailer.raise_delivery_errors = false
37 |
38 | config.action_mailer.perform_caching = false
39 |
40 | # Print deprecation notices to the Rails logger.
41 | config.active_support.deprecation = :log
42 |
43 | # Raise an error on page load if there are pending migrations.
44 | config.active_record.migration_error = :page_load
45 |
46 | # Highlight code that triggered database queries in logs.
47 | config.active_record.verbose_query_logs = true
48 |
49 | # Debug mode disables concatenation and preprocessing of assets.
50 | # This option may cause significant delays in view rendering with a large
51 | # number of complex assets.
52 | config.assets.debug = true
53 |
54 | # Suppress logger output for asset requests.
55 | config.assets.quiet = true
56 |
57 | # Raises error for missing translations
58 | # config.action_view.raise_on_missing_translations = true
59 |
60 | # Use an evented file watcher to asynchronously detect changes in source code,
61 | # routes, locales, etc. This feature depends on the listen gem.
62 | config.file_watcher = ActiveSupport::EventedFileUpdateChecker
63 | end
64 |
--------------------------------------------------------------------------------
/config/environments/production.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Verifies that versions and hashed value of the package contents in the project's package.json
3 | config.webpacker.check_yarn_integrity = false
4 | # Settings specified here will take precedence over those in config/application.rb.
5 |
6 | # Code is not reloaded between requests.
7 | config.cache_classes = true
8 |
9 | # Eager load code on boot. This eager loads most of Rails and
10 | # your application in memory, allowing both threaded web servers
11 | # and those relying on copy on write to perform better.
12 | # Rake tasks automatically ignore this option for performance.
13 | config.eager_load = true
14 |
15 | # Full error reports are disabled and caching is turned on.
16 | config.consider_all_requests_local = false
17 | config.action_controller.perform_caching = true
18 |
19 | # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
20 | # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
21 | # config.require_master_key = true
22 |
23 | # Disable serving static files from the `/public` folder by default since
24 | # Apache or NGINX already handles this.
25 | config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
26 |
27 | # Compress JavaScripts and CSS.
28 | config.assets.js_compressor = Uglifier.new(harmony: true)
29 | # config.assets.css_compressor = :sass
30 |
31 | # Do not fallback to assets pipeline if a precompiled asset is missed.
32 | config.assets.compile = false
33 |
34 | # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
35 |
36 | # Enable serving of images, stylesheets, and JavaScripts from an asset server.
37 | # config.action_controller.asset_host = 'http://assets.example.com'
38 |
39 | # Specifies the header that your server uses for sending files.
40 | # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
41 | # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
42 |
43 | # Store uploaded files on the local file system (see config/storage.yml for options)
44 | config.active_storage.service = :local
45 |
46 | # Mount Action Cable outside main process or domain
47 | # config.action_cable.mount_path = nil
48 | # config.action_cable.url = 'wss://example.com/cable'
49 | # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
50 |
51 | # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
52 | # config.force_ssl = true
53 |
54 | # Use the lowest log level to ensure availability of diagnostic information
55 | # when problems arise.
56 | config.log_level = :debug
57 |
58 | # Prepend all log lines with the following tags.
59 | config.log_tags = [ :request_id ]
60 |
61 | # Use a different cache store in production.
62 | # config.cache_store = :mem_cache_store
63 |
64 | # Use a real queuing backend for Active Job (and separate queues per environment)
65 | # config.active_job.queue_adapter = :resque
66 | # config.active_job.queue_name_prefix = "onebitflix_#{Rails.env}"
67 |
68 | config.action_mailer.perform_caching = false
69 |
70 | # Ignore bad email addresses and do not raise email delivery errors.
71 | # Set this to true and configure the email server for immediate delivery to raise delivery errors.
72 | # config.action_mailer.raise_delivery_errors = false
73 |
74 | # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
75 | # the I18n.default_locale when a translation cannot be found).
76 | config.i18n.fallbacks = true
77 |
78 | # Send deprecation notices to registered listeners.
79 | config.active_support.deprecation = :notify
80 |
81 | # Use default logging formatter so that PID and timestamp are not suppressed.
82 | config.log_formatter = ::Logger::Formatter.new
83 |
84 | # Use a different logger for distributed setups.
85 | # require 'syslog/logger'
86 | # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
87 |
88 | if ENV["RAILS_LOG_TO_STDOUT"].present?
89 | logger = ActiveSupport::Logger.new(STDOUT)
90 | logger.formatter = config.log_formatter
91 | config.logger = ActiveSupport::TaggedLogging.new(logger)
92 | end
93 |
94 | # Do not dump schema after migrations.
95 | config.active_record.dump_schema_after_migration = false
96 | end
97 |
--------------------------------------------------------------------------------
/config/environments/test.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # The test environment is used exclusively to run your application's
5 | # test suite. You never need to work with it otherwise. Remember that
6 | # your test database is "scratch space" for the test suite and is wiped
7 | # and recreated between test runs. Don't rely on the data there!
8 | config.cache_classes = true
9 |
10 | # Do not eager load code on boot. This avoids loading your whole application
11 | # just for the purpose of running a single test. If you are using a tool that
12 | # preloads Rails for running tests, you may have to set it to true.
13 | config.eager_load = false
14 |
15 | # Configure public file server for tests with Cache-Control for performance.
16 | config.public_file_server.enabled = true
17 | config.public_file_server.headers = {
18 | 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
19 | }
20 |
21 | # Show full error reports and disable caching.
22 | config.consider_all_requests_local = true
23 | config.action_controller.perform_caching = false
24 |
25 | # Raise exceptions instead of rendering exception templates.
26 | config.action_dispatch.show_exceptions = false
27 |
28 | # Disable request forgery protection in test environment.
29 | config.action_controller.allow_forgery_protection = false
30 |
31 | # Store uploaded files on the local file system in a temporary directory
32 | config.active_storage.service = :test
33 |
34 | config.action_mailer.perform_caching = false
35 |
36 | # Tell Action Mailer not to deliver emails to the real world.
37 | # The :test delivery method accumulates sent emails in the
38 | # ActionMailer::Base.deliveries array.
39 | config.action_mailer.delivery_method = :test
40 |
41 | # Print deprecation notices to the stderr.
42 | config.active_support.deprecation = :stderr
43 |
44 | # Raises error for missing translations
45 | # config.action_view.raise_on_missing_translations = true
46 | end
47 |
--------------------------------------------------------------------------------
/config/initializers/application_controller_renderer.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # ActiveSupport::Reloader.to_prepare do
4 | # ApplicationController.renderer.defaults.merge!(
5 | # http_host: 'example.org',
6 | # https: false
7 | # )
8 | # end
9 |
--------------------------------------------------------------------------------
/config/initializers/assets.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Version of your assets, change this if you want to expire all your assets.
4 | Rails.application.config.assets.version = '1.0'
5 |
6 | # Add additional assets to the asset load path.
7 | # Rails.application.config.assets.paths << Emoji.images_path
8 | # Add Yarn node_modules folder to the asset load path.
9 | Rails.application.config.assets.paths << Rails.root.join('node_modules')
10 |
11 | # Precompile additional assets.
12 | # application.js, application.css, and all non-JS/CSS in the app/assets
13 | # folder are already added.
14 | # Rails.application.config.assets.precompile += %w( admin.js admin.css )
15 |
--------------------------------------------------------------------------------
/config/initializers/aws.rb:
--------------------------------------------------------------------------------
1 | Aws.config.update({
2 | region: 'us-east-1',
3 | credentials: Aws::Credentials.new(Rails.application.credentials.aws_key, Rails.application.credentials.aws_secret)
4 | })
5 |
6 | AWS_BUCKET = Aws::S3::Resource.new.bucket("onebitflix")
--------------------------------------------------------------------------------
/config/initializers/backtrace_silencers.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4 | # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5 |
6 | # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7 | # Rails.backtrace_cleaner.remove_silencers!
8 |
--------------------------------------------------------------------------------
/config/initializers/content_security_policy.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Define an application-wide content security policy
4 | # For further information see the following documentation
5 | # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
6 |
7 | # Rails.application.config.content_security_policy do |policy|
8 | # policy.default_src :self, :https
9 | # policy.font_src :self, :https, :data
10 | # policy.img_src :self, :https, :data
11 | # policy.object_src :none
12 | # policy.script_src :self, :https
13 | # policy.style_src :self, :https
14 |
15 | # # Specify URI for violation reports
16 | # # policy.report_uri "/csp-violation-report-endpoint"
17 | # end
18 |
19 | # If you are using UJS then enable automatic nonce generation
20 | # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
21 |
22 | # Report CSP violations to a specified URI
23 | # For further information see the following documentation:
24 | # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
25 | # Rails.application.config.content_security_policy_report_only = true
26 |
--------------------------------------------------------------------------------
/config/initializers/cookies_serializer.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Specify a serializer for the signed and encrypted cookie jars.
4 | # Valid options are :json, :marshal, and :hybrid.
5 | Rails.application.config.action_dispatch.cookies_serializer = :json
6 |
--------------------------------------------------------------------------------
/config/initializers/devise.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | # Use this hook to configure devise mailer, warden hooks and so forth.
4 | # Many of these configuration options can be set straight in your model.
5 | Devise.setup do |config|
6 | # The secret key used by Devise. Devise uses this key to generate
7 | # random tokens. Changing this key will render invalid all existing
8 | # confirmation, reset password and unlock tokens in the database.
9 | # Devise will use the `secret_key_base` as its `secret_key`
10 | # by default. You can change it below and use your own secret key.
11 | # config.secret_key = '2818c992bc95ab7e5a2516cc685c3b44cd3886e5321ecf10f6cc0926f8d5644d0f9930c7e1a7dbccf93e3cd3fe6dd203e9c6a657308829937ec5f751a44d975b'
12 |
13 | # ==> Controller configuration
14 | # Configure the parent class to the devise controllers.
15 | # config.parent_controller = 'DeviseController'
16 |
17 | # ==> Mailer Configuration
18 | # Configure the e-mail address which will be shown in Devise::Mailer,
19 | # note that it will be overwritten if you use your own mailer class
20 | # with default "from" parameter.
21 | config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
22 |
23 | # Configure the class responsible to send e-mails.
24 | # config.mailer = 'Devise::Mailer'
25 |
26 | # Configure the parent class responsible to send e-mails.
27 | # config.parent_mailer = 'ActionMailer::Base'
28 |
29 | # ==> ORM configuration
30 | # Load and configure the ORM. Supports :active_record (default) and
31 | # :mongoid (bson_ext recommended) by default. Other ORMs may be
32 | # available as additional gems.
33 | require 'devise/orm/active_record'
34 |
35 | # ==> Configuration for any authentication mechanism
36 | # Configure which keys are used when authenticating a user. The default is
37 | # just :email. You can configure it to use [:username, :subdomain], so for
38 | # authenticating a user, both parameters are required. Remember that those
39 | # parameters are used only when authenticating and not when retrieving from
40 | # session. If you need permissions, you should implement that in a before filter.
41 | # You can also supply a hash where the value is a boolean determining whether
42 | # or not authentication should be aborted when the value is not present.
43 | # config.authentication_keys = [:email]
44 |
45 | # Configure parameters from the request object used for authentication. Each entry
46 | # given should be a request method and it will automatically be passed to the
47 | # find_for_authentication method and considered in your model lookup. For instance,
48 | # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
49 | # The same considerations mentioned for authentication_keys also apply to request_keys.
50 | # config.request_keys = []
51 |
52 | # Configure which authentication keys should be case-insensitive.
53 | # These keys will be downcased upon creating or modifying a user and when used
54 | # to authenticate or find a user. Default is :email.
55 | config.case_insensitive_keys = [:email]
56 |
57 | # Configure which authentication keys should have whitespace stripped.
58 | # These keys will have whitespace before and after removed upon creating or
59 | # modifying a user and when used to authenticate or find a user. Default is :email.
60 | config.strip_whitespace_keys = [:email]
61 |
62 | # Tell if authentication through request.params is enabled. True by default.
63 | # It can be set to an array that will enable params authentication only for the
64 | # given strategies, for example, `config.params_authenticatable = [:database]` will
65 | # enable it only for database (email + password) authentication.
66 | # config.params_authenticatable = true
67 |
68 | # Tell if authentication through HTTP Auth is enabled. False by default.
69 | # It can be set to an array that will enable http authentication only for the
70 | # given strategies, for example, `config.http_authenticatable = [:database]` will
71 | # enable it only for database authentication. The supported strategies are:
72 | # :database = Support basic authentication with authentication key + password
73 | # config.http_authenticatable = false
74 |
75 | # If 401 status code should be returned for AJAX requests. True by default.
76 | # config.http_authenticatable_on_xhr = true
77 |
78 | # The realm used in Http Basic Authentication. 'Application' by default.
79 | # config.http_authentication_realm = 'Application'
80 |
81 | # It will change confirmation, password recovery and other workflows
82 | # to behave the same regardless if the e-mail provided was right or wrong.
83 | # Does not affect registerable.
84 | # config.paranoid = true
85 |
86 | # By default Devise will store the user in session. You can skip storage for
87 | # particular strategies by setting this option.
88 | # Notice that if you are skipping storage for all authentication paths, you
89 | # may want to disable generating routes to Devise's sessions controller by
90 | # passing skip: :sessions to `devise_for` in your config/routes.rb
91 | config.skip_session_storage = [:http_auth]
92 |
93 | # By default, Devise cleans up the CSRF token on authentication to
94 | # avoid CSRF token fixation attacks. This means that, when using AJAX
95 | # requests for sign in and sign up, you need to get a new CSRF token
96 | # from the server. You can disable this option at your own risk.
97 | # config.clean_up_csrf_token_on_authentication = true
98 |
99 | # When false, Devise will not attempt to reload routes on eager load.
100 | # This can reduce the time taken to boot the app but if your application
101 | # requires the Devise mappings to be loaded during boot time the application
102 | # won't boot properly.
103 | # config.reload_routes = true
104 |
105 | # ==> Configuration for :database_authenticatable
106 | # For bcrypt, this is the cost for hashing the password and defaults to 11. If
107 | # using other algorithms, it sets how many times you want the password to be hashed.
108 | #
109 | # Limiting the stretches to just one in testing will increase the performance of
110 | # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
111 | # a value less than 10 in other environments. Note that, for bcrypt (the default
112 | # algorithm), the cost increases exponentially with the number of stretches (e.g.
113 | # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
114 | config.stretches = Rails.env.test? ? 1 : 11
115 |
116 | # Set up a pepper to generate the hashed password.
117 | # config.pepper = 'a58b17ee12dc54638be943cdfc8ef60d06255261b1294745a7804b86a8b157f981c34bc08d961e285c598381ddaecd9116feb5a1b776cbda29cf2d2d53b2b4a7'
118 |
119 | # Send a notification to the original email when the user's email is changed.
120 | # config.send_email_changed_notification = false
121 |
122 | # Send a notification email when the user's password is changed.
123 | # config.send_password_change_notification = false
124 |
125 | # ==> Configuration for :confirmable
126 | # A period that the user is allowed to access the website even without
127 | # confirming their account. For instance, if set to 2.days, the user will be
128 | # able to access the website for two days without confirming their account,
129 | # access will be blocked just in the third day. Default is 0.days, meaning
130 | # the user cannot access the website without confirming their account.
131 | # config.allow_unconfirmed_access_for = 2.days
132 |
133 | # A period that the user is allowed to confirm their account before their
134 | # token becomes invalid. For example, if set to 3.days, the user can confirm
135 | # their account within 3 days after the mail was sent, but on the fourth day
136 | # their account can't be confirmed with the token any more.
137 | # Default is nil, meaning there is no restriction on how long a user can take
138 | # before confirming their account.
139 | # config.confirm_within = 3.days
140 |
141 | # If true, requires any email changes to be confirmed (exactly the same way as
142 | # initial account confirmation) to be applied. Requires additional unconfirmed_email
143 | # db field (see migrations). Until confirmed, new email is stored in
144 | # unconfirmed_email column, and copied to email column on successful confirmation.
145 | config.reconfirmable = true
146 |
147 | # Defines which key will be used when confirming an account
148 | # config.confirmation_keys = [:email]
149 |
150 | # ==> Configuration for :rememberable
151 | # The time the user will be remembered without asking for credentials again.
152 | # config.remember_for = 2.weeks
153 |
154 | # Invalidates all the remember me tokens when the user signs out.
155 | config.expire_all_remember_me_on_sign_out = true
156 |
157 | # If true, extends the user's remember period when remembered via cookie.
158 | # config.extend_remember_period = false
159 |
160 | # Options to be passed to the created cookie. For instance, you can set
161 | # secure: true in order to force SSL only cookies.
162 | # config.rememberable_options = {}
163 |
164 | # ==> Configuration for :validatable
165 | # Range for password length.
166 | config.password_length = 6..128
167 |
168 | # Email regex used to validate email formats. It simply asserts that
169 | # one (and only one) @ exists in the given string. This is mainly
170 | # to give user feedback and not to assert the e-mail validity.
171 | config.email_regexp = /\A[^@\s]+@[^@\s]+\z/
172 |
173 | # ==> Configuration for :timeoutable
174 | # The time you want to timeout the user session without activity. After this
175 | # time the user will be asked for credentials again. Default is 30 minutes.
176 | # config.timeout_in = 30.minutes
177 |
178 | # ==> Configuration for :lockable
179 | # Defines which strategy will be used to lock an account.
180 | # :failed_attempts = Locks an account after a number of failed attempts to sign in.
181 | # :none = No lock strategy. You should handle locking by yourself.
182 | # config.lock_strategy = :failed_attempts
183 |
184 | # Defines which key will be used when locking and unlocking an account
185 | # config.unlock_keys = [:email]
186 |
187 | # Defines which strategy will be used to unlock an account.
188 | # :email = Sends an unlock link to the user email
189 | # :time = Re-enables login after a certain amount of time (see :unlock_in below)
190 | # :both = Enables both strategies
191 | # :none = No unlock strategy. You should handle unlocking by yourself.
192 | # config.unlock_strategy = :both
193 |
194 | # Number of authentication tries before locking an account if lock_strategy
195 | # is failed attempts.
196 | # config.maximum_attempts = 20
197 |
198 | # Time interval to unlock the account if :time is enabled as unlock_strategy.
199 | # config.unlock_in = 1.hour
200 |
201 | # Warn on the last attempt before the account is locked.
202 | # config.last_attempt_warning = true
203 |
204 | # ==> Configuration for :recoverable
205 | #
206 | # Defines which key will be used when recovering the password for an account
207 | # config.reset_password_keys = [:email]
208 |
209 | # Time interval you can reset your password with a reset password key.
210 | # Don't put a too small interval or your users won't have the time to
211 | # change their passwords.
212 | config.reset_password_within = 6.hours
213 |
214 | # When set to false, does not sign a user in automatically after their password is
215 | # reset. Defaults to true, so a user is signed in automatically after a reset.
216 | # config.sign_in_after_reset_password = true
217 |
218 | # ==> Configuration for :encryptable
219 | # Allow you to use another hashing or encryption algorithm besides bcrypt (default).
220 | # You can use :sha1, :sha512 or algorithms from others authentication tools as
221 | # :clearance_sha1, :authlogic_sha512 (then you should set stretches above to 20
222 | # for default behavior) and :restful_authentication_sha1 (then you should set
223 | # stretches to 10, and copy REST_AUTH_SITE_KEY to pepper).
224 | #
225 | # Require the `devise-encryptable` gem when using anything other than bcrypt
226 | # config.encryptor = :sha512
227 |
228 | # ==> Scopes configuration
229 | # Turn scoped views on. Before rendering "sessions/new", it will first check for
230 | # "users/sessions/new". It's turned off by default because it's slower if you
231 | # are using only default views.
232 | # config.scoped_views = false
233 |
234 | # Configure the default scope given to Warden. By default it's the first
235 | # devise role declared in your routes (usually :user).
236 | # config.default_scope = :user
237 |
238 | # Set this configuration to false if you want /users/sign_out to sign out
239 | # only the current scope. By default, Devise signs out all scopes.
240 | # config.sign_out_all_scopes = true
241 |
242 | # ==> Navigation configuration
243 | # Lists the formats that should be treated as navigational. Formats like
244 | # :html, should redirect to the sign in page when the user does not have
245 | # access, but formats like :xml or :json, should return 401.
246 | #
247 | # If you have any extra navigational formats, like :iphone or :mobile, you
248 | # should add them to the navigational formats lists.
249 | #
250 | # The "*/*" below is required to match Internet Explorer requests.
251 | # config.navigational_formats = ['*/*', :html]
252 |
253 | # The default HTTP method used to sign out a resource. Default is :delete.
254 | config.sign_out_via = :get
255 |
256 | # ==> OmniAuth
257 | # Add a new OmniAuth provider. Check the wiki for more information on setting
258 | # up on your models and hooks.
259 | # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
260 |
261 | # ==> Warden configuration
262 | # If you want to use other strategies, that are not supported by Devise, or
263 | # change the failure app, you can configure them inside the config.warden block.
264 | #
265 | # config.warden do |manager|
266 | # manager.intercept_401 = false
267 | # manager.default_strategies(scope: :user).unshift :some_external_strategy
268 | # end
269 |
270 | # ==> Mountable engine configurations
271 | # When using Devise inside an engine, let's call it `MyEngine`, and this engine
272 | # is mountable, there are some extra configurations to be taken into account.
273 | # The following options are available, assuming the engine is mounted as:
274 | #
275 | # mount MyEngine, at: '/my_engine'
276 | #
277 | # The router that invoked `devise_for`, in the example above, would be:
278 | # config.router_name = :my_engine
279 | #
280 | # When using OmniAuth, Devise cannot automatically set OmniAuth path,
281 | # so you need to do it manually. For the users scope, it would be:
282 | # config.omniauth_path_prefix = '/my_engine/users/auth'
283 | end
284 |
--------------------------------------------------------------------------------
/config/initializers/filter_parameter_logging.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Configure sensitive parameters which will be filtered from the log file.
4 | Rails.application.config.filter_parameters += [:password]
5 |
--------------------------------------------------------------------------------
/config/initializers/inflections.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Add new inflection rules using the following format. Inflections
4 | # are locale specific, and you may define rules for as many different
5 | # locales as you wish. All of these examples are active by default:
6 | # ActiveSupport::Inflector.inflections(:en) do |inflect|
7 | # inflect.plural /^(ox)$/i, '\1en'
8 | # inflect.singular /^(ox)en/i, '\1'
9 | # inflect.irregular 'person', 'people'
10 | # inflect.uncountable %w( fish sheep )
11 | # end
12 |
13 | # These inflection rules are supported but not enabled by default:
14 | # ActiveSupport::Inflector.inflections(:en) do |inflect|
15 | # inflect.acronym 'RESTful'
16 | # end
17 |
--------------------------------------------------------------------------------
/config/initializers/mime_types.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Add new mime types for use in respond_to blocks:
4 | # Mime::Type.register "text/richtext", :rtf
5 |
--------------------------------------------------------------------------------
/config/initializers/pg_search.rb:
--------------------------------------------------------------------------------
1 | PgSearch.multisearch_options = {
2 | using: {
3 | tsearch: {
4 | any_word: true
5 | },
6 | trigram: {}
7 | }
8 | }
--------------------------------------------------------------------------------
/config/initializers/wrap_parameters.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # This file contains settings for ActionController::ParamsWrapper which
4 | # is enabled by default.
5 |
6 | # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7 | ActiveSupport.on_load(:action_controller) do
8 | wrap_parameters format: [:json]
9 | end
10 |
11 | # To enable root element in JSON for ActiveRecord objects.
12 | # ActiveSupport.on_load(:active_record) do
13 | # self.include_root_in_json = true
14 | # end
15 |
--------------------------------------------------------------------------------
/config/locales/devise.en.yml:
--------------------------------------------------------------------------------
1 | # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2 |
3 | en:
4 | devise:
5 | confirmations:
6 | confirmed: "Your email address has been successfully confirmed."
7 | send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
8 | send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
9 | failure:
10 | already_authenticated: "You are already signed in."
11 | inactive: "Your account is not activated yet."
12 | invalid: "Invalid %{authentication_keys} or password."
13 | locked: "Your account is locked."
14 | last_attempt: "You have one more attempt before your account is locked."
15 | not_found_in_database: "Invalid %{authentication_keys} or password."
16 | timeout: "Your session expired. Please sign in again to continue."
17 | unauthenticated: "You need to sign in or sign up before continuing."
18 | unconfirmed: "You have to confirm your email address before continuing."
19 | mailer:
20 | confirmation_instructions:
21 | subject: "Confirmation instructions"
22 | reset_password_instructions:
23 | subject: "Reset password instructions"
24 | unlock_instructions:
25 | subject: "Unlock instructions"
26 | email_changed:
27 | subject: "Email Changed"
28 | password_change:
29 | subject: "Password Changed"
30 | omniauth_callbacks:
31 | failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
32 | success: "Successfully authenticated from %{kind} account."
33 | passwords:
34 | no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
35 | send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
36 | send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
37 | updated: "Your password has been changed successfully. You are now signed in."
38 | updated_not_active: "Your password has been changed successfully."
39 | registrations:
40 | destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
41 | signed_up: "Welcome! You have signed up successfully."
42 | signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
43 | signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
44 | signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
45 | update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
46 | updated: "Your account has been updated successfully."
47 | sessions:
48 | signed_in: "Signed in successfully."
49 | signed_out: "Signed out successfully."
50 | already_signed_out: "Signed out successfully."
51 | unlocks:
52 | send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
53 | send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
54 | unlocked: "Your account has been unlocked successfully. Please sign in to continue."
55 | errors:
56 | messages:
57 | already_confirmed: "was already confirmed, please try signing in"
58 | confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
59 | expired: "has expired, please request a new one"
60 | not_found: "not found"
61 | not_locked: "was not locked"
62 | not_saved:
63 | one: "1 error prohibited this %{resource} from being saved:"
64 | other: "%{count} errors prohibited this %{resource} from being saved:"
65 |
--------------------------------------------------------------------------------
/config/locales/en.yml:
--------------------------------------------------------------------------------
1 | # Files in the config/locales directory are used for internationalization
2 | # and are automatically loaded by Rails. If you want to use locales other
3 | # than English, add the necessary files in this directory.
4 | #
5 | # To use the locales, use `I18n.t`:
6 | #
7 | # I18n.t 'hello'
8 | #
9 | # In views, this is aliased to just `t`:
10 | #
11 | # <%= t('hello') %>
12 | #
13 | # To use a different locale, set it with `I18n.locale`:
14 | #
15 | # I18n.locale = :es
16 | #
17 | # This would use the information in config/locales/es.yml.
18 | #
19 | # The following keys must be escaped otherwise they will not be retrieved by
20 | # the default I18n backend:
21 | #
22 | # true, false, on, off, yes, no
23 | #
24 | # Instead, surround them with single quotes.
25 | #
26 | # en:
27 | # 'true': 'foo'
28 | #
29 | # To learn more, please read the Rails Internationalization guide
30 | # available at http://guides.rubyonrails.org/i18n.html.
31 |
32 | en:
33 | hello: "Hello world"
34 |
--------------------------------------------------------------------------------
/config/puma.rb:
--------------------------------------------------------------------------------
1 | # Puma can serve each request in a thread from an internal thread pool.
2 | # The `threads` method setting takes two numbers: a minimum and maximum.
3 | # Any libraries that use thread pools should be configured to match
4 | # the maximum value specified for Puma. Default is set to 5 threads for minimum
5 | # and maximum; this matches the default thread size of Active Record.
6 | #
7 | threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8 | threads threads_count, threads_count
9 |
10 | # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
11 | #
12 | port ENV.fetch("PORT") { 3000 }
13 |
14 | # Specifies the `environment` that Puma will run in.
15 | #
16 | environment ENV.fetch("RAILS_ENV") { "development" }
17 |
18 | # Specifies the number of `workers` to boot in clustered mode.
19 | # Workers are forked webserver processes. If using threads and workers together
20 | # the concurrency of the application would be max `threads` * `workers`.
21 | # Workers do not work on JRuby or Windows (both of which do not support
22 | # processes).
23 | #
24 | # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25 |
26 | # Use the `preload_app!` method when specifying a `workers` number.
27 | # This directive tells Puma to first boot the application and load code
28 | # before forking the application. This takes advantage of Copy On Write
29 | # process behavior so workers use less memory.
30 | #
31 | # preload_app!
32 |
33 | # Allow puma to be restarted by `rails restart` command.
34 | plugin :tmp_restart
35 |
--------------------------------------------------------------------------------
/config/routes.rb:
--------------------------------------------------------------------------------
1 | Rails.application.routes.draw do
2 | devise_for :users
3 | root :to => "home#index"
4 |
5 | namespace :api do
6 | namespace :v1 do
7 | get '/dashboard', to: 'dashboards#index', as: 'dashboard'
8 | resources :favorites, path: "my_list", only: %i( index create )
9 | delete '/my_list/:type/:id', to: 'favorites#destroy'
10 | resources :reviews, only: [:index, :create]
11 | resources :searches, path: "search", only: :index
12 | resources :series, only: :show
13 | resources :movies, only: :show do
14 | member do
15 | get '/executions', to: 'executions#show'
16 | put '/executions', to: 'executions#update'
17 | end
18 | end
19 | resources :recommendations, only: :index
20 | end
21 | end
22 |
23 | match "*path", to: "home#index", via: :get
24 | end
--------------------------------------------------------------------------------
/config/spring.rb:
--------------------------------------------------------------------------------
1 | %w[
2 | .ruby-version
3 | .rbenv-vars
4 | tmp/restart.txt
5 | tmp/caching-dev.txt
6 | ].each { |path| Spring.watch(path) }
7 |
--------------------------------------------------------------------------------
/config/storage.yml:
--------------------------------------------------------------------------------
1 | test:
2 | service: Disk
3 | root: <%= Rails.root.join("tmp/storage") %>
4 |
5 | local:
6 | service: Disk
7 | root: <%= Rails.root.join("storage") %>
8 |
9 | # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10 | # amazon:
11 | # service: S3
12 | # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13 | # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14 | # region: us-east-1
15 | # bucket: your_own_bucket
16 |
17 | # Remember not to checkin your GCS keyfile to a repository
18 | # google:
19 | # service: GCS
20 | # project: your_project
21 | # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22 | # bucket: your_own_bucket
23 |
24 | # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25 | # microsoft:
26 | # service: AzureStorage
27 | # storage_account_name: your_account_name
28 | # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29 | # container: your_container_name
30 |
31 | # mirror:
32 | # service: Mirror
33 | # primary: local
34 | # mirrors: [ amazon, google, microsoft ]
35 |
--------------------------------------------------------------------------------
/config/webpack/development.js:
--------------------------------------------------------------------------------
1 | process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2 |
3 | const environment = require('./environment')
4 |
5 | module.exports = environment.toWebpackConfig()
6 |
--------------------------------------------------------------------------------
/config/webpack/environment.js:
--------------------------------------------------------------------------------
1 | const { environment } = require('@rails/webpacker')
2 | const vue = require('./loaders/vue')
3 |
4 | environment.loaders.append('vue', vue)
5 | module.exports = environment
6 |
--------------------------------------------------------------------------------
/config/webpack/loaders/vue.js:
--------------------------------------------------------------------------------
1 | const { dev_server: devServer } = require('@rails/webpacker').config
2 |
3 | const isProduction = process.env.NODE_ENV === 'production'
4 | const inDevServer = process.argv.find(v => v.includes('webpack-dev-server'))
5 | const extractCSS = !(inDevServer && (devServer && devServer.hmr)) || isProduction
6 |
7 | module.exports = {
8 | test: /\.vue(\.erb)?$/,
9 | use: [{
10 | loader: 'vue-loader',
11 | options: { extractCSS }
12 | }]
13 | }
14 |
--------------------------------------------------------------------------------
/config/webpack/production.js:
--------------------------------------------------------------------------------
1 | process.env.NODE_ENV = process.env.NODE_ENV || 'production'
2 |
3 | const environment = require('./environment')
4 |
5 | module.exports = environment.toWebpackConfig()
6 |
--------------------------------------------------------------------------------
/config/webpack/test.js:
--------------------------------------------------------------------------------
1 | process.env.NODE_ENV = process.env.NODE_ENV || 'development'
2 |
3 | const environment = require('./environment')
4 |
5 | module.exports = environment.toWebpackConfig()
6 |
--------------------------------------------------------------------------------
/config/webpacker.yml:
--------------------------------------------------------------------------------
1 | # Note: You must restart bin/webpack-dev-server for changes to take effect
2 |
3 | default: &default
4 | source_path: app/javascript
5 | source_entry_path: packs
6 | public_output_path: packs
7 | cache_path: tmp/cache/webpacker
8 |
9 | # Additional paths webpack should lookup modules
10 | # ['app/assets', 'engine/foo/app/assets']
11 | resolved_paths: []
12 |
13 | # Reload manifest.json on all requests so we reload latest compiled packs
14 | cache_manifest: false
15 |
16 | extensions:
17 | - .vue
18 | - .js
19 | - .sass
20 | - .scss
21 | - .css
22 | - .module.sass
23 | - .module.scss
24 | - .module.css
25 | - .png
26 | - .svg
27 | - .gif
28 | - .jpeg
29 | - .jpg
30 |
31 | development:
32 | <<: *default
33 | compile: true
34 |
35 | # Reference: https://webpack.js.org/configuration/dev-server/
36 | dev_server:
37 | https: false
38 | host: localhost
39 | port: 3035
40 | public: localhost:3035
41 | hmr: false
42 | # Inline should be set to true if using HMR
43 | inline: true
44 | overlay: true
45 | compress: true
46 | disable_host_check: true
47 | use_local_ip: false
48 | quiet: false
49 | headers:
50 | 'Access-Control-Allow-Origin': '*'
51 | watch_options:
52 | ignored: /node_modules/
53 |
54 |
55 | test:
56 | <<: *default
57 | compile: true
58 |
59 | # Compile test packs to a separate directory
60 | public_output_path: packs-test
61 |
62 | production:
63 | <<: *default
64 |
65 | # Production depends on precompilation of packs prior to booting for performance.
66 | compile: false
67 |
68 | # Cache manifest.json for performance
69 | cache_manifest: true
70 |
--------------------------------------------------------------------------------
/db/migrate/20180519060421_devise_create_users.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | class DeviseCreateUsers < ActiveRecord::Migration[5.2]
4 | def change
5 | create_table :users do |t|
6 | t.string :name
7 | ## Database authenticatable
8 | t.string :email, null: false, default: ""
9 | t.string :encrypted_password, null: false, default: ""
10 |
11 | ## Recoverable
12 | t.string :reset_password_token
13 | t.datetime :reset_password_sent_at
14 |
15 | ## Rememberable
16 | t.datetime :remember_created_at
17 |
18 | ## Trackable
19 | t.integer :sign_in_count, default: 0, null: false
20 | t.datetime :current_sign_in_at
21 | t.datetime :last_sign_in_at
22 | t.inet :current_sign_in_ip
23 | t.inet :last_sign_in_ip
24 |
25 | ## Confirmable
26 | # t.string :confirmation_token
27 | # t.datetime :confirmed_at
28 | # t.datetime :confirmation_sent_at
29 | # t.string :unconfirmed_email # Only if using reconfirmable
30 |
31 | ## Lockable
32 | # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
33 | # t.string :unlock_token # Only if unlock strategy is :email or :both
34 | # t.datetime :locked_at
35 |
36 |
37 | t.timestamps null: false
38 | end
39 |
40 | add_index :users, :email, unique: true
41 | add_index :users, :reset_password_token, unique: true
42 | # add_index :users, :confirmation_token, unique: true
43 | # add_index :users, :unlock_token, unique: true
44 | end
45 | end
46 |
--------------------------------------------------------------------------------
/db/migrate/20180519172436_create_pg_search_documents.rb:
--------------------------------------------------------------------------------
1 | class CreatePgSearchDocuments < ActiveRecord::Migration[5.2]
2 |
3 | def self.up
4 | say_with_time("Creating table for pg_search multisearch") do
5 | create_table :pg_search_documents do |t|
6 | t.text :content
7 | t.belongs_to :searchable, :polymorphic => true, :index => true
8 | t.timestamps null: false
9 | end
10 | end
11 |
12 | say_with_time("Adding PG Extensions") do
13 | execute "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
14 | execute "CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;"
15 | end
16 | end
17 |
18 | def self.down
19 | say_with_time("Dropping table for pg_search multisearch") do
20 | drop_table :pg_search_documents
21 | end
22 |
23 | say_with_time("Dropping PG Extensions") do
24 | execute "DROP EXTENSION IF EXISTS pg_trgm;"
25 | execute "DROP EXTENSION IF EXISTS fuzzystrmatch;"
26 | end
27 | end
28 | end
--------------------------------------------------------------------------------
/db/migrate/20180519173753_create_categories.rb:
--------------------------------------------------------------------------------
1 | class CreateCategories < ActiveRecord::Migration[5.2]
2 | def change
3 | create_table :categories do |t|
4 | t.string :name
5 |
6 | t.timestamps
7 | end
8 | end
9 | end
10 |
--------------------------------------------------------------------------------
/db/migrate/20180519173754_create_reviews.rb:
--------------------------------------------------------------------------------
1 | class CreateReviews < ActiveRecord::Migration[5.2]
2 | def change
3 | create_table :reviews do |t|
4 | t.integer :rating
5 | t.text :description
6 | t.references :reviewable, polymorphic: true
7 | t.references :user, foreign_key: true
8 |
9 | t.timestamps
10 | end
11 | end
12 | end
13 |
--------------------------------------------------------------------------------
/db/migrate/20180519173755_create_favorites.rb:
--------------------------------------------------------------------------------
1 | class CreateFavorites < ActiveRecord::Migration[5.2]
2 | def change
3 | create_table :favorites do |t|
4 | t.references :favoritable, polymorphic: true
5 | t.references :user, foreign_key: true
6 |
7 | t.timestamps
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/db/migrate/20180519173756_create_series.rb:
--------------------------------------------------------------------------------
1 | class CreateSeries < ActiveRecord::Migration[5.2]
2 | def change
3 | create_table :series do |t|
4 | t.boolean :highlighted, default: false
5 | t.string :title
6 | t.text :description
7 | t.string :thumbnail_key
8 | t.references :category, foreign_key: true
9 | t.string :featured_thumbnail_key
10 | t.string :thumbnail_cover_key
11 |
12 | t.timestamps
13 | end
14 | end
15 | end
16 |
--------------------------------------------------------------------------------
/db/migrate/20180519173757_create_movies.rb:
--------------------------------------------------------------------------------
1 | class CreateMovies < ActiveRecord::Migration[5.2]
2 | def change
3 | create_table :movies do |t|
4 | t.boolean :highlighted, default: false
5 | t.string :title
6 | t.text :description
7 | t.string :thumbnail_key
8 | t.string :video_key
9 | t.integer :episode_number
10 | t.string :featured_thumbnail_key
11 | t.references :serie, optional: true, foreign_key: true
12 | t.references :category, foreign_key: true
13 | t.string :thumbnail_cover_key
14 |
15 | t.timestamps
16 | end
17 | end
18 | end
19 |
--------------------------------------------------------------------------------
/db/migrate/20180519173758_create_players.rb:
--------------------------------------------------------------------------------
1 | class CreatePlayers < ActiveRecord::Migration[5.2]
2 | def change
3 | create_table :players do |t|
4 | t.datetime :start_date
5 | t.datetime :end_date
6 | t.time :elapsed_time
7 | t.references :movie, foreign_key: true
8 | t.references :user, foreign_key: true
9 |
10 | t.timestamps
11 | end
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/db/migrate/20180519173759_add_last_watched_episode_to_series.rb:
--------------------------------------------------------------------------------
1 | class AddLastWatchedEpisodeToSeries < ActiveRecord::Migration[5.2]
2 | def change
3 | add_reference :series, :last_watched_episode, foreign_key: { to_table: :movies }
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180525024551_remove_elapsed_time_from_player.rb:
--------------------------------------------------------------------------------
1 | class RemoveElapsedTimeFromPlayer < ActiveRecord::Migration[5.2]
2 | def change
3 | remove_column :players, :elapsed_time, :string
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/migrate/20180525024605_add_elapsed_time_to_player.rb:
--------------------------------------------------------------------------------
1 | class AddElapsedTimeToPlayer < ActiveRecord::Migration[5.2]
2 | def change
3 | add_column :players, :elapsed_time, :decimal
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/db/schema.rb:
--------------------------------------------------------------------------------
1 | # This file is auto-generated from the current state of the database. Instead
2 | # of editing this file, please use the migrations feature of Active Record to
3 | # incrementally modify your database, and then regenerate this schema definition.
4 | #
5 | # Note that this schema.rb definition is the authoritative source for your
6 | # database schema. If you need to create the application database on another
7 | # system, you should be using db:schema:load, not running all the migrations
8 | # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9 | # you'll amass, the slower it'll run and the greater likelihood for issues).
10 | #
11 | # It's strongly recommended that you check this file into your version control system.
12 |
13 | ActiveRecord::Schema.define(version: 2018_05_25_024605) do
14 |
15 | # These are extensions that must be enabled in order to support this database
16 | enable_extension "fuzzystrmatch"
17 | enable_extension "pg_trgm"
18 | enable_extension "plpgsql"
19 |
20 | create_table "categories", force: :cascade do |t|
21 | t.string "name"
22 | t.datetime "created_at", null: false
23 | t.datetime "updated_at", null: false
24 | end
25 |
26 | create_table "favorites", force: :cascade do |t|
27 | t.string "favoritable_type"
28 | t.bigint "favoritable_id"
29 | t.bigint "user_id"
30 | t.datetime "created_at", null: false
31 | t.datetime "updated_at", null: false
32 | t.index ["favoritable_type", "favoritable_id"], name: "index_favorites_on_favoritable_type_and_favoritable_id"
33 | t.index ["user_id"], name: "index_favorites_on_user_id"
34 | end
35 |
36 | create_table "movies", force: :cascade do |t|
37 | t.boolean "highlighted", default: false
38 | t.string "title"
39 | t.text "description"
40 | t.string "thumbnail_key"
41 | t.string "video_key"
42 | t.integer "episode_number"
43 | t.string "featured_thumbnail_key"
44 | t.bigint "serie_id"
45 | t.bigint "category_id"
46 | t.string "thumbnail_cover_key"
47 | t.datetime "created_at", null: false
48 | t.datetime "updated_at", null: false
49 | t.index ["category_id"], name: "index_movies_on_category_id"
50 | t.index ["serie_id"], name: "index_movies_on_serie_id"
51 | end
52 |
53 | create_table "pg_search_documents", force: :cascade do |t|
54 | t.text "content"
55 | t.string "searchable_type"
56 | t.bigint "searchable_id"
57 | t.datetime "created_at", null: false
58 | t.datetime "updated_at", null: false
59 | t.index ["searchable_type", "searchable_id"], name: "index_pg_search_documents_on_searchable_type_and_searchable_id"
60 | end
61 |
62 | create_table "players", force: :cascade do |t|
63 | t.datetime "start_date"
64 | t.datetime "end_date"
65 | t.bigint "movie_id"
66 | t.bigint "user_id"
67 | t.datetime "created_at", null: false
68 | t.datetime "updated_at", null: false
69 | t.decimal "elapsed_time"
70 | t.index ["movie_id"], name: "index_players_on_movie_id"
71 | t.index ["user_id"], name: "index_players_on_user_id"
72 | end
73 |
74 | create_table "reviews", force: :cascade do |t|
75 | t.integer "rating"
76 | t.text "description"
77 | t.string "reviewable_type"
78 | t.bigint "reviewable_id"
79 | t.bigint "user_id"
80 | t.datetime "created_at", null: false
81 | t.datetime "updated_at", null: false
82 | t.index ["reviewable_type", "reviewable_id"], name: "index_reviews_on_reviewable_type_and_reviewable_id"
83 | t.index ["user_id"], name: "index_reviews_on_user_id"
84 | end
85 |
86 | create_table "series", force: :cascade do |t|
87 | t.boolean "highlighted", default: false
88 | t.string "title"
89 | t.text "description"
90 | t.string "thumbnail_key"
91 | t.bigint "category_id"
92 | t.string "featured_thumbnail_key"
93 | t.string "thumbnail_cover_key"
94 | t.datetime "created_at", null: false
95 | t.datetime "updated_at", null: false
96 | t.bigint "last_watched_episode_id"
97 | t.index ["category_id"], name: "index_series_on_category_id"
98 | t.index ["last_watched_episode_id"], name: "index_series_on_last_watched_episode_id"
99 | end
100 |
101 | create_table "users", force: :cascade do |t|
102 | t.string "name"
103 | t.string "email", default: "", null: false
104 | t.string "encrypted_password", default: "", null: false
105 | t.string "reset_password_token"
106 | t.datetime "reset_password_sent_at"
107 | t.datetime "remember_created_at"
108 | t.integer "sign_in_count", default: 0, null: false
109 | t.datetime "current_sign_in_at"
110 | t.datetime "last_sign_in_at"
111 | t.inet "current_sign_in_ip"
112 | t.inet "last_sign_in_ip"
113 | t.datetime "created_at", null: false
114 | t.datetime "updated_at", null: false
115 | t.index ["email"], name: "index_users_on_email", unique: true
116 | t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
117 | end
118 |
119 | add_foreign_key "favorites", "users"
120 | add_foreign_key "movies", "categories"
121 | add_foreign_key "movies", "series", column: "serie_id"
122 | add_foreign_key "players", "movies"
123 | add_foreign_key "players", "users"
124 | add_foreign_key "reviews", "users"
125 | add_foreign_key "series", "categories"
126 | add_foreign_key "series", "movies", column: "last_watched_episode_id"
127 | end
128 |
--------------------------------------------------------------------------------
/db/seeds.rb:
--------------------------------------------------------------------------------
1 | ## Customize de acordo com os videos e thumbnails de exemplo que você subir para o seu servidor
2 |
3 | # Categories
4 | ror = Category.create(name: 'Ruby On Rails')
5 | talks = Category.create(name: 'Talks')
6 | testes = Category.create(name: 'Testes')
7 | outros = Category.create(name: 'Outros')
8 |
9 | # Featured Movie
10 | movie1 = Movie.create(title: "Ruby On Rails Api do zero ao Deploy", description: "Aprenda a criar uma API completa com Ruby On Rails...", thumbnail_key: "rails-api1.png", thumbnail_cover_key: "rails-api-cover.png", video_key: "rails-api1.mp4", highlighted: true, category: ror, featured_thumbnail_key: "rails-api-featured.png")
11 |
12 | # Users
13 | user1 = User.create(name: 'example', email: 'example@example.com', password: '123456', password_confirmation: '123456')
14 | user2 = User.create(name: 'example2', email: 'example2@example.com', password: '123456', password_confirmation: '123456')
15 | user3 = User.create(name: 'example3', email: 'example3@example.com', password: '123456', password_confirmation: '123456')
16 | user4 = User.create(name: 'example4', email: 'example4@example.com', password: '123456', password_confirmation: '123456')
17 | user5 = User.create(name: 'example5', email: 'example5@example.com', password: '123456', password_confirmation: '123456')
18 |
19 | # Movies sem série
20 | movie2 = Movie.create(title: "Crie generators no Ruby On Rails", description: "Generators são uma maneira de você automatizar a criação de conjuntos de arquivos no seu APP (assim como o rails new, o rails generate controller, o rails generate scaffold e etc), e nesse Screencast nós vamos aprender como cria-los..", thumbnail_key: "generators.png", thumbnail_cover_key: "generators-cover.png", video_key: "generators.mp4", category: ror)
21 | movie3 = Movie.create(title: "Dominando o uso de Jobs no RoR - Parte 1", description: "s Jobs são uma maneira fácil de você rodar processos demorados em background (evitando lentidão na hora de responder as requisições do usuário e tornando seu sistema mais fluido).", thumbnail_key: "jobs1.png", thumbnail_cover_key: "jobs1-cover.png", video_key: "jobs1.mp4", category: ror)
22 | movie4 = Movie.create(title: "Dominando o uso de Jobs no RoR - Parte 2", description: "s Jobs são uma maneira fácil de você rodar processos demorados em background (evitando lentidão na hora de responder as requisições do usuário e tornando seu sistema mais fluido).", thumbnail_key: "jobs2.png", thumbnail_cover_key: "jobs2-cover.png", video_key: "jobs2.mp4", category: ror)
23 | movie5 = Movie.create(title: "Instalando pacotes no Rails com Yarn", description: "O Yarn é um gerenciador de pacotes javascript rápido, seguro e confiável que foi integrado no rails >= 5.1 para facilitar ainda mais a gestão das dependências. (agora você usa o Bundler para bibliotecas ruby e o Yarn para bibliotecas javascript, simples assim)", thumbnail_key: "materialize.png", thumbnail_cover_key: "materialize-cover.png", video_key: "materialize.mp4", category: ror)
24 |
25 | movie5 = Movie.create(title: "Como monitorar seu APP em produção", description: "Hoje vamos falar de um tema muito interessante quando precisamos lidar com a verificação da saúde do nosso ambiente de produção: a instrumentação.", thumbnail_key: "obt18.png", thumbnail_cover_key: "obt18-cover.png", video_key: "obt18.mp4", category: outros)
26 | movie6 = Movie.create(title: "Desmistificando a Criação de APIs", description: "Desmistificando a Criação de APIs Desmistificando a Criação de APIs Desmistificando a Criação de APIs Desmistificando a Criação de APIs", thumbnail_key: "obt17.png", thumbnail_cover_key: "obt17-cover.png", video_key: "obt17.mp4", category: outros)
27 | movie7 = Movie.create(title: "Dominando o Visual Studio Code - Parte 1", description: "O Visual Studio Code é um editor de texto Open Source completo que possui integração nativa com o Git, milhares de extensões, é rápido e permite que você realize o debug facilmente do seu código.", thumbnail_key: "vscode1.png", thumbnail_cover_key: "vscode1-cover.png", video_key: "vscode1.mp4", category: outros)
28 | movie8 = Movie.create(title: "Dominando o Visual Studio Code - Parte 1", description: "O Visual Studio Code é um editor de texto Open Source completo que possui integração nativa com o Git, milhares de extensões, é rápido e permite que você realize o debug facilmente do seu código.", thumbnail_key: "vscode2.png", thumbnail_cover_key: "vscode2-cover.png", video_key: "vscode2.mp4", category: outros)
29 | movie9 = Movie.create(title: "Dominando o Visual Studio Code - Parte 1", description: "O Visual Studio Code é um editor de texto Open Source completo que possui integração nativa com o Git, milhares de extensões, é rápido e permite que você realize o debug facilmente do seu código.", thumbnail_key: "vscode3.png", thumbnail_cover_key: "vscode3-cover.png", video_key: "vscode3.mp4", category: outros)
30 |
31 |
32 | # Series
33 | vscode = Serie.create(title: 'Visual Studio Code', description: 'Uma série completa para você dominar um dos mais importantes editores de texto', thumbnail_key: "vscode1.png", thumbnail_cover_key: "vscode-serie-cover.png", category: outros)
34 | movie10 = Movie.create(title: "Dominando o Visual Studio Code - Parte 1", description: "O Visual Studio Code é um editor de texto Open Source completo que possui integração nativa com o Git, milhares de extensões, é rápido e permite que você realize o debug facilmente do seu código.", thumbnail_key: "vscode1.png", thumbnail_cover_key: "vscode1-cover.png", video_key: "vscode1.mp4", serie: vscode, episode_number: 1)
35 | movie11 = Movie.create(title: "Dominando o Visual Studio Code - Parte 2", description: "O Visual Studio Code é um editor de texto Open Source completo que possui integração nativa com o Git, milhares de extensões, é rápido e permite que você realize o debug facilmente do seu código.", thumbnail_key: "vscode2.png", thumbnail_cover_key: "vscode2-cover.png", video_key: "vscode2.mp4", serie: vscode, episode_number: 2)
36 | movie12 = Movie.create(title: "Dominando o Visual Studio Code - Parte 3", description: "O Visual Studio Code é um editor de texto Open Source completo que possui integração nativa com o Git, milhares de extensões, é rápido e permite que você realize o debug facilmente do seu código.", thumbnail_key: "vscode3.png", thumbnail_cover_key: "vscode3-cover.png", video_key: "vscode3.mp4", serie: vscode, episode_number: 3)
37 |
38 | # Keep Wathching
39 | Player.create(start_date: Time.now, user: user1, elapsed_time: 10, movie: movie1)
40 | Player.create(start_date: Time.now, user: user1, elapsed_time: 20, movie: movie2)
41 | Player.create(start_date: Time.now, user: user1, elapsed_time: 30, movie: movie3)
42 | Player.create(start_date: Time.now, user: user1, elapsed_time: 40, movie: movie4)
43 | Player.create(start_date: Time.now, user: user1, elapsed_time: 50, movie: movie5)
44 |
45 | # Reviews
46 | Review.create(rating: 3, description: 'I have always depended on the kindness of strangers.', reviewable: movie2, user: user1)
47 | Review.create(rating: 2, description: 'Help me, Obi-Wan Kenobi. Youre my only hope. ', reviewable:movie2, user: user2)
48 | Review.create(rating: 5, description: 'Every time a bell rings, an angel gets his wings. ', reviewable:movie2, user: user3)
49 | Review.create(rating: 3, description: 'Magic Mirror on the wall, who is the fairest one of all?', reviewable: movie2, user: user4)
50 | Review.create(rating: 5, description: 'Just when I thought I was out, they pull me back in.', reviewable: movie2, user: user5)
51 |
52 |
53 | # Favorites
54 | Favorite.create(favoritable: Movie.all[0], user: user1)
55 | Favorite.create(favoritable: Movie.all[1], user: user1)
56 | Favorite.create(favoritable: Movie.all[2], user: user1)
57 | Favorite.create(favoritable: Movie.all[3], user: user1)
58 | Favorite.create(favoritable: Movie.all[4], user: user1)
--------------------------------------------------------------------------------
/lib/assets/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneBitCodeBlog/onebitflix/e6dac387b21ebfe4341c2e0735af88c2f17a50e6/lib/assets/.keep
--------------------------------------------------------------------------------
/lib/tasks/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneBitCodeBlog/onebitflix/e6dac387b21ebfe4341c2e0735af88c2f17a50e6/lib/tasks/.keep
--------------------------------------------------------------------------------
/log/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OneBitCodeBlog/onebitflix/e6dac387b21ebfe4341c2e0735af88c2f17a50e6/log/.keep
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "onebitflix",
3 | "private": true,
4 | "dependencies": {
5 | "@rails/webpacker": "3.5",
6 | "axios": "^0.18.0",
7 | "jquery": "^3.3.1",
8 | "material-design-icons-iconfont": "^3.0.3",
9 | "vue": "^2.5.16",
10 | "vue-dplayer": "^0.0.9",
11 | "vue-loader": "14.2.2",
12 | "vue-rate-it": "^2.1.0",
13 | "vue-router": "^3.0.1",
14 | "vue-slick": "^1.1.12",
15 | "vue-template-compiler": "^2.5.16",
16 | "vuetify": "^1.0.18",
17 | "vuex": "^3.0.1"
18 | },
19 | "devDependencies": {
20 | "webpack-dev-server": "2.11.2"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/public/404.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | The page you were looking for doesn't exist (404)
5 |
6 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
The page you were looking for doesn't exist.
62 |
You may have mistyped the address or the page may have moved.
63 |
64 |
If you are the application owner check the logs for more information.