-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1487 from usdoj/release-7.11.0
Release 7.11.0
- Loading branch information
Showing
33 changed files
with
22,979 additions
and
814 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,5 @@ | ||
app_env: ddev | ||
navigation: | ||
secondary: | ||
- href: https://dev-admin.foia.gov/user/login | ||
title: Agency login |
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,5 @@ | ||
app_env: development | ||
navigation: | ||
secondary: | ||
- href: https://dev-admin.foia.gov/user/login | ||
title: Agency login |
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,5 @@ | ||
app_env: production | ||
navigation: | ||
secondary: | ||
- href: https://admin.foia.gov/user/login | ||
title: Agency login |
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,5 @@ | ||
app_env: staging | ||
navigation: | ||
secondary: | ||
- href: https://stg-admin.foia.gov/user/login | ||
title: Agency login |
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,5 @@ | ||
app_env: uat | ||
navigation: | ||
secondary: | ||
- href: https://uat-admin.foia.gov/user/login | ||
title: Agency login |
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,15 @@ | ||
import 'babel-polyfill'; | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import { Router } from 'react-router-dom'; | ||
import FoiaContactDownload from 'pages/foia_contact_download'; | ||
import { createBrowserHistory } from 'history'; | ||
|
||
const history = createBrowserHistory(); | ||
|
||
render( | ||
<Router history={history}> | ||
<FoiaContactDownload /> | ||
</Router>, | ||
document.getElementById('contact-download-react-app'), | ||
); |
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,15 @@ | ||
import 'babel-polyfill'; | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import { Router } from 'react-router-dom'; | ||
import { createBrowserHistory } from 'history'; | ||
import FoiaDatasetDownload from 'pages/foia_dataset_download'; | ||
|
||
const history = createBrowserHistory(); | ||
|
||
render( | ||
<Router history={history}> | ||
<FoiaDatasetDownload /> | ||
</Router>, | ||
document.getElementById('dataset-download-react-app'), | ||
); |
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,22 @@ | ||
import React from 'react'; | ||
import { withRouter } from 'react-router-dom'; | ||
import ContactDownloadButton from './contact_download'; | ||
|
||
function FoiaContactDownload() { | ||
return ( | ||
<div className="usa-grid"> | ||
<div className="usa-width-one-whole"> | ||
|
||
<h1>FOIA Contact Download</h1> | ||
|
||
<p>The following file is the complete listing of all FOIA contacts across federal departments and agencies.</p> | ||
|
||
<ContactDownloadButton /> | ||
<div id="contact-download-react-app" /> | ||
|
||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default withRouter(FoiaContactDownload); |
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,31 @@ | ||
/* eslint-disable react/jsx-one-expression-per-line */ | ||
import React from 'react'; | ||
import { withRouter } from 'react-router-dom'; | ||
|
||
function FoiaDatasetDownload() { | ||
return ( | ||
<div className="usa-grid"> | ||
<div className="usa-width-one-whole"> | ||
<h1>FOIA Data Set Downloads</h1> | ||
<p>The following compressed files are complete archives of the FOIA Data sets for the years 2008 through 2019.</p> | ||
<ul> | ||
<li><a href="/2020-FOIASetFull.zip">Download the full 2020 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2019-FOIASetFull.zip">Download the full 2019 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2018-FOIASetFull.zip">Download the full 2018 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2017-FOIASetFull.zip">Download the full 2017 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2016-FOIASetFull.zip">Download the full 2016 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2015-FOIASetFull.zip">Download the full 2015 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2014-FOIASetFull.zip">Download the full 2014 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2013-FOIASetFull.zip">Download the full 2013 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2012-FOIASetFull.zip">Download the full 2012 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2011-FOIASetFull.zip">Download the full 2011 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2010-FOIASetFull.zip">Download the full 2010 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2009-FOIASetFull.zip">Download the full 2009 FOIA Data set</a> (.zip format)</li> | ||
<li><a href="/2008-FOIASetFull.zip">Download the full 2008 FOIA Data set</a> (.zip format)</li> | ||
</ul> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default withRouter(FoiaDatasetDownload); |
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,41 @@ | ||
import React from 'react'; | ||
import { withRouter } from 'react-router-dom'; | ||
import PropTypes from 'prop-types'; | ||
import SwaggerUI from 'swagger-ui-react'; | ||
import SwaggerSpec from '../../swagger.json'; | ||
|
||
function handleResponse(response) { | ||
if (response.status !== 200) { | ||
if (response.body.error.code === 'API_KEY_MISSING') { | ||
// eslint-disable-next-line no-alert | ||
alert(`API Authorization Required\n${response.body.error.message}`); | ||
} | ||
} | ||
return response; | ||
} | ||
|
||
function SwaggerPage(props) { | ||
return ( | ||
<div className="usa-grid"> | ||
<div className="usa-width-one-whole"> | ||
<SwaggerUI | ||
responseInterceptor={handleResponse} | ||
spec={SwaggerSpec} | ||
displayRequestDuration | ||
syntaxHighlight | ||
persistAuthorization | ||
tryItOutEnabled | ||
deepLinking | ||
history={props.history} | ||
supportedSubmitMethods={['get', 'options', 'head', 'patch', 'trace']} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
SwaggerPage.propTypes = { | ||
history: PropTypes.object.isRequired, | ||
}; | ||
|
||
export default withRouter(SwaggerPage); |
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,15 @@ | ||
import 'babel-polyfill'; | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import { Router } from 'react-router-dom'; | ||
import { createBrowserHistory } from 'history'; | ||
import SwaggerPage from './pages/swagger_page'; | ||
|
||
const history = createBrowserHistory(); | ||
history.push('/swagger.html'); | ||
render( | ||
<Router history={history}> | ||
<SwaggerPage /> | ||
</Router>, | ||
document.getElementById('swagger-api-react-app'), | ||
); |
Oops, something went wrong.