#server_simple
#!/bin/sh
# Start the development server.
cd $(dirname "$0")/..
: ${RAILS_ENV:=development}
script/bootstrap && bundle exec rails s -p 3000 -b 0.0.0.0
| https://github.com/styled-components/styled-components/blob/master/README.md |
| import axios from 'axios'; | |
| const ROOT_URL = 'XXX'; | |
| const API_KEY = 'XXX'; | |
| export const FETCH_POSTS = generateActions('FETCH_POSTS'); | |
| export const CREATE_POST = generateActions('CREATE_POST'); | |
| export const FETCH_POST = generateActions('FETCH_POST'); | |
| export const DELETE_POST = generateActions('DELETE_POST'); |
#server_simple
#!/bin/sh
# Start the development server.
cd $(dirname "$0")/..
: ${RAILS_ENV:=development}
script/bootstrap && bundle exec rails s -p 3000 -b 0.0.0.0
| def remove_phone(acc) | |
| Account.find(acc).landing_pages_manager.landing_pages.each do |lp| | |
| if lp.custom_js_body.present? | |
| lp.custom_js_body << %Q(<script type="text/javascript"> if ($('input[class*="phone"]').length) { $('input[class*="phone"]').removeClass("phone")}</script>) | |
| end | |
| ActiveRecord::Base.record_timestamps = false | |
| lp.save | |
| if lp.published == 'yes' |
| <style> | |
| .blog_description { | |
| margin-left: 0 !important; | |
| } | |
| ul.categories_list li { | |
| width: 25%; | |
| float: left; | |
| } | |
| </style> |
| [ | |
| {"r":"c2a7e064-bb29-4ffa-a06b-337c4be3f882","s":3145833811560,"t":1445271762728,"g":[[1052]],"m":"953 <190>1 2015-10-19T16:22:42.653426+00:00 d.750177c1-9768-4eb8-b689-d6673b2bb5ad app web.1 - - Possible bot tried conversion [create] - {\"token_rdstation\"=>\"6469e122e60ae20cdb12914409696c46\", \"identificador\"=>\"ebook-soap\", \"redirect_to\"=>\"http:\/\/info.endeavor.org.br\/obrigado-ebook-soap\", \"c_utmz\"=>\"108172378.1445256244.1.1.utmcsr=RD%20Station|utmccn=nova_news__19102015_-_empreendedores|utmcmd=email\", \"traffic_source\"=>\"\", \"emP7yF13ld\"=>\"[email protected]\", \"sh0uldN07ch4ng3\"=>\"should_not_change\", \"name\"=>\"Rafael Aquino Santiago\", \"email\"=>\"[email protected]\", \"custom_fields\"=>{\"11459\"=>\"Sim\", \"30643\"=>\"Acima de 40%\", \"22676\"=>\"De R$ 360 mil a R$ 3,6 mi\", \"13084\"=>\"Sim\", \"22142\"=>\"Não\"}, \"captcha\"=>\"17\", \"referrer\"=>\"\", \"query_params\"=>\"utm_campaign=nova_news__19102015_-_empreendedores&utm_medium=email&utm_source=RD+Station\", \"clien |
| class LeadDecorator < Draper::Decorator | |
| include Draper::LazyHelpers | |
| include Lead::SearchHelper | |
| delegate_all | |
| def personal_phone | |
| lead_field model.lead_info.personal_phone, label: :personal_phone | |
| end |
| module DashboardHelper | |
| TIME_WINDOW = 5.years.ago | |
| def number_box(type) | |
| if type == 'prs' | |
| box(pr_values[:closed], prs_percentage, type) | |
| elsif type == 'issues' | |
| box(issues_values[:open], issues_percentage, type) | |
| end |