@access-ci/ui 0.8.0 → 0.9.0-beta2
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 +2 -1
- package/dist/access-ci-ui.bundle.js +112 -51
- package/dist/access-ci-ui.js +1 -1
- package/dist/access-ci-ui.umd.cjs +115 -75
- package/dist/access-qa-bot-CSDDOMzA.js +6084 -0
- package/dist/{icon-DO5WLkIr.js → icon-oSIQXq5R.js} +1 -1
- package/dist/{index-CGLHL48j.js → index-0rhVaqkH.js} +585 -572
- package/dist/{resource-group-detail-px8JUvEX.js → resource-group-detail-DKRy5Dk2.js} +2068 -2159
- package/dist/resource-home-Bg-g2QcF.js +260 -0
- package/package.json +3 -2
- package/dist/access-qa-bot-DT5Eikre.js +0 -1898
- package/dist/resource-home-CI6IFYKT.js +0 -248
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import { u as e, b as p, h as f, A as g, a as C, o as w, T as y, r as S, n as k } from "./index-CGLHL48j.js";
|
|
2
|
-
import { I as d } from "./icon-DO5WLkIr.js";
|
|
3
|
-
const R = {
|
|
4
|
-
"ACCESS Pegasus": "https://pegasus.isi.edu/wordpress/wp-content/uploads/2016/01/favicon.ico",
|
|
5
|
-
"ACCESS OnDemand": "https://openondemand.org/themes/fire/theme/assets/media/favicons/favicon.ico",
|
|
6
|
-
"Advance reservations": "calendar-check",
|
|
7
|
-
"Composable hardware fabric": "boxes",
|
|
8
|
-
"Compute Resources": "cpu-fill",
|
|
9
|
-
"CPU Compute": "cpu-fill",
|
|
10
|
-
"GPU Compute": "cpu",
|
|
11
|
-
"Innovative / Novel Compute": "lightbulb",
|
|
12
|
-
"Large Memory Nodes": "arrows-fullscreen",
|
|
13
|
-
Preemption: "clock-history",
|
|
14
|
-
"Science Gateway support": "globe",
|
|
15
|
-
"Service / Other": "stars",
|
|
16
|
-
"Storage Resources": "hdd-fill",
|
|
17
|
-
"Virtual Machines": "pc-display-horizontal",
|
|
18
|
-
Cloud: "cloud",
|
|
19
|
-
Storage: "hdd-fill"
|
|
20
|
-
};
|
|
21
|
-
function m({ active: r, tagCategory: i, tagId: c, iconUri: a, name: s, toggleTag: n }) {
|
|
22
|
-
const t = a || R[s] || "tag";
|
|
23
|
-
return /* @__PURE__ */ e(
|
|
24
|
-
"li",
|
|
25
|
-
{
|
|
26
|
-
class: `tag tag-category-${i.name.toLowerCase().replace(/[^a-z]+/g, "-")}${r.tagIds.has(c) ? " active" : ""}`,
|
|
27
|
-
children: /* @__PURE__ */ e(
|
|
28
|
-
"button",
|
|
29
|
-
{
|
|
30
|
-
href: "#",
|
|
31
|
-
disabled: r.disabledTagIds.has(c),
|
|
32
|
-
onClick: (o) => {
|
|
33
|
-
o.preventDefault(), n(c);
|
|
34
|
-
},
|
|
35
|
-
children: [
|
|
36
|
-
t.startsWith("http") ? /* @__PURE__ */ e(d, { alt: s, src: t }) : /* @__PURE__ */ e(d, { name: t }),
|
|
37
|
-
s
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
function b({ children: r }) {
|
|
45
|
-
return /* @__PURE__ */ e("ul", { class: "tags", children: r });
|
|
46
|
-
}
|
|
47
|
-
function I({
|
|
48
|
-
active: r,
|
|
49
|
-
baseUri: i,
|
|
50
|
-
description: c,
|
|
51
|
-
imageType: a,
|
|
52
|
-
imageUri: s,
|
|
53
|
-
name: n,
|
|
54
|
-
infoGroupId: t,
|
|
55
|
-
tags: o,
|
|
56
|
-
toggleTag: u
|
|
57
|
-
}) {
|
|
58
|
-
const h = `${i}/${t}`;
|
|
59
|
-
return /* @__PURE__ */ e("div", { class: "resource-group", children: [
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
-
"a",
|
|
62
|
-
{
|
|
63
|
-
class: `resource-group-image image-type-${a}`,
|
|
64
|
-
href: h,
|
|
65
|
-
children: s ? /* @__PURE__ */ e("img", { src: s }) : /* @__PURE__ */ e(d, { name: "motherboard" })
|
|
66
|
-
}
|
|
67
|
-
),
|
|
68
|
-
/* @__PURE__ */ e("div", { class: "resource-group-text", children: [
|
|
69
|
-
/* @__PURE__ */ e("h3", { children: /* @__PURE__ */ e("a", { href: h, children: n }) }),
|
|
70
|
-
/* @__PURE__ */ e(b, { children: o.map((l) => /* @__PURE__ */ e(m, { ...l, active: r, toggleTag: u })) }),
|
|
71
|
-
/* @__PURE__ */ e("p", { children: [
|
|
72
|
-
c && c,
|
|
73
|
-
/* @__PURE__ */ e("br", {}),
|
|
74
|
-
/* @__PURE__ */ e("a", { href: h, children: [
|
|
75
|
-
"Learn more about ",
|
|
76
|
-
n,
|
|
77
|
-
" »"
|
|
78
|
-
] })
|
|
79
|
-
] })
|
|
80
|
-
] })
|
|
81
|
-
] });
|
|
82
|
-
}
|
|
83
|
-
function A({
|
|
84
|
-
active: r,
|
|
85
|
-
baseUri: i,
|
|
86
|
-
name: c,
|
|
87
|
-
resourceGroups: a,
|
|
88
|
-
toggleTag: s
|
|
89
|
-
}) {
|
|
90
|
-
return /* @__PURE__ */ e(p, { children: [
|
|
91
|
-
/* @__PURE__ */ e("h2", { children: c }),
|
|
92
|
-
a.filter(({ infoGroupId: n }) => r.infoGroupIds.has(n)).map((n) => /* @__PURE__ */ e(
|
|
93
|
-
I,
|
|
94
|
-
{
|
|
95
|
-
...n,
|
|
96
|
-
baseUri: i,
|
|
97
|
-
active: r,
|
|
98
|
-
toggleTag: s
|
|
99
|
-
}
|
|
100
|
-
))
|
|
101
|
-
] });
|
|
102
|
-
}
|
|
103
|
-
function T({
|
|
104
|
-
active: r,
|
|
105
|
-
clearTags: i,
|
|
106
|
-
tagCategories: c,
|
|
107
|
-
toggleTag: a
|
|
108
|
-
}) {
|
|
109
|
-
const [s, n] = f(!1), t = g(null);
|
|
110
|
-
return C(() => {
|
|
111
|
-
t.current && (t.current.addEventListener("click", (o) => o.stopPropagation()), document.body.addEventListener("click", () => n(!1)));
|
|
112
|
-
}, [t.current]), /* @__PURE__ */ e("section", { class: "filters-outer", ref: t, children: [
|
|
113
|
-
/* @__PURE__ */ e(
|
|
114
|
-
"button",
|
|
115
|
-
{
|
|
116
|
-
onClick: () => n(!s),
|
|
117
|
-
class: `btn-filters btn ${s ? "active" : ""}`,
|
|
118
|
-
children: [
|
|
119
|
-
/* @__PURE__ */ e(d, { name: "filter" }),
|
|
120
|
-
" Filters",
|
|
121
|
-
r.tagIds.size > 0 ? /* @__PURE__ */ e("span", { class: "active-tag-count", children: r.tagIds.size }) : null
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
),
|
|
125
|
-
s ? /* @__PURE__ */ e("div", { class: "filters-inner", children: [
|
|
126
|
-
c.map((o) => /* @__PURE__ */ e(p, { children: [
|
|
127
|
-
/* @__PURE__ */ e("h2", { children: o.name }),
|
|
128
|
-
/* @__PURE__ */ e(b, { children: o.tags.map((u) => /* @__PURE__ */ e(m, { ...u, active: r, toggleTag: a })) })
|
|
129
|
-
] })),
|
|
130
|
-
/* @__PURE__ */ e(
|
|
131
|
-
"button",
|
|
132
|
-
{
|
|
133
|
-
onClick: i,
|
|
134
|
-
disabled: r.tagIds.size == 0,
|
|
135
|
-
class: "btn danger",
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ e(d, { name: "trash" }),
|
|
138
|
-
" Clear Filters"
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
] }) : null
|
|
143
|
-
] });
|
|
144
|
-
}
|
|
145
|
-
function G() {
|
|
146
|
-
const r = g(null);
|
|
147
|
-
return /* @__PURE__ */ e("section", { id: "resource-pathways", ref: r, children: [
|
|
148
|
-
/* @__PURE__ */ e("p", { class: "intro", children: [
|
|
149
|
-
"ACCESS provides advanced computing resources ",
|
|
150
|
-
/* @__PURE__ */ e("strong", { children: "at no cost" }),
|
|
151
|
-
" ",
|
|
152
|
-
"to researchers and educators."
|
|
153
|
-
] }),
|
|
154
|
-
/* @__PURE__ */ e("ul", { class: "resource-pathways", children: [
|
|
155
|
-
{
|
|
156
|
-
title: "Browse resources",
|
|
157
|
-
icon: "filter-square",
|
|
158
|
-
description: "Filter resources to find the best match for your research.",
|
|
159
|
-
onClick: (c) => {
|
|
160
|
-
c.preventDefault(), r.current && r.current.nextSibling.scrollIntoView({ bahavior: "smooth" });
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
title: "Ask a question",
|
|
165
|
-
icon: "question-circle",
|
|
166
|
-
href: "https://support.access-ci.org/",
|
|
167
|
-
description: "You have resource questions. Our Q&A bot has answers!",
|
|
168
|
-
login: !0
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
title: "Get suggestions",
|
|
172
|
-
icon: "card-checklist",
|
|
173
|
-
href: "https://access-ara.ccs.uky.edu:8080/",
|
|
174
|
-
description: "Fill out a form to get resource recommendations."
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
title: "Read news",
|
|
178
|
-
icon: "newspaper",
|
|
179
|
-
href: "https://access-ci.org/tag/resource-providers/",
|
|
180
|
-
description: "See the latest news from resource providers."
|
|
181
|
-
}
|
|
182
|
-
].map(
|
|
183
|
-
({ title: c, icon: a, href: s, description: n, login: t, onClick: o }, u) => /* @__PURE__ */ e("li", { class: `resource-pathway-${u}`, children: /* @__PURE__ */ e("a", { href: s || "#", onClick: o, children: [
|
|
184
|
-
a ? /* @__PURE__ */ e(d, { name: a }) : null,
|
|
185
|
-
" ",
|
|
186
|
-
/* @__PURE__ */ e("span", { class: "detail", children: [
|
|
187
|
-
/* @__PURE__ */ e("span", { class: "title", children: c }),
|
|
188
|
-
/* @__PURE__ */ e("span", { class: "description", children: n }),
|
|
189
|
-
t ? /* @__PURE__ */ e("span", { class: "login", children: [
|
|
190
|
-
/* @__PURE__ */ e(d, { name: "key" }),
|
|
191
|
-
" Requires ACCESS Login"
|
|
192
|
-
] }) : null
|
|
193
|
-
] })
|
|
194
|
-
] }) })
|
|
195
|
-
) })
|
|
196
|
-
] });
|
|
197
|
-
}
|
|
198
|
-
function L({
|
|
199
|
-
baseUri: r,
|
|
200
|
-
title: i,
|
|
201
|
-
showBreadcrumbs: c = !0,
|
|
202
|
-
showTitle: a = !0
|
|
203
|
-
}) {
|
|
204
|
-
const [s, n] = f([]), t = w(), o = y(
|
|
205
|
-
() => t ? S(t, s) : null,
|
|
206
|
-
[t, s]
|
|
207
|
-
), u = (l) => n(
|
|
208
|
-
s.includes(l) ? s.filter((v) => v != l) : [...s, l]
|
|
209
|
-
), h = () => n([]);
|
|
210
|
-
return /* @__PURE__ */ e(p, { children: [
|
|
211
|
-
c && /* @__PURE__ */ e(
|
|
212
|
-
k,
|
|
213
|
-
{
|
|
214
|
-
expandWidth: !0,
|
|
215
|
-
items: [{ name: "Resources" }],
|
|
216
|
-
topBorder: !0
|
|
217
|
-
}
|
|
218
|
-
),
|
|
219
|
-
i && /* @__PURE__ */ e("h1", { class: a ? "" : "visually-hidden", children: i }),
|
|
220
|
-
/* @__PURE__ */ e(G, {}),
|
|
221
|
-
/* @__PURE__ */ e("div", { id: "browse-resources", children: [
|
|
222
|
-
o ? /* @__PURE__ */ e(
|
|
223
|
-
T,
|
|
224
|
-
{
|
|
225
|
-
tagCategories: t.tagCategories,
|
|
226
|
-
active: o,
|
|
227
|
-
clearTags: h,
|
|
228
|
-
toggleTag: u
|
|
229
|
-
}
|
|
230
|
-
) : null,
|
|
231
|
-
t ? t.resourceCategories.filter(
|
|
232
|
-
({ resourceCategoryId: l }) => o.resourceCategoryIds.has(l)
|
|
233
|
-
).map((l) => /* @__PURE__ */ e(
|
|
234
|
-
A,
|
|
235
|
-
{
|
|
236
|
-
...l,
|
|
237
|
-
active: o,
|
|
238
|
-
baseUri: r,
|
|
239
|
-
clearTags: h,
|
|
240
|
-
toggleTag: u
|
|
241
|
-
}
|
|
242
|
-
)) : null
|
|
243
|
-
] })
|
|
244
|
-
] });
|
|
245
|
-
}
|
|
246
|
-
export {
|
|
247
|
-
L as default
|
|
248
|
-
};
|