cleaned up filetree

This commit is contained in:
2024-06-10 23:49:40 -04:00
parent e25f783dd1
commit 83be5800ba
25 changed files with 376 additions and 116 deletions
+2
View File
@@ -9,6 +9,8 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@clerk/nextjs": "^5.1.4",
"@clerk/themes": "^2.1.9",
"@dnd-kit/core": "^6.1.0", "@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^8.0.0", "@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2", "@dnd-kit/utilities": "^3.2.2",
+189
View File
@@ -5,6 +5,12 @@ settings:
excludeLinksFromLockfile: false excludeLinksFromLockfile: false
dependencies: dependencies:
'@clerk/nextjs':
specifier: ^5.1.4
version: 5.1.4([email protected])([email protected])([email protected])
'@clerk/themes':
specifier: ^2.1.9
version: 2.1.9
'@dnd-kit/core': '@dnd-kit/core':
specifier: ^6.1.0 specifier: ^6.1.0
version: 6.1.0([email protected])([email protected]) version: 6.1.0([email protected])([email protected])
@@ -127,6 +133,91 @@ packages:
dependencies: dependencies:
regenerator-runtime: 0.14.1 regenerator-runtime: 0.14.1
/@clerk/[email protected]([email protected])([email protected]):
resolution: {integrity: sha512-P007QPL9Ls3bwiBtK3Pat85HcSiL8rhwh/X1wifIEBK6OGF8kez1gOpcvt5/SmoCEecGg8AhH11A2fOIZcwPgA==}
engines: {node: '>=18.17.0'}
dependencies:
'@clerk/shared': 2.2.2([email protected])([email protected])
'@clerk/types': 4.6.0
cookie: 0.5.0
snakecase-keys: 5.4.4
tslib: 2.4.1
transitivePeerDependencies:
- react
- react-dom
dev: false
/@clerk/[email protected]([email protected])([email protected]):
resolution: {integrity: sha512-1vd6mLHBJwaBx96ne/4HeI3W/ajt22gDrXuugEwVOe2lMauPQBaJq3jDttrNhErcKjMhamIMELeu8hhifpxNgA==}
engines: {node: '>=18.17.0'}
peerDependencies:
react: '>=18 || >=19.0.0-beta'
react-dom: '>=18 || >=19.0.0-beta'
dependencies:
'@clerk/shared': 2.2.2([email protected])([email protected])
'@clerk/types': 4.6.0
react: 18.2.0
react-dom: 18.2.0([email protected])
tslib: 2.4.1
dev: false
/@clerk/[email protected]([email protected])([email protected])([email protected]):
resolution: {integrity: sha512-hi8MGA3nQERinHw9qG95fGzpesuxv11prmKQhxiRMicE+wCB5SoKLtBc2JMXAMNrnZC5rM8V9JV7HDSRFVxTTg==}
engines: {node: '>=18.17.0'}
peerDependencies:
next: ^13.5.4 || ^14.0.3 || >=15.0.0-rc
react: '>=18 || >=19.0.0-beta'
react-dom: '>=18 || >=19.0.0-beta'
dependencies:
'@clerk/backend': 1.2.2([email protected])([email protected])
'@clerk/clerk-react': 5.2.3([email protected])([email protected])
'@clerk/shared': 2.2.2([email protected])([email protected])
'@clerk/types': 4.6.0
crypto-js: 4.2.0
next: 14.1.0([email protected])([email protected])
path-to-regexp: 6.2.2
react: 18.2.0
react-dom: 18.2.0([email protected])
tslib: 2.4.1
dev: false
/@clerk/[email protected]([email protected])([email protected]):
resolution: {integrity: sha512-ThbAXiK5drCabR2TtXSQVHXW0fNtO/RPfiQUiSrjHFdbJAiEkTbPwGSLvPaY1svw5hZHFHLCF735szIDvNHe1A==}
engines: {node: '>=18.17.0'}
requiresBuild: true
peerDependencies:
react: '>=18 || >=19.0.0-beta'
react-dom: '>=18 || >=19.0.0-beta'
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
dependencies:
'@clerk/types': 4.6.0
glob-to-regexp: 0.4.1
js-cookie: 3.0.5
react: 18.2.0
react-dom: 18.2.0([email protected])
std-env: 3.7.0
swr: 2.2.5([email protected])
dev: false
/@clerk/[email protected]:
resolution: {integrity: sha512-MAWwVSYlm+hsGlR7bxkY8Wo7eOeOk6qYjeHxNPbKKLM52+/dioOTsHOnhRck2qzFUquBmQ93nHGzvsvQSoCGaQ==}
engines: {node: '>=18.17.0'}
dependencies:
'@clerk/types': 4.6.0
tslib: 2.4.1
dev: false
/@clerk/[email protected]:
resolution: {integrity: sha512-kowqVGqLfu0Zl2Pteum70MfkGHqBUoHHeR+u2+yWVl1lKHLCiyY1u8ntYBEIolAylBaQNDuRzxyMIDPSxjPE8g==}
engines: {node: '>=18.17.0'}
dependencies:
csstype: 3.1.1
dev: false
/@dnd-kit/[email protected]([email protected]): /@dnd-kit/[email protected]([email protected]):
resolution: {integrity: sha512-ea7IkhKvlJUv9iSHJOnxinBcoOI3ppGnnL+VDJ75O45Nss6HtZd8IdN8touXPDtASfeI2T2LImb8VOZcL47wjQ==} resolution: {integrity: sha512-ea7IkhKvlJUv9iSHJOnxinBcoOI3ppGnnL+VDJ75O45Nss6HtZd8IdN8touXPDtASfeI2T2LImb8VOZcL47wjQ==}
peerDependencies: peerDependencies:
@@ -1866,6 +1957,11 @@ packages:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
dev: true dev: true
/[email protected]:
resolution: {integrity: sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==}
engines: {node: '>= 0.6'}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
engines: {node: '>= 8'} engines: {node: '>= 8'}
@@ -1874,11 +1970,19 @@ packages:
shebang-command: 2.0.0 shebang-command: 2.0.0
which: 2.0.2 which: 2.0.2
/[email protected]:
resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
engines: {node: '>=4'} engines: {node: '>=4'}
hasBin: true hasBin: true
/[email protected]:
resolution: {integrity: sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
@@ -2083,6 +2187,13 @@ packages:
esutils: 2.0.3 esutils: 2.0.3
dev: true dev: true
/[email protected]:
resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}
dependencies:
no-case: 3.0.4
tslib: 2.6.2
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
@@ -2650,6 +2761,10 @@ packages:
dependencies: dependencies:
is-glob: 4.0.3 is-glob: 4.0.3
/[email protected]:
resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==} resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==}
engines: {node: '>=16 || 14 >=14.17'} engines: {node: '>=16 || 14 >=14.17'}
@@ -2986,6 +3101,11 @@ packages:
resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==} resolution: {integrity: sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==}
hasBin: true hasBin: true
/[email protected]:
resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==}
engines: {node: '>=14'}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
@@ -3088,6 +3208,12 @@ packages:
dependencies: dependencies:
js-tokens: 4.0.0 js-tokens: 4.0.0
/[email protected]:
resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}
dependencies:
tslib: 2.6.2
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==}
engines: {node: 14 || >=16.14} engines: {node: 14 || >=16.14}
@@ -3107,6 +3233,11 @@ packages:
react: 18.2.0 react: 18.2.0
dev: false dev: false
/[email protected]:
resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==}
engines: {node: '>=8'}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'} engines: {node: '>= 8'}
@@ -3213,6 +3344,13 @@ packages:
- babel-plugin-macros - babel-plugin-macros
dev: false dev: false
/[email protected]:
resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}
dependencies:
lower-case: 2.0.2
tslib: 2.6.2
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==}
dev: true dev: true
@@ -3360,6 +3498,10 @@ packages:
lru-cache: 10.2.0 lru-cache: 10.2.0
minipass: 7.0.4 minipass: 7.0.4
/[email protected]:
resolution: {integrity: sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
engines: {node: '>=8'} engines: {node: '>=8'}
@@ -3782,10 +3924,30 @@ packages:
engines: {node: '>=8'} engines: {node: '>=8'}
dev: true dev: true
/[email protected]:
resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==}
dependencies:
dot-case: 3.0.4
tslib: 2.6.2
dev: false
/[email protected]:
resolution: {integrity: sha512-YTywJG93yxwHLgrYLZjlC75moVEX04LZM4FHfihjHe1FCXm+QaLOFfSf535aXOAd0ArVQMWUAe8ZPm4VtWyXaA==}
engines: {node: '>=12'}
dependencies:
map-obj: 4.3.0
snake-case: 3.0.4
type-fest: 2.19.0
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
/[email protected]:
resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}
engines: {node: '>=10.0.0'} engines: {node: '>=10.0.0'}
@@ -3909,6 +4071,16 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
/[email protected]([email protected]):
resolution: {integrity: sha512-QtxqyclFeAsxEUeZIYmsaQ0UjimSq1RZ9Un7I68/0ClKK/U3LoyQunwkQfJZr2fc22DfIXLNDc2wFyTEikCUpg==}
peerDependencies:
react: ^16.11.0 || ^17.0.0 || ^18.0.0
dependencies:
client-only: 0.0.1
react: 18.2.0
use-sync-external-store: 1.2.2([email protected])
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-o+2GTLkthfa5YUt4JxPfzMIpQzZ3adD1vLVkvKE1Twl9UAhGsEbIZhHHZVRttyW177S8PDJI3bTQNaebyofK3Q==} resolution: {integrity: sha512-o+2GTLkthfa5YUt4JxPfzMIpQzZ3adD1vLVkvKE1Twl9UAhGsEbIZhHHZVRttyW177S8PDJI3bTQNaebyofK3Q==}
dependencies: dependencies:
@@ -4000,6 +4172,10 @@ packages:
strip-bom: 3.0.0 strip-bom: 3.0.0
dev: true dev: true
/[email protected]:
resolution: {integrity: sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
dev: false dev: false
@@ -4016,6 +4192,11 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
dev: true dev: true
/[email protected]:
resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}
engines: {node: '>=12.20'}
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==} resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
@@ -4126,6 +4307,14 @@ packages:
tslib: 2.6.2 tslib: 2.6.2
dev: false dev: false
/[email protected]([email protected]):
resolution: {integrity: sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==}
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
dependencies:
react: 18.2.0
dev: false
/[email protected]: /[email protected]:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+7
View File
@@ -0,0 +1,7 @@
import React from "react";
const page = () => {
return <div>Calendar</div>;
};
export default page;
+52
View File
@@ -0,0 +1,52 @@
import {
PortfolioModule,
NewsModule,
HeatmapModule,
MarketsModule,
MoversModule,
EarningsModule,
DocumentsModule,
IndicatorsModule,
ForexAndBondsModule,
} from "@/components/modules/HomepageModules";
import { Metadata } from "next";
export const metadata: Metadata = {
title: "Dashboard :)",
};
export default function Home() {
return (
<main className="flex h-full">
<div className="pb-6 grid grid-rows-3 grid-cols-12 gap-6 flex-1 ">
<div className="col-span-4 sm:col-span-4">
<PortfolioModule />
</div>
<div className="col-span-4 sm:col-span-4">
<NewsModule />
</div>
<div className="col-span-4 sm:col-span-4">
<HeatmapModule />
</div>
<div className="col-span-4 sm:col-span-6">
<MoversModule />
</div>
<div className="col-span-4 sm:col-span-6">
<MarketsModule />
</div>
<div className="col-span-4 sm:col-span-3">
<EarningsModule />
</div>
<div className="col-span-4 sm:col-span-3">
<DocumentsModule />
</div>
<div className="col-span-4 sm:col-span-3">
<IndicatorsModule />
</div>
<div className="col-span-4 sm:col-span-3">
<ForexAndBondsModule />
</div>
</div>
</main>
);
}
+11 -3
View File
@@ -4,7 +4,9 @@ import "./globals.css";
import Navbar from "@/components/nav/Navbar"; import Navbar from "@/components/nav/Navbar";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { ThemeProvider } from "@/components/theme/theme-providers"; import { ThemeProvider } from "@/components/theme/theme-providers";
import Sidebar from "@/components/sidebar/Sidebar"; import Sidebar from "@/components/nav/Sidebar";
import { ClerkProvider } from "@clerk/nextjs";
import { dark } from "@clerk/themes";
const red_hat = Red_Hat_Display({ subsets: ["latin"] }); const red_hat = Red_Hat_Display({ subsets: ["latin"] });
@@ -19,6 +21,11 @@ export default function RootLayout({
children: React.ReactNode; children: React.ReactNode;
}>) { }>) {
return ( return (
<ClerkProvider
appearance={{
baseTheme: dark,
}}
>
<html lang="en"> <html lang="en">
<body <body
className={cn( className={cn(
@@ -33,12 +40,13 @@ export default function RootLayout({
disableTransitionOnChange disableTransitionOnChange
> >
<Sidebar /> <Sidebar />
<main className="w-full h-full"> <main className="w-full h-full overflow-y-scroll">
<Navbar /> <Navbar />
{children} <div className="w-full h-full p-4">{children}</div>
</main> </main>
</ThemeProvider> </ThemeProvider>
</body> </body>
</html> </html>
</ClerkProvider>
); );
} }
+10 -43
View File
@@ -1,47 +1,14 @@
import { import { SignInButton, SignedOut } from "@clerk/nextjs";
PortfolioModule, import React from "react";
NewsModule,
HeatmapModule,
MarketsModule,
MoversModule,
EarningsModule,
DocumentsModule,
IndicatorsModule,
ForexAndBondsModule,
} from "@/components/modules/HomepageModules";
export default function Home() { const page = () => {
return ( return (
<main className="flex 2xl:h-full"> <div>
<div className="px-6 pb-6 grid grid-rows-3 grid-cols-12 gap-6 flex-1 "> <SignedOut>
<div className="col-span-4 sm:col-span-4"> <SignInButton />
<PortfolioModule /> </SignedOut>
</div> </div>
<div className="col-span-4 sm:col-span-4">
<NewsModule />
</div>
<div className="col-span-4 sm:col-span-4">
<HeatmapModule />
</div>
<div className="col-span-4 sm:col-span-6">
<MoversModule />
</div>
<div className="col-span-4 sm:col-span-6">
<MarketsModule />
</div>
<div className="col-span-4 sm:col-span-3">
<EarningsModule />
</div>
<div className="col-span-4 sm:col-span-3">
<DocumentsModule />
</div>
<div className="col-span-4 sm:col-span-3">
<IndicatorsModule />
</div>
<div className="col-span-4 sm:col-span-3">
<ForexAndBondsModule />
</div>
</div>
</main>
); );
} };
export default page;
+7
View File
@@ -0,0 +1,7 @@
import React from "react";
const page = () => {
return <div>Portfolio</div>;
};
export default page;
-7
View File
@@ -1,7 +0,0 @@
import React from "react";
function SidebarPage() {
return <div>Sidebar Page</div>;
}
export default SidebarPage;
+1 -1
View File
@@ -3,7 +3,7 @@
import InsiderTrading from "@/components/charts/InsiderTrading"; import InsiderTrading from "@/components/charts/InsiderTrading";
import HomepageModule from "@/components/modules/HomepageModuleCard"; import HomepageModule from "@/components/modules/HomepageModuleCard";
import React from "react"; import React from "react";
import { insiderTransactions } from "../MockData/MockData"; import { insiderTransactions } from "../../../public/MockData/MockData";
const tests = () => { const tests = () => {
return <InsiderTrading data={insiderTransactions} />; return <InsiderTrading data={insiderTransactions} />;
+49
View File
@@ -0,0 +1,49 @@
import { SignOutButton, SignedIn, UserButton, useUser } from "@clerk/nextjs";
import React from "react";
import { Button } from "./ui/button";
import { LogOutIcon } from "lucide-react";
import { cn } from "@/lib/utils";
interface UserItemProps {
isCollapsed: boolean;
}
const UserItem = ({ isCollapsed }: UserItemProps) => {
const { user } = useUser();
if (!user) {
return <div>No user</div>;
}
console.log(user.primaryEmailAddress);
return (
<SignedIn>
<div
className={cn(
isCollapsed ? "justify-center p-2" : "pl-2",
"rounded-lg flex items-center"
)}
>
<UserButton />
{!isCollapsed && (
<>
<div className="flex-grow pl-2">
<p className="text-sm">{user.fullName}</p>
<p className="text-xs text-muted-foreground">
{user.primaryEmailAddress?.emailAddress}
</p>
</div>
<SignOutButton>
<Button variant="ghost" className="">
<LogOutIcon width={15} height={20} className="text-red-500" />
</Button>
</SignOutButton>
</>
)}
</div>
</SignedIn>
);
};
export default UserItem;
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { ResponsiveTimeRange } from "@nivo/calendar"; import { ResponsiveTimeRange } from "@nivo/calendar";
import { earningsCalendar } from "@/app/MockData/MockData"; import { earningsCalendar } from "../../../public/MockData/MockData";
import { import {
compareAsc, compareAsc,
format, format,
+1 -1
View File
@@ -2,7 +2,7 @@
import { createChart, ColorType } from "lightweight-charts"; import { createChart, ColorType } from "lightweight-charts";
import React, { MutableRefObject, useEffect, useRef } from "react"; import React, { MutableRefObject, useEffect, useRef } from "react";
import { indexData, portfolioData } from "@/app/MockData/MockData"; import { indexData, portfolioData } from "../../../public/MockData/MockData";
const Chart = (props: any) => { const Chart = (props: any) => {
const { const {
@@ -1,7 +1,7 @@
"use client"; "use client";
import { ColumnDef } from "@tanstack/react-table"; import { ColumnDef } from "@tanstack/react-table";
import { documentsDataType } from "@/app/MockData/MockData"; import { documentsDataType } from "../../../../public/MockData/MockData";
import { Badge } from "@/components/ui/badge"; import { Badge } from "@/components/ui/badge";
export const documentsColumns: ColumnDef<documentsDataType>[] = [ export const documentsColumns: ColumnDef<documentsDataType>[] = [
+1 -1
View File
@@ -1,7 +1,7 @@
"use client"; "use client";
import { ColumnDef } from "@tanstack/react-table"; import { ColumnDef } from "@tanstack/react-table";
import { newsDataType } from "@/app/MockData/MockData"; import { newsDataType } from "../../../../public/MockData/MockData";
export const newsColumns: ColumnDef<newsDataType>[] = [ export const newsColumns: ColumnDef<newsDataType>[] = [
{ {
+4 -4
View File
@@ -8,7 +8,7 @@ import {
markets, markets,
earningsCalendar, earningsCalendar,
documentsList, documentsList,
} from "@/app/MockData/MockData"; } from "../../../public/MockData/MockData";
import HomepageModule from "./HomepageModuleCard"; import HomepageModule from "./HomepageModuleCard";
import PortfolioChart, { import PortfolioChart, {
AreaSeriesPartialOptionsWithData, AreaSeriesPartialOptionsWithData,
@@ -35,9 +35,9 @@ import {
globalColors, globalColors,
smaFunc, smaFunc,
} from "@/lib/utils"; } from "@/lib/utils";
import { seriesOne } from "@/app/MockData/seriesOne"; import { seriesOne } from "../../../public/MockData/seriesOne";
import { seriesThree } from "@/app/MockData/seriesThree"; import { seriesThree } from "../../../public/MockData/seriesThree";
import { seriesFive } from "@/app/MockData/seriesFive"; import { seriesFive } from "../../../public/MockData/seriesFive";
import { useState } from "react"; import { useState } from "react";
import { Badge } from "../ui/badge"; import { Badge } from "../ui/badge";
import { ResponsiveTimeRange } from "@nivo/calendar"; import { ResponsiveTimeRange } from "@nivo/calendar";
+5 -5
View File
@@ -1,14 +1,14 @@
import { seriesFive } from "@/app/MockData/seriesFive"; import { seriesFive } from "../../../public/MockData/seriesFive";
import Chart, { LineSeriesPartialOptionsWithData } from "../charts/Chart"; import Chart, { LineSeriesPartialOptionsWithData } from "../charts/Chart";
import { LineType } from "lightweight-charts"; import { LineType } from "lightweight-charts";
import HomepageModule from "./HomepageModuleCard"; import HomepageModule from "./HomepageModuleCard";
import { globalColors } from "@/lib/utils"; import { globalColors } from "@/lib/utils";
import Image from "next/image"; import Image from "next/image";
import { Separator } from "../ui/separator"; import { Separator } from "../ui/separator";
import { seriesOne } from "@/app/MockData/seriesOne"; import { seriesOne } from "../../../public/MockData/seriesOne";
import { seriesTwo } from "@/app/MockData/seriesTwo"; import { seriesTwo } from "../../../public/MockData/seriesTwo";
import { seriesThree } from "@/app/MockData/seriesThree"; import { seriesThree } from "../../../public/MockData/seriesThree";
import { seriesFour } from "@/app/MockData/seriesFour"; import { seriesFour } from "../../../public/MockData/seriesFour";
export const PriceModule = () => { export const PriceModule = () => {
const symbolLine: LineSeriesPartialOptionsWithData = { const symbolLine: LineSeriesPartialOptionsWithData = {
+1 -1
View File
@@ -22,7 +22,7 @@ const Navbar = () => {
}; };
return ( return (
<div className="h-16 border-b border-neutral-700 flex items-center justify-between w-full p-4"> <div className="h-16 border-b border-neutral-700 flex items-center justify-between w-full p-4 sticky top-0 bg-background z-10">
<div className="font-bold text-2xl">Dashboard</div> <div className="font-bold text-2xl">Dashboard</div>
<div className="flex items-center"> <div className="flex items-center">
<Input <Input
@@ -40,6 +40,7 @@ import {
TooltipProvider, TooltipProvider,
TooltipTrigger, TooltipTrigger,
} from "@/components/ui/tooltip"; } from "@/components/ui/tooltip";
import UserItem from "../UserItem";
function Sidebar() { function Sidebar() {
const [isCollapsed, setIsCollapsed] = useState<boolean>(true); const [isCollapsed, setIsCollapsed] = useState<boolean>(true);
@@ -55,7 +56,7 @@ function Sidebar() {
group: "Navigation", group: "Navigation",
items: [ items: [
{ {
link: "/", link: "/dashboard",
icon: <LayoutGridIcon height={20} width={20} />, icon: <LayoutGridIcon height={20} width={20} />,
text: "Dashboard", text: "Dashboard",
}, },
@@ -65,7 +66,7 @@ function Sidebar() {
text: "Calendar", text: "Calendar",
}, },
{ {
link: "/porfolio", link: "/portfolio",
icon: <LineChartIcon height={20} />, icon: <LineChartIcon height={20} />,
text: "Portfolio", text: "Portfolio",
}, },
@@ -207,29 +208,7 @@ function Sidebar() {
<SettingsIcon height={20} /> <SettingsIcon height={20} />
</Button> </Button>
</div> </div>
<div <UserItem isCollapsed={isCollapsed} />
className={cn(
isCollapsed ? "justify-center p-2" : "pl-2",
"rounded-lg flex items-center"
)}
>
<Button variant="default" className="w-8 h-8 rounded-full">
Me
</Button>
{!isCollapsed && (
<>
<div className="flex-grow pl-2">
<p className="text-sm">Dylan Benzi</p>
<p className="text-xs text-muted-foreground">
dylanbenzi@gmail.com
</p>
</div>
<Button variant="ghost" className="">
<LogOutIcon width={15} height={20} className="text-red-500" />
</Button>
</>
)}
</div>
</div> </div>
</div> </div>
</div> </div>
+7
View File
@@ -0,0 +1,7 @@
import { clerkMiddleware } from "@clerk/nextjs/server";
export default clerkMiddleware();
export const config = {
matcher: ["/((?!.*\\..*|_next).*)", "/", "/(api|trpc)(.*)"],
};