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
export default { | |
data: () => ({ | |
online: true | |
}), | |
mounted () { | |
if (!window.navigator) { | |
this.online = false | |
return | |
} | |
this.online = Boolean(window.navigator.onLine) |
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 firebase from 'firebase' | |
/** | |
* firebase config keys | |
*/ | |
import { config } from '../config/firebase.js' | |
const app = firebase.initializeApp(config).database() | |
export class FireBaseProvider | |
{ | |
constructor(name) |
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
<script> | |
import MImageG from '@/bootstrap/components/mix-image/mix-image-big' | |
import { namespace } from '@/app/series/model' | |
import { namespace as namespaceSerie } from '@/app/serie/model' | |
import { short } from '@/bootstrap/utils' | |
export default { | |
name: 'tops-series', | |
props: { | |
serie_id: { |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"target": "ES6", | |
"baseUrl": ".", | |
"paths": { | |
"@/*": ["./src/*"] | |
}, | |
"rootDirs": [ | |
"src" |
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
/** | |
* isMobile | |
* return true in Mobile and false on Desktop | |
**/ | |
export const isMobile = () => { | |
return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp2|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) | |
} |
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 store from 'genesis/infra/store/index' | |
import menu from 'src/bootstrap/menus/drawer' | |
import options from 'src/bootstrap/menus/options' | |
import configurePath from 'src/bootstrap/configure/path' | |
import { APP_USER } from 'genesis/support/index' | |
import { get as git } from 'genesis/infra/storage' | |
const user = git(APP_USER) | |
import { get } from 'lodash' | |
/** | |
* @param {Vue} $component |