Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mavarius committed Sep 24, 2016
0 parents commit 41049df
Show file tree
Hide file tree
Showing 10 changed files with 21,649 additions and 0 deletions.
21,484 changes: 21,484 additions & 0 deletions build/bundle.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions index.html
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>
28 changes: 28 additions & 0 deletions package.json
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"
}
}
2 changes: 2 additions & 0 deletions src/AppDispatcher.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Flux from 'flux';
export default new Flux.Dispatcher();
11 changes: 11 additions & 0 deletions src/components/Deck.js
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>
)
}
}
16 changes: 16 additions & 0 deletions src/components/Layout.js
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 added src/css/stylesheet.css
Empty file.
10 changes: 10 additions & 0 deletions src/index.js
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')
)
59 changes: 59 additions & 0 deletions src/stores/DeckStore.js
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: '🂠'},
25 changes: 25 additions & 0 deletions webpack.config.js
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)$/
}
]
}
}

0 comments on commit 41049df

Please sign in to comment.