Skip to content

Commit 3faede1

Browse files
G-Fourteenclaude
andcommitted
Add Downloads page, fix TTS welcome message, update voice playback
- Added Downloads page with Moana Miner v1.0 download - Created individual download detail pages with full documentation - Added Downloads link to navigation on all site pages - Fixed TTS welcome message generation to avoid explicit content - Updated TTS system prompts to bypass content filtering - Bumped cache versions for age-verification.js and main.js 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
0 parents  commit 3faede1

File tree

380 files changed

+119064
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

380 files changed

+119064
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
name: Build and Deploy
2+
3+
# Run on push to main/master branch only
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
workflow_dispatch: # Allow manual triggering
10+
11+
# Grant necessary permissions
12+
permissions:
13+
contents: write
14+
pages: write
15+
id-token: write
16+
issues: write
17+
pull-requests: write
18+
19+
jobs:
20+
# Job 1: Build with Vite
21+
build:
22+
name: Build with Vite
23+
needs: []
24+
runs-on: ubuntu-latest
25+
outputs:
26+
build_status: ${{ steps.build_check.outputs.status }}
27+
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
with:
32+
ref: ${{ github.ref_name }}
33+
fetch-depth: 0
34+
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: '20'
39+
cache: 'npm'
40+
41+
- name: Install dependencies
42+
run: |
43+
echo "📦 Installing dependencies..."
44+
npm ci
45+
46+
- name: Build with Vite
47+
id: build_check
48+
run: |
49+
echo "🏗️ Building with Vite..."
50+
npm run build
51+
52+
# Check if build succeeded
53+
if [ ! -d "dist" ]; then
54+
echo "❌ Build failed - dist directory not created!"
55+
echo "status=failed" >> $GITHUB_OUTPUT
56+
exit 1
57+
fi
58+
59+
# Verify critical files exist
60+
if [ ! -f "dist/index.html" ]; then
61+
echo "❌ Build failed - index.html not found in dist!"
62+
echo "status=failed" >> $GITHUB_OUTPUT
63+
exit 1
64+
fi
65+
66+
echo "✅ Vite build completed successfully"
67+
echo "📦 Build output:"
68+
ls -lh dist/
69+
echo ""
70+
echo "📦 Assets:"
71+
ls -lh dist/assets/ | head -20
72+
echo "status=success" >> $GITHUB_OUTPUT
73+
74+
- name: Copy additional files to dist
75+
run: |
76+
echo "📋 Copying additional files using copy-assets.js..."
77+
# Use the centralized copy-assets.js script for consistency
78+
# This script maintains the list of all files/directories to copy
79+
node copy-assets.js
80+
81+
echo ""
82+
echo "📦 Final dist contents:"
83+
find dist -type f | head -50
84+
echo "..."
85+
echo "Total files: $(find dist -type f | wc -l)"
86+
87+
- name: Upload artifact for deployment
88+
uses: actions/upload-pages-artifact@v3
89+
with:
90+
path: 'dist'
91+
92+
# Job 4a: Report Build Status
93+
report-status:
94+
name: Report Build Status
95+
needs: build
96+
runs-on: ubuntu-latest
97+
if: always()
98+
99+
steps:
100+
- name: Report success
101+
if: needs.build.outputs.build_status == 'success'
102+
run: |
103+
echo "✅ BUILD SUCCESSFUL"
104+
echo "================================"
105+
echo "Built with: Vite"
106+
echo "Status: SUCCESS"
107+
echo "Ready for deployment"
108+
echo "================================"
109+
110+
- name: Report failure
111+
if: needs.build.outputs.build_status == 'failed'
112+
run: |
113+
echo "❌ BUILD FAILED"
114+
echo "================================"
115+
echo "Built with: Vite"
116+
echo "Status: FAILED"
117+
echo "Check build logs for details"
118+
echo "================================"
119+
exit 1
120+
121+
- name: Create status comment (if PR)
122+
if: github.event_name == 'pull_request'
123+
uses: actions/github-script@v7
124+
with:
125+
script: |
126+
const status = '${{ needs.build.outputs.build_status }}';
127+
const icon = status === 'success' ? '✅' : '❌';
128+
const message = status === 'success' ? 'Build successful!' : 'Build failed!';
129+
130+
github.rest.issues.createComment({
131+
issue_number: context.issue.number,
132+
owner: context.repo.owner,
133+
repo: context.repo.repo,
134+
body: `${icon} **${message}**\n\n**Built with:** Vite\n**Status:** ${status.toUpperCase()}`
135+
});
136+
137+
# Job 4b: Deploy to GitHub Pages
138+
deploy:
139+
name: Deploy to GitHub Pages
140+
needs: build
141+
runs-on: ubuntu-latest
142+
if: needs.build.outputs.build_status == 'success'
143+
144+
# Required for GitHub Pages deployment
145+
environment:
146+
name: github-pages
147+
url: ${{ steps.deployment.outputs.page_url }}
148+
149+
steps:
150+
- name: Deploy to GitHub Pages
151+
id: deployment
152+
uses: actions/deploy-pages@v4
153+
154+
- name: Purge Cloudflare cache
155+
run: |
156+
echo "🧹 Purging Cloudflare cache..."
157+
curl -s -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE_ID }}/purge_cache" \
158+
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}" \
159+
-H "Content-Type: application/json" \
160+
--data '{"purge_everything":true}' | jq .
161+
echo "✅ Cache purge requested"
162+
163+
- name: Report deployment success
164+
run: |
165+
echo "🚀 DEPLOYMENT SUCCESSFUL"
166+
echo "================================"
167+
echo "Branch: ${{ github.ref_name }}"
168+
echo "URL: ${{ steps.deployment.outputs.page_url }}"
169+
echo "Built with: Vite (optimized)"
170+
echo "Cache: Purged via Cloudflare API"
171+
echo "================================"

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
PolliLibPy/__pycache__/
2+
3+
# Dependencies
4+
node_modules/
5+
6+
# Build output
7+
dist/
8+
9+
# Test results
10+
test-output*.txt
11+
test-output.log
12+
standalone-test-results.log
13+
*.log
14+
15+
# Claude personal
16+
.claude/
17+
CLAUDE.md
18+
19+
# Local development launchers (don't deploy these)
20+
START_LOCAL.html
21+
START_SERVER.bat
22+
START_SERVER.sh

Archived/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore the CNAME file
2+
CNAME

Archived/.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "chat"]
2+
path = chat
3+
url = https://github.com/Unity-Lab-AI/Unity-AI-Lab-PAIL.git

Archived/BingSiteAuth.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0"?>
2+
<users>
3+
<user>9B2A49B90F59DECF67920E1086249586</user>
4+
</users>

Archived/MillsWork/Footer.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react';
2+
3+
const Footer = () => (
4+
<footer className="text-center text-light bg-dark py-4">
5+
<p>&copy; 2024 Unity AI Lab. All rights reserved.</p>
6+
<a href="/privacy" className="text-light">Privacy Policy</a>
7+
</footer>
8+
);
9+
10+
export default Footer;

Archived/MillsWork/Gallery.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react';
2+
3+
const Gallery = () => (
4+
<div className="container my-5">
5+
<h2 className="text-light">Gallery</h2>
6+
<div className="row">
7+
{Array.from({ length: 6 }).map((_, index) => (
8+
<div className="col-md-4 mb-4" key={index}>
9+
<div className="card bg-dark text-light">
10+
<img src={`https://via.placeholder.com/300?text=Image+${index + 1}`} alt={`Placeholder ${index + 1}`} className="card-img-top" />
11+
<div className="card-body">
12+
<h5 className="card-title">Placeholder {index + 1}</h5>
13+
<p className="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
14+
<a href="#" className="btn btn-outline-light">View</a>
15+
</div>
16+
</div>
17+
</div>
18+
))}
19+
</div>
20+
</div>
21+
);
22+
23+
export default Gallery;

Archived/MillsWork/Hero.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from 'react';
2+
import './styles.css';
3+
4+
const Hero = () => (
5+
<div
6+
className="hero"
7+
style={{
8+
backgroundImage: 'url("https://via.placeholder.com/1920x400")',
9+
}}
10+
>
11+
<div className="hero-overlay"></div>
12+
<div className="hero-content">
13+
<h1>Welcome to Unity AI Lab</h1>
14+
<p>Exploring the boundaries of creativity and intelligence.</p>
15+
<a className="btn btn-primary" href="/learn-more">
16+
Learn More
17+
</a>
18+
</div>
19+
</div>
20+
);
21+
22+
export default Hero;

Archived/MillsWork/Navbar.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import React from 'react';
2+
import { Link } from 'react-router-dom';
3+
4+
const Navbar = () => (
5+
<nav className="navbar navbar-expand-lg navbar-dark bg-dark">
6+
<div className="container">
7+
<a className="navbar-brand" href="/">Unity AI Lab</a>
8+
<button className="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
9+
<span className="navbar-toggler-icon"></span>
10+
</button>
11+
<div className="collapse navbar-collapse" id="navbarNav">
12+
<ul className="navbar-nav ms-auto">
13+
<li className="nav-item">
14+
<Link className="nav-link" to="/">Home</Link>
15+
</li>
16+
<li className="nav-item">
17+
<Link className="nav-link" to="/gallery">Gallery</Link>
18+
</li>
19+
<li className="nav-item">
20+
<Link className="nav-link" to="/contact">Contact</Link>
21+
</li>
22+
</ul>
23+
</div>
24+
</div>
25+
</nav>
26+
);
27+
28+
export default Navbar;

0 commit comments

Comments
 (0)