@axium/server 0.28.0 → 0.28.2
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/package.json
CHANGED
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
display: inline-flex;
|
|
31
31
|
flex-direction: column;
|
|
32
32
|
gap: 0.5em;
|
|
33
|
-
|
|
33
|
+
background-color: var(--bg-alt);
|
|
34
|
+
padding: 1em;
|
|
35
|
+
padding-left: 0;
|
|
36
|
+
border-radius: 0 1em 1em 0;
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
.item {
|
|
@@ -39,12 +42,12 @@
|
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
.item:hover {
|
|
42
|
-
background-color: var(--bg-
|
|
45
|
+
background-color: var(--bg-strong);
|
|
43
46
|
cursor: pointer;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
.item.active {
|
|
47
|
-
background-color: var(--bg-
|
|
50
|
+
background-color: var(--bg-strong);
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
#admin-content {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
<pre>{JSON.stringify(data.config, null, 4)}</pre>
|
|
12
12
|
|
|
13
|
-
<h2>Loaded Files</h2>
|
|
13
|
+
<h2 id="files">Loaded Files</h2>
|
|
14
14
|
|
|
15
15
|
{#each Object.entries(data.files) as [path, config]}
|
|
16
16
|
<details>
|
|
17
17
|
<summary>{path}</summary>
|
|
18
|
-
<pre>{JSON.stringify(config, null, 4)}</pre>
|
|
18
|
+
<pre id={path}>{JSON.stringify(config, null, 4)}</pre>
|
|
19
19
|
</details>
|
|
20
20
|
{/each}
|
|
21
21
|
|
|
@@ -9,19 +9,53 @@
|
|
|
9
9
|
<h2>Plugins</h2>
|
|
10
10
|
|
|
11
11
|
{#each data.plugins as plugin}
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
<div class="plugin">
|
|
13
|
+
<h3>{plugin.name}<span class="version">{plugin.version}</span></h3>
|
|
14
|
+
<p>
|
|
15
|
+
<strong>Loaded from</strong>
|
|
16
|
+
{#if plugin.path.endsWith('/package.json')}
|
|
17
|
+
<span class="path plugin-path">{plugin.path.slice(0, -13)}</span>
|
|
18
|
+
{:else}
|
|
19
|
+
<span class="path">{plugin.path}</span>
|
|
20
|
+
{/if}
|
|
21
|
+
{#if plugin._loadedBy}
|
|
22
|
+
by
|
|
23
|
+
<a class="path" href="/admin/config#{plugin._loadedBy}">{plugin._loadedBy}</a>
|
|
24
|
+
{/if}
|
|
25
|
+
</p>
|
|
26
|
+
<p><strong>Author:</strong> {plugin.author}</p>
|
|
27
|
+
<p class="apps">
|
|
28
|
+
<strong>Provided apps:</strong>
|
|
29
|
+
{#if plugin.apps?.length}
|
|
30
|
+
{#each plugin.apps as app, i}
|
|
31
|
+
<a href="/{app.id}">{app.name}</a>{i != plugin.apps.length - 1 ? ', ' : ''}
|
|
32
|
+
{/each}
|
|
33
|
+
{:else}<i>None</i>{/if}
|
|
34
|
+
</p>
|
|
35
|
+
<p>{plugin.description}</p>
|
|
36
|
+
</div>
|
|
25
37
|
{:else}
|
|
26
38
|
<i>No plugins loaded.</i>
|
|
27
39
|
{/each}
|
|
40
|
+
|
|
41
|
+
<style>
|
|
42
|
+
.plugin {
|
|
43
|
+
border-radius: 1em;
|
|
44
|
+
padding: 1em;
|
|
45
|
+
background-color: var(--bg-menu);
|
|
46
|
+
margin-bottom: 1em;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.path {
|
|
50
|
+
font-family: monospace;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.plugin-path::after {
|
|
54
|
+
content: '/package.json';
|
|
55
|
+
color: #888;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.apps a {
|
|
59
|
+
text-decoration: underline;
|
|
60
|
+
}
|
|
61
|
+
</style>
|