Compare commits

...

58 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
root f0fb696a0e fix: release
continuous-integration/drone/tag Build is passing
2026-05-18 00:50:26 +00:00
m.schnitzler 8b83bbe16f renovate (#174)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-05-18 00:50:06 +00:00
root 899eba65dd chore: ignore .vscode-test/ dans eslint/prettier/gitleaks
continuous-integration/drone/tag Build is passing
2026-05-17 14:48:59 +02:00
root ef476c0891 fix: release
continuous-integration/drone/tag Build is passing
2026-05-15 00:41:40 +00:00
m.schnitzler c6ceff6841 renovate (#173)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-05-15 00:41:12 +00:00
root 25f8680fce fix: release
continuous-integration/drone/tag Build is passing
2026-05-13 01:28:50 +00:00
m.schnitzler b25fcc8fcf renovate (#172)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-05-13 01:28:36 +00:00
root dc9863ccc4 fix: release
continuous-integration/drone/tag Build is passing
2026-05-11 04:56:34 +00:00
m.schnitzler 229e0f4c03 renovate (#171)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-05-11 04:56:17 +00:00
root 4ea75811de fix: release
continuous-integration/drone/tag Build is passing
2026-05-10 05:03:49 +00:00
m.schnitzler 7cf1d6f7dc renovate (#170)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-05-10 05:03:14 +00:00
root b8e2339c9c fix: release
continuous-integration/drone/tag Build is passing
2026-05-09 09:40:49 +00:00
m.schnitzler d29a1bea80 renovatemajor (#169)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-05-09 09:40:32 +00:00
root 8d282828c0 fix: ajout @eslint/js et globals manquants pour eslint.config.js
continuous-integration/drone/tag Build is passing
2026-05-08 23:24:10 +02:00
root 07a89c5829 fix: release
continuous-integration/drone/tag Build is passing
2026-05-06 00:48:37 +00:00
m.schnitzler dac0a7b6fa renovate (#168)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-05-06 00:48:23 +00:00
root a574802ffb fix: release
continuous-integration/drone/tag Build is passing
2026-04-30 23:55:22 +00:00
m.schnitzler 228211991d renovate (#167)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-04-30 23:55:13 +00:00
root be832c4df4 up 2026-04-30 15:02:16 +02:00
root ff7da312a0 fix: cleanup todo.txt et suppression vsix repo
continuous-integration/drone/tag Build is passing
2026-04-30 14:54:14 +02:00
root af175e078c feature: cleanup helloWorld, focus event nomme, tests extractProjectName
continuous-integration/drone/tag Build is passing
2026-04-30 14:39:38 +02:00
root 09c3aa6fa6 fix: ajout types node/mocha/vscode dans tsconfig pour TS 6
continuous-integration/drone/tag Build is passing
2026-04-29 08:20:31 +02:00
root 84d69cad92 fix: release
continuous-integration/drone/tag Build is failing
2026-04-29 04:40:57 +00:00
m.schnitzler 30aa53c049 renovate (#166)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-04-29 04:40:04 +00:00
root e5c2b7d428 up 2026-04-28 00:16:18 +02:00
root 742b91bd90 fix: release
continuous-integration/drone/tag Build is failing
2026-04-22 02:13:10 +00:00
m.schnitzler 94e9b3de43 renovate (#165)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-04-22 02:12:41 +00:00
root 76a01082fe fix: release
continuous-integration/drone/tag Build is failing
2026-04-19 02:59:00 +00:00
m.schnitzler 90f630d07c renovate (#164)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-04-19 02:58:30 +00:00
root 2361c555ed fix: release
continuous-integration/drone/tag Build is failing
2026-04-17 03:47:12 +00:00
m.schnitzler 4345e9cf92 renovate (#163)
Co-authored-by: m.schnitzler <martin.wb.2015@gmail.com>
Co-committed-by: m.schnitzler <martin.wb.2015@gmail.com>
2026-04-17 03:46:30 +00:00
12 changed files with 777 additions and 747 deletions
+1
View File
@@ -18,6 +18,7 @@ steps:
commands: commands:
- npm install -g vsce - npm install -g vsce
- npm ci - npm ci
- xvfb-run -a npm test
- vsce package - vsce package
- name: gitea_release - name: gitea_release
+3 -1
View File
@@ -1,5 +1,4 @@
out out
dist
node_modules node_modules
.vscode-test/ .vscode-test/
*.vsix *.vsix
@@ -31,3 +30,6 @@ coverage/
.config/ .config/
data/ data/
.aider* .aider*
/dist/
tsconfig.tsbuildinfo
.twig-cs-fixer.cache
+5
View File
@@ -0,0 +1,5 @@
[extend]
useDefault = true
[allowlist]
paths = ['''\.vscode-test/''']
+2 -1
View File
@@ -1,8 +1,9 @@
{ {
"*.js": ["eslint --fix", "prettier --write"], "*.js": ["eslint --fix", "prettier --write"],
"*.ts": ["eslint --fix", "prettier --write"],
"*.css": ["prettier --write"], "*.css": ["prettier --write"],
"*.jsx": ["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"], "*.php": ["php-cs-fixer fix --config .php-cs-fixer.php"],
"Dockerfile": ["hadolint --ignore DL3002 --ignore DL3003 --ignore DL3008 --ignore DL3013 --ignore DL3016 --ignore DL3022"], "Dockerfile": ["hadolint --ignore DL3002 --ignore DL3003 --ignore DL3008 --ignore DL3013 --ignore DL3016 --ignore DL3022"],
"*.md": ["markdownlint --fix"], "*.md": ["markdownlint --fix"],
+2
View File
@@ -1 +1,3 @@
min-release-age=1 min-release-age=1
fund=false
audit=false
+4
View File
@@ -4,3 +4,7 @@ log/*
node_modules/* node_modules/*
coverage/* coverage/*
data/* 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'; import globals from 'globals';
export default [ 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, js.configs.recommended,
{ {
files: ['**/*.ts'], files: ['**/*.ts'],
@@ -61,6 +63,6 @@ export default [
}, },
}, },
{ {
ignores: ['out/', 'dist/', '**/*.d.ts'], ignores: ['legacy/', 'out/', 'dist/', '.vscode-test/', '**/*.d.ts'],
}, },
]; ];
+699 -704
View File
File diff suppressed because it is too large Load Diff
+13 -15
View File
@@ -1,7 +1,7 @@
{ {
"name": "vscodestat", "name": "vscodestat",
"displayName": "vscodestat", "displayName": "vscodestat",
"version": "1.1.156", "version": "1.6.0",
"description": "", "description": "",
"categories": [ "categories": [
"Other" "Other"
@@ -25,10 +25,6 @@
}, },
"contributes": { "contributes": {
"commands": [ "commands": [
{
"command": "vscodestat.helloWorld",
"title": "Hello World"
},
{ {
"command": "vscodestat.setUrl", "command": "vscodestat.setUrl",
"title": "setUrl" "title": "setUrl"
@@ -53,22 +49,24 @@
"onStartupFinished" "onStartupFinished"
], ],
"devDependencies": { "devDependencies": {
"@eslint/js": "^10.0.1",
"@types/mocha": "^10.0.10", "@types/mocha": "^10.0.10",
"@types/node": "25.x", "@types/node": "26.x",
"@types/vscode": "^1.115.0", "@types/vscode": "^1.125.0",
"@typescript-eslint/eslint-plugin": "^8.58.2", "@typescript-eslint/eslint-plugin": "^8.62.0",
"@typescript-eslint/parser": "^8.58.2", "@typescript-eslint/parser": "^8.62.0",
"@vscode/test-cli": "^0.0.12", "@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^2.5.2", "@vscode/test-electron": "^3.0.0",
"eslint": "^10.1.0", "eslint": "^10.1.0",
"globals": "^17.7.0",
"husky": "^9.1.7", "husky": "^9.1.7",
"lint-staged": "^16.4.0", "lint-staged": "^17.0.8",
"prettier": "^3.8.3", "prettier": "^3.9.1",
"ts-api-utils": "^2.5.0", "ts-api-utils": "^2.5.0",
"typescript": "^6.0.2" "typescript": "^6.0.3"
}, },
"engines": { "engines": {
"vscode": "^1.115.0" "vscode": "^1.125.0"
}, },
"icon": "icon.png", "icon": "icon.png",
"extensionKind": [ "extensionKind": [
+4 -10
View File
@@ -3,12 +3,6 @@ import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) { export function activate(context: vscode.ExtensionContext) {
console.log('Congratulations, your extension "vscodestat" is now active!'); console.log('Congratulations, your extension "vscodestat" is now active!');
// crée une commande de test
const disposable = vscode.commands.registerCommand('vscodestat.helloWorld', () => {
vscode.window.showInformationMessage('Hello World from vscodestat!');
});
context.subscriptions.push(disposable);
// commande pour definir l'url // commande pour definir l'url
const disposable2 = vscode.commands.registerCommand('vscodestat.setUrl', async () => { const disposable2 = vscode.commands.registerCommand('vscodestat.setUrl', async () => {
const url = await vscode.window.showInputBox({ const url = await vscode.window.showInputBox({
@@ -42,7 +36,7 @@ export function activate(context: vscode.ExtensionContext) {
console.log('Opened file:', filePath); console.log('Opened file:', filePath);
// vscode.window.showInformationMessage(`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' });
} }
}); });
@@ -52,13 +46,13 @@ export function activate(context: vscode.ExtensionContext) {
console.log('Saved file:', filePath); console.log('Saved file:', filePath);
// vscode.window.showInformationMessage(`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 // detecte un focus / blur de la fenetre vscode
vscode.window.onDidChangeWindowState(async event => { vscode.window.onDidChangeWindowState(async event => {
console.log('Window state changed:', event.focused); console.log('Window state changed:', event.focused);
await makeHttpRequest({ focus: event.focused }); await makeHttpRequest({ event: 'focus', focused: event.focused });
}); });
} }
@@ -69,7 +63,7 @@ export function deactivate() { }
* /root/docker/monitoringserver/controller/homeController.js * /root/docker/monitoringserver/controller/homeController.js
* => monitoringserver * => monitoringserver
*/ */
function extractProjectName(path: string) { export function extractProjectName(path: string) {
// des c'est l'un des fois l'autre ? // des c'est l'un des fois l'autre ?
// /root/docker/vscodestat/src/extension.ts // /root/docker/vscodestat/src/extension.ts
// \root\docker\vscodestat\src\extension.ts // \root\docker\vscodestat\src\extension.ts
+34 -9
View File
@@ -1,15 +1,40 @@
import * as assert from 'assert'; import * as assert from 'assert';
import { extractProjectName } from '../extension.js';
// You can import and use all API from the 'vscode' module suite('extractProjectName', () => {
// as well as import your extension to test it test('extrait le nom de projet depuis un path Linux /root/docker/X', () => {
import * as vscode from 'vscode'; assert.strictEqual(
// import * as myExtension from '../../extension'; extractProjectName('/root/docker/vscodestat/src/extension.ts'),
'vscodestat'
);
});
suite('Extension Test Suite', () => { test('extrait le nom de projet depuis un path Windows \\root\\docker\\X', () => {
vscode.window.showInformationMessage('Start all tests.'); assert.strictEqual(
extractProjectName('C:\\root\\docker\\monitoringserver\\controller\\homeController.js'),
'monitoringserver'
);
});
test('Sample test', () => { test('retourne null pour un path hors /docker/', () => {
assert.strictEqual(-1, [1, 2, 3].indexOf(5)); assert.strictEqual(extractProjectName('/home/user/projet/file.js'), null);
assert.strictEqual(-1, [1, 2, 3].indexOf(0)); });
test('retourne null pour un path vide', () => {
assert.strictEqual(extractProjectName(''), null);
});
test('extrait correctement quand le chemin contient docker plusieurs fois', () => {
assert.strictEqual(
extractProjectName('/root/docker/flatbay/lib/docker/foo.js'),
'flatbay'
);
});
test('gere les paths avec tirets et chiffres', () => {
assert.strictEqual(
extractProjectName('/root/docker/gextra6/bin/console'),
'gextra6'
);
}); });
}); });
+6 -5
View File
@@ -6,12 +6,13 @@
"lib": [ "lib": [
"ES2022" "ES2022"
], ],
"types": [
"node",
"mocha",
"vscode"
],
"sourceMap": true, "sourceMap": true,
"rootDir": "src", "rootDir": "src",
"strict": true /* enable all strict type-checking options */ "strict": true
/* 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. */
} }
} }