Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execute custom js from custom #1697

Merged
merged 12 commits into from
Jan 31, 2023
Merged
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ installed.log
.DS_Store
.NO_SECURE_KEY
.NO_AUTO_COMPOSER_MIGRATE
storage/bootstrap/cache/*
25 changes: 25 additions & 0 deletions app/Http/Controllers/Administration/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use App\Http\Requests\Settings\GetSetAllSettingsRequest;
use App\Http\Requests\Settings\SetAlbumDecorationRequest;
use App\Http\Requests\Settings\SetCSSSettingRequest;
use App\Http\Requests\Settings\SetJSSettingRequest;
use App\Http\Requests\Settings\SetDefaultLicenseSettingRequest;
use App\Http\Requests\Settings\SetDropboxKeySettingRequest;
use App\Http\Requests\Settings\SetImageOverlaySettingRequest;
Expand Down Expand Up @@ -333,6 +334,30 @@ public function setCSS(SetCSSSettingRequest $request): void
}
}

/**
* Takes the js input text and put it into `dist/custom.js`.
* This allows admins to actually execute custom js code on their
* Lychee-Laravel installation.
*
* @param SetJSSettingRequest $request
*
* @return void
*
* @throws InsufficientFilesystemPermissions
*/
public function setJS(SetJSSettingRequest $request): void
{
/** @var string $js */
$js = $request->getSettingValue();
if (Storage::disk('dist')->put('custom.js', $js) === true) {
ildyria marked this conversation as resolved.
Show resolved Hide resolved
if (Storage::disk('dist')->get('custom.js') !== $js) {
throw new InsufficientFilesystemPermissions('Could not save JS');
}
} else {
throw new InsufficientFilesystemPermissions('Could not save JS');
qwerty287 marked this conversation as resolved.
Show resolved Hide resolved
ildyria marked this conversation as resolved.
Show resolved Hide resolved
}
}

/**
* Returns ALL settings. This is not filtered!
* Fortunately, this is behind an admin middleware.
Expand Down
25 changes: 25 additions & 0 deletions app/Http/Requests/Settings/SetJSSettingRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace App\Http\Requests\Settings;

class SetJSSettingRequest extends AbstractSettingRequest
{
public const ATTRIBUTE = 'js';

/**
* {@inheritDoc}
*/
public function rules(): array
{
return [self::ATTRIBUTE => 'present|nullable|string'];
}

/**
* {@inheritDoc}
*/
protected function processValidatedValues(array $values, array $files): void
{
$this->name = self::ATTRIBUTE;
$this->value = $values[self::ATTRIBUTE] ?? '';
}
}
3 changes: 3 additions & 0 deletions app/Locale/ChineseSimplified.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => '公开相册的地图显示设置已更新',
'SETTINGS_SUCCESS_MAP_PROVIDER' => '地图供应商设置已更新',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => '允许公共搜索:',
'OVERLAY_TYPE' => '用于图像叠层中的数据:',
'OVERLAY_NONE' => 'No overlay',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/ChineseTraditional.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => '公開相簿的地圖顯示設置已更新',
'SETTINGS_SUCCESS_MAP_PROVIDER' => '地圖提供商設置已更新',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => '允許公共搜索:',
'OVERLAY_TYPE' => '圖像疊加中要使用的數據:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Czech.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Nastavení zobrazeni Map pro veřejná alba bylo aktualizováno',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Poskytovatel Map byl aktualizován',
'SETTINGS_SUCCESS_CSS' => 'CSS aktualizováno',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Nastavení úspešně aktualizováno',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Změna rozšířených nastavení může mít negativní vliv na stabilitu, bezpečnost a rychlost Lychee. Měňte pouze to, co opravdu dobře chápete.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Vlastní CSS:',
'CSS_TITLE' => 'Změnit CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Veřejné vyhledávání povoleno:',
'OVERLAY_TYPE' => 'Data, která budou použita na překryvu:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Dutch.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Map display settings for public albums updated',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Map provider settings updated',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Openbare zoekactie toegestaan:',
'OVERLAY_TYPE' => 'Photo overlay:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/English.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Map display settings for public albums updated',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Map provider settings updated',
'SETTINGS_SUCCESS_CSS' => 'CSS updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
qwerty287 marked this conversation as resolved.
Show resolved Hide resolved
'PUBLIC_SEARCH_TEXT' => 'Public search allowed:',
'OVERLAY_TYPE' => 'Photo overlay:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/French.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Paramètres de la carte pour les albums publics mis à jour.',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Fournisseur de la Carte mis à jour.',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets mise à jour ',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Paramètres mis à jour avec succes',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changer les paramètres avancés peut influencer la stabilité, la securité et les performances de Lychee. Modifiez à vos risques et périls.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS :',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Recherche publique autorisée :',
'OVERLAY_TYPE' => 'Informations à utiliser pour l’overlay :',
'OVERLAY_NONE' => 'Pas d’overlay',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/German.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Karteneinstellungen für öffentlichen Alben erfolgreich aktualisiert',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Provider für Karten erfolgreich aktualisiert',
'SETTINGS_SUCCESS_CSS' => 'CSS aktualisiert',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Einstellungen erfolgreich aktualisiert',
'SETTINGS_DROPBOX_KEY' => 'Dropbox-API-Schlüssel',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Ändern dieser erweiterten Einstellungen kann sich negativ auf die Stabilität, Sicherheit und Geschwindigkeit dieser Anwendung auswirken. Sie sollten sie nur ändern, wenn Sie genau wissen, was Sie tun.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'CSS personalisieren:',
'CSS_TITLE' => 'CSS ändern',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Öffentliche Suche erlauben',
'OVERLAY_TYPE' => 'Daten für Foto-Overlay:',
'OVERLAY_NONE' => 'Kein Overlay',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Greek.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Map display settings for public albums updated',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Map provider settings updated',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Να επιτρέπεται η δημόσια αναζήτηση:',
'OVERLAY_TYPE' => 'Δεδομένα που θα χρησιμοποιηθούν στο overlay εικόνας:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Italian.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Map display settings for public albums updated',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Map provider settings updated',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Ricerca pubblica consentita:',
'OVERLAY_TYPE' => 'Contenuto da utilizzare nella filigrana:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/NorwegianBokmal.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Innstillinger for Kartvisning for offentlige album oppdatert',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Innstillinger for kartleverandør oppdatert',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Offentlig søk tillatt:',
'OVERLAY_TYPE' => 'Data som skal brukes til overvisning:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Polish.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Zaktualizowano ustawienia wyświetlania mapy dla albumów publicznych',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Zaktualizowano ustawienia dostawcy map',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Public search allowed:',
'OVERLAY_TYPE' => 'Photo overlay:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Portuguese.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Configuração da janela do mapa para álbums públicos atualizada',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Provider do mapa atualizado',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Pesquisa pública permitida:',
'OVERLAY_TYPE' => 'Data a usar no overlay da imagem:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Russian.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Map display settings for public albums updated',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Map provider settings updated',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Разрешить публичный поиск:',
'OVERLAY_TYPE' => 'Данные для наложения:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Slovak.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Map display settings for public albums updated',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Map provider settings updated',
'SETTINGS_SUCCESS_CSS' => 'CSS aktualizované',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Nastavenia úspešne aktualizované',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Zmena rozšírených nastavení môže mať negatívny vplyv na stabilitu, bezpečnosť a rýchlosť tejto aplikácie. Upravujte len to, o čom presne viete, čo robíte.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Vlastné CSS:',
'CSS_TITLE' => 'CSS zmeniť',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Verejné vyhľadávanie povolené:',
'OVERLAY_TYPE' => 'Dáta použité pre overlay:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Spanish.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Configuración de visualización de mapa para álbumes públicos actualizada',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Configuración del proveedor de mapas actualizada',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Clave API Dropbox',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Búsqueda pública permitida:',
'OVERLAY_TYPE' => 'Datos para usar en la superposición de imágenes:',
'OVERLAY_NONE' => 'Ninguna',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Swedish.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Map display settings for public albums updated',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Map provider settings updated',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Dropbox API Key',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Offentlig sökning tillåts:',
'OVERLAY_TYPE' => 'Photo overlay:',
'OVERLAY_NONE' => 'None',
Expand Down
3 changes: 3 additions & 0 deletions app/Locale/Vietnamese.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public function get_locale(): array
'SETTINGS_SUCCESS_MAP_DISPLAY_PUBLIC' => 'Đã cập nhật cài đặt hiển thị bản đồ cho những album chia sẻ công cộng',
'SETTINGS_SUCCESS_MAP_PROVIDER' => 'Đã cập nhật cài đặt nhà cung cấp bản đồ',
'SETTINGS_SUCCESS_CSS' => 'Stylesheets updated',
'SETTINGS_SUCCESS_JS' => 'JS updated',
'SETTINGS_SUCCESS_UPDATE' => 'Settings updated successfully',
'SETTINGS_DROPBOX_KEY' => 'Mã API Dropbox',
'SETTINGS_ADVANCED_WARNING_EXPL' => 'Changing these advanced settings can be harmful to the stability, security and performance of this application. You should only modify them if you are sure of what you are doing.',
Expand Down Expand Up @@ -374,6 +375,8 @@ public function get_locale(): array

'CSS_TEXT' => 'Personalize CSS:',
'CSS_TITLE' => 'Change CSS',
'JS_TEXT' => 'Custom JS:',
'JS_TITLE' => 'Change JS',
'PUBLIC_SEARCH_TEXT' => 'Cho phép tìm kiếm công cộng:',
'OVERLAY_TYPE' => 'Thông tin hiển thị trên hình:',
'OVERLAY_NONE' => 'Không hiển thị gì cả',
Expand Down
2 changes: 2 additions & 0 deletions public/dist/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
console.log('Hi, this message has been sent by custom.js.');
console.log('You can edit me in the settings.');
Loading