Skip to content

Kyh16103 change 1 #2

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VUE_APP_API_KEY="AIzaSyBi03NBONZ2ncp4PSvjbAplWm6pC5XnjTw"
VUE_APP_AUTH_DOMAIN="dmd-4470.firebaseapp.com"
VUE_APP_DATABASE_URL="https://dmd-4470.firebaseio.com"
VUE_APP_PROJECT_ID="dmd-4470"
VUE_APP_STORAGE_BUCKET="dmd-4470.appspot.com"
VUE_APP_MESSAGE_SENDER_ID="159373794744"
VUE_APP_APP_ID="1:159373794744:web:ca93db7d63c296b472834d"
VUE_APP_API_KEY="AIzaSyCpmOxx4oge2EIn1VJ6bPECvyfBsyTdTjk"
VUE_APP_AUTH_DOMAIN="dmd4470-50f92.firebaseapp.com"
VUE_APP_DATABASE_URL="https://dmd4470-50f92.firebaseio.com"
VUE_APP_PROJECT_ID="dmd4470-50f92"
VUE_APP_STORAGE_BUCKET="dmd4470-50f92.appspot.com"
VUE_APP_MESSAGE_SENDER_ID="855212958962"
VUE_APP_APP_ID="1:855212958962:web:e183ab5246ec3a27271c6b"
57 changes: 57 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<html>
<head>
<link rel="stylesheet" href="main.css">
<title>Twitter in Vuejs</title>
</head>
<body>
<div id="twitter">
<header>
<div class="inner">
<div class="headerSection">
<router-link to="/home" class="link">Home</router-link>
</div>
<div class="headerSection">
<img src="./images/twitter-icon.png" width="24" height="21">
</div>
<div class="headerSection">
<input type="text" name="search" class="search" v-model="search" placeholder="Search..">
<router-link to="/addTweet" class="tweetLink">Tweet</router-link>
</div>
</div>
</header>

<router-view></router-view>
</div>


<script src="//cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="//unpkg.com/vue-router/dist/vue-router.js"></script>
<script src="//unpkg.com/http-vue-loader"></script>

<script src="./store.js"></script>

<script>
const feed = httpVueLoader('./feed.vue');
const addTweet = httpVueLoader('./addTweet.vue');

const routes = [
{ path: '/home', component: feed},
{ path: '/addTweet', component: addTweet }
]

const router = new VueRouter({
routes
});

new Vue({
router,
data: store.data,
methods: {
addtweet() {
this.feed.push(tweet);
}
}
}).$mount('#twitter')
</script>
</body>
</html>