From d05e203127c56d7beb9c17d0cae058c5e1c43931 Mon Sep 17 00:00:00 2001 From: Tim Yao <31641325+tim-yao@users.noreply.github.com> Date: Tue, 3 Sep 2019 17:49:48 +1000 Subject: [PATCH] [SDPA-2910] Fixed a broken url in docs with other typo fix (#515) --- examples/basic-examples/assets/_custom.scss | 2 +- examples/basic-examples/store/index.js | 8 +++++--- packages/ripple-nuxt-tide/README.md | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/basic-examples/assets/_custom.scss b/examples/basic-examples/assets/_custom.scss index 23796036d..fa2b7c431 100644 --- a/examples/basic-examples/assets/_custom.scss +++ b/examples/basic-examples/assets/_custom.scss @@ -5,7 +5,7 @@ // The should be managed by sass variables in _theme.scss. // This custom scss file is designed for any style changes can not be handled by variables. -// A example of attache a text to hero banner. +// A example of attached a text to hero banner. .rpl-hero-banner { &:after { content: 'Text from custom css' diff --git a/examples/basic-examples/store/index.js b/examples/basic-examples/store/index.js index 7121da686..671037083 100644 --- a/examples/basic-examples/store/index.js +++ b/examples/basic-examples/store/index.js @@ -1,10 +1,12 @@ +import { logger } from '@dpc-sdp/ripple-nuxt-tide/lib/core' + export const actions = { - async nuxtServerInit ({ dispatch }) { + async nuxtServerInit ({ dispatch }, { req }) { try { - await dispatch('tide/init') + await dispatch('tide/init', { requestId: req.requestId }) } catch (error) { if (process.server) { - console.error(`Tide API server error: ${error}`) + logger.error('Tide API server has an error.', { error, label: 'App' }) } throw error } diff --git a/packages/ripple-nuxt-tide/README.md b/packages/ripple-nuxt-tide/README.md index 372bcc27c..c808ca9c6 100755 --- a/packages/ripple-nuxt-tide/README.md +++ b/packages/ripple-nuxt-tide/README.md @@ -70,7 +70,7 @@ customization requirement. ### Examples -We have code examples for how to customize your Ripple project. We strongly recommend developers have a look at https://github.com/dpc-sdp/ripple/tree/develop/examples/basic-example first. +We have code examples for how to customize your Ripple project. We strongly recommend developers have a look at https://github.com/dpc-sdp/ripple/tree/develop/examples/basic-examples first. ### Tide Configs