Skip to content

Commit 5680a88

Browse files
committed
Twig & css fixes
1 parent a931ab2 commit 5680a88

32 files changed

+359
-296
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ composer.lock
66
node_modules
77
package-lock.json
88
/config.php
9-
/.phpunit.result.cache
9+
.phpunit.result.cache
10+
.ide_helper.php

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
<p align="center"><img src=".github/img/logo.svg" width="400" alt="Logo"></p>
22
<p align="center">Web GUI for managing Redis, Memcached, APCu, OPCache, and Realpath with data management.</p>
3-
<p align="center"><img alt="Preview" src=".github/img/preview.png" width="500px"></p>
3+
<p align="center">
4+
<picture>
5+
<source media="(prefers-color-scheme: dark)" srcset=".github/img/preview-dark.png">
6+
<img alt="Preview" src=".github/img/preview.png" width="500px">
7+
</picture>
8+
</p>
49

510
![Visitor Badge](https://visitor-badge.laobi.icu/badge?page_id=RobiNN1.phpCacheAdmin)
611
![Docker Pulls](https://img.shields.io/docker/pulls/robinn/phpcacheadmin)
712

813
## Features
914

1015
### General
16+
1117
- Clean, responsive interface with a **Dark Mode**.
1218
- Switch between multiple configured servers for Redis, Memcached.
1319
- Back up and restore your data.
@@ -16,6 +22,7 @@
1622
- **Docker ready**.
1723

1824
### Redis
25+
1926
- Works with both **phpredis** and **Predis** clients.
2027
- View, add, edit, and delete keys. Supports all Redis data types.
2128
- **Cluster support**.
@@ -25,13 +32,15 @@
2532
- Supports both SCAN and KEYS commands for retrieving keys.
2633

2734
### Memcached
35+
2836
- Uses a custom client, so **no memcache(d) extension** is required.
2937
- View, add, edit, and delete keys.
3038
- Server Stats including uptime, memory usage, connections, and more.
3139
- Slabs & Items info.
3240
- Commands Stats.
3341

3442
### PHP Caches
43+
3544
- **APCu**:
3645
- View, edit, and delete user-cached entries.
3746
- View cache information and memory usage statistics.
@@ -51,7 +60,7 @@ To customize the configuration, do not edit `config.dist.php` directly, but copy
5160

5261
## Updating
5362

54-
Replace all files and delete the `tmp` folder (this folder contains compiled Twig templates and metrics DB files).
63+
Replace all files and delete the `/tmp/twig` folder (it contains compiled Twig templates).
5564

5665
## Environment variables
5766

@@ -132,7 +141,8 @@ services:
132141
133142
- PHP >= 8.2 (Use [v1 branch](https://github.com/RobiNN1/phpCacheAdmin/tree/v1.x) if you need support for >=7.4)
134143
- Redis server >= 4.0
135-
- Memcached server >= 1.4.31. SASL is not supported because there is no way to get the keys.
144+
- Memcached server >= 1.4.31. SASL is not supported because there is no way to get the keys
145+
- sqlite3 extension for metrics
136146
137147
> It is not necessary to have all dashboards enabled.
138148

assets/css/src.css

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,45 +35,19 @@
3535
color-scheme: dark;
3636
}
3737

38-
.json-colon,
39-
.json-bracket,
40-
.json-comma {
41-
@apply text-gray-900 dark:text-gray-400;
42-
}
43-
44-
.json-key {
45-
@apply text-emerald-500;
46-
}
47-
48-
.json-number {
49-
@apply text-violet-500;
50-
}
51-
52-
.json-string {
53-
@apply text-amber-500;
54-
}
55-
56-
.json-boolean {
57-
@apply text-blue-500;
58-
}
59-
60-
.json-null {
61-
@apply text-rose-500;
62-
}
63-
64-
.sblink {
38+
.dashboard-link {
6539
background-color: var(--link-bg);
6640
}
6741

68-
.sblink:hover {
42+
.dashboard-link:hover {
6943
background-color: var(--link-bg-hover);
7044
}
7145

72-
.sblink.active {
46+
.dashboard-link.active {
7347
box-shadow: 0 0 0 4px var(--link-active);
7448
}
7549

76-
.dark .sblink.active {
50+
.dark .dashboard-link.active {
7751
box-shadow: 0 0 0 4px var(--link-active-dark);
7852
}
7953

0 commit comments

Comments
 (0)