Commit Graph

50 Commits

Author SHA1 Message Date
Peter Stockings
b4c67d8346 Add versions for http_functions, whenever script is updated a new version is logged. 2024-04-06 19:49:46 +11:00
Peter Stockings
3ce976507e Seperated landing page into self contained template as gradient stylings were making the dashboard hard to read 2024-03-29 22:00:17 +11:00
Peter Stockings
d25e8bb182 Fix dashboard -> http functions over view page not working on refresh (was sending html partial for htmx) 2024-03-29 21:40:37 +11:00
Peter Stockings
cb3afa77fc In function editor template modify add/delete functionality so it uses htmx.ajax and updates url 2024-03-29 21:20:35 +11:00
Peter Stockings
25178b5aad Packaging a few small changes
* Make edit http function endpoint accept function id rather than name
* Move show alert js function to function editor template as its only used here
* Added a note that previous commit (API -> isolator request was changed from global routing to inter app routing) (It sped things up, but not its regressed; need to look into this further)
2024-03-28 21:26:49 +11:00
Peter Stockings
01d24c7b29 Testing: In the current setup function executes js functions on isolator through a rest api and it calls the external address https://isolator.peterstockings.com/execute, switching to interal http://isolator.web:5000/execute. Im checking if this results in a speed up 2024-03-27 21:56:02 +11:00
Peter Stockings
1a496d2441 Fix issue where on page refresh when on function edit/new sub pages you would be redirected back to dashboard 2024-03-27 14:03:52 +11:00
Peter Stockings
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 2024-03-27 13:08:29 +11:00
Peter Stockings
ea366d9f8b Add error page for http functions 2024-03-24 22:28:58 +11:00
Peter Stockings
6dcd46fee0 Udpate default script to a random svg line graph generator 2024-03-24 21:49:05 +11:00
Peter Stockings
2d9c0b9d53 Add ability to rename http functions 2024-01-03 16:37:36 +11:00
Peter Stockings
6e172f568f Now attempt to handle case when query/form array param has a single value, still should be in array 2023-12-27 22:45:35 +11:00
Peter Stockings
7249575fc8 Apply same change to query as well 2023-12-27 22:34:43 +11:00
Peter Stockings
5ba69ec5ad Attempt to fix issue where form and query dont support arrays 2023-12-27 22:19:42 +11:00
Peter Stockings
d666aab95a Add default request path of '/' for playground 2023-12-27 00:05:20 +11:00
Peter Stockings
e96e9b3b0c Make some fix for create http function logic 2023-12-22 20:02:12 +11:00
Peter Stockings
1ffb3cd900 Fix for error thrown when updating http function with true/false in environment info 2023-12-22 20:00:32 +11:00
Peter Stockings
56d47232e1 If a function invocation isnt successful and log response isnt enabled, store response anyway 2023-12-22 19:01:52 +11:00
Peter Stockings
fe13df57ca Send function name to isolator when executing code so it can be accessed as a variable from within side the script 2023-12-22 17:58:08 +11:00
Peter Stockings
c6554cf399 Create http function header template and move all http function related templates into same directory 2023-12-22 14:36:00 +11:00
Peter Stockings
6fab33ea2b Change function name to path so you can pass in sub paths to executing code 2023-12-22 10:11:17 +11:00
Peter Stockings
34186d25a0 Remove current user_ids from error 2023-12-21 22:34:03 +11:00
Peter Stockings
c03c650da0 Logout when clicking on profile icon 2023-12-21 21:23:12 +11:00
Peter Stockings
19cebc0f45 Add option to toggle logging of request/response for http functions, this has been added to due storage capacity concerns 2023-12-21 14:45:25 +11:00
Peter Stockings
7c7dbae05a Add option to make http functions private (Require authentication, currently just redirects to login page; Should look into cookie + JWT + api key) 2023-12-21 14:03:25 +11:00
Peter Stockings
54cd8258e4 Ensure username/password are atleast 10 characters long 2023-12-21 12:04:49 +11:00
Peter Stockings
5f1330f776 Pass in user_id to delete_http_function to fix error 2023-12-20 23:55:19 +11:00
Peter Stockings
8d38c39604 Ensure you can only view/edit http functions created by the currently logged in user 2023-12-20 22:57:39 +11:00
Peter Stockings
30e16277df Add in authentication via Flask-Login, still need to modify http functions so they are linked to a user 2023-12-20 22:26:11 +11:00
Peter Stockings
223afec05d Refactor all function editor front end html + js into a single jinja template (also slight improvement to look of response/logs) 2023-12-19 21:20:11 +11:00
Peter Stockings
4196d89440 Pretty print environment info JSON using json.dumps() 2023-12-18 22:16:23 +11:00
Peter Stockings
6f46198693 Add ability to see history of http functions invocations 2023-12-18 20:33:58 +11:00
Peter Stockings
678e978b4b Fix error thrown when logging http function invocation 2023-12-18 19:39:13 +11:00
Peter Stockings
ca9bf33edf Record request, response, status, & logs for http function invocations 2023-12-18 19:19:38 +11:00
Peter Stockings
8ad1b6bb85 Add js function to show alerts when updating http functions 2023-12-18 18:39:55 +11:00
Peter Stockings
8ffdf4c28c Display http function invoked count in list 2023-12-18 15:36:44 +11:00
Peter Stockings
efda151cd5 Update environment info for http_function after execution using the data returned from isolator 2023-12-18 15:28:32 +11:00
Peter Stockings
5cc29309d5 Add json object for environment info for each function, this is mutable from custom code 2023-12-18 15:15:14 +11:00
Peter Stockings
204000a668 Add ability to delete http functions 2023-12-16 22:35:28 +11:00
Peter Stockings
2365fa3987 Add edit form for http functions 2023-12-16 21:56:35 +11:00
Peter Stockings
d8b441374e Add ability to add new http functions (Needs refactor, bad stuff) 2023-12-16 21:27:49 +11:00
Peter Stockings
ab25d557f8 Add ability to test http functions with postman like interface 2023-12-16 19:55:51 +11:00
Peter Stockings
e88661dfd2 Fetch http_functions from database 2023-12-16 19:02:04 +11:00
Peter Stockings
4796b7d8d1 Add views (static for now) for http and timer functions on dashboard 2023-12-16 18:19:48 +11:00
Peter Stockings
bc38aa181c Add dashboard, and flask endpoint that executes a script and returns the result (currently a hardcoded script) 2023-12-16 17:32:44 +11:00
Peter Stockings
f18c4628b7 Hide scroll bar on editor 2023-12-16 17:04:04 +11:00
Peter Stockings
6dda461404 Refactor solution 2023-12-16 15:35:48 +11:00
Peter Stockings
3545491b88 Add requests to requirements.txt 2023-12-16 10:52:20 +11:00
Peter Stockings
81d8d00586 Add code editor with that executes script on isolator 2023-12-16 00:24:36 +11:00
Peter Stockings
bbe3356a9c Initial commit 2023-12-14 22:22:15 +11:00