File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,21 +25,21 @@ <h1>Auto-Resolve from Repository</h1>
2525
2626 < h2 > GitHub Repository</ h2 >
2727 < p > Uses the < code > repo</ code > attribute to auto-resolve from GitHub:</ p >
28- < pre > <auths-verify repo="https://github.com/auths-dev/auths "></auths-verify></ pre >
28+ < pre > <auths-verify repo="https://github.com/auths-dev/example-verify-badge "></auths-verify></ pre >
2929 < div class ="demo ">
3030 < auths-verify
3131 id ="github-demo "
32- repo ="https://github.com/auths-dev/auths "
32+ repo ="https://github.com/auths-dev/example-verify-badge "
3333 > </ auths-verify >
3434 </ div >
3535 < p class ="log " id ="github-log "> Waiting...</ p >
3636
3737 < h2 > With Tooltip Mode</ h2 >
3838 < p > Combine < code > repo</ code > with display modes:</ p >
39- < pre > <auths-verify repo="https://github.com/auths-dev/auths " mode="tooltip"></auths-verify></ pre >
39+ < pre > <auths-verify repo="https://github.com/auths-dev/example-verify-badge " mode="tooltip"></auths-verify></ pre >
4040 < div class ="demo ">
4141 < auths-verify
42- repo ="https://github.com/auths-dev/auths "
42+ repo ="https://github.com/auths-dev/example-verify-badge "
4343 mode ="tooltip "
4444 > </ auths-verify >
4545 </ div >
@@ -62,7 +62,7 @@ <h2>Forge Hint Override</h2>
6262
6363 < h2 > Identity Filter</ h2 >
6464 < p > Use < code > identity</ code > to resolve a specific identity when a repo has multiple:</ p >
65- < pre > <auths-verify repo="https://github.com/auths-dev/auths " identity="did:key:z6Mk..."></auths-verify></ pre >
65+ < pre > <auths-verify repo="https://github.com/auths-dev/example-verify-badge " identity="did:key:z6Mk..."></auths-verify></ pre >
6666
6767 < script type ="module " src ="../src/auths-verify.ts "> </ script >
6868 < script >
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ class AuthsVerify extends HTMLElement {
3333 // --- Lifecycle ---
3434
3535 connectedCallback ( ) : void {
36+ // Honour initial data-state attribute for static/visual demos
37+ const initial = this . getAttribute ( 'data-state' ) as ComponentState | null ;
38+ if ( initial && initial !== 'idle' ) {
39+ this . #state = initial ;
40+ }
3641 this . #render( ) ;
3742 if ( this . autoVerify && this . #hasInput( ) ) {
3843 this . #scheduleVerify( ) ;
You can’t perform that action at this time.
0 commit comments