Skip to content

Commit 49c04ce

Browse files
authored
Merge branch 'main' into color_blind_setting
2 parents e8c432e + f1561df commit 49c04ce

92 files changed

Lines changed: 7291 additions & 14609 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.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ resources/.DS_Store
1111
.clinic/
1212
CLAUDE.md
1313
.idea/
14+
# this is autogenerated by script
15+
src/assets/

.husky/pre-commit

100755100644
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
2+
# Deprecated with husky v9
3+
#. "$(dirname -- "$0")/_/husky.sh"
34

45
# Add PATH setup to ensure npx is found
56
export PATH="/usr/local/bin:$HOME/.npm-global/bin:$HOME/.nvm/versions/node/$(node -v)/bin:$PATH"

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ RUN --mount=type=cache,target=/root/.npm \
1212

1313
# Copy only what's needed for build
1414
COPY tsconfig.json ./
15-
COPY tsconfig.jest.json ./
16-
COPY webpack.config.js ./
15+
COPY vite.config.ts ./
1716
COPY tailwind.config.js ./
1817
COPY postcss.config.js ./
1918
COPY eslint.config.js ./
19+
COPY index.html ./
20+
COPY scripts ./scripts
2021
COPY resources ./resources
2122
COPY proprietary ./proprietary
2223
COPY src ./src
@@ -93,4 +94,4 @@ ENV CF_CONFIG_PATH=/etc/cloudflared/config.yml
9394
ENV CF_CREDS_PATH=/etc/cloudflared/creds.json
9495

9596
# Use the startup script as the entrypoint
96-
ENTRYPOINT ["/usr/local/bin/startup.sh"]
97+
ENTRYPOINT ["/usr/local/bin/startup.sh"]

eslint.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ export default [
2626
allowDefaultProject: [
2727
"__mocks__/fileMock.js",
2828
"eslint.config.js",
29-
"jest.config.ts",
3029
"postcss.config.js",
3130
"tailwind.config.js",
32-
"webpack.config.js",
31+
"scripts/sync-assets.mjs",
3332
],
3433
},
3534
tsconfigRootDir: import.meta.dirname,
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@
77
content="width=device-width, initial-scale=1.0, user-scalable=no"
88
/>
99
<title>OpenFront (ALPHA)</title>
10-
<link rel="manifest" href="../../resources/manifest.json" />
11-
<link
12-
rel="icon"
13-
type="image/x-icon"
14-
href="../../resources/images/Favicon.svg"
15-
/>
10+
<link rel="manifest" href="/manifest.json" />
11+
<link rel="icon" type="image/x-icon" href="/images/Favicon.svg" />
1612

1713
<!-- SEO -->
1814
<link rel="canonical" href="https://openfront.io/" />
@@ -119,6 +115,7 @@
119115
from {
120116
transform: translateY(-100%) rotate(0deg); /* Start off-screen */
121117
}
118+
122119
to {
123120
transform: translateY(105vh) rotate(360deg); /* Fall completely out of view */
124121
}
@@ -338,7 +335,7 @@
338335
style="width: 80px; height: 80px; background-color: var(--primaryColor)"
339336
>
340337
<img
341-
src="../../resources/images/SettingIconWhite.svg"
338+
src="/images/SettingIconWhite.svg"
342339
alt="Settings"
343340
style="width: 72px; height: 72px"
344341
/>
@@ -416,7 +413,7 @@
416413
>
417414
© OpenFront™ and Contributors
418415
<img
419-
src="../../resources/icons/github-mark-white.svg"
416+
src="/icons/github-mark-white.svg"
420417
alt="GitHub"
421418
width="20"
422419
height="20"
@@ -511,5 +508,6 @@ <h2 class="text-xl font-semibold mb-4">Select Language</h2>
511508
src="https://static.cloudflareinsights.com/beacon.min.js"
512509
data-cf-beacon='{"token": "03d93e6fefb349c28ee69b408fa25a13"}'
513510
></script>
511+
<script type="module" src="/src/client/Main.ts"></script>
514512
</body>
515513
</html>

jest.config.ts

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

0 commit comments

Comments
 (0)