mirror of
https://github.com/marcogll/ap_pos.git
synced 2026-01-13 13:15:16 +00:00
feat: Update database location instructions and improve UI; remove unused table styles
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -16,3 +16,4 @@ dev-tasks.md
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
devtastks
|
||||
|
||||
2
app.js
2
app.js
@@ -1218,7 +1218,7 @@ async function initializeApp() {
|
||||
}
|
||||
|
||||
console.log('Activating client sub-tab...');
|
||||
activateClientSubTab('sub-tab-consult');
|
||||
activateClientSubTab('sub-tab-register');
|
||||
console.log('Clearing client record...');
|
||||
clearClientRecord();
|
||||
console.log('Populating footer...');
|
||||
|
||||
25
index.html
25
index.html
@@ -372,21 +372,6 @@
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="section" id="db-location-section">
|
||||
<h2>Ubicación y Exportación de Datos
|
||||
<span class="material-icons-outlined info-icon" id="db-info-icon" style="display: none;">help_outline</span>
|
||||
</h2>
|
||||
<div id="db-instructions" class="data-location-info hidden">
|
||||
<p>La base de datos (<code>ap-pos.db</code>) se encuentra dentro del contenedor de Docker. Para acceder o hacer un respaldo manual:</p>
|
||||
<ol>
|
||||
<li>Abre una terminal o línea de comandos.</li>
|
||||
<li>Ejecuta <code>docker ps</code> para encontrar el nombre o ID de tu contenedor (usualmente 'ap-pos').</li>
|
||||
<li>Entra al contenedor con: <code>docker exec -it ap-pos /bin/sh</code> (reemplaza 'ap-pos' si es necesario).</li>
|
||||
<li>Una vez dentro, la base de datos está en <code>/app/ap-pos.db</code>.</li>
|
||||
<li>Para copiarla a tu máquina local (desde fuera del contenedor), usa:<br><code>docker cp ap-pos:/app/ap-pos.db ./backup_BDD.db</code></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="credentials-section">
|
||||
<h2>Mis Credenciales</h2>
|
||||
<form id="formCredentials">
|
||||
@@ -448,6 +433,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="db-location-section">
|
||||
<h2>Ubicación y Exportación de Datos
|
||||
<span class="material-icons-outlined info-icon" id="db-info-icon" style="display: none;">help_outline</span>
|
||||
</h2>
|
||||
<div id="db-instructions" class="data-location-info hidden">
|
||||
<p>Toda la información de tu negocio (clientes, recibos, configuración) se guarda localmente. Para respaldar tus datos, simplemente copia el archivo correspondiente.</p>
|
||||
<p>Para usuarios avanzados, la base de datos (<code>ap-pos.db</code>) se encuentra dentro del contenedor de la aplicación. Puedes acceder a ella usando los comandos estándar de Docker para copiar el archivo.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
33
styles.css
33
styles.css
@@ -154,39 +154,6 @@ button:hover {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#tblMoves, #tblClients, #tblUsers {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#tblMoves th, #tblMoves td,
|
||||
#tblClients th, #tblClients td,
|
||||
#tblUsers th, #tblUsers td {
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
padding: 12px 15px;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#tblMoves td:last-child, #tblMoves th:last-child,
|
||||
#tblClients td:last-child, #tblClients th:last-child,
|
||||
#tblUsers td:last-child, #tblUsers th:last-child {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#tblMoves th, #tblClients th, #tblUsers th {
|
||||
background-color: #f8f9fa;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-weight: 500;
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
#tblMoves tbody tr:last-child td,
|
||||
#tblClients tbody tr:last-child td,
|
||||
#tblUsers tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
|
||||
Reference in New Issue
Block a user