Releases: MetaweaveTeam/iframe-profiles
5OHoPfYucLPTgOvJGgnL0Cg0Ktl-ZDaiTjQo_2B3tBg
ArProfile Iframe | Migration to Vue3
This template should help get you started developing with Iframes Profile using Vue 3.
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:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- 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://arweave.net/5OHoPfYucLPTgOvJGgnL0Cg0Ktl-ZDaiTjQo_2B3tBg/address/<wallet_address>
https://arweave.net/5OHoPfYucLPTgOvJGgnL0Cg0Ktl-ZDaiTjQo_2B3tBg/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
9oVM4zpak32nwlardG5idxe8CNICZKLAJY5hHmi6-aM
ArProfile Iframe
This Release Adds
- A new router system, now you need to use
/address
or/handler
instead of query params like?address
orhandler
- Now you don't need to use HTML encode for # (%23) you can just use #
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://arweave.net/9oVM4zpak32nwlardG5idxe8CNICZKLAJY5hHmi6-aM/address/<wallet_address>
https://arweave.net/9oVM4zpak32nwlardG5idxe8CNICZKLAJY5hHmi6-aM/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
Development
Available Scripts
npm run dev
Runs a localhost with the code inside dist
npm run build
It builds everything inside src generating an entire static website inside dist folder.
npm run test
This command help you to teste the iframe after build in a controlled sample website, where you can put your iframe.
AHSXXMYk4iNqyeBHXBAda_0bky7ozft1i8qjEXC86ms
ArProfile Iframe
How to use
First you need to edit the latest release link with the profile wallet address using query param address
or with your handler using query param handler
[REMEMBER] #
is equal to %23
example user#handle
should be user%23handle
.
https://arweave.net/AHSXXMYk4iNqyeBHXBAda_0bky7ozft1i8qjEXC86ms/?address=<wallet_address>
https://arweave.net/AHSXXMYk4iNqyeBHXBAda_0bky7ozft1i8qjEXC86ms/?handler=<name%23unique>
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
Development
Available Scripts
npm run dev
Runs a localhost with the code inside dist
npm run build
It builds everything inside src generating an entire static website inside dist folder.
npm run test
This command help you to teste the iframe after build in a controlled sample website, where you can put your iframe.
wtFZxTMjS7RspHEaRlamYm7JDjizWCvwsyHQQCARvyQ
This is the first release.
How it works?
First you need to edit the link with you wallet address.
https://arweave.net/wtFZxTMjS7RspHEaRlamYm7JDjizWCvwsyHQQCARvyQ?address=<wallet_address>
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