Skip to content

Latest commit

 

History

History
61 lines (38 loc) · 2.25 KB

README.md

File metadata and controls

61 lines (38 loc) · 2.25 KB

ArProfile Iframe

This template should help get you started developing with Vue 3 in Vite.

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

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint

How to use

First you need to edit the latest release link with the profile wallet address using route address or with your handler using route handler

  • https://profile.arweave.dev/address/<wallet_address>
  • https://profile.arweave.dev/handler/<name#unique>

then you just add this link to iframe and then adds the iframe to your website <iframe src="<link>" frameorder="0" scrolling="auto" width="<width>" height="<height>"></iframe>

I strongly recommend to just edit this options at the iframe:

  • src: with the link that you edited before
  • width/height: with the right fit for your need