Last active
August 12, 2019 11:23
-
-
Save prawnsalad/cb4667a3430324400e2d9bc5ee043e24 to your computer and use it in GitHub Desktop.
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
<div id='myloginform'> | |
<h1> some crazy login form styled to your website</h1> | |
<form @click.prevent="onFormSubmit"> | |
<input v-model="nick" /> | |
</form> | |
</div> | |
<script> | |
export function run(kiwi, config) { | |
var ctr = { | |
template: '#myloginform', | |
data: function() { | |
return { | |
nick: '', | |
pass: '', | |
}; | |
}, | |
methods: { | |
startup: onFormSubmit(event) { | |
// basically do this https://github.com/kiwiirc/kiwiirc/blob/master/src/components/startups/Welcome.vue#L277 | |
}, | |
}, | |
}; | |
kiwi.addStartup('myplugin', ctr); | |
kiwi.state.settings.startupScreen = 'myplugin'; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment