chore: remove obsolete python patch scripts and update API key fallback handling in frontend views
This commit is contained in:
@@ -11,7 +11,7 @@ import { useLanguage } from '../i18n';
|
||||
type Key = { id: string; key: string; name: string };
|
||||
type PlaygroundMode = 'search' | 'routing' | 'layers' | 'spatial';
|
||||
|
||||
const DEFAULT_SOVEREIGN_KEY = 'zP9vL5mK2nQ8xR7jT4wS1yB6hG3fV0cX';
|
||||
const DEFAULT_SOVEREIGN_KEY = (import.meta as any).env.VITE_API_KEY || (import.meta as any).env.VITE_ADMIN_API_KEY || localStorage.getItem('map_admin_key') || localStorage.getItem('intaleq_api_key') || '';
|
||||
|
||||
interface RoutingResult {
|
||||
distanceKm?: number;
|
||||
|
||||
@@ -612,7 +612,7 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const SOVEREIGN_MAP_API_KEY = 'zP9vL5mK2nQ8xR7jT4wS1yB6hG3fV0cX';
|
||||
const SOVEREIGN_MAP_API_KEY = new URLSearchParams(window.location.search).get('key') || localStorage.getItem('map_admin_key') || localStorage.getItem('intaleq_api_key') || '';
|
||||
// 100% Verified Premier Landmarks Dataset (Iraq, Jordan, Syria, Egypt)
|
||||
let LANDMARKS = [
|
||||
{
|
||||
|
||||
@@ -612,7 +612,7 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const SOVEREIGN_MAP_API_KEY = 'zP9vL5mK2nQ8xR7jT4wS1yB6hG3fV0cX';
|
||||
const SOVEREIGN_MAP_API_KEY = new URLSearchParams(window.location.search).get('key') || localStorage.getItem('map_admin_key') || localStorage.getItem('intaleq_api_key') || '';
|
||||
// 100% Verified Premier Landmarks Dataset (Iraq, Jordan, Syria, Egypt)
|
||||
let LANDMARKS = [
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
},
|
||||
{
|
||||
"key": "apiKey",
|
||||
"value": "zP9vL5mK2nQ8xR7jT4wS1yB6hG3fV0cX",
|
||||
"value": "",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user