95e2c3a93202ee912624bb730724313faae7c886
chmalee
Wed Dec 4 16:41:31 2024 -0800
Use the DataTables select API instead of implementing my own checkboxes
Working child/parent rows. Just need to add checkboxes to the children and indent them a smidge
Fix log in for api key in pre-finish hook. Make the pre-finish hook determine if we came from hubtools or not and don't create hub.txts if we did. Fix writing of parentRows. Make client not use .child() but instead show or hide based on a load time constraint, which is not quite working all the way yet
Make select/deselect work with child files. Remove some dead code
Make deletes work by moving any requested directories to the end of the delete list and then deleting the directories so rmdir doesn't fail
Fix new table rows not animating on add
Make newly updloaded files show up in table include their parent dir and hub.txt, and indent them appropriately
Hash filenames to file objects in the client so we don't add duplicate rows to the table when multiple files are uploaded at once. Update the selected file div after deleting files. Make clicks on hub.txt files load the hub. Turn the file clicked on to pack. Remove some old copy from the template page
Revert early experimental commit when trying to allow bigDataUrl uploads directly through hgCustom
Fix up some comments to be more correct
Remove old CGI experiment
diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c
index 2daf923..b9b2492 100644
--- src/hg/hgHubConnect/hgHubConnect.c
+++ src/hg/hgHubConnect/hgHubConnect.c
@@ -1705,64 +1705,63 @@
// this is the invisible form for the reset hub button - it's submitted via javascript
printf("
");
// ... and now the main form
// we have three tabs for the public and unlisted hubs and hub development
printf(""
"
- Public Hubs
"
"- Connected Hubs
");
if (cfgOptionBooleanDefault("hgHubConnect.validateHub", TRUE))
printf("- Hub Development
");
-if (cfgOptionBooleanDefault("storeUserFiles", TRUE))
+if (cfgOptionBooleanDefault("storeUserFiles", FALSE))
printf("- Hub Upload
");
printf("
");
// The public hubs table is getting big and takes a while to download.
// Jquery UI's tabs() command will layout the page, but because of
// jsInlining, it will only be called at the end of the page. This can lead to the page "jumping".
// To make the inline code run now, let's flush JS inlines.
// I'm not sure that this makes a visible difference, but it doesn't do any harm either
jsInlineFinish();
jsInlineReset();
struct hash *publicHash = hgHubConnectPublic();
hgHubConnectUnlisted(hubList, publicHash);
if (cfgOptionBooleanDefault("hgHubConnect.validateHub", TRUE))
hgHubConnectDeveloperMode();
-if (cfgOptionBooleanDefault("storeUserFiles", TRUE))
+if (cfgOptionBooleanDefault("storeUserFiles", FALSE))
hgHubConnectOfferUpload(database);
printf("
"); // #tabs
cartWebEnd();
}
void doAsync(struct cart *theCart)
/* Execute the async request */
{
cart = theCart;
struct cartJson *cj = cartJsonNew(cart);
cartJsonRegisterHandler(cj, hgHubDeleteFile, doRemoveFile);
-cartJsonRegisterHandler(cj, hgHubCreateHub, doCreateHub);
cartJsonRegisterHandler(cj, hgHubMoveFile, doMoveFile);
cartJsonRegisterHandler(cj, hgHubGenerateApiKey, generateApiKey);
cartJsonRegisterHandler(cj, hgHubRevokeApiKey, revokeApiKey);
cartJsonExecute(cj);
}
char *excludeVars[] = {"Submit", "submit", "hc_one_url", hgHubDoHubCheck,
hgHubCheckUrl, hgHubDoClear, hgHubDoRefresh, hgHubDoDisconnect,hgHubDoRedirect, hgHubDataText,
hgHubConnectRemakeTrackHub, NULL};
int main(int argc, char *argv[])
/* Process command line. */
{
long enteredMainTime = clock1000();