-
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
1 parent
5de17b5
commit ebb4e70
Showing
21 changed files
with
72,778 additions
and
0 deletions.
There are no files selected for viewing
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Magicblock Pte. Ltd. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,48 @@ | ||
<div align="center"> | ||
|
||
<h1>TIC-TAC-TOE UI</h1> | ||
|
||
<img height="170x" src="https://blog.magicblock.gg/assets/images/tic-tac-toe.png" /> | ||
|
||
<p> | ||
<strong>A sleek and interactive UI for Tic-Tac-Toe built with React. Perfect for developers looking for a Bolt integration example.</strong> | ||
</p> | ||
|
||
<p> | ||
<a href="https://docs.magicblock.gg/BOLT/Introduction"><img alt="Tutorials" src="https://img.shields.io/badge/docs-tutorials-blueviolet" /></a> | ||
<a href="https://github.com/magicblock-labs/bolt-tic-tac-toe/issues"><img alt="Issues" src="https://img.shields.io/github/issues/magicblock-labs/bolt?color=blueviolet" /></a> | ||
<a href="https://discord.com/invite/MBkdC3gxcv"><img alt="Discord Chat" src="https://img.shields.io/discord/943797222162726962?color=blueviolet" /></a> | ||
<a href="https://opensource.org/licenses/MIT"><img alt="License" src="https://img.shields.io/github/license/magicblock-labs/bolt?color=blueviolet" /></a> | ||
</p> | ||
|
||
</div> | ||
|
||
## 🚀 Getting Started | ||
|
||
### Npm | ||
|
||
```bash | ||
npm run install | ||
``` | ||
|
||
```bash | ||
npm run start | ||
``` | ||
|
||
### Yarn | ||
|
||
```bash | ||
yarn install | ||
``` | ||
|
||
```bash | ||
yarn start | ||
``` | ||
|
||
## 💚 Open Source | ||
|
||
Open Source is at the heart of what we do at Magicblock. We believe building software in the open, with thriving communities, helps leave the world a little better than we found it. | ||
|
||
## 🙏 Credits | ||
|
||
This UI is based on the Tic-Tac-Toe game developed by [ucfx](https://github.com/ucfx/TIC-TAC-TOE-GAME). |
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,41 @@ | ||
// craco.config.js | ||
const webpack = require('webpack'); | ||
|
||
module.exports = { | ||
webpack: { | ||
configure: (webpackConfig) => { | ||
// Specify fallbacks for Node.js modules that are not available in the browser | ||
webpackConfig.resolve.fallback = { | ||
http: require.resolve('stream-http'), | ||
https: require.resolve('https-browserify'), | ||
crypto: require.resolve('crypto-browserify'), | ||
stream: require.resolve('stream-browserify'), | ||
buffer: require.resolve('buffer-browserify'), | ||
zlib: false, | ||
url: false, | ||
vm: false, | ||
}; | ||
|
||
// Add Buffer global if it's missing | ||
webpackConfig.plugins = (webpackConfig.plugins || []).concat( | ||
new webpack.ProvidePlugin({ | ||
Buffer: ['buffer', 'Buffer'], | ||
}) | ||
); | ||
|
||
// Ignore specific warnings (adjust the regex as needed) | ||
const ignoredWarnings = [/Failed to parse source map/]; | ||
|
||
// Webpack 5 approach to use the 'ignoreWarnings' option | ||
webpackConfig.ignoreWarnings = webpackConfig.ignoreWarnings || []; | ||
webpackConfig.ignoreWarnings = [ | ||
...webpackConfig.ignoreWarnings, | ||
...ignoredWarnings.map((pattern) => ({ | ||
message: pattern, | ||
})), | ||
]; | ||
|
||
return webpackConfig; | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.