Sha256: 97631ea49f0be829ee9de6153dcb2574c518a55f3d7b282ad0c455b22e867b48

Contents?: true

Size: 1.28 KB

Versions: 6

Compression:

Stored size: 1.28 KB

Contents

/*
Copyright (c) 2022, all rights reserved.

All the information provided by this platform is protected by international laws related  to 
industrial property, intellectual property, copyright and relative international laws. 
All intellectual or industrial property rights of the code, texts, trade mark, design, 
pictures and any other information belongs to the owner of this platform.

Without the written permission of the owner, any replication, modification,
transmission, publication is strictly forbidden.

For more information read the license file including with this software.

// · ~·~     ~·~     ~·~     ~·~     ~·~     ~·~     ~·~     ~·~     ~·~     ~·~     ~·~     ~·~
// · 
*/


// · 
import { defineStore } from "pinia"


// · 
export const useStatistics = defineStore("statistics", {
    state: () => {
        return {
            lastSyncronizationAt: "",
            totalStrings: 0,
            languages: []
        }
    },
    actions: {
        fetch() {
            this.http.get(this.url.babel('strings/stats')).then(result => {
                this.lastSyncronizationAt = result.last_syncronization_at
                this.totalStrings = result.total_strings
                this.languages = result.total_strings_translations
            })
        },

    }
})

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lesli_babel-0.6.0 lib/vue/stores/statistics.js
lesli_babel-0.5.0 lib/vue/stores/statistics.js
lesli_babel-0.4.0 lib/vue/stores/statistics.js
lesli_babel-0.3.0 lib/vue/stores/statistics.js
lesli_babel-0.2.0 lib/vue/stores/statistics.js
lesli_babel-0.1.0 lib/vue/stores/statistics.js