@axium/server 0.0.3 → 0.0.5
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 +7 -1
- package/web/index.ts +2 -0
- package/web/lib/Icon.svelte +4 -2
- package/web/routes/+page.svelte +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"main": "dist/index.js",
|
|
19
19
|
"types": "dist/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": "./dist/index.js",
|
|
22
|
+
"./*": "./dist/*",
|
|
23
|
+
"./web": "./web/index.js",
|
|
24
|
+
"./web/*": "./web/*"
|
|
25
|
+
},
|
|
20
26
|
"files": [
|
|
21
27
|
"dist",
|
|
22
28
|
"web"
|
package/web/index.ts
ADDED
package/web/lib/Icon.svelte
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { onMount } from 'svelte';
|
|
3
3
|
|
|
4
|
-
const { id
|
|
4
|
+
const { id } = $props();
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const withStyle = id.includes('/') ? id : 'solid/' + id;
|
|
7
|
+
const href = `https://site-assets.fontawesome.com/releases/v6.7.2/svgs/${withStyle}.svg`;
|
|
7
8
|
|
|
8
9
|
let content = $state('');
|
|
9
10
|
|
|
@@ -38,5 +39,6 @@
|
|
|
38
39
|
height: 1em;
|
|
39
40
|
display: inline-block;
|
|
40
41
|
fill: #bbb;
|
|
42
|
+
font-size: var(--size, auto);
|
|
41
43
|
}
|
|
42
44
|
</style>
|
package/web/routes/+page.svelte
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<a href="/edit/email"><Icon id="chevron-right" /></a>
|
|
28
28
|
</div>
|
|
29
29
|
<div>
|
|
30
|
-
<p>User ID <dfn title="This is your UUID."><Icon id="circle-info"
|
|
30
|
+
<p>User ID <dfn title="This is your UUID."><Icon id="regular/circle-info" /></dfn></p>
|
|
31
31
|
<p>{user.id}</p>
|
|
32
32
|
</div>
|
|
33
33
|
<a id="signout" href="/auth/signout"><button>Sign out</button></a>
|