@bbki.ng/site 2.0.1 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 2.0.3
4
+
5
+ ## 2.0.2
6
+
3
7
  ## 2.0.1
4
8
 
5
9
  ## 2.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,9 @@ export const LoginMenuItem = () => {
18
18
  if (sess?.user != null) {
19
19
  return (
20
20
  <>
21
- <ContextMenuLabel inset>{sess?.user?.email ?? ""}</ContextMenuLabel>
21
+ <ContextMenuLabel inset>
22
+ {sess?.user?.email ?? ""}
23
+ </ContextMenuLabel>
22
24
  <ContextMenuItem
23
25
  inset
24
26
  onClick={() => {
@@ -29,6 +31,15 @@ export const LoginMenuItem = () => {
29
31
  });
30
32
  }}
31
33
  >
34
+ {sess?.user?.user_metadata && (
35
+ <img
36
+ src={sess?.user?.user_metadata.avatar_url}
37
+ alt="avatar"
38
+ style={{ width: 16, height: 16 }}
39
+ className="rounded-full absolute left-2.5"
40
+ crossOrigin="anonymous"
41
+ />
42
+ )}
32
43
  logout
33
44
  </ContextMenuItem>
34
45
  </>
@@ -18,7 +18,26 @@ export const PluginsMenuItem = () => {
18
18
  }, []);
19
19
  return (
20
20
  <ContextMenuSub>
21
- <ContextMenuSubTrigger inset>Plugins</ContextMenuSubTrigger>
21
+ <ContextMenuSubTrigger inset>
22
+ <svg
23
+ xmlns="http://www.w3.org/2000/svg"
24
+ width="16"
25
+ height="16"
26
+ viewBox="0 0 24 24"
27
+ fill="none"
28
+ stroke="currentColor"
29
+ strokeWidth="2"
30
+ strokeLinecap="round"
31
+ strokeLinejoin="round"
32
+ className="lucide lucide-plug rotate-90 absolute left-2.5"
33
+ >
34
+ <path d="M12 22v-5"></path>
35
+ <path d="M9 8V2"></path>
36
+ <path d="M15 8V2"></path>
37
+ <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"></path>
38
+ </svg>
39
+ Plugins
40
+ </ContextMenuSubTrigger>
22
41
  <ContextMenuSubContent className="w-48">
23
42
  {plugins.map((plugin) => (
24
43
  <PluginMenuItem