Skip to content

Commit 34d9147

Browse files
codypharmtechyNonsoNasfameNasfame
authored
bugfix: model repository (DeCenter-AI#135)
* payment added but awaiting clearance on fow after payment * style: pretty code by ci * contract updated * refactor: move from samples Signed-off-by: Nasfame <laciferin@gmail.com> * revert: contract/samples from main Signed-off-by: Nasfame <laciferin@gmail.com> * add: mulit sig walet Signed-off-by: Nasfame <laciferin@gmail.com> * remove sample contract: MultiSigWaillet Signed-off-by: Nasfame <laciferin@gmail.com> * fixes-test: payment.ts Signed-off-by: Nasfame <laciferin@gmail.com> * style: pretty code by ci * fixes: import deps Signed-off-by: Nasfame <laciferin@gmail.com> * env example added * tspath params: @lib Signed-off-by: Nasfame <laciferin@gmail.com> * fixes: tsconfig include Signed-off-by: Nasfame <laciferin@gmail.com> * tsconfig: include *abi.json Signed-off-by: Nasfame <laciferin@gmail.com> * tsconfig: remove Signed-off-by: Nasfame <laciferin@gmail.com> * style: pretty code by ci * issue DeCenter-AI#134 fixed * style: pretty code by ci --------- Signed-off-by: Nasfame <laciferin@gmail.com> Co-authored-by: techyNonso <techyNonso@users.noreply.github.com> Co-authored-by: Nasfame <laciferin@gmail.com> Co-authored-by: Nasfame <Nasfame@users.noreply.github.com>
1 parent 9fe31ae commit 34d9147

5 files changed

Lines changed: 15 additions & 10 deletions

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ DATABASE_URL=
55
NEXT_PUBLIC_LH_API=
66
NEXT_PUBLIC_WEB_TOKEN=
77

8+
89
NEXT_PUBLIC_PARTICLE_NETWORK_PROJECT_ID=
910
NEXT_PUBLIC_PARTICLE_NETWORK_CLIENT_KEY=
1011
NEXT_PUBLIC_PARTICLE_NETWORK_APP_ID=
1112

1213

1314
NEXT_PUBLIC_PAYMENT_CONTRACT_ADDRESS=
1415
NEXT_PUBLIC_WALLET_CONTRACT_ADDRESS=
16+

next.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const value = 0
33
const nextConfig = {
4-
54
images: {
65
domains: ['avataaars.io'],
76
},

src/app/dashboard/repository/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { GoDownload } from 'react-icons/go'
88
import { GoSortAsc } from 'react-icons/go'
99
import { BiLike } from 'react-icons/bi'
1010
import Repository from './components/repository'
11-
import repository from './components/repository'
11+
import repositoryList from '@/data/repository'
1212

1313
export default function Page() {
1414
const pathname = usePathname()
@@ -75,10 +75,10 @@ export default function Page() {
7575

7676
<div className=" w-[85%] h-full ">
7777
<div className="w-full h-[80%] flex flex-col gap-6 overflow-y-scroll">
78-
<Repository repository={repository} />
78+
<Repository repository={repositoryList} />
7979
</div>
8080

81-
<div className="flex h-[20%] justify-center text-primary_7 items-center ">
81+
<div className="flex h-[20%] justify-center gap-x-3 text-primary_7 items-center ">
8282
<div>
8383
<button className="w-24 bg-primary_11 py-2 rounded-full">Next</button>
8484
</div>

src/app/dashboard/settings/profile/page.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export default function Page() {
4545
<div className="flex gap-4 items-center text-[#8F8F8F] text-sm">
4646
<Link
4747
href="/dashboard/settings"
48-
className="flex gap-2 items-center border-none outline-none">
48+
className="flex gap-2 items-center border-none outline-none"
49+
>
4950
<PiCaretLeft />
5051
<span>Back</span>
5152
</Link>
@@ -78,7 +79,8 @@ export default function Page() {
7879
</div>
7980
<button
8081
className="flex items-center justify-center p-2 bg-primary_7 text-primary_6 rounded-full"
81-
onClick={openModal}>
82+
onClick={openModal}
83+
>
8284
<PiPencilSimpleLight size={20} />
8385
</button>
8486
</div>
@@ -87,7 +89,8 @@ export default function Page() {
8789
{profileInfo.map((item) => (
8890
<div
8991
key={item.id}
90-
className="border border-primary_8 rounded-xl py-2 w-full flex flex-col gap-4 px-4">
92+
className="border border-primary_8 rounded-xl py-2 w-full flex flex-col gap-4 px-4"
93+
>
9194
<p className="text-[#C1C1C1]">{item.text}</p>
9295
<div className="flex justify-between items-center">
9396
<h4 className="text-lg">{item.count}</h4>
@@ -109,7 +112,8 @@ export default function Page() {
109112
{models.map((model) => (
110113
<div
111114
key={model.id}
112-
className="w-full p-2 flex gap-4 items-center border border-primary_8 rounded-xl">
115+
className="w-full p-2 flex gap-4 items-center border border-primary_8 rounded-xl"
116+
>
113117
<div className="flex flex-col gap-3">
114118
<span className="text-xs bg-[#232323] py-1 px-2 w-max rounded-full text-[#8F8F8F]">
115119
{model.title}

src/data/repository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface Repository {
88
likes: string
99
}
1010

11-
const repository: Repository[] = [
11+
const repositoryList: Repository[] = [
1212
{
1313
id: 1,
1414
label: 'Text Generation',
@@ -61,4 +61,4 @@ const repository: Repository[] = [
6161
},
6262
]
6363

64-
export default repository
64+
export default repositoryList

0 commit comments

Comments
 (0)