This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="text-center"> | |
<v-snackbar | |
v-model="notification.show" | |
:timeout="notification.timeout" | |
:color="notification.type" | |
> | |
{{ notification.message }} | |
<template v-slot:action="{ attrs }"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-container id="signinup-form" class="fill-height"> | |
<Notification | |
:message="snackbarMessage" | |
:snackbar="snackbar" | |
:type="snackbarType" | |
/> | |
<v-row align="center" justify="center" no-gutters> | |
<v-col cols="12" sm="8" md="8" class=""> | |
<v-card class="evelation-12 card"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.keepInSync = function($targets) { | |
// join together all the elements you want to keep in sync | |
var $els = $targets.add(this); | |
$els.on("keyup change", function() { | |
var $this = $(this); | |
// exclude the current element since it already has the value | |
$els.not($this).val($this.val()); | |
}); | |
return this; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
protect_from_forgery with: :exception | |
before_action :require_signin | |
private | |
def require_signin | |
unless current_user | |
redirect_to new_session_url, alert: 'Please sign in first!' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle exec rubocop | |
Inspecting 77 files | |
..............................W........C..............................W...... | |
Offenses: | |
bin/spring:11:13: W: Assignment in condition - you probably meant to use ==. | |
if spring = lockfile.specs.find {|spec| spec.name == 'spring' } | |
^ | |
test/test_helper.rb:5:7: C: Use nested module/class definitions instead of compact style. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config valid only for current version of Capistrano | |
lock '3.6.1' | |
set :application, 'alphait' | |
set :repo_url, "git@host/repository.git" | |
# Default branch is :master | |
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp | |
# Default deploy_to directory is /var/www/my_app_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
protect_from_forgery with: :exception | |
force_ssl if: :ssl_configured? | |
before_action :set_locale | |
def set_locale | |
I18n.locale = params[:locale] || I18n.default_locale | |
end | |
def default_url_options |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ContactMailer < ApplicationMailer | |
# Subject can be set in your I18n file at config/locales/en.yml | |
# with the following lookup: | |
# | |
# en.contact_mailer.message.subject | |
# | |
def message(message) | |
@message = message | |
NewerOlder