156 lines
5.0 KiB
JavaScript
156 lines
5.0 KiB
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const analysisList = path.join(__dirname, 'src/views/pages/marketing/MarketingAnalysisV3List.vue');
|
|
const strategyList = path.join(__dirname, 'src/views/pages/marketing/MarketingStrategyV3List.vue');
|
|
|
|
const newStyleList = `<style scoped>
|
|
/* ═══════════════════════════════════════════
|
|
PREMIUM 3D BASE - LIST PAGES
|
|
═══════════════════════════════════════════ */
|
|
.list-page {
|
|
min-height: 100vh;
|
|
padding: 0;
|
|
font-family: 'Onest', sans-serif;
|
|
background: transparent;
|
|
}
|
|
|
|
.list-container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 40px 24px 100px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════
|
|
3D HEADER
|
|
═══════════════════════════════════════════ */
|
|
.list-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
margin-bottom: 24px;
|
|
}
|
|
.header-main { display: flex; flex-direction: column; }
|
|
|
|
.brand-tag {
|
|
display: inline-block;
|
|
padding: 6px 14px;
|
|
border-radius: 100px;
|
|
background: linear-gradient(135deg, rgba(45, 123, 255, 0.1), rgba(45, 123, 255, 0.02));
|
|
border: 1px solid rgba(45, 123, 255, 0.15);
|
|
color: #2D7BFF;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.15em;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 4px 12px rgba(45, 123, 255, 0.05);
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 36px;
|
|
font-weight: 900;
|
|
color: #0F172A;
|
|
margin: 0 0 8px 0;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.page-subtitle {
|
|
font-size: 16px;
|
|
color: #64748B;
|
|
max-width: 600px;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Actions */
|
|
.header-actions { display: flex; gap: 16px; }
|
|
|
|
/* ═══════════════════════════════════════════
|
|
3D DATA TABLE & CARDS
|
|
═══════════════════════════════════════════ */
|
|
.table-card {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
backdrop-filter: blur(20px);
|
|
border: 1px solid rgba(15, 23, 42, 0.05);
|
|
border-radius: 24px;
|
|
padding: 16px 24px;
|
|
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.03), inset 0 2px 4px rgba(255,255,255,0.8);
|
|
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.table-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 20px 40px rgba(45, 123, 255, 0.08);
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 80px 24px;
|
|
text-align: center;
|
|
background: #fff;
|
|
border-radius: 24px;
|
|
border: 2px dashed rgba(45, 123, 255, 0.2);
|
|
box-shadow: 0 10px 40px rgba(15,23,42,0.02);
|
|
}
|
|
|
|
.empty-icon {
|
|
width: 64px; height: 64px; border-radius: 20px;
|
|
background: linear-gradient(135deg, #2D7BFF, #1E60FF);
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 28px; color: #fff;
|
|
box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 8px 16px rgba(45,123,255,0.3);
|
|
margin-bottom: 24px;
|
|
}
|
|
.empty-title { font-size: 20px; font-weight: 900; color: #0F172A; margin: 0 0 8px 0; }
|
|
.empty-desc { font-size: 14px; color: #64748B; max-width: 400px; line-height: 1.6; }
|
|
|
|
/* Form Controls */
|
|
.p-inputtext, .p-dropdown {
|
|
border-radius: 12px !important;
|
|
border: 1px solid rgba(15, 23, 42, 0.1) !important;
|
|
background: #fff !important;
|
|
box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02) !important;
|
|
font-family: inherit !important;
|
|
transition: all 0.3s !important;
|
|
}
|
|
.p-inputtext:hover, .p-dropdown:hover {
|
|
border-color: #2D7BFF !important;
|
|
box-shadow: 0 4px 12px rgba(45, 123, 255, 0.1) !important;
|
|
}
|
|
|
|
.p-button {
|
|
border-radius: 12px !important;
|
|
font-weight: 800 !important;
|
|
font-family: inherit !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.05em !important;
|
|
box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
|
|
}
|
|
</style>`;
|
|
|
|
[analysisList, strategyList].forEach(file => {
|
|
if (fs.existsSync(file)) {
|
|
let content = fs.readFileSync(file, 'utf8');
|
|
const startIndex = content.indexOf('<style scoped>');
|
|
const endIndex = content.indexOf('</style>') + '</style>'.length;
|
|
if (startIndex !== -1 && endIndex !== -1) {
|
|
content = content.substring(0, startIndex) + newStyleList + content.substring(endIndex);
|
|
fs.writeFileSync(file, content);
|
|
console.log(file, 'CSS updated successfully!');
|
|
} else {
|
|
fs.writeFileSync(file, content + '\n' + newStyleList);
|
|
console.log(file, 'CSS appended successfully!');
|
|
}
|
|
}
|
|
});
|