-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
322 lines (312 loc) · 15.3 KB
/
index.html
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE html>
<html>
<head>
<title>WordPress Content Generator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="titlebar">
<div class="titlebar-buttons">
<button id="minimize">─</button>
<button id="close">×</button>
</div>
</div>
<div class="container">
<div class="sidebar">
<div class="logo">
<h2>Content Generator</h2>
</div>
<nav>
<a class="nav-item active" data-section="dashboard">
Dashboard
</a>
<a class="nav-item" data-section="keyword-research">
Keyword Research
</a>
<a class="nav-item" data-section="generate">
Generate Content
</a>
<a class="nav-item" data-section="content-settings">
Content Settings
</a>
<a class="nav-item" data-section="logging">
Logging
</a>
<a class="nav-item" data-section="settings">
Settings
</a>
</nav>
</div>
<main id="main-content">
<!-- Dashboard Section -->
<div id="dashboard-section" class="content-section active">
<h1>Dashboard</h1>
<div class="cards">
<div class="card">
<h3>Site Information</h3>
<div class="stat-grid">
<div class="stat-item">
<label>Site Name:</label>
<span id="site-name">Loading...</span>
</div>
<div class="stat-item">
<label>Description:</label>
<span id="site-description">Loading...</span>
</div>
<div class="stat-item">
<label>URL:</label>
<span id="site-url">Loading...</span>
</div>
</div>
</div>
<div class="card">
<h3>Content Statistics</h3>
<div class="stat-grid">
<div class="stat-item">
<label>Total Posts:</label>
<span id="post-count">-</span>
</div>
<div class="stat-item">
<label>Total Pages:</label>
<span id="page-count">-</span>
</div>
<div class="stat-item">
<label>Categories:</label>
<span id="category-count">-</span>
</div>
</div>
</div>
</div>
</div>
<!-- Keyword Research Section -->
<div id="keyword-research-section" class="content-section">
<h1>Keyword Research</h1>
<div class="cards">
<div class="card">
<h3>Find Keywords</h3>
<div class="keyword-search">
<div class="input-group">
<label for="seed-keyword">Seed Keyword:</label>
<input type="text" id="seed-keyword" placeholder="Enter a seed keyword">
</div>
<div class="input-group">
<label for="keyword-language">Language:</label>
<select id="keyword-language">
<option value="en">English</option>
<option value="es">Spanish</option>
<option value="fr">French</option>
<option value="de">German</option>
</select>
</div>
<div class="input-group">
<button id="find-keywords" class="btn primary">Find Keywords</button>
</div>
</div>
</div>
<div class="card">
<h3>Keyword Results</h3>
<div class="keyword-results">
<div class="table-container">
<table id="keywords-table">
<thead>
<tr>
<th>Keyword</th>
<th>Search Volume</th>
<th>Difficulty</th>
<th>CPC</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<!-- Keywords will be populated here -->
</tbody>
</table>
</div>
<div class="keyword-actions">
<button id="export-keywords" class="btn">Export to CSV</button>
<button id="save-keywords" class="btn primary">Save Selected</button>
</div>
</div>
</div>
<div class="card">
<h3>Saved Keywords</h3>
<div class="saved-keywords">
<div class="table-container">
<table id="saved-keywords-table">
<thead>
<tr>
<th>Keyword</th>
<th>Search Volume</th>
<th>Added Date</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<!-- Saved keywords will be populated here -->
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- Generate Content Section -->
<div id="generate-section" class="content-section">
<h1>Generate Content</h1>
<div class="cards">
<div class="card">
<h3>Content Generation</h3>
<div class="generate-content">
<div class="input-group">
<label for="content-topic">Topic or Keywords:</label>
<input type="text" id="content-topic" placeholder="Enter your topic or keywords">
</div>
<div class="input-group">
<label for="content-type">Content Type:</label>
<select id="content-type">
<option value="blog">Blog Post</option>
<option value="article">Article</option>
<option value="product">Product Description</option>
</select>
</div>
<div class="input-group">
<label for="content-tone">Tone:</label>
<select id="content-tone">
<option value="professional">Professional</option>
<option value="casual">Casual</option>
<option value="formal">Formal</option>
<option value="friendly">Friendly</option>
</select>
</div>
<div class="input-group">
<button id="generate-button" class="btn primary">Generate Content</button>
</div>
</div>
</div>
<div class="card">
<h3>Generated Content</h3>
<div class="generated-content">
<textarea id="generated-text" placeholder="Generated content will appear here..." readonly></textarea>
<div class="content-actions">
<button id="copy-content" class="btn">Copy</button>
<button id="publish-content" class="btn primary">Publish to WordPress</button>
</div>
</div>
</div>
</div>
</div>
<!-- Analytics Section -->
<div id="analytics-section" class="content-section">
<h1>Analytics</h1>
<div class="cards">
<div class="card">
<h3>Charts</h3>
<p>Analytics charts will appear here</p>
</div>
<div class="card">
<h3>Reports</h3>
<p>Generated reports and insights</p>
</div>
</div>
</div>
<!-- Content Settings Section -->
<div id="content-settings-section" class="content-section">
<h1>Content Settings</h1>
<div class="cards">
<div class="card">
<h3>Content Preferences</h3>
<div class="preference-controls">
<div class="preference-item">
<label for="content-length">Content Length:</label>
<input type="number" id="content-length" min="100" max="1000" value="500">
</div>
<div class="preference-item">
<label for="content-format">Content Format:</label>
<select id="content-format">
<option value="html">HTML</option>
<option value="markdown">Markdown</option>
</select>
</div>
</div>
</div>
</div>
</div>
<!-- Logging Section -->
<div id="logging-section" class="content-section">
<h1>Logging</h1>
<div class="cards">
<div class="card">
<div class="log-header">
<h3>Application Logs</h3>
<div class="log-controls">
<button id="clear-logs" class="btn">Clear Logs</button>
<button id="export-logs" class="btn">Export Logs</button>
</div>
</div>
<div class="log-content">
<textarea id="log-output" class="log-textarea" readonly></textarea>
</div>
</div>
</div>
</div>
<!-- Settings Section -->
<div id="settings-section" class="content-section">
<h1>Settings</h1>
<div class="cards">
<div class="card">
<h3>User Preferences</h3>
<div class="preference-controls">
<div class="preference-item">
<label for="theme-select">Theme:</label>
<select id="theme-select">
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</div>
<div class="preference-item">
<label for="auto-save">Auto Save:</label>
<input type="checkbox" id="auto-save">
</div>
<div class="preference-item">
<label for="refresh-interval">Refresh Interval (seconds):</label>
<input type="number" id="refresh-interval" min="5" max="300" value="30">
</div>
<div class="preference-item">
<label for="openai-key">OpenAI API Key:</label>
<input type="password" id="openai-key" placeholder="sk-..." autocomplete="off">
</div>
</div>
</div>
<div class="card">
<h3>WordPress Connection</h3>
<div class="settings-form">
<div class="input-group">
<label for="wp-site-url">WordPress Site URL</label>
<input type="url" id="wp-site-url" placeholder="https://your-site.com">
</div>
<div class="input-group">
<label for="wp-username">Username</label>
<input type="text" id="wp-username">
</div>
<div class="input-group">
<label for="wp-app-password">Application Password</label>
<div class="password-input">
<input type="password" id="wp-app-password">
<button class="toggle-password" type="button">
<span class="eye-icon">👁️</span>
</button>
</div>
<small class="help-text">Create an application password in WordPress: Users → Profile → Application Passwords</small>
</div>
<button id="test-connection" class="btn">Test Connection</button>
<button id="save-wp-settings" class="btn primary">Save Settings</button>
<div id="connection-status" class="connection-status"></div>
</div>
</div>
</div>
</div>
</main>
</div>
<script src="renderer.js"></script>
</body>
</html>