Skip to content

Commit 797ae38

Browse files
authored
Merge pull request #96 from ranuts/explore/path-d-desktop-mock
feat: v9 beta, CJK support, HiDPI fix, browser-native file editing
2 parents b766f72 + cb372fc commit 797ae38

2,038 files changed

Lines changed: 1804820 additions & 1729 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.

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: pnpm install --frozen-lockfile
7373

7474
- name: Install Playwright browsers
75-
run: pnpm exec playwright install --with-deps chromium
75+
run: pnpm --filter=@bybrowser/web exec playwright install --with-deps chromium
7676

7777
- name: Run E2E tests
7878
run: pnpm run test:e2e
@@ -82,5 +82,5 @@ jobs:
8282
uses: actions/upload-artifact@v4
8383
with:
8484
name: playwright-report
85-
path: playwright-report/
85+
path: apps/web/playwright-report/
8686
retention-days: 7

‎.github/workflows/pages-build-site.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Upload artifact
4545
uses: actions/upload-pages-artifact@v5
4646
with:
47-
path: "./dist"
47+
path: "./apps/web/dist"
4848

4949
deploy:
5050
name: Deploy to GitHub Pages

‎.github/workflows/release.yml‎

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,32 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v6
2121

22+
- uses: pnpm/action-setup@v6
23+
name: Install pnpm
24+
with:
25+
run_install: false
26+
2227
- name: Setup Node.js
2328
uses: actions/setup-node@v6
2429
with:
25-
node-version: "20"
30+
node-version: "22"
31+
cache: "pnpm"
2632

2733
- name: Install dependencies
28-
run: npm install
34+
run: pnpm install --frozen-lockfile
2935

3036
- name: Build project
31-
run: bash bin/build.sh
37+
run: pnpm build
3238

3339
- name: Create Single-File HTML
40+
working-directory: apps/web
3441
run: node bin/bundle_single_html.js
3542

3643
- name: Create ZIP archive
3744
run: |
38-
cd dist
39-
zip -r ../document-editor.zip .
40-
cd ..
45+
cd apps/web/dist
46+
zip -r ../../../document-editor.zip .
47+
cd -
4148
4249
- name: Create Release
4350
id: create_release
@@ -48,7 +55,7 @@ jobs:
4855
body: ${{ github.event.inputs.release_body }}
4956
files: |
5057
document-editor.zip
51-
dist/single-file.html
58+
apps/web/dist/single-file.html
5259
draft: false
5360
prerelease: false
5461
env:

‎.gitignore‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,11 @@ dist
1818
coverage/
1919
playwright-report/
2020
test-results/
21-
public/fonts/__fallback__/
21+
apps/web/public/fonts/__fallback__/
22+
# Large Noto CJK font families (5-24 MB each) — download separately; only the
23+
# hand-crafted Subset-LongLoca.ttf variants are tracked in the repo.
24+
apps/web/public/fonts/NotoSans*-Regular.ttf
25+
apps/web/public/fonts/NotoSans*-Bold.ttf
26+
apps/web/public/fonts/NotoSans*-VF.ttf
27+
apps/web/public/fonts/NotoSerif*-VF.ttf
28+
docs/screenshots/

‎.oxlintrc.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"**/assets/**",
66
"**/temp/**",
77
"**/public/**",
8+
"**/public-v7/**",
9+
"**/public-v9/**",
810
"**/cache/**",
911
"**/*.snap",
1012
"**/node_modules/**"

‎.prettierignore‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules/
2+
dist/
3+
coverage/
4+
playwright-report/
5+
test-results/
6+
public/
7+
docs/explorations/
8+
9+
# OnlyOffice vendor files — minified, not our code
10+
apps/web/public-v7/
11+
apps/web/public-v9/

‎CLAUDE.md‎

Lines changed: 189 additions & 26 deletions
Large diffs are not rendered by default.

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ RUN pnpm run build
2323
#COPY --from=builder /app/dist /usr/share/nginx/html
2424

2525
FROM joseluisq/static-web-server:2.42.0
26-
COPY --from=builder /app/dist /public
26+
COPY --from=builder /app/apps/web/dist /public

‎apps/web/.prettierignore‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# OnlyOffice vendor files — minified, not our code
2+
public-v7/
3+
public-v9/
4+
5+
# Build output and generated reports
6+
dist/
7+
coverage/
8+
playwright-report/
9+
test-results/

‎apps/web/bin/build.sh‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
inject_sw_version() {
6+
local sw_path="$1"
7+
if [ -f "$sw_path" ]; then
8+
local timestamp
9+
timestamp=$(date +%s)
10+
if [[ "$OSTYPE" == "darwin"* ]]; then
11+
sed -i '' "s/SW_VERSION_PLACEHOLDER/$timestamp/g" "$sw_path"
12+
else
13+
sed -i "s/SW_VERSION_PLACEHOLDER/$timestamp/g" "$sw_path"
14+
fi
15+
echo "Service Worker versioned: $sw_path ($timestamp)"
16+
fi
17+
}
18+
19+
echo "Building v7.5.0 (stable)..."
20+
pnpm vite build --config vite.v7.config.ts
21+
inject_sw_version "dist/sw.js"
22+
23+
echo "Building v9.3.0 (beta)..."
24+
pnpm vite build
25+
inject_sw_version "dist/9.3.0/sw.js"
26+
27+
echo "Build completed."

0 commit comments

Comments
 (0)