Commit graph

32 commits

Author SHA1 Message Date
Rash419
c9e7591add clusteroverview: send routeToken with auth message
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I6412d68ef0c86d7a618eaf0ad252c16dee565d77
2023-08-18 23:27:04 +05:30
Rash419
41bdf1ece8 admin: remove fixed width and height attr from svg
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I39df378a0bcba2199d625dd5bf7a202b15354b0f
2023-08-15 11:11:01 +05:30
Rash419
65f6f46093 admin: use humanizeMem in adminClusterOverview.js
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I323735c989e3a4448f57d896ea635dcdeb6bbe8b
2023-08-15 11:11:01 +05:30
Pedro Pinto Silva
555a07db70 AdminCluster: Use proper card headers for title instead
and round cards

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I632ca5a3053247ce4d12c4e028e0322ee1545124
2023-08-14 21:38:32 +05:30
Henry Castro
a2b924033d admin: rename ACCESS_TOKEN -> JWT_TOKEN
To avoid confusion with the WOPI access token.
.

Change-Id: Ie38e0f11d0655e89eb1c7f1e20b73a9b8756ba21
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-08-08 08:27:30 -04:00
Rash419
340bbb0328 admin: increase font-size of y-axis
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I0439d79d487329bea8162762854430bac0b51448
2023-08-08 10:10:53 +05:30
Pedro Pinto Silva
3f0c9d5c55 admin: imprv ui sizes of adminClusterOverview.html
- Graph axis text is too small (10px) better to set it to 1em based on
parent div (16px). Good to also set any group within svg to 1em to
avoid any surprises
- Currently tablets from one card is spilling over to the next card
when there is not enough space. Better to allow scrolling.
- The left pane should be hidden even before reaching the mobile
size. This will fix the lack of space for cards and avoid everything
being so small

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I58c88385875469b56542703663e570ab4d63fbdc
2023-08-08 10:10:53 +05:30
Rash419
0ed983d7a3 admin: refactor adminClusterOverview.js
- refactored special case for templating
  adminClusterOverview.html
- removed useless variable
- format the code, fix indent

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib22cb481db7c7ef94b11f3044d0cd856e6d0eed5
2023-08-05 14:28:29 +05:30
Rash419
87bc8b10c4 admin: imprv ui of adminClusterOverview.html
- increased the sidebar length
- fixed html not covering fullscreen
- increase the number of card from 2->3
- remove unused property

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I86f6cf0225d4675bbd69dd0ebd7f77dbba6f9858
2023-08-05 14:28:29 +05:30
Rash419
8a879404ba admin: added podname to card
- if podname doesnot exist use serverId as title of card

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I7c09b7a8943b8a6a19bc6937ff180a06d82d12a6
2023-08-05 14:28:29 +05:30
Rash419
944f269926 admin: added new cluster overview page
- added DlgLoading class to show loading modal dialog
- upgraded the d3

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I8bd99bbadaa59a7de1e83bebde8db0dce920705d
2023-08-05 14:28:29 +05:30
Henry Castro
b9a1254126 browser: admin: use access token
The GetCookie was removed due to sensitive
access data because the browser can block to
security concerns.

Change-Id: Ifaeb495202a53125bda9e3705b6e33b7e54e56df
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-08-02 20:23:42 +01:00
Henry Castro
47485adc3e admin: add access token
The access token will validate the session
when a websocket is connected to the server.

Change-Id: I008b04a499ab0d85fd6f95fc06a511f800c0bb2e
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-08-02 20:23:42 +01:00
Rash419
75dbc5ed79 add RouteToken in admintemplate
- websocket uri, admin-bundle.js uri, href links

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I84a484938191e2f62b9d262ee922e8b04de74a44
2023-07-06 13:27:23 +05:30
Henry Castro
6bd4563a8a browser: admin: fix vex dialog on socket close
The parent class will overwrite the popup vex dialog,
misleading error information.

Change-Id: I29d3d5fe0747903a58b56ae6c70e2e226715cdf4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-06-29 20:47:08 +01:00
Rash419
f7af990485 admin: added a seprate state for the uploaded document
- previously we set the Modified state in admin panel only when
  wsd successfully upload the document to storage
- modified state updation depends on core, it might happen that
  uploading is already done and successfull but we didnot get
  the modified state from the core which will show wrong modified
  status in admin panel

Change-Id: I014a8f92753fc6a93b37921d0f3cdce390bef35e
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
2023-05-04 11:35:07 +05:30
Andras Timar
0519a533d7 Document name should be plain text on admin console
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4ef9f83893af7646a15ea8c235257acab7760b64
2023-04-24 14:04:43 +02:00
Gökay Şatır
aa47a9f0a9 Remove json-js and stylelint-config-standart packages.
We don't need the first one and we don't use the latter one.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I1f48ff5487621781eb38dd8e4e8e2a389a3059d6
2023-04-01 11:30:07 +03:00
Gökay Şatır
260cbed5d3 Remove vex from code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I054977b5c71364c59c7f1fdd1f5d691380951ebb
2023-03-25 07:03:05 +03:00
Gökay Şatır
00b0fd48c9 Remove vex dialog from AdminSocketOverview.js file.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I04bab594327d9e75fe612bf84ee047e58a71ff22
2023-03-06 16:23:20 +03:00
Gökay Şatır
5f7e385ba2 Remove vex usage from AdminSocketBase.js
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I73192156e7a5a95bf757111db01f95bb38c6e80e
2023-02-22 09:32:04 +03:00
Andras Timar
3571c7211d Add '(unbranded)' string to product name, when branding is missing
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I231f06f509c2d70ba092658b828e1d201cef2887
2022-12-13 23:23:20 +01:00
Pedro Pinto Silva
fb26e95624 Admin settings: do not use duplicate ids
Before this commit we were using a-settings-tablet to try to
target the side menu but it seems we are already using that id
for the header left "Settings" element

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic5a1fa16ef823c935c09307d00fd6848643f0c4c
2022-10-18 09:14:13 +02:00
Pedro Pinto Silva
fd67d683e6 Admin setting: Make shutdown button easier to find
Before this the shutdown button was at the bottom difficult to
find. It also was a but confusing, at first sight it look like
it was a red button that clean or erases the settings options
(since it was a red button at the bottom of option form)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7c05b261b9d164f8fa1194eab5314abd87e9320d
2022-10-18 09:14:13 +02:00
Pedro Pinto Silva
6fd84abbd3 Admin settings: Add tabs, move version to its own place
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I54d4c2fefe4cc4bca534733387e6127020834d09
2022-10-18 09:14:13 +02:00
Pedro Pinto Silva
e6e065a26d Fix missing tab on Admin settings page
Before this commit it was only visible on mobile

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ifc9737d2bcd0014aa7b7d0d05dc0ec356aaf220b
2022-10-18 09:14:13 +02:00
Andras Timar
1cddb21b94 Display build config (configure options) on admin console
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iac66ea99d23416c494b04ff92abc0bfeb646e5be
2022-10-13 11:57:17 +02:00
Andras Timar
f07ff8c7e0 rename: remaining lool->cool changes
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib7d4e804bebe52dead8d53b0e0bbaed0f08bf3d0
2021-11-18 14:14:11 +01:00
Andras Timar
ec8f28d75c rename wsd protocol command 'loolserver' to 'coolserver'
Change-Id: I1835001b76da5179baab9820a1a60208f3e694cf
Signed-off-by: Andras Timar <andras.timar@collabora.com>
2021-11-17 11:59:35 +01:00
Henry Castro
8d96481ac8 misc: config: rename 'lool' -> 'cool'
Change-Id: Ib3708c71a8d2d1e4f5343c202f9cef57c76c15e3
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-17 09:17:19 +01:00
Henry Castro
6d38bb2389 browser: admin: rename loleaflet -> browser
Change-Id: If20240e62f5714afbcf1b582c8583e3444087fcf
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00
Henry Castro
e5c1d0e637 initial rename loleaflet -> browser
Change-Id: Ief7edfe7e3ff3a0a1ec24b4dc106bdeee5d0f8ff
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-10 17:18:56 +01:00