-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 41049df
Showing
10 changed files
with
21,649 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Blackjack</title> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css"> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script src="build/bundle.js"></script> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "blackjack", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"babel-core": "^6.14.0", | ||
"babel-loader": "^6.2.5", | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-preset-react": "^6.11.1", | ||
"css-loader": "^0.25.0", | ||
"file-loader": "^0.9.0", | ||
"flux": "^2.1.1", | ||
"lodash": "^4.16.1", | ||
"react": "^15.3.2", | ||
"react-bootstrap": "^0.30.3", | ||
"react-dom": "^15.3.2", | ||
"style-loader": "^0.13.1", | ||
"url-loader": "^0.5.7", | ||
"uuid": "^2.0.3", | ||
"webpack": "^1.13.2" | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import Flux from 'flux'; | ||
export default new Flux.Dispatcher(); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React, { Component } from 'react'; | ||
|
||
export default class Deck extends Component { | ||
render() { | ||
return ( | ||
<div> | ||
deck | ||
</div> | ||
) | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React, { Component } from 'react'; | ||
import Deck from './Deck'; | ||
|
||
export default class Layout extends Component { | ||
render() { | ||
return ( | ||
<div className="container"> | ||
<h1 className="text-center">Jackblack</h1> | ||
|
||
<Deck/> | ||
dealer | ||
player | ||
</div> | ||
) | ||
} | ||
} |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import lodash from 'lodash'; | ||
|
||
import Layout from './components/Layout'; | ||
|
||
render( | ||
<Layout />, | ||
document.getElementById('root') | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import AppDispatcher from '../AppDispatcher'; | ||
import { EventEmitter } from 'events'; | ||
|
||
let deck = [ | ||
{spades: [1, 11], img: '🂡'}, | ||
{spades: 2, img: '🂢'}, | ||
{spades: 3, img: '🂣'}, | ||
{spades: 4, img: '🂤'}, | ||
{spades: 5, img: '🂥'}, | ||
{spades: 6, img: '🂦'}, | ||
{spades: 7, img: '🂧'}, | ||
{spades: 8, img: '🂨'}, | ||
{spades: 9, img: '🂩'}, | ||
{spades: 10, img: '🂪'}, | ||
{spades: 10, img: '🂫'}, | ||
{spades: 10, img: '🂭'}, | ||
{spades: 10, img: '🂮'}, | ||
{hearts: [1, 11], img: '🂱'}, | ||
{hearts: 2, img: '🂲'}, | ||
{hearts: 3, img: '🂳'}, | ||
{hearts: 4, img: '🂴'}, | ||
{hearts: 5, img: '🂵'}, | ||
{hearts: 6, img: '🂶'}, | ||
{hearts: 7, img: '🂷'}, | ||
{hearts: 8, img: '🂸'}, | ||
{hearts: 9, img: '🂹'}, | ||
{hearts: 10, img: '🂺'}, | ||
{hearts: 10, img: '🂻'}, | ||
{hearts: 10, img: '🂽'}, | ||
{hearts: 10, img: '🂾'}, | ||
{diamonds: [1, 11], img: '🃁'}, | ||
{diamonds: 2, img: '🃂'}, | ||
{diamonds: 3, img: '🃃'}, | ||
{diamonds: 4, img: '🃄'}, | ||
{diamonds: 5, img: '🃅'}, | ||
{diamonds: 6, img: '🃆'}, | ||
{diamonds: 7, img: '🃇'}, | ||
{diamonds: 8, img: '🃈'}, | ||
{diamonds: 9, img: '🃉'}, | ||
{diamonds: 10, img: '🃊'}, | ||
{diamonds: 10, img: '🃋'}, | ||
{diamonds: 10, img: '🃍'}, | ||
{diamonds: 10, img: '🃎'}, | ||
{clubs: [1, 11], img: ' 🃑'}, | ||
{clubs: 2, img: '🃒'}, | ||
{clubs: 3, img: '🃓'}, | ||
{clubs: 4, img: '🃔'}, | ||
{clubs: 5, img: '🃕'}, | ||
{clubs: 6, img: '🃖'}, | ||
{clubs: 7, img: '🃗'}, | ||
{clubs: 8, img: '🃘'}, | ||
{clubs: 9, img: '🃙'}, | ||
{clubs: 10, img: '🃚'}, | ||
{clubs: 10, img: '🃛'}, | ||
{clubs: 10, img: '🃝'}, | ||
{clubs: 10, img: '🃞'}, | ||
|
||
] | ||
let back = {down: null, img: '🂠'}, |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
entry: './src/index.js', | ||
output: { path: './build', publicPath: '/build/', filename: 'bundle.js' }, | ||
devtool: 'inline-source-map', | ||
module: { | ||
loaders: [ | ||
{ | ||
loader: 'babel-loader', | ||
test: /.jsx?$/, | ||
exclude: /node_modules/, | ||
query: { | ||
presets: ['es2015', 'react'] | ||
} | ||
}, | ||
{ | ||
loader: "style-loader!css-loader", | ||
test: /\.css$/ | ||
}, | ||
{ | ||
loader: 'url-loader?limit=10000', | ||
test: /\.(png|jpg|jpeg|gif|woff)$/ | ||
} | ||
] | ||
} | ||
} |