passage des dependances en locale
This commit is contained in:
@@ -33,6 +33,12 @@ const DB_FILE = config.dbFile;
|
||||
// Création du routeur pour /autopost
|
||||
const autopostRouter = express.Router();
|
||||
|
||||
// Servir les fichiers statiques dans le contexte du routeur
|
||||
autopostRouter.use('/js', express.static(path.join(__dirname, '../node_modules/@tailwindcss/browser/dist')));
|
||||
|
||||
// Servir les fichiers jQuery depuis node_modules/jquery/dist
|
||||
autopostRouter.use('/jquery', express.static(path.join(__dirname, '../node_modules/jquery/dist')));
|
||||
|
||||
/* -------------------------------------------------------------------------
|
||||
Routes non protégées (login, logout) sous /autopost
|
||||
------------------------------------------------------------------------- */
|
||||
@@ -46,7 +52,7 @@ autopostRouter.get('/login', (req, res) => {
|
||||
<meta charset="UTF-8">
|
||||
<title>Login</title>
|
||||
<!-- Inclusion de Tailwind CSS via le CDN -->
|
||||
<script src="https://unpkg.com/@tailwindcss/browser@4"></script>
|
||||
<script src="js/index.global.js"></script>
|
||||
</head>
|
||||
<body class="bg-slate-900 flex items-center justify-center min-h-screen">
|
||||
<div class="bg-slate-700 p-8 rounded-lg shadow-md w-80">
|
||||
@@ -141,8 +147,8 @@ autopostRouter.get('/', (req, res) => {
|
||||
<meta charset="UTF-8">
|
||||
<title>Suivi Autopost</title>
|
||||
<!-- Inclusion de Tailwind CSS et jQuery -->
|
||||
<script src="https://unpkg.com/@tailwindcss/browser@4"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script src="js/index.global.js"></script>
|
||||
<script src="/jquery/jquery.min.js"></script>
|
||||
</head>
|
||||
<body class="bg-slate-900 text-white font-sans p-4">
|
||||
<!-- Conteneur "fluid" -->
|
||||
|
||||
Reference in New Issue
Block a user