Skip to content

Commit

Permalink
last-minute changes based on usability testing with Rod and Laurie.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jun 3, 2014
1 parent d8000b6 commit 9258240
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 21 deletions.
2 changes: 1 addition & 1 deletion assets/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require('npm-typeahead')({
npmUrl: '',// URL to re-direct the user to.
searchUrl: 'https://typeahead-1.aws-west.internal.npmjs.com', // URL for search npm-typeahead REST server.
searchUrl: 'https://typeahead.npmjs.com', // URL for search npm-typeahead REST server.
$: $ // jQuery dependency.
});
2 changes: 1 addition & 1 deletion decorate.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function decorate (req, res, config) {
res.setHeader('strict-transport-security',
'max-age=' + (1000 * 60 * 60 * 24 * 30) + '; includeSubDomains')
}
res.setHeader('Content-Security-Policy', "default-src 'self'; img-src *; script-src 'self' 'unsafe-eval' https://ssl.google-analytics.com https://checkout.stripe.com; frame-src https://checkout.stripe.com; style-src 'self' 'unsafe-inline'; connect-src 'self' https://typeahead-1.aws-west.internal.npmjs.com/; report-uri /-/csplog;")
res.setHeader('Content-Security-Policy', "default-src 'self'; img-src *; script-src 'self' 'unsafe-eval' https://ssl.google-analytics.com https://checkout.stripe.com; frame-src https://checkout.stripe.com; style-src 'self' 'unsafe-inline'; connect-src 'self' https://typeahead.npmjs.com/; report-uri /-/csplog;")
res.setHeader('X-Frame-Options', 'DENY')
res.setHeader('X-Content-Type-Options', 'nosniff')

Expand Down
2 changes: 1 addition & 1 deletion node_modules/npm-typeahead/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions node_modules/npm-typeahead/assets/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions node_modules/npm-typeahead/assets/js/include.js

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions node_modules/npm-typeahead/lib/browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/npm-typeahead/lib/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
8 changes: 4 additions & 4 deletions node_modules/npm-typeahead/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion node_modules/npm-typeahead/server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"bluebird": "~1.2.4",
"browserify": "^4.1.7",
"uglifyjs": "~2.3.6",
"npm-typeahead": "0.0.0"
"npm-typeahead": "^0.2.0"
},
"bundleDependencies": [
"async-cache",
Expand Down
4 changes: 2 additions & 2 deletions static/js/include.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions stylus/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -652,3 +652,14 @@ html body ul.search-results .package.search-result {
outline: 0;
background-color: #428bca;
}
.tt-footer {
text-transform: italic;
margin-left: 8px;
color: #cc3d33;
}
.tt-footer a {
color: #cc3d33;
}
.tt-hint {
opacity: 0.4;
}

0 comments on commit 9258240

Please sign in to comment.