fix: FilePreview fileType case + Tailwind v4 gradient transparent bug
- 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
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user