Data files go in data folder
This commit is contained in:
+2
-2
@@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>Palo Alto Issues Tracker</h1>
|
||||
<h1>Firewall issues tool</h1>
|
||||
</header>
|
||||
<main class="container">
|
||||
<aside class="sidebar">
|
||||
|
||||
+2
-2
@@ -9,10 +9,10 @@ const issueFileDataCache = new Map();
|
||||
const issueFilePromiseCache = new Map();
|
||||
|
||||
function loadSocialRefs() {
|
||||
return fetch('social_refs.json')
|
||||
return fetch('data/social_refs.json')
|
||||
.then(response => {
|
||||
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();
|
||||
})
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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">
|
||||
<style>
|
||||
.process-container {
|
||||
|
||||
+2
-2
@@ -8,7 +8,7 @@ let activeDownloadUrl = null;
|
||||
const PROCESS_FORM_STATE_KEY = 'bugmedley.process.formState.v1';
|
||||
|
||||
function loadProducts() {
|
||||
fetch('products.json')
|
||||
fetch('data/products.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
const productSelect = document.getElementById('productSelect');
|
||||
@@ -25,7 +25,7 @@ function loadProducts() {
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Error loading products:', error);
|
||||
setParseStatus('Could not load products.json', true);
|
||||
setParseStatus('Could not load data/products.json', true);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ function refreshIssuesForCurrentSelection() {
|
||||
}
|
||||
|
||||
function loadProductTree() {
|
||||
fetch('products.json')
|
||||
fetch('data/products.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
productsData = expandFilePrefixLevel(data);
|
||||
|
||||
Reference in New Issue
Block a user