mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-04-10 05:44:25 +00:00
feat(app): lint & beautify
This commit is contained in:
@@ -11,7 +11,12 @@ const nextConfig = {
|
||||
},
|
||||
],
|
||||
},
|
||||
serverExternalPackages: ['pdf-parse', 'playwright', 'officeparser', 'file-type'],
|
||||
serverExternalPackages: [
|
||||
'pdf-parse',
|
||||
'playwright',
|
||||
'officeparser',
|
||||
'file-type',
|
||||
],
|
||||
outputFileTracingIncludes: {
|
||||
'/api/**': [
|
||||
'./node_modules/@napi-rs/canvas/**',
|
||||
@@ -23,8 +28,8 @@ const nextConfig = {
|
||||
NEXT_PUBLIC_VERSION: pkg.version,
|
||||
},
|
||||
turbopack: {
|
||||
root: process.cwd()
|
||||
}
|
||||
root: process.cwd(),
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
@@ -257,21 +257,21 @@ const Stock = (props: StockWidgetProps) => {
|
||||
const isPostMarket = props.marketState === 'POST';
|
||||
|
||||
const displayPrice = isPostMarket
|
||||
? props.postMarketPrice ?? props.regularMarketPrice
|
||||
? (props.postMarketPrice ?? props.regularMarketPrice)
|
||||
: isPreMarket
|
||||
? props.preMarketPrice ?? props.regularMarketPrice
|
||||
? (props.preMarketPrice ?? props.regularMarketPrice)
|
||||
: props.regularMarketPrice;
|
||||
|
||||
const displayChange = isPostMarket
|
||||
? props.postMarketChange ?? props.regularMarketChange
|
||||
? (props.postMarketChange ?? props.regularMarketChange)
|
||||
: isPreMarket
|
||||
? props.preMarketChange ?? props.regularMarketChange
|
||||
? (props.preMarketChange ?? props.regularMarketChange)
|
||||
: props.regularMarketChange;
|
||||
|
||||
const displayChangePercent = isPostMarket
|
||||
? props.postMarketChangePercent ?? props.regularMarketChangePercent
|
||||
? (props.postMarketChangePercent ?? props.regularMarketChangePercent)
|
||||
: isPreMarket
|
||||
? props.preMarketChangePercent ?? props.regularMarketChangePercent
|
||||
? (props.preMarketChangePercent ?? props.regularMarketChangePercent)
|
||||
: props.regularMarketChangePercent;
|
||||
|
||||
const changeColor = isPositive
|
||||
|
||||
Reference in New Issue
Block a user