Skip to content

Commit 6d6021c

Browse files
committed
Converted to Vite since create-react-app is no longer being developed
1 parent 824a22e commit 6d6021c

File tree

115 files changed

+2645
-10149
lines changed

Some content is hidden

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

115 files changed

+2645
-10149
lines changed

docker/rootfs/etc/nginx/conf.d/dev.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ server {
3434
proxy_set_header X-Forwarded-Scheme $scheme;
3535
proxy_set_header X-Forwarded-Proto $scheme;
3636
proxy_set_header X-Forwarded-For $remote_addr;
37-
proxy_pass http://127.0.0.1:9000;
37+
proxy_pass http://127.0.0.1:5173;
3838
}
3939
}

docker/rootfs/etc/s6-overlay/s6-rc.d/frontend/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ "$(is_true "$DEVELOPMENT")" = '1' ]; then
2020

2121
log_info 'Starting frontend ...'
2222
s6-setuidgid "$PUID:$PGID" yarn install
23-
exec s6-setuidgid "$PUID:$PGID" yarn start
23+
exec s6-setuidgid "$PUID:$PGID" yarn dev
2424
else
2525
exit 0
2626
fi

frontend/.env.development

Lines changed: 0 additions & 4 deletions
This file was deleted.

frontend/.eslintrc

Lines changed: 0 additions & 123 deletions
This file was deleted.

frontend/.eslintrc.cjs

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2020: true,
5+
},
6+
extends: [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:react-hooks/recommended",
10+
"plugin:import/recommended",
11+
"plugin:import/typescript",
12+
"plugin:prettier/recommended",
13+
"plugin:react/recommended",
14+
"prettier",
15+
],
16+
parser: "@typescript-eslint/parser",
17+
parserOptions: {
18+
ecmaVersion: "latest",
19+
sourceType: "module",
20+
},
21+
plugins: ["react-refresh"],
22+
settings: {
23+
"import/resolver": {
24+
// You will also need to install and configure the TypeScript resolver
25+
// See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
26+
typescript: true,
27+
node: true,
28+
},
29+
},
30+
rules: {
31+
"import/default": 0,
32+
"import/no-named-as-default-member": 0,
33+
"import/no-named-as-default": 0,
34+
"react-refresh/only-export-components": 0,
35+
"react/react-in-jsx-scope": 0,
36+
"prettier/prettier": ["error"],
37+
"@typescript-eslint/ban-ts-comment": [
38+
"error",
39+
{
40+
"ts-ignore": "allow-with-description",
41+
},
42+
],
43+
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
44+
"@typescript-eslint/explicit-function-return-type": ["off"],
45+
"@typescript-eslint/explicit-module-boundary-types": ["off"],
46+
"@typescript-eslint/explicit-member-accessibility": ["off"],
47+
"@typescript-eslint/no-empty-function": ["off"],
48+
"@typescript-eslint/no-explicit-any": ["off"],
49+
"@typescript-eslint/no-non-null-assertion": ["off"],
50+
"@typescript-eslint/naming-convention": [
51+
"error",
52+
{
53+
selector: "default",
54+
format: ["camelCase", "PascalCase", "UPPER_CASE"],
55+
leadingUnderscore: "allow",
56+
trailingUnderscore: "allow",
57+
filter: {
58+
regex: "^(2xl)$",
59+
match: false,
60+
},
61+
},
62+
],
63+
"react-hooks/rules-of-hooks": ["error"],
64+
"react-hooks/exhaustive-deps": [
65+
"warn",
66+
{
67+
additionalHooks: "useAction|useReduxAction",
68+
},
69+
],
70+
"react/jsx-curly-brace-presence": [
71+
"warn",
72+
{
73+
props: "never",
74+
children: "never",
75+
},
76+
],
77+
"no-restricted-globals": ["off"],
78+
"import/extensions": 0, // We let webpack handle resolving file extensions
79+
"import/order": [
80+
"error",
81+
{
82+
alphabetize: {
83+
order: "asc",
84+
caseInsensitive: true,
85+
},
86+
"newlines-between": "always",
87+
pathGroups: [
88+
{
89+
pattern: "@(react)",
90+
group: "external",
91+
position: "before",
92+
},
93+
{
94+
pattern: "@/@(fixtures|jest)/**",
95+
group: "internal",
96+
position: "before",
97+
},
98+
{
99+
pattern: "@/**",
100+
group: "internal",
101+
},
102+
],
103+
pathGroupsExcludedImportTypes: ["builtin", "internal"],
104+
groups: [
105+
"builtin",
106+
"external",
107+
"internal",
108+
["parent", "sibling", "index"],
109+
],
110+
},
111+
],
112+
},
113+
};
Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,49 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
55
<meta
66
name="viewport"
7-
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
8-
/>
7+
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
98
<title>Nginx Proxy Manager</title>
109
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
1110
<meta http-equiv="Content-Language" content="en" />
1211
<meta
1312
name="apple-mobile-web-app-status-bar-style"
14-
content="black-translucent"
15-
/>
13+
content="black-translucent" />
1614
<meta name="apple-mobile-web-app-capable" content="yes" />
1715
<meta name="mobile-web-app-capable" content="yes" />
1816
<meta name="HandheldFriendly" content="True" />
1917
<meta name="MobileOptimized" content="320" />
2018
<link
2119
rel="apple-touch-icon"
2220
sizes="180x180"
23-
href="/images/favicon/apple-touch-icon.png"
24-
/>
21+
href="/images/favicon/apple-touch-icon.png" />
2522
<link
2623
rel="icon"
2724
type="image/png"
2825
sizes="32x32"
29-
href="/images/favicon/favicon-32x32.png"
30-
/>
26+
href="/images/favicon/favicon-32x32.png" />
3127
<link
3228
rel="icon"
3329
type="image/png"
3430
sizes="16x16"
35-
href="/images/favicon/favicon-16x16.png"
36-
/>
31+
href="/images/favicon/favicon-16x16.png" />
3732
<link rel="manifest" href="/images/favicon/site.webmanifest" />
3833
<link
3934
rel="mask-icon"
4035
href="/images/favicon/safari-pinned-tab.svg"
41-
color="#5bbad5"
42-
/>
36+
color="#5bbad5" />
4337
<link rel="shortcut icon" href="/images/favicon/favicon.ico" />
4438
<meta name="msapplication-TileColor" content="#333333" />
4539
<meta
4640
name="msapplication-config"
47-
content="/images/favicon/browserconfig.xml"
48-
/>
41+
content="/images/favicon/browserconfig.xml" />
4942
<meta name="theme-color" content="#ffffff" />
5043
</head>
5144
<body>
5245
<noscript>You need to enable JavaScript to run this app.</noscript>
5346
<div id="root"></div>
47+
<script type="module" src="/src/main.tsx"></script>
5448
</body>
5549
</html>

0 commit comments

Comments
 (0)