From db04b851349d749e8eaac1dc3bf2f217a66063b9 Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Tue, 7 Oct 2025 10:28:24 +0200 Subject: [PATCH] chore: restore apache headers (#260) --- configure.sh | 13 +++++++++++++ data/mesh.py | 14 ++++++++++++++ data/mesh_ingestor/__init__.py | 14 ++++++++++++++ data/mesh_ingestor/config.py | 14 ++++++++++++++ data/mesh_ingestor/daemon.py | 14 ++++++++++++++ data/mesh_ingestor/handlers.py | 14 ++++++++++++++ data/mesh_ingestor/interfaces.py | 14 ++++++++++++++ data/mesh_ingestor/queue.py | 14 ++++++++++++++ data/mesh_ingestor/serialization.py | 14 ++++++++++++++ tests/dump.py | 14 ++++++++++++++ tests/test_mesh.py | 14 ++++++++++++++ web/public/assets/js/app/config.js | 16 ++++++++++++++++ web/public/assets/js/app/index.js | 16 ++++++++++++++++ web/public/assets/js/app/main.js | 16 ++++++++++++++++ web/public/assets/js/background.js | 16 ++++++++++++++++ web/public/assets/js/theme.js | 16 ++++++++++++++++ web/public/assets/styles/base.css | 16 ++++++++++++++++ 17 files changed, 249 insertions(+) diff --git a/configure.sh b/configure.sh index 389bf03..45f4b94 100755 --- a/configure.sh +++ b/configure.sh @@ -1,4 +1,17 @@ #!/bin/bash +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # PotatoMesh Configuration Script # This script helps you configure your PotatoMesh instance with your local settings diff --git a/data/mesh.py b/data/mesh.py index d2cca13..5bd069a 100644 --- a/data/mesh.py +++ b/data/mesh.py @@ -1,4 +1,18 @@ #!/usr/bin/env python3 +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Backward-compatible entry point for the mesh ingestor daemon.""" from __future__ import annotations diff --git a/data/mesh_ingestor/__init__.py b/data/mesh_ingestor/__init__.py index 852194e..897d3f9 100644 --- a/data/mesh_ingestor/__init__.py +++ b/data/mesh_ingestor/__init__.py @@ -1,3 +1,17 @@ +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """High-level API for the potato-mesh ingestor.""" from __future__ import annotations diff --git a/data/mesh_ingestor/config.py b/data/mesh_ingestor/config.py index 9f51eb8..6b62059 100644 --- a/data/mesh_ingestor/config.py +++ b/data/mesh_ingestor/config.py @@ -1,3 +1,17 @@ +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Configuration helpers for the potato-mesh ingestor.""" from __future__ import annotations diff --git a/data/mesh_ingestor/daemon.py b/data/mesh_ingestor/daemon.py index a725f3b..08151d4 100644 --- a/data/mesh_ingestor/daemon.py +++ b/data/mesh_ingestor/daemon.py @@ -1,3 +1,17 @@ +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Runtime entry point for the mesh ingestor.""" from __future__ import annotations diff --git a/data/mesh_ingestor/handlers.py b/data/mesh_ingestor/handlers.py index 6e022ed..e157d62 100644 --- a/data/mesh_ingestor/handlers.py +++ b/data/mesh_ingestor/handlers.py @@ -1,3 +1,17 @@ +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Packet handlers that serialise data and push it to the HTTP queue.""" from __future__ import annotations diff --git a/data/mesh_ingestor/interfaces.py b/data/mesh_ingestor/interfaces.py index 02ba1f6..59af696 100644 --- a/data/mesh_ingestor/interfaces.py +++ b/data/mesh_ingestor/interfaces.py @@ -1,3 +1,17 @@ +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Mesh interface discovery helpers for interacting with Meshtastic hardware.""" from __future__ import annotations diff --git a/data/mesh_ingestor/queue.py b/data/mesh_ingestor/queue.py index 27ecf2a..74afa42 100644 --- a/data/mesh_ingestor/queue.py +++ b/data/mesh_ingestor/queue.py @@ -1,3 +1,17 @@ +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Priority queue for POST operations.""" from __future__ import annotations diff --git a/data/mesh_ingestor/serialization.py b/data/mesh_ingestor/serialization.py index 33d914f..d3c6a29 100644 --- a/data/mesh_ingestor/serialization.py +++ b/data/mesh_ingestor/serialization.py @@ -1,3 +1,17 @@ +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Utilities for converting Meshtastic structures into JSON-friendly forms. The helpers normalise loosely structured Meshtastic packets so they can be diff --git a/tests/dump.py b/tests/dump.py index 25e0549..81059da 100644 --- a/tests/dump.py +++ b/tests/dump.py @@ -1,4 +1,18 @@ #!/usr/bin/env python3 +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Utility script to dump Meshtastic traffic for offline analysis.""" from __future__ import annotations diff --git a/tests/test_mesh.py b/tests/test_mesh.py index 8295b93..c9e8c27 100644 --- a/tests/test_mesh.py +++ b/tests/test_mesh.py @@ -1,3 +1,17 @@ +# Copyright (C) 2025 l5yth +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import base64 import importlib import sys diff --git a/web/public/assets/js/app/config.js b/web/public/assets/js/app/config.js index aaee730..7baffe1 100644 --- a/web/public/assets/js/app/config.js +++ b/web/public/assets/js/app/config.js @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2025 l5yth + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * CSS selector used to locate the embedded configuration element. * diff --git a/web/public/assets/js/app/index.js b/web/public/assets/js/app/index.js index a52248e..ae91554 100644 --- a/web/public/assets/js/app/index.js +++ b/web/public/assets/js/app/index.js @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2025 l5yth + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { readAppConfig } from './config.js'; import { initializeApp } from './main.js'; diff --git a/web/public/assets/js/app/main.js b/web/public/assets/js/app/main.js index 2756539..356e66d 100644 --- a/web/public/assets/js/app/main.js +++ b/web/public/assets/js/app/main.js @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2025 l5yth + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /** * Entry point for the interactive dashboard. Wires up event listeners, * initializes the map, and triggers the first data refresh cycle. diff --git a/web/public/assets/js/background.js b/web/public/assets/js/background.js index a7b6ece..616d2b5 100644 --- a/web/public/assets/js/background.js +++ b/web/public/assets/js/background.js @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2025 l5yth + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + (function () { 'use strict'; diff --git a/web/public/assets/js/theme.js b/web/public/assets/js/theme.js index bf742bd..826a83d 100644 --- a/web/public/assets/js/theme.js +++ b/web/public/assets/js/theme.js @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2025 l5yth + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + (function () { /** * Number of seconds theme preferences should persist in the cookie store. diff --git a/web/public/assets/styles/base.css b/web/public/assets/styles/base.css index 3cdd049..6c97734 100644 --- a/web/public/assets/styles/base.css +++ b/web/public/assets/styles/base.css @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2025 l5yth + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + :root { --bg: #f6f3ee; --bg2: #ffffff;