kryptheon 0.1.69 → 0.1.71
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/LICENSE +38 -38
- package/kryptheon-api.js +131 -13
- package/kryptheon-baselines.js +232 -232
- package/kryptheon-changes.js +222 -222
- package/kryptheon-dashboard-page.js +9 -0
- package/kryptheon-dashboard.html +3 -0
- package/kryptheon-fonts-OFL.txt +98 -98
- package/kryptheon-probe-reporter.js +29 -29
- package/kryptheon-probe.config.js +37 -37
- package/kryptheon-project.js +600 -600
- package/kryptheon-roles.js +54 -17
- package/kryptheon-selectors.js +301 -301
- package/kryptheon-store.js +334 -334
- package/kryptheon-testfiles.js +98 -98
- package/package.json +4 -2
- package/playwright.config.js +73 -73
package/kryptheon-fonts-OFL.txt
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
The dashboard ships two fonts, both under the SIL Open Font License 1.1:
|
|
2
|
-
|
|
3
|
-
kryptheon-archivo.woff2 Archivo (latin subset, variable weight and width)
|
|
4
|
-
Copyright 2020 The Archivo Project Authors
|
|
5
|
-
(https://github.com/Omnibus-Type/Archivo)
|
|
6
|
-
|
|
7
|
-
kryptheon-spacemono.woff2 Space Mono (latin subset, regular)
|
|
8
|
-
Copyright 2016 Google Inc. All Rights Reserved.
|
|
9
|
-
|
|
10
|
-
They are the same files kryptheon.tech uses, so the dashboard and the site
|
|
11
|
-
read alike. The license follows.
|
|
12
|
-
|
|
13
|
-
-----------------------------------------------------------
|
|
14
|
-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
15
|
-
-----------------------------------------------------------
|
|
16
|
-
|
|
17
|
-
PREAMBLE
|
|
18
|
-
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
19
|
-
development of collaborative font projects, to support the font creation
|
|
20
|
-
efforts of academic and linguistic communities, and to provide a free and
|
|
21
|
-
open framework in which fonts may be shared and improved in partnership
|
|
22
|
-
with others.
|
|
23
|
-
|
|
24
|
-
The OFL allows the licensed fonts to be used, studied, modified and
|
|
25
|
-
redistributed freely as long as they are not sold by themselves. The
|
|
26
|
-
fonts, including any derivative works, can be bundled, embedded,
|
|
27
|
-
redistributed and/or sold with any software provided that any reserved
|
|
28
|
-
names are not used by derivative works. The fonts and derivatives,
|
|
29
|
-
however, cannot be released under any other type of license. The
|
|
30
|
-
requirement for fonts to remain under this license does not apply
|
|
31
|
-
to any document created using the fonts or their derivatives.
|
|
32
|
-
|
|
33
|
-
DEFINITIONS
|
|
34
|
-
"Font Software" refers to the set of files released by the Copyright
|
|
35
|
-
Holder(s) under this license and clearly marked as such. This may
|
|
36
|
-
include source files, build scripts and documentation.
|
|
37
|
-
|
|
38
|
-
"Reserved Font Name" refers to any names specified as such after the
|
|
39
|
-
copyright statement(s).
|
|
40
|
-
|
|
41
|
-
"Original Version" refers to the collection of Font Software components as
|
|
42
|
-
distributed by the Copyright Holder(s).
|
|
43
|
-
|
|
44
|
-
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
45
|
-
or substituting -- in part or in whole -- any of the components of the
|
|
46
|
-
Original Version, by changing formats or by porting the Font Software to a
|
|
47
|
-
new environment.
|
|
48
|
-
|
|
49
|
-
"Author" refers to any designer, engineer, programmer, technical
|
|
50
|
-
writer or other person who contributed to the Font Software.
|
|
51
|
-
|
|
52
|
-
PERMISSION & CONDITIONS
|
|
53
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
54
|
-
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
55
|
-
redistribute, and sell modified and unmodified copies of the Font
|
|
56
|
-
Software, subject to the following conditions:
|
|
57
|
-
|
|
58
|
-
1) Neither the Font Software nor any of its individual components,
|
|
59
|
-
in Original or Modified Versions, may be sold by itself.
|
|
60
|
-
|
|
61
|
-
2) Original or Modified Versions of the Font Software may be bundled,
|
|
62
|
-
redistributed and/or sold with any software, provided that each copy
|
|
63
|
-
contains the above copyright notice and this license. These can be
|
|
64
|
-
included either as stand-alone text files, human-readable headers or
|
|
65
|
-
in the appropriate machine-readable metadata fields within text or
|
|
66
|
-
binary files as long as those fields can be easily viewed by the user.
|
|
67
|
-
|
|
68
|
-
3) No Modified Version of the Font Software may use the Reserved Font
|
|
69
|
-
Name(s) unless explicit written permission is granted by the corresponding
|
|
70
|
-
Copyright Holder. This restriction only applies to the primary font name as
|
|
71
|
-
presented to the users.
|
|
72
|
-
|
|
73
|
-
4) The name(s) of the Copyright Holder(s) and the Author(s) of the Font
|
|
74
|
-
Software shall not be used to promote, endorse or advertise any
|
|
75
|
-
Modified Version, except to acknowledge the contribution(s) of the
|
|
76
|
-
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
77
|
-
permission.
|
|
78
|
-
|
|
79
|
-
5) The Font Software, modified or unmodified, in part or in whole,
|
|
80
|
-
must be distributed entirely under this license, and must not be
|
|
81
|
-
distributed under any other license. The requirement for fonts to
|
|
82
|
-
remain under this license does not apply to any document created
|
|
83
|
-
using the Font Software.
|
|
84
|
-
|
|
85
|
-
TERMINATION
|
|
86
|
-
This license becomes null and void if any of the above conditions are
|
|
87
|
-
not met.
|
|
88
|
-
|
|
89
|
-
DISCLAIMER
|
|
90
|
-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
91
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
92
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
93
|
-
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
94
|
-
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
95
|
-
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
96
|
-
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
97
|
-
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
98
|
-
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
1
|
+
The dashboard ships two fonts, both under the SIL Open Font License 1.1:
|
|
2
|
+
|
|
3
|
+
kryptheon-archivo.woff2 Archivo (latin subset, variable weight and width)
|
|
4
|
+
Copyright 2020 The Archivo Project Authors
|
|
5
|
+
(https://github.com/Omnibus-Type/Archivo)
|
|
6
|
+
|
|
7
|
+
kryptheon-spacemono.woff2 Space Mono (latin subset, regular)
|
|
8
|
+
Copyright 2016 Google Inc. All Rights Reserved.
|
|
9
|
+
|
|
10
|
+
They are the same files kryptheon.tech uses, so the dashboard and the site
|
|
11
|
+
read alike. The license follows.
|
|
12
|
+
|
|
13
|
+
-----------------------------------------------------------
|
|
14
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
15
|
+
-----------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
PREAMBLE
|
|
18
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
19
|
+
development of collaborative font projects, to support the font creation
|
|
20
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
21
|
+
open framework in which fonts may be shared and improved in partnership
|
|
22
|
+
with others.
|
|
23
|
+
|
|
24
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
25
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
26
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
27
|
+
redistributed and/or sold with any software provided that any reserved
|
|
28
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
29
|
+
however, cannot be released under any other type of license. The
|
|
30
|
+
requirement for fonts to remain under this license does not apply
|
|
31
|
+
to any document created using the fonts or their derivatives.
|
|
32
|
+
|
|
33
|
+
DEFINITIONS
|
|
34
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
35
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
36
|
+
include source files, build scripts and documentation.
|
|
37
|
+
|
|
38
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
39
|
+
copyright statement(s).
|
|
40
|
+
|
|
41
|
+
"Original Version" refers to the collection of Font Software components as
|
|
42
|
+
distributed by the Copyright Holder(s).
|
|
43
|
+
|
|
44
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
45
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
46
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
47
|
+
new environment.
|
|
48
|
+
|
|
49
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
50
|
+
writer or other person who contributed to the Font Software.
|
|
51
|
+
|
|
52
|
+
PERMISSION & CONDITIONS
|
|
53
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
54
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
55
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
56
|
+
Software, subject to the following conditions:
|
|
57
|
+
|
|
58
|
+
1) Neither the Font Software nor any of its individual components,
|
|
59
|
+
in Original or Modified Versions, may be sold by itself.
|
|
60
|
+
|
|
61
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
62
|
+
redistributed and/or sold with any software, provided that each copy
|
|
63
|
+
contains the above copyright notice and this license. These can be
|
|
64
|
+
included either as stand-alone text files, human-readable headers or
|
|
65
|
+
in the appropriate machine-readable metadata fields within text or
|
|
66
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
67
|
+
|
|
68
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
69
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
70
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
71
|
+
presented to the users.
|
|
72
|
+
|
|
73
|
+
4) The name(s) of the Copyright Holder(s) and the Author(s) of the Font
|
|
74
|
+
Software shall not be used to promote, endorse or advertise any
|
|
75
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
76
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
77
|
+
permission.
|
|
78
|
+
|
|
79
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
80
|
+
must be distributed entirely under this license, and must not be
|
|
81
|
+
distributed under any other license. The requirement for fonts to
|
|
82
|
+
remain under this license does not apply to any document created
|
|
83
|
+
using the Font Software.
|
|
84
|
+
|
|
85
|
+
TERMINATION
|
|
86
|
+
This license becomes null and void if any of the above conditions are
|
|
87
|
+
not met.
|
|
88
|
+
|
|
89
|
+
DISCLAIMER
|
|
90
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
91
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
92
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
93
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
94
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
95
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
96
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
97
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
98
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
// Says one line per probe run as it ends, in a form kryptheon-probe.js reads
|
|
2
|
-
// back and turns into words: "KXPROBE <done> <total> <id> <status>". Nothing
|
|
3
|
-
// else - a probe that fails is usually the app refusing a bad value, and a
|
|
4
|
-
// failure report for it would say the opposite of what happened.
|
|
5
|
-
|
|
6
|
-
class ProbeReporter {
|
|
7
|
-
onBegin(config, suite) {
|
|
8
|
-
this.total = suite.allTests().length;
|
|
9
|
-
this.done = 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
onTestEnd(test, result) {
|
|
13
|
-
this.done += 1;
|
|
14
|
-
const id = String(test.location.file).replace(/^.*[\\/]/, '').replace(/\.kxprobe\.js$/, '');
|
|
15
|
-
console.log('KXPROBE ' + this.done + ' ' + this.total + ' ' + id + ' ' + result.status);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
onError(error) {
|
|
19
|
-
// The run itself could not start - a broken copy, a missing browser.
|
|
20
|
-
const text = String((error && error.message) || error).split(/\r?\n/)[0];
|
|
21
|
-
console.log('KXPROBE-ERROR ' + text.slice(0, 300));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
printsToStdio() {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
module.exports = ProbeReporter;
|
|
1
|
+
// Says one line per probe run as it ends, in a form kryptheon-probe.js reads
|
|
2
|
+
// back and turns into words: "KXPROBE <done> <total> <id> <status>". Nothing
|
|
3
|
+
// else - a probe that fails is usually the app refusing a bad value, and a
|
|
4
|
+
// failure report for it would say the opposite of what happened.
|
|
5
|
+
|
|
6
|
+
class ProbeReporter {
|
|
7
|
+
onBegin(config, suite) {
|
|
8
|
+
this.total = suite.allTests().length;
|
|
9
|
+
this.done = 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
onTestEnd(test, result) {
|
|
13
|
+
this.done += 1;
|
|
14
|
+
const id = String(test.location.file).replace(/^.*[\\/]/, '').replace(/\.kxprobe\.js$/, '');
|
|
15
|
+
console.log('KXPROBE ' + this.done + ' ' + this.total + ' ' + id + ' ' + result.status);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
onError(error) {
|
|
19
|
+
// The run itself could not start - a broken copy, a missing browser.
|
|
20
|
+
const text = String((error && error.message) || error).split(/\r?\n/)[0];
|
|
21
|
+
console.log('KXPROBE-ERROR ' + text.slice(0, 300));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
printsToStdio() {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module.exports = ProbeReporter;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
// The Playwright config for probe copies (kryptheon-probe.js). Kept apart from
|
|
3
|
-
// playwright.config.js on purpose: probes live in the store, not in tests/;
|
|
4
|
-
// they report through their own reporter; and their screenshots and traces
|
|
5
|
-
// go to a folder of their own - Playwright empties its output folder on every
|
|
6
|
-
// run, and the last check's evidence must not be wiped by a probe.
|
|
7
|
-
const path = require('path');
|
|
8
|
-
const { defineConfig } = require('@playwright/test');
|
|
9
|
-
|
|
10
|
-
const PACKAGE_DIR = __dirname;
|
|
11
|
-
const USER_DIR = process.cwd();
|
|
12
|
-
const PROBE_DIR = process.env.KRYPTHEON_PROBE_DIR || path.join(USER_DIR, 'tests');
|
|
13
|
-
|
|
14
|
-
// The same .env reading as playwright.config.js, for the same reasons.
|
|
15
|
-
const secrets = require(path.join(PACKAGE_DIR, 'kryptheon-secrets.js'));
|
|
16
|
-
const values = secrets.readEnvFile(path.join(USER_DIR, '.env'));
|
|
17
|
-
for (const name of Object.keys(values)) {
|
|
18
|
-
if (!secrets.isSet(process.env[name])) process.env[name] = values[name];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
module.exports = defineConfig({
|
|
22
|
-
testDir: PROBE_DIR,
|
|
23
|
-
testMatch: ['**/*.kxprobe.js'],
|
|
24
|
-
outputDir: path.join(PROBE_DIR, 'output'),
|
|
25
|
-
fullyParallel: false,
|
|
26
|
-
workers: 1,
|
|
27
|
-
retries: 0,
|
|
28
|
-
// Room for the gap before each run and for opening the page again after it.
|
|
29
|
-
timeout: 60000,
|
|
30
|
-
reporter: [[path.join(PACKAGE_DIR, 'kryptheon-probe-reporter.js')]],
|
|
31
|
-
use: {
|
|
32
|
-
headless: true,
|
|
33
|
-
channel: 'chromium',
|
|
34
|
-
screenshot: 'off',
|
|
35
|
-
trace: 'off',
|
|
36
|
-
},
|
|
37
|
-
});
|
|
1
|
+
// @ts-check
|
|
2
|
+
// The Playwright config for probe copies (kryptheon-probe.js). Kept apart from
|
|
3
|
+
// playwright.config.js on purpose: probes live in the store, not in tests/;
|
|
4
|
+
// they report through their own reporter; and their screenshots and traces
|
|
5
|
+
// go to a folder of their own - Playwright empties its output folder on every
|
|
6
|
+
// run, and the last check's evidence must not be wiped by a probe.
|
|
7
|
+
const path = require('path');
|
|
8
|
+
const { defineConfig } = require('@playwright/test');
|
|
9
|
+
|
|
10
|
+
const PACKAGE_DIR = __dirname;
|
|
11
|
+
const USER_DIR = process.cwd();
|
|
12
|
+
const PROBE_DIR = process.env.KRYPTHEON_PROBE_DIR || path.join(USER_DIR, 'tests');
|
|
13
|
+
|
|
14
|
+
// The same .env reading as playwright.config.js, for the same reasons.
|
|
15
|
+
const secrets = require(path.join(PACKAGE_DIR, 'kryptheon-secrets.js'));
|
|
16
|
+
const values = secrets.readEnvFile(path.join(USER_DIR, '.env'));
|
|
17
|
+
for (const name of Object.keys(values)) {
|
|
18
|
+
if (!secrets.isSet(process.env[name])) process.env[name] = values[name];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = defineConfig({
|
|
22
|
+
testDir: PROBE_DIR,
|
|
23
|
+
testMatch: ['**/*.kxprobe.js'],
|
|
24
|
+
outputDir: path.join(PROBE_DIR, 'output'),
|
|
25
|
+
fullyParallel: false,
|
|
26
|
+
workers: 1,
|
|
27
|
+
retries: 0,
|
|
28
|
+
// Room for the gap before each run and for opening the page again after it.
|
|
29
|
+
timeout: 60000,
|
|
30
|
+
reporter: [[path.join(PACKAGE_DIR, 'kryptheon-probe-reporter.js')]],
|
|
31
|
+
use: {
|
|
32
|
+
headless: true,
|
|
33
|
+
channel: 'chromium',
|
|
34
|
+
screenshot: 'off',
|
|
35
|
+
trace: 'off',
|
|
36
|
+
},
|
|
37
|
+
});
|