focomy 0.1.116__py3-none-any.whl → 0.1.118__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- core/services/theme.py +101 -12
- core/templates/admin/customize.html +189 -9
- {focomy-0.1.116.dist-info → focomy-0.1.118.dist-info}/METADATA +1 -1
- {focomy-0.1.116.dist-info → focomy-0.1.118.dist-info}/RECORD +10 -8
- themes/corporate/customizations.json +29 -0
- themes/default/customizations.json +22 -0
- themes/default/templates/base.html +18 -1
- {focomy-0.1.116.dist-info → focomy-0.1.118.dist-info}/WHEEL +0 -0
- {focomy-0.1.116.dist-info → focomy-0.1.118.dist-info}/entry_points.txt +0 -0
- {focomy-0.1.116.dist-info → focomy-0.1.118.dist-info}/licenses/LICENSE +0 -0
core/services/theme.py
CHANGED
|
@@ -388,25 +388,39 @@ class ThemeService:
|
|
|
388
388
|
return css.strip()
|
|
389
389
|
|
|
390
390
|
def get_css_variables(self, theme_name: str = None, minify: bool = True) -> str:
|
|
391
|
-
"""Generate CSS variables from theme config."""
|
|
391
|
+
"""Generate CSS variables from theme config with customizations applied."""
|
|
392
392
|
theme = self.get_theme(theme_name)
|
|
393
393
|
if not theme:
|
|
394
394
|
return ""
|
|
395
395
|
|
|
396
|
+
# Get user customizations
|
|
397
|
+
customizations = self.get_customizations(theme_name)
|
|
398
|
+
|
|
396
399
|
lines = [":root {"]
|
|
397
400
|
|
|
398
|
-
# Colors
|
|
399
|
-
for name,
|
|
401
|
+
# Colors (with customization override)
|
|
402
|
+
for name, default_value in theme.colors.items():
|
|
403
|
+
value = customizations.get(f"color_{name}", default_value)
|
|
400
404
|
lines.append(f" --color-{name}: {value};")
|
|
401
405
|
|
|
402
|
-
# Fonts
|
|
403
|
-
for name,
|
|
406
|
+
# Fonts (with customization override)
|
|
407
|
+
for name, default_value in theme.fonts.items():
|
|
408
|
+
value = customizations.get(f"font_{name}", default_value)
|
|
404
409
|
lines.append(f" --font-{name}: {value};")
|
|
405
410
|
|
|
406
|
-
# Spacing
|
|
407
|
-
for name,
|
|
411
|
+
# Spacing (with customization override)
|
|
412
|
+
for name, default_value in theme.spacing.items():
|
|
413
|
+
value = customizations.get(f"space_{name}", default_value)
|
|
408
414
|
lines.append(f" --space-{name}: {value};")
|
|
409
415
|
|
|
416
|
+
# Header/Background images
|
|
417
|
+
header_image = customizations.get("header_image", "")
|
|
418
|
+
background_image = customizations.get("background_image", "")
|
|
419
|
+
if header_image:
|
|
420
|
+
lines.append(f" --header-image: url({header_image});")
|
|
421
|
+
if background_image:
|
|
422
|
+
lines.append(f" --background-image: url({background_image});")
|
|
423
|
+
|
|
410
424
|
lines.append("}")
|
|
411
425
|
|
|
412
426
|
# Add base styles
|
|
@@ -416,7 +430,10 @@ class ThemeService:
|
|
|
416
430
|
|
|
417
431
|
body {
|
|
418
432
|
font-family: var(--font-sans);
|
|
419
|
-
background: var(--color-background);
|
|
433
|
+
background: var(--background-image, var(--color-background));
|
|
434
|
+
background-size: cover;
|
|
435
|
+
background-position: center;
|
|
436
|
+
background-attachment: fixed;
|
|
420
437
|
color: var(--color-text);
|
|
421
438
|
line-height: 1.6;
|
|
422
439
|
}
|
|
@@ -428,7 +445,9 @@ body {
|
|
|
428
445
|
}
|
|
429
446
|
|
|
430
447
|
.site-header {
|
|
431
|
-
background: var(--color-surface);
|
|
448
|
+
background: var(--header-image, var(--color-surface));
|
|
449
|
+
background-size: cover;
|
|
450
|
+
background-position: center;
|
|
432
451
|
border-bottom: 1px solid var(--color-border);
|
|
433
452
|
padding: var(--space-md) 0;
|
|
434
453
|
}
|
|
@@ -645,9 +664,12 @@ body {
|
|
|
645
664
|
"""
|
|
646
665
|
)
|
|
647
666
|
|
|
648
|
-
# Add custom CSS
|
|
649
|
-
|
|
650
|
-
|
|
667
|
+
# Add custom CSS (from customizations or theme default)
|
|
668
|
+
custom_css = customizations.get("custom_css", theme.custom_css or "")
|
|
669
|
+
if custom_css:
|
|
670
|
+
lines.append("")
|
|
671
|
+
lines.append("/* Custom CSS */")
|
|
672
|
+
lines.append(custom_css)
|
|
651
673
|
|
|
652
674
|
css = "\n".join(lines)
|
|
653
675
|
return self._minify_css(css) if minify else css
|
|
@@ -1172,6 +1194,7 @@ body {
|
|
|
1172
1194
|
|
|
1173
1195
|
# Add theme CSS to context
|
|
1174
1196
|
context["theme_css"] = self.get_css_variables(theme_name)
|
|
1197
|
+
context["customizations"] = self.get_customizations(theme_name)
|
|
1175
1198
|
context["current_year"] = datetime.now().year
|
|
1176
1199
|
context.setdefault("site_name", "Focomy")
|
|
1177
1200
|
|
|
@@ -1240,6 +1263,46 @@ body {
|
|
|
1240
1263
|
customizations = self.get_customizations(theme_name)
|
|
1241
1264
|
settings = []
|
|
1242
1265
|
|
|
1266
|
+
# Site Identity (logo, favicon)
|
|
1267
|
+
settings.append({
|
|
1268
|
+
"id": "site_logo",
|
|
1269
|
+
"type": "image",
|
|
1270
|
+
"label": "サイトロゴ",
|
|
1271
|
+
"category": "site_identity",
|
|
1272
|
+
"default": "",
|
|
1273
|
+
"value": customizations.get("site_logo", ""),
|
|
1274
|
+
"description": "ヘッダーに表示されるロゴ画像(推奨: 高さ60px以下)",
|
|
1275
|
+
})
|
|
1276
|
+
settings.append({
|
|
1277
|
+
"id": "site_icon",
|
|
1278
|
+
"type": "image",
|
|
1279
|
+
"label": "サイトアイコン",
|
|
1280
|
+
"category": "site_identity",
|
|
1281
|
+
"default": "",
|
|
1282
|
+
"value": customizations.get("site_icon", ""),
|
|
1283
|
+
"description": "ファビコン・アプリアイコン(推奨: 512x512px)",
|
|
1284
|
+
})
|
|
1285
|
+
|
|
1286
|
+
# Header Images
|
|
1287
|
+
settings.append({
|
|
1288
|
+
"id": "header_image",
|
|
1289
|
+
"type": "image",
|
|
1290
|
+
"label": "ヘッダー画像",
|
|
1291
|
+
"category": "header",
|
|
1292
|
+
"default": "",
|
|
1293
|
+
"value": customizations.get("header_image", ""),
|
|
1294
|
+
"description": "ヘッダー背景画像(推奨: 1920x400px)",
|
|
1295
|
+
})
|
|
1296
|
+
settings.append({
|
|
1297
|
+
"id": "background_image",
|
|
1298
|
+
"type": "image",
|
|
1299
|
+
"label": "背景画像",
|
|
1300
|
+
"category": "header",
|
|
1301
|
+
"default": "",
|
|
1302
|
+
"value": customizations.get("background_image", ""),
|
|
1303
|
+
"description": "サイト全体の背景画像",
|
|
1304
|
+
})
|
|
1305
|
+
|
|
1243
1306
|
# Colors
|
|
1244
1307
|
for name, default_value in theme.colors.items():
|
|
1245
1308
|
settings.append({
|
|
@@ -1273,6 +1336,17 @@ body {
|
|
|
1273
1336
|
"value": customizations.get(f"space_{name}", default_value),
|
|
1274
1337
|
})
|
|
1275
1338
|
|
|
1339
|
+
# Custom CSS
|
|
1340
|
+
settings.append({
|
|
1341
|
+
"id": "custom_css",
|
|
1342
|
+
"type": "code",
|
|
1343
|
+
"label": "カスタムCSS",
|
|
1344
|
+
"category": "custom_css",
|
|
1345
|
+
"default": theme.custom_css or "",
|
|
1346
|
+
"value": customizations.get("custom_css", theme.custom_css or ""),
|
|
1347
|
+
"description": "独自のCSSを追加できます",
|
|
1348
|
+
})
|
|
1349
|
+
|
|
1276
1350
|
return settings
|
|
1277
1351
|
|
|
1278
1352
|
def generate_preview_css(self, preview_values: dict, theme_name: str = None) -> str:
|
|
@@ -1311,8 +1385,23 @@ body {
|
|
|
1311
1385
|
value = values.get(f"space_{name}", default_value)
|
|
1312
1386
|
lines.append(f" --space-{name}: {value};")
|
|
1313
1387
|
|
|
1388
|
+
# Header/Background images
|
|
1389
|
+
header_image = values.get("header_image", "")
|
|
1390
|
+
background_image = values.get("background_image", "")
|
|
1391
|
+
if header_image:
|
|
1392
|
+
lines.append(f" --header-image: url({header_image});")
|
|
1393
|
+
if background_image:
|
|
1394
|
+
lines.append(f" --background-image: url({background_image});")
|
|
1395
|
+
|
|
1314
1396
|
lines.append("}")
|
|
1315
1397
|
|
|
1398
|
+
# Custom CSS
|
|
1399
|
+
custom_css = values.get("custom_css", "")
|
|
1400
|
+
if custom_css:
|
|
1401
|
+
lines.append("")
|
|
1402
|
+
lines.append("/* Custom CSS */")
|
|
1403
|
+
lines.append(custom_css)
|
|
1404
|
+
|
|
1316
1405
|
return "\n".join(lines)
|
|
1317
1406
|
|
|
1318
1407
|
|
|
@@ -22,6 +22,74 @@
|
|
|
22
22
|
|
|
23
23
|
<div class="customize-layout">
|
|
24
24
|
<div class="customize-sidebar">
|
|
25
|
+
<!-- Site Identity -->
|
|
26
|
+
{% if grouped_settings.site_identity %}
|
|
27
|
+
<div class="customize-section">
|
|
28
|
+
<h3>サイトID</h3>
|
|
29
|
+
{% for setting in grouped_settings.site_identity %}
|
|
30
|
+
<div class="customize-field">
|
|
31
|
+
<label for="{{ setting.id }}">{{ setting.label }}</label>
|
|
32
|
+
{% if setting.description %}
|
|
33
|
+
<p class="field-description">{{ setting.description }}</p>
|
|
34
|
+
{% endif %}
|
|
35
|
+
<div class="image-input-wrapper">
|
|
36
|
+
<div class="image-preview" id="{{ setting.id }}_preview">
|
|
37
|
+
{% if setting.value %}
|
|
38
|
+
<img src="{{ setting.value }}" alt="{{ setting.label }}">
|
|
39
|
+
{% else %}
|
|
40
|
+
<span class="no-image">画像未設定</span>
|
|
41
|
+
{% endif %}
|
|
42
|
+
</div>
|
|
43
|
+
<input type="url"
|
|
44
|
+
id="{{ setting.id }}"
|
|
45
|
+
name="{{ setting.id }}"
|
|
46
|
+
value="{{ setting.value }}"
|
|
47
|
+
data-default="{{ setting.default }}"
|
|
48
|
+
class="customize-input image-url-input"
|
|
49
|
+
placeholder="https://example.com/image.png">
|
|
50
|
+
<div class="image-actions">
|
|
51
|
+
<button type="button" class="btn btn-sm btn-outline" onclick="clearImageInput('{{ setting.id }}')">クリア</button>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
{% endfor %}
|
|
56
|
+
</div>
|
|
57
|
+
{% endif %}
|
|
58
|
+
|
|
59
|
+
<!-- Header Images -->
|
|
60
|
+
{% if grouped_settings.header %}
|
|
61
|
+
<div class="customize-section">
|
|
62
|
+
<h3>ヘッダー・背景</h3>
|
|
63
|
+
{% for setting in grouped_settings.header %}
|
|
64
|
+
<div class="customize-field">
|
|
65
|
+
<label for="{{ setting.id }}">{{ setting.label }}</label>
|
|
66
|
+
{% if setting.description %}
|
|
67
|
+
<p class="field-description">{{ setting.description }}</p>
|
|
68
|
+
{% endif %}
|
|
69
|
+
<div class="image-input-wrapper">
|
|
70
|
+
<div class="image-preview" id="{{ setting.id }}_preview">
|
|
71
|
+
{% if setting.value %}
|
|
72
|
+
<img src="{{ setting.value }}" alt="{{ setting.label }}">
|
|
73
|
+
{% else %}
|
|
74
|
+
<span class="no-image">画像未設定</span>
|
|
75
|
+
{% endif %}
|
|
76
|
+
</div>
|
|
77
|
+
<input type="url"
|
|
78
|
+
id="{{ setting.id }}"
|
|
79
|
+
name="{{ setting.id }}"
|
|
80
|
+
value="{{ setting.value }}"
|
|
81
|
+
data-default="{{ setting.default }}"
|
|
82
|
+
class="customize-input image-url-input"
|
|
83
|
+
placeholder="https://example.com/image.png">
|
|
84
|
+
<div class="image-actions">
|
|
85
|
+
<button type="button" class="btn btn-sm btn-outline" onclick="clearImageInput('{{ setting.id }}')">クリア</button>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
{% endfor %}
|
|
90
|
+
</div>
|
|
91
|
+
{% endif %}
|
|
92
|
+
|
|
25
93
|
<!-- Colors -->
|
|
26
94
|
{% if grouped_settings.colors %}
|
|
27
95
|
<div class="customize-section">
|
|
@@ -82,6 +150,27 @@
|
|
|
82
150
|
{% endfor %}
|
|
83
151
|
</div>
|
|
84
152
|
{% endif %}
|
|
153
|
+
|
|
154
|
+
<!-- Custom CSS -->
|
|
155
|
+
{% if grouped_settings.custom_css %}
|
|
156
|
+
<div class="customize-section">
|
|
157
|
+
<h3>カスタムCSS</h3>
|
|
158
|
+
{% for setting in grouped_settings.custom_css %}
|
|
159
|
+
<div class="customize-field">
|
|
160
|
+
<label for="{{ setting.id }}">{{ setting.label }}</label>
|
|
161
|
+
{% if setting.description %}
|
|
162
|
+
<p class="field-description">{{ setting.description }}</p>
|
|
163
|
+
{% endif %}
|
|
164
|
+
<textarea id="{{ setting.id }}"
|
|
165
|
+
name="{{ setting.id }}"
|
|
166
|
+
data-default="{{ setting.default }}"
|
|
167
|
+
class="customize-input code-input"
|
|
168
|
+
rows="10"
|
|
169
|
+
placeholder="/* CSSを入力 */ .my-class { color: red; }">{{ setting.value }}</textarea>
|
|
170
|
+
</div>
|
|
171
|
+
{% endfor %}
|
|
172
|
+
</div>
|
|
173
|
+
{% endif %}
|
|
85
174
|
</div>
|
|
86
175
|
|
|
87
176
|
<div class="customize-preview">
|
|
@@ -191,6 +280,66 @@
|
|
|
191
280
|
font-family: monospace;
|
|
192
281
|
}
|
|
193
282
|
|
|
283
|
+
.field-description {
|
|
284
|
+
font-size: 0.75rem;
|
|
285
|
+
color: var(--text-muted);
|
|
286
|
+
margin-bottom: 0.5rem;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.code-input {
|
|
290
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
291
|
+
font-size: 0.8125rem;
|
|
292
|
+
line-height: 1.5;
|
|
293
|
+
resize: vertical;
|
|
294
|
+
min-height: 150px;
|
|
295
|
+
background: #1e1e1e;
|
|
296
|
+
color: #d4d4d4;
|
|
297
|
+
padding: 0.75rem;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.image-input-wrapper {
|
|
301
|
+
display: flex;
|
|
302
|
+
flex-direction: column;
|
|
303
|
+
gap: 0.5rem;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.image-preview {
|
|
307
|
+
width: 100%;
|
|
308
|
+
height: 80px;
|
|
309
|
+
border: 2px dashed var(--border);
|
|
310
|
+
border-radius: 0.375rem;
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
justify-content: center;
|
|
314
|
+
background: var(--bg);
|
|
315
|
+
overflow: hidden;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.image-preview img {
|
|
319
|
+
max-width: 100%;
|
|
320
|
+
max-height: 100%;
|
|
321
|
+
object-fit: contain;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.image-preview .no-image {
|
|
325
|
+
color: var(--text-muted);
|
|
326
|
+
font-size: 0.75rem;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.image-url-input {
|
|
330
|
+
font-size: 0.8125rem;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.image-actions {
|
|
334
|
+
display: flex;
|
|
335
|
+
gap: 0.5rem;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.btn-sm {
|
|
339
|
+
padding: 0.25rem 0.5rem;
|
|
340
|
+
font-size: 0.75rem;
|
|
341
|
+
}
|
|
342
|
+
|
|
194
343
|
.customize-preview {
|
|
195
344
|
background: var(--card);
|
|
196
345
|
border: 1px solid var(--border);
|
|
@@ -360,8 +509,36 @@
|
|
|
360
509
|
if (!input.classList.contains('color-input')) {
|
|
361
510
|
input.addEventListener('input', debouncedUpdate);
|
|
362
511
|
}
|
|
512
|
+
// Add image preview update for image-url-input
|
|
513
|
+
if (input.classList.contains('image-url-input')) {
|
|
514
|
+
input.addEventListener('input', () => {
|
|
515
|
+
updateImagePreview(input.id, input.value);
|
|
516
|
+
});
|
|
517
|
+
}
|
|
363
518
|
});
|
|
364
519
|
|
|
520
|
+
// Update image preview
|
|
521
|
+
function updateImagePreview(inputId, url) {
|
|
522
|
+
const previewEl = document.getElementById(inputId + '_preview');
|
|
523
|
+
if (!previewEl) return;
|
|
524
|
+
|
|
525
|
+
if (url && url.trim()) {
|
|
526
|
+
previewEl.innerHTML = `<img src="${url}" alt="Preview" onerror="this.parentElement.innerHTML='<span class=\\'no-image\\'>読み込みエラー</span>'">`;
|
|
527
|
+
} else {
|
|
528
|
+
previewEl.innerHTML = '<span class="no-image">画像未設定</span>';
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
// Clear image input (global function for onclick)
|
|
533
|
+
window.clearImageInput = function(inputId) {
|
|
534
|
+
const input = document.getElementById(inputId);
|
|
535
|
+
if (input) {
|
|
536
|
+
input.value = '';
|
|
537
|
+
updateImagePreview(inputId, '');
|
|
538
|
+
debouncedUpdate();
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
|
|
365
542
|
// Save button
|
|
366
543
|
saveBtn.addEventListener('click', async () => {
|
|
367
544
|
const values = getValues();
|
|
@@ -402,15 +579,18 @@
|
|
|
402
579
|
if (!confirm('カスタマイズをデフォルトに戻しますか?')) return;
|
|
403
580
|
|
|
404
581
|
inputs.forEach(input => {
|
|
405
|
-
const defaultValue = input.dataset.default;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
582
|
+
const defaultValue = input.dataset.default || '';
|
|
583
|
+
input.value = defaultValue;
|
|
584
|
+
|
|
585
|
+
// Sync color text input
|
|
586
|
+
if (input.classList.contains('color-input')) {
|
|
587
|
+
const textInput = document.getElementById(input.id + '_text');
|
|
588
|
+
if (textInput) textInput.value = defaultValue;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
// Update image preview
|
|
592
|
+
if (input.classList.contains('image-url-input')) {
|
|
593
|
+
updateImagePreview(input.id, defaultValue);
|
|
414
594
|
}
|
|
415
595
|
});
|
|
416
596
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: focomy
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.118
|
|
4
4
|
Summary: The Most Beautiful CMS - A metadata-driven, zero-duplicate-code content management system
|
|
5
5
|
Project-URL: Homepage, https://github.com/focomy/focomy
|
|
6
6
|
Project-URL: Documentation, https://focomy.dev/docs
|
|
@@ -124,7 +124,7 @@ core/services/seo.py,sha256=qFKKnAzZ2CspWzlHHxvfKx4JBVgNhPWxCSn-adX-2z4,15658
|
|
|
124
124
|
core/services/settings.py,sha256=oZJx1HgFNeSicagtURXHbqq0_O3yPwvcwosuqDmZ13c,8822
|
|
125
125
|
core/services/spam_filter.py,sha256=2O8YWDlZoCr7MhGzsEsx6AKm2SgBP3-kxsXaETVd-0A,11314
|
|
126
126
|
core/services/storage.py,sha256=gaaVf594Ck-zkZMtdt--YcIMvWgPBs7ZGPY0FRIVIzQ,8807
|
|
127
|
-
core/services/theme.py,sha256
|
|
127
|
+
core/services/theme.py,sha256=4_X8WuemsaONHqy1h4agCI5gZAu7tcIA9sWVr6_ZRbE,52982
|
|
128
128
|
core/services/theme_inheritance.py,sha256=v4AT_VmVLQ0o3O0bO1S9qGZpnGX5d41JPrID1lmAxZI,9418
|
|
129
129
|
core/services/thumbnail.py,sha256=ey1Gxl5sXr-u9GoiLe6cr9Mu6ez2kjkDrWWcQWD-Rnw,6726
|
|
130
130
|
core/services/update.py,sha256=8me-Gy2Esi5HeTX1PdFI0U4vVMqKkeBHzc_SpaGuJ5g,9281
|
|
@@ -152,7 +152,7 @@ core/services/wordpress_import/wxr_parser.py,sha256=GrfiMoSj75hp3beHx9aLe-lxXtoW
|
|
|
152
152
|
core/templates/admin/backup.html,sha256=Di93BRvmyxdvF-eOAMKTYFB7qubH1Fms7ppYbJ3YHiA,3165
|
|
153
153
|
core/templates/admin/base.html,sha256=yWQNumbtcLIE0iffIoDB2xTF-9W5bt2mdsMYqA5QOa0,23926
|
|
154
154
|
core/templates/admin/comments.html,sha256=AEzCMYu1-EdFC1yUa9oIObtRS-U9RlMTe_5P3O5alb8,10012
|
|
155
|
-
core/templates/admin/customize.html,sha256=
|
|
155
|
+
core/templates/admin/customize.html,sha256=UohKyxBDmKhtbOiipyRkFJlrD_5u0JIc8b7--U5EuUk,18631
|
|
156
156
|
core/templates/admin/dashboard.html,sha256=WzURfANu1k9AIjdP82fwJE1o3sRhNVr77iUCRfUoBm8,3439
|
|
157
157
|
core/templates/admin/entity_form.html,sha256=lX2l7iS6psm29wh1tHcK-4tArhG65gJxmCDInUSqV0c,61161
|
|
158
158
|
core/templates/admin/entity_list.html,sha256=DxaM2c_1UGdPpQHTIe7LrFxjC11f8hXDy-9C-T8LO6o,7966
|
|
@@ -179,15 +179,17 @@ themes/blog/theme.yaml,sha256=ic_WJaBg9fKMOTFf8-E-wP3GODjdizoj9-CepSzCBFE,2207
|
|
|
179
179
|
themes/blog/templates/base.html,sha256=kD93PGSKCMEOEVieuPwHGmGlIsUGDm84O1n9E1lOUOA,11705
|
|
180
180
|
themes/blog/templates/home.html,sha256=TqCgSP9Uz_ALyc59jbdZnMtJrerey7zd9_yl0jUjnVI,1911
|
|
181
181
|
themes/blog/templates/post.html,sha256=-h4DwJuMTAAJmoNkg0NJDqe6StzuEfJtfRDDZ5L9MmI,6229
|
|
182
|
+
themes/corporate/customizations.json,sha256=UgAoQniAcTcUm5rPu0uoSdBZ2xvN5SpuoMt9Rh8hU9E,820
|
|
182
183
|
themes/corporate/theme.yaml,sha256=jPVAkwmKr6KniZ0uBw6PJNkZLdbOF7mq6j_drf3IGPI,2503
|
|
183
184
|
themes/corporate/templates/base.html,sha256=qN1bwJjc3Q7j7rCs_Y-Tg76KVPllENCWYC91o6t6hUQ,13976
|
|
184
185
|
themes/corporate/templates/home.html,sha256=PrbLkEup19Eg-lYS9QpcSJyOTycmv0mhaoKRJqy_eFY,3216
|
|
185
186
|
themes/corporate/templates/page.html,sha256=p7ESVUvpRU8XoUfa7EpWPj6vNEdN2VVFWW2xZdCvfIQ,1868
|
|
187
|
+
themes/default/customizations.json,sha256=m2AoocQ9D0_3DBWFXoJQj7st-KQrHAb8UbisndeEqFI,713
|
|
186
188
|
themes/default/theme.yaml,sha256=tgcUP1YFptyXVNL2a8DBiPrP7zTjWNH62Cy9D_w6Chk,1872
|
|
187
189
|
themes/default/templates/404.html,sha256=6pYUz7zg5hx3nikgxiZWSkwYnv2nENCSV3KjdIF0_lE,1105
|
|
188
190
|
themes/default/templates/500.html,sha256=CtU3gEsHsxAh-vbcnx5McH8V8ruKtdP8usj8hPuu8zY,1174
|
|
189
191
|
themes/default/templates/archive.html,sha256=ZHBxPYewvc2TbrsB745LYO2uM5SJbTFQQR6savWUzYg,2385
|
|
190
|
-
themes/default/templates/base.html,sha256=
|
|
192
|
+
themes/default/templates/base.html,sha256=XFrqJ4g9OF2xz7pKqV6nYtT4q417I86ies-xEcMMwfI,12551
|
|
191
193
|
themes/default/templates/category.html,sha256=k-yN0vFoOpgxgg6DlGin5X4IzVDBG9xRZ0FOD7OJtU8,3061
|
|
192
194
|
themes/default/templates/channel.html,sha256=1i1zkAWmvpcqyoEfaeQNDc2zrMao2xSXCkjRuwzxOUU,3213
|
|
193
195
|
themes/default/templates/form.html,sha256=KFrFS6qxHELPrpRB0B_BNU-uqM3k11oMYwd6oY3qoPQ,8685
|
|
@@ -202,8 +204,8 @@ themes/minimal/templates/base.html,sha256=LFkx-XLDMGH7oFHHa0e6KPB0DJITOBvr6GtPkD
|
|
|
202
204
|
themes/minimal/templates/home.html,sha256=ygYQgYj1OGCiKwmfsxwkPselVKT8vDH3jLLbfphpqKI,1577
|
|
203
205
|
themes/minimal/templates/page.html,sha256=7Xcoq-ryaxlp913H2S1ishrAro2wsqqGmvsm1osXxd4,389
|
|
204
206
|
themes/minimal/templates/post.html,sha256=FkTRHci8HNIIi3DU6Mb3oL0aDisGyDcsT_IUDwHmrvo,1387
|
|
205
|
-
focomy-0.1.
|
|
206
|
-
focomy-0.1.
|
|
207
|
-
focomy-0.1.
|
|
208
|
-
focomy-0.1.
|
|
209
|
-
focomy-0.1.
|
|
207
|
+
focomy-0.1.118.dist-info/METADATA,sha256=DojllWfZ47MT4qsnqsqArF74zM7XIzFkAfa2rVetQDM,7042
|
|
208
|
+
focomy-0.1.118.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
209
|
+
focomy-0.1.118.dist-info/entry_points.txt,sha256=_rF-wxGI1axY7gox3DBsTLHq-JrFKkMCjA65a6b_oqE,41
|
|
210
|
+
focomy-0.1.118.dist-info/licenses/LICENSE,sha256=z9Z7gN7NNV7zYCaY-Knh3bv8RBCu89VueYtAlN_-lro,1063
|
|
211
|
+
focomy-0.1.118.dist-info/RECORD,,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"site_logo": "",
|
|
3
|
+
"site_icon": "",
|
|
4
|
+
"header_image": "",
|
|
5
|
+
"background_image": "",
|
|
6
|
+
"color_primary": "#0066cc",
|
|
7
|
+
"color_primary-hover": "#0052a3",
|
|
8
|
+
"color_secondary": "#ff6b35",
|
|
9
|
+
"color_secondary-hover": "#e55a2b",
|
|
10
|
+
"color_background": "#ffffff",
|
|
11
|
+
"color_surface": "#f8f9fa",
|
|
12
|
+
"color_text": "#212529",
|
|
13
|
+
"color_text-muted": "#6c757d",
|
|
14
|
+
"color_border": "#dee2e6",
|
|
15
|
+
"color_success": "#28a745",
|
|
16
|
+
"color_error": "#dc3545",
|
|
17
|
+
"color_warning": "#ffc107",
|
|
18
|
+
"font_sans": "'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
19
|
+
"font_serif": "'Noto Serif JP', Georgia, serif",
|
|
20
|
+
"font_mono": "ui-monospace, monospace",
|
|
21
|
+
"space_xs": "0.25rem",
|
|
22
|
+
"space_sm": "0.5rem",
|
|
23
|
+
"space_md": "1rem",
|
|
24
|
+
"space_lg": "1.5rem",
|
|
25
|
+
"space_xl": "2rem",
|
|
26
|
+
"space_2xl": "3rem",
|
|
27
|
+
"space_3xl": "4rem",
|
|
28
|
+
"custom_css": ""
|
|
29
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color_primary": "#2563eb",
|
|
3
|
+
"color_primary-hover": "#1d4ed8",
|
|
4
|
+
"color_background": "#ffffff",
|
|
5
|
+
"color_surface": "#f8fafc",
|
|
6
|
+
"color_text": "#1e293b",
|
|
7
|
+
"color_text-muted": "#64748b",
|
|
8
|
+
"color_border": "#e2e8f0",
|
|
9
|
+
"color_success": "#22c55e",
|
|
10
|
+
"color_error": "#ef4444",
|
|
11
|
+
"color_warning": "#f59e0b",
|
|
12
|
+
"font_sans": "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
|
|
13
|
+
"font_serif": "Georgia, 'Times New Roman', serif",
|
|
14
|
+
"font_mono": "ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
15
|
+
"space_xs": "0.25rem",
|
|
16
|
+
"space_sm": "0.5rem",
|
|
17
|
+
"space_md": "1rem",
|
|
18
|
+
"space_lg": "1.5rem",
|
|
19
|
+
"space_xl": "2rem",
|
|
20
|
+
"space_2xl": "3rem",
|
|
21
|
+
"custom_css": "/* Test CSS */\n.test-class { color: red; }"
|
|
22
|
+
}
|
|
@@ -37,9 +37,14 @@
|
|
|
37
37
|
{% endif %}
|
|
38
38
|
|
|
39
39
|
<!-- Favicon -->
|
|
40
|
+
{% if customizations and customizations.site_icon %}
|
|
41
|
+
<link rel="icon" href="{{ customizations.site_icon }}" type="image/png">
|
|
42
|
+
<link rel="apple-touch-icon" href="{{ customizations.site_icon }}">
|
|
43
|
+
{% else %}
|
|
40
44
|
<link rel="icon" href="/static/favicon.ico" sizes="32x32">
|
|
41
45
|
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
|
|
42
46
|
<link rel="apple-touch-icon" href="/static/apple-touch-icon.png">
|
|
47
|
+
{% endif %}
|
|
43
48
|
<link rel="manifest" href="/manifest.json">
|
|
44
49
|
|
|
45
50
|
<!-- Preload critical resources -->
|
|
@@ -56,6 +61,12 @@
|
|
|
56
61
|
<link rel="stylesheet" href="/css/theme.css">
|
|
57
62
|
|
|
58
63
|
<style>
|
|
64
|
+
/* Site logo image */
|
|
65
|
+
.site-logo-img {
|
|
66
|
+
max-height: 50px;
|
|
67
|
+
width: auto;
|
|
68
|
+
vertical-align: middle;
|
|
69
|
+
}
|
|
59
70
|
|
|
60
71
|
/* Dropdown menu styles */
|
|
61
72
|
.nav-item { position: relative; display: inline-block; }
|
|
@@ -218,7 +229,13 @@
|
|
|
218
229
|
<header class="site-header">
|
|
219
230
|
{% block header %}
|
|
220
231
|
<div class="container">
|
|
221
|
-
<a href="/" class="site-logo">
|
|
232
|
+
<a href="/" class="site-logo">
|
|
233
|
+
{% if customizations and customizations.site_logo %}
|
|
234
|
+
<img src="{{ customizations.site_logo }}" alt="{{ site_name }}" class="site-logo-img">
|
|
235
|
+
{% else %}
|
|
236
|
+
{{ site_name }}
|
|
237
|
+
{% endif %}
|
|
238
|
+
</a>
|
|
222
239
|
<nav class="site-nav">
|
|
223
240
|
{% block nav %}
|
|
224
241
|
{% if menus and menus.header %}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|