All files / components LoginComponent.js

0% Statements 0/3
100% Branches 0/0
0% Functions 0/2
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                                                             
export default {
    name: 'LoginComponent',
    data() {
        return {
            // Pola formularza logowania, jeśli występują
        };
    },
    methods: {
        // Istniejące metody logowania...
        enterGuestMode() {
            this.$root.handleGuestMode();
            this.$router.push('/menu');
        }
    },
    template: `
        <div class="login-component">
            <!-- Istniejący formularz logowania -->
            <div class="text-center space-y-4">
                <button 
                    @click="enterGuestMode" 
                    class="w-full bg-green-500 text-white px-4 py-2 rounded-md hover:bg-green-600 transition-colors"
                >
                    Graj jako gość
                </button>
                <p class="text-sm text-gray-500">
                    W trybie gościa Twoje postępy będą zapisane tylko na tym urządzeniu
                </p>
            </div>
        </div>
    `
};