Skip to content

Commit ef91a64

Browse files
committed
2 parents b5a8d21 + bc5e178 commit ef91a64

39 files changed

+411
-991
lines changed

archive/[legal].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const Legal = (props: ILegalDocProps) => {
6161
<Navbar current="posts" />
6262
<div className="bg-white pt-5">
6363
<div className="max-w-6xl mx-auto px-2">
64-
<article className="prose !max-w-none prose-img:mx-auto prose-img:max-h-[512px] prose-headings:text-gray-700 prose-strong:text-gray-700">
64+
<article className="prose max-w-none! prose-img:mx-auto prose-img:max-h-[512px] prose-headings:text-gray-700 prose-strong:text-gray-700">
6565
<h1 className="mt-2 mb-0 text-3xl text-center text-gray-800">
6666
{legalDocData.title}
6767
</h1>

cache/plugins-cache.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ export class PluginsCache {
9292
let prisma: PrismaClient = new PrismaClient();
9393
let pluginRecords: Plugin[];
9494

95-
if (process.env.NODE_ENV === 'test') {
95+
if (process.env.NODE_ENV == 'development') {
96+
pluginRecords = await prisma.plugin.findMany({
97+
orderBy: { createdAt: 'desc' },
98+
take: 50,
99+
});
100+
} else if (process.env.NODE_ENV === 'test') {
96101
pluginRecords = await prisma.plugin.findMany({
97102
where: {
98103
OR: [

components/FavPluginUpdates.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const NoFavPlugins = () => {
6464
</div>
6565
<motion.div
6666
layout
67-
className="basis-full lg:basis-1/2 lg:w-1/2 p-8 bg-gradient-to-r from-violet-300 to-fuchsia-300 rounded h-svh shadow-lg"
67+
className="basis-full lg:basis-1/2 lg:w-1/2 p-8 bg-linear-to-r from-violet-300 to-fuchsia-300 rounded h-svh shadow-lg"
6868
>
6969
<StepImage step={step} />
7070
</motion.div>
@@ -107,7 +107,7 @@ const StepImage = ({ step }) => {
107107
height={0}
108108
sizes="100vw"
109109
style={{ width: '100%', height: '100%' }}
110-
className="rounded border shadow"
110+
className="rounded border shadow-sm"
111111
/>
112112
);
113113
};

components/Footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Twitter, Youtube } from 'react-feather';
55

66
const customTheme: CustomFlowbiteTheme['footer'] = {
77
brand: {
8-
span: 'self-center whitespace-nowrap text-2xl font-semibold !text-gray-100 dark:text-white',
8+
span: 'self-center whitespace-nowrap text-2xl font-semibold text-gray-100! dark:text-white',
99
},
1010
};
1111

@@ -20,7 +20,7 @@ export const Footer = () => {
2020
theme={customTheme}
2121
>
2222
<div className="grid w-full justify-between sm:flex sm:justify-between md:flex md:grid-cols-1">
23-
<div className="!text-red-50">
23+
<div className="text-red-50!">
2424
<FlowbiteFooter.Brand
2525
href="https://www.obsidianstats.com"
2626
src="/favicon-64.png"

components/PluginsListView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const PluginsListView = ({
5050
const PluginView = (props) => {
5151
const { plugin, idx, pad, favorites, setFavorites, showDownloadStat } = props;
5252
return (
53-
<List.Item className="!mt-0 py-3 px-2 w-full hover:bg-slate-50">
53+
<List.Item className="mt-0! py-3 px-2 w-full hover:bg-slate-50">
5454
<div className="flex flex-col md:flex-row items-start space-x-4 rtl:space-x-reverse">
5555
<div className="text-xl ml-4 md:ml-0">
5656
{String(idx).padStart(pad, '0')}.

components/Sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export const Sidebar = ({ pageInfo, suggestions }: ISidebarProps) => {
9191
className="flex border border-gray-200 p-3 rounded w-full h-[130px] min-h-[130px] max-h-[130px] cursor-pointer"
9292
>
9393
<div
94-
className={`w-[120px] min-w-[120px] max-w-[120px] h-[90px] min-h-[90px] max-h-[90px] bg-gradient-to-br ${getGraidentFrom(index)} ${getGraidentTo(index)} flex justify-center items-center self-center`}
94+
className={`w-[120px] min-w-[120px] max-w-[120px] h-[90px] min-h-[90px] max-h-[90px] bg-linear-to-br ${getGraidentFrom(index)} ${getGraidentTo(index)} flex justify-center items-center self-center`}
9595
>
9696
<Tool size={48} color="white" />
9797
</div>
@@ -117,7 +117,7 @@ export const Sidebar = ({ pageInfo, suggestions }: ISidebarProps) => {
117117
className="flex border border-gray-200 p-3 rounded w-full h-[130px] min-h-[130px] max-h-[130px] cursor-pointer"
118118
>
119119
<div
120-
className={`w-[120px] min-w-[120px] max-w-[120px] h-[90px] min-h-[90px] max-h-[90px] bg-gradient-to-br ${getGraidentFrom(index)} ${getGraidentTo(index)} flex justify-center items-center self-center`}
120+
className={`w-[120px] min-w-[120px] max-w-[120px] h-[90px] min-h-[90px] max-h-[90px] bg-linear-to-br ${getGraidentFrom(index)} ${getGraidentTo(index)} flex justify-center items-center self-center`}
121121
>
122122
<PostIcon tags={post.tags} size={60} />
123123
</div>

components/background/wave-background.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ interface IWavesBackgroundProps {
1111

1212
const WavesBackground = ({ title }: IWavesBackgroundProps) => {
1313
return (
14-
<section className='bg-gradient-to-b from-violet-800 via-violet-600 to-violet-500 rounded-t-2xl overflow-hidden'>
14+
<section className='bg-linear-to-b from-violet-800 via-violet-600 to-violet-500 rounded-t-2xl overflow-hidden'>
1515
{/* <div className='h-[60px]'></div> */}
1616
<h1 className='pb-12 pt-16 px-8 flex justify-center items-center text-white text-3xl leading-tight whitespace-wrap break-keep'>{title}</h1>
1717
<div className="relative h-[60px] overflow-hidden">
1818
<div
19-
className="absolute bottom-0 left-0 w-full h-[50px] z-[1000] opacity-100 animate-[wave_30s_linear_infinite]"
19+
className="absolute bottom-0 left-0 w-full h-[50px] z-1000 opacity-100 animate-[wave_30s_linear_infinite]"
2020
style={waveStyle}
2121
/>
2222
<div
23-
className="absolute bottom-[5px] left-0 w-full h-[50px] z-[999] opacity-50 animate-[wave2_15s_linear_infinite]"
23+
className="absolute bottom-[5px] left-0 w-full h-[50px] z-999 opacity-50 animate-[wave2_15s_linear_infinite]"
2424
style={waveStyle}
2525
/>
2626
<div
27-
className="absolute bottom-[7px] left-0 w-full h-[50px] z-[998] opacity-20 animate-[wave_30s_linear_infinite] [animation-delay:-2s]"
27+
className="absolute bottom-[7px] left-0 w-full h-[50px] z-998 opacity-20 animate-[wave_30s_linear_infinite] [animation-delay:-2s]"
2828
style={waveStyle}
2929
/>
3030
<div
31-
className="absolute bottom-[10px] left-0 w-full h-[50px] z-[997] opacity-70 animate-[wave2_5s_linear_infinite] [animation-delay:-5s]"
31+
className="absolute bottom-[10px] left-0 w-full h-[50px] z-997 opacity-70 animate-[wave2_5s_linear_infinite] [animation-delay:-5s]"
3232
style={waveStyle}
3333
/>
3434
</div>

components/home/Highlights.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ const mockHighlights: Highlight[] = [
1111
description: 'Description for highlight one.',
1212
link: '/posts/highlight-one',
1313
ctaText: 'Read More',
14-
bgClasses: 'bg-gradient-to-tr from-fuchsia-400 to-purple-400 text-black',
14+
bgClasses: 'bg-linear-to-tr from-fuchsia-400 to-purple-400 text-black',
1515
},
1616
{
1717
title: 'Highlight Two',
1818
image: '/images/highlight-two.png',
1919
description: 'Description for highlight two.',
2020
link: '/posts/highlight-two',
2121
ctaText: 'Read More',
22-
bgClasses: 'bg-gradient-to-tr from-fuchsia-400 to-purple-400 text-black',
22+
bgClasses: 'bg-linear-to-tr from-fuchsia-400 to-purple-400 text-black',
2323
},
2424
];
2525

components/home/SubstackNewsletter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Rss } from 'react-feather';
55
export const SubstackNewsletter = () => {
66
return (
77
<div className="bg-transparent mt-32">
8-
<div className="max-w-6xl mx-auto px-2 flex flex-col rounded bg-gradient-to-br from-yellow-200 to-yellow-200">
8+
<div className="max-w-6xl mx-auto px-2 flex flex-col rounded bg-linear-to-br from-yellow-200 to-yellow-200">
99
<div>
1010
<div className="text-center px-8 text-2xl font-bold text-gray-800 mt-8">
1111
Subscribe to our RSS feeds

components/ui/button.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ import { cva, type VariantProps } from 'class-variance-authority';
55
import { cn } from '@/lib/utils';
66

77
const buttonVariants = cva(
8-
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
8+
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
99
{
1010
variants: {
1111
variant: {
1212
default:
13-
'bg-primary text-primary-foreground shadow hover:bg-primary/90',
13+
'bg-primary text-primary-foreground shadow-sm hover:bg-primary/90',
1414
destructive:
15-
'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90',
15+
'bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90',
1616
outline:
17-
'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground',
17+
'border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground',
1818
secondary:
19-
'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80',
19+
'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
2020
ghost: 'hover:bg-accent hover:text-accent-foreground',
2121
link: 'text-primary underline-offset-4 hover:underline',
2222
},

0 commit comments

Comments
 (0)