Some checks failed
Lock Threads / action (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Publish Chatwoot EE docker images / merge (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Publish Chatwoot CE docker images / merge (push) Has been cancelled
Run Chatwoot CE spec / lint-backend (push) Has been cancelled
Run Chatwoot CE spec / lint-frontend (push) Has been cancelled
Run Chatwoot CE spec / frontend-tests (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (0, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (1, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (10, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (11, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (12, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (13, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (14, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (15, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (2, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (3, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (4, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (5, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (6, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (7, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (8, 16) (push) Has been cancelled
Run Chatwoot CE spec / backend-tests (9, 16) (push) Has been cancelled
Run Linux nightly installer / nightly (push) Has been cancelled
- Add Logistics component with progress tracking - Add OrderDetail component for order information - Support data-driven steps and actions - Add blue color scale to widget SCSS - Fix node overflow and progress bar rendering issues - Add English translations for dashboard components Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
86 lines
1.9 KiB
Vue
86 lines
1.9 KiB
Vue
<script setup>
|
|
import { computed } from 'vue';
|
|
import { useMessageContext } from '../provider.js';
|
|
|
|
const { contentAttributes } = useMessageContext();
|
|
|
|
const trackingNumber = computed(() => contentAttributes.value?.trackingNumber || 'Unknown');
|
|
const currentStep = computed(() => contentAttributes.value?.currentStep || 0);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="logistics-placeholder">
|
|
<div class="placeholder-icon">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="1" y="3" width="15" height="13"></rect>
|
|
<polygon points="16 8 20 8 17 8 16 1"></polygon>
|
|
<circle cx="5.5" cy="19.5" r="1.5"></circle>
|
|
<path d="M8 19.5V22"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="placeholder-content">
|
|
<h4 class="placeholder-title">Logistics</h4>
|
|
<p class="placeholder-text">
|
|
{{ trackingNumber }} • Step {{ currentStep + 1 }}/4
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.logistics-placeholder {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
|
|
border: 1px solid #bae6fd;
|
|
border-radius: 8px;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.dark .logistics-placeholder {
|
|
background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
|
|
border-color: #065f46;
|
|
}
|
|
|
|
.placeholder-icon {
|
|
flex-shrink: 0;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #0284c7;
|
|
}
|
|
|
|
.dark .placeholder-icon {
|
|
color: #22d3ee;
|
|
}
|
|
|
|
.placeholder-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.placeholder-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #1e293b;
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.dark .placeholder-title {
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.placeholder-text {
|
|
font-size: 13px;
|
|
color: #64748b;
|
|
margin: 0;
|
|
}
|
|
|
|
.dark .placeholder-text {
|
|
color: #94a3b8;
|
|
}
|
|
</style>
|