Skip to content

Commit 3e22c2d

Browse files
committed
Finish formatting with prettier
1 parent 74678c0 commit 3e22c2d

File tree

10 files changed

+87
-65
lines changed

10 files changed

+87
-65
lines changed

frontend/src/css/app.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ a.link {
88
}
99

1010
body {
11-
font-size: 1em;
11+
font-size: 1em;
1212
}
1313

1414
.text-decoration-none {
@@ -57,7 +57,6 @@ body {
5757
}
5858
}
5959

60-
6160
/* Small devices (portrait tablets and large phones, 600px and up) */
6261
@media (min-width: 600px) and (max-width: 768px) {
6362
.text-h1 {
@@ -77,11 +76,10 @@ body {
7776
}
7877
}
7978

80-
8179
/**
8280
* Scrollable Component
8381
* - top margin ensures the component is below the toolbar on scroll
8482
*/
85-
.scrollable {
83+
.scrollable {
8684
scroll-margin-top: 80px;
8785
}

frontend/src/css/quasar.variables.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
// to match your app's branding.
1313
// Tip: Use the "Theme Builder" on Quasar's documentation website.
1414

15-
$primary : #950f1a;
16-
$secondary : #f18029;
17-
$accent : #f5e031;
15+
$primary: #950f1a;
16+
$secondary: #f18029;
17+
$accent: #f5e031;
1818

19-
$dark : #1D1D1D;
20-
$dark-page : #121212;
19+
$dark: #1d1d1d;
20+
$dark-page: #121212;
2121

22-
$positive : #21BA45;
23-
$negative : #C10015;
24-
$info : #31CCEC;
25-
$warning : #F2C037;
22+
$positive: #21ba45;
23+
$negative: #c10015;
24+
$info: #31ccec;
25+
$warning: #f2c037;

frontend/src/layouts/MainLayout.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
</div>
5555
<div class="text-body2 text-right">
5656
<div>
57-
<a class="text-white text-decoration-none" href='/privacy'>Privacy Policy</a> |
58-
<a class="text-white text-decoration-none" href='/tos'>Terms of Service</a> |
59-
<a class="text-white text-decoration-none" href='https://www.jhuapl.edu/'>APL Home</a>
57+
<a class="text-white text-decoration-none" href="/privacy">Privacy Policy</a> |
58+
<a class="text-white text-decoration-none" href="/tos">Terms of Service</a> |
59+
<a class="text-white text-decoration-none" href="https://www.jhuapl.edu/">APL Home</a>
6060
</div>
6161
<div>&copy; 2024 JHU/APL. All rights reserved.</div>
6262
</div>

frontend/src/models/projects.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,25 @@ export const ProjectTableColumns: QTableColumn[] = [
6969
name: 'principalInvestigator',
7070
label: 'Principal Investigator(s)',
7171
align: 'left',
72-
field: (row) => row.contributors
73-
.sort((a: Contributor, b: Contributor) => {
74-
if (a.roles.includes(ContributorRole.contactPrincipalInvestigator)) return -1;
75-
if (b.roles.includes(ContributorRole.contactPrincipalInvestigator)) return 1;
72+
field: (row) =>
73+
row.contributors.sort((a: Contributor, b: Contributor) => {
74+
if (a.roles.includes(ContributorRole.contactPrincipalInvestigator)) return -1;
75+
if (b.roles.includes(ContributorRole.contactPrincipalInvestigator)) return 1;
7676

77-
return 0;
78-
})
79-
,
77+
return 0;
78+
}),
8079
required: true,
8180
sortable: true,
82-
format: (val) => val.map((c: Contributor) => c.name).join(', ')
81+
format: (val) => val.map((c: Contributor) => c.name).join(', '),
8382
},
8483
{
8584
name: 'contactPrincipalInvestigator',
8685
label: 'Contact PI',
8786
align: 'left',
88-
field: (row) => row.contributors.filter((c: Contributor) => c.roles.includes(ContributorRole.contactPrincipalInvestigator)),
87+
field: (row) =>
88+
row.contributors.filter((c: Contributor) =>
89+
c.roles.includes(ContributorRole.contactPrincipalInvestigator)
90+
),
8991
required: true,
9092
sortable: true,
9193
},

frontend/src/pages/AboutPage.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
<p>
1111
In September 2024, our team at the
1212
<LinkText :link="links.jhuapl" />
13-
, University of California, Los Angeles, University
14-
of Pennsylvania, Dartmouth College, and Massachusetts Institute of Technology were
15-
funded by the NIH Grant
13+
, University of California, Los Angeles, University of Pennsylvania, Dartmouth College,
14+
and Massachusetts Institute of Technology were funded by the NIH Grant
1615
<LinkText :link="links.ember_grant" />
1716
to build the data archive for hosting the data generated through the NIH
1817
<LinkText :link="links.brain_initiative" />'s <LinkText :link="links.bbqs_full" />.
@@ -37,7 +36,10 @@
3736
; IARPA
3837
<LinkText text="MICrONS" uri="https://directorsblog.nih.gov/tag/microns/" />
3938
; DARPA
40-
<LinkText text="Revolutionizing Prosthetics Program" uri="https://www.jhuapl.edu/work/projects-and-missions/revolutionizing-prosthetics" />
39+
<LinkText
40+
text="Revolutionizing Prosthetics Program"
41+
uri="https://www.jhuapl.edu/work/projects-and-missions/revolutionizing-prosthetics"
42+
/>
4143
; NIH
4244
<LinkText
4345
text="CONNECTS"

frontend/src/pages/GettingStartedPage.vue

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
<p>
88
The EMBER Archive supports free storage and sharing of public data, prioritizing data
99
generated as a part of the
10-
<LinkText :link="links.bbqs_full" />. Users can create an account to begin instantiating a project and uploading data. Users can also request access to data. As the program progresses, project data will be released freely and publicly following appropriate protocols.
10+
<LinkText :link="links.bbqs_full" />. Users can create an account to begin instantiating
11+
a project and uploading data. Users can also request access to data. As the program
12+
progresses, project data will be released freely and publicly following appropriate
13+
protocols.
1114
</p>
1215
<p>
1316
<span class="text-bold">
1417
Currently, PHI/PII data cannot be submitted to the EMBER Archive.
1518
</span>
16-
As the BBQS program progresses, EMBER will be adding functionality to support PHI/PII data storage.
19+
As the BBQS program progresses, EMBER will be adding functionality to support PHI/PII
20+
data storage.
1721
</p>
1822
</q-card-section>
1923
</q-card>
@@ -27,7 +31,8 @@
2731
<q-item-section>
2832
<q-item-label overline>Phase I</q-item-label>
2933
<q-item-label>
30-
Users will be required to verify human data have been de-identified and are approved for release and reuse. PHI/PII data will not be accepted.
34+
Users will be required to verify human data have been de-identified and are
35+
approved for release and reuse. PHI/PII data will not be accepted.
3136
</q-item-label>
3237
</q-item-section>
3338
</q-item>
@@ -36,7 +41,8 @@
3641
<q-item-section>
3742
<q-item-label overline>Phase II</q-item-label>
3843
<q-item-label>
39-
Data access controls and data use agreements will be implemented, as needed, in accordance with IRB requirements.
44+
Data access controls and data use agreements will be implemented, as needed, in
45+
accordance with IRB requirements.
4046
</q-item-label>
4147
</q-item-section>
4248
</q-item>
@@ -45,7 +51,8 @@
4551
<q-item-section>
4652
<q-item-label overline>Phase III</q-item-label>
4753
<q-item-label>
48-
Additional support for the storage and access control for PHI and PII data will be added.
54+
Additional support for the storage and access control for PHI and PII data will be
55+
added.
4956
</q-item-label>
5057
</q-item-section>
5158
</q-item>
@@ -62,7 +69,8 @@
6269
<q-item-section>
6370
<q-item-label overline>Metadata</q-item-label>
6471
<q-item-label>
65-
Users can create an EMBER Project, specifying required and optional data for EMBERsets.
72+
Users can create an EMBER Project, specifying required and optional data for
73+
EMBERsets.
6674
</q-item-label>
6775
</q-item-section>
6876
</q-item>
@@ -71,7 +79,9 @@
7179
<q-item-section>
7280
<q-item-label overline>Animal Electrophysiology and Behavioral Data</q-item-label>
7381
<q-item-label>
74-
Users can upload animal electrophysiology and behavioral data, specified in NWB and BIDS formats, along with supporting data files. This leverages our EMBER-DANDI instance.
82+
Users can upload animal electrophysiology and behavioral data, specified in NWB
83+
and BIDS formats, along with supporting data files. This leverages our EMBER-DANDI
84+
instance.
7585
</q-item-label>
7686
</q-item-section>
7787
</q-item>
@@ -80,7 +90,9 @@
8090
<q-item-section>
8191
<q-item-label overline>De-identified Human Data</q-item-label>
8292
<q-item-label>
83-
Appropriately de-identified human data, such as electrophysiology, can be uploaded by users once assuring the appropriate IRB processes are followed and consent documented. Please contact us for more information!
93+
Appropriately de-identified human data, such as electrophysiology, can be uploaded
94+
by users once assuring the appropriate IRB processes are followed and consent
95+
documented. Please contact us for more information!
8496
</q-item-label>
8597
</q-item-section>
8698
</q-item>
@@ -89,11 +101,11 @@
89101
<q-item-section>
90102
<q-item-label overline>Future Phases</q-item-label>
91103
<q-item-label>
92-
Future phases will allow upload of human data requiring access controls or data use agreements, as well as secure upload of PHI/PII information.
104+
Future phases will allow upload of human data requiring access controls or data
105+
use agreements, as well as secure upload of PHI/PII information.
93106
</q-item-label>
94107
</q-item-section>
95108
</q-item>
96-
97109
</q-list>
98110
</q-card-section>
99111

@@ -125,7 +137,8 @@
125137
<div class="text-h2 scrollable" ref="dataAccessSection">Data Access & Requests</div>
126138

127139
<p class="q-px-md q-py-sm">
128-
Users can create an account to request data access. As data are released publicly in support of the BBQS program, they will be listed on the
140+
Users can create an account to request data access. As data are released publicly in
141+
support of the BBQS program, they will be listed on the
129142
<RouterLink to="/projects" class="link">Projects</RouterLink>
130143
page.
131144
</p>

frontend/src/pages/IndexPage.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
</p>
5555

5656
<p>
57-
For BBQS project teams,
58-
please visit the
57+
For BBQS project teams, please visit the
5958
<RouterLink to="/getting-started#data-upload" class="link">Data Upload</RouterLink>
6059
section of the
6160
<RouterLink to="/getting-started" class="link">Getting Started</RouterLink>
@@ -68,10 +67,9 @@
6867
>does not yet support storage of Personally Identifiable Information (PII) or
6968
Protected Health Information (PHI)</span
7069
>, but support for this capability is under development. BBQS project teams will be
71-
responsible for ensuring compliance with guidelines from any and all
72-
entities that may govern the use of your data, including the Institutional Review Board
73-
(IRB) of your institution. To learn more about how this may affect your workflow, visit
74-
the
70+
responsible for ensuring compliance with guidelines from any and all entities that may
71+
govern the use of your data, including the Institutional Review Board (IRB) of your
72+
institution. To learn more about how this may affect your workflow, visit the
7573
<RouterLink to="/getting-started#compliance" class="link">Compliance</RouterLink>
7674
section of the
7775
<RouterLink to="/getting-started" class="link">Getting Started</RouterLink>

frontend/src/pages/PrivacyPolicy.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
<p><span class="text-bold">Effective Date:</span> 2/24/2025</p>
77

88
<p>
9-
The Johns Hopkins University Applied Physics Laboratory, LLC (JHU/APL)
10-
("<span class="text-bold">we</span>", "<span class="text-bold">our</span>", or
11-
"<span class="text-bold">us</span>") respects the privacy of our users. This Privacy Policy
12-
describes how we collect, use, and share information in connection with the EMBER website,
9+
The Johns Hopkins University Applied Physics Laboratory, LLC (JHU/APL) ("<span
10+
class="text-bold"
11+
>we</span
12+
>", "<span class="text-bold">our</span>", or "<span class="text-bold">us</span>") respects
13+
the privacy of our users. This Privacy Policy describes how we collect, use, and share
14+
information in connection with the EMBER website,
1315
<LinkText href="https://emberarchive.org" text="https://emberarchive.org" />
14-
("<span class="text-bold">Website</span>"), our social media pages that link to this Privacy
15-
Policy, and all publicly accessible servers, APIs, cloud services, and websites operated
16-
by the EMBER project (collectively, the "<span class="text-bold">Sites</span>"). It also
17-
explains your rights and choices with respect to such information.
16+
("<span class="text-bold">Website</span>"), our social media pages that link to this
17+
Privacy Policy, and all publicly accessible servers, APIs, cloud services, and websites
18+
operated by the EMBER project (collectively, the "<span class="text-bold">Sites</span>").
19+
It also explains your rights and choices with respect to such information.
1820
</p>
1921

2022
<p>

frontend/src/pages/ProjectsPage.vue

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@
99
<LinkText :link="links.brain_initiative" />
1010
, through its ongoing
1111
<LinkText :link="links.bbqs_full" />
12-
, has funded {{ projectCounts.total }} research projects, with the earliest project start
13-
date of {{ earliestProjectStart }}. {{ projectCounts.r61r33 }} of the projects are funded
14-
through the
12+
, has funded {{ projectCounts.total }} research projects, with the earliest project
13+
start date of {{ earliestProjectStart }}. {{ projectCounts.r61r33 }} of the projects are
14+
funded through the
1515
<LinkText
1616
text="R61/R33 mechanism"
1717
uri="https://grants.nih.gov/grants/guide/rfa-files/RFA-MH-22-240.html"
1818
/>
19-
intended to support the development and validation of next-generation tools, methods, and
20-
analytic approaches to precisely quantify behaviors and combine them with simultaneous
21-
recordings of brain activity in humans; {{ projectCounts.r34 }} of the projects are funded
22-
through the
19+
intended to support the development and validation of next-generation tools, methods,
20+
and analytic approaches to precisely quantify behaviors and combine them with
21+
simultaneous recordings of brain activity in humans; {{ projectCounts.r34 }} of the
22+
projects are funded through the
2323
<LinkText
2424
text="R34 mechanism"
2525
uri="https://grants.nih.gov/grants/guide/rfa-files/RFA-DA-23-030.html"
2626
/>
2727
, intended to support planning and development of the research framework, design, and
2828
approach, including activities that will establish feasibility, validity, and/or other
29-
technically qualifying results that, if successful, would support a competitive application
30-
for a U01, R01 or equivalent NIH research award.
29+
technically qualifying results that, if successful, would support a competitive
30+
application for a U01, R01 or equivalent NIH research award.
3131
</p>
3232

3333
<p>A quick overview of the BBQS research projects is provided below.</p>
@@ -52,7 +52,12 @@
5252
<template v-slot:body-cell-contactPrincipalInvestigator="props">
5353
<q-td>
5454
<span v-for="(pi, idx) in props.value" :key="pi">
55-
<a v-if="'email' in pi && pi.email" :href="`mailto:${pi.email}`" target="_blank" class="link">
55+
<a
56+
v-if="'email' in pi && pi.email"
57+
:href="`mailto:${pi.email}`"
58+
target="_blank"
59+
class="link"
60+
>
5661
{{ pi.name }}
5762
</a>
5863
<span v-else>{{ pi.name }}</span>

frontend/src/router/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ import routes from './routes';
2020
export default route(function (/* { store, ssrContext } */) {
2121
const createHistory = process.env.SERVER
2222
? createMemoryHistory
23-
: (process.env.VUE_ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory);
23+
: process.env.VUE_ROUTER_MODE === 'history'
24+
? createWebHistory
25+
: createWebHashHistory;
2426

2527
const Router = createRouter({
2628
scrollBehavior: () => ({ left: 0, top: 0 }),

0 commit comments

Comments
 (0)