R
R
Radiss2019-10-06 07:28:51
Node.js
Radiss, 2019-10-06 07:28:51

How to fix code in firebase after deployment?

The application template does not work <v-app app dark>because of this, inputs are not entered. Everything works with a light theme. So, how can you edit the code there after deploying to hosting? Reload new version?
app.vue

spoiler
spoiler

<template>
  <v-app dark>
    <v-navigation-drawer absolute temporary v-model="drawerToggle">
      <v-list>
        <v-list-tile>
          <v-list-tile-action>
            <v-icon>supervisor_account</v-icon>
          </v-list-tile-action>
          <v-list-tile-content>
            Online Users {{onlineUsers[0]}}
          </v-list-tile-content>
        </v-list-tile>
      </v-list>
      <v-list >
        <v-list-tile avatar v-for="user in onlineUsers[1]" @click="">
          <v-list-tile-avatar>
            <img src="https://randomuser.me/api/portraits/men/85.jpg" />
          </v-list-tile-avatar>
          <v-list-tile-content>
            <v-list-tile-title>{{user.user.username}}</v-list-tile-title>
          </v-list-tile-content>
        </v-list-tile>
      </v-list>
    </v-navigation-drawer>
    <v-toolbar class="light-blue darken-1">
      <v-toolbar-side-icon @click.stop="drawerToggle = !drawerToggle"></v-toolbar-side-icon>
      <v-toolbar-title>
        <router-link to="/chat/0" tag="span" style="cursor: pointer">Vuetify Chat</router-link>
      </v-toolbar-title>
      <v-spacer></v-spacer>
      <v-toolbar-items v-for="item in menuItems">
        <v-btn flat :key="item.title" :to="item.route">
          <v-icon left>{{ item.icon }}</v-icon>
          <div class="hidden-xs-only">{{ item.title }}</div>
        </v-btn>
      </v-toolbar-items>
    </v-toolbar>
    <main>
      <router-view></router-view>
    </main>
  </v-app>
</template>

<script>
  export default {
    data () {
      return {
        drawerToggle: false
      }
    },
    computed: {
      menuItems () {
        let items = [
          { icon: 'face', title: 'Register', route: '/register' },
          { icon: 'lock_open', title: 'Login', route: '/login' }
        ]
        if (this.userIsAuthenticated) {
          items = [
            {icon: 'chat', title: 'Create a Chat', route: '/create'}
          ]
        }
        return items
      },
      userIsAuthenticated () {
        return this.$store.getters.user !== null && this.$store.getters.user !== undefined
      },
      onlineUsers () {
        console.log(this.$store.getters.onlineUsers)
        return this.$store.getters.onlineUsers
      }
    }
  }
</script>

<style lang="stylus">
  @import './stylus/main'
</style>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Bratukhin, 2019-10-06
@radiss

You can't, but you can uninstall the previous version directly from the web console if you need to. In addition, the Firebase CDN contains not the source code, but the collected files, which are a dubious pleasure to dig into.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question