chemicaljs 1.4.0 → 1.4.2
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 +8 -4
- package/{example → examples/example}/package-lock.json +4 -4
- package/{example → examples/example}/package.json +1 -1
- package/{example-components → examples/example-components}/package-lock.json +4 -4
- package/{example-components → examples/example-components}/package.json +1 -1
- package/examples/example-styled/README.md +3 -0
- package/examples/example-styled/index.js +14 -0
- package/examples/example-styled/package-lock.json +3892 -0
- package/examples/example-styled/package.json +24 -0
- package/examples/example-styled/public/index.html +24 -0
- package/examples/example-styled/public/style.css +82 -0
- package/{example-vite → examples/example-vite}/package-lock.json +4 -4
- package/{example-vite → examples/example-vite}/package.json +1 -1
- package/package.json +1 -1
- /package/{example → examples/example}/README.md +0 -0
- /package/{example → examples/example}/index.js +0 -0
- /package/{example → examples/example}/public/index.html +0 -0
- /package/{example-components → examples/example-components}/README.md +0 -0
- /package/{example-components → examples/example-components}/index.js +0 -0
- /package/{example-components → examples/example-components}/public/index.html +0 -0
- /package/{example-vite → examples/example-vite}/README.md +0 -0
- /package/{example-vite → examples/example-vite}/index.html +0 -0
- /package/{example-vite → examples/example-vite}/index.js +0 -0
- /package/{example-vite → examples/example-vite}/src/app.jsx +0 -0
- /package/{example-vite → examples/example-vite}/src/main.jsx +0 -0
- /package/{example-vite → examples/example-vite}/vite.config.js +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "chemical-example-styled",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "This is an example project for Chemical.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start": "node index.js"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/chemicaljs/chemical.git"
|
|
13
|
+
},
|
|
14
|
+
"author": "Nebelung",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/chemicaljs/chemical/issues"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/chemicaljs/chemical#readme",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"chemicaljs": "^1.4.0",
|
|
22
|
+
"express": "^4.19.2"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta name="description" content="This is an example project for Chemical.">
|
|
7
|
+
<title>Chemical Example</title>
|
|
8
|
+
<link rel="stylesheet" href="/style.css">
|
|
9
|
+
<script src="/chemical.js"></script>
|
|
10
|
+
<script src="/chemical.components.js"></script>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<h1>Chemical Example</h1>
|
|
14
|
+
<p>Create your own using <a href="https://github.com/chemicaljs/chemical">Chemical!</a></p>
|
|
15
|
+
<input autofocus spellcheck="false" autocomplete="off" id="search" frame="web" placeholder="Enter a URL" is="chemical-input">
|
|
16
|
+
<section id="controls" is="chemical-controls">
|
|
17
|
+
<button onclick="chemicalAction('back', 'web')">Back</button>
|
|
18
|
+
<button onclick="chemicalAction('forward', 'web')">Forward</button>
|
|
19
|
+
<button onclick="chemicalAction('reload', 'web')">Reload</button>
|
|
20
|
+
<button onclick="chemicalAction('close', 'web')">Close</button>
|
|
21
|
+
</section>
|
|
22
|
+
<iframe id="web" controls="controls" is="chemical-iframe"></iframe>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background: #212121;
|
|
9
|
+
color: white;
|
|
10
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
*,
|
|
14
|
+
*::before,
|
|
15
|
+
*::after {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
#search {
|
|
20
|
+
background: #2f2f2f;
|
|
21
|
+
font-size: inherit;
|
|
22
|
+
color: inherit;
|
|
23
|
+
font-family: inherit;
|
|
24
|
+
border: none;
|
|
25
|
+
outline: none;
|
|
26
|
+
padding: 1rem 1rem;
|
|
27
|
+
border-radius: 16px;
|
|
28
|
+
width: 42rem;
|
|
29
|
+
max-width: calc(100% - 2rem);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#controls {
|
|
33
|
+
position: fixed;
|
|
34
|
+
top: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
height: 2.5rem;
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: right;
|
|
40
|
+
align-items: center;
|
|
41
|
+
padding: 0 0.5rem;
|
|
42
|
+
gap: 0.5rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#controls button {
|
|
46
|
+
background: rgba(255, 255, 255, 0.2);
|
|
47
|
+
border: none;
|
|
48
|
+
color: inherit;
|
|
49
|
+
font-family: inherit;
|
|
50
|
+
font-size: inherit;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
user-select: none;
|
|
53
|
+
border-radius: 6px;
|
|
54
|
+
padding: 0.25rem 0.5rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#web {
|
|
58
|
+
position: fixed;
|
|
59
|
+
top: 2.5rem;
|
|
60
|
+
right: 0;
|
|
61
|
+
left: 0;
|
|
62
|
+
bottom: 0;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: calc(100% - 2.5rem);
|
|
65
|
+
border: none;
|
|
66
|
+
background: #212121;
|
|
67
|
+
user-select: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
h1 {
|
|
71
|
+
margin: 0;
|
|
72
|
+
margin-bottom: 0.25rem;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
p {
|
|
76
|
+
margin: 0;
|
|
77
|
+
margin-bottom: 2rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
a {
|
|
81
|
+
color: inherit;
|
|
82
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"": {
|
|
7
7
|
"name": "chemical-example-vite",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"chemicaljs": "^1.
|
|
9
|
+
"chemicaljs": "^1.4.0",
|
|
10
10
|
"express": "^4.19.2",
|
|
11
11
|
"preact": "^10.22.1"
|
|
12
12
|
},
|
|
@@ -1721,9 +1721,9 @@
|
|
|
1721
1721
|
}
|
|
1722
1722
|
},
|
|
1723
1723
|
"node_modules/chemicaljs": {
|
|
1724
|
-
"version": "1.
|
|
1725
|
-
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.
|
|
1726
|
-
"integrity": "sha512-
|
|
1724
|
+
"version": "1.4.0",
|
|
1725
|
+
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.4.0.tgz",
|
|
1726
|
+
"integrity": "sha512-FyB/RVkT3c3prjQAVnU6NQaYPJFEG8XOuGz9N3tvtC4LneT6oCmjqmK5M5lU/y0baFviF+vSonaI3z3l5NxXBg==",
|
|
1727
1727
|
"dependencies": {
|
|
1728
1728
|
"@mercuryworkshop/bare-mux": "^2.0.1",
|
|
1729
1729
|
"@mercuryworkshop/epoxy-transport": "^2.1.3",
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|