@getstrata/bootstrap 1.0.0 → 1.0.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/CHANGELOG.md +23 -12
- package/README.md +32 -12
- package/dist/bootstrap/web/server.d.ts +3 -3
- package/dist/entries/secretsGuard.js +39 -7
- package/dist/entries/web/server.js +8 -2
- package/dist/entries/web/session.js +10 -4
- package/dist/index.js +57 -13
- package/package.json +7 -9
- package/dist/_.._/_.._/index.html +0 -174
- package/dist/bootstrap/createRoutes.d.ts +0 -3
- package/dist/bootstrap/dogfoodApp.d.ts +0 -7
- package/dist/bootstrap/preloadModules.d.ts +0 -1
- package/dist/bootstrap/routes.d.ts +0 -3
- package/dist/entries/createRoutes.js +0 -801
- package/dist/index-a3tzxvag.js +0 -0
|
@@ -1,174 +0,0 @@
|
|
|
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
|
-
<title>Strata</title>
|
|
7
|
-
<style>
|
|
8
|
-
:root {
|
|
9
|
-
color-scheme: dark;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
body {
|
|
13
|
-
font-family: sans-serif;
|
|
14
|
-
background-color: #000;
|
|
15
|
-
color: #fff;
|
|
16
|
-
margin: 0;
|
|
17
|
-
padding: 2rem;
|
|
18
|
-
line-height: 1.5;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
h1,
|
|
22
|
-
h2 {
|
|
23
|
-
margin-top: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
section {
|
|
27
|
-
margin-bottom: 2rem;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
ul {
|
|
31
|
-
padding-left: 1.25rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
li {
|
|
35
|
-
padding: 0.35rem 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
a {
|
|
39
|
-
color: #fff;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
code,
|
|
43
|
-
input,
|
|
44
|
-
button {
|
|
45
|
-
font: inherit;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
form {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-wrap: wrap;
|
|
51
|
-
gap: 0.5rem;
|
|
52
|
-
margin: 0.75rem 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
input {
|
|
56
|
-
border: 1px solid #555;
|
|
57
|
-
background-color: #111;
|
|
58
|
-
color: #fff;
|
|
59
|
-
padding: 0.5rem 0.75rem;
|
|
60
|
-
border-radius: 0.35rem;
|
|
61
|
-
min-width: 14rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
button {
|
|
65
|
-
border: 1px solid #777;
|
|
66
|
-
background-color: #222;
|
|
67
|
-
color: #fff;
|
|
68
|
-
padding: 0.5rem 0.9rem;
|
|
69
|
-
border-radius: 0.35rem;
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.hint {
|
|
74
|
-
color: #bbb;
|
|
75
|
-
font-size: 0.95rem;
|
|
76
|
-
}
|
|
77
|
-
</style>
|
|
78
|
-
<script type="module" crossorigin src="../../index-a3tzxvag.js"></script></head>
|
|
79
|
-
|
|
80
|
-
<body>
|
|
81
|
-
<h1>Strata</h1>
|
|
82
|
-
<p class="hint">
|
|
83
|
-
Framework reference domain for organizations, projects, tasks, and
|
|
84
|
-
comments.
|
|
85
|
-
</p>
|
|
86
|
-
|
|
87
|
-
<section>
|
|
88
|
-
<h2>Collections</h2>
|
|
89
|
-
<ul>
|
|
90
|
-
<li><a href="/organizations">/organizations</a></li>
|
|
91
|
-
<li><a href="/projects?include=organization">/projects</a></li>
|
|
92
|
-
<li><a href="/tasks?include=project">/tasks</a></li>
|
|
93
|
-
<li><a href="/comments">/comments</a></li>
|
|
94
|
-
<li><a href="/reports/summary">/reports/summary</a></li>
|
|
95
|
-
</ul>
|
|
96
|
-
</section>
|
|
97
|
-
|
|
98
|
-
<section>
|
|
99
|
-
<h2>Lookup by ID</h2>
|
|
100
|
-
|
|
101
|
-
<form data-prefix="/organizations/">
|
|
102
|
-
<input
|
|
103
|
-
type="number"
|
|
104
|
-
min="1"
|
|
105
|
-
name="id"
|
|
106
|
-
placeholder="Organization ID"
|
|
107
|
-
required
|
|
108
|
-
/>
|
|
109
|
-
<button type="submit">Open /organizations/:id</button>
|
|
110
|
-
</form>
|
|
111
|
-
|
|
112
|
-
<form data-prefix="/projects/">
|
|
113
|
-
<input
|
|
114
|
-
type="number"
|
|
115
|
-
min="1"
|
|
116
|
-
name="id"
|
|
117
|
-
placeholder="Project ID"
|
|
118
|
-
required
|
|
119
|
-
/>
|
|
120
|
-
<button type="submit">Open /projects/:id</button>
|
|
121
|
-
</form>
|
|
122
|
-
|
|
123
|
-
<form data-prefix="/tasks/">
|
|
124
|
-
<input
|
|
125
|
-
type="number"
|
|
126
|
-
min="1"
|
|
127
|
-
name="id"
|
|
128
|
-
placeholder="Task ID"
|
|
129
|
-
required
|
|
130
|
-
/>
|
|
131
|
-
<button type="submit">Open /tasks/:id</button>
|
|
132
|
-
</form>
|
|
133
|
-
|
|
134
|
-
<form data-prefix="/tasks/" data-suffix="/comments">
|
|
135
|
-
<input
|
|
136
|
-
type="number"
|
|
137
|
-
min="1"
|
|
138
|
-
name="id"
|
|
139
|
-
placeholder="Task ID"
|
|
140
|
-
required
|
|
141
|
-
/>
|
|
142
|
-
<button type="submit">Open /tasks/:id/comments</button>
|
|
143
|
-
</form>
|
|
144
|
-
|
|
145
|
-
<form data-prefix="/reports/organizations/">
|
|
146
|
-
<input
|
|
147
|
-
type="number"
|
|
148
|
-
min="1"
|
|
149
|
-
name="id"
|
|
150
|
-
placeholder="Organization ID"
|
|
151
|
-
required
|
|
152
|
-
/>
|
|
153
|
-
<button type="submit">Open /reports/organizations/:id</button>
|
|
154
|
-
</form>
|
|
155
|
-
</section>
|
|
156
|
-
|
|
157
|
-
<script>
|
|
158
|
-
for (const form of document.querySelectorAll("form[data-prefix]")) {
|
|
159
|
-
form.addEventListener("submit", (event) => {
|
|
160
|
-
event.preventDefault();
|
|
161
|
-
const prefix = form.getAttribute("data-prefix");
|
|
162
|
-
const suffix = form.getAttribute("data-suffix") ?? "";
|
|
163
|
-
const input = form.querySelector('input[name="id"]');
|
|
164
|
-
|
|
165
|
-
if (!prefix || !input?.value) {
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
window.location.href = `${prefix}${input.value}${suffix}`;
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
</script>
|
|
173
|
-
</body>
|
|
174
|
-
</html>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type DogfoodApp = "hiroapp";
|
|
2
|
-
declare function readDogfoodApp(): DogfoodApp;
|
|
3
|
-
declare function isHiroappDogfood(): boolean;
|
|
4
|
-
declare function hiroappSourcePath(...segments: string[]): string;
|
|
5
|
-
declare function importHiroappModule<T = unknown>(relativeFromApp: string): Promise<T>;
|
|
6
|
-
export type { DogfoodApp };
|
|
7
|
-
export { hiroappSourcePath, importHiroappModule, isHiroappDogfood, readDogfoodApp };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|