- Fork this repository.
- Clone the your new repository to your system.
- Create a new branch (i.e.
add/your-name). - Commit changes and push the new branch.
- Open and submit a PR.
If you have never opened a PR and need direction, read more below.
| async function fetchAndUpdatePosts() { | |
| const posts = await fetchPosts().catch(() => { | |
| console.log('error in fetching posts'); | |
| }); | |
| if (posts) { | |
| doSomethingWithPosts(posts); | |
| } | |
| } |
| # .railsrc | |
| -B #Skip Bundle | |
| -T #Skip Test-Unit | |
| -d postgresql #Use postgres |
| <template> | |
| <nav id="pagination"> | |
| <ul class="page-numbers" v-if="$store.state.totalPageCount"> | |
| <li v-for="num in this.pageNumbers" v-if="num != null" v-bind:style="{ width: (100 / pageNumberCount) + '%' }"> | |
| <nuxt-link v-if="num != $route.query.page && num != currentPage" :to="{ path: '/', query: { page: num } }">{{ num }}</nuxt-link> | |
| <span v-else>{{ num }}</span> | |
| </li> | |
| </ul> | |
| <ul class="page-guides" v-if="this.$store.state.totalPageCount != 1"> | |
| <li> |
| filters: { | |
| truncate: function (text, length, suffix) { | |
| if (text.length > length) { | |
| return text.substring(0, length) + suffix; | |
| } else { | |
| return text; | |
| } | |
| }, | |
| } |
You will need rails 6 installed. (GoRails)[https://gorails.com/setup/] is the best resource I have found to date.
You will need the (heroku cli)[https://devcenter.heroku.com/articles/heroku-cli#download-and-install] tool installed.
You will need NodeJS installed: https://nodejs.org/en/download/
| // For Firefox's Web Console, creates the functions showAsPrint() and undoShowAsPrint() | |
| // to roughly emulate print media and revert | |
| function showAsPrint(){ | |
| var docSS = document.styleSheets, ss, oldMedia, newMedia, rules; | |
| var p2s = function(media){ | |
| if (media.indexOf('all') > -1) return media; //no need to change | |
| if (media == 'print') return 'all, wasprint'; //show on screen, too | |
| if (media.indexOf('print') > -1 && media.indexOf('screen') > -1) return media; //no need to change | |
| if (media == 'screen') return 'wasscreen'; //hide these rules | |
| if (media.indexOf('screen') > -1) return media.replace('screen', 'wasscreen'); //hide these rules |
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.