diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..6ff3f8d48f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,37 @@ +# Set default behavior to automatically normalize line endings (LF on check-in). +* text=auto + +# Force batch scripts to always use CRLF line endings so that if a repo is accessed +# in Windows via a file share from Linux, the scripts will work. +*.{cmd,[cC][mM][dD]} text eol=crlf +*.{bat,[bB][aA][tT]} text eol=crlf +*.{ics,[iI][cC][sS]} text eol=crlf + +# Force bash scripts to always use LF line endings so that if a repo is accessed +# in Unix via a file share from Windows, the scripts will work. +*.sh text eol=lf + +# Ensure Spotless does not try to use CRLF line endings on Windows in the local repo. +*.gradle text eol=lf +*.java text eol=lf +*.json text eol=lf +*.md text eol=lf +*.xml text eol=lf +*.h text eol=lf +*.hpp text eol=lf +*.inc text eol=lf +*.inl text eol=lf +*.cpp text eol=lf + +# Frontend Files +*.js text eol=lf +*.vue text eol=lf + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.so binary +*.dll binary +*.webp binary diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a4cfdd43b7..be57d9e0f5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -204,8 +204,9 @@ jobs: include: - os: windows-2022 artifact-name: Win64 - - os: macos-11 - artifact-name: macOS + # Mac builds are broken due to opencv class loading issues -- disable for now + # - os: macos-11 + # artifact-name: macOS - os: ubuntu-22.04 artifact-name: Linux diff --git a/.gitignore b/.gitignore index bf87286f86..ca5a93289b 100644 --- a/.gitignore +++ b/.gitignore @@ -145,6 +145,7 @@ build/spotlessJava build/* build photon-lib/src/main/java/org/photonvision/PhotonVersion.java +photon-lib/bin/main/images/* /photonlib-java-examples/bin/ photon-lib/src/generate/native/include/PhotonVersion.h .gitattributes @@ -157,3 +158,4 @@ photonlib-java-examples/*/vendordeps/* photonlib-cpp-examples/*/vendordeps/* */networktables.json +*.sqlite diff --git a/.styleguide b/.styleguide index 5b6275ca1f..13ce2512df 100644 --- a/.styleguide +++ b/.styleguide @@ -17,6 +17,7 @@ modifiableFileExclude { \.so$ \.dll$ \.webp$ + gradlew } includeProject { diff --git a/photon-client/src/App.vue b/photon-client/src/App.vue index 6e0ecd001d..053635c21d 100644 --- a/photon-client/src/App.vue +++ b/photon-client/src/App.vue @@ -32,7 +32,7 @@ @@ -45,7 +45,7 @@ @@ -57,7 +57,7 @@ @@ -69,7 +69,7 @@ mdi-bookshelf @@ -197,7 +197,7 @@ PhotonVision cannot connect to the NetworkTables Server. Please visit the @@ -345,7 +345,7 @@ export default { this.previouslySelectedIndices = null; }, switchToSettingsTab() { - this.axios.post('http://' + this.$address + '/api/sendMetrics', {}) + this.axios.post('http://' + this.$address + '/api/utils/publishMetrics') } } }; diff --git a/photon-client/src/components/pipeline/CameraAndPipelineSelect.vue b/photon-client/src/components/pipeline/CameraAndPipelineSelect.vue index d0271a1a0d..66c7404ec8 100644 --- a/photon-client/src/components/pipeline/CameraAndPipelineSelect.vue +++ b/photon-client/src/components/pipeline/CameraAndPipelineSelect.vue @@ -1,5 +1,13 @@ +