Skip to content

Commit adc6763

Browse files
authored
Merge pull request #108 from MiladSadeghi/master
Redesign ui
2 parents e6ae118 + b1fe751 commit adc6763

101 files changed

Lines changed: 8107 additions & 5933 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

web/.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false

web/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

web/.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 80,
6+
"plugins": [
7+
"prettier-plugin-tailwindcss"
8+
],
9+
"tailwindConfig": "./tailwind.config.js"
10+
}

web/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM node:18-alpine AS builder
1+
FROM node:20-alpine AS builder
22
ARG VITE_API_CLIENT_BASE_URL
33
ENV VITE_API_CLIENT_BASE_URL=${VITE_API_CLIENT_BASE_URL}
44
WORKDIR /app
5-
RUN npm install -g pnpm
6-
COPY package.json pnpm-lock.yaml ./
7-
RUN pnpm install
5+
COPY package.json package-lock.json ./
6+
RUN npm install
87
COPY . .
9-
RUN pnpm run build
8+
RUN npm run build
109

1110
FROM nginx:stable-alpine AS production
1211
WORKDIR /usr/share/nginx/html

web/eslint.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import globals from 'globals'
33
import reactHooks from 'eslint-plugin-react-hooks'
44
import reactRefresh from 'eslint-plugin-react-refresh'
55
import tseslint from 'typescript-eslint'
6+
import eslintPluginPrettier from 'eslint-plugin-prettier'
7+
import eslintConfigPrettier from "eslint-config-prettier"
68

79
export default tseslint.config(
8-
{ ignores: ['dist'] },
10+
{ ignores: ['dist', 'node_modules'] },
911
{
1012
extends: [js.configs.recommended, ...tseslint.configs.recommended],
1113
files: ['**/*.{ts,tsx}'],
@@ -16,6 +18,7 @@ export default tseslint.config(
1618
plugins: {
1719
'react-hooks': reactHooks,
1820
'react-refresh': reactRefresh,
21+
'prettier': eslintPluginPrettier
1922
},
2023
rules: {
2124
...reactHooks.configs.recommended.rules,
@@ -24,5 +27,6 @@ export default tseslint.config(
2427
{ allowConstantExport: true },
2528
],
2629
},
30+
eslintConfigPrettier
2731
},
2832
)

web/index.html

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link
6-
rel="icon"
7-
type="image/svg+xml"
8-
href="/logo-svg.svg"
9-
style="height: 36px; width: 36px"
10-
/>
11-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
12-
<title>Devops-GPT</title>
13-
</head>
14-
<body class="bg-gradient-to-br pb-5 from-black to-neutral-600 p-0 m-0">
15-
<div id="root"></div>
16-
<script type="module" src="/src/main.tsx"></script>
17-
</body>
18-
</html>
1+
<!doctype html>
2+
<html lang="en" data-theme="dark">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<link rel="icon" type="image/png" href="/images/favicon-96x96.png" sizes="96x96" />
9+
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
10+
<link rel="shortcut icon" href="/images/favicon.ico" />
11+
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png" />
12+
<meta name="apple-mobile-web-app-title" content="Devops GPT" />
13+
<title>DevopsGpt</title>
14+
</head>
15+
16+
<body>
17+
<div id="root"></div>
18+
<script type="module" src="/src/main.tsx"></script>
19+
</body>
20+
21+
</html>

0 commit comments

Comments
 (0)