Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Mar 10, 2024
1 parent b4f2da6 commit 7014ea1
Show file tree
Hide file tree
Showing 73 changed files with 367 additions and 358 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-desktop-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js 16.x
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 20.x

- name: Build
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-desktop-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js 16.x
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 20.x

- name: Build
env:
Expand Down
33 changes: 15 additions & 18 deletions app/Http/Controllers/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,25 +339,22 @@ public function online__preview()
$redirectUrl = Base::fillUrl($path);
return <<<EOF
<script>
let t = window.top
let \$A = null
while (t) {
if (t.\$A) {
\$A = t.\$A
break
}
t = t.top
}
if (\$A) {
\$A.eeuiAppSendMessage({
action: 'setPageData',
data: {
titleFixed: true,
urlFixed: true,
window.top.postMessage({
action: "eeuiAppSendMessage",
data: [
{
action: 'setPageData',
data: {
titleFixed: true,
urlFixed: true,
}
},
{
action: 'createTarget',
url: "{$redirectUrl}",
}
});
}
t.location.href = "{$redirectUrl}"
]
}, "*")
</script>
EOF;
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ services:

fileview:
container_name: "dootask-fileview-${APP_ID}"
image: "kuaifan/fileview:4.2.0-SNAPSHOT-RC23"
image: "kuaifan/fileview:4.2.0-SNAPSHOT-RC24"
environment:
KK_CONTEXT_PATH: "/fileview"
KK_OFFICE_PREVIEW_SWITCH_DISABLED: true
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7014ea1

Please sign in to comment.