Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekt-Developer authored Nov 21, 2024
1 parent 6edb100 commit 92005c0
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ create_file() {
echo "Created file: $file"
else
echo "Failed to create file: $file"
exit **1**
exit 1
fi
}

Expand All @@ -38,7 +38,7 @@ write_to_file() {
generate_html() {
local file=$1
local template=$2
if cat > "$file" << 'EOF'
if cat > "$file" << EOF
$template
EOF
then
Expand All @@ -53,7 +53,7 @@ EOF
generate_css() {
local file=$1
local template=$2
if cat > "$file" << 'EOF'
if cat > "$file" << EOF
$template
EOF
then
Expand All @@ -68,7 +68,7 @@ EOF
generate_js() {
local file=$1
local template=$2
if cat > "$file" << 'EOF'
if cat > "$file" << EOF
$template
EOF
then
Expand All @@ -83,7 +83,7 @@ EOF
generate_json() {
local file=$1
local template=$2
if cat > "$file" << 'EOF'
if cat > "$file" << EOF
$template
EOF
then
Expand All @@ -98,7 +98,7 @@ EOF
generate_readme() {
local file=$1
local template=$2
if cat > "$file" << 'EOF'
if cat > "$file" << EOF
$template
EOF
then
Expand Down Expand Up @@ -211,7 +211,7 @@ generate_html "admin.html" "
</section>
</main>
<footer>
<p>&copy; 2024 Rekt-Store. Managed by admins with ❤️ for crypto.</p>
<p>&copy; 2024 Rekt-Store. Managed by admins with ❤️ for crypto.</p>
</footer>
<!-- TonConnect Wallet Integration -->
<script src=\"https://unpkg.com/@tonconnect/sdk@latest/dist/tonconnect.min.js\"></script>
Expand Down Expand Up @@ -337,12 +337,12 @@ document.addEventListener('DOMContentLoaded', async () => {
products.forEach(product => {
const card = document.createElement('div');
card.classList.add('product-card');
card.innerHTML = `
<img src="${product.image}" alt="${product.name}">
<h2>${product.name}</h2>
<p>${product.price} TON</p>
<p>${product.description}</p>
`;
card.innerHTML = \`
<img src="\${product.image}" alt="\${product.name}">
<h2>\${product.name}</h2>
<p>\${product.price} TON</p>
<p>\${product.description}</p>
\`;
productGrid.appendChild(card);
});
} catch (error) {
Expand Down Expand Up @@ -397,12 +397,12 @@ document.addEventListener('DOMContentLoaded', () => {
// Create a new product card and append it to the product list
const newProductCard = document.createElement('div');
newProductCard.classList.add('product-card');
newProductCard.innerHTML = `
<img src="${productImage}" alt="${productName}">
<h2>${productName}</h2>
<p>${productPrice} TON</p>
<p>${productDescription}</p>
`;
newProductCard.innerHTML = \`
<img src="\${productImage}" alt="\${productName}">
<h2>\${productName}</h2>
<p>\${productPrice} TON</p>
<p>\${productDescription}</p>
\`;
productList.appendChild(newProductCard);
// Clear the form fields
Expand Down Expand Up @@ -469,12 +469,12 @@ Welcome to **Rekt-Store**, a modern storefront with advanced UI and TonConnect w
## How to Run
1. Clone this repository.
2. Set up your admin panel by creating a `config.json` file in the root directory with the following structure:
```json
\```json
{
\"adminUsername\": \"your_admin_username\",
\"adminPassword\": \"your_admin_password\"
}
```
\```
3. Open `index.html` for the store.
4. Open `admin.html` for product management.
Expand All @@ -483,15 +483,15 @@ Live Demo: [Rekt-Store GitHub Pages](https://rekt-developer.github.io/Rekt-Store
## TonConnect Wallet Integration
To integrate TonConnect, follow these steps:
1. Create a `tonconnect-manifest.json` file in the root directory with the following structure:
```json
\```json
{
\"url\": \"https://rekt-developer.github.io/Rekt-Store/\",
\"name\": \"Rekt-Store\",
\"iconUrl\": \"https://rekt-developer.github.io/Rekt-Store/images/logo.svg\",
\"termsOfServiceUrl\": \"https://rekt-developer.github.io/Rekt-Store/terms\",
\"privacyPolicyUrl\": \"https://rekt-developer.github.io/Rekt-Store/privacy\"
}
```
\```
2. Update the `js/main.js` and `js/admin.js` files with your TonConnect manifest URL and wallet address.
## Security
Expand Down

0 comments on commit 92005c0

Please sign in to comment.