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
| export const timeSince = ( date: string ) => { | |
| const baseDate = new Date(date) | |
| const seconds = Math.floor(( new Date().getTime() - baseDate.getTime() ) / 1000); | |
| let interval = seconds / 31536000; | |
| if (interval > 1) { |
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
| import { createStore } from 'vuex'; | |
| // My custom modules | |
| import exampleModule from './module-template'; | |
| import { ExampleStateInterface } from './module-template/state'; | |
| export interface StateInterface { | |
| // Define your own store structure, using submodules if needed | |
| // example: ExampleStateInterface; |
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> | |
| <q-page class="bg-light-green window-height window-width row justify-center items-center"> | |
| <div class="column"> | |
| <div class="row"> | |
| <h5 class="text-h5 text-white q-my-md">Company & Co</h5> | |
| </div> | |
| <div class="row"> | |
| <q-card square bordered class="q-pa-lg shadow-1"> | |
| <q-card-section> | |
| <q-form class="q-gutter-md"> |