-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arkenfox gui - project direction #2
Comments
from your earlier posts, now from your last post:
so what you really want is a good forking? of the table/gui code specifically 😆 |
How does this sound? my easy first steps:
next (in no particular order, in multi-steps, whenever, whoever):
PS If I am slow to respond/absent it's due to health reasons, I have been dormant here for some long stretches (luckily my tool project has not required much maintenance). So we'll take this steady and see how it goes. |
you've already done all the work to get the file, parse it, display it, filter it what I want this to be is to remove (or disable/hide) the compare and load file parts, and simply be a tool that provides a filterable/searchable gui - you've done it all already, it just needs some "tweaks" which I laid out in #1 up to you if you want to chop out code blocks. If you just want to hide them behind an auto-determined global var to make the two projects easier to maintain as a set, then so be it but yes, we are prototyping, so first order is add files, then make sure we trap any errors loading the file (e.g. maybe someone blocks fetch), etc
no hurry, take your time |
lets avoid that, for now anyway
yes cool, that's what I coded for, and looking good so far |
in my own little imperfect world, I would do this as a separate project/code and split out the css and js to files, and not have to worry about any other project. I'd even go so far as to do away with fetching the file and hardcode it in another js file (whatever format, e.g base64) but for now, all I care about is that it works - and it does that |
I split my userjs-tool.html project into separate files, so the index.html here is a small different file now (ie not a copy of the tool). The files in the css and js folders here are still copies from my repo, but you only have the parts needed.
Done this too! Optional https://arkenfox.github.io/gui/?b gives you the base64 to save (after fetching from main repo). Also https://arkenfox.github.io/gui/?u displays a list of the URLs in the user.js file (the one saved as base64 here) The table displays fast now, and I ticked off lots on the todo list. |
it's going to be a little while til I get to this, just keep making changes as you see fit :) can we make reading a base64 the default (and do away with fetch altogether) - i.e we'll need to recreate the base64 file each release, but totally worth it |
It is indeed without fetching by default, from file EDIT: clarification:
|
var e = document.getElementById("tview_buttons_div");
e.style.backgroundColor="#000000";
e.style.border="1px solid #b3b3b3";
e.style.borderWidth="0px 0px 1px 0px"; Styles must be defined in CSS files.
|
var e = document.getElementsByClassName("secDet");
for (var i = 0, j = e.length; i < j; i++) {
e[i].open = false;
} is an antipattern, for(let e of document.getElementsByClassName("secDet")) {
e.open = false;
} should be better. And even better: [...document.getElementsByClassName("secDet")].forEach(e => {e.open = false;}); |
Hello again @KOLANICH Thank you for your feedback, that helps me to see some things that I need to learn. The code originates from my personal experimental userjs-tool, which is a project for my own self learning. I tried to keep my code tidy, and sure there is room for improvement in the code structure, especially considering that a few months ago the code was all in one HTML file. It slowly evolves as I learn. As a hobbyist I am happy I created something that works. I appreciate your tips. |
Indeed - #2 (comment) Feel free to open issues, fork, provide patches. Getting all the looks and feel into a single css would be nice Splitting the html into just a doc and then two js files (the main one and base64.js) would also be a start |
Is there any reason to use base64? Isn't base64 damn inefficient and hard to edit and read? |
It's what's currently used. If there's a reason to change it, then sure |
Closing, refer to ToDo (issue #1). |
Continue discussion from arkenfox/user.js#608
The text was updated successfully, but these errors were encountered: