@jrpool/kilotest 60.1.1 → 60.1.3

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.
Files changed (59) hide show
  1. package/.htmlhintrc +29 -0
  2. package/error.html +1 -5
  3. package/index.test.ts +8 -2
  4. package/index.ts +5 -5
  5. package/lhm.plugin.json +1 -1
  6. package/linkValidation.test.ts +1 -0
  7. package/logo.svg +15 -0
  8. package/openapi-3.0.yaml +1 -1
  9. package/openapi.yaml +1 -1
  10. package/package.json +3 -2
  11. package/server.json +1 -1
  12. package/smokeTest.ts +1 -1
  13. package/style.css +199 -0
  14. package/util.ts +22 -3
  15. package/web/ai0BalanceForm/index.html +1 -6
  16. package/web/deleteNotesForm/index.html +3 -8
  17. package/web/deleteNotesForm/index.ts +1 -1
  18. package/web/enqueue/index.html +1 -6
  19. package/web/enqueueForm/index.html +3 -8
  20. package/web/enqueueForm/index.ts +1 -1
  21. package/web/expungeReportsForm/index.html +3 -8
  22. package/web/head.partial +6 -0
  23. package/web/hideReportForm/index.html +1 -6
  24. package/web/home/home.test.ts +1 -1
  25. package/web/home/index.html +53 -41
  26. package/web/home/index.ts +2 -3
  27. package/web/listDiagnoses/index.html +1 -6
  28. package/web/listIssues/index.html +1 -6
  29. package/web/listPages/index.html +1 -6
  30. package/web/listRules/index.html +1 -6
  31. package/web/listTopIssues/index.html +1 -6
  32. package/web/listViolators/index.html +1 -6
  33. package/web/manage/index.html +1 -6
  34. package/web/manage/index.ts +2 -3
  35. package/web/metrics/index.html +1 -6
  36. package/web/privacy/index.html +1 -6
  37. package/web/privacy/index.ts +2 -3
  38. package/web/pruneReportsForm/index.html +3 -8
  39. package/web/reannotate/index.html +1 -6
  40. package/web/reannotate/index.ts +2 -2
  41. package/web/reannotateForm/index.html +1 -6
  42. package/web/renewWCAG/index.html +1 -6
  43. package/web/renewWCAG/index.ts +2 -2
  44. package/web/renewWCAGForm/index.html +2 -7
  45. package/web/renewWCAGForm/index.ts +2 -3
  46. package/web/reportDeletion.ts +1 -1
  47. package/web/requestNewTest/index.html +1 -6
  48. package/web/requestNewTestForm/index.html +1 -6
  49. package/web/requestNewTestForm/index.ts +2 -3
  50. package/web/requestRetest/index.html +1 -6
  51. package/web/requestRetestForm/index.html +1 -6
  52. package/web/rewindReportsForm/index.html +3 -8
  53. package/web/showHiddenReportsForm/index.html +2 -7
  54. package/web/tutorialAI/index.html +1 -6
  55. package/web/tutorialAI/index.ts +9 -2
  56. package/web/tutorialWeb/index.html +1 -6
  57. package/web/tutorialWeb/index.ts +9 -2
  58. package/web/unhideReportForm/index.html +2 -7
  59. package/favicon.ico +0 -0
@@ -1,21 +1,16 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en-US">
3
3
  <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <meta name="publisher" content="Jonathan Robert Pool">
7
- <meta name="creator" content="Jonathan Robert Pool">
4
+ __head__
8
5
  <meta name="keywords" content="report,accessibility,a11y">
9
6
  <title>View experimental reports | Kilotest</title>
10
- <link rel="icon" href="/favicon.ico">
11
- <link rel="stylesheet" href="/style.css">
12
7
  </head>
13
8
  <body>
14
9
  <main>
15
10
  <h1><a href="/">Kilotest</a>: View experimental reports</h1>
16
11
  <form action="/showHiddenReportsForm.html" method="post">
17
12
  <p><label>
18
- Authorization code: <input size="3" minLength="3" maxlength="3" name="authCode" required>
13
+ Authorization code: <input size="3" minlength="3" maxlength="3" name="authCode" required>
19
14
  </label></p>
20
15
  <p><button type="submit">Submit</button></p>
21
16
  </form>
@@ -1,15 +1,10 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en-US">
3
3
  <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <meta name="publisher" content="Jonathan Robert Pool">
7
- <meta name="creator" content="Jonathan Robert Pool">
4
+ __head__
8
5
  <meta name="keywords" content="large language models,tools,model context protocol">
9
6
  <meta name="description" content="Kilotest tutorial: how to connect an AI platform to Kilotest for technical analysis">
10
7
  <title>Connect an AI Platform | Kilotest</title>
11
- <link rel="icon" href="/favicon.ico">
12
- <link rel="stylesheet" href="/style.css">
13
8
  </head>
14
9
  <body>
15
10
  <main>
@@ -6,7 +6,14 @@
6
6
  // IMPORTS
7
7
 
8
8
  import {sendAlert} from '../../alerts.ts';
9
- import {checkCommentDuplicate, describeMax, getEnvMax, getJSON, getNowStamp} from '../../util.ts';
9
+ import {
10
+ checkCommentDuplicate,
11
+ describeMax,
12
+ getEnvMax,
13
+ getJSON,
14
+ getNowStamp,
15
+ populateTemplate
16
+ } from '../../util.ts';
10
17
  import {checkCommentLength} from '../util.ts';
11
18
  import fs from 'node:fs/promises';
12
19
  import path from 'node:path';
@@ -33,7 +40,7 @@ const sanitize = (str: string) => str
33
40
 
34
41
  // Returns the AI tutorial page.
35
42
  export const answer = async () => {
36
- const answerPage = await fs.readFile(path.join(import.meta.dirname, 'index.html'), 'utf8');
43
+ const answerPage = await populateTemplate(import.meta.dirname, {});
37
44
  return {
38
45
  status: 'ok',
39
46
  answerPage
@@ -1,14 +1,9 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en-US">
3
3
  <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <meta name="publisher" content="Jonathan Robert Pool">
7
- <meta name="creator" content="Jonathan Robert Pool">
4
+ __head__
8
5
  <meta name="keywords" content="accessibility,a11y,testing,tutorial,WCAG,autocomplete">
9
6
  <title>Tutorial: Accessibility Testing Strategies | Kilotest</title>
10
- <link rel="icon" href="/favicon.ico">
11
- <link rel="stylesheet" href="/style.css">
12
7
  <style>
13
8
  .note {
14
9
  padding: 0.75rem 1rem;
@@ -6,7 +6,14 @@
6
6
  // IMPORTS
7
7
 
8
8
  import {sendAlert} from '../../alerts.ts';
9
- import {checkCommentDuplicate, describeMax, getEnvMax, getJSON, getNowStamp} from '../../util.ts';
9
+ import {
10
+ checkCommentDuplicate,
11
+ describeMax,
12
+ getEnvMax,
13
+ getJSON,
14
+ getNowStamp,
15
+ populateTemplate
16
+ } from '../../util.ts';
10
17
  import {checkCommentLength} from '../util.ts';
11
18
  import fs from 'node:fs/promises';
12
19
  import path from 'node:path';
@@ -33,7 +40,7 @@ const sanitize = (str: string) => str
33
40
 
34
41
  // Returns the tutorial page.
35
42
  export const answer = async () => {
36
- const answerPage = await fs.readFile(path.join(import.meta.dirname, 'index.html'), 'utf8');
43
+ const answerPage = await populateTemplate(import.meta.dirname, {});
37
44
  return {
38
45
  status: 'ok',
39
46
  answerPage
@@ -1,14 +1,9 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en-US">
3
3
  <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <meta name="publisher" content="Jonathan Robert Pool">
7
- <meta name="creator" content="Jonathan Robert Pool">
4
+ __head__
8
5
  <meta name="keywords" content="report,accessibility,a11y">
9
6
  <title>Declassify report as experimental | Kilotest</title>
10
- <link rel="icon" href="/favicon.ico">
11
- <link rel="stylesheet" href="/style.css">
12
7
  </head>
13
8
  <body>
14
9
  <main>
@@ -20,7 +15,7 @@
20
15
  __reports__
21
16
  </fieldset>
22
17
  <p><label>
23
- Authorization code: <input size="3" minLength="3" maxlength="3" name="authCode" required>
18
+ Authorization code: <input size="3" minlength="3" maxlength="3" name="authCode" required>
24
19
  </label></p>
25
20
  <p><button type="submit">Submit</button></p>
26
21
  </form>
package/favicon.ico DELETED
Binary file