Projects STRLCPY gradejs Commits fe112f1e
🤬
  • Chore/fix analytics and dev startup (#44)

    * chore: fix analytics referer
    
    * chore: fix dev startup & slight cleanup
  • Loading...
  • Oleg Klimenko committed with GitHub 2 years ago
    fe112f1e
    1 parent f7e8b116
  • ■ ■ ■ ■ ■ ■
    .eslintignore
    skipped 2 lines
    3 3  webpack.config.js
    4 4  node_modules/
    5 5  packages/*/build
     6 +packages/*/dist
     7 + 
    6 8   
  • ■ ■ ■ ■ ■
    .gitignore
    skipped 13 lines
    14 14   
    15 15  # misc
    16 16  .DS_Store
    17  -.env
    18 17   
    19 18  npm-debug.log*
    20 19  yarn-debug.log*
    skipped 4 lines
  • ■ ■ ■ ■ ■
    package.json
    skipped 20 lines
    21 21   "build:worker": "yarn workspace @gradejs-public/worker run build",
    22 22   "build:public-api": "yarn workspace @gradejs-public/public-api run build",
    23 23   "build:backend": "yarn build:shared && yarn build:public-api && yarn build:worker",
    24  - "dev:start": "bash cli/local_start.sh"
     24 + "dev:start": "bash cli/local_start.sh",
     25 + "dev:start:onlyWeb": "API_ORIGIN=https://api.staging.gradejs.com npm start --prefix packages/web"
    25 26   },
    26 27   "devDependencies": {
    27 28   "@swc/core": "^1.2.233",
    skipped 15 lines
  • ■ ■ ■ ■ ■ ■
    packages/web/.env.example
    1  -# GTM_ID=
    2  -API_ORIGIN=https://api.gradejs.com
    3  - 
  • ■ ■ ■ ■ ■ ■
    packages/web/.gitignore
    1  -./.env
    2  - 
  • ■ ■ ■ ■
    packages/web/src/services/analytics.ts
    skipped 21 lines
    22 22   }
    23 23   
    24 24   return (url?: string | URL | null) =>
    25  - pageView(
    26  - url ? (typeof url === 'string' ? url : url.pathname) : window.location.pathname,
    27  - window.location.pathname
    28  - );
     25 + pageView(url ? (typeof url === 'string' ? url : url.pathname) : window.location.pathname);
    29 26  }
    30 27   
    31 28  export function pageView(url: string = window.location.pathname, referrer?: string) {
    skipped 31 lines
Please wait...
Page is in error, reload to recover