Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
feat(admin): add server update notification support
Johan Legrandfc72430d69b9
diff --git a/backend/src/app.constants.ts b/backend/src/app.constants.tsindex 9c43e830..0a15978c 100644--- a/backend/src/app.constants.ts+++ b/backend/src/app.constants.ts@@ -3,7 +3,10 @@* This file is part of Sync-in | The open source file sync and share solution* See the LICENSE file for licensing details*/+import { version } from '../../package.json'+export const VERSION = version+export const USER_AGENT = `sync-in-server/${version}`export const CONTENT_SECURITY_POLICY = (onlyOfficeServer: string) => ({useDefaults: false,directives: {diff --git a/backend/src/app.module.ts b/backend/src/app.module.tsindex 40454604..d9e67c97 100755--- a/backend/src/app.module.ts+++ b/backend/src/app.module.ts@@ -8,6 +8,7 @@ import { HttpModule } from '@nestjs/axios'import { Module } from '@nestjs/common'import { ConfigModule } from '@nestjs/config'import { LoggerModule } from 'nestjs-pino'+import { USER_AGENT } from './app.constants'import { AppService } from './app.service'import { ApplicationsModule } from './applications/applications.module'import { AuthModule } from './authentication/auth.module'@@ -36,6 +37,9 @@ import { SchedulerModule } from './infrastructure/scheduler/scheduler.module'ApplicationsModule,HttpModule.register({global: true,+ headers: {+ 'User-Agent': USER_AGENT+ },timeout: 5000,maxRedirects: 5})diff --git a/backend/src/applications/admin/admin.module.ts b/backend/src/applications/admin/admin.module.tsindex 6308cfd4..63055619 100644--- a/backend/src/applications/admin/admin.module.ts+++ b/backend/src/applications/admin/admin.module.ts@@ -5,9 +5,11 @@*/import { Module } from '@nestjs/common'+import { AdminSchedulerService } from './services/admin-scheduler.service'+import { AdminService } from './services/admin.service'@Module({controllers: [],- providers: []+ providers: [AdminService, AdminSchedulerService]})export class AdminModule {}diff --git a/backend/src/applications/admin/interfaces/check-update.interfaces.ts b/backend/src/applications/admin/interfaces/check-update.interfaces.tsnew file mode 100644index 00000000..e7b11c83--- /dev/null+++ b/backend/src/applications/admin/interfaces/check-update.interfaces.ts@@ -0,0 +1,14 @@+/*+ * Copyright (C) 2012-2025 Johan Legrand <[email protected]>+ * This file is part of Sync-in | The open source file sync and share solution+ * See the LICENSE file for licensing details+ */++export interface ServerReleaseVersionManifest {+ // tag_name: `v1.0.0`+ tag_name: string+}++export interface ServerReleaseNotification {+ version: string+}diff --git a/backend/src/applications/admin/services/admin-scheduler.service.ts b/backend/src/applications/admin/services/admin-scheduler.service.tsnew file mode 100644index 00000000..c74ecef6--- /dev/null+++ b/backend/src/applications/admin/services/admin-scheduler.service.ts@@ -0,0 +1,23 @@+/*+ * Copyright (C) 2012-2025 Johan Legrand <[email protected]>+ * This file is part of Sync-in | The open source file sync and share solution+ * See the LICENSE file for licensing details+ */++import { Injectable } from '@nestjs/common'+import { Cron, CronExpression } from '@nestjs/schedule'+import { setTimeout } from 'node:timers/promises'+import { AdminService } from './admin.service'++@Injectable()+export class AdminSchedulerService {+ constructor(private readonly adminService: AdminService) {}++ @Cron(CronExpression.EVERY_DAY_AT_9AM)+ async checkServerUpdateAndNotify() {+ // Apply a random delay so instances don't trigger the check simultaneously+ const randomDelay = Math.floor(Math.random() * 900 * 1000)+ await setTimeout(randomDelay)+ await this.adminService.checkServerUpdateAndNotify()+ }+}diff --git a/backend/src/applications/admin/services/admin.service.spec.ts b/backend/src/applications/admin/services/admin.service.spec.tsnew file mode 100644index 00000000..44c650a2--- /dev/null+++ b/backend/src/applications/admin/services/admin.service.spec.ts@@ -0,0 +1,34 @@+/*+ * Copyright (C) 2012-2025 Johan Legrand <[email protected]>+ * This file is part of Sync-in | The open source file sync and share solution+ * See the LICENSE file for licensing details+ */++import { HttpService } from '@nestjs/axios'+import { Test, TestingModule } from '@nestjs/testing'+import { Cache } from '../../../infrastructure/cache/services/cache.service'+import { NotificationsManager } from '../../notifications/services/notifications-manager.service'+import { AdminUsersQueries } from '../../users/services/admin-users-queries.service'+import { AdminService } from './admin.service'++describe(AdminService.name, () => {+ let service: AdminService++ beforeAll(async () => {+ const module: TestingModule = await Test.createTestingModule({+ providers: [+ AdminService,+ { provide: HttpService, useValue: {} },+ { provide: Cache, useValue: {} },+ { provide: AdminUsersQueries, useValue: {} },+ { provide: NotificationsManager, useValue: {} }+ ]+ }).compile()++ service = module.get<AdminService>(AdminService)+ })++ it('should be defined', () => {+ expect(service).toBeDefined()+ })+})diff --git a/backend/src/applications/admin/services/admin.service.ts b/backend/src/applications/admin/services/admin.service.tsnew file mode 100644index 00000000..ed727296--- /dev/null+++ b/backend/src/applications/admin/services/admin.service.ts@@ -0,0 +1,80 @@+/*+ * Copyright (C) 2012-2025 Johan Legrand <[email protected]>+ * This file is part of Sync-in | The open source file sync and share solution+ * See the LICENSE file for licensing details+ */++import { HttpService } from '@nestjs/axios'+import { Injectable, Logger } from '@nestjs/common'+import type { AxiosResponse } from 'axios'+import { VERSION } from '../../../app.constants'+import { APP_URL } from '../../../common/shared'+import { Cache } from '../../../infrastructure/cache/services/cache.service'+import { HTTP_METHOD } from '../../applications.constants'+import { NOTIFICATION_APP, NOTIFICATION_APP_EVENT } from '../../notifications/constants/notifications'+import { NotificationContent } from '../../notifications/interfaces/notification-properties.interface'+import type { UserMailNotification } from '../../notifications/interfaces/user-mail-notification.interface'+import { NotificationsManager } from '../../notifications/services/notifications-manager.service'+import { AdminUsersQueries } from '../../users/services/admin-users-queries.service'+import type { ServerReleaseNotification, ServerReleaseVersionManifest } from '../interfaces/check-update.interfaces'+import { isServerUpdateAvailable } from '../utils/check-update'++@Injectable()+export class AdminService {+ private readonly logger = new Logger(AdminService.name)++ constructor(+ private readonly http: HttpService,+ private readonly cache: Cache,+ private readonly notificationsManager: NotificationsManager,+ private readonly adminUsersQueries: AdminUsersQueries+ ) {}++ async checkServerUpdateAndNotify() {+ let lastVersion: string+ try {+ const res: AxiosResponse<ServerReleaseVersionManifest> = await this.http.axiosRef({+ method: HTTP_METHOD.GET,+ url: APP_URL.SERVER_VERSION_MANIFEST+ })+ lastVersion = res.data?.tag_name || ''+ } catch (e) {+ this.logger.warn(`${this.checkServerUpdateAndNotify.name} - unable to check update: ${e}`)+ return+ }+ if (!lastVersion.startsWith('v')) {+ this.logger.warn(`${this.checkServerUpdateAndNotify.name} - unable to check version: ${lastVersion}`)+ return+ }+ lastVersion = lastVersion.slice(1) // remove 'v' to compare with the current version+ if (!isServerUpdateAvailable(VERSION, lastVersion)) {+ return+ }+ // Get the last version that was notified to administrators+ const notifiedVersion: ServerReleaseNotification = await this.cache.get(this.checkServerUpdateAndNotify.name)+ if (!notifiedVersion?.version) {+ // The version was never stored, do it+ await this.cache.set(this.checkServerUpdateAndNotify.name, { version: VERSION } satisfies ServerReleaseNotification, 0)+ return+ }+ if (notifiedVersion.version === lastVersion) {+ // Notification was already sent to administrators+ return+ }+ const adminsToNotify: UserMailNotification[] = await this.adminUsersQueries.listAdminsToNotify()+ if (!adminsToNotify.length) {+ return+ }+ const notification: NotificationContent = {+ app: NOTIFICATION_APP.UPDATE_AVAILABLE,+ event: NOTIFICATION_APP_EVENT.UPDATE_AVAILABLE,+ element: lastVersion,+ externalUrl: APP_URL.RELEASES,+ url: null+ }+ this.notificationsManager+ .create(adminsToNotify, notification)+ .then(() => this.cache.set(this.checkServerUpdateAndNotify.name, { version: lastVersion } satisfies ServerReleaseNotification, 0))+ .catch((e: Error) => this.logger.error(`${this.checkServerUpdateAndNotify.name} - ${e}`))+ }+}diff --git a/backend/src/applications/admin/utils/check-update.ts b/backend/src/applications/admin/utils/check-update.tsnew file mode 100644index 00000000..a2356fa8--- /dev/null+++ b/backend/src/applications/admin/utils/check-update.ts@@ -0,0 +1,20 @@+/*+ * Copyright (C) 2012-2025 Johan Legrand <[email protected]>+ * This file is part of Sync-in | The open source file sync and share solution+ * See the LICENSE file for licensing details+ */++export function isServerUpdateAvailable(current: string, latest: string) {+ const c = current.split('.').map(Number)+ const l = latest.split('.').map(Number)+ const max = Math.max(c.length, l.length)++ for (let i = 0; i < max; i++) {+ const cv = c[i] || 0+ const lv = l[i] || 0++ if (lv > cv) return true+ if (lv < cv) return false+ }+ return false+}diff --git a/backend/src/applications/comments/services/comments-manager.service.ts b/backend/src/applications/comments/services/comments-manager.service.tsindex 3fc7291f..c27a6c8b 100644--- a/backend/src/applications/comments/services/comments-manager.service.ts+++ b/backend/src/applications/comments/services/comments-manager.service.ts@@ -11,7 +11,7 @@ import { FilesQueries } from '../../files/services/files-queries.service'import { dirName, fileName, getProps, isPathExists } from '../../files/utils/files'import { NOTIFICATION_APP, NOTIFICATION_APP_EVENT } from '../../notifications/constants/notifications'import { NotificationContent } from '../../notifications/interfaces/notification-properties.interface'-import { UserMailNotification } from '../../notifications/interfaces/user-mail-notification'+import { UserMailNotification } from '../../notifications/interfaces/user-mail-notification.interface'import { NotificationsManager } from '../../notifications/services/notifications-manager.service'import { SpaceEnv } from '../../spaces/models/space-env.model'import { UserModel } from '../../users/models/user.model'diff --git a/backend/src/applications/comments/services/comments-queries.service.ts b/backend/src/applications/comments/services/comments-queries.service.tsindex b1107f1e..baeece9f 100644--- a/backend/src/applications/comments/services/comments-queries.service.ts+++ b/backend/src/applications/comments/services/comments-queries.service.ts@@ -11,7 +11,7 @@ import { DB_TOKEN_PROVIDER } from '../../../infrastructure/database/constants'import type { DBSchema } from '../../../infrastructure/database/interfaces/database.interface'import { dbCheckAffectedRows, dbGetInsertedId } from '../../../infrastructure/database/utils'import { filePathSQL, files } from '../../files/schemas/files.schema'-import { UserMailNotification } from '../../notifications/interfaces/user-mail-notification'+import { UserMailNotification } from '../../notifications/interfaces/user-mail-notification.interface'import { shares } from '../../shares/schemas/shares.schema'import { SharesQueries } from '../../shares/services/shares-queries.service'import { SPACE_ALIAS, SPACE_REPOSITORY } from '../../spaces/constants/spaces'diff --git a/backend/src/applications/notifications/constants/notifications.ts b/backend/src/applications/notifications/constants/notifications.tsindex eb4a6cfe..e79dae27 100644--- a/backend/src/applications/notifications/constants/notifications.ts+++ b/backend/src/applications/notifications/constants/notifications.ts@@ -15,7 +15,8 @@ export enum NOTIFICATION_APP {SYNC = 'sync',AUTH_LOCKED = 'auth_locked',AUTH_2FA = 'auth_2fa',- UNLOCK_REQUEST = 'unlock_request'+ UNLOCK_REQUEST = 'unlock_request',+ UPDATE_AVAILABLE = 'server_update_available'}export const NOTIFICATION_APP_EVENT = {@@ -52,5 +53,6 @@ export const NOTIFICATION_APP_EVENT = {AUTH_LOCKED: {[ACTION.DELETE]: 'Your account has been locked after several unsuccessful authentication attempts'},- UNLOCK_REQUEST: 'sends you a request to unlock the file'+ UNLOCK_REQUEST: 'sends you a request to unlock the file',+ UPDATE_AVAILABLE: 'A new update is available'}diff --git a/backend/src/applications/notifications/i18n/de.ts b/backend/src/applications/notifications/i18n/de.tsindex 58fc849d..76e4f012 100644--- a/backend/src/applications/notifications/i18n/de.ts+++ b/backend/src/applications/notifications/i18n/de.ts@@ -53,5 +53,9 @@ export const de = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'Sie erhalten diese Benachrichtigung, weil sich die Sicherheit Ihres Sync-in-Kontos geändert hat. Wenn Sie der Meinung sind, dass dies ein Fehler war, überprüfen Sie bitte Ihre Sicherheitseinstellungen oder kontaktieren Sie Ihren Administrator.','Address IP': 'IP-Adresse',- Browser: 'Browser'+ Browser: 'Browser',+ 'New Version Available': 'Neue Version verfügbar',+ 'You receive this notification because you are the administrator of this server.':+ 'Sie erhalten diese Benachrichtigung, weil Sie der Administrator dieses Servers sind.',+ 'A new update is available': 'Ein neues Update ist verfügbar'} as constdiff --git a/backend/src/applications/notifications/i18n/es.ts b/backend/src/applications/notifications/i18n/es.tsindex f53f741d..d174ded6 100644--- a/backend/src/applications/notifications/i18n/es.ts+++ b/backend/src/applications/notifications/i18n/es.ts@@ -47,5 +47,9 @@ export const es = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'Ha recibido esta notificación porque la seguridad de su cuenta de Sync-in ha cambiado. Si cree que se trata de un error, revise su configuración de seguridad o contacte a su administrador.','Address IP': 'Dirección IP',- Browser: 'Navegador'+ Browser: 'Navegador',+ 'New Version Available': 'Nueva versión disponible',+ 'You receive this notification because you are the administrator of this server.':+ 'Recibe esta notificación porque es el administrador de este servidor.',+ 'A new update is available': 'Hay una nueva actualización disponible'} as constdiff --git a/backend/src/applications/notifications/i18n/fr.ts b/backend/src/applications/notifications/i18n/fr.tsindex fe7d7c26..f5bb0f3a 100644--- a/backend/src/applications/notifications/i18n/fr.ts+++ b/backend/src/applications/notifications/i18n/fr.ts@@ -44,5 +44,9 @@ export const fr = {'Two-factor authentication (2FA) on your account has been enabled': `L’authentification à deux facteurs (2FA) sur votre compte a été activée`,'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.': `Vous recevez cette notification car la sécurité de votre compte Sync-in a été modifiée. Si vous pensez qu’il s’agit d’une erreur, vérifiez vos paramètres de sécurité ou contactez votre administrateur.`,'Address IP': 'Adresse IP',- Browser: 'Navigateur'+ Browser: 'Navigateur',+ 'New Version Available': 'Nouvelle version disponible',+ 'You receive this notification because you are the administrator of this server.':+ 'Vous recevez cette notification car vous êtes l’administrateur de ce serveur.',+ 'A new update is available': 'Une nouvelle mise à jour est disponible'} as constdiff --git a/backend/src/applications/notifications/i18n/hi.ts b/backend/src/applications/notifications/i18n/hi.tsindex 9134b824..0c12d16f 100644--- a/backend/src/applications/notifications/i18n/hi.ts+++ b/backend/src/applications/notifications/i18n/hi.ts@@ -47,5 +47,9 @@ export const hi = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'आपको यह सूचना इसलिए मिली है क्योंकि आपके Sync-in खाते की सुरक्षा बदल गई है। यदि आपको लगता है कि यह गलती से हुआ है, तो कृपया अपनी सुरक्षा सेटिंग्स की समीक्षा करें या अपने प्रशासक से संपर्क करें।','Address IP': 'IP पता',- Browser: 'ब्राउज़र'+ Browser: 'ब्राउज़र',+ 'New Version Available': 'नया संस्करण उपलब्ध है',+ 'You receive this notification because you are the administrator of this server.':+ 'आपको यह सूचना इसलिए मिली है क्योंकि आप इस सर्वर के व्यवस्थापक हैं।',+ 'A new update is available': 'एक नया अपडेट उपलब्ध है'} as constdiff --git a/backend/src/applications/notifications/i18n/it.ts b/backend/src/applications/notifications/i18n/it.tsindex 91859a03..229b2298 100644--- a/backend/src/applications/notifications/i18n/it.ts+++ b/backend/src/applications/notifications/i18n/it.ts@@ -46,5 +46,9 @@ export const it = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'Hai ricevuto questa notifica perché la sicurezza del tuo account Sync-in è cambiata. Se pensi che si tratti di un errore, rivedi le impostazioni di sicurezza o contatta il tuo amministratore.','Address IP': 'Indirizzo IP',- Browser: 'Browser'+ Browser: 'Browser',+ 'New Version Available': 'Nuova versione disponibile',+ 'You receive this notification because you are the administrator of this server.':+ 'Ricevi questa notifica perché sei l’amministratore di questo server.',+ 'A new update is available': 'È disponibile un nuovo aggiornamento'} as constdiff --git a/backend/src/applications/notifications/i18n/ja.ts b/backend/src/applications/notifications/i18n/ja.tsindex 3dde48ef..2ff0ba78 100644--- a/backend/src/applications/notifications/i18n/ja.ts+++ b/backend/src/applications/notifications/i18n/ja.ts@@ -46,5 +46,9 @@ export const ja = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'この通知は、あなたの Sync-in アカウントのセキュリティが変更されたため送信されました。誤りだと思われる場合は、セキュリティ設定を確認するか管理者に連絡してください。','Address IP': 'IP アドレス',- Browser: 'ブラウザー'+ Browser: 'ブラウザー',+ 'New Version Available': '新しいバージョンが利用可能です',+ 'You receive this notification because you are the administrator of this server.':+ 'あなたがこのサーバーの管理者であるため、この通知を受け取っています。',+ 'A new update is available': '新しいアップデートが利用可能です'} as constdiff --git a/backend/src/applications/notifications/i18n/ko.ts b/backend/src/applications/notifications/i18n/ko.tsindex 0f73c038..2ead493a 100644--- a/backend/src/applications/notifications/i18n/ko.ts+++ b/backend/src/applications/notifications/i18n/ko.ts@@ -46,5 +46,8 @@ export const ko = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'Sync-in 계정의 보안이 변경되어 이 알림을 받았습니다. 실수라고 생각되면 보안 설정을 확인하거나 관리자에게 문의하세요.','Address IP': 'IP 주소',- Browser: '브라우저'+ Browser: '브라우저',+ 'New Version Available': '새 버전이 이용 가능합니다',+ 'You receive this notification because you are the administrator of this server.': '이 서버의 관리자이기 때문에 이 알림을 받았습니다.',+ 'A new update is available': '새로운 업데이트가 이용 가능합니다'} as constdiff --git a/backend/src/applications/notifications/i18n/pl.ts b/backend/src/applications/notifications/i18n/pl.tsindex 8c92399e..ff658fdd 100644--- a/backend/src/applications/notifications/i18n/pl.ts+++ b/backend/src/applications/notifications/i18n/pl.ts@@ -47,5 +47,9 @@ export const pl = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'Otrzymałeś(aś) to powiadomienie, ponieważ zmieniły się ustawienia bezpieczeństwa twojego konta Sync-in. Jeśli uważasz, że to pomyłka, sprawdź ustawienia bezpieczeństwa lub skontaktuj się z administratorem.','Address IP': 'Adres IP',- Browser: 'Przeglądarka'+ Browser: 'Przeglądarka',+ 'New Version Available': 'Dostępna jest nowa wersja',+ 'You receive this notification because you are the administrator of this server.':+ 'Otrzymujesz to powiadomienie, ponieważ jesteś administratorem tego serwera.',+ 'A new update is available': 'Dostępna jest nowa aktualizacja'} as constdiff --git a/backend/src/applications/notifications/i18n/pt.ts b/backend/src/applications/notifications/i18n/pt.tsindex 3abc0f98..4347e9fe 100644--- a/backend/src/applications/notifications/i18n/pt.ts+++ b/backend/src/applications/notifications/i18n/pt.ts@@ -47,5 +47,9 @@ export const pt = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'Recebeu esta notificação porque a segurança da sua conta Sync-in foi alterada. Se acha que foi um engano, reveja as suas definições de segurança ou contacte o seu administrador.','Address IP': 'Endereço IP',- Browser: 'Navegador'+ Browser: 'Navegador',+ 'New Version Available': 'Nova versão disponível',+ 'You receive this notification because you are the administrator of this server.':+ 'Recebe esta notificação porque é o administrador deste servidor.',+ 'A new update is available': 'Está disponível uma nova atualização'} as constdiff --git a/backend/src/applications/notifications/i18n/pt_br.ts b/backend/src/applications/notifications/i18n/pt_br.tsindex ad227d87..63f8b774 100644--- a/backend/src/applications/notifications/i18n/pt_br.ts+++ b/backend/src/applications/notifications/i18n/pt_br.ts@@ -47,5 +47,9 @@ export const pt_BR = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'Você recebeu esta notificação porque a segurança da sua conta Sync-in foi alterada. Se você acha que isso foi um engano, revise suas configurações de segurança ou entre em contato com o seu administrador.','Address IP': 'Endereço IP',- Browser: 'Navegador'+ Browser: 'Navegador',+ 'New Version Available': 'Nova versão disponível',+ 'You receive this notification because you are the administrator of this server.':+ 'Você recebe esta notificação porque é o administrador deste servidor.',+ 'A new update is available': 'Uma nova atualização está disponível'} as constdiff --git a/backend/src/applications/notifications/i18n/ru.ts b/backend/src/applications/notifications/i18n/ru.tsindex 3016bf2e..f311c7a9 100644--- a/backend/src/applications/notifications/i18n/ru.ts+++ b/backend/src/applications/notifications/i18n/ru.ts@@ -47,5 +47,9 @@ export const ru = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'Вы получили это уведомление, потому что изменились настройки безопасности вашего аккаунта в Sync-in. Если вы считаете, что это ошибка, проверьте настройки безопасности или свяжитесь с администратором.','Address IP': 'IP-адрес',- Browser: 'Браузер'+ Browser: 'Браузер',+ 'New Version Available': 'Доступна новая версия',+ 'You receive this notification because you are the administrator of this server.':+ 'Вы получаете это уведомление, потому что вы являетесь администратором этого сервера.',+ 'A new update is available': 'Доступно новое обновление'} as constdiff --git a/backend/src/applications/notifications/i18n/tr.ts b/backend/src/applications/notifications/i18n/tr.tsindex 733d4cfc..fe8fb6d7 100644--- a/backend/src/applications/notifications/i18n/tr.ts+++ b/backend/src/applications/notifications/i18n/tr.ts@@ -47,5 +47,8 @@ export const tr = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'Sync-in hesabınızın güvenliği değiştiği için bu bildirimi aldınız. Bunun bir hata olduğunu düşünüyorsanız güvenlik ayarlarınızı gözden geçirin veya yöneticinizle iletişime geçin.','Address IP': 'IP adresi',- Browser: 'Tarayıcı'+ Browser: 'Tarayıcı',+ 'New Version Available': 'Yeni sürüm mevcut',+ 'You receive this notification because you are the administrator of this server.': 'Bu bildirimi alıyorsunuz çünkü bu sunucunun yöneticisisiniz.',+ 'A new update is available': 'Yeni bir güncelleme mevcut'} as constdiff --git a/backend/src/applications/notifications/i18n/zh.ts b/backend/src/applications/notifications/i18n/zh.tsindex 404b9d35..3f0b5b5e 100644--- a/backend/src/applications/notifications/i18n/zh.ts+++ b/backend/src/applications/notifications/i18n/zh.ts@@ -45,5 +45,8 @@ export const zh = {'You received this notification because the security of your Sync-in account has changed. If you think this was a mistake, please review your security settings or contact your administrator.':'您收到此通知是因为您的 Sync-in 账户安全性发生了变化。如认为这是错误,请检查您的安全设置或联系管理员。','Address IP': 'IP 地址',- Browser: '浏览器'+ Browser: '浏览器',+ 'New Version Available': '新版本可用',+ 'You receive this notification because you are the administrator of this server.': '您收到此通知是因为您是此服务器的管理员。',+ 'A new update is available': '有可用的新更新'} as constdiff --git a/backend/src/applications/notifications/interfaces/notification-properties.interface.ts b/backend/src/applications/notifications/interfaces/notification-properties.interface.tsindex 367e5beb..9d29bb66 100644--- a/backend/src/applications/notifications/interfaces/notification-properties.interface.ts+++ b/backend/src/applications/notifications/interfaces/notification-properties.interface.ts@@ -15,6 +15,7 @@ export interface NotificationContent {event: stringelement: stringurl: string+ externalUrl?: string}export interface NotificationOptions {diff --git a/backend/src/applications/notifications/interfaces/user-mail-notification.ts b/backend/src/applications/notifications/interfaces/user-mail-notification.interface.tssimilarity index 100%rename from backend/src/applications/notifications/interfaces/user-mail-notification.tsrename to backend/src/applications/notifications/interfaces/user-mail-notification.interface.tsdiff --git a/backend/src/applications/notifications/mails/models.ts b/backend/src/applications/notifications/mails/models.tsindex 30016ed7..cc8c4a8a 100644--- a/backend/src/applications/notifications/mails/models.ts+++ b/backend/src/applications/notifications/mails/models.ts@@ -221,3 +221,18 @@ export function requestUnlockMail(return [`${tr.title}: ${capitalizeString(notification.element)}`, mailTemplate(content, footer)]}++export function serverUpdateAvailableMail(language: i18nLocale, notification: NotificationContent): [string, string] {+ const tr = translateObject(language, {+ title: 'New Version Available',+ defaultFooter: defaultFooter,+ footer: 'You receive this notification because you are the administrator of this server.',+ event: notification.event+ })++ const content = `${tr.event}: <b><a href="${notification.externalUrl}" target="_blank" rel="noopener">${notification.element}</a></b>`++ const footer = `<br>${tr.footer}<br>${tr.defaultFooter}`++ return [`${SERVER_NAME} - ${tr.title}`, mailTemplate(content, footer)]+}diff --git a/backend/src/applications/notifications/services/notifications-manager.service.ts b/backend/src/applications/notifications/services/notifications-manager.service.tsindex db1dce0f..638e5728 100644--- a/backend/src/applications/notifications/services/notifications-manager.service.ts+++ b/backend/src/applications/notifications/services/notifications-manager.service.ts@@ -14,8 +14,19 @@ import { getAvatarBase64 } from '../../users/utils/avatar'import { NOTIFICATION_APP } from '../constants/notifications'import { NOTIFICATIONS_WS } from '../constants/websocket'import type { NotificationContent, NotificationFromUser, NotificationOptions } from '../interfaces/notification-properties.interface'-import type { UserMailNotification } from '../interfaces/user-mail-notification'-import { auth2FaMail, authLockedMail, commentMail, linkMail, requestUnlockMail, shareMail, spaceMail, spaceRootMail, syncMail } from '../mails/models'+import type { UserMailNotification } from '../interfaces/user-mail-notification.interface'+import {+ auth2FaMail,+ authLockedMail,+ commentMail,+ linkMail,+ requestUnlockMail,+ serverUpdateAvailableMail,+ shareMail,+ spaceMail,+ spaceRootMail,+ syncMail+} from '../mails/models'import { WebSocketNotifications } from '../notifications.gateway'import { NotificationsQueries } from './notifications-queries.service'@@ -120,6 +131,8 @@ export class NotificationsManager {return authLockedMail(language, content)case NOTIFICATION_APP.UNLOCK_REQUEST:return requestUnlockMail(language, content, { currentUrl: options.currentUrl, author: options.author })+ case NOTIFICATION_APP.UPDATE_AVAILABLE:+ return serverUpdateAvailableMail(language, content)default:this.logger.error(`${this.genMail.name} - case not handled : ${content.app}`)}diff --git a/backend/src/applications/notifications/services/notifications-queries.service.ts b/backend/src/applications/notifications/services/notifications-queries.service.tsindex 4463d5b1..7b97991b 100644--- a/backend/src/applications/notifications/services/notifications-queries.service.ts+++ b/backend/src/applications/notifications/services/notifications-queries.service.ts@@ -12,7 +12,7 @@ import { dbCheckAffectedRows } from '../../../infrastructure/database/utils'import { USER_NOTIFICATION } from '../../users/constants/user'import { userFullNameSQL, users } from '../../users/schemas/users.schema'import type { NotificationContent, NotificationFromUser } from '../interfaces/notification-properties.interface'-import type { UserMailNotification } from '../interfaces/user-mail-notification'+import type { UserMailNotification } from '../interfaces/user-mail-notification.interface'import { Notification } from '../schemas/notification.interface'import { notifications } from '../schemas/notifications.schema'diff --git a/backend/src/applications/shares/services/shares-manager.service.ts b/backend/src/applications/shares/services/shares-manager.service.tsindex 1b20f1b8..a0133006 100644--- a/backend/src/applications/shares/services/shares-manager.service.ts+++ b/backend/src/applications/shares/services/shares-manager.service.ts@@ -28,7 +28,7 @@ import type { Link } from '../../links/schemas/link.interface'import { LinksQueries } from '../../links/services/links-queries.service'import { NOTIFICATION_APP, NOTIFICATION_APP_EVENT } from '../../notifications/constants/notifications'import type { NotificationContent, NotificationOptions } from '../../notifications/interfaces/notification-properties.interface'-import type { UserMailNotification } from '../../notifications/interfaces/user-mail-notification'+import type { UserMailNotification } from '../../notifications/interfaces/user-mail-notification.interface'import { NotificationsManager } from '../../notifications/services/notifications-manager.service'import { CACHE_QUOTA_SHARE_PREFIX, CACHE_QUOTA_TTL } from '../../spaces/constants/cache'import { SPACE_OPERATION, SPACE_PERMS_SEP, SPACE_REPOSITORY, SPACE_ROLE } from '../../spaces/constants/spaces'diff --git a/backend/src/applications/users/services/admin-users-queries.service.ts b/backend/src/applications/users/services/admin-users-queries.service.tsindex fea15b82..851c4f64 100644--- a/backend/src/applications/users/services/admin-users-queries.service.ts+++ b/backend/src/applications/users/services/admin-users-queries.service.ts@@ -10,6 +10,7 @@ import { alias, union } from 'drizzle-orm/mysql-core'import { DB_TOKEN_PROVIDER } from '../../../infrastructure/database/constants'import { DBSchema } from '../../../infrastructure/database/interfaces/database.interface'import { concatDistinctObjectsInArray, dateTimeUTC, dbCheckAffectedRows, dbGetInsertedId } from '../../../infrastructure/database/utils'+import { UserMailNotification } from '../../notifications/interfaces/user-mail-notification.interface'import { GROUP_TYPE } from '../constants/group'import { MEMBER_TYPE } from '../constants/member'import { USER_GROUP_ROLE, USER_ROLE, USER_SECRET } from '../constants/user'@@ -86,6 +87,13 @@ export class AdminUsersQueries {return rs}+ async listAdminsToNotify(): Promise<UserMailNotification[]> {+ return this.db+ .select({ id: users.id, email: users.email, language: users.language, notification: users.notification })+ .from(users)+ .where(eq(users.role, USER_ROLE.ADMINISTRATOR))+ }+async groupFromId(groupId: number): Promise<AdminGroup> {const groupParent = alias(groups, 'groupParent')const [group] = await this.dbdiff --git a/backend/src/applications/users/users.module.ts b/backend/src/applications/users/users.module.tsindex db3d687d..67bf24cb 100755--- a/backend/src/applications/users/users.module.ts+++ b/backend/src/applications/users/users.module.ts@@ -19,6 +19,6 @@ import { WebSocketUsers } from './users.gateway'@Module({controllers: [UsersController, AdminUsersController],providers: [WebSocketUsers, UserRolesGuard, UserPermissionsGuard, UsersManager, UsersQueries, AdminUsersManager, AdminUsersQueries],- exports: [UsersManager, AdminUsersManager, UsersQueries]+ exports: [UsersManager, UsersQueries, AdminUsersManager, AdminUsersQueries]})export class UsersModule {}diff --git a/backend/src/common/shared.ts b/backend/src/common/shared.tsindex 7b9fb0bf..11cbed8b 100644--- a/backend/src/common/shared.ts+++ b/backend/src/common/shared.ts@@ -4,10 +4,18 @@* See the LICENSE file for licensing details*/+/* THIS FILE IS SHARED WITH THE FRONTEND PACKAGE */+import { SPACE_PERMS_SEP } from '../applications/spaces/constants/spaces'export const SERVER_NAME = 'Sync-in' as const+export const APP_URL = {+ WEBSITE: 'https://sync-in.com',+ RELEASES: 'https://github.com/Sync-in/server/releases',+ SERVER_VERSION_MANIFEST: 'https://releases.sync-in.org/sync-in-server/latest.json'+} as const+// eslint-disable-next-line no-control-regexexport const regExpInvalidFileName = /^(?:CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$|[<>:"/\\|?*\x00-\x1f\x80-\x9f]/export const regExpPreventPathTraversal = /^(\.\.(\/|\\|$))+/diff --git a/backend/tsconfig.json b/backend/tsconfig.jsonindex 60004251..5328deca 100755--- a/backend/tsconfig.json+++ b/backend/tsconfig.json@@ -16,6 +16,7 @@"noImplicitAny": false,"strictBindCallApply": false,"noFallthroughCasesInSwitch": false,+ "resolveJsonModule": true,"types": ["jest"]diff --git a/frontend/src/app/app.constants.ts b/frontend/src/app/app.constants.tsindex e0f444cc..992a16b3 100644--- a/frontend/src/app/app.constants.ts+++ b/frontend/src/app/app.constants.ts@@ -22,8 +22,3 @@ export const APP_MENU: AppMenu = {level: 0,submenus: []} as const--export const APP_URL = {- WEBSITE: 'https://sync-in.com',- RELEASES: 'https://github.com/Sync-in/server/releases'-} as constdiff --git a/frontend/src/app/applications/notifications/components/sidebar/notifications.component.html b/frontend/src/app/applications/notifications/components/sidebar/notifications.component.htmlindex 07615efc..2ba8d109 100644--- a/frontend/src/app/applications/notifications/components/sidebar/notifications.component.html+++ b/frontend/src/app/applications/notifications/components/sidebar/notifications.component.html@@ -44,7 +44,9 @@<div class="d-flex fs-xxxs pt-1" [class.text-muted]="!n.soonRead"><div>{{ n.createdAt | amTimeAgo }}</div><div class="ms-auto">- <fa-icon [icon]="n.appIcon"></fa-icon>+ @if (n.appIcon) {+ <fa-icon [icon]="n.appIcon"></fa-icon>+ }@if (n.mainElement) {<span> {{ n.mainElement }}</span>}diff --git a/frontend/src/app/applications/notifications/components/sidebar/notifications.component.ts b/frontend/src/app/applications/notifications/components/sidebar/notifications.component.tsindex 84bea3c4..acb2c60a 100644--- a/frontend/src/app/applications/notifications/components/sidebar/notifications.component.ts+++ b/frontend/src/app/applications/notifications/components/sidebar/notifications.component.ts@@ -85,8 +85,12 @@ export class NotificationsComponent implements AfterViewInit {}goto(n: NotificationModel) {- const element = n.content.app === NOTIFICATION_APP.SYNC ? n.content.element.split('/').at(-1) : n.content.element- this.router.navigate([SPACES_PATH.SPACES, ...n.content.url.split('/')], { queryParams: { select: element } }).catch(console.error)+ if (n.content.externalUrl) {+ window.open(n.content.externalUrl, '_blank', 'noopener')+ } else {+ const element = n.content.app === NOTIFICATION_APP.SYNC ? n.content.element.split('/').at(-1) : n.content.element+ this.router.navigate([SPACES_PATH.SPACES, ...n.content.url.split('/')], { queryParams: { select: element } }).catch(console.error)+ }}private observeUnreadNotifications() {diff --git a/frontend/src/app/applications/notifications/models/notification.model.ts b/frontend/src/app/applications/notifications/models/notification.model.tsindex fc51e651..cd59fdb1 100644--- a/frontend/src/app/applications/notifications/models/notification.model.ts+++ b/frontend/src/app/applications/notifications/models/notification.model.ts@@ -41,13 +41,16 @@ export class NotificationModel implements NotificationFromUser {if (this.content.app === NOTIFICATION_APP.COMMENTS ||this.content.app === NOTIFICATION_APP.SHARES ||+ this.content.app === NOTIFICATION_APP.UPDATE_AVAILABLE ||this.content.app === NOTIFICATION_APP.SYNC) {return}- const urlFragments = this.content.url.split('/')- if (urlFragments.length > 1) {- this.mainElement = urlFragments[urlFragments.length - 1]+ if (this.content?.url) {+ const urlFragments = this.content.url.split('/')+ if (urlFragments.length > 1) {+ this.mainElement = urlFragments[urlFragments.length - 1]+ }}}}diff --git a/frontend/src/app/applications/notifications/notifications.service.ts b/frontend/src/app/applications/notifications/notifications.service.tsindex 1bb42bad..664c5c7a 100644--- a/frontend/src/app/applications/notifications/notifications.service.ts+++ b/frontend/src/app/applications/notifications/notifications.service.ts@@ -44,7 +44,7 @@ export class NotificationsService {if (checkLast && notifications.length) {const n = notifications[0]layoutNotification = this.layout.sendNotification(- 'warning',+ 'info',n.fromUser.fullName,this.layout.translateString(`${this.layout.translateString(n.content.event)}: <b>${n.content.element}</b>`),null,@@ -54,7 +54,7 @@ export class NotificationsService {const nbUnread = notifications.filter((n: NotificationModel) => !n.wasRead).lengthif (nbUnread) {layoutNotification = this.layout.sendNotification(- 'warning',+ 'info','Notifications',this.layout.translateString(nbUnread === 1 ? 'one_notification' : 'nb_notifications', { nb: nbUnread }))diff --git a/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts b/frontend/src/app/applications/users/components/sidebar/user-profile.component.tsindex 86400a5a..aee2b271 100644--- a/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts+++ b/frontend/src/app/applications/users/components/sidebar/user-profile.component.ts@@ -9,9 +9,9 @@ import { FormsModule } from '@angular/forms'import { RouterLink } from '@angular/router'import { FaIconComponent } from '@fortawesome/angular-fontawesome'import { faCircleHalfStroke, faCog, faPowerOff, faUserAlt, faUserSecret } from '@fortawesome/free-solid-svg-icons'+import { APP_URL } from '@sync-in-server/backend/src/common/shared'import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'import { Subscription } from 'rxjs'-import { APP_URL } from '../../../../app.constants'import { AuthService } from '../../../../auth/auth.service'import { CapitalizePipe } from '../../../../common/pipes/capitalize.pipe'import { themeLight } from '../../../../layout/layout.interfaces'diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.jsonindex f6bcfb6c..389863ae 100644--- a/frontend/src/i18n/de.json+++ b/frontend/src/i18n/de.json@@ -617,5 +617,6 @@"Send an unlock request": "Entsperrung anfordern","sends you a request to unlock the file": "sendet Ihnen eine Anfrage zum Entsperren der Datei","As the file owner, you can unlock the file or request the current lock owner to release it.": "Als Dateieigentümer können Sie die Datei entsperren oder den aktuellen Sperrinhaber bitten, sie freizugeben.",- "The file is edited by": "Die Datei wird bearbeitet von"+ "The file is edited by": "Die Datei wird bearbeitet von",+ "A new update is available": "Ein neues Update ist verfügbar"}\ No newline at end of filediff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.jsonindex d03f8e7d..ef45fb38 100644--- a/frontend/src/i18n/es.json+++ b/frontend/src/i18n/es.json@@ -617,5 +617,6 @@"Send an unlock request": "Enviar una solicitud de desbloqueo","sends you a request to unlock the file": "le envía una solicitud para desbloquear el archivo","As the file owner, you can unlock the file or request the current lock owner to release it.": "Como propietario del archivo, puede desbloquear el archivo o solicitar al propietario actual del bloqueo que lo libere.",- "The file is edited by": "El archivo está siendo editado por"+ "The file is edited by": "El archivo está siendo editado por",+ "A new update is available": "Hay una nueva actualización disponible"}\ No newline at end of filediff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.jsonindex b40b76d2..b3464108 100644--- a/frontend/src/i18n/fr.json+++ b/frontend/src/i18n/fr.json@@ -617,5 +617,6 @@"Send an unlock request": "Envoyer une demande de déverrouillage","sends you a request to unlock the file": "vous envoie une demande de déverrouillage du fichier","As the file owner, you can unlock the file or request the current lock owner to release it.": "En tant que propriétaire du fichier, vous pouvez déverrouiller le fichier ou demander au propriétaire actuel du verrou de le libérer.",- "The file is edited by": "Le fichier est en cours d’édition par"+ "The file is edited by": "Le fichier est en cours d’édition par",+ "A new update is available": "Une nouvelle mise à jour est disponible"}\ No newline at end of filediff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.jsonindex 0241b2ce..7b4640ca 100644--- a/frontend/src/i18n/hi.json+++ b/frontend/src/i18n/hi.json@@ -617,5 +617,6 @@"Send an unlock request": "अनलॉक करने का अनुरोध भेजें","sends you a request to unlock the file": "आपको फ़ाइल अनलॉक करने का अनुरोध भेजता है","As the file owner, you can unlock the file or request the current lock owner to release it.": "फ़ाइल के मालिक के रूप में, आप फ़ाइल को अनलॉक कर सकते हैं या वर्तमान लॉक मालिक से उसे रिलीज़ करने का अनुरोध कर सकते हैं।",- "The file is edited by": "फ़ाइल निम्न द्वारा संपादित की जा रही है"+ "The file is edited by": "फ़ाइल निम्न द्वारा संपादित की जा रही है",+ "A new update is available": "एक नया अपडेट उपलब्ध है"}\ No newline at end of filediff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.jsonindex 91a924c4..363f1f90 100644--- a/frontend/src/i18n/it.json+++ b/frontend/src/i18n/it.json@@ -617,5 +617,6 @@"Send an unlock request": "Invia una richiesta di sblocco","sends you a request to unlock the file": "ti invia una richiesta per sbloccare il file","As the file owner, you can unlock the file or request the current lock owner to release it.": "In quanto proprietario del file, puoi sbloccare il file o chiedere all’attuale proprietario del blocco di rilasciarlo.",- "The file is edited by": "Il file è in modifica da"+ "The file is edited by": "Il file è in modifica da",+ "A new update is available": "È disponibile un nuovo aggiornamento"}\ No newline at end of filediff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.jsonindex 1451d986..98400302 100644--- a/frontend/src/i18n/ja.json+++ b/frontend/src/i18n/ja.json@@ -617,5 +617,6 @@"Send an unlock request": "ロック解除を依頼","sends you a request to unlock the file": "あなたにファイルのロック解除リクエストを送信しました","As the file owner, you can unlock the file or request the current lock owner to release it.": "ファイルの所有者であるあなたは、ファイルのロックを解除するか、現在のロック所有者に解除を依頼できます。",- "The file is edited by": "ファイルは次のユーザーによって編集中です"+ "The file is edited by": "ファイルは次のユーザーによって編集中です",+ "A new update is available": "新しいアップデートが利用可能です"}\ No newline at end of filediff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.jsonindex 4a55f428..8654771f 100644--- a/frontend/src/i18n/ko.json+++ b/frontend/src/i18n/ko.json@@ -617,5 +617,6 @@"Send an unlock request": "잠금 해제 요청 보내기","sends you a request to unlock the file": "파일 잠금 해제 요청을 보냈습니다","As the file owner, you can unlock the file or request the current lock owner to release it.": "파일 소유자인 경우 파일의 잠금을 직접 해제하거나 현재 잠금 소유자에게 해제를 요청할 수 있습니다.",- "The file is edited by": "파일이 다음 사용자에 의해 편집 중입니다"+ "The file is edited by": "파일이 다음 사용자에 의해 편집 중입니다",+ "A new update is available": "새로운 업데이트가 이용 가능합니다"}\ No newline at end of filediff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.jsonindex 19279f92..146d85e1 100644--- a/frontend/src/i18n/pl.json+++ b/frontend/src/i18n/pl.json@@ -617,5 +617,6 @@"Send an unlock request": "Wyślij prośbę o odblokowanie","sends you a request to unlock the file": "wysyła do Ciebie prośbę o odblokowanie pliku","As the file owner, you can unlock the file or request the current lock owner to release it.": "Jako właściciel pliku możesz odblokować plik lub poprosić obecnego właściciela blokady o jej zwolnienie.",- "The file is edited by": "Plik jest edytowany przez"+ "The file is edited by": "Plik jest edytowany przez",+ "A new update is available": "Dostępna jest nowa aktualizacja"}\ No newline at end of filediff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.jsonindex 08e8c26d..6b0348d5 100644--- a/frontend/src/i18n/pt-BR.json+++ b/frontend/src/i18n/pt-BR.json@@ -616,5 +616,6 @@"Send an unlock request": "Enviar uma solicitação de desbloqueio","sends you a request to unlock the file": "envia para você uma solicitação para desbloquear o arquivo","As the file owner, you can unlock the file or request the current lock owner to release it.": "Como proprietário do arquivo, você pode desbloquear o arquivo ou solicitar ao proprietário atual do bloqueio que o libere.",- "The file is edited by": "O arquivo está sendo editado por"+ "The file is edited by": "O arquivo está sendo editado por",+ "A new update is available": "Uma nova atualização está disponível"}\ No newline at end of filediff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.jsonindex 3c111f27..6214f45a 100644--- a/frontend/src/i18n/pt.json+++ b/frontend/src/i18n/pt.json@@ -617,5 +617,6 @@"Send an unlock request": "Enviar um pedido de desbloqueio","sends you a request to unlock the file": "lhe envia um pedido para desbloquear o arquivo","As the file owner, you can unlock the file or request the current lock owner to release it.": "Como proprietário do arquivo, você pode desbloquear o arquivo ou solicitar ao atual proprietário do bloqueio que o libere.",- "The file is edited by": "O arquivo está sendo editado por"+ "The file is edited by": "O arquivo está sendo editado por",+ "A new update is available": "Está disponível uma nova atualização"}\ No newline at end of filediff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.jsonindex b3c73a23..f3a2275c 100644--- a/frontend/src/i18n/ru.json+++ b/frontend/src/i18n/ru.json@@ -617,5 +617,6 @@"Send an unlock request": "Отправить запрос на разблокировку","sends you a request to unlock the file": "отправляет вам запрос на разблокировку файла","As the file owner, you can unlock the file or request the current lock owner to release it.": "Как владелец файла вы можете снять блокировку файла или попросить текущего владельца блокировки её снять.",- "The file is edited by": "Файл редактируется пользователем"+ "The file is edited by": "Файл редактируется пользователем",+ "A new update is available": "Доступно новое обновление"}\ No newline at end of filediff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.jsonindex f960bf96..17b6da98 100644--- a/frontend/src/i18n/tr.json+++ b/frontend/src/i18n/tr.json@@ -617,5 +617,6 @@"Send an unlock request": "Kilidi açma isteği gönder","sends you a request to unlock the file": "dosyanın kilidini açmanız için size bir istek gönderiyor","As the file owner, you can unlock the file or request the current lock owner to release it.": "Dosyanın sahibi olarak, dosyanın kilidini açabilir veya mevcut kilit sahibinden kilidi kaldırmasını isteyebilirsiniz.",- "The file is edited by": "Dosya şu kişi tarafından düzenleniyor"+ "The file is edited by": "Dosya şu kişi tarafından düzenleniyor",+ "A new update is available": "Yeni bir güncelleme mevcut"}\ No newline at end of filediff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.jsonindex 4c57fc63..283bcff1 100644--- a/frontend/src/i18n/zh.json+++ b/frontend/src/i18n/zh.json@@ -617,5 +617,6 @@"Send an unlock request": "发送解锁请求","sends you a request to unlock the file": "向您发送了解锁该文件的请求","As the file owner, you can unlock the file or request the current lock owner to release it.": "作为文件所有者,您可以解锁该文件,或请求当前锁定所有者释放它。",- "The file is edited by": "该文件正由以下用户编辑"+ "The file is edited by": "该文件正由以下用户编辑",+ "A new update is available": "有可用的新更新"}\ No newline at end of file