osra 0.1.2 → 0.2.1
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/README.md +287 -42
- package/build/extension/background.js +2 -0
- package/build/extension/background.js.map +1 -0
- package/build/extension/chunks/index.js +2 -0
- package/build/extension/chunks/index.js.map +1 -0
- package/build/extension/content.js +2 -0
- package/build/extension/content.js.map +1 -0
- package/build/extension/manifest.json +21 -0
- package/build/extension/popup.html +120 -0
- package/build/extension/popup.js +2 -0
- package/build/extension/popup.js.map +1 -0
- package/build/extension-test/background.js +753 -0
- package/build/extension-test/background.js.map +1 -0
- package/build/extension-test/content.js +4585 -0
- package/build/extension-test/content.js.map +1 -0
- package/build/extension-test/manifest.json +22 -0
- package/build/extension-test/popup.html +106 -0
- package/build/extension-test/popup.js +4610 -0
- package/build/extension-test/popup.js.map +1 -0
- package/build/extension-test-firefox/background.js +5464 -0
- package/build/extension-test-firefox/background.js.map +1 -0
- package/build/extension-test-firefox/content.js +5286 -0
- package/build/extension-test-firefox/content.js.map +1 -0
- package/build/extension-test-firefox/manifest.json +27 -0
- package/build/extension-test-firefox/popup.html +106 -0
- package/build/extension-test-firefox/popup.js +5213 -0
- package/build/extension-test-firefox/popup.js.map +1 -0
- package/build/index.d.ts +155 -8
- package/build/index.js +432 -259
- package/build/index.js.map +1 -1
- package/build/test.js +24021 -2578
- package/build/test.js.map +1 -1
- package/package.json +34 -16
- package/build/types.d.ts +0 -66
- package/build/utils.d.ts +0 -60
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 2,
|
|
3
|
+
"name": "OSRA Test Extension",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Test extension for OSRA communication library",
|
|
6
|
+
"background": {
|
|
7
|
+
"scripts": ["background.js"]
|
|
8
|
+
},
|
|
9
|
+
"content_scripts": [
|
|
10
|
+
{
|
|
11
|
+
"matches": ["http://localhost:3000/*"],
|
|
12
|
+
"js": ["content.js"],
|
|
13
|
+
"run_at": "document_start"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"browser_action": {
|
|
17
|
+
"default_popup": "popup.html",
|
|
18
|
+
"default_title": "OSRA Tests"
|
|
19
|
+
},
|
|
20
|
+
"permissions": [],
|
|
21
|
+
"browser_specific_settings": {
|
|
22
|
+
"gecko": {
|
|
23
|
+
"id": "osra-test@example.com",
|
|
24
|
+
"strict_min_version": "109.0"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>OSRA Extension Test</title>
|
|
6
|
+
<style>
|
|
7
|
+
body {
|
|
8
|
+
width: 400px;
|
|
9
|
+
padding: 16px;
|
|
10
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
h1 {
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
margin: 0 0 16px 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#status {
|
|
20
|
+
margin-bottom: 12px;
|
|
21
|
+
padding: 8px;
|
|
22
|
+
background: #f5f5f5;
|
|
23
|
+
border-radius: 4px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
button {
|
|
27
|
+
padding: 8px 16px;
|
|
28
|
+
background: #4285f4;
|
|
29
|
+
color: white;
|
|
30
|
+
border: none;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
button:hover {
|
|
37
|
+
background: #3367d6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
button:disabled {
|
|
41
|
+
background: #ccc;
|
|
42
|
+
cursor: not-allowed;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#results {
|
|
46
|
+
margin-top: 16px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.test-result {
|
|
50
|
+
padding: 6px 8px;
|
|
51
|
+
margin: 4px 0;
|
|
52
|
+
border-radius: 4px;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
gap: 8px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.test-result.passed {
|
|
59
|
+
background: #e8f5e9;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.test-result.failed {
|
|
63
|
+
background: #ffebee;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.test-result .status {
|
|
67
|
+
font-weight: bold;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.test-result.passed .status {
|
|
71
|
+
color: #2e7d32;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.test-result.failed .status {
|
|
75
|
+
color: #c62828;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.test-result .name {
|
|
79
|
+
flex: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.test-result .error {
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
color: #c62828;
|
|
85
|
+
max-width: 200px;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
text-overflow: ellipsis;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.summary {
|
|
92
|
+
margin-top: 12px;
|
|
93
|
+
padding: 8px;
|
|
94
|
+
font-weight: bold;
|
|
95
|
+
text-align: center;
|
|
96
|
+
}
|
|
97
|
+
</style>
|
|
98
|
+
</head>
|
|
99
|
+
<body>
|
|
100
|
+
<h1>OSRA Extension Tests</h1>
|
|
101
|
+
<div id="status">Loading...</div>
|
|
102
|
+
<button id="run-tests">Run Tests</button>
|
|
103
|
+
<div id="results"></div>
|
|
104
|
+
<script type="module" src="popup.js"></script>
|
|
105
|
+
</body>
|
|
106
|
+
</html>
|