-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
167 changed files
with
5,556 additions
and
5,054 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"recommendations": ["arcanis.vscode-zipfs", "dbaeumer.vscode-eslint"] | ||
"recommendations": [ | ||
"arcanis.vscode-zipfs", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file renamed
BIN
+1.9 MB
...nter-npm-5.0.17-934c68bc5a-138ceacde8.zip → ...nter-npm-5.0.18-05cad4ac9e-be9c47c534.zip
Binary file not shown.
Binary file removed
BIN
-167 KB
.yarn/cache/@fortawesome-fontawesome-common-types-npm-6.4.0-8174465a2e-b19d91bc2d.zip
Binary file not shown.
Binary file removed
BIN
-5.53 MB
.yarn/cache/@fortawesome-fontawesome-free-npm-6.4.0-68881a27c1-3687846ef0.zip
Binary file not shown.
Binary file added
BIN
+5.66 MB
.yarn/cache/@fortawesome-fontawesome-free-npm-6.5.2-81f99be10c-8eb70fa762.zip
Binary file not shown.
Binary file renamed
BIN
+2.62 MB
...icons-npm-6.4.0-be633fc4ad-59c3b5e08f.zip → ...icons-npm-6.5.2-24587ff7e2-2f6dde7edd.zip
Binary file not shown.
Binary file renamed
BIN
+5.66 KB
...-env-npm-14.1.4-b56b1b68ec-76db04d141.zip → ...-env-npm-14.2.2-6ba2acb028-5efc7681f1.zip
Binary file not shown.
Binary file renamed
BIN
+31.5 MB
...darwin-arm64-npm-14.1.4-2a131bd981-10.zip → ...darwin-arm64-npm-14.2.2-03094cebed-10.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+155 KB
...rt-ui-npm-1.6.3-9f2cf14851-669a5613b2.zip → ...rt-ui-npm-1.6.8-cec54fc177-53af992e9a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+167 KB
...lpers-npm-0.5.2-f81ca286ad-3a3b179b33.zip → ...lpers-npm-0.5.5-a0698e6ac9-1c5ef04f64.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+32.2 KB
...lint-npm-8.56.9-2edf45a02f-fde20e8f3e.zip → ...int-npm-8.56.10-957cc305f5-0cdd914b94.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-49.5 KB
.yarn/cache/@types-react-bootstrap-npm-0.32.32-63b8fc7657-8c62d11934.zip
Binary file not shown.
Binary file added
BIN
+49.1 KB
.yarn/cache/@types-react-bootstrap-npm-0.32.36-c2d0eecb1e-d43d9c4b9c.zip
Binary file not shown.
Binary file renamed
BIN
+82.3 KB
...act-npm-18.2.75-6840469812-d609cdc52d.zip → ...act-npm-18.2.79-89aa23fe00-2ef833e7d0.zip
Binary file not shown.
Binary file added
BIN
+8.31 KB
.yarn/cache/@types-react-transition-group-npm-4.4.10-5e11bed850-b429f3bd54.zip
Binary file not shown.
Binary file removed
BIN
-8.49 KB
.yarn/cache/@types-react-transition-group-npm-4.4.6-3b139bdf30-eb4a14df7a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-5.74 KB
.yarn/cache/array-buffer-byte-length-npm-1.0.0-331671f28a-044e101ce1.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-10.8 KB
.yarn/cache/array.prototype.flat-npm-1.3.1-e9a9e389c0-787bd3e938.zip
Binary file not shown.
Binary file removed
BIN
-7.62 KB
.yarn/cache/available-typed-arrays-npm-1.0.5-88f321e4d3-4d4d5e86ea.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.38 KB
.yarn/cache/es-shim-unscopables-npm-1.0.0-06186593f1-ac2db2c70d.zip
Binary file not shown.
Binary file removed
BIN
-3.32 KB
.yarn/cache/eslint-import-resolver-node-npm-0.3.7-65bed19543-31c6dfbd34.zip
Binary file not shown.
Binary file removed
BIN
-17 KB
.yarn/cache/eslint-import-resolver-typescript-npm-3.5.5-ea69fbfbc9-e739b33203.zip
Binary file not shown.
Binary file added
BIN
+15.7 KB
.yarn/cache/eslint-import-resolver-typescript-npm-3.6.1-994bbf65fc-261df24721.zip
Binary file not shown.
Binary file removed
BIN
-16.9 KB
.yarn/cache/eslint-module-utils-npm-2.8.0-05e42bcab0-a9a7ed93eb.zip
Binary file not shown.
Binary file removed
BIN
-12.4 KB
.yarn/cache/eslint-visitor-keys-npm-3.4.1-a5d0a58208-92641e7ccd.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-11.1 KB
.yarn/cache/function.prototype.name-npm-1.1.5-e776a642bb-5d426e5a38.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.89 KB
.yarn/cache/get-symbol-description-npm-1.0.0-9c95a4bc1f-7e5f298afe.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.12 KB
.yarn/cache/has-property-descriptors-npm-1.0.0-56289b918d-a6d3f0a266.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.07 KB
.yarn/cache/is-inside-container-npm-1.0.0-f2c9e9bb96-c50b75a2ab.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.87 KB
.yarn/cache/is-shared-array-buffer-npm-1.0.2-32e4181fcd-23d82259d6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+23.2 MB
...next-npm-14.1.4-8151d9aeec-16dd0667d5.zip → ...next-npm-14.2.2-99b4c99f66-bf5e795bbb.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+7.18 KB
...mpare-npm-3.2.1-c0b870cc30-f6394513cd.zip → ...mpare-npm-3.2.2-45b585a872-a6826180ba.zip
Binary file not shown.
Binary file renamed
BIN
+20.4 MB
...icons-npm-5.0.1-5e01385cf2-c4458c643a.zip → ...icons-npm-5.1.0-804d5620c3-00f75809b1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-9.48 KB
.yarn/cache/regenerator-runtime-npm-0.13.11-90bf536060-d493e9e118.zip
Binary file not shown.
Binary file removed
BIN
-16 KB
.yarn/cache/regexp.prototype.flags-npm-1.5.0-5623b9e07f-c8229ec3f5.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-14 KB
.yarn/cache/string.prototype.trim-npm-1.2.7-3fbaf3b9d2-a1b795bdb4.zip
Binary file not shown.
Binary file removed
BIN
-11.3 KB
.yarn/cache/string.prototype.trimend-npm-1.0.6-304246ecc1-3893db9267.zip
Binary file not shown.
Binary file removed
BIN
-11.4 KB
.yarn/cache/string.prototype.trimstart-npm-1.0.6-0926caea6c-05e2cd06fa.zip
Binary file not shown.
Binary file removed
BIN
-2.47 KB
.yarn/cache/strip-final-newline-npm-2.0.0-340c4f7c66-69412b5e25.zip
Binary file not shown.
Binary file removed
BIN
-2.68 KB
.yarn/cache/strip-final-newline-npm-3.0.0-7972cbec8b-23ee263adf.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+19.8 KB
.yarn/cache/use-sync-external-store-npm-1.2.0-44f75d2564-a676216aff.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
yarnPath: ".yarn/releases/yarn-3.6.1.cjs" | ||
yarnPath: '.yarn/releases/yarn-3.6.1.cjs' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import Link from 'next/link'; | ||
|
||
interface TopicCardProps { | ||
topic: { | ||
name: string; | ||
long_name: string; | ||
icon: string; | ||
}; | ||
interviews: any; | ||
} | ||
|
||
const FontAwesomeIcon: React.FC<IconProps> = ({ iconName, className = '' }) => { | ||
return <i className={`fas fa-${iconName} ${className}`}></i>; | ||
}; | ||
|
||
const TopicCard = ({ topic, interviews }) => { | ||
return ( | ||
<div className="col-lg-4"> | ||
<Link | ||
href={`/${topic.name.toLowerCase()}`} | ||
className="text-decoration-none text-dark" | ||
> | ||
<div className="card m-1 topic-card h-100"> | ||
<div className="card-header d-flex align-items-center"> | ||
<FontAwesomeIcon | ||
iconName={topic.icon} | ||
className="fa-icon" | ||
style={{ minWidth: '40px', minHeight: '40px' }} | ||
/> | ||
<h5 className="card-title ms-3">{topic.long_name}</h5> | ||
</div> | ||
<div className="card-body"> | ||
{interviews.length > 0 ? ( | ||
interviews.map((interview, index) => ( | ||
<span key={index} className="form-tag"> | ||
{interview.metadata.title} | ||
</span> | ||
)) | ||
) : ( | ||
<p>No interviews available.</p> | ||
)} | ||
</div> | ||
</div> | ||
</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default TopicCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const formSources = { | ||
docassembleServers: [ | ||
{ | ||
key: 'suffolkListLab', | ||
url: 'https://apps.suffolklitlab.org', | ||
name: 'Suffolk LIT Lab', | ||
}, | ||
{ | ||
key: 'greaterBostonLegalService', | ||
url: 'https://interviews.gbls.org', | ||
name: 'Greater Boston Legal Services', | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
'use client'; | ||
|
||
import useSWR from 'swr'; | ||
import { formSources } from '../config/formSources.config'; | ||
import { legalTopics } from '../config/topics.config'; | ||
|
||
export const fetcher = (url) => fetch(url).then((res) => res.json()); | ||
|
||
export const useInterviews = () => { | ||
// This can be modified to grab a different url from formsources based on subdomain or route. | ||
const serverUrl = formSources.docassembleServers[0].url; | ||
const url = new URL(`${serverUrl}/list`); | ||
url.search = 'json=1'; | ||
|
||
const { data, error, isLoading } = useSWR(url.toString(), fetcher); | ||
|
||
const interviewsByTopic = { Other: [] }; | ||
|
||
// Match returned interview data to corresponding topic from topics.config.ts | ||
if (data && data.interviews) { | ||
data.interviews.forEach((interview) => { | ||
let assigned = false; | ||
const tags = interview.tags || []; | ||
if (tags.length === 0) { | ||
interviewsByTopic['Other'].push(interview); | ||
} else { | ||
tags.forEach((tag) => { | ||
const topic = legalTopics.find((t) => t.codes.includes(tag)); | ||
if (topic) { | ||
if (!interviewsByTopic[topic.name]) { | ||
interviewsByTopic[topic.name] = []; | ||
} | ||
interviewsByTopic[topic.name].push(interview); | ||
assigned = true; | ||
} | ||
}); | ||
if (!assigned) { | ||
interviewsByTopic['Other'].push(interview); | ||
} | ||
} | ||
}); | ||
} | ||
|
||
return { | ||
interviewsByTopic, | ||
isLoading, | ||
isError: error, | ||
}; | ||
}; |
Oops, something went wrong.