File size: 1,869 Bytes
3f5b361
 
 
 
ef4236b
 
 
 
3f5b361
ef4236b
 
 
 
 
 
 
 
 
3f5b361
 
ef4236b
 
3f5b361
 
ef4236b
 
 
 
1636ae6
 
ef4236b
 
 
 
 
 
aa0674f
 
 
ef4236b
 
 
 
 
 
 
d322d5b
ef4236b
 
 
3f5b361
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Flare Project Admin</title>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
    <script src="project.js" defer></script>
</head>
<body>
    <div class="container mt-4">
        <h1>Flare Project Admin Panel</h1>

        <div class="mb-3">
            <button class="btn btn-success" id="newProjectBtn">+ New Project</button>
            <button class="btn btn-primary" id="newVersionBtn">+ New Version</button>
            <button class="btn btn-secondary" id="saveChangesBtn">Save Project</button>
            <button class="btn btn-warning" id="publishVersionBtn">Publish Version</button>
        </div>

        <div id="projectDetails" class="mb-4">
            <!-- Project details will be injected here -->
        </div>

        <div>
            <h3>Intents</h3>
            <button class="btn btn-outline-primary mb-2" id="addIntentBtn">+ Add Intent / API</button>
            <!-- Intents list will be injected by JS -->
        </div>

        <div>
            <h3>Spark Project List</h3>
            <ul id="sparkProjectList" class="list-group mb-4">
                <!-- Spark projects will be listed here -->
            </ul>
            <button class="btn btn-info" onclick="loadSparkProjects()">Get Spark Project List</button>
        </div>
    </div>

    <!-- Include modals -->
    <div id="modals">
        <!-- Add/Edit API Modal -->
        <!-- (addIntentModal.html content here) -->

        <!-- New Project Modal (if used) -->
        <!-- (newProjectModal.html content here) -->

        <!-- New Version Modal -->
        <!-- (newVersionModal.html content here) -->
    </div>
</body>
</html>