Tokay
-
Posts
839 -
Joined
-
Last visited
-
Days Won
19
Content Type
Profiles
Forums
Events
Posts posted by Tokay
-
-
45 minutes ago, Sherzod said:
Hello,
On the client side?
Yes.
-
Does it possible to know current root dir on the front side?
For example : /uni-1.90.0.1551/ext-sync-min.js
I need to know such path to files.
-
Ok, waiting for it, thank you
-
Up. Does it possible to fix issue until be fixed in the releases?
-
1. Open online examples.
1. Change theme uni_ubuntu/
1. Open Grids - Column sort online, open column menu - visble columns - and checkboxes doesn't shows. Look at the screenshot.
Also yosemite theme has such issue. Others it seems looks fine.
-
I've added custom headers and do testing now. For now all works good:
procedure TUniServerModule.UniGUIServerModuleHTTPCommand(ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo; var Handled: boolean); begin AResponseInfo.CustomHeaders.AddValue('strict-transport-security', 'max-age=31536000; includeSubDomains; preload'); AResponseInfo.CustomHeaders.AddValue('X-Frame-Options', 'DENY'); AResponseInfo.CustomHeaders.AddValue('X-Xss-Protection', '1;mode=block'); AResponseInfo.CustomHeaders.AddValue('X-Content-Type-Options', 'nosniff'); AResponseInfo.CustomHeaders.AddValue('Referrer-Policy', 'strict-origin'); end;
- 1
-
-
The datasets is the most direct way in Delphi. Where you can get your REST data excluding DataSets?
-
Actually most sizes of the only dark theme are bigger than others (also look at the text that didn't fit on the dark theme):
-
-
-
Hi! There are exists two domains: first for ex https://test.com and second https://test2.com both has one IP, openes one UniGUI site (login page). Does it possible on the back or front side to know from wich URL the user came to the site?
-
-
Hmmm, I think that I've already enebled this property. But not. Thank you.
- 1
-
But it strange to view such message in the online demo
-
I see that is possible to show hints on the buttons. For example:
But I go the demos and see that all Navigators has no hints. Is it possible to fix this?
-
1. Go to DBLookupComboBox demo
2. Push 'refresh' button on the navigator
3. See the 'ClientDataSet1: Missing data provider or data packet.' message
-
The current carbon theme has large borders and large font size. Does it possible to change it with help of css to smaller? Like in the standard or many other themes?
-
Finally I've found solution.
There is no needed to lock main session. It's already locked. I've added such condition and all's works fine:
if U[I] <> UniSession then
U[I].LockSession;And same for unlocking.
Also I've found better code for the server stopping:
procedure TServerControlPanelForm.ShutdownServerClick(Sender: TObject); var U : TUniGUIServerModule; begin Close; U := UniServerInstance; if Assigned(U) then U.Terminated := True; end;
I've found it in the opened sources. Thank you! Source code is very useful.
- 1
-
44 minutes ago, Andrey Volkov said:
Я так понимаю закрытый проект (без доступа из глобального интернета)? Может скрины какие нибудь ?
Наше то всё закрытое, выше Шерзод кинул всяких-разных
-
у нас пока 800 пользователей одновременно, до 1000 к концу года. на одном запущенном инстансе, одном компе. работает круглосуточно. сфера ответственная. в целом всё работает вполне прилично. глобально больше проблем было с подключениям к базе чем собственно с вебом-унигуем. минимально к счастью удалось оставить один коннект на юзера, база - FireBird, однако уже и 1000 коннектов это сложно. как дальше пойдет пока не знаю
-
Наконец появились полные рантайм исходники и я себе поправил как хочется
в конце TUniBaseForm.Create
with TUniGUIApplication(UniApplication).UniSession do
if Assigned(UniMainModule) and Assigned(UniMainModule.OnNewComponent) then
UniMainModule.OnNewComponent(Self);в конце TUniFrame.Create
with UniSession do
if Assigned(UniMainModule) and Assigned(UniMainModule.OnNewComponent) then
UniMainModule.OnNewComponent(Self);
'Обычный' вызов OnNewComponent убрал, дабы не было массовых вызовов.Благодаря дописанному удалось выкинуть реально гору лишнего кода и uses'ов. Любые вновь созданные формы и фреймы централизованно приходят в MainModule.
Фаршад вероятно, сам не догадывается насколько важны полные исходники. Еще не было ни одной компоненты на моей памяти, которые не приходилось бы править под себя. А такие в общем сложные как Унигуй и подавно.
У нас сейчас уже с десяток правок в Унигуе и, вижу, будет еще больше.
-
you can look here:
-
17 minutes ago, IRWANTO82 said:
why should you run unigui in lazarus IDE ? all you need is compile unigui project using fpc console to linux is enough
How about forms disigning?
How it possible to know root JS directory into the javascript?
in General
Posted
I need on the client side get such path: /uni-1.90.0.1551/ into any varaible.
let pathToLib = ????;