forked from gatsbyjs/gatsby-starter-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
4n project migration 注意事項
Mylio-chang edited this page Mar 18, 2022
·
3 revisions
- 0.12.0+ Code migrate:
- siteCache https://github.com/revtel/gatsby-starter/pull/133/commits/cbf254bbf5f3ab6ef7397d259b6419177b7baa68
- GA/FB https://github.com/revtel/gatsby-starter/pull/133/commits/9a055c08ec29742505e02806e1f7c2bcd3ac27fb
- AppActions/custom.js AppOutlet/custom.js https://github.com/revtel/gatsby-starter/pull/133/commits/94c87a873363ffef9bec6b87db0c4839ba26d8e2
- onCartLoaded https://github.com/revtel/gatsby-starter/pull/133/commits/1a56cca4f7debebe5b88a1a1d2eb9a53fbd75baf
- buildCat / useDimensionDetect https://github.com/revtel/gatsby-starter/pull/133/commits/3b3bc821b4e5413c2c0685db7bac0cacef20dbc6
- Proxy comp for loadingSpinner and LoginModal https://github.com/revtel/gatsby-starter/pull/133/commits/c6b9a48d00d471a9ee9850bffd529d8e14d57e69
sdk [email protected]
### gtm/ga - 記得改 config 帳號(是否提供 default 公用帳號(不在乎 ga 的、沒要用 ga 的?)) - 目前皆使用 revtel.ga 帳號開 - extra: config 是不是都會一直 conflict(不然就讓他 conflict ㄅ) - Layout/index.js 若有另外加 custom.js,記得 apply ga 相關邏輯。 - gatsby-config remove: gatsby-plugin-google-analytics, gatsby-plugin-google-tagmanager - sdk version 0.1.77- private profile: 後端也要 enable private profile (舊有資料要 migrate 兩段 provider:user -> profile -> private_profile)
- extra_discount
- coupon owner validation
- checkout resume api
- staff create custom order api
- *線下付款要跟後端講(offline) (BE 要設定 step function 回填物流 id)
others:
-
adminResource
-
import {ArticleEditor} from 'rev.sdk.js' -> import ArticleEditor from 'rev.sdk.js/Components/ArticleEditor';
-
- (minor) ProfileLayout/ProfileTabs padding fix
-
appActions NavUrl
// app actions async function navigate(nextRoute, options = {message: '', loading: false}) { + if (nextRoute instanceof NavUrl) { + nextRoute = nextRoute.toString(); + } if (Plugins.navigate.shouldExecute()) { return Plugins.navigate.executeAsync(nextRoute, options); } // app outlets getNewOutlet( 'routes', { getRoute: (route, params) => { return null; }, }, {autoDelete: false}, ); - (fix) renderCustomSection fix in ProfileLayout/CheckoutLayout
- (feat) points in Profile/index.js
- (feat) coupon assign to user
- (feat) admin resource for private profile comp
- (feat) custom order
- (refactor) LoginModal onRegisterClick/onForgotPasswordClick
- ps, 貨到付款不支援宅配