3.53.0-alpha.1 • Published 8 months ago

member-easy-mobile-v1 v3.53.0-alpha.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Member Easy App Mobile 網頁版

Features

Quick start

  1. Make sure that you have Node.js v8.10 and npm v5 or above installed.
  2. Clone this repo using git clone ssh://git@ycgit.o168.net:10022/yc-frontend/190101-game-lobby-v2.git
  3. Move to the appropriate directory: cd 190101-game-lobby-v2.
  4. Run yarn install in order to install dependencies and clean the git repo.
  5. Run cp .env.dev .env to development environment.
  6. At this point you can run yarn dev to see the example app at http://localhost:3000.
    But special case use yarn dev --port=80 at http://vv4a.test88b.net

Now you're ready to rumble!

Node Version Change

$ nvm use v8.16.2

if you not install nvm, please look https://medium.com/@imaginechiu/m1pro-arm-%E5%AE%89%E8%A3%9D-nvm-ac64f1f45a50

Environmental parameters

  • SITE_ENV: develop 開發, production 正式
  • SITE_CODE: 站台代號 (ref: src/config/site.js, ex: asiaInt)
  • ROUTE_PREFIX_PATH: 路由前輟 (ex: /ezapp-mobile)
  • STATIC_BASE_URL: 前端靜態資源路徑 (ex: /static)
  • UPLOAD_BASE_URL: 後端靜態資源路徑 (ex: /FileUpload)
  • PWA_ENABLE: 是否開啟PWA與Service Worker
  • TEST_SPEED_ENABLE: 是否登入後進行測速功能
  • PROXY_ENABLE: 是否開啟API接口代理
  • API_URL: API Base path

Config

in src/config/site.js

  • siteCode: 站台代號
  • siteName: Meta Title 前面的名稱
  • siteDesc: Meta Title 後面的說明
  • description: Meta Desc
  • country: 市場別 (malaysia|china|thailand)
  • defaultLang: 預設語系 (en-US|zh-CN|th-TH|id-ID)
  • blackLang: 語系白名單 (en-US|zh-CN|th-TH|id-ID)
  • env: 環境參數 (sandbox|staging|production)
  • theme: 主題, 圖片相關設定

Documentation

Create the new Site

  • src/config/site.js add the config
  • in static/site/{NEW_SITE_CODE} add about image
  • production environmental in your nginx config add the setting
    location /ezapp-mobile {
         include /etc/nginx/conf.d/sites-module/proxy.conf;
         add_header Cache-Control "no-cache";
         
         rewrite ^/ezapp-mobile/(bundle|static|assets)/(.+)$ /$1/$2 break;
         rewrite ^/ezapp-mobile/(sw.js)$ /$1 break;
  
         # 愛博
         if ( $host ~ "^((.+).aibo.sumi86.site|aibo.sumi86.site)" ) {
            set $siteCode "aibo";
         }
  
         # 盛博
         if ( $host ~ "^((.+).asiaInt.sumi86.site|asiaInt.sumi86.site)" ) {
            set $siteCode "asiaInt";
         }
  
         # iBET
         if ( $host ~ "^((.+).ibet.sumi86.site|ibet.sumi86.site)" ) {
            set $siteCode "ibet";
         }

         proxy_set_header siteCode $siteCode;
         proxy_pass http://ezapp-mobile-v1;
    }
  • Create About PWA Favicon
# set your need create site in env => SITE_CODE, then run this
$ yarn build:favicons

# done your file in static/site/{NEW_SITE_CODE}/pwa
# please delete manifest.json, because it was produced at the time of release

after please remember to compress the picture

Good luck after you finish!

Create new game lobby

  • src/resources/themes/Images/GameLobby.js add the config

after please remember to compress the picture

Support Factory

@babel/cli@babel/core@babel/plugin-proposal-class-properties@babel/plugin-syntax-dynamic-import@babel/plugin-transform-modules-commonjs@babel/plugin-transform-react-constant-elements@babel/plugin-transform-react-inline-elements@babel/polyfill@babel/preset-env@babel/preset-react@babel/register@loadable/component@storybook/addon-actions@storybook/addon-console@storybook/addon-knobs@storybook/addon-options@storybook/addon-viewport@storybook/marko@storybook/reactadd-asset-html-webpack-pluginapisaucebabel-corebabel-eslintbabel-loaderbabel-plugin-dynamic-import-nodebabel-plugin-lodashbabel-plugin-react-intlbabel-plugin-react-transformbabel-plugin-styled-componentsbabel-plugin-transform-flow-strip-typesbabel-plugin-transform-react-remove-prop-typesbody-scroll-lockbootstrapbowsercaniuse-litechalkcircular-dependency-pluginclassnamescommitizencompare-versionscompressioncompression-webpack-pluginconnected-react-routerconventional-changelogcopy-webpack-plugincore-jscoverallscross-envcss-loadercz-conventional-changelogcz-customizabledayjsdotenvenzymeenzyme-adapter-react-16enzyme-to-jsoneslinteslint-config-airbnbeslint-config-airbnb-baseeslint-import-resolver-webpackeslint-plugin-flowtypeeslint-plugin-importeslint-plugin-jsx-a11yeslint-plugin-reacteslint-plugin-react-hookseslint-plugin-redux-sagaexpressfancy-logfaviconsfile-loaderflow-bingulphi-base64historyhoist-non-react-staticshtml-loaderhtml-webpack-pluginhttp-proxy-middlewarehttpshuskyimage-webpack-loaderimports-loaderintlinvariantipjest-clijest-styled-componentsjs-base64js-cookiejwt-decodelint-stagedlocalforagelodashmini-css-extract-pluginminimistmocker-apinode-plopnode-sassnull-loaderploppre-commitprop-typesquery-stringramdarc-formreactreact-app-polyfillreact-copy-to-clipboardreact-domreact-helmetreact-html-parserreact-id-swiperreact-intlreact-modalreact-qrcode-logoreact-reduxreact-router-domreact-springreact-test-rendererreact-transition-groupreduxredux-persistredux-sagareduxsaucerequire-contextreselectrimrafrmc-pickerrodalsass-loaderseamless-immutableseamless-immutable-mergersshelljsstandard-versionstorybook-addon-intlstyle-loaderstyled-componentsstylelintstylelint-config-recommendedstylelint-config-styled-componentsstylelint-processor-styled-componentssvg-url-loaderswiperterser-webpack-pluginunderscore-template-loaderurl-loadervalidate-commit-msgwarningwebapp-webpack-pluginwebpackwebpack-bundle-analyzerwebpack-cliwebpack-dev-middlewarewebpack-hot-middlewarewhatwg-fetchworkbox-webpack-pluginworkbox-window
3.53.0-alpha.1

8 months ago