Merge branch release/v7.4.0 into master

This commit is contained in:
papacarlo
2023-06-28 07:24:54 +00:00
4 changed files with 95 additions and 6 deletions

77
.github/workflows/ci-upload-help.yml vendored Normal file
View File

@ -0,0 +1,77 @@
name: "Build and upload helps"
on:
create:
push:
branches:
- 'release/*'
- 'hotfix/*'
paths:
- '**/resources/help/**'
jobs:
build-help:
name: "Build Apps and upload"
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/hotfix')
steps:
- name: Checkout Web-Apps
uses: actions/checkout@v3
with:
repository: onlyoffice/web-apps
ref: ${{github.ref}}
path: 'web-apps'
- name: Checkout SDKJS
uses: actions/checkout@v3
with:
repository: onlyoffice/sdkjs
ref: ${{github.ref}}
path: 'sdkjs'
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{secrets.AWS_ACCESS_KEY_ID}}
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
aws-region: us-east-1
- name: Export tag and directory path
id: tag-dir
run: |
BRANCH_NAME=${GITHUB_REF#refs/heads/}
export TAG=${BRANCH_NAME#*/}
echo "PATH=/install/desktop/editors/help/$TAG/apps" >> $GITHUB_OUTPUT
- name: Build
run: |
cd web-apps/build
./sprites.sh
npm install
grunt
- name: Upload
env:
PATH: ${{steps.tag-dir.outputs.PATH}}
run: |
aws s3 sync ./web-apps/deploy/web-apps/apps/ \
${{secrets.AWS_BUCKET_URL}}${PATH} \
--acl public-read \
--metadata-directive REPLACE
- name: Invalidate AWS CLOUDFRONT cache
env:
PATH: ${{steps.tag-dir.outputs.PATH}}
run: |
aws cloudfront create-invalidation \
--distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} \
--paths \
"${PATH}/*"

View File

@ -126,7 +126,9 @@ define([
this.formats[0].splice(3, 2); // remove docxf and oform
}
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'docx').toLowerCase(), header: this.textDownloadAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'docx').toLowerCase(),
header: /*this.textDownloadAs*/ Common.Locale.get('btnDownloadCaption', {name:'DE.Views.FileMenu', default:this.textDownloadAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));
if (_.isUndefined(this.scroller)) {
@ -250,7 +252,9 @@ define([
this.formats[0].splice(3, 2); // remove docxf and oform
}
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'docx').toLowerCase(), header: this.textSaveCopyAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'docx').toLowerCase(),
header: /*this.textSaveCopyAs*/ Common.Locale.get('btnSaveCopyAsCaption', {name:'DE.Views.FileMenu', default:this.textSaveCopyAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));
if (_.isUndefined(this.scroller)) {

View File

@ -104,7 +104,9 @@ define([
},
render: function() {
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'pptx').toLowerCase(), header: this.textDownloadAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'pptx').toLowerCase(),
header: /*this.textDownloadAs*/ Common.Locale.get('btnDownloadCaption', {name:'PE.Views.FileMenu', default:this.textDownloadAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));
if (_.isUndefined(this.scroller)) {
@ -203,7 +205,9 @@ define([
},
render: function() {
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'pptx').toLowerCase(), header: this.textSaveCopyAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'pptx').toLowerCase(),
header: /*this.textSaveCopyAs*/ Common.Locale.get('btnSaveCopyAsCaption', {name:'PE.Views.FileMenu', default:this.textSaveCopyAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));
if (_.isUndefined(this.scroller)) {

View File

@ -93,7 +93,9 @@ define([
},
render: function() {
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'xlsx').toLowerCase(), header: this.textDownloadAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'xlsx').toLowerCase(),
header: /*this.textDownloadAs*/ Common.Locale.get('btnDownloadCaption', {name:'SSE.Views.FileMenu', default:this.textDownloadAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));
if (_.isUndefined(this.scroller)) {
@ -192,7 +194,9 @@ define([
},
render: function() {
this.$el.html(this.template({rows:this.formats, fileType: (this.fileType || 'xlsx').toLowerCase(), header: this.textSaveCopyAs}));
this.$el.html(this.template({rows:this.formats,
fileType: (this.fileType || 'xlsx').toLowerCase(),
header: /*this.textSaveCopyAs*/ Common.Locale.get('btnSaveCopyAsCaption', {name:'SSE.Views.FileMenu', default:this.textSaveCopyAs})}));
$('.btn-doc-format',this.el).on('click', _.bind(this.onFormatClick,this));
if (_.isUndefined(this.scroller)) {