Dashboard Masticationpedia: differenze tra le versioni
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
(23 versioni intermedie di uno stesso utente non sono mostrate) | |||
Riga 9: | Riga 9: | ||
<button class="dashboard-toggle" onclick="toggleDashboardBox('test-tools')">🧪 Strumenti di Test</button> | <button class="dashboard-toggle" onclick="toggleDashboardBox('test-tools')">🧪 Strumenti di Test</button> | ||
<button class="dashboard-toggle" onclick="toggleDashboardBox('activity-log')">📘 Registro Attività</button> | <button class="dashboard-toggle" onclick="toggleDashboardBox('activity-log')">📘 Registro Attività</button> | ||
<button class="dashboard-toggle" onclick="uploadToOpenAI()"> | <button class="dashboard-toggle" onclick="uploadToOpenAI()">📄 Carica in OpenAI</button> | ||
</div> | |||
<!-- 📁 Importa file dal server (semplificata) --> | |||
<div id="serverFileSimpleImportContainer"> | |||
<div class="dashboard-box" style="margin-top:1rem;"> | |||
<h4>📁 Importa file dal server (semplificata)</h4> | |||
<label for="sourcePathInput"><b>📂 Percorso Assoluto del file sorgente:</b></label><br> | |||
<input type="text" id="sourcePathInput" placeholder="/percorso/assoluto/file.php" style="width:100%; margin-bottom:0.5rem;"><br> | |||
<label for="projectNameInput"><b>📁 Cartella di destinazione nel progetto:</b></label><br> | |||
<input type="text" id="projectNameInput" placeholder="nome_progetto/"> | |||
</div> | |||
</div> | </div> | ||
Riga 16: | Riga 27: | ||
<strong>Connessione API:</strong><br><br> | <strong>Connessione API:</strong><br><br> | ||
<input id="api-key" placeholder="🔑 Inserisci API Key" style="width:100%; margin-bottom:0.5rem;"><br> | <input id="api-key" placeholder="🔑 Inserisci API Key" style="width:100%; margin-bottom:0.5rem;"><br> | ||
<input type="hidden" id="gptModel" value="gpt-4o"> | |||
<select id="model-select" style="width:100%; margin-bottom:0.5rem;"> | <select id="model-select" style="width:100%; margin-bottom:0.5rem;"> | ||
<option value="gpt-4">gpt-4</option> | <option value="gpt-4">gpt-4</option> | ||
<option value="gpt-3.5-turbo">gpt-3.5-turbo</option> | <option value="gpt-3.5-turbo">gpt-3.5-turbo</option> | ||
<option value="gpt-4o-2024-05-13" selected></option> | |||
</select><br> | </select><br> | ||
<textarea id="test-prompt" rows="3" style="width:100%; margin-bottom:0.5rem;">Dimmi una curiosità sulla mandibola</textarea><br> | <textarea id="test-prompt" rows="3" style="width:100%; margin-bottom:0.5rem;">Dimmi una curiosità sulla mandibola</textarea><br> | ||
Riga 30: | Riga 43: | ||
<button onclick="openProjectDialog()" style="margin-bottom:1rem; background:#007bff; color:white; border:none; padding:0.5rem 1rem; border-radius:5px; font-weight:bold;">➕ Nuovo Progetto</button> | <button onclick="openProjectDialog()" style="margin-bottom:1rem; background:#007bff; color:white; border:none; padding:0.5rem 1rem; border-radius:5px; font-weight:bold;">➕ Nuovo Progetto</button> | ||
<div id="newProjectDialog" style="display:none; padding:1rem; border:1px solid #ccc; margin-top:1rem;"> | |||
<h4>➕ Crea Nuovo Progetto</h4> | |||
<input id="newProjectTitle" placeholder="Titolo progetto" style="width:100%; margin-bottom:0.5rem;" /> | |||
<input id="newProjectNotes" placeholder="Note (opzionale)" style="width:100%; margin-bottom:0.5rem;" /> | |||
<button onclick="addNewProject()">📅 Salva</button> | |||
<button onclick="closeProjectDialog()">❌ Chiudi</button> | |||
</div> | |||
<table id="projectTable" style="width:100%; border-collapse: collapse; font-size: 0.95rem;"> | <table id="projectTable" style="width:100%; border-collapse: collapse; font-size: 0.95rem;"> | ||
<thead> | <thead> | ||
<tr style="background:#eaeaea;"> | <tr style="background:#eaeaea;"> | ||
<th>🧱 Modulo</th><th>📊 Stato</th><th> | <th>🧱 Modulo</th><th>📊 Stato</th><th>🗓️ Data</th><th>🔍 Note</th> | ||
</tr> | </tr> | ||
</thead> | </thead> | ||
Riga 47: | Riga 66: | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
<div style="margin-top: 1rem;"> | |||
<label for="response"><strong>🧠 Risposta GPT – Analisi progetto:</strong></label><br> | |||
<textarea id="response" rows="8" style="width: 100%; margin-top: 6px; margin-bottom: 15px; padding: 8px; font-family: monospace; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 6px;" placeholder="Qui apparirà la risposta generata da GPT sull’analisi del progetto..."></textarea> | |||
</div> | |||
</div> | </div> | ||
Riga 54: | Riga 78: | ||
<textarea id="promptArea" style="width:100%; height:200px; font-family:monospace;"></textarea><br> | <textarea id="promptArea" style="width:100%; height:200px; font-family:monospace;"></textarea><br> | ||
<button onclick="loadPrompt()">📂 Carica prompt.txt</button> | <button onclick="loadPrompt()">📂 Carica prompt.txt</button> | ||
<button onclick="savePrompt()"> | <button onclick="savePrompt()">📅 Salva prompt.txt</button> | ||
</div> | </div> | ||
Riga 67: | Riga 91: | ||
</select> | </select> | ||
<input type="text" id="newProjectTitle" value="SSO_LinkedIn" placeholder="Project"> | <input type="text" id="newProjectTitle" value="SSO_LinkedIn" placeholder="Project"> | ||
<button onclick="salvaFileDaTextarea()" style="background:#28a745; color:white; border:none; padding:0.4rem 1rem; border-radius:5px; font-weight:bold;"> | <button onclick="salvaFileDaTextarea()" style="background:#28a745; color:white; border:none; padding:0.4rem 1rem; border-radius:5px; font-weight:bold;">📅 Salva nel progetto</button> | ||
</div> | </div> | ||
<!-- | <!-- 📁 Caricamento File GPT --> | ||
<div style="margin-top:2rem;"> | <div style="margin-top:2rem;"> | ||
<h3> | <h3>📁 Carica File GPT</h3> | ||
<label>📁 Project: <input type="text" id="gpt-load-project" value="SSO_LinkedIn" /></label> | <label>📁 Project: <input type="text" id="gpt-load-project" value="SSO_LinkedIn" /></label> | ||
<label>📂 Subfolder: <input type="text" id="gpt-load-subfolder" value="php" /></label> | <label>📂 Subfolder: <input type="text" id="gpt-load-subfolder" value="php" /></label> | ||
<label>📄 Filename: <input type="text" id="gpt-load-filename" placeholder="es: testGPT.php" /></label> | <label>📄 Filename: <input type="text" id="gpt-load-filename" placeholder="es: testGPT.php" /></label> | ||
<button onclick="caricaFileGPT()"> | <button onclick="caricaFileGPT()">📁 Carica file</button> | ||
</div> | </div> | ||
Versione attuale delle 14:55, 4 ago 2025
🔧 Dashboard Operativa – Masticationpedia
Centro di comando per progetti, API, file e backup