forked from iarv/meshstream
Another try at fixing proto in CI
This commit is contained in:
3
.github/workflows/cicd.yml
vendored
3
.github/workflows/cicd.yml
vendored
@@ -28,6 +28,9 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y protobuf-compiler
|
||||
|
||||
- name: Install Go protobuf tools
|
||||
run: make tools
|
||||
|
||||
- name: Generate Protocol Buffers
|
||||
run: make gen-proto
|
||||
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -73,4 +73,5 @@ temp/
|
||||
|
||||
|
||||
# Binary output type
|
||||
#meshstream
|
||||
#meshstream
|
||||
**/.claude/settings.local.json
|
||||
|
||||
1
Makefile
1
Makefile
@@ -71,6 +71,7 @@ $(TOOLS_DIR):
|
||||
# Install the protoc-gen-go tool
|
||||
$(PROTOC_GEN_GO): $(TOOLS_DIR)
|
||||
GOBIN=$(abspath $(TOOLS_DIR)) go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||
echo "Installed protoc-gen-go in $(TOOLS_DIR)"
|
||||
ls $(TOOLS_DIR)
|
||||
|
||||
# Web application commands
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useRef, useEffect, useState } from "react";
|
||||
import React, { useRef, useEffect, useState, useCallback } from "react";
|
||||
import { calculateAccuracyFromPrecisionBits, calculateZoomFromAccuracy } from "../../lib/mapUtils";
|
||||
import { GOOGLE_MAPS_ID } from "../../lib/config";
|
||||
|
||||
@@ -39,7 +39,7 @@ export const GoogleMap: React.FC<GoogleMapProps> = ({
|
||||
// Track whether the map has been initialized
|
||||
const isInitializedRef = useRef(false);
|
||||
|
||||
const initializeMap = () => {
|
||||
const initializeMap = useCallback(() => {
|
||||
if (
|
||||
mapRef.current &&
|
||||
window.google &&
|
||||
@@ -94,7 +94,7 @@ export const GoogleMap: React.FC<GoogleMapProps> = ({
|
||||
radius: accuracyMeters,
|
||||
});
|
||||
}
|
||||
};
|
||||
}, [lat, lng, effectiveZoom, accuracyMeters, precisionBits]);
|
||||
|
||||
// Check for Google Maps API loading - make sure all required objects are available
|
||||
useEffect(() => {
|
||||
@@ -148,7 +148,7 @@ export const GoogleMap: React.FC<GoogleMapProps> = ({
|
||||
if (isGoogleMapsLoaded && mapRef.current) {
|
||||
initializeMap();
|
||||
}
|
||||
}, [isGoogleMapsLoaded, lat, lng, effectiveZoom, accuracyMeters, precisionBits]);
|
||||
}, [isGoogleMapsLoaded, initializeMap]);
|
||||
|
||||
// Prepare the container classes based on fullHeight flag
|
||||
const containerClassName = `w-full ${fullHeight ? 'h-full flex-1' : 'min-h-[300px]'} rounded-lg overflow-hidden effect-inset`;
|
||||
|
||||
Reference in New Issue
Block a user