Skip to content

Instantly share code, notes, and snippets.

@nparsons08 nparsons08/11.js Secret
Created May 28, 2019

Embed
What would you like to do?
// src/App.vue
<template>
<section class="uk-section">
<div class="uk-container uk-container-small">
<div class="uk-flex uk-flex-center">
<div class="uk-width-large uk-margin-large-top">
<template v-if="hasJoinedChat">
<!-- chats and chat form will be here -->
</template>
<template v-else>
<!-- login form will be here -->
</template>
</div>
</div>
</div>
</section>
</template>
<script>
import axios from "axios";
import { StreamChat } from "stream-chat";
export default {
name: "app",
data() {
return {
hasJoinedChat: false,
token: '',
username: "",
user: '',
channel: "",
client: "",
messages: [],
newMessage: ""
};
},
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.