Skip to content

Instantly share code, notes, and snippets.

Jordano Moscoso Xosmond

Block or report user

Report or block Xosmond

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Xosmond
Xosmond / Procfile
Last active Dec 18, 2018
vuerails procfile
View Procfile
web: rails s
webpack: bin/webpack-dev-server
@Xosmond
Xosmond / application.css
Last active Dec 18, 2018
vuerails tailwind basic css
View application.css
/* app/javascript/css/application.css */
@tailwind preflight; /* Basic Normalize */
@tailwind utilities; /* Tailwindcss utilities */
@Xosmond
Xosmond / home_controller.rb
Last active Dec 18, 2018
vuerails home_controller
View home_controller.rb
class HomeController < ApplicationController
before_action :authenticate_user!
def index
end
end
@Xosmond
Xosmond / routes.rb
Last active Dec 18, 2018
vuerails routes
View routes.rb
Rails.application.routes.draw do
root to: 'home#index'
end
@Xosmond
Xosmond / application.js
Last active Dec 18, 2018
vuerails simple
View application.js
/* app/javascript/packs/application.js */
/* eslint no-console:0 */
import "../css/application.css";
@Xosmond
Xosmond / application.scss
Last active Dec 16, 2018
vuerails application.scss
View application.scss
@charset "utf-8";
// Material design input
.material-input {
label {
color: #3490dc;
left:5px;
top:10px;
transition:0.2s ease all;
}
@Xosmond
Xosmond / application.html.erb
Created Dec 13, 2018
vuerails application layout before vue only webpack
View application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Vuerails</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
<!-- Webpack assets -->
@Xosmond
Xosmond / application.js
Last active Dec 13, 2018
vuerails vue-turbolinks
View application.js
/* eslint no-console:0 */
import "../css/application.css";
import Vue from 'vue/dist/vue.esm';
import TurbolinksAdapter from 'vue-turbolinks';
import Vuelidate from 'vuelidate';
Vue.use(TurbolinksAdapter);
Vue.use(Vuelidate);
document.addEventListener('turbolinks:load', () => {
@Xosmond
Xosmond / application.html.erb
Created Dec 13, 2018
vuerails application erb
View application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Vuerails</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
<%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
@Xosmond
Xosmond / application.js
Created Dec 13, 2018
vuerails vue-turbolinks-vuelidate
View application.js
/* eslint no-console:0 */
import "../css/application.css";
import TurbolinksAdapter from 'vue-turbolinks';
import Vuelidate from 'vuelidate';
import Vue from 'vue/dist/vue.esm';
Vue.use(Vuelidate)
Vue.use(TurbolinksAdapter)
document.addEventListener('turbolinks:load', () => {
You can’t perform that action at this time.