Skip to content

Commit 82d05f7

Browse files
Merge pull request #39 from HORNET-Storage/refactor/rename-subscribers-component
Refactor/rename subscribers component
2 parents 69d8d3d + 54748f1 commit 82d05f7

File tree

149 files changed

+173711
-22350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+173711
-22350
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
REACT_APP_BASE_URL=http://localhost:9002
2-
REACT_APP_WALLET_BASE_URL=http://localhost:9003 # New wallet base URL
2+
REACT_APP_WALLET_BASE_URL=http://localhost:9003
33
REACT_APP_ASSETS_BUCKET=http://localhost
44
REACT_APP_DEMO_MODE=false
55

.husky/pre-commit

100644100755
File mode changed.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

.yarn/releases/yarn-1.22.19.cjs

Lines changed: 147529 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-3.1.1.cjs

Lines changed: 0 additions & 768 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1+
enableGlobalCache: false
2+
13
nodeLinker: node-modules
4+
5+
packageExtensions:
6+
react-scripts@*:
7+
dependencies:
8+
typescript: 4.5.5
9+
react@*:
10+
peerDependencies:
11+
react-dom: "*"
12+
13+
yarnPath: .yarn/releases/yarn-1.22.19.cjs

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"styled-components": "^5.3.0",
6767
"typeface-lato": "^1.1.13",
6868
"typeface-montserrat": "^1.1.13",
69-
"typescript": "^5.4.5",
69+
"typescript": "5.1.6",
7070
"uuid": "^8.3.2",
7171
"web-vitals": "^1.0.1",
7272
"workbox-background-sync": "^5.1.3",
@@ -99,6 +99,7 @@
9999
"not IE 11"
100100
],
101101
"devDependencies": {
102+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
102103
"@types/country-list": "^2.1.0",
103104
"@types/leaflet": "^1.7.9",
104105
"@types/react": "^18.0.28",
@@ -136,7 +137,7 @@
136137
"@types/react": "^18.0.28",
137138
"react-error-overlay": "6.0.9"
138139
},
139-
"packageManager": "yarn@3.1.1",
140+
"packageManager": "yarn@1.22.19",
140141
"keywords": [
141142
"lightence",
142143
"admin",

sidebar-changes.patch

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
diff --git a/src/components/layouts/main/sider/sidebarNavigation.tsx b/src/components/layouts/main/sider/sidebarNavigation.tsx
2+
index fa18628..f2161cd 100644
3+
--- a/src/components/layouts/main/sider/sidebarNavigation.tsx
4+
+++ b/src/components/layouts/main/sider/sidebarNavigation.tsx
5+
@@ -1,5 +1,5 @@
6+
import React, { useMemo } from 'react';
7+
-import { DashboardOutlined, TableOutlined } from '@ant-design/icons';
8+
+import { DashboardOutlined, TableOutlined, StopOutlined, FlagOutlined } from '@ant-design/icons';
9+
import { ReactComponent as NestIcon } from '@app/assets/icons/hive.svg';
10+
import { ReactComponent as BtcIcon } from '@app/assets/icons/btc.svg';
11+
import { ReactComponent as StatsIcon } from '@app/assets/icons/stats.svg';
12+
@@ -20,8 +20,8 @@ export const useSidebarNavigation = (): SidebarNavigationItem[] => {
13+
return useMemo(() => {
14+
const items: SidebarNavigationItem[] = [
15+
{
16+
title: 'common.relay-dashboard',
17+
- key: 'relay-dashboard',
18+
+ key: 'relay-dashboard',
19+
url: '/',
20+
icon: <NestIcon />,
21+
},
22+
@@ -31,6 +31,12 @@ export const useSidebarNavigation = (): SidebarNavigationItem[] => {
23+
url: '/relay-settings',
24+
icon: <StorageSettingsIcon />,
25+
},
26+
+ {
27+
+ title: 'Access Control',
28+
+ key: 'blocked-pubkeys',
29+
+ url: '/blocked-pubkeys',
30+
+ icon: <StopOutlined />,
31+
+ },
32+
{
33+
title: 'Nostr Statistics',
34+
key: 'dataTables',

sidebar-clean.patch

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- a/src/components/layouts/main/sider/sidebarNavigation.tsx
2+
+++ b/src/components/layouts/main/sider/sidebarNavigation.tsx
3+
@@ -1,5 +1,5 @@
4+
import React, { useMemo } from 'react';
5+
-import { DashboardOutlined, TableOutlined } from '@ant-design/icons';
6+
+import { DashboardOutlined, TableOutlined, StopOutlined, FlagOutlined } from '@ant-design/icons';
7+
import { ReactComponent as NestIcon } from '@app/assets/icons/hive.svg';
8+
import { ReactComponent as BtcIcon } from '@app/assets/icons/btc.svg';
9+
import { ReactComponent as StatsIcon } from '@app/assets/icons/stats.svg';
10+
@@ -31,6 +31,12 @@ export const useSidebarNavigation = (): SidebarNavigationItem[] => {
11+
url: '/relay-settings',
12+
icon: <StorageSettingsIcon />,
13+
},
14+
+ {
15+
+ title: 'Access Control',
16+
+ key: 'blocked-pubkeys',
17+
+ url: '/blocked-pubkeys',
18+
+ icon: <StopOutlined />,
19+
+ },
20+
{
21+
title: 'Nostr Statistics',
22+
key: 'dataTables',

src/api/activity.api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ export const getUserActivities = (handleLogout: () => void): Promise<WalletTrans
4141
}
4242
// Assuming your backend response matches the WalletTransaction interface
4343
// eslint-disable-next-line
44+
console.log("User Activity Data: ", data)
4445
return data.map((item: any) => ({
4546
id: item.ID,
46-
witness_tx_id: item.WitnessTxId,
47+
witness_tx_id: item.Address,
4748
date: new Date(item.Date).getTime(),
4849
output: item.Output,
4950
value: item.Value,

0 commit comments

Comments
 (0)