Needs work
Project:
CMIS API
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2020 at 10:28 UTC
Updated:
18 Jan 2021 at 16:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
liber_tComment #3
grimreaperHello,
Patch does not apply anymore.
Comment #4
grimreaperHello,
I agree that datatables can be a quick way to achieve having a better interactive table, but I think it would be better, if CMIS spec allows it, to use CMIS for that and not JS.
Why a blank line here?
If there are several browsers on the page (unlikely to happens I agree). This will not work.
Instead of an ID, a class should be targeted. A best practice is to have the CSS class prefixed with js-, example: js-cmis-browser
The use of the context variable should be done to avoid unneeded DOM search.
I thing jquery once should be used because I had the following error in a JS alert popin:
DataTables warning: table id=cmis-browser - Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3
I agree that Fontello icons is a quick way to get this done. The problem I see is that it is not extensible, so each time someone has a ne file type to manage, it would have to be regenerated.
Also, I went quickly in Fontello wiki, https://github.com/fontello/fontello/wiki/How-to-use-fontello-fonts-in-y..., And why having an hexadecimal mapping and not having a tag with the correct class directly?
Be cautious with unnecessary line added or removed.
In overall, thanks for the patch and the ideas. But it can't be merged currently due to review points but mainly due to the fact that such UI decisions have to be more thought due to the impact on websites.
You can still post updated patches if you want. But in case you need to update them. Maybe it would be better to put that in your project directly.
I attached a rebased patch.
Regards,
Comment #5
liber_tfix point 2, 3 and 5
Comment #6
grimreaperHello,
Thanks for the patch.
I have tested it and no more JS error!
A small improvement, do not feel obliged to do it right now. Because as said above, we will need to discuss it more to have proper integration.
$('.js-cmis-browser', context)
Regards,
Comment #7
liber_ti have don't find any method to implement sort in php-cmis-client
Comment #8
liber_tI have an response from php cmis libraries https://github.com/dkd/php-cmis-client/issues/76#issuecomment-676081052 but I don't know how to implement it in this project
Comment #9
grimreaperThanks @liber_t for the feedback and pushing it forward in the PHP CMIS client library!
Regarding the response:
So I guess we need to see if it will be possible to dynamically detect what is exposed by the CMIS endpoint then provide a browser depending on that.
Comment #10
grimreaper