Skip to content

Instantly share code, notes, and snippets.

@prawnsalad
Last active August 12, 2019 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prawnsalad/cb4667a3430324400e2d9bc5ee043e24 to your computer and use it in GitHub Desktop.
Save prawnsalad/cb4667a3430324400e2d9bc5ee043e24 to your computer and use it in GitHub Desktop.
<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