Compare commits

..

27 Commits

Author SHA1 Message Date
root 685697e470 fix: "renovate" 2026-06-30 09:05:25 +00:00
root 94b058a6e7 feature: lance les tests (xvfb-run npm test) dans la CI Drone avant le packaging vsix
continuous-integration/drone/tag Build is passing
2026-06-25 22:30:24 +02:00
root a896a8e7fc fix: nettoyage commentaires boilerplate yo-code dans tsconfig (JSON strict valide) 2026-06-25 22:14:56 +02:00
root a05d2218c6 fix: eslint reportUnusedDisableDirectives error (sweep flotte) + nettoyage
continuous-integration/drone/tag Build is passing
2026-06-25 00:25:49 +02:00
root 8908a32a68 feature: sweep flotte (propagation libs copy-first model/monitoring/requestPromise/influxdb, config eslint/lintstaged/husky, migration TS, avancement conformite migrations Vite)
continuous-integration/drone/tag Build is passing
2026-06-24 00:28:06 +02:00
root 695d1c1b50 feature: sweep flotte (propagation libs copy-first, migration TS, chantiers en cours)
continuous-integration/drone/tag Build is passing
2026-06-23 17:43:28 +02:00
root 7da16a82e5 chore: audit securite (todo.txt)
todo.txt
2026-06-21 08:26:17 +02:00
root c297beb494 fix: release
continuous-integration/drone/tag Build is passing
2026-06-20 00:43:29 +00:00
m.schnitzler da5bbfe1a8 renovate (#181)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-06-20 00:43:13 +00:00
root 5b116e016c feature: tag source:vscode sur events open/save + .npmrc fund/audit 2026-06-14 22:43:42 +02:00
root 39b5d46122 fix: release
continuous-integration/drone/tag Build is passing
2026-06-12 00:14:22 +00:00
m.schnitzler fa606b745d renovate (#180)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-06-12 00:14:08 +00:00
root b98b3db80b feature: robots.txt->sitemap, cleanup tooling (twig-cs-fixer/c8rc), maj libs flotte
continuous-integration/drone/tag Build is passing
2026-06-11 18:06:50 +02:00
root 44b8302801 up 2026-06-09 14:00:08 +02:00
root b16b775efb chore: harmonisation flotte (ignores legacy/ eslint/prettier/dockerignore, garde-fou vite watch.ignored, Dockerfile npm ci) 2026-06-06 08:14:12 +02:00
root f332115e6a fix: release
continuous-integration/drone/tag Build is passing
2026-06-03 00:40:20 +00:00
m.schnitzler 24a26551ce renovate (#179)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-06-03 00:40:08 +00:00
root ef8c92a4b4 chore: retrait du hook myhtmlvalidate (lib archivée) 2026-06-03 02:01:46 +02:00
root bf88d3526f fix: release
continuous-integration/drone/tag Build is passing
2026-06-02 02:08:43 +00:00
m.schnitzler c70435e58a renovate (#178)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-06-02 02:08:12 +00:00
root 852901b3d4 fix: release
continuous-integration/drone/tag Build is passing
2026-06-01 01:36:27 +00:00
m.schnitzler 569b8e9fb8 renovate (#177)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-06-01 01:36:08 +00:00
root 8cdded7043 chore: normalise ignore dist/ & tsconfig.tsbuildinfo 2026-05-31 18:19:15 +02:00
root 7513901a40 fix: release
continuous-integration/drone/tag Build is passing
2026-05-27 01:13:29 +00:00
m.schnitzler 93e52dff3d renovate (#176)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-05-27 01:13:13 +00:00
root cc613f0ba2 fix: release
continuous-integration/drone/tag Build is passing
2026-05-19 23:48:22 +00:00
m.schnitzler 89c79b096f renovate (#175)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-05-19 23:48:10 +00:00
11 changed files with 646 additions and 703 deletions
+1
View File
@@ -18,6 +18,7 @@ steps:
commands:
- npm install -g vsce
- npm ci
- xvfb-run -a npm test
- vsce package
- name: gitea_release
+3 -1
View File
@@ -1,5 +1,4 @@
out
dist
node_modules
.vscode-test/
*.vsix
@@ -31,3 +30,6 @@ coverage/
.config/
data/
.aider*
/dist/
tsconfig.tsbuildinfo
.twig-cs-fixer.cache
+2 -1
View File
@@ -1,8 +1,9 @@
{
"*.js": ["eslint --fix", "prettier --write"],
"*.ts": ["eslint --fix", "prettier --write"],
"*.css": ["prettier --write"],
"*.jsx": ["prettier --write"],
"*.html.twig": ["twig-cs-fixer lint --fix", "myhtmlvalidate -q"],
"*.tsx": ["prettier --write"],
"*.php": ["php-cs-fixer fix --config .php-cs-fixer.php"],
"Dockerfile": ["hadolint --ignore DL3002 --ignore DL3003 --ignore DL3008 --ignore DL3013 --ignore DL3016 --ignore DL3022"],
"*.md": ["markdownlint --fix"],
+2
View File
@@ -1 +1,3 @@
min-release-age=1
fund=false
audit=false
+3
View File
@@ -5,3 +5,6 @@ node_modules/*
coverage/*
data/*
.vscode-test/
/dist/
tsconfig.tsbuildinfo
legacy/*
+3 -1
View File
@@ -4,6 +4,8 @@ import tsplugin from '@typescript-eslint/eslint-plugin';
import globals from 'globals';
export default [
// remonte (et --fix supprime) tout eslint-disable inutile : regle deja off, inactive, ou qui ne tire pas
{ linterOptions: { reportUnusedDisableDirectives: 'error' } },
js.configs.recommended,
{
files: ['**/*.ts'],
@@ -61,6 +63,6 @@ export default [
},
},
{
ignores: ['out/', 'dist/', '.vscode-test/', '**/*.d.ts'],
ignores: ['legacy/', 'out/', 'dist/', '.vscode-test/', '**/*.d.ts'],
},
];
+618 -649
View File
File diff suppressed because it is too large Load Diff
+11 -11
View File
@@ -1,7 +1,7 @@
{
"name": "vscodestat",
"displayName": "vscodestat",
"version": "1.2.11",
"version": "1.6.0",
"description": "",
"categories": [
"Other"
@@ -51,22 +51,22 @@
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/mocha": "^10.0.10",
"@types/node": "25.x",
"@types/vscode": "^1.120.0",
"@typescript-eslint/eslint-plugin": "^8.59.3",
"@typescript-eslint/parser": "^8.59.3",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@types/node": "26.x",
"@types/vscode": "^1.125.0",
"@typescript-eslint/eslint-plugin": "^8.62.0",
"@typescript-eslint/parser": "^8.62.0",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.0.0",
"eslint": "^10.1.0",
"globals": "^17.6.0",
"globals": "^17.7.0",
"husky": "^9.1.7",
"lint-staged": "^17.0.5",
"prettier": "^3.8.3",
"lint-staged": "^17.0.8",
"prettier": "^3.9.1",
"ts-api-utils": "^2.5.0",
"typescript": "^6.0.3"
},
"engines": {
"vscode": "^1.120.0"
"vscode": "^1.125.0"
},
"icon": "icon.png",
"extensionKind": [
+2 -2
View File
@@ -36,7 +36,7 @@ export function activate(context: vscode.ExtensionContext) {
console.log('Opened file:', filePath);
// vscode.window.showInformationMessage(`Opened file: ${filePath}`);
await makeHttpRequest({ event: 'open', project: extractProjectName(filePath) });
await makeHttpRequest({ event: 'open', project: extractProjectName(filePath), source: 'vscode' });
}
});
@@ -46,7 +46,7 @@ export function activate(context: vscode.ExtensionContext) {
console.log('Saved file:', filePath);
// vscode.window.showInformationMessage(`Saved file: ${filePath}`);
await makeHttpRequest({ event: 'save', project: extractProjectName(filePath) });
await makeHttpRequest({ event: 'save', project: extractProjectName(filePath), source: 'vscode' });
});
// detecte un focus / blur de la fenetre vscode
-33
View File
@@ -1,33 +0,0 @@
REVIEW DE CODE — 2026-04-26
============================================
Extension VSCode (TypeScript) qui collecte des metriques sur
l'activite du user dans VSCode :
- ouverture de fichier / changement d'onglet (event 'open')
- sauvegarde de fichier (event 'save')
- focus/blur de la fenetre (event 'focus')
Envoie un POST JSON a la URL configuree (`vscodestat.url`).
NB : extension force-installed dans les containers vscode + vscodeluigi
(cf vscode/todo.txt). C'est l'extension de monitoring activite dev.
SECURITE
--------
[ ] makeHttpRequest envoie au serveur l'event sans auth
src/extension.ts : `fetch(url, { method: 'POST',
headers: ..., body: JSON.stringify(json) })`. Pas de token.
Cote serveur (cf monitoringserver/todo.txt), `/vscodestat` est
aussi sans auth => tout le monde peut envoyer des metriques.
BUGS / FRAGILITE
----------------
[ ] Pas de batching
Chaque event = 1 fetch. Pas de queue + flush periodique.
Si reseau down, perte d'events (pas de retry). A capper.
[ ] makeHttpRequest catch silencieux
src/extension.ts : catch + console.error. Pas de
retry, pas de notification user. Si serveur down, events
perdus.
+1 -5
View File
@@ -13,10 +13,6 @@
],
"sourceMap": true,
"rootDir": "src",
"strict": true /* enable all strict type-checking options */
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
"strict": true
}
}