Skip to content

Commit

Permalink
minesweeper vite react b00tc4mp#204
Browse files Browse the repository at this point in the history
  • Loading branch information
alalluna committed Apr 8, 2024
1 parent 50d8ac9 commit 2598cf6
Show file tree
Hide file tree
Showing 13 changed files with 4,572 additions and 98 deletions.
21 changes: 21 additions & 0 deletions staff/tere-albenca/shapes/minesweeper/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions staff/tere-albenca/shapes/minesweeper/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
34 changes: 0 additions & 34 deletions staff/tere-albenca/shapes/minesweeper/App.jsx

This file was deleted.

8 changes: 8 additions & 0 deletions staff/tere-albenca/shapes/minesweeper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
39 changes: 0 additions & 39 deletions staff/tere-albenca/shapes/minesweeper/index.css

This file was deleted.

31 changes: 10 additions & 21 deletions staff/tere-albenca/shapes/minesweeper/index.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minesweeper</title>
<head>
<link rel="stylesheet" href="index.css">
</head>
<body>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Minesweeper</title>
</head>
<body>
<div id="root"></div>

<script src="https://unpkg.com/react@18/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js" crossorigin></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.24.3/babel.min.js"
integrity="sha512-ew/qzOMK7mnWiZ395TTbZ+YVD6e7dOROUcXXzSjyxPmL9oNf5gp8DJp46uarrTKch5aUhR/NS8qtCh6hnaTMCw=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>

<script src="Board.jsx" type="text/babel"></script>
<script src="App.jsx" type="text/babel"></script>
<script src="index.jsx" type="text/babel"></script>

</body>
</html>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
4 changes: 0 additions & 4 deletions staff/tere-albenca/shapes/minesweeper/index.jsx

This file was deleted.

Loading

0 comments on commit 2598cf6

Please sign in to comment.