Commit graph

49 commits

Author SHA1 Message Date
Hannu Lyytikainen
7177cb37c7 Pass base url to SDK only if provided 2018-11-28 10:07:03 +02:00
Vesa Luusua
6303a57e86 Update React to 16.3.1 2018-04-20 13:05:15 +03:00
Mikko Koski
759844112a Use Transit Verbose mode in development 2018-04-12 16:28:16 +03:00
Kimmo Puputti
37b8e90090 Remove Stripe v2 2018-03-26 15:04:18 +03:00
Vesa Luusua
26b34689fb Ensure that certain polyfills are used 2018-03-19 15:26:43 +02:00
Kimmo Puputti
f0b955dc5b Refactor propTypes module
- Rename types
- Collect propTypes within a named propTypes export
- Use named imports for easier refactoring and customisation later
- Rename sdk types to sdkTypes in imports to avoid confusion
2018-01-11 11:40:03 +02:00
Kimmo Puputti
12c9a8b330 Add support for scrolling into a fragment identifier 2017-10-31 15:35:44 +02:00
Kimmo Puputti
ceb87c2bb0 Add analytics middleware and pluggable handlers 2017-10-26 11:23:14 +03:00
Hannu Lyytikainen
2be909014f Add sitemap.xml and robots.txt files 2017-10-19 11:07:56 +03:00
Vesa Luusua
40488083fd Rename routesConfiguration to routeConfiguration 2017-10-11 14:18:30 +03:00
Vesa Luusua
020c81103d Created a environment variable and using it when creating sdk instances. 2017-10-05 12:57:49 +03:00
Hannu Lyytikainen
de5ec59119 Add error codes
An error code can be passed to logger. This code gets added to the
Sentry error report as a tag and can be used to search this specific
error.
2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
a75615707b Remove Sentry config from logger setup functions
The Sentry DSN key and environment are read from environment
parameters/config in the logger modules.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
5bf9d0f072 Send errors to sentry 2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
1882e25d00 Equalize logger setup in server and browser
Set up logger in the server side with the same parameters as in the
browser and clean the environment variables out of the server/log.js
file.

Code commenting improved.
2017-10-04 13:15:10 +03:00
Hannu Lyytikainen
e37a0be42a Add Sentry integration to the browser application 2017-10-04 13:11:50 +03:00
Vesa Luusua
2105b34160 Fix repeating sanitize import 2017-07-21 17:05:21 +03:00
Mikko Koski
f265c72a55 Use line items to show price breakdown 2017-07-02 10:03:35 +03:00
Vesa Luusua
018232991f Rename index.css to marketplaceStyles.css and add mobile font styles. 2017-05-24 14:05:55 +03:00
Kimmo Puputti
e2955bfa13 Remove redux-saga and all unused actions in marketplaceData.duck 2017-05-02 11:27:50 +03:00
Kimmo Puputti
d64744588c Rename sdk.duck.js file to marketplaceData.duck.js 2017-05-02 10:43:31 +03:00
Kimmo Puputti
0747fc170a Fetch current user on app init instead of in various loadData fns 2017-04-28 14:17:06 +03:00
Kimmo Puputti
2a351c9247 Change authInfo to use redux-thunk 2017-04-28 10:47:21 +03:00
Kimmo Puputti
f962310771 Don't require dev mode to expose app to browser REPL 2017-04-06 10:20:55 +03:00
Kimmo Puputti
a346297aa5 Load and setup Stripe library 2017-04-04 10:49:54 +03:00
Vesa Luusua
c341e97ef0 SearchPage handles next page and prev page clicks 2017-03-29 16:56:40 +03:00
Kimmo Puputti
3f20100e40 Fix preloadedState serialisation
- Use reviver and replacer from the SDK to properly encode/decode the
   SDK types
2017-03-28 15:22:59 +03:00
Mikko Koski
c50dec0eb9 Implement sdkLoader to either require sdk package or use bundled sdk 2017-03-16 16:39:35 +02:00
Kimmo Puputti
cfab06d813 Don't print trailing comma in fn args since it breaks in Node 2017-03-15 15:54:49 +02:00
Vesa Luusua
f26b2cc35b Add thunk since saga was too difficult for people. (update to sdk ref too.) 2017-03-07 16:26:42 +02:00
Kimmo Puputti
36d40054a6 Expose routeConfiguration for dev REPL 2017-02-23 10:18:03 +02:00
Kimmo Puputti
cca652eca1 Load initial auth info when starting the app 2017-02-22 14:58:25 +02:00
Kimmo Puputti
d02785cf9d Expose stuff for dev time REPL 2017-02-21 20:59:43 +02:00
Kimmo Puputti
bbddb7ae27 Inject the SDK instance to the root saga 2017-02-21 11:35:45 +02:00
Kimmo Puputti
d56a00a316 Move route util functions to a separate module 2017-02-15 15:31:39 +02:00
Vesa Luusua
bc2baaf3b5 Refactoring to improve readability, compatibility with saga and comments 2017-02-07 13:13:08 +02:00
Vesa Luusua
2a9c9e103b Fetch data with saga (both server and client) 2017-02-06 12:40:42 +02:00
Vesa Luusua
71ab7c33e0 Call component.loadData on server side (and client) 2017-02-06 12:32:59 +02:00
Vesa Luusua
f8333f51a9 Prettier enhancement: use eslint-disable-next-line 2017-01-24 19:10:03 +02:00
Vesa Luusua
1fa70eadf2 Pass preloaded state to client side. 2017-01-20 15:02:54 +02:00
Kimmo Puputti
4e2aedbd14 Move client and server apps to a separate file
index.js is the entrypoint file for the bundle and has to render the
app when running within a browser. Separating the app routing init
etc. to a different file allows us to import both ClientApp and
ServerApp in e.g. tests no matter which env we are in.
2017-01-11 16:01:35 +02:00
Kimmo Puputti
40c23217e9 Add documentation. 2017-01-11 10:06:49 +02:00
Kimmo Puputti
ba3418c661 Add documentation 2017-01-09 11:54:38 +02:00
Kimmo Puputti
c14fe8efe8 Fix ServerRouter props 2017-01-05 20:57:33 +02:00
Kimmo Puputti
83f80b6950 Implement page title handling with SSR support using react-helmet 2017-01-05 17:01:14 +02:00
Kimmo Puputti
322ec599b8 Add page structure and universal routing 2017-01-05 14:23:06 +02:00
Kimmo Puputti
6f93d85a7d Render application in the server 2017-01-05 14:22:40 +02:00
Kimmo Puputti
089910cf4e Make app entry point Universal
- Render to DOM in a browser
 - Export a render function for the server
2017-01-04 21:42:27 +02:00
Kimmo Puputti
d9dd053277 Init new app with create-react-app 2017-01-04 21:12:15 +02:00