403Webshell
Server IP : 139.59.63.204  /  Your IP : 216.73.217.62
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/customerportal/resources/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/customerportal/resources/js/app.js
import './bootstrap';

import Alpine from 'alpinejs';
import { portalApi } from './api';
import productList  from './productList';
import productDetail  from './productDetail';
import { productForm } from './productForm';

window.Alpine = Alpine;

Alpine.data('productList', productList)
Alpine.data('productDetail', productDetail)

Alpine.data("productSearch", () => ({
    model_number: "",
    serial_number: "",
    name: "",
    sku: "",
    purchase_date: "",
    user_id:"",
    warranty_period:"",
    products: [],
    errorMessage: '',
    async search() {
        const payload = {
            model_number: this.model_number,
            serial_number: this.serial_number,
        };
        let data = await portalApi(payload);
        this.searched = true;
        if (data.error) {
            this.products = [];
            this.errorMessage = data.error === 'not_found' ? 'No data found' : 'API failed';
        } else {
            this.products = [data];
            this.errorMessage = '';
            console.log("API response:", this.products);
        }
    },

    async saveData() {
        const payload = {
            model_number: this.item.model_number,
            serial_number: this.item.serial_number,
            name: this.item.name,
            sku: this.item.sku,
            purchase_date: '2025-05-07',
            warranty_period:this.item.warranty_period
        };
        let data = await productForm(payload);
    },
}));


Alpine.start();

Youez - 2016 - github.com/yon3zu
LinuXploit