b9137204a0
- FilePreview.vue: add normalizedFileType computed to handle backend returning uppercase HTML/MD/PPTX (fixes preview/download buttons) - FilePreview.vue: bg-gradient-to-r from-orange-500 -> bg-orange-500 (Tailwind v4 gradient + CSS variable = transparent) - ReportCard.vue: bg-gradient-to-r -> bg-orange-600 for selected state - Add .opencode/, node_modules/, dist/ to .gitignore - Initial git setup for publish project
26 lines
880 B
Python
26 lines
880 B
Python
import urllib.request
|
|
import json
|
|
|
|
# 1. Check if backend is running
|
|
try:
|
|
req = urllib.request.Request('http://localhost:37821/api/projects')
|
|
resp = urllib.request.urlopen(req, timeout=3)
|
|
projects = json.loads(resp.read().decode())
|
|
print('Backend is running!')
|
|
print('Projects:', len(projects))
|
|
for p in projects:
|
|
print(' id={} name={} coverImage={}'.format(p['id'], p['name'], p['coverImage']))
|
|
except Exception as e:
|
|
print('Backend NOT running or error:', e)
|
|
|
|
# 2. Check if uploads directory exists
|
|
import os
|
|
uploads_dir = 'D:/Idea Project/publish/uploads'
|
|
if os.path.exists(uploads_dir):
|
|
print('Uploads dir exists:', uploads_dir)
|
|
for root, dirs, files in os.walk(uploads_dir):
|
|
for f in files:
|
|
fpath = os.path.join(root, f)
|
|
print(' File:', fpath)
|
|
else:
|
|
print('Uploads dir NOT found:', uploads_dir) |