$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.jsdiff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644| # frozen_string_literal: true | |
| # config/initializers/colorized_logger.rb | |
| # This initializer adds color to the Rails logger output. It's a nice way to | |
| # visually distinguish log levels. | |
| module ColorizedLogger | |
| COLOR_CODES = { | |
| debug: "\e[36m", # Cyan | |
| info: "\e[32m", # Green | |
| warn: "\e[33m", # Yellow |
| [ | |
| { | |
| "context": "Editor", | |
| "bindings": { | |
| "alt-up": "editor::SelectLargerSyntaxNode", | |
| "alt-down": "editor::SelectSmallerSyntaxNode", | |
| "ctrl-cmd-up": "editor::MoveLineUp", | |
| "ctrl-cmd-down": "editor::MoveLineDown" | |
| } | |
| } |
| const hoverTime = 400 | |
| const fetchers = {} | |
| const doc = document.implementation.createHTMLDocument('prefetch') | |
| function fetchPage (url, success) { | |
| const xhr = new XMLHttpRequest() | |
| xhr.open('GET', url) | |
| xhr.setRequestHeader('VND.PREFETCH', 'true') | |
| xhr.setRequestHeader('Accept', 'text/html') | |
| xhr.onreadystatechange = () => { |
| json.extract! document, :id, :documentable_type, :documentable_id, :created_at | |
| json.url rails_blob_url(document.doc) |
| <template> | |
| <div> | |
| <canvas ref="canvas"></canvas> | |
| <div class="clearfix"></div> | |
| <div class="btn-group"> | |
| <button @click="clear" type="button" class="btn btn-default"> | |
| <i class="fa fa-times"></i> | |
| Clear Signature |
$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.jsdiff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644| # Traducciones adicionales en https://github.com/plataformatec/devise/wiki/I18n | |
| es: | |
| devise: | |
| confirmations: | |
| confirmed: "Tu correo electrónico ha sido confirmado exitosamente." | |
| send_instructions: "Recibirás un email con las instrucciones para confirmar tu correo electrónico en unos minutos." | |
| send_paranoid_instructions: "Si tu correo electrónico existe en nuestra base de datos, recibirás un email con las instrucciones para confirmar tu correo electrónico en unos minutos." | |
| failure: | |
| already_authenticated: "Ya iniciaste sesión." |
| <input type="text" | |
| name="home_phone" | |
| class="form-control" | |
| v-model="homePhone | phone" | |
| lazy> |
| require "rubygems" | |
| require 'sinatra' | |
| require "aws/s3" | |
| get '/' do | |
| return %Q{ | |
| <form action="upload" method="post" accept-charset="utf-8" enctype="multipart/form-data"> | |
| <div> | |
| <input type="file" name="file" value="" id="file"> | |
| </div> |