From bd2504a2b38afe8dcef6e7f664ffeb95d98f916a Mon Sep 17 00:00:00 2001 From: Wolfgang Ginolas Date: Tue, 22 Oct 2024 10:33:19 +0200 Subject: [PATCH] Update README --- README.md | 15 +++++++++++++-- e2etests/playwright.config.js | 4 ++-- mitmproxy/replace-oo.py | 2 ++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fa3c52bb1b..1085dd5be2 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,24 @@ # TODO -# Updating npm dependencies +# Build oofork.tar.gz + +Run ``` -bazel run -- @pnpm//:pnpm --dir $PWD install --lockfile-only +bazel build :oofork ``` +and find the result here: `bazel-bin/onlyoffice-editor.tar.gz` + # Running all tests ``` bazel test --test_output=errors //... ``` + +# Updating npm dependencies +After changing a `pachage.json` file you have to run this command to update the bazel dependencies: + +``` +bazel run -- @pnpm//:pnpm --dir $PWD install --lockfile-only +``` diff --git a/e2etests/playwright.config.js b/e2etests/playwright.config.js index 74174da538..ea58d956e1 100644 --- a/e2etests/playwright.config.js +++ b/e2etests/playwright.config.js @@ -31,9 +31,9 @@ module.exports = defineConfig({ /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', }, - timeout: 5000, + timeout: 50000, expect: { - timeout: 1000, + timeout: 10000, }, /* Configure projects for major browsers */ diff --git a/mitmproxy/replace-oo.py b/mitmproxy/replace-oo.py index fe35b6600e..9550a8b862 100644 --- a/mitmproxy/replace-oo.py +++ b/mitmproxy/replace-oo.py @@ -23,6 +23,8 @@ def request(flow: http.HTTPFlow) -> None: content, {"Content-Type": "application/javascript"}, ) + flow.response.headers["cross-origin-resource-policy"] = 'cross-origin'; + logging.info('Replaced %s (%d bytes)', path, len(content)) except: logging.error('Could not read file %s', path, exc_info=True)