Skip to content

Commit

Permalink
added vite
Browse files Browse the repository at this point in the history
  • Loading branch information
unclFedor committed Oct 22, 2023
1 parent 49189c3 commit 746f3ca
Show file tree
Hide file tree
Showing 8 changed files with 975 additions and 1,623 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VITE_REACT_APP_MAPBOX_TOKEN=
VITE_REACT_APP_REST_API_BASE_URL=https://developer.trimet.org/ws/v2
VITE_REACT_APP_REST_API_APP_ID=
VITE_SOME_KEY=hello
3 changes: 3 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_REACT_APP_MAPBOX_TOKEN=pk.eyJ1IjoiZHNhdmlub3YiLCJhIjoiY2xsd2VocjRsMjVpbzNwcDhsc3E1ZzAzNiJ9.3xSNq_gwuOMHPUTDkO4OzQ
VITE_REACT_APP_REST_API_BASE_URL=https://developer.trimet.org/ws/v2
VITE_REACT_APP_REST_API_APP_ID=97B28D2ED40DA08AB53687356
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"recharts": "^2.1.13",
"regenerator-runtime": "^0.13.9",
"styled-components": "^5.3.3",
"uuid": "^9.0.0"
"uuid": "^9.0.0",
"vite": "^4.5.0"
},
"devDependencies": {
"@babel/core": "^7.17.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/google-maps-wrapper/google-maps-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { useAppDispatch, useAppSelector } from "../../redux/hooks";
// import { appActions } from "../../redux/slices/app.slice";

const googleMapsApiToken = "";
// import.meta.env.VITE_GOOGLE_MAPS_API_KEY;
//import.meta.env.VITE_GOOGLE_MAPS_API_KEY;
const googleMapsMapId = "";
// import.meta.env.VITE_GOOGLE_MAP_VECTOR_ID;

Expand Down
3 changes: 2 additions & 1 deletion src/constants/base-map-providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export const BASE_MAP_PROVIDERS: BaseMapProvider[] = [
];

const mapboxAccessToken = "";
//import.meta.env.VITE_MAPBOX_API_KEY;
// import.meta.env.VITE_MAPBOX_API_KEY;
console.log("vite: ", import.meta.env);

export const MAP_PROVIDER_PROPERTIES: Record<
BaseMapProviderId.mapbox2 | BaseMapProviderId.maplibre,
Expand Down
2 changes: 1 addition & 1 deletion src/redux/slices/app.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface AppState {
}

export const initialState: AppState = {
baseMapProvider: BASE_MAP_PROVIDERS[0],
baseMapProvider: BASE_MAP_PROVIDERS[3],
baseMapMode: BaseMapMode.OVERLAID,
// fps: 60,
// openedPopoverId: null,
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"esModuleInterop": true,
"sourceMap": true,
// Docs - https://www.typescriptlang.org/tsconfig#noImplicitAny
"noImplicitAny": false
"noImplicitAny": false,
"types": ["node", "vite/client"]
},
"exclude": ["src/**/*.spec.ts"],
"include": ["./jest-setup.ts", "src", "index.d.ts", "styled.d.ts"]
Expand Down
Loading

0 comments on commit 746f3ca

Please sign in to comment.