Spaces:
Running
Running
cleanup: remove unnecessary development and duplicate files
Browse files- Remove debug.html and duplicate aiService files
- Remove package.json, .parcelrc, .postcssrc.json (using Python deployment)
- Keep only essential files for production deployment
- .parcelrc +0 -7
- .postcssrc.json +0 -5
- debug.html +0 -47
- package.json +0 -13
- src/aiService_clean.js +0 -0
- src/aiService_main.js +0 -0
.parcelrc
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"extends": "@parcel/config-default",
|
| 3 |
-
"transformers": {
|
| 4 |
-
"*.{js,mjs,jsx,cjs,ts,tsx}": ["@parcel/transformer-js"],
|
| 5 |
-
"*.css": ["@parcel/transformer-css"]
|
| 6 |
-
}
|
| 7 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.postcssrc.json
DELETED
|
@@ -1,5 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"plugins": {
|
| 3 |
-
"tailwindcss": {}
|
| 4 |
-
}
|
| 5 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
debug.html
DELETED
|
@@ -1,47 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html>
|
| 3 |
-
<head>
|
| 4 |
-
<title>Debug Book Service</title>
|
| 5 |
-
</head>
|
| 6 |
-
<body>
|
| 7 |
-
<h1>Book Service Debug</h1>
|
| 8 |
-
<div id="output"></div>
|
| 9 |
-
|
| 10 |
-
<script type="module">
|
| 11 |
-
import bookDataService from './src/bookDataService.js';
|
| 12 |
-
|
| 13 |
-
const output = document.getElementById('output');
|
| 14 |
-
|
| 15 |
-
async function debugBookService() {
|
| 16 |
-
try {
|
| 17 |
-
output.innerHTML += '<p>Loading dataset...</p>';
|
| 18 |
-
await bookDataService.loadDataset();
|
| 19 |
-
|
| 20 |
-
const status = bookDataService.getStatus();
|
| 21 |
-
output.innerHTML += `<p>Status: ${JSON.stringify(status, null, 2)}</p>`;
|
| 22 |
-
|
| 23 |
-
output.innerHTML += '<p>Getting 5 random books...</p>';
|
| 24 |
-
for (let i = 0; i < 5; i++) {
|
| 25 |
-
try {
|
| 26 |
-
const book = await bookDataService.getRandomBook();
|
| 27 |
-
output.innerHTML += `<div style="border:1px solid #ccc; margin:10px; padding:10px;">
|
| 28 |
-
<h3>Book ${i + 1}:</h3>
|
| 29 |
-
<p><strong>Title:</strong> ${book.title}</p>
|
| 30 |
-
<p><strong>Author:</strong> ${book.author}</p>
|
| 31 |
-
<p><strong>Source:</strong> ${book.source || 'local'}</p>
|
| 32 |
-
<p><strong>Text Length:</strong> ${book.text.length}</p>
|
| 33 |
-
<p><strong>Text Preview:</strong> ${book.text.substring(0, 200)}...</p>
|
| 34 |
-
</div>`;
|
| 35 |
-
} catch (error) {
|
| 36 |
-
output.innerHTML += `<p style="color:red">Error getting book ${i + 1}: ${error.message}</p>`;
|
| 37 |
-
}
|
| 38 |
-
}
|
| 39 |
-
} catch (error) {
|
| 40 |
-
output.innerHTML += `<p style="color:red">Error: ${error.message}</p>`;
|
| 41 |
-
}
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
debugBookService();
|
| 45 |
-
</script>
|
| 46 |
-
</body>
|
| 47 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"name": "cloze-reader-minimal",
|
| 3 |
-
"version": "1.0.0",
|
| 4 |
-
"description": "Interactive cloze reading practice application",
|
| 5 |
-
"type": "module",
|
| 6 |
-
"scripts": {
|
| 7 |
-
"dev": "parcel index.html",
|
| 8 |
-
"build": "parcel build index.html"
|
| 9 |
-
},
|
| 10 |
-
"devDependencies": {
|
| 11 |
-
"parcel": "^2.0.0"
|
| 12 |
-
}
|
| 13 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/aiService_clean.js
DELETED
|
File without changes
|
src/aiService_main.js
DELETED
|
File without changes
|