Skip to content

Commit 16a6475

Browse files
committed
fix: pre-commit failures
Signed-off-by: dittops <dittops@gmail.com>
1 parent dc6faad commit 16a6475

6 files changed

Lines changed: 33 additions & 21 deletions

File tree

PolyLingua/.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ dist/
1414
downloads/
1515
eggs/
1616
.eggs/
17-
lib/
18-
lib64/
17+
# Python library directories (but allow ui/lib)
18+
/lib/
19+
/lib64/
20+
!ui/lib/
1921
parts/
2022
sdist/
2123
var/

PolyLingua/ui/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ A modern, single-page translation interface built with Next.js 14, React, and sh
2929
### Installation
3030

3131
1. Navigate to the ui directory:
32+
3233
```bash
3334
cd ui
3435
```
3536

3637
2. Install dependencies:
38+
3739
```bash
3840
npm install
3941
# or
@@ -43,6 +45,7 @@ pnpm install
4345
```
4446

4547
3. Run the development server:
48+
4649
```bash
4750
npm run dev
4851
# or
@@ -96,10 +99,10 @@ const handleTranslate = async () => {
9699
setIsLoading(true);
97100

98101
try {
99-
const response = await fetch('/api/translate', {
100-
method: 'POST',
102+
const response = await fetch("/api/translate", {
103+
method: "POST",
101104
headers: {
102-
'Content-Type': 'application/json',
105+
"Content-Type": "application/json",
103106
},
104107
body: JSON.stringify({
105108
text: sourceText,

PolyLingua/ui/lib/utils.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
import { type ClassValue, clsx } from "clsx"
2-
import { twMerge } from "tailwind-merge"
1+
// Copyright (C) 2025 Intel Corporation
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import { type ClassValue, clsx } from "clsx";
5+
import { twMerge } from "tailwind-merge";
36

47
export function cn(...inputs: ClassValue[]) {
5-
return twMerge(clsx(inputs))
8+
return twMerge(clsx(inputs));
69
}

PolyLingua/ui/next.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
// Copyright (C) 2025 Intel Corporation
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
/** @type {import('next').NextConfig} */
25
const nextConfig = {
36
reactStrictMode: true,
47
env: {
5-
NEXT_PUBLIC_BACKEND_URL: process.env.BACKEND_SERVICE_ENDPOINT || 'http://localhost:8888',
8+
NEXT_PUBLIC_BACKEND_URL: process.env.BACKEND_SERVICE_ENDPOINT || "http://localhost:8888",
69
},
7-
}
10+
};
811

9-
module.exports = nextConfig
12+
module.exports = nextConfig;

PolyLingua/ui/postcss.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
// Copyright (C) 2025 Intel Corporation
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
module.exports = {
25
plugins: {
36
tailwindcss: {},
47
autoprefixer: {},
58
},
6-
}
9+
};

PolyLingua/ui/tailwind.config.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import type { Config } from "tailwindcss"
1+
// Copyright (C) 2025 Intel Corporation
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
import type { Config } from "tailwindcss";
25

36
const config = {
47
darkMode: ["class"],
5-
content: [
6-
'./pages/**/*.{ts,tsx}',
7-
'./components/**/*.{ts,tsx}',
8-
'./app/**/*.{ts,tsx}',
9-
'./src/**/*.{ts,tsx}',
10-
],
8+
content: ["./pages/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}", "./app/**/*.{ts,tsx}", "./src/**/*.{ts,tsx}"],
119
prefix: "",
1210
theme: {
1311
container: {
@@ -75,6 +73,6 @@ const config = {
7573
},
7674
},
7775
plugins: [require("tailwindcss-animate")],
78-
} satisfies Config
76+
} satisfies Config;
7977

80-
export default config
78+
export default config;

0 commit comments

Comments
 (0)