doc-survival-kit 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of doc-survival-kit might be problematic. Click here for more details.
- package/diagram.html +92 -3
- package/diagram.js +1116 -132
- package/diagrammes.js +806 -159
- package/i18n/en.js +10 -1
- package/i18n/fr.js +10 -1
- package/images/img_1774709818351.png +0 -0
- package/images/img_1774711114086.png +0 -0
- package/images/img_1774711575731.png +0 -0
- package/images/img_1774712426980.png +0 -0
- package/package.json +1 -1
- package/style.css +82 -18
package/i18n/en.js
CHANGED
|
@@ -154,13 +154,22 @@ var i18n_en = {
|
|
|
154
154
|
diag_tool_rect: "Rectangle",
|
|
155
155
|
diag_tool_rounded: "Rounded rectangle",
|
|
156
156
|
diag_tool_db: "Database",
|
|
157
|
-
diag_tool_cloud: "External service /
|
|
157
|
+
diag_tool_cloud: "External service / Ellipse",
|
|
158
|
+
diag_tool_nuage: "Cloud",
|
|
159
|
+
diag_tool_actor: "Actor (UML)",
|
|
158
160
|
diag_tool_text: "Free text",
|
|
159
161
|
diag_tool_postit: "Post-it (no arrow connection)",
|
|
160
162
|
diag_tool_arrow: "Arrow (click source → click target, or drag from a connection dot)",
|
|
161
163
|
diag_tool_delete: "Delete selection (Del)",
|
|
162
164
|
diag_first_save_error: "File not found. Select the folder containing <strong>diagrammes.js</strong>.",
|
|
163
165
|
diag_edit_text: "Edit text",
|
|
166
|
+
diag_tool_table: "Table",
|
|
167
|
+
diag_table_title: "Edit table",
|
|
168
|
+
diag_table_add_row: "+ Row",
|
|
169
|
+
diag_table_remove_row: "− Row",
|
|
170
|
+
diag_table_add_col: "+ Column",
|
|
171
|
+
diag_table_remove_col: "− Column",
|
|
172
|
+
diag_table_btn_save: "Save",
|
|
164
173
|
|
|
165
174
|
// Admin
|
|
166
175
|
admin_subtitle: "data reset",
|
package/i18n/fr.js
CHANGED
|
@@ -154,13 +154,22 @@ var i18n_fr = {
|
|
|
154
154
|
diag_tool_rect: "Rectangle",
|
|
155
155
|
diag_tool_rounded: "Rectangle arrondi",
|
|
156
156
|
diag_tool_db: "Base de données",
|
|
157
|
-
diag_tool_cloud: "Service externe /
|
|
157
|
+
diag_tool_cloud: "Service externe / Ellipse",
|
|
158
|
+
diag_tool_nuage: "Nuage",
|
|
159
|
+
diag_tool_actor: "Acteur (UML)",
|
|
158
160
|
diag_tool_text: "Texte libre",
|
|
159
161
|
diag_tool_postit: "Post-it (sans connexion de flèche)",
|
|
160
162
|
diag_tool_arrow: "Flèche (clic source → clic cible, ou drag depuis un point de connexion)",
|
|
161
163
|
diag_tool_delete: "Supprimer la sélection (Del)",
|
|
162
164
|
diag_first_save_error: "Fichier introuvable. Sélectionne le dossier contenant <strong>diagrammes.js</strong>.",
|
|
163
165
|
diag_edit_text: "Modifier le texte",
|
|
166
|
+
diag_tool_table: "Tableau",
|
|
167
|
+
diag_table_title: "Éditer le tableau",
|
|
168
|
+
diag_table_add_row: "+ Ligne",
|
|
169
|
+
diag_table_remove_row: "− Ligne",
|
|
170
|
+
diag_table_add_col: "+ Colonne",
|
|
171
|
+
diag_table_remove_col: "− Colonne",
|
|
172
|
+
diag_table_btn_save: "Valider",
|
|
164
173
|
|
|
165
174
|
// Admin
|
|
166
175
|
admin_subtitle: "réinitialisation des données",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doc-survival-kit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Dashboard personnel offline : diagrammes, tâches, notes et liens dans un seul fichier HTML — fonctionne sans serveur via file://",
|
|
5
5
|
"bin": {
|
|
6
6
|
"doc-survival-kit": "./bin/cli.js"
|
package/style.css
CHANGED
|
@@ -990,6 +990,7 @@ section.collapsed .links {
|
|
|
990
990
|
}
|
|
991
991
|
.note-content table {
|
|
992
992
|
width: 100%;
|
|
993
|
+
table-layout: fixed;
|
|
993
994
|
border-collapse: collapse;
|
|
994
995
|
font-size: 0.8rem;
|
|
995
996
|
}
|
|
@@ -999,6 +1000,8 @@ section.collapsed .links {
|
|
|
999
1000
|
border: 1px solid #e7e5e4;
|
|
1000
1001
|
text-align: left;
|
|
1001
1002
|
vertical-align: top;
|
|
1003
|
+
overflow-wrap: break-word;
|
|
1004
|
+
word-break: break-word;
|
|
1002
1005
|
}
|
|
1003
1006
|
.note-content table th {
|
|
1004
1007
|
font-family: "Cascadia Code", "SF Mono", "Consolas", monospace;
|
|
@@ -1110,6 +1113,16 @@ section.collapsed .links {
|
|
|
1110
1113
|
color: #fff;
|
|
1111
1114
|
border-color: #292524;
|
|
1112
1115
|
}
|
|
1116
|
+
.diagram-back-btn {
|
|
1117
|
+
color: #f97316;
|
|
1118
|
+
border-color: #fed7aa;
|
|
1119
|
+
background: #fff7ed;
|
|
1120
|
+
}
|
|
1121
|
+
.diagram-back-btn:hover {
|
|
1122
|
+
background: #f97316 !important;
|
|
1123
|
+
color: #fff !important;
|
|
1124
|
+
border-color: #f97316 !important;
|
|
1125
|
+
}
|
|
1113
1126
|
.diagram-sep {
|
|
1114
1127
|
color: #d6d3d1;
|
|
1115
1128
|
font-size: 1rem;
|
|
@@ -1225,7 +1238,7 @@ section.collapsed .links {
|
|
|
1225
1238
|
.diagram-list-panel {
|
|
1226
1239
|
position: fixed;
|
|
1227
1240
|
top: 48px;
|
|
1228
|
-
left:
|
|
1241
|
+
left: 0;
|
|
1229
1242
|
width: 220px;
|
|
1230
1243
|
height: calc(100vh - 48px);
|
|
1231
1244
|
background: #fff;
|
|
@@ -1233,11 +1246,12 @@ section.collapsed .links {
|
|
|
1233
1246
|
z-index: 15;
|
|
1234
1247
|
display: flex;
|
|
1235
1248
|
flex-direction: column;
|
|
1236
|
-
|
|
1249
|
+
transform: translateX(calc(-100% - 20px));
|
|
1250
|
+
transition: transform 0.2s ease, width 0.2s ease;
|
|
1237
1251
|
box-shadow: 3px 0 10px rgba(0, 0, 0, 0.06);
|
|
1238
1252
|
}
|
|
1239
1253
|
.diagram-list-panel.open {
|
|
1240
|
-
|
|
1254
|
+
transform: translateX(0);
|
|
1241
1255
|
}
|
|
1242
1256
|
.diagram-list-header {
|
|
1243
1257
|
display: flex;
|
|
@@ -1291,27 +1305,48 @@ section.collapsed .links {
|
|
|
1291
1305
|
.diagram-list-item.active {
|
|
1292
1306
|
background: #fff7ed;
|
|
1293
1307
|
}
|
|
1294
|
-
.diagram-list-
|
|
1295
|
-
|
|
1308
|
+
.diagram-list-grip {
|
|
1309
|
+
display: none;
|
|
1296
1310
|
}
|
|
1297
|
-
.diagram-list-
|
|
1298
|
-
|
|
1299
|
-
background: #fff7ed;
|
|
1311
|
+
.diagram-list-group {
|
|
1312
|
+
display: block;
|
|
1300
1313
|
}
|
|
1301
|
-
.diagram-list-
|
|
1302
|
-
|
|
1303
|
-
background: #fff7ed;
|
|
1314
|
+
.diagram-list-children {
|
|
1315
|
+
display: block;
|
|
1304
1316
|
}
|
|
1305
|
-
.diagram-list-
|
|
1306
|
-
font-size: 0.
|
|
1307
|
-
color: #
|
|
1308
|
-
cursor:
|
|
1317
|
+
.diagram-list-expand {
|
|
1318
|
+
font-size: 0.65rem;
|
|
1319
|
+
color: #a8a29e;
|
|
1320
|
+
cursor: pointer;
|
|
1309
1321
|
flex-shrink: 0;
|
|
1310
1322
|
user-select: none;
|
|
1311
|
-
|
|
1323
|
+
width: 1em;
|
|
1324
|
+
text-align: center;
|
|
1325
|
+
transition: color 0.1s;
|
|
1312
1326
|
}
|
|
1313
|
-
.diagram-list-
|
|
1314
|
-
|
|
1327
|
+
.diagram-list-expand:hover {
|
|
1328
|
+
color: #292524;
|
|
1329
|
+
}
|
|
1330
|
+
.diagram-list-add {
|
|
1331
|
+
opacity: 0;
|
|
1332
|
+
font-size: 0.85rem;
|
|
1333
|
+
padding: 1px 5px;
|
|
1334
|
+
border-radius: 4px;
|
|
1335
|
+
color: #f97316;
|
|
1336
|
+
background: #fff7ed;
|
|
1337
|
+
cursor: pointer;
|
|
1338
|
+
border: none;
|
|
1339
|
+
flex-shrink: 0;
|
|
1340
|
+
transition: opacity 0.1s, background 0.1s;
|
|
1341
|
+
font-weight: 600;
|
|
1342
|
+
line-height: 1.4;
|
|
1343
|
+
}
|
|
1344
|
+
.diagram-list-item:hover .diagram-list-add {
|
|
1345
|
+
opacity: 1;
|
|
1346
|
+
}
|
|
1347
|
+
.diagram-list-add:hover {
|
|
1348
|
+
background: #f97316;
|
|
1349
|
+
color: #fff;
|
|
1315
1350
|
}
|
|
1316
1351
|
.diagram-list-name {
|
|
1317
1352
|
font-size: 0.8rem;
|
|
@@ -1340,6 +1375,31 @@ section.collapsed .links {
|
|
|
1340
1375
|
background: #ef4444;
|
|
1341
1376
|
color: #fff;
|
|
1342
1377
|
}
|
|
1378
|
+
.link-picker-item {
|
|
1379
|
+
padding: 8px 14px;
|
|
1380
|
+
font-size: 0.82rem;
|
|
1381
|
+
color: #292524;
|
|
1382
|
+
cursor: pointer;
|
|
1383
|
+
transition: background 0.1s;
|
|
1384
|
+
white-space: nowrap;
|
|
1385
|
+
overflow: hidden;
|
|
1386
|
+
text-overflow: ellipsis;
|
|
1387
|
+
}
|
|
1388
|
+
.link-picker-item:hover {
|
|
1389
|
+
background: #f5f5f4;
|
|
1390
|
+
}
|
|
1391
|
+
.link-picker-new {
|
|
1392
|
+
padding: 8px 14px;
|
|
1393
|
+
font-size: 0.82rem;
|
|
1394
|
+
color: #f97316;
|
|
1395
|
+
cursor: pointer;
|
|
1396
|
+
font-weight: 600;
|
|
1397
|
+
border-top: 1px solid #e7e5e4;
|
|
1398
|
+
transition: background 0.1s;
|
|
1399
|
+
}
|
|
1400
|
+
.link-picker-new:hover {
|
|
1401
|
+
background: #fff7ed;
|
|
1402
|
+
}
|
|
1343
1403
|
|
|
1344
1404
|
/* ── Palette de couleurs ── */
|
|
1345
1405
|
.diagram-color-panel {
|
|
@@ -1386,6 +1446,10 @@ section.collapsed .links {
|
|
|
1386
1446
|
.color-dot.t-teal {
|
|
1387
1447
|
background: #0d9488;
|
|
1388
1448
|
}
|
|
1449
|
+
.color-dot.t-white {
|
|
1450
|
+
background: #fff;
|
|
1451
|
+
border: 1.5px solid #d4d4d4;
|
|
1452
|
+
}
|
|
1389
1453
|
.diagram-color-edit {
|
|
1390
1454
|
font-size: 1rem;
|
|
1391
1455
|
width: 24px;
|