Data files go in data folder

This commit is contained in:
2026-03-16 09:32:00 -05:00
parent 671e3cacf4
commit 8b5f6f173b
7 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -3,12 +3,12 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Palo Alto Issues Tracker</title> <title>Firewall issues tool</title>
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css">
</head> </head>
<body> <body>
<header> <header>
<h1>Palo Alto Issues Tracker</h1> <h1>Firewall issues tool</h1>
</header> </header>
<main class="container"> <main class="container">
<aside class="sidebar"> <aside class="sidebar">
+2 -2
View File
@@ -9,10 +9,10 @@ const issueFileDataCache = new Map();
const issueFilePromiseCache = new Map(); const issueFilePromiseCache = new Map();
function loadSocialRefs() { function loadSocialRefs() {
return fetch('social_refs.json') return fetch('data/social_refs.json')
.then(response => { .then(response => {
if (!response.ok) { if (!response.ok) {
throw new Error(`Failed to load social_refs.json (${response.status})`); throw new Error(`Failed to load data/social_refs.json (${response.status})`);
} }
return response.json(); return response.json();
}) })
+1 -1
View File
@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Process Issues - Palo Alto Issues Tracker</title> <title>Process Issues - Firewall issues tool</title>
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css">
<style> <style>
.process-container { .process-container {
+2 -2
View File
@@ -8,7 +8,7 @@ let activeDownloadUrl = null;
const PROCESS_FORM_STATE_KEY = 'bugmedley.process.formState.v1'; const PROCESS_FORM_STATE_KEY = 'bugmedley.process.formState.v1';
function loadProducts() { function loadProducts() {
fetch('products.json') fetch('data/products.json')
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
const productSelect = document.getElementById('productSelect'); const productSelect = document.getElementById('productSelect');
@@ -25,7 +25,7 @@ function loadProducts() {
}) })
.catch(error => { .catch(error => {
console.error('Error loading products:', error); console.error('Error loading products:', error);
setParseStatus('Could not load products.json', true); setParseStatus('Could not load data/products.json', true);
}); });
} }
+1 -1
View File
@@ -19,7 +19,7 @@ function refreshIssuesForCurrentSelection() {
} }
function loadProductTree() { function loadProductTree() {
fetch('products.json') fetch('data/products.json')
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
productsData = expandFilePrefixLevel(data); productsData = expandFilePrefixLevel(data);