Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
eufelipemateus committed Sep 22, 2020
1 parent 8777cf8 commit d68808c
Show file tree
Hide file tree
Showing 8 changed files with 280 additions and 258 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ node_modules/
# build files
package-lock.json
._build
public/js/Game.min.js
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// The number of spaces a tab is equal to. This setting is overridden
// based on the file contents when `editor.detectIndentation` is true.
"editor.tabSize": 4,

// Insert spaces when pressing Tab. This setting is overriden
// based on the file contents when `editor.detectIndentation` is true.
"editor.insertSpaces": true,

// When opening a file, `editor.tabSize` and `editor.insertSpaces`
// will be detected based on the file contents. Set to false to keep
// the values you've explicitly set, above.
"editor.detectIndentation": false
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ domino-game é jogo de dominó online feito em html5,node.js e websocket.


```bash
git clone https://github.com/felipefm32/NodeDomino.git
git clone https://github.com/eufelipemateus/NodeDomino.git
```

```bash
Expand Down Expand Up @@ -38,4 +38,4 @@ Veja Mais [Aqui](https://felipemateus.com/blog/2017/06/domino).

## Author

**[Felipe Mateus](https://felipemateus.com)** - [Felipefm32](https://github.com/felipefm32)
**[Felipe Mateus](https://felipemateus.com)** - [Felipefm32](https://github.com/eufelipemateus)
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
"node": "10.18.0"
},
"scripts": {
"build": "tslint --project . && tsc",
"build": "tslint --project . && tsc --declaration && npm run minify",
"serve": "nodemon --watch \"src/**/*\" -e ts --exec \"ts-node -r tsconfig-paths/register\" ./src/Server.ts",
"start": "node ./._build/Server.js",
"pm2:start": "pm2 start ./._build/Server.js --name dominio-felipefm32",
"lint:ts:base": "tslint --project tsconfig.json --config tslint.json",
"lint:ts": "npm run lint:ts:base \"src/**/*.ts\""
"lint:ts": "npm run lint:ts:base \"src/**/*.ts\"",
"minify": "jsmin -o public/js/Game.min.js public/js/Game.js"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -41,15 +42,16 @@
"socket.io": "^2.2.0"
},
"devDependencies": {
"@types/socket.io": "^2.1.2",
"@types/dotenv": "8.2.0",
"@types/node": "^7.0.5",
"@types/socket.io": "^2.1.2",
"jsmin": "^1.0.1",
"lint-staged": "9.5.0",
"nodemon": "^1.11.0",
"typescript": "3.7.2",
"@types/dotenv": "8.2.0",
"ts-node": "3.3.0",
"tsconfig-paths": "3.9.0",
"tslint": "5.7.0",
"lint-staged": "9.5.0"
"typescript": "3.7.2"
},
"bugs": {
"url": "https://github.com/felipefm32/NodeDomino/issues"
Expand Down
15 changes: 7 additions & 8 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<meta charset="UTF-8">
<meta name="description" content="Jogo de Dominó Multiplayer online para 4 pessoas." />
<meta name="keywords" content="Dominó,Felipe Mateus, Felipe, Mateus,feliepfm32" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dominó</title>


Expand Down Expand Up @@ -50,18 +51,18 @@
}
#tabuleiro{
width:70%;
height:450px;
height:400px;
text-align:center;
border-right:2px solid #000;
border-bottom:2px solid #000;
overflow-y: scroll;
display:inline-block;
}
.stat{
height:450px;
height:400px;
width:29.5%;
display:inline-block;
float:right;
float: right;
}
.stat h1{
text-align:center;
Expand Down Expand Up @@ -192,16 +193,14 @@ <h1>Estastiticas</h1>
<span>Passar Vez</span>
</div>
<div class="rights">
<a href="https://felipefm32.com/blog/2017/06/domino" target="_blank" title="Link Para o Site Felipefm32"><img alt="Felipe Mateus"src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgIAAABpCAYAAABI6Ut8AAAACXBIWXMAAAsTAAALEwEAmpwYAAABNmlDQ1BQaG90b3Nob3AgSUNDIHByb2Z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ncPwe/rW9/Gs2mZw5vbzEEeYlfeSf12YFvn5ge43BJ4xlPDXCGNP+S55sroNpYoc+gXBl979zk8pExSyQHabR9a/5QAhEypvalRX1d2J3eaRqSTdVYtZwFX7rO8sm1a6E6QZ7hRGwbjkO5urmmKsnF1sDF2FroFw1vkU+4Lj69f7JK06g2CsMz7FaYMz9vNSTpcATQqC289pE2K6dxnGpDrQXAXWqmWGvEAM/Il11b/Rkt3QPQqCZgozrWIivcgWPIQJS7BVGFhWI8WKejStcBAiBxrwpjjrTb3qQUpcPzk7tLjfBXmF4MfBkvymOSNAbIgAhENI5/+tWXH0r3Y179ppuuGv8xSYhJnHsFWIQBOuCLeQDjKdvxaJFcJ0vlaUGaUCI4yv9MtUxu9UfRwuNPze+FSuqttyqlJZdmHiLFdxWKj8pcKv/L2UpF5+ZqvsEK+wVLtKb/z+YRKcjgF2Qyh9TfbIZPYsQAKgqBKqUiL3ErYI8/sZCAIQARA1bAwDdwKoEAEYBBYXgkWkTpqS8KQAgBADuQAhQNx8AHhq2BgC6ga0BAEAIADwwZNADAEIAAAAAEAIAAACAEAB4KLjyFABGAacG4J7JNFzNc3IEAGAUGCpLAQAAPC5sDQAAACAEAAAAACEAAAAACAEAAABACAAAAABCAAAAABACAAAAgBAAAAAAhAAAAAAgBAAAAAAhAAAAAAgBAAAAQAgAAAAAQgAAAAAQAgAAAIAQAAAAAIQAAAAARMT/BwCHfQ+bvPdt8wAAAABJRU5ErkJggg==" width="95%" /></a>
<div>

<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Licença Creative Commons" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png" /></a><br />Este obra está licenciado com uma Licença <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">Creative Commons Atribuição-NãoComercial 4.0 Internacional</a>.
</div>
<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Licença Creative Commons" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png" /></a><br />Este obra está licenciado com uma Licença <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">Creative Commons Atribuição-NãoComercial 4.0 Internacional</a>.
</div>
</div>

</div>
</body>
<script src="/socket.io/socket.io.js"></script>
<script src="js/Game.js"></script>
<script src="js/Game.min.js"></script>
<script>const game = new Game(io);</script>
</html>
Loading

0 comments on commit d68808c

Please sign in to comment.