Skip to content

Commit

Permalink
Merge pull request #11 from ONLYOFFICE/develop
Browse files Browse the repository at this point in the history
Release/2.1.0
  • Loading branch information
LinneyS authored Jul 26, 2024
2 parents d401c9f + 0b7493a commit e9eab62
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 32 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 2.1.0
## Added
- sr-Cyrl-RS empty files

## Changed
- support DocSpace v2.6

## 2.0.0
## Added
- downloading files in browser
Expand Down
2 changes: 1 addition & 1 deletion DocStore
Submodule DocStore updated 85 files
+0 −3 README.md
+ ar-SA/new.docxf
+ ar-SA/new.pdf
+ az-Latn-AZ/new.docxf
+ az-Latn-AZ/new.pdf
+ az-Latn-AZ/new.xlsx
+ bg-BG/new.docxf
+ bg-BG/new.pdf
+ cs-CZ/new.docxf
+ cs-CZ/new.pdf
+ de-DE/new.docxf
+ de-DE/new.pdf
+ el-GR/new.docxf
+ el-GR/new.pdf
+ el-GR/new.xlsx
+ en-GB/new.docxf
+ en-GB/new.pdf
+ en-US/new.docxf
+ en-US/new.pdf
+ es-ES/new.docxf
+ es-ES/new.pdf
+ es-ES/new.xlsx
+ eu-ES/new.docxf
+ eu-ES/new.pdf
+ fr-FR/new.docxf
+ fr-FR/new.pdf
+ fr-FR/new.xlsx
+ gl-ES/new.docxf
+ gl-ES/new.pdf
+ hy-AM/new.docxf
+ hy-AM/new.pdf
+ it-IT/new.docxf
+ it-IT/new.pdf
+ it-IT/new.xlsx
+ ja-JP/new.docxf
+ ja-JP/new.pdf
+ ja-JP/new.xlsx
+ ko-KR/new.docxf
+ ko-KR/new.pdf
+ ko-KR/new.xlsx
+ lv-LV/new.docxf
+ lv-LV/new.pdf
+ lv-LV/new.xlsx
+ ms-MY/new.docxf
+ ms-MY/new.pdf
+ nl-NL/new.docxf
+ nl-NL/new.pdf
+ nl-NL/new.pptx
+ pl-PL/new.docxf
+ pl-PL/new.pdf
+ pl-PL/new.xlsx
+ pt-BR/new.docxf
+ pt-BR/new.pdf
+ pt-BR/new.xlsx
+ pt-PT/new.docxf
+ pt-PT/new.pdf
+ ru-RU/new.docxf
+ ru-RU/new.pdf
+ si-LK/new.docxf
+ si-LK/new.pdf
+ sk-SK/new.docxf
+ sk-SK/new.pdf
+ sk-SK/new.xlsx
+ sr-Cyrl-RS/new.docx
+ sr-Cyrl-RS/new.pdf
+ sr-Cyrl-RS/new.pptx
+ sr-Cyrl-RS/new.xlsx
+ sr-Latn-RS/new.docxf
+ sr-Latn-RS/new.pdf
+ sv-SE/new.docxf
+ sv-SE/new.pdf
+ sv-SE/new.xlsx
+ tr-TR/new.docxf
+ tr-TR/new.pdf
+ uk-UA/new.docxf
+ uk-UA/new.pdf
+ uk-UA/new.xlsx
+ vi-VN/new.docxf
+ vi-VN/new.pdf
+ vi-VN/new.xlsx
+ zh-CN/new.docxf
+ zh-CN/new.pdf
+ zh-CN/new.xlsx
+ zh-TW/new.docxf
+ zh-TW/new.pdf
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ ARG REPO_BUID="mcr.microsoft.com/dotnet/sdk:8.0"
ARG REPO_RUNTIME="mcr.microsoft.com/dotnet/aspnet:8.0"
ARG REPO_ROUTER="nginx:latest"
ARG COUNT_WORKER_CONNECTIONS=1024

FROM $REPO_BUID AS build

WORKDIR /app

COPY . .
Expand All @@ -13,14 +15,15 @@ WORKDIR /app/server/ASC.ZoomService
RUN dotnet publish --self-contained true -c Release -o out

FROM $REPO_RUNTIME AS api

LABEL vendor = "ONLYOFFICE" \
maintainer = scensio System SIA <[email protected]>
WORKDIR /app/ASC.ZoomService
COPY --from=build /app/server/ASC.ZoomService/out/. ./
COPY --from=build /app/server/ASC.ZoomService/out/config/. /app/onlyoffice/config/

ENTRYPOINT ["dotnet", "ASC.ZoomService.dll" ]
CMD ["--pathToConf", "/app/onlyoffice/config/", "--Urls", "http://0.0.0.0:80"]
CMD ["--pathToConf", "/app/onlyoffice/config/", "--Urls", "http://0.0.0.0:80", "--log:dir", "/app/onlyoffice/log", "--log:name", "ASC.ZoomService"]

FROM $REPO_ROUTER AS router
LABEL vendor = "ONLYOFFICE" \
Expand Down
1 change: 1 addition & 0 deletions client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@
width: "100vw",
downloadToEvent: true,
//openLinkToEvent: true,
startFilling: false,
events: {
onDownload: onDownloadHandle,
//onOpenLink: onExternalLinkHandle,
Expand Down
1 change: 0 additions & 1 deletion server/ASC.ZoomService/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
global using ASC.Core.Tenants;
global using ASC.Core.Users;
global using ASC.EventBus.Extensions.Logger;
global using ASC.Feed.Context;
global using ASC.MessagingSystem.EF.Context;
global using ASC.Web.Core.Helpers;
global using ASC.Web.Core.PublicResources;
Expand Down
2 changes: 1 addition & 1 deletion server/ASC.ZoomService/Hubs/ZoomHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public override async Task OnDisconnectedAsync(Exception exception)
public async Task<bool> CheckIfUser()
{
var userId = await _zoomAccountHelper.GetUserIdFromZoomUid(GetUidClaim());
return !userId.HasValue || _userManager.IsUser(userId.Value);
return !userId.HasValue || await _userManager.IsUserAsync(userId.Value);
}

public bool CheckCollaboration()
Expand Down
14 changes: 7 additions & 7 deletions server/ASC.ZoomService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
.AddEnvironmentVariables()
.AddCommandLine(args);

var logger = LogManager.Setup()
.SetupExtensions(s =>
{
s.RegisterLayoutRenderer("application-context", (logevent) => AppName);
})
.LoadConfiguration(builder.Configuration, builder.Environment)
.GetLogger(typeof(Startup).Namespace);
var loggerSetup = LogManager.Setup();
loggerSetup.SetupExtensions(s =>
{
s.RegisterLayoutRenderer("application-context", (logevent) => AppName);
});
loggerSetup.LoadConfiguration(builder.Configuration, builder.Environment);
var logger = loggerSetup.GetLogger(typeof(Startup).Namespace);

try
{
Expand Down
24 changes: 3 additions & 21 deletions server/ASC.ZoomService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
// content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode

using ASC.Api.Core.Extensions;
using ASC.ApiSystem.Hubs;
using ASC.Core.Common.Notify.Engine;
using ASC.Core.Common.Quota;
Expand All @@ -35,7 +36,6 @@
using ASC.Notify.Textile;
using ASC.Web.Files;
using ASC.Web.Studio.Core.Notify;
using Microsoft.Extensions.DependencyInjection;
using System.Threading.Channels;

namespace ASC.ZoomService;
Expand Down Expand Up @@ -74,7 +74,6 @@ public async Task ConfigureServices(IServiceCollection services)
services.AddBaseDbContextPool<WebstudioDbContext>();
services.AddBaseDbContextPool<InstanceRegistrationContext>();
services.AddBaseDbContextPool<IntegrationEventLogContext>();
services.AddBaseDbContextPool<FeedDbContext>();
services.AddBaseDbContextPool<MessagesContext>();
services.AddBaseDbContextPool<WebhooksDbContext>();
services.AddBaseDbContextPool<UrlShortenerDbContext>();
Expand All @@ -97,6 +96,7 @@ public async Task ConfigureServices(IServiceCollection services)
services.AddSession();

_diHelper.Configure(services);
_diHelper.Scan();

Action<JsonOptions> jsonOptions = options =>
{
Expand All @@ -113,34 +113,18 @@ public async Task ConfigureServices(IServiceCollection services)

services.AddSingleton(jsonOptions);

_diHelper.AddControllers();
_diHelper.TryAdd<IpSecurityFilter>();
_diHelper.TryAdd<PaymentFilter>();
_diHelper.TryAdd<ProductSecurityFilter>();
_diHelper.TryAdd<TenantStatusFilter>();
_diHelper.TryAdd<ConfirmAuthHandler>();
_diHelper.TryAdd<BasicAuthHandler>();
_diHelper.TryAdd<CookieAuthHandler>();
_diHelper.TryAdd<WebhooksGlobalFilterAttribute>();

WorkContextExtension.Register(_diHelper);

services.AddSingleton(Channel.CreateUnbounded<NotifyRequest>());
services.AddSingleton(svc => svc.GetRequiredService<Channel<NotifyRequest>>().Reader);
services.AddSingleton(svc => svc.GetRequiredService<Channel<NotifyRequest>>().Writer);
services.AddHostedService<NotifySenderService>();
services.AddActivePassiveHostedService<NotifySchedulerService>(_diHelper, _configuration);
services.AddActivePassiveHostedService<NotifySchedulerService>(_configuration);

services.AddSingleton(Channel.CreateUnbounded<SocketData>());
services.AddSingleton(svc => svc.GetRequiredService<Channel<SocketData>>().Reader);
services.AddSingleton(svc => svc.GetRequiredService<Channel<SocketData>>().Writer);
services.AddHostedService<SocketService>();

services.AddSingleton<NotifyConfiguration>();
_diHelper.TryAdd<FileHandlerService>();
_diHelper.TryAdd<ASC.Web.Studio.Core.Notify.NotifyTransferRequest>();
_diHelper.TryAdd<ASC.Web.Studio.Core.Notify.ProductSecurityInterceptor>();
_diHelper.TryAdd<TextileStyler>();

if (!string.IsNullOrEmpty(_corsOrigin))
{
Expand Down Expand Up @@ -168,8 +152,6 @@ public async Task ConfigureServices(IServiceCollection services)

services.RegisterFeature();

_diHelper.TryAdd(typeof(IWebhookPublisher), typeof(WebhookPublisher));

services.AddAutoMapper(BaseStartup.GetAutoMapperProfileAssemblies());

if (!_hostEnvironment.IsDevelopment())
Expand Down

0 comments on commit e9eab62

Please sign in to comment.