9d48bbd285
Refactor HTTP functions overview and logs pages with improved UI and responsiveness
Peter Stockings2025-02-14 22:22:27 +11:00
5ec8bba9e8
Refactor HTTP function editor with Mithril components and new API endpoints
Peter Stockings2025-02-14 00:40:45 +11:00
abf3ca15d2
Revert "Update python version from 3.9.18 to 3.10 in attempt to resolve build issue after updating dokku"
Peter Stockings2024-12-18 23:21:48 +11:00
3d70517c67
Update python version from 3.9.18 to 3.10 in attempt to resolve build issue after updating dokku
Peter Stockings2024-12-18 23:07:21 +11:00
bc4a1ae9a6
Show original script as well, still need to add revert/switch version functionality
Peter Stockings2024-05-18 22:46:44 +10:00
b4c67d8346
Add versions for http_functions, whenever script is updated a new version is logged.
Peter Stockings2024-04-06 19:49:46 +11:00
4b30deb709
On function editor, if the editor loads slow enough then you can see the code/environment json as html text so I changed the text to transparent to avoid this, not a real fix (For some reason I cant find any mention of other people having this issue)
Peter Stockings2024-03-29 22:34:57 +11:00
3ce976507e
Seperated landing page into self contained template as gradient stylings were making the dashboard hard to read
Peter Stockings2024-03-29 22:00:17 +11:00
d25e8bb182
Fix dashboard -> http functions over view page not working on refresh (was sending html partial for htmx)
Peter Stockings2024-03-29 21:40:37 +11:00
cb3afa77fc
In function editor template modify add/delete functionality so it uses htmx.ajax and updates url
Peter Stockings2024-03-29 21:20:35 +11:00
163a1dbc5f
Disable send request button and display animation when request is already started
Peter Stockings2024-03-29 20:19:52 +11:00
c2cf448528
For postman-like http client change default tab for response view to Browser Preview
Peter Stockings2024-03-29 19:57:23 +11:00
e92a1ad69d
Limit decimal places length of response time in ms
Peter Stockings2024-03-29 19:07:17 +11:00
1a496d2441
Fix issue where on page refresh when on function edit/new sub pages you would be redirected back to dashboard
Peter Stockings2024-03-27 14:03:52 +11:00
48b013c1f4
Minor styling update for functions overview & edit/new pages to make it more usable after landing page changes, also started to work on making pages refreshable through htmx hx-push-url
Peter Stockings2024-03-27 13:08:29 +11:00
6e172f568f
Now attempt to handle case when query/form array param has a single value, still should be in array
Peter Stockings2023-12-27 22:45:35 +11:00
1ffb3cd900
Fix for error thrown when updating http function with true/false in environment info
Peter Stockings2023-12-22 20:00:32 +11:00
56d47232e1
If a function invocation isnt successful and log response isnt enabled, store response anyway
Peter Stockings2023-12-22 19:01:52 +11:00
fe13df57ca
Send function name to isolator when executing code so it can be accessed as a variable from within side the script
Peter Stockings2023-12-22 17:58:08 +11:00
c6554cf399
Create http function header template and move all http function related templates into same directory
Peter Stockings2023-12-22 14:36:00 +11:00
6fab33ea2b
Change function name to path so you can pass in sub paths to executing code
Peter Stockings2023-12-22 10:11:17 +11:00
e124025568
Add icon on http function list view to denote public status
Peter Stockings2023-12-21 20:04:39 +11:00
37b9e10914
Add link to logs from edit page and vice versa for http functions, QOL change
Peter Stockings2023-12-21 19:11:24 +11:00
19cebc0f45
Add option to toggle logging of request/response for http functions, this has been added to due storage capacity concerns
Peter Stockings2023-12-21 14:45:25 +11:00
7c7dbae05a
Add option to make http functions private (Require authentication, currently just redirects to login page; Should look into cookie + JWT + api key)
Peter Stockings2023-12-21 14:03:25 +11:00
8d38c39604
Ensure you can only view/edit http functions created by the currently logged in user
Peter Stockings2023-12-20 22:57:39 +11:00
30e16277df
Add in authentication via Flask-Login, still need to modify http functions so they are linked to a user
Peter Stockings2023-12-20 22:26:11 +11:00
6a894df009
In function editor response panel show returned http status code
Peter Stockings2023-12-20 21:08:26 +11:00
595d392af4
Change text to red when isolator returns error on function playground
Peter Stockings2023-12-19 23:17:12 +11:00
223afec05d
Refactor all function editor front end html + js into a single jinja template (also slight improvement to look of response/logs)
Peter Stockings2023-12-19 21:20:11 +11:00
4b64430022
Add refresh view button on edit page, found it useful for testing to see updates to environment info
Peter Stockings2023-12-19 19:10:58 +11:00
c968ef583c
Use url_for to generate url for http functions on overview page
Peter Stockings2023-12-19 12:41:48 +11:00
c30c666caf
Update remaining editor maxLines to 100 from 15
Peter Stockings2023-12-18 23:06:13 +11:00
17f98195a2
Update maxLines to 100 for all ace editors, this auto sizes the editors
Peter Stockings2023-12-18 22:39:21 +11:00
4b0c356cda
Add link to selected http function from edit/logs views. Also remove min number of lines from environment info ace editor
Peter Stockings2023-12-18 22:18:31 +11:00
4196d89440
Pretty print environment info JSON using json.dumps()
Peter Stockings2023-12-18 22:16:23 +11:00
9aa551a083
Make http functions overview page more responsive
Peter Stockings2023-12-18 21:24:40 +11:00
7e2181c7a6
Only show invocation logs for http function selected
Peter Stockings2023-12-18 21:23:49 +11:00
9d4e6e1709
Add ability to clear script and output, and add link to dashboard from home page
Peter Stockings2023-12-16 17:50:08 +11:00
bc38aa181c
Add dashboard, and flask endpoint that executes a script and returns the result (currently a hardcoded script)
Peter Stockings2023-12-16 17:32:44 +11:00