Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Node modules
node_modules/

# Vite build outputs
dist/*
!dist/.gitkeep

# Editor files
.vscode/
.idea/
*.swp
*.swo

# OS files
.DS_Store
Thumbs.db

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# ESLint and Prettier configs (created by precommit script)
.eslintrc.json
.prettierrc.json
29 changes: 29 additions & 0 deletions .mentat/precommit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

echo "Running formatters..."

# Install Prettier if not already installed
if ! command -v prettier &> /dev/null; then
echo "Installing Prettier..."
npm install --no-save prettier
fi

# Create Prettier config if it doesn't exist
if [ ! -f ".prettierrc.json" ]; then
echo '{
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100
}' > .prettierrc.json
fi

# Run Prettier only on JavaScript and JSON files
# Skipping HTML files due to existing HTML syntax errors that Prettier can't fix
echo "Running Prettier on JavaScript and JSON files..."
npx prettier --write "**/*.js" "**/*.json" --ignore-path .gitignore

# Note about ESLint
echo "Skipping ESLint due to configuration detection issues."
echo "To run ESLint manually, please use: npx eslint --fix **/*.js"

echo "Precommit checks completed!"
36 changes: 36 additions & 0 deletions .mentat/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

echo "Installing dependencies for the main project..."
npm install

echo "Installing dependencies for the src project..."
cd src
npm install

echo "Installing dependencies for the npm server components..."
cd npm
# Create package.json if it doesn't exist
if [ ! -f "package.json" ]; then
echo '{
"name": "scratch-shop-server",
"version": "1.0.0",
"description": "Server components for Scratch Shop",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"express": "^4.18.2",
"axios": "^1.6.2",
"dotenv": "^16.3.1",
"body-parser": "^1.20.2",
"cors": "^2.8.5"
}
}' > package.json
fi
npm install

# Return to root directory
cd ../..

echo "Setup completed successfully!"
25 changes: 15 additions & 10 deletions Partners/list.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Partners | Coding Hut</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
overflow-x: hidden;
font-family: Sans-Serif;
margin: 0;
}
<link href='https://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet'>
<style>
body {
font-family: 'Comfortaa';font-size: 22px;
}
font-family: 'Comfortaa';
font-size: 22px;
}

.menu-container {
position: relative;
Expand Down Expand Up @@ -108,7 +109,7 @@
<nav class="menu-container">
<!-- Logo -->
<a href="https://scratch-coding-hut.github.io" class="menu-logo">
<img src="https://i.postimg.cc/6qgPbyGH/temp-Image-BJ164c.avif" alt="Coding Hut Logo"/>
<img src="https://i.postimg.cc/6qgPbyGH/temp-Image-BJ164c.avif" alt="Coding Hut Logo" />
</a>

<!-- Menu for Mobile -->
Expand All @@ -120,7 +121,11 @@
<li><a href="https://scratch-coding-hut.github.io">Home</a></li>
<li><a href="https://scratch-coding-hut.github.io/about">About</a></li>
<li><a href="https://scratch.mit.edu/discuss/topic/652178/">Scratch Forum</a></li>
<li><a href="https://scratch-coding-hut.github.io/Wiki/sitemaplinks">Wiki | FAQ | More Links</a></li>
<li>
<a href="https://scratch-coding-hut.github.io/Wiki/sitemaplinks"
>Wiki | FAQ | More Links</a
>
</li>
</ul>
<ul>
<li><a href="https://scratch-coding-hut.github.io/messages">Messages</a></li>
Expand All @@ -129,9 +134,9 @@
</div>
</nav>

<h1 style="text-align:center;"><b>Coding Hut</b></h1>
<h2 style="text-align:center;">Partners</h2>
<p style="text-align:center;">Here is a list of some of coding hut's partners.</p>
<h1 style="text-align: center"><b>Coding Hut</b></h1>
<h2 style="text-align: center">Partners</h2>
<p style="text-align: center">Here is a list of some of coding hut's partners.</p>

<script>
function toggleMenu() {
Expand Down
82 changes: 41 additions & 41 deletions Partners/partnerlogin.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
<html>
<head>
<title>Partner Login | Coding Hut</title>
</head>
<body>
<h1>Coding Hut Partner Dashboard Login</h1>
You can login to your partner dashboard below.
<br>
<form action="/Partners/confirm.html">
<b>Shop Details:</b>
<br><br>
<label for="pname">Partner Shop Name:</label><br>
<input type="text" id="pname" name="pname" required><br>
<br>
<b>User Details:</b>
<br><br>
<label for="puser">Partner Username:</label><br>
<input type="text" id="puser" name="puser">
<br><br>
<label for="plkey">Partner Login Key:</label><br>
<input type="text" id="plkey" name="plkey" required>
<br><br>
<b>System & Connection Details:</b>
<br><br>
<label for="version">Version of Partner Dashboard to connect to:</label>
<select id="version" name="version" disabled>
<option value="1.0-beta">1.0 BETA</option>
<option value="1.0">1.0 GENERAL</option>
</select>
<br>
<input type="submit" value="Sign In">
</form>
<br>
<b>Are you a partner but don't know your login info?</b>
<br>
You can get your login info by entering your Scratch username, and entering the Request ID that you got.
This info won't stay there forever, so make sure to keep your login info safe!
If you fergot your login info, please tell us on our Scratch Forum Thread.
<br>
<head>
<title>Partner Login | Coding Hut</title>
</head>
<body>
<h1>Coding Hut Partner Dashboard Login</h1>
You can login to your partner dashboard below.
<br />
<form action="/Partners/confirm.html">
<b>Shop Details:</b>
<br /><br />
<label for="pname">Partner Shop Name:</label><br />
<input type="text" id="pname" name="pname" required /><br />
<br />
<b>User Details:</b>
<br /><br />
<label for="puser">Partner Username:</label><br />
<input type="text" id="puser" name="puser" />
<br /><br />
<label for="plkey">Partner Login Key:</label><br />
<input type="text" id="plkey" name="plkey" required />
<br /><br />
<b>System & Connection Details:</b>
<br /><br />
<label for="version">Version of Partner Dashboard to connect to:</label>
<select id="version" name="version" disabled>
<option value="1.0-beta">1.0 BETA</option>
<option value="1.0">1.0 GENERAL</option>
</select>
<br />
<input type="submit" value="Sign In" />
</form>
<br />
<b>Are you a partner but don't know your login info?</b>
<br />
You can get your login info by entering your Scratch username, and entering the Request ID that
you got. This info won't stay there forever, so make sure to keep your login info safe! If you
fergot your login info, please tell us on our Scratch Forum Thread.
<br />

<b>There's currently no request ID's so the form is hidden</b>

</body></html>
<b>There's currently no request ID's so the form is hidden</b>
</body>
</html>
32 changes: 16 additions & 16 deletions Reviews/addreview.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<html>
<head>
<title>Review Us | Coding Hut</title>
</head>
<body>
<h1>Review Coding Hut</h1>
<form>
<label for="order">What did you order?</label><br>
<input type="text" id="order" name="order"><br>
<label for="codinghut">Please describe your expirence with Coding Hut:</label><br>
<input type="text" id="codinghut" name="codinghut">
<label for="likes">What did you like about the product you recived?:</label><br>
<input type="text" id="likes" name="likes">
<label for="dislikes">What did you dislike about the product you recived?:</label><br>
<input type="text" id="dislikes" name="dislikes">
</form>
</body>
<head>
<title>Review Us | Coding Hut</title>
</head>
<body>
<h1>Review Coding Hut</h1>
<form>
<label for="order">What did you order?</label><br />
<input type="text" id="order" name="order" /><br />
<label for="codinghut">Please describe your expirence with Coding Hut:</label><br />
<input type="text" id="codinghut" name="codinghut" />
<label for="likes">What did you like about the product you recived?:</label><br />
<input type="text" id="likes" name="likes" />
<label for="dislikes">What did you dislike about the product you recived?:</label><br />
<input type="text" id="dislikes" name="dislikes" />
</form>
</body>
</html>
25 changes: 15 additions & 10 deletions Reviews/list.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Reviews | Coding Hut</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
overflow-x: hidden;
font-family: Sans-Serif;
margin: 0;
}
<link href='https://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Comfortaa' rel='stylesheet'>
<style>
body {
font-family: 'Comfortaa';font-size: 22px;
}
font-family: 'Comfortaa';
font-size: 22px;
}

.menu-container {
position: relative;
Expand Down Expand Up @@ -108,7 +109,7 @@
<nav class="menu-container">
<!-- Logo -->
<a href="https://scratch-coding-hut.github.io" class="menu-logo">
<img src="https://i.postimg.cc/6qgPbyGH/temp-Image-BJ164c.avif" alt="Coding Hut Logo"/>
<img src="https://i.postimg.cc/6qgPbyGH/temp-Image-BJ164c.avif" alt="Coding Hut Logo" />
</a>

<!-- Menu for Mobile -->
Expand All @@ -120,7 +121,11 @@
<li><a href="https://scratch-coding-hut.github.io">Home</a></li>
<li><a href="https://scratch-coding-hut.github.io/about">About</a></li>
<li><a href="https://scratch.mit.edu/discuss/topic/652178/">Scratch Forum</a></li>
<li><a href="https://scratch-coding-hut.github.io/Wiki/sitemaplinks">Wiki | FAQ | More Links</a></li>
<li>
<a href="https://scratch-coding-hut.github.io/Wiki/sitemaplinks"
>Wiki | FAQ | More Links</a
>
</li>
</ul>
<ul>
<li><a href="https://scratch-coding-hut.github.io/messages">Messages</a></li>
Expand All @@ -129,9 +134,9 @@
</div>
</nav>

<h1 style="text-align:center;"><b>Coding Hut</b></h1>
<h2 style="text-align:center;">Reviews</h2>
<p style="text-align:center;">Here are some reviews from our customers.</p>
<h1 style="text-align: center"><b>Coding Hut</b></h1>
<h2 style="text-align: center">Reviews</h2>
<p style="text-align: center">Here are some reviews from our customers.</p>

<script>
function toggleMenu() {
Expand Down
Loading