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
| av = ActionView::Base.new(Rails.root.join('app', 'views')) | |
| av.assign({:movement => movement}) | |
| pdf_html = av.render(:template => "account/movements/pdf/payment_order.pdf.erb", :encoding => "UTF-8") | |
| doc_pdf = WickedPdf.new.pdf_from_string(pdf_html) |
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
| import React from 'react'; | |
| import { render } from 'react-dom'; | |
| import { Router, Route, createMemoryHistory } from 'react-router'; | |
| import App from './App'; | |
| import SamsungComponent from './Samsung'; | |
| import ReactComponent from './React'; | |
| let childRoutes = []; | |
| childRoutes.push({ path: 'samsung', component: SamsungComponent }); | |
| childRoutes.push({ path: 'react', component: ReactComponent }); |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Samsung TV + React + React Router Tutorial</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| </head> | |
| <body> | |
| <div id="root"></div> | |
| </body> |
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
| import React from 'react' | |
| export default React.createClass({ | |
| render() { | |
| return ( | |
| <div> | |
| About React | |
| <br/>React is a JavaScript library for building user interfaces | |
| </div> | |
| ) |
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
| import React from 'react' | |
| export default React.createClass({ | |
| render() { | |
| return ( | |
| <div> | |
| About Samsung | |
| <br/>Samsung Group is a South Korean multinational conglomerate headquartered in Samsung Town, Seoul | |
| </div> | |
| ) |
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
| import React from 'react'; | |
| import { Link } from 'react-router'; | |
| export default React.createClass({ | |
| render() { | |
| return ( | |
| <div> | |
| <h1>Samsung TV + React + React Router Tutorial</h1> | |
| <ul role="nav"> | |
| <li><Link to="/samsung">About Samsung</Link></li> |
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
Show hidden characters
| { | |
| "env": { | |
| "production": { | |
| "presets": [ | |
| "react", | |
| "es2015" | |
| ], | |
| "plugins": ["transform-class-properties"] | |
| } | |
| } |
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
| import React, { Component } from 'react'; | |
| import Header from './Header'; | |
| class Index extends Component { | |
| render() { | |
| return ( | |
| <Header /> | |
| ); | |
| } | |
| } |
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
| export { default } from './Header'; |
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
| module.exports = { | |
| entry: [ | |
| 'src/index.js' | |
| ], | |
| ..., | |
| resolve: { | |
| extensions: ['.js', '.json', '.jsx', '.tv.js', ''] | |
| } | |
| }; |
OlderNewer