Skip to content

Commit

Permalink
Merge pull request #28 from AntoineKM/fix/final-prod
Browse files Browse the repository at this point in the history
fix - final prod
  • Loading branch information
Oummy13 committed Jan 15, 2021
2 parents 3211168 + 666d807 commit 549f63d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Notes:
| updated_at | datetime |
| role | varchar(20) |

**Logs** *(Incomplet)*
**Logs**
| nr_logs | |
|------------ |---------------------- |
| id | int(11) |
Expand Down
2 changes: 1 addition & 1 deletion about.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<p class="preview-text-desc">Notre Dashboard simple d'utilisation et de compréhension permet le suivi de trame facilement et rapidement, grace notamment aux tries possibles des trames ainsi que des statistiques compréhensibles par tous.</p>
</div>
<div class="preview-slider">
<video class="video-item" autoplay loop playinline muted>
<video class="video-item" autoplay playsinline muted loop>
<source src="./assets/media/dashboard-preview-desktop.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
Expand Down
2 changes: 0 additions & 2 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* Browsers: last 6 version
*/



html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
Expand Down
14 changes: 4 additions & 10 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@ const init = () => {
initNavbarResponsive();
initModal();
initLocalization();
initForm('.form-contact', (response) => {
if (response.success) window.location.href = './';
});
initForm('.form-contact');
initForm('.form-forgot');
initForm('.form-recovery', (response) => {
if (response.success) window.location.href = './';
});
initForm('.form-recovery');
initForm('.form-login', (response) => {
if (response.success) loginSuccessHandler();
if (response.errors) loginErrorHandler('.form-login', response.errors);
Expand Down Expand Up @@ -158,10 +154,8 @@ const initForm = (formClass, successHandler = () => { }) => {
successHandler(response);
if (response.success) {
if (!$('.btn[type="submit"]').hasClass('btn-success')) {
$('.btn[type="submit"]').toggleClass('btn-success');
setTimeout(() => {
$('.btn[type="submit"]').toggleClass('btn-success');
}, 2000)
$('.btn[type="submit"]').toggleClass('btn-success').css('cursor', 'not-allowed');

}
} else {
if (!$('.btn[type="submit"]').hasClass('btn-error')) {
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</section>
<section id="video-preview">
<div class="video-wrapper container">
<video class="video-item" autoplay loop playinline muted>
<video class="video-item" autoplay playsinline muted loop>
<source src="./assets/media/dashboard-preview-desktop.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
Expand Down
17 changes: 14 additions & 3 deletions nr_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : lun. 11 jan. 2021 à 09:15
-- Généré le : ven. 15 jan. 2021 à 09:52
-- Version du serveur : 10.4.14-MariaDB
-- Version de PHP : 7.4.11

Expand Down Expand Up @@ -83,7 +83,8 @@ ALTER TABLE `nr_contact`
-- Index pour la table `nr_logs`
--
ALTER TABLE `nr_logs`
ADD PRIMARY KEY (`id`);
ADD PRIMARY KEY (`id`),
ADD KEY `logs_users_id` (`user_id`);

--
-- Index pour la table `nr_users`
Expand Down Expand Up @@ -111,7 +112,17 @@ ALTER TABLE `nr_logs`
-- AUTO_INCREMENT pour la table `nr_users`
--
ALTER TABLE `nr_users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- Contraintes pour les tables déchargées
--

--
-- Contraintes pour la table `nr_logs`
--
ALTER TABLE `nr_logs`
ADD CONSTRAINT `logs_users_id` FOREIGN KEY (`user_id`) REFERENCES `nr_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
Expand Down

0 comments on commit 549f63d

Please sign in to comment.