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

Commit 2793edb

Browse files
Merge branch 'master' into feature-schema-relatedcode-property
2 parents 38ed239 + 6bfc13b commit 2793edb

File tree

109 files changed

+57150
-7296
lines changed

Some content is hidden

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

109 files changed

+57150
-7296
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ We encourage you to read this project's CONTRIBUTING policy (you are here), its
77
## How to contribute to code-gov-web
88

99
- Report bugs and request features via [Github Issues](https://github.com/GSA/code-gov-web/issues).
10+
- If you are not sure that the issue is related to the website you can [create the issue in our general repository](https://github.com/gsa/code-gov/issue/new): [code-gov](https://github.com/gsa/code-gov)
1011
- Join the [mailing list](http://code.us15.list-manage.com/subscribe?u=57dec439b29289fc14396b8db&id=a317168ea7) and stay up to date with our latest news.
1112
- [Share your ideas](mailto://[email protected]) for how to improve code-gov-web. We're always open to suggestions.
1213
- Create a [Github pull request](https://help.github.com/articles/creating-a-pull-request/) with new functionality or fixing a bug.

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To learn more about the project, check out this [blog post](https://www.whitehou
1313

1414
Code.gov is an open source project, so we invite your contributions, be it in the form of code, design, or ideas.
1515

16-
## Project Timeline
16+
## Requirements
1717

1818
The development of code.gov is guided by the requirements set forth in [Section 7.2 (Code Inventories and Discovery)](https://sourcecode.cio.gov/Implementation/#code-inventories-and-discovery), [Section 7.3 (Code.gov)](https://sourcecode.cio.gov/Implementation/#codegov), and [Section 7.6 (Agency Policy)](https://sourcecode.cio.gov/Implementation/#agency-policy) of the Federal Source Code Policy. Namely:
1919

@@ -23,10 +23,6 @@ The development of code.gov is guided by the requirements set forth in [Section
2323
>
2424
> * "Within 120 days of the publication date of this policy, each agency must update—and thereafter keep up to date—its inventory of agency information resources to include an enterprise code inventory that lists custom-developed code for or by the agency after the publication of this policy."
2525
26-
Over the next few weeks, we will begin the *discovery sprint* for code.gov. During that time, we will conduct user interviews and engage this community in discussions that will inform the user experience for code.gov.
27-
28-
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.
29-
3026
## Configuration
3127
For documentation on how to configure code-gov-web, go [here](https://github.com/GSA/code-gov-web/blob/master/CONFIGURATION.md).
3228

@@ -100,7 +96,12 @@ API_URL='https://code-api-staging.app.cloud.gov/api/' npm run start
10096
API_URL=staging GIT_REMOTE_NAME=upstream npm run federalist-deploy:dev
10197
```
10298

103-
99+
## Specifying an API Key
100+
The app uses the API key provided in the code-gov-config.json by default.
101+
If you want to override that, specify an `CODE_GOV_API_KEY` environmental variable. Here's an example:
102+
```
103+
CODE_GOV_API_KEY=l87sfdi7ybc2bic7bai8cb2i176c3b872tb3 npm run server
104+
```
104105

105106
## Deployment Problems
106107
When pushing to staging or dev branches, you might run into an occasional error warning that the branch you're pushing to already exists. If you see this, you need to clear the cache in the gh-pages module using this command: `rm -rf node_modules/gh-pages/.cache`
@@ -129,6 +130,9 @@ This app follows the
129130
[official Angular Style Guide](https://angular.io/styleguide). Please ensure you
130131
follow the naming conventions defined in this guide.
131132

133+
## Vocabulary
134+
We sometimes use the word `entities`. It basically means something that has repositories. Agencies are types of entities.
135+
132136
## License
133137

134138
As stated in [CONTRIBUTING](CONTRIBUTING.md):

config/examples/code-dot-gov.json

Lines changed: 48 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@
1919
{
2020
"name": "about",
2121
"links": [
22-
{ "name": "Source Code Policy", "url": "/#/policy-guide/docs/overview/introduction" },
23-
{ "name": "Open Source Pilot", "url": "/#/policy-guide/docs/open-source/introduction" }
22+
{ "name": "Source Code Policy", "url": "/#!/policy-guide/docs/overview/introduction" },
23+
{ "name": "Open Source Pilot", "url": "/#!/policy-guide/docs/open-source/introduction" }
2424
]
2525
},
2626
{
2727
"name": "Browse Projects",
28-
"url": "/#/explore-code/agencies/NASA"
28+
"url": "/#!/browse-projects"
2929
},
3030
{
3131
"name": "federal agencies",
3232
"links": [
33-
{ "name": "How to Inventory Code", "url": "/#/policy-guide/docs/compliance/inventory-code" },
34-
{ "name": "Tools", "url": "/#/policy-guide/docs/compliance/inventory-code/tools/validate-schema" },
35-
{ "name": "Compliance Dashboard", "url": "/#/policy-guide/docs/compliance/dashboard"}
33+
{ "name": "How to Inventory Code", "url": "/#!/policy-guide/docs/compliance/inventory-code" },
34+
{ "name": "Tools", "url": "/#!/policy-guide/docs/compliance/inventory-code/tools/validate-schema" },
35+
{ "name": "Compliance Dashboard", "url": "/#!/policy-guide/docs/compliance/dashboard"}
3636
]
3737
},
3838
{
3939
"name": "developers",
4040
"links": [
4141
{ "name": "code.gov API", "url": "https://developers.code.gov/basics.html" },
42-
{ "name": "Contribute", "url": "/#/help-wanted" },
42+
{ "name": "Contribute", "url": "/#!/help-wanted" },
4343
{ "name": "Notebooks", "url": "https://beta.observablehq.com/search?query=%22code.gov%22" }
4444
]
4545
},
@@ -59,9 +59,16 @@
5959
"banner": {
6060
"motto": "Sharing America's Code",
6161
"subtitle": "Unlock the tremendous potential of the Federal Government’s software.",
62-
"help_wanted_description": "Discover how you can get involved and make America's code better",
63-
"search_placeholder_text": "Search Thousands of Projects...",
64-
"browse_by_text": "Browse by Agency"
62+
"help_wanted": {
63+
"title": "Ready. Set. Code!",
64+
"description": "Whether you are a beginner or an experienced coder, join the open source community. Help improve America's Code.",
65+
"button": "Explore Open Tasks"
66+
},
67+
"search_description_text": "Search thousands of Federal Government projects",
68+
"search_description_text_mobile": "Search projects",
69+
"search_placeholder_text": "e.g. JavaScript, NASA, web standards",
70+
"browse_by_text": "Browse by Agency",
71+
"issue_url": "https://github.com/GSA/code-gov-web/issues"
6572
},
6673
"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.",
6774
"about": [
@@ -92,7 +99,7 @@
9299
"description": "A python package designed to simulate and analyze resilience of water distribution networks.",
93100
"image": "/assets/img/featured-projects/pipes4.png",
94101
"links": [
95-
{ "name": "View Project", "url": "/#/explore-code/agencies/DOE/repos/doe_snl_water_network_tool_for_resilience_v_1_0" },
102+
{ "name": "View Project", "url": "/#!/explore-code/agencies/DOE/repos/doe_sandia_national_laboratories_snl_water_network_tool_for_resilience_v_1_0" },
96103
{ "name": "Go to Repo", "url": "https://github.com/usepa/wntr"}
97104
]
98105
},
@@ -103,7 +110,7 @@
103110
"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.",
104111
"image": "/assets/img/featured-projects/smartcity4.png",
105112
"links": [
106-
{ "name": "View Project", "url": "/#/explore-code/agencies/DOT/repos/dot_fhwa_intelligent_transportation_systems_operational_data_environment_its_ode_" },
113+
{ "name": "View Project", "url": "/#!/explore-code/agencies/DOT/repos/dot_fhwa_intelligent_transportation_systems_operational_data_environment_its_ode_" },
107114
{ "name": "Go to Repo", "url": "https://github.com/usdot-jpo-ode/jpo-ode" }
108115
]
109116
},
@@ -114,7 +121,7 @@
114121
"description": "Enables security teams to integrate apps, workflows, and analytics tools that would otherwise need to be created from scratch.",
115122
"image": "/assets/img/featured-projects/WALKOFF.png",
116123
"links": [
117-
{ "name": "View Project", "url": "/#/explore-code/agencies/NSA/repos/nsa_walkoff" },
124+
{ "name": "View Project", "url": "/#!/explore-code/agencies/NSA/repos/nsa_walkoff" },
118125
{ "name": "Go to Repo", "url": "https://github.com/iadgov/WALKOFF" }
119126
]
120127
}
@@ -123,19 +130,23 @@
123130
"quote": "It’s the latest in a long line of high-profile victories for the open source movement.",
124131
"attribution": {
125132
"image": "assets/img/logos/press/wired.svg",
133+
"alt": "wired magazine",
126134
"url": "https://www.wired.com/2016/08/open-source-won-now/"
127135
},
128136
"links": [
129137
{
130138
"image": "assets/img/logos/press/techcrunch.jpg",
139+
"alt": "techcrunch",
131140
"url": "https://techcrunch.com/2016/08/08/the-white-house-just-released-the-federal-source-code-policy-to-help-government-agencies-go-open-source/"
132141
},
133142
{
134143
"image": "assets/img/logos/press/pcmag.png",
144+
"alt": "pc magazine",
135145
"url": "http://www.pcmag.com/news/346860/white-house-releases-open-source-software-policy"
136146
},
137147
{
138148
"image": "assets/img/logos/press/fcw.png",
149+
"alt": "federal computer week",
139150
"url": "https://fcw.com/articles/2016/08/08/open-source-rockwell.aspx"
140151
}
141152
]
@@ -145,7 +156,11 @@
145156
"links": [
146157
{
147158
"name": "Privacy Policy",
148-
"url": "/#/privacy-policy"
159+
"url": "/#!/privacy-policy"
160+
},
161+
{
162+
"name": "Roadmap",
163+
"url": "/#!/roadmap"
149164
},
150165
{
151166
"name": "Visit Project Page",
@@ -174,34 +189,36 @@
174189
"browse_by_text": "Browse by Agency"
175190
},
176191
"help_wanted": {
177-
"title": "Help Wanted",
178-
"subtitle": "Discover how you can get involved and make Your City's Code better"
192+
"title": "Open Tasks",
193+
"subtitle": "Ready. Set. Code!"
179194
},
180195
"roadmap": {
181196
"overview": [
182197
"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.",
183198
"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:[email protected]'>[email protected]</a>."
184199
],
185200
"near": [
186-
{ "name": "Search results", "status": "Released" },
187-
{ "name": "Project Details Phase I", "status": "Released" },
188-
{ "name": "Help wanted", "status": "Released" },
189-
{ "name": "Roadmap on site", "status": "Released" },
190-
{ "name": "Enhanced compliance dashboard", "status": "Released" },
191-
{ "name": "Increased agency participation", "status": "Released" },
192-
{ "name": "Metadata schema 1.0 & 1.0.1 deprecation", "status": "Released" }
201+
{ "name": "Code.gov configurability with Angular", "status": "Released" },
202+
{ "name": "Update Navigation and Homepage content", "status": "Released" },
203+
{ "name": "Usability sessions, round 1", "status": "Released" },
204+
{ "name": "Phase 1 SEO improvements", "status": "In Progress" },
205+
{ "name": "Licenses documentation", "status": "In Progress" },
206+
{ "name": "Search scoring phase 1", "status": "In Progress" },
207+
{ "name": "Update search filters", "status": "In Progress" }
193208
],
194209
"mid": [
195-
{ "name": "Agency pages", "status": null },
196-
{ "name": "Medium skin", "status": null },
197-
{ "name": "FAQs page", "status": "In Progress" },
198-
{ "name": "Admin tool", "status": null },
199-
{ "name": "Enhanced tools and resources", "status": null },
200-
{ "name": "Project Details Phase II", "status": null}
210+
{ "name": "Update help wanted phase 1", "status": null },
211+
{ "name": "Update UI for search results", "status": null },
212+
{ "name": "Usability sessions, round 2", "status": null }
201213
],
202214
"long": [
203-
{ "name": "User accounts", "status": null },
204-
{ "name": "Gamification", "status": null }
215+
{ "name": "States and cities pilot program", "status": null },
216+
{ "name": "Phase 2 SEO improvements", "status": null },
217+
{ "name": "User profiles", "status": null },
218+
{ "name": "Gamification/badges", "status": null },
219+
{ "name": "Chatbot", "status": null },
220+
{ "name": "Code.json creator tool", "status": null },
221+
{ "name": "Search scoring phase 2", "status": null }
205222
],
206223
"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."
207224
}

config/examples/pub-code.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"light": "./assets/img/logos/pub-code-light.svg"
1616
},
1717
"links": [
18-
{ "name": "Browse Projects", "url": "/#/explore-code" },
19-
{ "name": "Help Wanted", "url": "/#/help-wanted" },
20-
{ "name": "Roadmap", "url": "/#/roadmap" }
18+
{ "name": "Browse Projects", "url": "/#!/explore-code" },
19+
{ "name": "Help Wanted", "url": "/#!/help-wanted" },
20+
{ "name": "Roadmap", "url": "/#!/roadmap" }
2121
]
2222
},
2323
"home": {
@@ -45,7 +45,7 @@
4545
{
4646
"title": "Roadmap",
4747
"description": "See our progress",
48-
"link": "/#/roadmap",
48+
"link": "/#!/roadmap",
4949
"image": "/assets/img/icons/check_bl.png"
5050
}
5151
],
@@ -57,7 +57,7 @@
5757
"description": "The GNEIMO methods and algorithms build up on the Spatial Operator Algebra (SOA) multibody dynamics framework.",
5858
"image": "/assets/img/featured-projects/Science.svg",
5959
"links": [
60-
{ "name": "View Project", "url": "/#/explore-code/agencies/NASA/repos/nasa_jpl_gneimo_advanced_techniques_for_constrained_internal_coordinate_molecular_dynamics" },
60+
{ "name": "View Project", "url": "/#!/explore-code/agencies/NASA/repos/nasa_jpl_gneimo_advanced_techniques_for_constrained_internal_coordinate_molecular_dynamics" },
6161
{ "name": "Go to Repo", "url": "https://software.nasa.gov/software/NPO-48712-1" }
6262
]
6363
}
@@ -79,7 +79,7 @@
7979
"links": [
8080
{
8181
"name": "Privacy Policy",
82-
"url": "/#/privacy-policy"
82+
"url": "/#!/privacy-policy"
8383
},
8484
{
8585
"name": "Visit Project Page",

config/examples/your-city.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"light": "./assets/img/logos/your-city-light.svg"
1616
},
1717
"links": [
18-
{ "name": "Browse Projects", "url": "/#/explore-code" },
19-
{ "name": "Help Wanted", "url": "/#/help-wanted" },
20-
{ "name": "Roadmap", "url": "/#/roadmap" }
18+
{ "name": "Browse Projects", "url": "/#!/explore-code" },
19+
{ "name": "Help Wanted", "url": "/#!/help-wanted" },
20+
{ "name": "Roadmap", "url": "/#!/roadmap" }
2121
]
2222
},
2323
"home": {
@@ -57,7 +57,7 @@
5757
"description": "A website with resource and tools for starting your own business in Your City",
5858
"image": "/assets/img/featured-projects/biz_400x400.png",
5959
"links": [
60-
{ "name": "View Project", "url": "/#/explore-code/agencies/" },
60+
{ "name": "View Project", "url": "/#!/explore-code/agencies/" },
6161
{ "name": "Go to Repo", "url": "https://github.com/"}
6262
]
6363
},
@@ -68,7 +68,7 @@
6868
"description": "A mobile-friendly online interactive map that shows transportation routes and current locations of public transportation options",
6969
"image": "/assets/img/featured-projects/transportation_409x409.png",
7070
"links": [
71-
{ "name": "View Project", "url": "/#/explore-code/agencies/" },
71+
{ "name": "View Project", "url": "/#!/explore-code/agencies/" },
7272
{ "name": "Go to Repo", "url": "https://github.com" }
7373
]
7474
}
@@ -78,7 +78,7 @@
7878
"links": [
7979
{
8080
"name": "Privacy Policy",
81-
"url": "/#/privacy-policy"
81+
"url": "/#!/privacy-policy"
8282
},
8383
{
8484
"name": "Visit Project Page",

config/webpack.common.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = function (options) {
5151
} else {
5252
API_URL = 'https://code-api.app.cloud.gov/api/';
5353
}
54-
54+
5555
const METADATA = {
5656
API_URL,
5757
baseUrl: '/',
@@ -62,6 +62,10 @@ module.exports = function (options) {
6262
port: process.env.PORT || (isProd ? 8080 : 2700),
6363
host: process.env.HOST || 'localhost'
6464
};
65+
66+
if (process.env.CODE_GOV_API_KEY) {
67+
METADATA.CODE_GOV_API_KEY = process.env.CODE_GOV_API_KEY;
68+
}
6569

6670
const copyPluginOptions = [{
6771
from: 'src/assets',
@@ -133,10 +137,7 @@ module.exports = function (options) {
133137
}),
134138
],
135139
sassLoader: {
136-
includePaths: [
137-
require('bourbon').includePaths,
138-
require('bourbon-neat').includePaths,
139-
]
140+
includePaths: []
140141
},
141142
tslint: {
142143
emitErrors: isProd ? true : false,
@@ -160,6 +161,7 @@ module.exports = function (options) {
160161
'ENV': JSON.stringify(METADATA.ENV),
161162
'HMR': METADATA.HMR,
162163
'process.env': {
164+
'CODE_GOV_API_KEY': JSON.stringify(METADATA.CODE_GOV_API_KEY),
163165
'API_URL': JSON.stringify(METADATA.API_URL),
164166
'ENV': JSON.stringify(METADATA.ENV),
165167
'NODE_ENV': JSON.stringify(METADATA.ENV),

config/webpack.federalist-deploy.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ module.exports = function (env) {
111111
}),
112112
],
113113
sassLoader: {
114-
includePaths: [
115-
require('bourbon').includePaths,
116-
require('bourbon-neat').includePaths
117-
]
114+
includePaths: []
118115
}
119116
}
120117
}),

config/webpack.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,7 @@ module.exports = function (options) {
237237
* See: https://github.com/wbuchwalter/tslint-loader
238238
*/
239239
sassLoader: {
240-
includePaths: [
241-
require('bourbon').includePaths,
242-
require('bourbon-neat').includePaths
243-
]
240+
includePaths: []
244241
},
245242

246243
tslint: {

0 commit comments

Comments
 (0)