File size: 5,278 Bytes
430354e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<html>

<head>
    <title>Edit project</title>
    <script type="module">
        import { store } from "/components/projects/projects-store.js";
    </script>
</head>

<body>
    <div x-data>
        <template x-if="$store.projects && $store.projects.selectedProject">
            <div>


                <div class="buttons-container" style="margin: var(--spacing-md) var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);">
                    <div class="buttons-left">
                        <button type="button" class="button cancel"
                            @click="$confirmClick($event, () => $store.projects.deleteProjectAndCloseModal())">Delete</button>
                    </div>
                    <div class="buttons-right">
                        <button type="button" class="button confirm"
                            @click="$store.projects.confirmEdit()">Save</button>
                        <button type="button" class="button cancel"
                            @click="$store.projects.cancelEdit()">Cancel</button>
                    </div>
                </div>

                <div class="project-detail">
                    <div class="project-detail-header">
                        <span class="projects-project-card-title">Basic info</span>
                    </div>
                    <x-component path="projects/project-edit-basic-data.html">
                    </x-component>

                    <div class="settings-advanced-section project-advanced-section" x-data="{ advOpen: false }">
                        <button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen">
                            <x-icon class="settings-advanced-toggle-icon"
                                :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon>
                            <span>Advanced Settings</span>
                        </button>

                        <div class="settings-advanced-body" x-show="advOpen" x-transition.opacity style="display: none;">
                            <x-component path="projects/project-edit-llm.html">
                            </x-component>
                        </div>
                    </div>
                </div>

                <div class="project-detail">
                    <div class="project-detail-header">
                        <span class="projects-project-card-title">Instructions</span>
                    </div>
                    <x-component path="projects/project-edit-instructions.html">
                    </x-component>
                </div>

                <div class="project-detail">
                    <div class="project-detail-header">
                        <span class="projects-project-card-title">Skills</span>
                    </div>
                    <x-component path="projects/project-edit-skills.html">
                    </x-component>
                </div>

                <div class="project-detail">
                    <div class="project-detail-header">
                        <span class="projects-project-card-title">MCP Servers</span>
                    </div>
                    <x-component path="projects/project-edit-mcp.html">
                    </x-component>
                </div>

                <div class="project-detail">
                    <div class="project-detail-header">
                        <span class="projects-project-card-title">File structure</span>
                    </div>
                    <x-component path="projects/project-edit-file-structure.html">
                    </x-component>
                </div>

                <div class="project-detail">
                    <div class="project-detail-header">
                        <span class="projects-project-card-title">Secrets</span>
                    </div>
                    <x-component path="projects/project-edit-secrets.html">
                    </x-component>
                </div>

                <div class="buttons-container" style="margin: var(--spacing-md) var(--spacing-sm) var(--spacing-lg) var(--spacing-sm);">
                    <div class="buttons-left">
                        <button type="button" class="button cancel"
                            @click="$confirmClick($event, () => $store.projects.deleteProjectAndCloseModal())">Delete</button>
                    </div>
                    <div class="buttons-right">
                        <button type="button" class="button confirm"
                            @click="$store.projects.confirmEdit()">Save</button>
                        <button type="button" class="button cancel"
                            @click="$store.projects.cancelEdit()">Cancel</button>
                    </div>
                </div>


            </div>
        </template>
    </div>
</body>
<style>
    .project-detail {
        border: 1px solid var(--color-border);
        border-radius: 0.5em;
        padding: 1em;
        margin: 1em;
        background: var(--color-panel);
    }

    .project-detail-header {
        margin-bottom: 1em;
    }

    .project-advanced-section {
        border-top: 1px solid var(--color-border);
        margin-top: 1em;
        padding-top: 0.5em;
    }
</style>

</html>