@axium/server 0.33.2 → 0.33.3
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 +2 -2
- package/routes/admin/+layout.svelte +4 -91
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/server",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.3",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"clean": "rm -rf build .svelte-kit node_modules/{.vite,.vite-temp}"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@axium/client": ">=0.12.
|
|
50
|
+
"@axium/client": ">=0.12.3",
|
|
51
51
|
"@axium/core": ">=0.18.0",
|
|
52
52
|
"kysely": "^0.28.0",
|
|
53
53
|
"utilium": "^2.6.0",
|
|
@@ -1,95 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import
|
|
3
|
-
import { capitalize } from 'utilium';
|
|
4
|
-
|
|
2
|
+
import SidebarLayout from '@axium/client/components/SidebarLayout';
|
|
5
3
|
let { children, data } = $props();
|
|
6
4
|
</script>
|
|
7
5
|
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<a {href} class={['item', 'icon-text', active && 'active']}><Icon {i} /> <span class="sidebar-text">{capitalize(name)}</span></a
|
|
12
|
-
>
|
|
13
|
-
{/each}
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div id="admin-content">
|
|
17
|
-
{@render children()}
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<style>
|
|
22
|
-
#admin-container {
|
|
23
|
-
display: grid;
|
|
24
|
-
grid-template-columns: 15em 1fr;
|
|
25
|
-
height: 100%;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
#admin-sidebar {
|
|
29
|
-
grid-column: 1;
|
|
30
|
-
width: 100%;
|
|
31
|
-
display: inline-flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
gap: 0.5em;
|
|
34
|
-
background-color: var(--bg-alt);
|
|
35
|
-
padding: 1em;
|
|
36
|
-
padding-left: 0;
|
|
37
|
-
border-radius: 0 1em 1em 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.item {
|
|
41
|
-
padding: 0.3em 0.5em;
|
|
42
|
-
border-radius: 0.25em 1em 1em 0.25em;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.item:hover {
|
|
46
|
-
background-color: var(--bg-strong);
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.item.active {
|
|
51
|
-
background-color: var(--bg-strong);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
#admin-content {
|
|
55
|
-
grid-column: 2;
|
|
56
|
-
padding: 1em;
|
|
57
|
-
overflow-x: hidden;
|
|
58
|
-
overflow-y: scroll;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@media (width < 700px) {
|
|
62
|
-
#admin-container {
|
|
63
|
-
grid-template-columns: 1fr;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
#admin-content {
|
|
67
|
-
padding-bottom: 4em;
|
|
68
|
-
grid-column: 1;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
#admin-sidebar {
|
|
72
|
-
position: fixed;
|
|
73
|
-
grid-column: unset;
|
|
74
|
-
inset: auto 0 0;
|
|
75
|
-
border-radius: 1em;
|
|
76
|
-
display: flex;
|
|
77
|
-
flex-direction: row;
|
|
78
|
-
justify-content: space-around;
|
|
79
|
-
gap: 1em;
|
|
80
|
-
padding: 0.5em;
|
|
81
|
-
z-index: 6;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.sidebar-text {
|
|
85
|
-
display: none;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.item {
|
|
89
|
-
flex: 1 1 0;
|
|
90
|
-
border-radius: 1em;
|
|
91
|
-
padding: 1em;
|
|
92
|
-
justify-content: center;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
</style>
|
|
6
|
+
<SidebarLayout tabs={data.tabs}>
|
|
7
|
+
{@render children()}
|
|
8
|
+
</SidebarLayout>
|