Fix ESLint errors for successful deployment

- Fixed mixed operators in contentExtractor.js with proper parentheses
- Removed unused variables and imports across all components
- Fixed useCallback dependencies in ObjectEditor.js
- Corrected == to === comparisons in TableEditor.js
- Fixed undefined variable references
- Wrapped serializeToPhp in useCallback to resolve dependency warning
- Updated table column width styling from min-w to w for consistent layout

Build now passes successfully with only non-blocking warnings remaining.
This commit is contained in:
dwindown
2025-09-23 14:46:30 +07:00
parent 977e784df2
commit 5f6aa2210a
4 changed files with 14 additions and 70 deletions

View File

@@ -173,7 +173,7 @@ export const detectArticleStructure = (doc) => {
// Check meta tags for articles
const metaTags = doc.querySelectorAll('meta[property^="og:"], meta[name^="article:"]');
structure.hasMetaArticle = Array.from(metaTags).some(meta =>
meta.getAttribute('property') === 'og:type' && meta.getAttribute('content') === 'article' ||
(meta.getAttribute('property') === 'og:type' && meta.getAttribute('content') === 'article') ||
meta.getAttribute('name')?.startsWith('article:')
);
@@ -325,7 +325,7 @@ export const classifyContent = (structure, metrics, articleText) => {
export const extractContentFromUrl = async (url) => {
try {
// Fetch content
const { html, url: finalUrl, contentType } = await fetchUrlContent(url);
const { html, url: finalUrl } = await fetchUrlContent(url);
// Parse HTML
const doc = parseHtml(html);