diff --git a/app/javascript/store/index.js b/app/javascript/store/index.js index 5dfdbd4..5dfebc8 100644 --- a/app/javascript/store/index.js +++ b/app/javascript/store/index.js @@ -1,3 +1,20 @@ +import Vue from 'vue' +import Vuex from 'vuex' +Vue.use(Vuex); -export default {}; \ No newline at end of file +export default new Vuex.Store({ + strict: process.env.NODE_ENV !== 'production', + state: { + + }, + getters: { + + }, + mutations: { + + }, + actions: { + + } +}); \ No newline at end of file diff --git a/config/application.rb b/config/application.rb index 271484c..9b6f7d0 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,6 +1,17 @@ require_relative 'boot' -require 'rails/all' +require "rails" +# 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_view/railtie" +# require "action_cable/engine" +# require "sprockets/railtie" +require "rails/test_unit/railtie" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. @@ -11,6 +22,7 @@ module Parsley # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. + config.load_defaults 5.2 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. diff --git a/config/environments/development.rb b/config/environments/development.rb index a37ef99..57cdba7 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -39,13 +39,13 @@ Rails.application.configure do # Raise an error on page load if there are pending migrations. config.active_record.migration_error = :page_load - # 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 + # # 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 # config.action_view.raise_on_missing_translations = true diff --git a/config/environments/docker.rb b/config/environments/docker.rb index 2f71bf1..949d5a3 100644 --- a/config/environments/docker.rb +++ b/config/environments/docker.rb @@ -37,13 +37,13 @@ Rails.application.configure do # Raise an error on page load if there are pending migrations. config.active_record.migration_error = :page_load - # 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 + # # 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 # config.action_view.raise_on_missing_translations = true diff --git a/config/environments/production.rb b/config/environments/production.rb index dcf24bb..4f675ed 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -20,12 +20,12 @@ Rails.application.configure do # Apache or NGINX already handles this. config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? - # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier - # config.assets.css_compressor = :sass - - # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false + # # Compress JavaScripts and CSS. + # config.assets.js_compressor = :uglifier + # # config.assets.css_compressor = :sass + # + # # Do not fallback to assets pipeline if a precompiled asset is missed. + # config.assets.compile = false # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index f826c11..ba00f96 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -1,13 +1,13 @@ # 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 - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) - -Rails.application.config.assets.precompile << Proc.new { |filename, path| %w(.eot .svg .tff .woff .woff2).include?(File.extname(filename)) } \ No newline at end of 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 +# +# # Precompile additional assets. +# # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. +# # Rails.application.config.assets.precompile += %w( search.js ) +# +# Rails.application.config.assets.precompile << Proc.new { |filename, path| %w(.eot .svg .tff .woff .woff2).include?(File.extname(filename)) } \ No newline at end of file