wiki-plugin-linkitylink 0.0.8 → 0.0.9
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.
- package/client/linkitylink.js +14 -9
- package/package.json +1 -1
package/client/linkitylink.js
CHANGED
|
@@ -30,26 +30,31 @@
|
|
|
30
30
|
function renderVersionStatus(data) {
|
|
31
31
|
const { installed, published, updateAvailable } = data;
|
|
32
32
|
|
|
33
|
-
//
|
|
34
|
-
|
|
33
|
+
// Plugmatic-style colors
|
|
34
|
+
const color = {
|
|
35
|
+
gray: '#ccc',
|
|
36
|
+
red: '#f55',
|
|
37
|
+
yellow: '#fb0',
|
|
38
|
+
green: '#0e0',
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Determine status color (matching plugmatic)
|
|
42
|
+
let statusColor, statusText;
|
|
35
43
|
if (!installed) {
|
|
36
|
-
statusColor =
|
|
37
|
-
statusIcon = '🔴';
|
|
44
|
+
statusColor = color.red;
|
|
38
45
|
statusText = 'Not installed';
|
|
39
46
|
} else if (updateAvailable) {
|
|
40
|
-
statusColor =
|
|
41
|
-
statusIcon = '🟡';
|
|
47
|
+
statusColor = color.yellow;
|
|
42
48
|
statusText = 'Update available';
|
|
43
49
|
} else {
|
|
44
|
-
statusColor =
|
|
45
|
-
statusIcon = '🟢';
|
|
50
|
+
statusColor = color.green;
|
|
46
51
|
statusText = 'Up to date';
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
let html = `
|
|
50
55
|
<div style="border: 2px solid ${statusColor}; padding: 15px; border-radius: 8px; background-color: #fafafa;">
|
|
51
56
|
<h3 style="margin-top: 0;">
|
|
52
|
-
${
|
|
57
|
+
<span style="color: ${statusColor}; font-size: 20px;">◉</span> Linkitylink Service ${statusText}
|
|
53
58
|
</h3>
|
|
54
59
|
<table style="width: 100%; border-collapse: collapse;">
|
|
55
60
|
<tr>
|