-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: new dapp initial commit * chore: add basePath * feat: add Dockerfile and workflows * chore: add comments to nginx.conf * fix: update some configuration * feat: new dapp * fix: fixes linting issues * feat: test * feat: tailwind config * feat: basic toggle theme component * feat: welcome page * feat: create initial navbar * fix: change sizes on mobile * feat: add footer for mobile view * fix: changed landing page font sizes * fix: fixes lintstaged * chore: add team member (#106) * Add team member * chore: fix lint issue Co-authored-by: martines3000 <domajnko.martin@gmail.com> * fix: make some components more reusable * feat: add connect Flask functionality * feat: add dashboard card and connect spinner * feat: query VCs * fix: changed landing page * feat: initial table * feat: finish unstyled table * fix: change VC id to hash of VC * feat: add pagination, filter and select to table * feat: data_store filter * fix: change btn size * feat: implement control bar * feat: table design * feat: table tooltips * feat: finish table * feat: create createVP page * feat: view VC (JSON tab) * feat: vc view * fix: vc view * feat: finish VC card * feat: createVP page * fix: fix formated tab banner design * feat: created InputField & ToggleSwitch * feat: added Delete and ModifyDataStore modals * fix: add support for disabled VC stores * feat: importVC modal & DropdownMultiselect comp * fix: typo * fix: change address button color * fix: changed some icons and paddings * feat: add tableCardView * feat: new VC view * feat: finished VC card * chore: update readme (#110) * chore: update veramo (#109) * chore: update veramo and fix issues * chore: skip Ceramic tests until fixed * feat: return Result from onRpcRequest * chore: uncomment tests and use it.skip instead * feat: split utils into a seperate package * chore: disable ceramic tests (#113) * chore: disable ceramic tests until fixed * chore: update deps (#112) * chore: update deps and add package.json sort * feat: added to VCCard * fix: update Account popover * feat: tooltip * fix: add margin to tooltip * feat: use new tooltip & add VCs view icons * fix: make card view default * fix: visual fixes * feat: implement snap * fix: vc selection bug * feat: finish createVP page * fix: change some visual bugs * feat: add MenuPopover * fix: remove cancle button from vpmodal * chore: update pnpm-lock.yaml * chore: remove eslint-disable for navigator.clipboard * chore: remove useUrlQuery hook * chore: small fix * feat: add prettier improvements * fix: use npm version of snap * fix: remove unnecessary files & fix imports * fix: replace classNames with clsx * feat: update eslint rules * fix: use public * feat: fix fonts and images * fix: image sizes * fix: use zustand shallow * fix: fix linting errors * fix: saveVC * feat: add toast & spinners * fix: remove uneccessary vcStore calls * fix: minor bugs * fix: minor bugs * fix: duplicate imports * fix: bugfixes * fix: build & linting issues * chore: sonarcloud ignore test data * chore: prettier * fix: veramoUtils merge bug * fix: fxies onRpcRequests * fix: fixes some types, adds jsdoc comments * feat: finish updating connector * chore: remove ethereum.on() * chore: undo unnecessary changes * fix: undo broken vcmanager test:ci * chore: update package.json * fix: exclude website from build, lint, test steps * fix: ignore website in CI * feat: home background * fix: style improvements * fix: update tests, some jsdoc comments, errors * fix: fix assertion issue * fix: fixes tests * chore: comment out code * fix: fixes build issues and adds tsup * fix: change tailwind colors * feat: start working on dark mode * fix: fix colors * chore: add next/Head * fix: fixes issue with method dropdown * chore: todo and changes to toastStore * feat: add prettier tailwindcss plugin * fix: fixes lintstaged config for dapp * chore: removes whitespace in classNames * chore: remove unnecessary then * chore: refactor navbar * chore: update button * fix: address popover overflow * chore: refactor inputField * chore: remove TODO * fix: reuse navConnect * chore: remove white space * fix: update popover * fix: use padding in home page * chore: update elsintrc.cjs for dapp * fix: rename and update gateways to providers * chore: refactor react imports * fix: fixes compiler warning * fix: colors & style * feat: improved connection handler * fix: fix some styles * feat: fix VC view * fix: saveVC join results * fix: start working on dark mode * feat: dark mode * fix: shadow * feat: esm ssi-snap-types * feat: esm connector * fix: add readme to output * fix: small fixes * chore: update connector deps * chore: lintstaged.cjs * chore: more lintstaged.cjs * chore: connector lintstaged.cjs * fix: build * feat: esm vcmanager and update configs * feat: esm utils * feat: update tests * chore: deps * fix: build dapp * fix: docs * fix: fixes config issues * fix: fixes config issues * fix: resolve last issues * fix: add missing changeIsConnecting(false) * fix: add missing import * chore: remove double whitespace * fix: fixed JIT & theme * feat: esm ssi-snap-types * feat: esm connector * fix: add readme to output * chore: update connector deps * chore: lintstaged.cjs * chore: more lintstaged.cjs * chore: connector lintstaged.cjs * feat: esm vcmanager and update configs * feat: esm utils * feat: update tests * chore: deps * fix: build dapp * fix: docs * fix: fixes config issues * fix: fixes config issues * fix: resolve last issues * fix: fixes tests * fix: fixes lintstagedrc * chore: new lock file * chore: fix issues * chore: update tailwind.config.cjs * fix: chanse base path to ssi-snap * chore: fix lock file * chore: add snap manifest --------- Co-authored-by: Martin Domajnko <35891136+martines3000@users.noreply.github.com> Co-authored-by: martines3000 <domajnko.martin@gmail.com>
- Loading branch information
Showing
89 changed files
with
7,053 additions
and
1,864 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ dist/ | |
build/ | ||
coverage/ | ||
.cache/ | ||
public/ | ||
.yarn/patches | ||
|
||
packages/docs/.docusaurus | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist | ||
node_modules | ||
.next | ||
out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare global { | ||
interface Window { | ||
ethereum: import('ethers').providers.ExternalProvider; | ||
} | ||
} | ||
|
||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
import React from 'react'; | ||
import { Popover, Transition } from '@headlessui/react'; | ||
import { ChevronDownIcon } from '@heroicons/react/20/solid'; | ||
import { DocumentDuplicateIcon } from '@heroicons/react/24/outline'; | ||
|
||
import { copyToClipboard } from '@/utils/string'; | ||
|
||
type AddressPopoverProps = { | ||
address: string; | ||
did: string; | ||
disconnect: () => void; | ||
}; | ||
const AddressPopover = ({ address, did, disconnect }: AddressPopoverProps) => { | ||
return ( | ||
<Popover className="relative z-50"> | ||
{({ open }) => ( | ||
<> | ||
<Popover.Button | ||
className={`text-h4 animated-transition dark:bg-orange-accent-dark dark:text-navy-blue-900 rounded-3xlpx-4 font-ubuntu inline-flex w-full justify-center rounded-full bg-pink-100 py-2.5 px-7 font-normal text-gray-800 hover:opacity-80 focus:outline-none dark:border-none ${ | ||
open ? 'opacity-80' : '' | ||
}`} | ||
> | ||
<div className="flex"> | ||
{`${address.slice(0, 5)}...${address.slice(-4)}`} | ||
|
||
<ChevronDownIcon | ||
className={`animated-transition -mr-1 ml-2 h-5 w-5 max-md:rotate-180 ${ | ||
open ? 'rotate-180' : '' | ||
}`} | ||
/> | ||
</div> | ||
</Popover.Button> | ||
<Transition | ||
enter="transition duration-100 ease-out" | ||
enterFrom="transform scale-95 opacity-0" | ||
enterTo="transform scale-100 opacity-100" | ||
leave="transition duration-75 ease-out" | ||
leaveFrom="transform scale-100 opacity-100" | ||
leaveTo="transform scale-95 opacity-0" | ||
> | ||
<Popover.Panel className="dark:bg-navy-blue-500 absolute right-0 rounded-2xl bg-white shadow-xl max-md:-top-12 max-md:mb-2 max-md:-translate-y-full max-md:transform md:mt-2"> | ||
<div className="rounded-2xl px-6 pt-6 pb-3 shadow-sm"> | ||
<div className="flex flex-col justify-between gap-3"> | ||
<div> | ||
<div className="dark:text-navy-blue-100 text-sm text-gray-700"> | ||
DID | ||
</div> | ||
<div className="mt-2 flex items-center"> | ||
<div className="text-2xl text-gray-900 dark:text-white">{`${did.substring( | ||
0, | ||
did.lastIndexOf(':') | ||
)}:${did | ||
.split(':') | ||
[did.split(':').length - 1].slice(0, 5)}...${did.slice( | ||
-4 | ||
)}`}</div> | ||
<button | ||
onClick={() => { | ||
copyToClipboard(did); | ||
}} | ||
> | ||
<DocumentDuplicateIcon className="animated-transition dark:text-navy-blue-50 ml-1 h-5 w-5 text-gray-900 hover:text-gray-600" /> | ||
</button> | ||
</div> | ||
</div> | ||
<div> | ||
<div className="dark:text-navy-blue-100 mt-4 text-sm text-gray-700"> | ||
CONNECTED WITH METAMASK | ||
</div> | ||
<div className="mt-2 flex items-center"> | ||
<div className="mr-1 mt-0.5"> | ||
<div className="h-2.5 w-2.5 rounded-full bg-green-500"></div> | ||
</div> | ||
<div className="text-lg text-gray-900 dark:text-white">{`${address.slice( | ||
0, | ||
5 | ||
)}...${address.slice(-4)}`}</div> | ||
<button | ||
onClick={() => { | ||
copyToClipboard(address); | ||
}} | ||
> | ||
<DocumentDuplicateIcon className="animated-transition dark:text-navy-blue-50 ml-1 h-5 w-5 text-gray-900 hover:text-gray-600" /> | ||
</button> | ||
</div> | ||
</div> | ||
<div className="mt-2 flex justify-start"> | ||
<button | ||
onClick={disconnect} | ||
className="animated-transition mt-auto text-xs font-semibold text-pink-800 hover:text-pink-700 dark:text-pink-300 hover:dark:text-pink-400" | ||
> | ||
DISCONNECT | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</Popover.Panel> | ||
</Transition> | ||
</> | ||
)} | ||
</Popover> | ||
); | ||
}; | ||
|
||
export default AddressPopover; |
Oops, something went wrong.