If you access the gallery under a sub url (like:
http://mydomain.com/myGallery), set it here. If not working you might miss the '/' from the beginning of the
@@ -68,6 +70,10 @@
+
+ The public url and the url base are not matching. Some of the functionality might not work.
+
+
Save
diff --git a/frontend/app/settings/basic/basic.settings.component.ts b/frontend/app/settings/basic/basic.settings.component.ts
index 17e6a8cb..215100e4 100644
--- a/frontend/app/settings/basic/basic.settings.component.ts
+++ b/frontend/app/settings/basic/basic.settings.component.ts
@@ -17,6 +17,8 @@ import {I18n} from '@ngx-translate/i18n-polyfill';
export class BasicSettingsComponent extends SettingsComponent {
urlPlaceholder = location.origin;
+ urlBaseChanged = false;
+ urlError = false;
constructor(_authService: AuthenticationService,
_navigation: NavigationService,
@@ -30,6 +32,7 @@ export class BasicSettingsComponent extends SettingsComponent {
publicUrl: s.Client.publicUrl,
urlBase: s.Client.urlBase
}));
+ this.checkUrlError();
}
public async save(): Promise {
@@ -40,6 +43,42 @@ export class BasicSettingsComponent extends SettingsComponent {
return val;
}
+ calcBaseUrl(): string {
+ console.log(this.settings.publicUrl.replace(new RegExp('\\\\', 'g'), '/'));
+ console.log(this.settings.publicUrl.replace(new RegExp('\\\\', 'g'), '/')
+ .replace(new RegExp('http://', 'g'), ''));
+ console.log(this.settings.publicUrl.replace(new RegExp('\\\\', 'g'), '/')
+ .replace(new RegExp('http://', 'g'), '')
+ .replace(new RegExp('https://', 'g'), ''));
+ const url = this.settings.publicUrl.replace(new RegExp('\\\\', 'g'), '/')
+ .replace(new RegExp('http://', 'g'), '')
+ .replace(new RegExp('https://', 'g'), '');
+ if (url.indexOf('/') !== -1) {
+ return url.substring(url.indexOf('/'));
+ }
+ return '';
+
+ }
+
+ checkUrlError() {
+ this.urlError = this.settings.urlBase !== this.calcBaseUrl();
+ }
+
+ onUrlChanged() {
+ if (this.urlBaseChanged === false) {
+ this.settings.urlBase = this.calcBaseUrl();
+ } else {
+ this.checkUrlError();
+ }
+
+ }
+
+ onUrlBaseChanged() {
+ this.urlBaseChanged = true;
+
+ this.checkUrlError();
+ }
+
}
diff --git a/frontend/translate/messages.en.xlf b/frontend/translate/messages.en.xlf
index 3daaf69e..b9b158bc 100644
--- a/frontend/translate/messages.en.xlf
+++ b/frontend/translate/messages.en.xlf
@@ -18,9 +18,7 @@
app/login/login.component.ts
12
-
- Wrong username or password
-
+ Wrong username or password
Username
@@ -81,8 +79,7 @@
app/login/login.component.ts
66
- Login
-
+ Login
@@ -92,9 +89,7 @@
app/sharelogin/share-login.component.ts
11
-
- Wrong password
-
+ Wrong password
Enter
@@ -103,8 +98,7 @@
app/sharelogin/share-login.component.ts
41
- Enter
-
+ Enter
download
@@ -190,9 +184,7 @@
app/gallery/gallery.component.ts
39
-
- Too many results to show. Refine your search.
-
+ Too many results to show. Refine your search.
Searching for:
@@ -229,8 +221,7 @@
app/gallery/share/share.gallery.component.ts
35
- Copy
-
+ Copy
Sharing:
@@ -306,9 +297,7 @@
app/admin/admin.component.ts
19
-
- To dismiss these notifications, restart the server.
-
+ To dismiss these notifications, restart the server.
Mode
@@ -357,8 +346,7 @@
app/settings/usermanager/usermanager.settings.component.ts
55
- + Add user
-
+ + Add user
@@ -368,9 +356,7 @@
app/settings/usermanager/usermanager.settings.component.ts
58
-
- To protect the site with password / have login enable this.
-
+ To protect the site with password / have login enable this.
Add new User
@@ -395,8 +381,7 @@
app/settings/usermanager/usermanager.settings.component.ts
90
- Add User
-
+ Add User
@@ -464,8 +449,7 @@
app/settings/database/database.settings.component.ts
37
- Save
-
+ Save
Reset
@@ -474,8 +458,7 @@
app/settings/database/database.settings.component.ts
40
- Reset
-
+ Reset
Map settings
@@ -539,14 +522,13 @@
app/settings/basic/basic.settings.component.ts
- 73
+ 79
app/settings/other/other.settings.component.ts
97
- Save
-
+ Save
Reset
@@ -569,14 +551,13 @@
app/settings/basic/basic.settings.component.ts
- 76
+ 82
app/settings/other/other.settings.component.ts
100
- Reset
-
+ Reset
@@ -597,8 +578,7 @@
10
It is highly recommended to use hardware accelerated (sharp or gm) lib for thumbnail
- generation
-
+ generation
Thumbnail generation library
@@ -762,9 +742,7 @@
app/settings/search/search.settings.component.ts
68
-
- Search is not supported with these settings
-
+ Search is not supported with these settings
Share settings
@@ -798,9 +776,7 @@
app/settings/share/share.settings.component.ts
47
-
- Sharing is not supported with these settings
-
+ Sharing is not supported with these settings
@@ -850,7 +826,7 @@
app/settings/basic/basic.settings.component.ts
- 51
+ 52
If you access the page form local network its good to know the public
url for creating sharing link
@@ -859,7 +835,7 @@
Url Base
app/settings/basic/basic.settings.component.ts
- 58
+ 59
Url Base
@@ -870,12 +846,22 @@
app/settings/basic/basic.settings.component.ts
- 64
+ 66
If you access the gallery under a sub url (like:
http://mydomain.com/myGallery), set it here. If not working you might miss the '/' from the beginning of the
url.
+
+
+ The public url and the url base are not matching. Some of the functionality might not work.
+
+
+ app/settings/basic/basic.settings.component.ts
+ 73
+
+ The public url and the url base are not matching. Some of the functionality might not work.
+
Other settings
@@ -1037,8 +1023,7 @@
app/settings/indexing/indexing.settings.component.ts
55
- Save
-
+ Save
Reset
@@ -1047,8 +1032,7 @@
app/settings/indexing/indexing.settings.component.ts
58
- Reset
-
+ Reset
If you add a new folder to your gallery, the site indexes it automatically.
@@ -1081,8 +1065,7 @@
app/settings/indexing/indexing.settings.component.ts
91
- Index
-
+ Index
Cancel
@@ -1091,8 +1074,7 @@
app/settings/indexing/indexing.settings.component.ts
96
- Cancel
-
+ Cancel
Reset Indexes
@@ -1101,8 +1083,7 @@
app/settings/indexing/indexing.settings.component.ts
100
- Reset Indexes
-
+ Reset Indexes
Advanced
@@ -1148,6 +1129,18 @@
No
+
+ loading..
+
+ frontend/app/gallery/share/share.gallery.component.ts
+ 1
+
+
+ frontend/app/gallery/share/share.gallery.component.ts
+ 1
+
+ loading..
+
Url has been copied to clipboard
diff --git a/frontend/translate/messages.hu.xlf b/frontend/translate/messages.hu.xlf
index b03f5fed..0878692b 100644
--- a/frontend/translate/messages.hu.xlf
+++ b/frontend/translate/messages.hu.xlf
@@ -98,7 +98,7 @@
app/sharelogin/share-login.component.ts
41
- Belépés
+ Belép
download
@@ -408,7 +408,7 @@
app/settings/database/database.settings.component.ts
14
- Manuálisan kell telepíteni a mysql node-modulot a mysql (npm install mysql) használatához
+ Telepítsd kézzel mysql csomópont-modulot a mysql (npm install mysql) használatához
MySQL settings:
@@ -499,7 +499,7 @@
app/settings/map/map.settings.component.ts
35
- van szükség
+ szükség van
Save
@@ -522,7 +522,7 @@
app/settings/basic/basic.settings.component.ts
- 73
+ 79
app/settings/other/other.settings.component.ts
@@ -551,7 +551,7 @@
app/settings/basic/basic.settings.component.ts
- 76
+ 82
app/settings/other/other.settings.component.ts
@@ -567,7 +567,7 @@
app/settings/thumbnail/thumbanil.settings.component.ts
3
- Thumbnail beállítások
+ Miniatűr beállítások
It is highly recommended to use hardware accelerated (sharp or gm) lib for thumbnail
@@ -595,7 +595,7 @@
app/settings/thumbnail/thumbanil.settings.component.ts
24
- Győződj meg arról, hogy a sharp node modul telepítve van (npm telepítés éles).
+ Győződjön meg arról, hogy az éles csomópont modul telepítve van (npm telepítés éles).
Make sure that gm node module and
@@ -636,7 +636,7 @@
app/settings/thumbnail/thumbanil.settings.component.ts
44
- A thumnail-ek ebben a mappában lesznek elmentve. Gyózödj meg arról, hogy a mappához van írási joga az oldalnak
+ A miniatűrök ebben a mappában lesznek elmentve. Íráshoz való hozzáférés szükséges
Thumbnail Quality
@@ -826,7 +826,7 @@
app/settings/basic/basic.settings.component.ts
- 51
+ 52
Ha belépsz az oldal formája helyi hálózat jó tudni a nyilvánosságot
URL megosztási link létrehozásához
@@ -835,7 +835,7 @@
Url Base
app/settings/basic/basic.settings.component.ts
- 58
+ 59
Al cím
@@ -846,12 +846,22 @@
app/settings/basic/basic.settings.component.ts
- 64
+ 66
Ha a galériát egy al-url alatt érheti el (például:
http://mydomain.com/myGallery), állítsa be itt. Ha nem működik, akkor hiányolhat a "/" a kezdetétől
url.
+
+
+ The public url and the url base are not matching. Some of the functionality might not work.
+
+
+ app/settings/basic/basic.settings.component.ts
+ 73
+
+ A nyilvános url és az al url nem egyeznek meg. Néhány funkció lehet hogy nem fog működni.
+
Other settings
@@ -896,8 +906,8 @@
app/settings/other/other.settings.component.ts
32
- Görgetés alapú kirajzolás
-
+ Görgetés alapú miniatűr
+ generáció
Those thumbnails get higher priority that are visible on the screen
@@ -970,8 +980,8 @@
app/settings/indexing/indexing.settings.component.ts
19
- Ha ebben az időben nem volt indexelés, akkor újraindex. (kihaggya, ha már létezik az index
- és az érzékenység alacsony)
+ Ha ebben az időben nem volt indexelés, újraindexet hajt végre. (ha kihagyott
+ a DB index és az érzékenység alacsony)
Sub folder preview size
@@ -1064,7 +1074,7 @@
app/settings/indexing/indexing.settings.component.ts
96
- Mégse
+ Megszünteti
Reset Indexes
@@ -1119,6 +1129,18 @@
Nem
+
+ loading..
+
+ frontend/app/gallery/share/share.gallery.component.ts
+ 1
+
+
+ frontend/app/gallery/share/share.gallery.component.ts
+ 1
+
+ betöltés..
+
Url has been copied to clipboard