Commit graph

76 commits

Author SHA1 Message Date
Andrew Sliwinski
6204b52479 WIP 2016-01-31 13:02:10 -05:00
Matthew Taylor
a53aa67d21 Make template caching strong
Fixes #325
2016-01-14 15:54:10 -05:00
Matthew Taylor
98d0f0de6e Updates based on feedback
1. changes intl filenames to `[view].intl.js`
2. Move nav/footer rendering to `render.jsx`
3. Set locale cookie before submitting language change form

Thanks @thisandagain !
2016-01-14 08:32:43 -05:00
Matthew Taylor
ceec694b2a Revert "Migrate to using a loader method"
This reverts commit 214430b0c4.
2016-01-08 13:50:58 -05:00
Matthew Taylor
214430b0c4 Migrate to using a loader method
This moves all locale/translation building to a dependency, `scratch-www-intl-loader`, as well as tests associated with it. Also gets rid of the `make translations` step.
2016-01-07 17:01:57 -05:00
Matthew Taylor
f8cadf498e Use strong etag for build files
express's default is to do a "weak" etag (only looks for semantic changes, not byte-level), which might be partially responsible for not having updates to our files in browsers happen as soon as we deploy. Try strong instead.
2016-01-06 14:25:27 -05:00
Matthew Taylor
448ca0b103 Remove main bundle
Render footer and nav on each view directly instead of globally in a separate bundle
2016-01-06 14:23:47 -05:00
Matthew Taylor
8ae98d703f Make localizations view-based
1. Load locale strings into `window._messages` in a separate file added to `template.html`, which contains view-specific and general strings
2. Update build-locales to compile separate files
2016-01-06 14:09:32 -05:00
Matthew Taylor
085479a351 Set width in viewport tag to desktop width
Desktop width retrieved from `_frameless`
2015-12-15 11:43:46 -05:00
Andrew Sliwinski
64546a2410 Merge pull request #245 from thisandagain/feature/credits
Migrate - Credits View
2015-12-08 13:52:18 -05:00
Matthew Taylor
d0f5dbeb07 Rename PROXY_HOST to FALLBACK
Thanks @rschamp!
2015-12-04 09:52:10 -05:00
Matthew Taylor
2bd97255b0 Some updates to readme, fallback system
ht @rschamp for the suggestions!
2015-12-03 15:53:51 -05:00
Matthew Taylor
d630efb23c Add shouldFallback process env variable
So that it's clear to newcomers what things are not yet completed in scratch-www as we build it out.
2015-12-03 10:44:47 -05:00
Matthew Taylor
a65253ffb2 remove width=device-width until mobile nav/footer 2015-11-30 16:22:52 -05:00
Hannah Cole
c82aecf1f7 created jobs page 2015-11-29 13:42:26 -05:00
Ray Schamp
f1fd84e7c7 Fall back to scratchr2 in development
There's no reason to proxy individual paths when we want all of them to fall back to what we haven't migrated yet. This mirrors the behavior of production.

Resolves GH-194
2015-11-26 23:34:21 -08:00
Ray Schamp
ae8d4d8990 Use webpack-dev-middleware for assets in dev 2015-11-19 15:25:39 -05:00
Ray Schamp
c065df3faa Use webpack for static assets 2015-11-19 15:25:39 -05:00
Matthew Taylor
133e42de06 Update to beta 1
locales configuration not loaded automatically anymore, so we need to load react-intl with locales included into the browser ahead of time
2015-11-19 15:25:39 -05:00
Andrew Sliwinski
167353c68d Migrate credits page. Resolves GH-30. Resolves GH-174. Resolves GH-215 2015-11-18 21:14:54 -05:00
Ray Schamp
8536006416 Split CLIENT_ and NODE_ SENTRY_DSN vars 2015-11-12 17:00:19 -05:00
Ray Schamp
aa2eeab353 Log Javascript errors to Sentry 2015-11-06 17:08:50 -05:00
Andrew Sliwinski
f247761390 Merge branch 'develop' of github.com:llk/scratch-www into bugfix/199 2015-11-03 10:49:39 -05:00
Andrew Sliwinski
06de644ae6 Remove ./src/environment from Webpack config and bind environment to window. Resolves GH-199. 2015-11-03 10:49:32 -05:00
Andrew Sliwinski
0bfd6e1430 Update environment defaults 2015-11-03 10:44:56 -05:00
Andrew Sliwinski
d18799d221 Merge pull request #192 from thisandagain/bugfix/og
Update default og:image
2015-10-30 09:56:49 -04:00
Andrew Sliwinski
c0907f34cd Update default og:image 2015-10-29 18:40:56 -04:00
Andrew Sliwinski
18cd13701f Merge pull request #186 from mewtaylor/issue/180-clear-homepage-cache
#180 – Use xhr to clear cache instead of form
2015-10-29 18:36:00 -04:00
Ray Schamp
a20fc32a42 Merge pull request #173 from thisandagain/feature/minify
Use Minified react & react-dom in production
2015-10-29 15:49:00 -04:00
Andrew Sliwinski
6913a688d3 Block PUT, POST, and DEL requests 2015-10-29 12:06:13 -04:00
Matthew Taylor
d897d4387d Use xhr to clear cache instead of form
because csrf. also, since we don't have a definite message/banner system in place yet, use the button itself for feedback rather than messages. The button will disable if it has been successfully used, or turn pink if there was an error (and it will not be disabled in that case).
2015-10-29 10:28:32 -04:00
Andrew Sliwinski
de5e479b52 Minify react & react-dom in production 2015-10-25 18:58:17 -04:00
Colby Gutierrez-Kraybill
9e9dc0221d Merge pull request #132 from colbygk/feature/sentry-integration
Feature/sentry integration
2015-10-23 14:26:28 -04:00
Colby Gutierrez-Kraybill
3bf5f8b96c Adjust nitpicks, remove whitespace in (), add around + 2015-10-23 10:43:30 -04:00
Ray Schamp
be6358fba9 Merge pull request #138 from rschamp/feature/welcome-panel
Add welcome panel component to homepage
2015-10-22 22:42:47 -04:00
Ray Schamp
af415e1bf3 Set template cue to dismiss welcome panel 2015-10-22 17:17:27 -04:00
Colby Gutierrez-Kraybill
bec911f0a8 Handle sentry config and express routing/page handling errors, to do: handle uncaughtExceptions 2015-10-22 15:12:38 -04:00
Colby Gutierrez-Kraybill
b33645beda Handle sentry config and express routing/page handling errors, to do: handle uncaughtExceptions 2015-10-22 15:05:55 -04:00
Andrew Sliwinski
d86703e5db Add window.Intl polyfill. Resolves GH-96 2015-10-21 20:49:31 -04:00
Matthew Taylor
7e4555e6b6 Use language dropdown form to change language
xhr was not updating the session/cookie for some reason. So just force state change, and force form submission to change language
2015-10-20 16:51:30 -04:00
Ray Schamp
6259cb5b97 Pull homepage rows from the API
Not localized yet
2015-10-20 14:49:25 -04:00
Ray Schamp
6cdc447e83 Merge pull request #80 from thisandagain/bugfix/nginx
Remove nginx build process and clean-up for production
2015-10-20 13:27:42 -04:00
Andrew Sliwinski
98edeeee73 Merge pull request #79 from thisandagain/feature/og
Add GA tracking and optimize open graph tags
2015-10-20 13:26:14 -04:00
Colby Gutierrez-Kraybill
d39b691c46 Adding newrelic integration 2015-10-20 12:54:48 -04:00
Andrew Sliwinski
9d9a2ca491 Remove nginx build process and clean-up for production 2015-10-20 12:48:32 -04:00
Andrew Sliwinski
a7255c49b2 Add GA tracking and optimize open graph tags 2015-10-20 10:51:33 -04:00
Ray Schamp
70f06b6be8 Redirect to CAPTCHA when too many attempts fail 2015-10-19 16:36:46 -04:00
Matthew Taylor
997b94a91c Merge branch 'develop' into feature/react-intl
* develop:
  Fix 'M' issue in Firefox
  Widen modal to account for tooltip overflow
  Name Registration component
  Refresh session, close popup after registration
  Add standalone legacy registration iframe

# Conflicts:
#	server/proxies.json
#	src/components/navigation/navigation.jsx
2015-10-16 11:14:45 -04:00
Matthew Taylor
567067ce88 Make LanguageChooser isolated in funcitonality
and only set cookie client side, rather than using the post request
2015-10-16 11:01:40 -04:00
Matthew Taylor
b8972d545c refactor cookieMixinFactory
isolate cookie business logic from react mixin logic so that they are more modular. And use the cookie business logic to set translation objects on the window
2015-10-15 23:09:35 -04:00