Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit fe92959

Browse files
author
Froilan Irizarry
authored
Merge branch 'master' into get-statuses-from-api
2 parents 6ba58e3 + 2d1d506 commit fe92959

File tree

141 files changed

+3127
-5767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+3127
-5767
lines changed

CONFIGURATION.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Configuration of code-gov-web
2+
code-gov-web is configurable. You can customize the styling, content and much more by adding to and updating the `code-gov-config.json` file found at [code-gov-web/config/code-gov-config.json](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json)
3+
4+
# Domain
5+
If you want to host code-gov-web on your own domain, you'll have to change the CNAME file found at [code-gov-web/config/CNAME](https://github.com/GSA/code-gov-web/blob/master/config/CNAME)
6+
7+
# [title](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L2)
8+
To change the title of the website change the `title` property in `code-gov-web/config/code-gov-config.json`
9+
10+
# [twitter handle](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L9)
11+
You can add the handle for your twitter account. This is used to generate the link for the Twitter icon in the top right of each page. Update the handle property in `code-gov-web/config/code-gov-config.json`
12+
13+
# [homepage](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L12)
14+
You can configure everything on the home page.
15+
16+
### [banner](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L13)
17+
You can configure the content inside of the banner area. You change the motto `Sharing America's Code` to whatever you want. You can also change the subtitle, `Unlock the tremendous...`, and description of the help wanted tasks, `Discover how you can...`
18+
19+
# [roadmap](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L108)
20+
The roadmap section is fully configurable. You can see a live example of what the roadmap looks like here: https://code.gov/#/roadmap
21+
22+
### [overview](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L109)
23+
You can configure the text that appears under [overview](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L109). This is represented as an array of paragraph HTML text.
24+
```
25+
"overview": [
26+
"At Code.gov, we know it’s important to keep an open dialogue with our users. That’s why we’re sharing our plans for the future through this Development Roadmap. Hopefully, it will help you better understand our priorities for the platform.",
27+
"The Development Roadmap is organized into three categories – Near-term, Mid-term, and Long-term. Priorities are sorted into roadmap categories based on feedback we receive during user interviews. Dependencies and resources are also factors that affect placement on the roadmap. If you want to join the Code.gov user testing group, please email us at <a href='mailto:code@gsa.gov'>Code@gsa.gov</a>."
28+
],
29+
```
30+
### [near-, mid-, and long-term tasks](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L113)
31+
You can configure your [tasks](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L113) for different time durations. They are represented as an array of task objects with each task object including two properties, `name` and `status`. The status can be of three options: `Released`, `In Progress`, or `null`. Here's an example of configuring the mid-term tasks:
32+
```
33+
"mid": [
34+
{ "name": "Agency pages", "status": null },
35+
{ "name": "Medium skin", "status": null },
36+
{ "name": "FAQs page", "status": "In Progress" },
37+
{ "name": "Admin tool", "status": null },
38+
{ "name": "Enhanced tools and resources", "status": null },
39+
{ "name": "Project Details Phase II", "status": null}
40+
],
41+
```
42+
43+
### [disclaimer](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L134)
44+
You can also add a [disclaimer](https://github.com/GSA/code-gov-web/blob/master/config/code-gov-config.json#L134) that says you can't guarantee that features are rolled out according to the roadmap
45+
```
46+
"disclaimer": "This Development Roadmap (Roadmap) is for informational purposes only. The Code.gov team will update the Roadmap as frequently as possible but, given that it’s subject to change at any time, the information presented by the Roadmap should not be used for planning purposes. The information presented in the Roadmap does not represent a solicitation or similar contract vehicle. All items in the Roadmap will be developed and released at the sole discretion of Code.gov, the General Services Agency, the Office of Management and Budget, and the United States Federal Government."
47+
```
48+
49+
50+
# more soon
51+
There's many other ways to customize code-gov-web. More documentation coming soon!
52+
53+
# contact
54+
If you have any questions, you can post an issue on GitHub or email us at code@gsa.gov

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ We're so glad you're thinking about contributing to a U.S. Government open sourc
44

55
We encourage you to read this project's CONTRIBUTING policy (you are here), its [LICENSE](LICENSE.md), and its [README](README.md).
66

7-
## How to contribute to Code.gov
7+
## How to contribute to code-gov-web
88

9-
- Report bugs and request features via [Github Issues](https://github.com/GSA/code-gov-api/issues).
9+
- Report bugs and request features via [Github Issues](https://github.com/GSA/code-gov-web/issues).
1010
- Join the [mailing list](http://code.us15.list-manage.com/subscribe?u=57dec439b29289fc14396b8db&id=a317168ea7) and stay up to date with our latest news.
11-
- [Share your ideas](mailto://code@gsa.gov) for how to improve Code.gov. We're always open to suggestions.
11+
- [Share your ideas](mailto://code@gsa.gov) for how to improve code-gov-web. We're always open to suggestions.
1212
- Create a [Github pull request](https://help.github.com/articles/creating-a-pull-request/) with new functionality or fixing a bug.
13-
- Improve or create documentation for Code.gov.
13+
- Improve or create documentation for code-gov-web.
1414
- Help us improve our unit and integrations tests.
1515
- Triage tickets and review patches triaging-tickets created by other users.
1616

1717
## Public domain
1818

1919
As noted in [LICENSE](LICENSE.md), this project is in the worldwide public domain (in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/)).
2020

21-
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.
21+
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
The Devicons font files in `src/assets/fonts` are licensed under the [MIT License](https://opensource.org/licenses/MIT), and copyright [Theodore Vorillas](https://github.com/vorillaz).
66

7-
The FontAwesome font files in `src/assets/fonts` are from [Font Awesome](http://fontawesome.io/) by Dave Gandy under the [SIL Open Font License 1.1](http://scripts.sil.org/OFL). The FontAwesome styles located in `src/assets/fonts.css` are licensed under the [MIT License](https://opensource.org/licenses/MIT).
7+
The FontAwesome SVG's are found inside code-gov-font's font files. [Font Awesome](http://fontawesome.io/) is by Dave Gandy under the [SIL Open Font License 1.1](http://scripts.sil.org/OFL).
88

99
The Merriweather font files in `src/assets/fonts` are from [Google Web Fonts](https://www.google.com/fonts#UsePlace:use/Collection:Merriweather:400,300,400italic,700,700italic), licensed under the [SIL Open Font License](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL), and copyright [Sorkin Type Co](www.sorkintype.com) with Reserved Font Name 'Merriweather'.
1010

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Over the next few weeks, we will begin the *discovery sprint* for code.gov. Duri
2727

2828
After the discovery sprint, we'll begin building the site. We'll be relying on input from the community and from agencies about what features should be delivered first. That list of features will drive the *design sprint* and *development sprint*. And because this site is being developed in the open, you will be able to make contributions and provide feedback here as we go.
2929

30+
## Configuration
31+
For documentation on how to configure code-gov-web, go [here](https://github.com/GSA/code-gov-web/blob/master/CONFIGURATION.md).
32+
3033
## Contributing
3134

3235
Here’s how you can help contribute to code.gov:

about.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ team:
6262
- github: mattbailey0
6363
id: Matt Bailey
6464
role: Community Manager
65-
65+
6666
# Partners for whom the project is developed
6767
partners:
6868
- OMB
@@ -106,11 +106,11 @@ licenses:
106106
ruby-on-rails:
107107
name: MIT
108108
url: https://github.com/rails/rails
109-
109+
110110
jquery-1.11.3.min.js:
111111
name: MIT
112112
url: https://jquery.org/license/
113-
font-awesome.min.css:
113+
font-awesome:
114114
name: MIT, SIL OFL 1.1, CC BY 3.0
115115
url: http://fontawesome.io/license/
116116
ruby:

config/code-gov-config.json

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
{
2+
"title": "code.gov",
3+
"api": {
4+
"base": "https://api.code.gov/",
5+
"key": "OC457325hyT6DpFm5HBBZ1i8SR6gtp5U2CdqtHZQ"
6+
},
7+
"style": "code-gov-style",
8+
"twitter": {
9+
"handle": "codedotgov"
10+
},
11+
"content": {
12+
"home": {
13+
"banner": {
14+
"motto": "Sharing America's Code",
15+
"subtitle": "Unlock the tremendous potential of the Federal Government’s software.",
16+
"help_wanted_description": "Discover how you can get involved and make America's code better"
17+
},
18+
"mission": "Code.gov leverages the power of code sharing and collaboration to help the US Government cut down on duplicative software development and save millions of taxpayer dollars for the American people.",
19+
"about": [
20+
{
21+
"title": "About Us",
22+
"description": "Code.gov is on track to become the nation’s primary platform for sharing America’s code. Find out how we’ll get there.",
23+
"link": "/policy-guide/docs/overview/introduction",
24+
"image": "../../../assets/img/icons/info_bl.png"
25+
},
26+
{
27+
"title": "Policy Info",
28+
"description": "The Federal Source Code Policy helps government agencies reduce duplicative software development and save taxpayer dollars.",
29+
"link": "/policy-guide/policy/introduction",
30+
"image": "../../../assets/img/icons/policy_bl.png"
31+
},
32+
{
33+
"title": "Progress Report",
34+
"description": "Government agencies are working hard to unlock the potential of code sharing and collaboration. Here’s a quick snapshot of their progress.",
35+
"link": "/policy-guide/docs/compliance/dashboard",
36+
"image": "../../../assets/img/icons/check_bl.png"
37+
}
38+
],
39+
"featured": [
40+
{
41+
"short_name": "WNTR",
42+
"verbose_name": "Water Network Tool for Resilience",
43+
"author": "Environmental Protection Agency",
44+
"description": "A python package designed to simulate and analyze resilience of water distribution networks.",
45+
"image": "/assets/img/featured-projects/pipes4.png",
46+
"links": {
47+
"view_project": "/#/explore-code/agencies/DOE/repos/doe_snl_water_network_tool_for_resilience_v_1_0",
48+
"go_to_repo": "https://github.com/usepa/wntr"
49+
}
50+
},
51+
{
52+
"short_name": "ITS ODE",
53+
"verbose_name": "Intelligent Transportation Systems Operational Data Environment",
54+
"author": "Department of Transportation",
55+
"description": "A real-time virtual data router that ingests and processes operational data from various connected devices including vehicles, infrastructure, and traffic management centers and distributes it to other devices and subscribing transportation management applications.",
56+
"image": "/assets/img/featured-projects/smartcity4.png",
57+
"links": {
58+
"view_project": "/#/explore-code/agencies/DOT/repos/dot_fhwa_intelligent_transportation_systems_operational_data_environment_its_ode_",
59+
"go_to_repo": "https://github.com/usdot-jpo-ode/jpo-ode"
60+
}
61+
},
62+
{
63+
"short_name": "WALKOFF",
64+
"verbose_name": "",
65+
"author": "National Security Agency",
66+
"description": "Enables security teams to integrate apps, workflows, and analytics tools that would otherwise need to be created from scratch.",
67+
"image": "/assets/img/featured-projects/WALKOFF.png",
68+
"links": {
69+
"view_project": "/#/explore-code/agencies/NSA/repos/nsa_walkoff",
70+
"go_to_repo": "https://github.com/iadgov/WALKOFF"
71+
}
72+
}
73+
]
74+
},
75+
"footer": {
76+
"links": [
77+
{
78+
"name": "Privacy Policy",
79+
"url": "/#/privacy-policy"
80+
},
81+
{
82+
"name": "Visit Project Page",
83+
"url": "https://github.com/GSA/code-gov-web"
84+
},
85+
{
86+
"name": "Join Mailing List",
87+
"url": "https://bit.ly/2pnRlYN"
88+
}
89+
],
90+
"logos": [
91+
{
92+
"image": "/assets/img/logos/whitehouse.png",
93+
"name": "The White House",
94+
"url": "https://whitehouse.gov/"
95+
},
96+
{
97+
"image": "/assets/img/logos/PIF.png",
98+
"name": "Presidential Innovation Fellows",
99+
"url": "https://presidentialinnovationfellows.gov/"
100+
},
101+
{
102+
"image": "/assets/img/logos/GSA.png",
103+
"name": "U.S. General Services Administration",
104+
"url": "https://www.gsa.gov/"
105+
}
106+
]
107+
},
108+
"roadmap": {
109+
"overview": [
110+
"At Code.gov, we know it’s important to keep an open dialogue with our users. That’s why we’re sharing our plans for the future through this Development Roadmap. Hopefully, it will help you better understand our priorities for the platform.",
111+
"The Development Roadmap is organized into three categories – Near-term, Mid-term, and Long-term. Priorities are sorted into roadmap categories based on feedback we receive during user interviews. Dependencies and resources are also factors that affect placement on the roadmap. If you want to join the Code.gov user testing group, please email us at <a href='mailto:code@gsa.gov'>Code@gsa.gov</a>."
112+
],
113+
"near": [
114+
{ "name": "Search results", "status": "Released" },
115+
{ "name": "Project Details Phase I", "status": "Released" },
116+
{ "name": "Help wanted", "status": "Released" },
117+
{ "name": "Roadmap on site", "status": "Released" },
118+
{ "name": "Enhanced compliance dashboard", "status": "Released" },
119+
{ "name": "Increased agency participation", "status": "Released" },
120+
{ "name": "Metadata schema 1.0 & 1.0.1 deprecation", "status": "Released" }
121+
],
122+
"mid": [
123+
{ "name": "Agency pages", "status": null },
124+
{ "name": "Medium skin", "status": null },
125+
{ "name": "FAQs page", "status": "In Progress" },
126+
{ "name": "Admin tool", "status": null },
127+
{ "name": "Enhanced tools and resources", "status": null },
128+
{ "name": "Project Details Phase II", "status": null}
129+
],
130+
"long": [
131+
{ "name": "User accounts", "status": null },
132+
{ "name": "Gamification", "status": null }
133+
],
134+
"disclaimer": "This Development Roadmap (Roadmap) is for informational purposes only. The Code.gov team will update the Roadmap as frequently as possible but, given that it’s subject to change at any time, the information presented by the Roadmap should not be used for planning purposes. The information presented in the Roadmap does not represent a solicitation or similar contract vehicle. All items in the Roadmap will be developed and released at the sole discretion of Code.gov, the General Services Agency, the Office of Management and Budget, and the United States Federal Government."
135+
}
136+
},
137+
"images": {
138+
"background": "./assets/img/american_flag_1920x1280_gradient.jpg"
139+
}
140+
}

config/webpack.common.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const NamedModulesPlugin = require('webpack/lib/NamedModulesPlugin');
2727
const PreloadWebpackPlugin = require('preload-webpack-plugin');
2828
const postcssCssnext = require('postcss-cssnext');
2929
const postcssImport = require('postcss-import');
30+
const SiteConfig = require('./code-gov-config.json');
3031

3132
module.exports = function (options) {
3233

@@ -53,7 +54,6 @@ module.exports = function (options) {
5354

5455
const METADATA = {
5556
API_URL,
56-
title: 'Code.gov',
5757
baseUrl: '/',
5858
isDevServer: helpers.isWebpackDevServer(),
5959
gtmAuth: isProd ? 'GTM-M9L9Q5' : 'GTM-MSJCVS',
@@ -78,6 +78,15 @@ module.exports = function (options) {
7878
/**
7979
* Common Plugins
8080
*/
81+
82+
const htmlWebpackPlugin = new HtmlWebpackPlugin(Object.assign({
83+
template: 'src/index.html',
84+
chunksSortMode: 'dependency',
85+
metadata: METADATA,
86+
inject: 'head'
87+
}, SiteConfig));
88+
console.log("htmlWebpackPlugin:", htmlWebpackPlugin);
89+
8190
const commonPlugins = [
8291
new AssetsPlugin({
8392
path: helpers.root('dist'),
@@ -157,14 +166,8 @@ module.exports = function (options) {
157166
'HMR': METADATA.HMR,
158167
}
159168
}),
160-
new HtmlWebpackPlugin({
161-
template: 'src/index.html',
162-
title: METADATA.title,
163-
chunksSortMode: 'dependency',
164-
metadata: METADATA,
165-
inject: 'head'
166-
}),
167-
new PreloadWebpackPlugin(),
169+
htmlWebpackPlugin,
170+
new PreloadWebpackPlugin()
168171
];
169172

170173
/**

config/webpack.federalist-deploy.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const commonConfig = require('./webpack.common.js');
1818
const postcssCssnext = require('postcss-cssnext');
1919
const postcssImport = require('postcss-import');
2020

21+
const SiteConfig = require('./code-gov-config.json');
22+
2123
/**
2224
* Webpack Constants
2325
*/
@@ -76,12 +78,18 @@ const METADATA = webpackMerge(webpackConfig.metadata, {
7678
gtmAuth: gtmAuth,
7779
HMR: false,
7880
isDevServer: false,
79-
title: 'Code.gov'
8081
});
8182

82-
8383
module.exports = function (env) {
8484

85+
const htmlWebpackPlugin = new HtmlWebpackPlugin(Object.assign({
86+
metadata: METADATA,
87+
template: 'src/index.html',
88+
chunksSortMode: 'dependency',
89+
inject: 'head'
90+
}, SiteConfig));
91+
92+
8593
return webpackMerge(webpackConfig({env: ENV}), {
8694

8795
output: {
@@ -90,14 +98,9 @@ module.exports = function (env) {
9098

9199
plugins: [
92100

93-
new HtmlWebpackPlugin({
94-
metadata: METADATA,
95-
template: 'src/index.html',
96-
title: METADATA.title,
97-
chunksSortMode: 'dependency',
98-
inject: 'head'
99-
}),
100-
new PreloadWebpackPlugin(),
101+
htmlWebpackPlugin,
102+
103+
new PreloadWebpackPlugin(),
101104

102105
new LoaderOptionsPlugin({
103106
options: {

config/webpack.stag.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const CriticalCssPlugin = require('./critical-css-plugin');
2323
const postcssCssnext = require('postcss-cssnext');
2424
const postcssImport = require('postcss-import');
2525

26+
const SiteConfig = require('./code-gov-config.json');
27+
2628
/**
2729
* Webpack Constants
2830
*/
@@ -208,13 +210,12 @@ module.exports = function (env) {
208210
// threshold: 2 * 1024
209211
// })
210212

211-
new HtmlWebpackPlugin({
213+
new HtmlWebpackPlugin(Object.assign({
212214
template: 'src/index.html',
213-
title: METADATA.title,
214215
chunksSortMode: 'dependency',
215216
metadata: METADATA,
216217
inject: 'head'
217-
}),
218+
}, SiteConfig)),
218219

219220
/**
220221
* Inline critical-path CSS in index.html, and asynchronously load remainder of stylesheet.

0 commit comments

Comments
 (0)