Skip to content

Instantly share code, notes, and snippets.

View BlackMix's full-sized avatar
🏠
Working from home

Mix BlackMix

🏠
Working from home
  • SysWeb
View GitHub Profile
export default {
data: () => ({
online: true
}),
mounted () {
if (!window.navigator) {
this.online = false
return
}
this.online = Boolean(window.navigator.onLine)
import firebase from 'firebase'
/**
* firebase config keys
*/
import { config } from '../config/firebase.js'
const app = firebase.initializeApp(config).database()
export class FireBaseProvider
{
constructor(name)
<template>
<div>
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item">
<img class="logo" src="../assets/logo.png" width="177" height="40">
</a>
<a role="button" class="navbar-burger burger" :class="{ 'is-active': showNavMobile }"
@click="showNavMobile = !showNavMobile" aria-label="menu" aria-expanded="false" data-target="navbar">
<span aria-hidden="true"></span>
<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: {
{
"compilerOptions": {
"module": "commonjs",
"target": "ES6",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"rootDirs": [
"src"
/**
* 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)
}
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