Skip to content

Commit

Permalink
Merge branch 'hotfix/2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubawy committed Dec 21, 2021
2 parents e7459f4 + 79b3a9d commit 171db8f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ before use.
npm install
```

#### Starts Firebase emulator for local testing
#### Compiles, hot-reloads, and starts Firebase emulators

```
npm run serve
Expand All @@ -41,7 +41,7 @@ npm run build
npm run lint
```

#### Deploys to Firebase
#### Builds and deploys to Firebase

```
npm run deploy
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"name": "mysite",
"version": "2.0.0",
"version": "2.0.1",
"private": true,
"scripts": {
"serve": "firebase emulators:start",
"serve": "npm run build:dev && (npm run build:watch & npm run serve:firebase)",
"serve:firebase": "firebase emulators:start",
"build": "vue-cli-service build",
"build:dev": "vue-cli-service build --mode development",
"build:watch": "vue-cli-service build --mode development --watch --no-clean",
"lint": "vue-cli-service lint",
"deploy": "firebase deploy"
"deploy": "npm run build && npm run deploy:firebase",
"deploy:firebase": "firebase deploy"
},
"dependencies": {
"bootstrap": "^5.1.3",
Expand Down
9 changes: 7 additions & 2 deletions src/components/ContactForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@
</template>

<script>
import { db } from "../firebaseConfig.js";
import { analytics, db } from "../firebaseConfig.js";
import { collection, addDoc } from "firebase/firestore";
import { logEvent } from "firebase/analytics";
export default {
name: "ContactForm",
Expand All @@ -67,7 +68,7 @@ export default {
};
},
props: {
user: String,
user: Object,
},
methods: {
send() {
Expand All @@ -81,6 +82,10 @@ export default {
},
}).then(() => {
alert("Message sent!");
logEvent(analytics, "select_content", {
content_type: "form",
item_id: "email",
});
});
} else {
alert("Message rejected.");
Expand Down

0 comments on commit 171db8f

Please sign in to comment.