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
PORT= | |
PUBLIC_URL= | |
DB_USER= | |
DB_USER_PASSWORD= | |
DB_CLUSTER= | |
G_CLIENT_ID= | |
G_CLIENT_SECRET= | |
SECRET= | |
NODE_ENV= | |
G_GEOCODE_KEY= |
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
import { createStore } from "vuex"; | |
export default createStore({ | |
state | |
mutations | |
actions | |
getters | |
}); |
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
import { createApp } from "vue"; | |
import App from "./App.vue"; | |
import store from "./store"; | |
createApp(App).use(store).mount("#app"); |
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
import { reactive } from "vue"; | |
export const store = { | |
state: reactive({ | |
numbers: [1, 2, 3] | |
}), | |
addNumber(newNumber) { | |
this.state.numbers.push(newNumber); | |
} | |
}; |
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
<template> | |
<div> | |
<h2>{{ numbers }}</h2> | |
</div> | |
</template> | |
<script> | |
import { emitter } from "../event-bus.js"; | |
export default { | |
name: "NumberDisplay", |
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
<template> | |
<div> | |
<input v-model="number" type="number" /> | |
<button @click="addNumber">Add new number</button> | |
</div> | |
</template> | |
<script> | |
import { emitter } from "../event-bus.js"; | |
export default { |
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
import mitt from "mitt"; | |
export const emitter = mitt(); |
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
const users: User[] = [ | |
{ | |
id: "5d378db94e84753160e08b55", | |
token: "token_************", | |
name: "James J.", | |
avatar: | |
"https://res.cloudinary.com/tiny-house/image/upload/w_1000,ar_1:1,c_fill,g_auto/v1560648533/mock/users/user-profile-1_mawp12.jpg", | |
contact: "james@tinyhouse.com", | |
walletId: "acct_************", | |
income: 723796, |
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
const listings: Listing[] = [ | |
{ | |
id: "5d378db94e84753160e08b30", | |
title: "Clean and fully furnished apartment. 5 min away from CN Tower", | |
description: | |
"2 bed, 2 bathroom cozy apartment in the heart of downtown Toronto and only 5 min away from the CN Tower, Scotiabank Arena, and Rogers Center.", | |
image: | |
"https://res.cloudinary.com/tiny-house/image/upload/v1560641352/mock/Toronto/toronto-listing-1_exv0tf.jpg", | |
host: "5d378db94e84753160e08b57", | |
type: ListingType.Apartment, |