Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
REACT_APP_BUGSNAG_KEY=
REACT_APP_GOOGLE_MAPS_KEY=
FAST_REFRESH=true
REACT_APP_API_ENDPOINT=https://api.brokalys.com
REACT_APP_STATIC_API_ENDPOINT=https://static-api.brokalys.com
REACT_APP_BROKALYS_API_KEY=
VITE_BUGSNAG_KEY=
VITE_GOOGLE_MAPS_KEY=
VITE_API_ENDPOINT=https://api.brokalys.com
VITE_STATIC_API_ENDPOINT=https://static-api.brokalys.com
VITE_BROKALYS_API_KEY=
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
REACT_APP_STATIC_API_ENDPOINT: ${{ secrets.REACT_APP_STATIC_API_ENDPOINT }}
REACT_APP_BROKALYS_API_KEY: ${{ secrets.REACT_APP_BROKALYS_API_KEY }}
run: |
yarn install --frozen-lockfile
yarn install --immutable
yarn build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Install
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Test
run: yarn test --passWithNoTests
run: yarn test
- name: Build 🔧
run: yarn build
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
# dependencies
/node_modules
/.pnp
.pnp.js
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# testing
/coverage
Expand All @@ -13,6 +19,7 @@

# misc
.DS_Store
*.tsbuildinfo
.env.local
.env.development.local
.env.test.local
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
940 changes: 940 additions & 0 deletions .yarn/releases/yarn-4.13.0.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.13.0.cjs
74 changes: 0 additions & 74 deletions config-overrides.js

This file was deleted.

40 changes: 40 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Real estate price map" />
<link rel="apple-touch-icon" href="/favicon.png" />
<link rel="manifest" href="/manifest.json" />
<title>Brokalys || Real estate price map</title>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-VCP966MF6W"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'G-VCP966MF6W');
</script>
<link rel="preconnect" href="https://maps.gstatic.com" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="mobile-warning" style="display: none">
<h3>
Brokalys is not available on mobile devices. Please use it on a tablet
or preferably a computer.
</h3>
</div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
137 changes: 62 additions & 75 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,91 +2,77 @@
"name": "map-app",
"version": "1.2.1",
"homepage": "https://brokalys.com",
"description": "Real estate price map",
"author": "Brokalys",
"private": true,
"type": "module",
"dependencies": {
"@apollo/client": "^3.0.0-beta.45",
"@apollo/client": "^3.12.9",
"@brokalys/location-json-schemas": "^1.4.3",
"@bugsnag/js": "^7.22.4",
"@bugsnag/plugin-react": "^7.19.0",
"@nivo/bar": "^0.85.1",
"@nivo/core": "^0.85.1",
"@nivo/line": "^0.85.1",
"@react-google-maps/api": "^2.8.1",
"apollo-link": "^1.2.14",
"@bugsnag/js": "^8.8.1",
"@bugsnag/plugin-react": "^8.8.0",
"@nivo/bar": "^0.99.0",
"@nivo/core": "^0.99.0",
"@nivo/line": "^0.99.0",
"@react-google-maps/api": "^2.20.8",
"@testing-library/dom": "^10.4.1",
"apollo-link-debounce": "^3.0.0",
"apollo-link-rest": "^0.8.0",
"geolib": "^3.3.1",
"graphql": "^16.2.0",
"graphql-anywhere": "^4.2.7",
"apollo-link-rest": "^0.9.0",
"geolib": "^3.3.4",
"graphql": "^16.13.2",
"history": "^5.3.0",
"lottie-react": "^2.1.0",
"moment": "^2.25.3",
"query-string": "^7.0.0",
"react": "^18.0.0",
"react-datepicker": "^4.8.0",
"react-dom": "^18.0.0",
"react-error-boundary": "^3.0.0",
"react-loading-skeleton": "^3.0.1",
"lottie-react": "^2.4.1",
"moment": "^2.30.1",
"qs": "^6.15.0",
"query-string": "^9.3.1",
"react": "^18.3.1",
"react-datepicker": "^9.1.0",
"react-dom": "^18.3.1",
"react-error-boundary": "^6.1.1",
"react-loading-skeleton": "^3.5.0",
"react-places-autocomplete": "^7.3.0",
"react-router-dom": "^6.3.0",
"react-table": "^7.6.3",
"sass": "^1.45.0",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^2.0.1",
"transliteration": "^2.1.11",
"use-query-params": "^2.1.2"
"react-router-dom": "^6.30.3",
"react-table": "^7.8.0",
"sass": "^1.98.0",
"semantic-ui-css": "^2.5.0",
"semantic-ui-react": "^2.1.5",
"transliteration": "^2.6.1",
"use-query-params": "^2.2.2"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.9.0",
"@testing-library/react": "^13.0.1",
"@testing-library/user-event": "^14.1.0",
"@trivago/prettier-plugin-sort-imports": "^3.1.1",
"@types/d3-shape": "^3.0.2",
"@types/geojson": "^7946.0.8",
"@types/jest": "^29.2.2",
"@types/node": "^18.11.9",
"@types/react": "^18.0.9",
"@types/react-datepicker": "^4.8.0",
"@types/react-dom": "^18.0.3",
"@types/react-places-autocomplete": "^7.2.9",
"@types/react-table": "^7.7.11",
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.0.5",
"react-scripts": "5.0.1",
"typescript": "^4.6.4"
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@trivago/prettier-plugin-sort-imports": "^5.2.0",
"@types/d3-shape": "^3.1.8",
"@types/geojson": "^7946.0.16",
"@types/node": "^22.15.0",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"@types/react-places-autocomplete": "^7.2.14",
"@types/react-table": "^7.7.20",
"@vitejs/plugin-react": "^5.2.0",
"eslint-plugin-react-hooks": "^5.2.0",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"lint-staged": "^16.1.0",
"prettier": "^3.5.3",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vite-plugin-zip-pack": "^1.2.4",
"vitest": "^3.2.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"prepare": "husky install"
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview",
"test": "vitest run",
"test:watch": "vitest",
"prepare": "husky"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest",
"plugin:react-hooks/recommended"
],
"rules": {
"react/destructuring-assignment": [
1,
"never"
]
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"resolutions": {
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
Expand All @@ -100,5 +86,6 @@
"cz-emoji": {
"symbol": true
}
}
},
"packageManager": "yarn@4.13.0"
}
Loading
Loading