This file contains hidden or 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> | |
| <form @submit.prevent="submit"> | |
| <div class="form-group"> | |
| <label for="name">Name</label> | |
| <input type="text" class="form-control" name="name" id="name" v-model="fields.name" /> | |
| <div v-if="errors && errors.name" class="text-danger">{{ errors.name[0] }}</div> | |
| </div> | |
| <div class="form-group"> | |
| <label for="email">E-mail</label> | |
| <input type="email" class="form-control" name="email" id="email" v-model="fields.email" /> |
This file contains hidden or 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 paginate = async (query, pageParam = 1, perPage = 5) => { | |
| const queryBuilder = query.toConstructor(); | |
| const documentsCount = await new queryBuilder().countDocuments(); | |
| if (documentsCount === 0) { | |
| return { | |
| metas: { | |
| current_page: 1, | |
| total_count: 0, | |
| page_count: 1, |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"