Social network widget synced with the Uniqe NFT social proof contract

uniqe-widget

This is a web-component that allows you to display Uniqe NFT Proof for a web3 user on your website.

Usage

<html>
  <head>
    <!-- Include the minified js file, replace the <VERSION> tag with the current one -->
    <script src="https://unpkg.com/browse/uniqe-widget@<VERIONS>/dist/main.js"></script>
  </head>
  <body>
    <!-- Just include the wallet address of the user and you're set ! -->
    <uniqe-widget address="0x..."></uniqe-widget>
  </body>
</html>

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn’t feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode’s command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

Project Setup

cp .env.example .env
npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npx vite build --mode production

GitHub

View Github