Skip to content

Commit

Permalink
Merge branch 'master' into dutch-translations
Browse files Browse the repository at this point in the history
  • Loading branch information
FleetAdmiralJakob committed Mar 8, 2024
2 parents 4a392d0 + 0d955aa commit 33d7e24
Show file tree
Hide file tree
Showing 19 changed files with 860 additions and 523 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ This will install all the dependencies for the project.
<br> <br>
Next you will have to fill the `.env` file with your own API keys, following the `.env.example` file as a guide.
<br> <br>
After that you can run the following command, to look at the current state (with your own changes) of the project:
After that you have to go into the city-data dir (`cd packages/city-data`), execute this command and follow all Convex setup instructions: `pnpm dlx convex dev`
<br> <br>
After that you can run the following command, to look at the current state (with your own changes) of the project by executing this command at the root directory:
`pnpm dev`

## What's next? Which technologies are used?
Expand Down
20 changes: 10 additions & 10 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@ducanh2912/next-pwa": "^10.2.5",
"@hookform/resolvers": "^3.3.4",
"@legendapp/state": "^2.1.8",
"@next/bundle-analyzer": "^14.1.0",
"@next/bundle-analyzer": "^14.1.3",
"@t3-oss/env-nextjs": "^0.9.2",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query-devtools": "^4.36.1",
Expand All @@ -31,36 +31,36 @@
"@weatherio/types": "workspace:^0.1.0",
"@weatherio/ui": "workspace:^0.1.0",
"classnames": "^2.5.1",
"convex": "^1.9.1",
"convex": "^1.10.0",
"dayjs": "^1.11.10",
"next": "^14.1.0",
"next": "^14.1.3",
"next-axiom": "^1.1.1",
"next-international": "^1.2.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.50.1",
"react-hook-form": "^7.51.0",
"react-html-parser": "^2.0.2",
"react-icons": "^5.0.1",
"react-spinners": "^0.13.8",
"sharp": "0.33.2",
"sonner": "^1.4.2",
"sonner": "^1.4.3",
"superjson": "2.2.1",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/node": "^20.11.20",
"@types/react": "^18.2.58",
"@types/react-dom": "^18.2.19",
"@types/node": "^20.11.25",
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.21",
"@types/react-html-parser": "^2.0.6",
"@weatherio/eslint-config": "workspace:^0.2.0",
"@weatherio/prettier-config": "workspace:^0.1.0",
"@weatherio/tailwind-config": "workspace:^0.1.0",
"@weatherio/tsconfig": "workspace:^0.1.0",
"dotenv-cli": "^7.3.0",
"dotenv-cli": "^7.4.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
},
"eslintConfig": {
"root": true,
Expand Down
7 changes: 3 additions & 4 deletions apps/web/src/pages/locationsettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,10 @@ const LocationSettings = observer(() => {
.get()
.find(
(value: ICity) =>
value.name === city!.name &&
(value.id.toString().length > 15 ||
city!.id.toString().length > 15),
value.name === city.name &&
(value.id.toString().length > 15 || city.id.toString().length > 15),
);
if (addedCities$.get().find((value: ICity) => value.id === city!.id)) {
if (addedCities$.get().find((value: ICity) => value.id === city.id)) {
activeCity$.set(city);
toast.success(translationLocationSettings("switched to city toast"));
} else if (existingCity) {
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/pages/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ const Search = () => {
if (city) {
const existingCity = addedCities$
.get()
.find((value: ICity) => value.name === city!.name);
if (addedCities$.get().find((value: ICity) => value.id === city!.id)) {
.find((value: ICity) => value.name === city.name);
if (addedCities$.get().find((value: ICity) => value.id === city.id)) {
activeCity$.set(city);
void router.push("/home");
} else if (existingCity) {
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
"e2e:test": "turbo e2e:test"
},
"devDependencies": {
"@playwright/test": "^1.41.2",
"@playwright/test": "^1.42.1",
"@total-typescript/ts-reset": "^0.5.1",
"@turbo/gen": "^1.12.4",
"@turbo/gen": "^1.12.5",
"@weatherio/prettier-config": "workspace:^0.1.0",
"prettier": "^3.2.5",
"turbo": "^1.12.4",
"typescript": "^5.3.3"
"turbo": "^1.12.5",
"typescript": "^5.4.2"
},
"prettier": "@weatherio/prettier-config"
}
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@weatherio/tsconfig": "workspace:^0.1.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
},
"eslintConfig": {
"root": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/city-data/convex/_generated/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* Generated by convex@1.9.1.
* Generated by convex@1.10.0.
* To regenerate, run `npx convex dev`.
* @module
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/city-data/convex/_generated/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* Generated by convex@1.9.1.
* Generated by convex@1.10.0.
* To regenerate, run `npx convex dev`.
* @module
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/city-data/convex/_generated/dataModel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* Generated by convex@1.9.1.
* Generated by convex@1.10.0.
* To regenerate, run `npx convex dev`.
* @module
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/city-data/convex/_generated/server.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* Generated by convex@1.9.1.
* Generated by convex@1.10.0.
* To regenerate, run `npx convex dev`.
* @module
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/city-data/convex/_generated/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* THIS CODE IS AUTOMATICALLY GENERATED.
*
* Generated by convex@1.9.1.
* Generated by convex@1.10.0.
* To regenerate, run `npx convex dev`.
* @module
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/city-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
},
"prettier": "@weatherio/prettier-config",
"dependencies": {
"convex": "^1.9.1",
"convex": "^1.10.0",
"jsonfile": "^6.1.0",
"jsonl": "^1.1.2",
"yauzl": "^3.1.0",
"yauzl": "^3.1.2",
"zod": "^3.22.4"
},
"devDependencies": {
Expand All @@ -42,6 +42,6 @@
"@weatherio/tsconfig": "workspace:^0.1.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
}
}
4 changes: 2 additions & 2 deletions packages/e2e-web-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
"start-server-and-test": "^2.0.3"
},
"devDependencies": {
"@types/node": "^20.11.20",
"@types/node": "^20.11.25",
"@weatherio/eslint-config": "workspace:^0.2.0",
"@weatherio/prettier-config": "workspace:^0.1.0",
"@weatherio/tsconfig": "workspace:^0.1.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
}
}
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"@weatherio/tsconfig": "workspace:^0.1.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
}
}
8 changes: 4 additions & 4 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@
"next-themes": "^0.2.1",
"react": "18.2.0",
"react-leaflet": "^4.2.1",
"sonner": "^1.4.2",
"sonner": "^1.4.3",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@types/leaflet": "^1.9.8",
"@types/node": "^20.11.20",
"@types/react": "^18.2.58",
"@types/node": "^20.11.25",
"@types/react": "^18.2.64",
"@weatherio/eslint-config": "workspace:^0.2.0",
"@weatherio/prettier-config": "workspace:^0.1.0",
"@weatherio/tailwind-config": "workspace:^0.1.0",
"@weatherio/tsconfig": "workspace:^0.1.0",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit 33d7e24

Please sign in to comment.