style
This commit is contained in:
parent
ad9476dbd7
commit
a85b9fd7ee
19
package-lock.json
generated
19
package-lock.json
generated
@ -29,6 +29,7 @@
|
||||
"devDependencies": {
|
||||
"axios": "^1.6.7",
|
||||
"cheerio": "^1.0.0-rc.12",
|
||||
"csv-parser": "^3.1.0",
|
||||
"fs": "^0.0.1-security",
|
||||
"https": "^1.0.0",
|
||||
"node-fetch": "^3.2.10",
|
||||
@ -1627,6 +1628,18 @@
|
||||
"url": "https://github.com/sponsors/fb55"
|
||||
}
|
||||
},
|
||||
"node_modules/csv-parser": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/csv-parser/-/csv-parser-3.1.0.tgz",
|
||||
"integrity": "sha512-egOwFF+imkpAE0gTrbzdf7c322lonHAmLPT2Ou1b5lhTSeXyfEdaMBdWuVeUJ6fsYuR0/ENonFo16kEXWKOQFw==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"csv-parser": "bin/csv-parser"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 10"
|
||||
}
|
||||
},
|
||||
"node_modules/dashdash": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
|
||||
@ -6819,6 +6832,12 @@
|
||||
"integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==",
|
||||
"dev": true
|
||||
},
|
||||
"csv-parser": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/csv-parser/-/csv-parser-3.1.0.tgz",
|
||||
"integrity": "sha512-egOwFF+imkpAE0gTrbzdf7c322lonHAmLPT2Ou1b5lhTSeXyfEdaMBdWuVeUJ6fsYuR0/ENonFo16kEXWKOQFw==",
|
||||
"dev": true
|
||||
},
|
||||
"dashdash": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
|
||||
|
@ -29,6 +29,7 @@
|
||||
"devDependencies": {
|
||||
"axios": "^1.6.7",
|
||||
"cheerio": "^1.0.0-rc.12",
|
||||
"csv-parser": "^3.1.0",
|
||||
"fs": "^0.0.1-security",
|
||||
"https": "^1.0.0",
|
||||
"node-fetch": "^3.2.10",
|
||||
|
@ -8,38 +8,63 @@ a {
|
||||
padding: 1em;
|
||||
margin-right: 1ch;
|
||||
}
|
||||
|
||||
.post-message {
|
||||
margin: 1em;
|
||||
border-left: 3px solid #ccc;
|
||||
padding-left: 1em;
|
||||
|
||||
}
|
||||
|
||||
select {
|
||||
padding: 1rem;
|
||||
margin: 1em 0;
|
||||
border: solid 3px transparent;
|
||||
}
|
||||
|
||||
label {
|
||||
float: left;
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
/**
|
||||
inputs
|
||||
*/
|
||||
input{
|
||||
margin-bottom: 0.5rem !important;
|
||||
min-height: auto !important;
|
||||
textarea {
|
||||
min-width: 300px;
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
input:hover, textarea:hover {
|
||||
border: solid 1px black;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input, textarea {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem !important;
|
||||
border-radius: 3px;
|
||||
padding: 1rem 2rem;
|
||||
background: white;
|
||||
}
|
||||
|
||||
input.button {
|
||||
}
|
||||
|
||||
.cw-input, .file-input {
|
||||
min-height: 2em !important;
|
||||
background: #ccccff;
|
||||
}
|
||||
|
||||
.wip {
|
||||
color: grey;
|
||||
padding: 1rem;
|
||||
margin-top: 1em;
|
||||
background: #ccccff;
|
||||
}
|
||||
|
||||
.wip input {
|
||||
background: grey;
|
||||
}
|
||||
@ -47,20 +72,24 @@ input{
|
||||
.account__avatar-overlay {
|
||||
border: solid 3px transparent;
|
||||
}
|
||||
|
||||
.account__avatar-overlay:hover {
|
||||
cursor: pointer;
|
||||
border: solid 3px grey;
|
||||
}
|
||||
|
||||
.images {
|
||||
clear: both;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.images .clickable {
|
||||
width: 20%;
|
||||
margin-right: 1em;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.images .clickable:hover {
|
||||
background: #2F6FAB;
|
||||
}
|
||||
@ -74,15 +103,18 @@ input{
|
||||
margin: 2em;
|
||||
border: solid 2px #2F6FAB;
|
||||
}
|
||||
|
||||
fieldset.wip {
|
||||
margin-top: 12em;
|
||||
}
|
||||
|
||||
.time_spans_choice {
|
||||
padding: 0.5rem;
|
||||
display: block;
|
||||
width: 10rem;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.time_spans_choice:hover {
|
||||
cursor: pointer;
|
||||
color: dodgerblue;
|
||||
|
@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
var express = require('express')
|
||||
var router = express.Router()
|
||||
var sqlite3 = require('sqlite3')
|
||||
@ -299,7 +297,6 @@ router.get('/dispatch-publication-in-time', function (req, res, next) {
|
||||
})
|
||||
|
||||
|
||||
|
||||
router.post('/direct-post', function (req, res, next) {
|
||||
|
||||
let env = require('dotenv').config({path: __dirname + '/../.env'})
|
||||
@ -352,6 +349,7 @@ router.post('/direct-post', function (req, res, next) {
|
||||
// TODO prise en charge des fichiers joints
|
||||
if (req.body.fichier) {
|
||||
console.log(' envoi avec fichier')
|
||||
params.image = req.body.fichier
|
||||
sendPostMastodon(params, masto)
|
||||
res.render('index', {bodyReq: req.body})
|
||||
}
|
||||
|
@ -29,9 +29,13 @@ block content
|
||||
label
|
||||
span Content warning (optionnel)
|
||||
input.cw-input.autosuggest-textarea__textarea(name="cw", type="text", width="500", height="2em")
|
||||
br
|
||||
span Qu’avez-vous en tête ?
|
||||
textarea.main-input.autosuggest-textarea__textarea(name="message", width="500", lines="20",autofocus="autofocus")
|
||||
br
|
||||
div.composer--publisher
|
||||
//input.button.primary(type="submit", value="ajouter à la file d'attente")
|
||||
input.button.primary(type="submit", value="poster tout de suite")
|
||||
|
||||
fieldset.wip
|
||||
label
|
||||
|
Loading…
x
Reference in New Issue
Block a user