-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
158 lines (150 loc) · 6.17 KB
/
Copy pathindex.html
File metadata and controls
158 lines (150 loc) · 6.17 KB
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; img-src 'self' data:">
<title>mulle-patternfile Editor</title>
<link rel="icon" type="image/png" href="icon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="toolbar">
<img src="icon.svg" alt="mulle logo" class="toolbar-logo">
<span class="toolbar-title">mulle-patternfile Editor</span>
<span id="project-path" class="project-path"></span>
</div>
<div class="main-content">
<div id="welcome-container" class="welcome-container">
<div class="welcome-content">
<img src="icon.svg" alt="mulle logo" class="welcome-logo">
<h1>mulle-patternfile Editor</h1>
<p class="welcome-text">Open a mulle project directory to edit match and ignore pattern files.</p>
<button id="welcome-open-btn" class="welcome-button">Open Project Directory</button>
<div class="welcome-recent" id="welcome-recent-projects">
<h3>Recent Projects</h3>
<div id="recent-projects-list"></div>
</div>
</div>
</div>
<div id="editor-container" class="editor-container hidden">
<div class="env-panel">
<div class="env-header">
<h3>Environment Variables</h3>
</div>
<table class="env-table">
<tbody id="env-table-body">
<tr>
<td class="env-key">MULLE_MATCH_FILENAMES</td>
<td class="env-value"><input type="text" id="env-filenames" class="env-input" placeholder="Loading..."></td>
</tr>
<tr>
<td class="env-key">MULLE_MATCH_IGNORE_PATH</td>
<td class="env-value"><input type="text" id="env-ignore-path" class="env-input" placeholder="Loading..."></td>
</tr>
<tr>
<td class="env-key">MULLE_MATCH_PATH</td>
<td class="env-value"><input type="text" id="env-path" class="env-input" placeholder="Loading..."></td>
</tr>
</tbody>
</table>
</div>
<div class="editors-panel">
<div class="columns">
<div class="column" id="ignore-column">
<div class="column-header">
<h2>Ignore Patterns (ignore.d)</h2>
<button class="add-file-btn" id="add-ignore-btn" title="Add new ignore pattern file">+</button>
</div>
<div class="editor-area" id="ignore-editor-area"></div>
</div>
<div class="column" id="match-column">
<div class="column-header">
<h2>Match Patterns (match.d)</h2>
<button class="add-file-btn" id="add-match-btn" title="Add new match pattern file">+</button>
</div>
<div class="editor-area" id="match-editor-area"></div>
</div>
</div>
</div>
<div class="preview-panel" id="preview-panel">
<div class="preview-header">
<h3>Preview: Matched Files</h3>
<span class="preview-status" id="preview-status">Running mulle-match...</span>
</div>
<div class="preview-content" id="preview-content">
<div class="preview-loading">Initializing preview...</div>
</div>
</div>
</div>
</div>
<div id="preferences-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Preferences</h2>
<button id="close-preferences-modal" class="close-btn">×</button>
</div>
<div class="modal-body">
<div class="pref-item">
<label>
<input type="checkbox" id="pref-show-badges">
Show location badges (ETC, SHARE, SYMLINK)
</label>
<p class="pref-help">Display badges indicating file location and symlink status in editor headers.</p>
</div>
</div>
<div class="modal-footer">
<button id="cancel-preferences">Cancel</button>
<button id="save-preferences" class="primary">Save</button>
</div>
</div>
</div>
<div id="add-file-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Add Pattern File</h2>
<button id="close-add-file-modal" class="close-btn">×</button>
</div>
<div class="modal-body">
<p class="modal-help">File format: <strong>NN-type--category</strong></p>
<div class="form-group">
<label for="file-priority">Priority (00-99):</label>
<input type="text" id="file-priority" class="form-input" placeholder="50" maxlength="2" pattern="[0-9]{2}" inputmode="numeric">
<small class="form-hint">Two digits required (e.g., 05, 10, 50, 99)</small>
</div>
<div class="form-group">
<label for="file-type">Type (identifier):</label>
<input type="text" id="file-type" class="form-input" placeholder="custom" pattern="[a-zA-Z0-9_]+">
<small class="form-hint">Letters, numbers, underscores only (no spaces or hyphens)</small>
</div>
<div class="form-group">
<label for="file-category">Category (identifier):</label>
<input type="text" id="file-category" class="form-input" placeholder="myfiles" pattern="[a-zA-Z0-9_]+">
<small class="form-hint">Letters, numbers, underscores only (no spaces or hyphens)</small>
</div>
<div class="filename-preview">
Filename: <strong id="filename-preview">50-custom--myfiles</strong>
</div>
</div>
<div class="modal-footer">
<button id="cancel-add-file">Cancel</button>
<button id="confirm-add-file" class="primary">Create File</button>
</div>
</div>
</div>
<div id="doctor-modal" class="modal">
<div class="modal-content doctor-modal-content">
<div class="modal-header">
<h2>🩺 Doctor</h2>
<button id="close-doctor-modal" class="close-btn">×</button>
</div>
<div class="modal-body" id="doctor-results">
<div class="doctor-running">Running diagnostics...</div>
</div>
<div class="modal-footer">
<button id="dismiss-doctor">Dismiss</button>
</div>
</div>
</div>
<script src="renderer.js"></script>
</body>
</html>