@amiable-dev/docusaurus-plugin-stentorosaur 0.21.8 → 0.21.10
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.
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +12 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.d.ts.map +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAA6E,MAAM,SAAS,CAAC;AAInI,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAqS1C;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAalD;AAED,wBAA8B,YAAY,CACxC,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,KAAK,EAAC,aAAa,EAAE,UAAU,EAA6E,MAAM,SAAS,CAAC;AAInI,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAqS1C;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAalD;AAED,wBAA8B,YAAY,CACxC,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CA0kB7B;AAED,OAAO,EAAC,KAAK,aAAa,EAAC,MAAM,SAAS,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -330,8 +330,14 @@ async function pluginStatus(context, options) {
|
|
|
330
330
|
systemMap.get(reading.svc).push(reading);
|
|
331
331
|
}
|
|
332
332
|
// Calculate stats for each system
|
|
333
|
+
// Filter to only include systems that are in the entities configuration (Issue #62)
|
|
334
|
+
const configuredSystemNames = new Set(entities.map(e => e.name.toLowerCase()));
|
|
333
335
|
items = [];
|
|
334
336
|
for (const [systemName, readings] of systemMap.entries()) {
|
|
337
|
+
// Skip systems not in the entities configuration
|
|
338
|
+
if (configuredSystemNames.size > 0 && !configuredSystemNames.has(systemName.toLowerCase())) {
|
|
339
|
+
continue;
|
|
340
|
+
}
|
|
335
341
|
// Sort by timestamp (most recent first)
|
|
336
342
|
readings.sort((a, b) => b.t - a.t);
|
|
337
343
|
const latest = readings[0];
|
|
@@ -598,7 +604,12 @@ async function pluginStatus(context, options) {
|
|
|
598
604
|
const currentData = await fs_extra_1.default.readJson(sourceCurrentJson);
|
|
599
605
|
if (Array.isArray(currentData) && currentData.length > 0) {
|
|
600
606
|
console.log('[docusaurus-plugin-stentorosaur] Generating system files from current.json');
|
|
601
|
-
|
|
607
|
+
let systemFiles = convertReadingsToSystemFiles(currentData);
|
|
608
|
+
// Filter to only include configured entities (Issue #62)
|
|
609
|
+
if (entities.length > 0) {
|
|
610
|
+
const configuredSystemNames = new Set(entities.map(e => e.name.toLowerCase()));
|
|
611
|
+
systemFiles = systemFiles.filter(sf => configuredSystemNames.has(sf.name.toLowerCase()));
|
|
612
|
+
}
|
|
602
613
|
for (const systemFile of systemFiles) {
|
|
603
614
|
const fileName = systemFile.name
|
|
604
615
|
.toLowerCase()
|
package/lib/version.d.ts
CHANGED
package/lib/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,cAAc,YAAY,CAAC"}
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amiable-dev/docusaurus-plugin-stentorosaur",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.10",
|
|
4
4
|
"description": "A Docusaurus plugin for displaying status monitoring dashboard powered by GitHub Issues and Actions, similar to Upptime",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-status.d.ts",
|