9d48bbd285
Refactor HTTP functions overview and logs pages with improved UI and responsiveness
Peter Stockings
2025-02-14 22:22:27 +11:00
5ec8bba9e8
Refactor HTTP function editor with Mithril components and new API endpoints
Peter Stockings
2025-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 Stockings
2024-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 Stockings
2024-12-18 23:07:21 +11:00
bc4a1ae9a6
Show original script as well, still need to add revert/switch version functionality
Peter Stockings
2024-05-18 22:46:44 +10:00
2b4ca571ca
Add in version history for http functions
Peter Stockings
2024-05-18 21:55:11 +10:00
b4c67d8346
Add versions for http_functions, whenever script is updated a new version is logged.
Peter Stockings
2024-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 Stockings
2024-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 Stockings
2024-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 Stockings
2024-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 Stockings
2024-03-29 21:20:35 +11:00
163a1dbc5f
Disable send request button and display animation when request is already started
Peter Stockings
2024-03-29 20:19:52 +11:00
c2cf448528
For postman-like http client change default tab for response view to Browser Preview
Peter Stockings
2024-03-29 19:57:23 +11:00
e92a1ad69d
Limit decimal places length of response time in ms
Peter Stockings
2024-03-29 19:07:17 +11:00
db191d7cf5
Format response time & size
Peter Stockings
2024-03-29 18:44:32 +11:00
6044d2e00b
For postman-like mithril.js driven client made the following minor changes
Peter Stockings
2024-03-29 18:38:48 +11:00
c2d17e1b82
Remove unused stylings from landing page template
Peter Stockings
2024-03-29 18:32:23 +11:00
25178b5aad
Packaging a few small changes
Peter Stockings
2024-03-28 21:26:49 +11:00
df458c2738
Use mithril.js to make postman like client (Previously was static html with a sprinkling of js)
Peter Stockings
2024-03-28 20:49:49 +11:00
1a496d2441
Fix issue where on page refresh when on function edit/new sub pages you would be redirected back to dashboard
Peter Stockings
2024-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 Stockings
2024-03-27 13:08:29 +11:00
ea366d9f8b
Add error page for http functions
Peter Stockings
2024-03-24 22:28:58 +11:00
fc021d6971
Use landing page template and perform minor UI updates on other pages (Still needs alot of work)
Peter Stockings
2024-03-24 21:50:21 +11:00
6dcd46fee0
Udpate default script to a random svg line graph generator
Peter Stockings
2024-03-24 21:49:05 +11:00
e21a575726
Update function editor response view, and add execution timer
Peter Stockings
2024-03-24 20:52:32 +11:00
761165cb23
Minor UI change for function edit form, moved execute button to bottom
Peter Stockings
2024-03-24 19:48:43 +11:00
2d9c0b9d53
Add ability to rename http functions
Peter Stockings
2024-01-03 16:37:36 +11:00
6e172f568f
Now attempt to handle case when query/form array param has a single value, still should be in array
Peter Stockings
2023-12-27 22:45:35 +11:00
7249575fc8
Apply same change to query as well
Peter Stockings
2023-12-27 22:34:43 +11:00
5ba69ec5ad
Attempt to fix issue where form and query dont support arrays
Peter Stockings
2023-12-27 22:19:42 +11:00
d666aab95a
Add default request path of '/' for playground
Peter Stockings
2023-12-27 00:05:20 +11:00
e96e9b3b0c
Make some fix for create http function logic
Peter Stockings
2023-12-22 20:02:12 +11:00
1ffb3cd900
Fix for error thrown when updating http function with true/false in environment info
Peter Stockings
2023-12-22 20:00:32 +11:00
56d47232e1
If a function invocation isnt successful and log response isnt enabled, store response anyway
Peter Stockings
2023-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 Stockings
2023-12-22 17:58:08 +11:00
563d93ab69
Add favicon
Peter Stockings
2023-12-22 15:46:33 +11:00
c6554cf399
Create http function header template and move all http function related templates into same directory
Peter Stockings
2023-12-22 14:36:00 +11:00
6fab33ea2b
Change function name to path so you can pass in sub paths to executing code
Peter Stockings
2023-12-22 10:11:17 +11:00
34186d25a0
Remove current user_ids from error
Peter Stockings
2023-12-21 22:34:03 +11:00
bb29718467
Slightly reduce size of is public icon on http functions list view
Peter Stockings
2023-12-21 21:38:53 +11:00
c03c650da0
Logout when clicking on profile icon
Peter Stockings
2023-12-21 21:23:12 +11:00
e124025568
Add icon on http function list view to denote public status
Peter Stockings
2023-12-21 20:04:39 +11:00
37b9e10914
Add link to logs from edit page and vice versa for http functions, QOL change
Peter Stockings
2023-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 Stockings
2023-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 Stockings
2023-12-21 14:03:25 +11:00
14e4672be6
Add link to login page from signup page
Peter Stockings
2023-12-21 12:05:15 +11:00
54cd8258e4
Ensure username/password are atleast 10 characters long
Peter Stockings
2023-12-21 12:04:49 +11:00
5f1330f776
Pass in user_id to delete_http_function to fix error
Peter Stockings
2023-12-20 23:55:19 +11:00
2077eb835f
Render http function url in client url feild
Peter Stockings
2023-12-20 23:45:40 +11:00
8d38c39604
Ensure you can only view/edit http functions created by the currently logged in user
Peter Stockings
2023-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 Stockings
2023-12-20 22:26:11 +11:00
6a894df009
In function editor response panel show returned http status code
Peter Stockings
2023-12-20 21:08:26 +11:00
595d392af4
Change text to red when isolator returns error on function playground
Peter Stockings
2023-12-19 23:17:12 +11:00
fc2ca7c4e8
Remove debugger from editor template
Peter Stockings
2023-12-19 21:24:46 +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 Stockings
2023-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 Stockings
2023-12-19 19:10:58 +11:00
c968ef583c
Use url_for to generate url for http functions on overview page
Peter Stockings
2023-12-19 12:41:48 +11:00
c30c666caf
Update remaining editor maxLines to 100 from 15
Peter Stockings
2023-12-18 23:06:13 +11:00
17f98195a2
Update maxLines to 100 for all ace editors, this auto sizes the editors
Peter Stockings
2023-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 Stockings
2023-12-18 22:18:31 +11:00
4196d89440
Pretty print environment info JSON using json.dumps()
Peter Stockings
2023-12-18 22:16:23 +11:00
9aa551a083
Make http functions overview page more responsive
Peter Stockings
2023-12-18 21:24:40 +11:00
7e2181c7a6
Only show invocation logs for http function selected
Peter Stockings
2023-12-18 21:23:49 +11:00
71ab2c3b6b
Add refresh button on logs page
Peter Stockings
2023-12-18 20:57:57 +11:00
7bde81c89a
Make logs table more responsive (Still needs alot of work - probably need to make accordion)
Peter Stockings
2023-12-18 20:44:24 +11:00
6f46198693
Add ability to see history of http functions invocations
Peter Stockings
2023-12-18 20:33:58 +11:00
678e978b4b
Fix error thrown when logging http function invocation
Peter Stockings
2023-12-18 19:39:13 +11:00
ca9bf33edf
Record request, response, status, & logs for http function invocations
Peter Stockings
2023-12-18 19:19:38 +11:00
8ad1b6bb85
Add js function to show alerts when updating http functions
Peter Stockings
2023-12-18 18:39:55 +11:00
8ffdf4c28c
Display http function invoked count in list
Peter Stockings
2023-12-18 15:36:44 +11:00
efda151cd5
Update environment info for http_function after execution using the data returned from isolator
Peter Stockings
2023-12-18 15:28:32 +11:00
5cc29309d5
Add json object for environment info for each function, this is mutable from custom code
Peter Stockings
2023-12-18 15:15:14 +11:00
538d5083e4
Remove trailing newlines introduced from new/edit page for http functions
Peter Stockings
2023-12-17 11:06:42 +11:00
204000a668
Add ability to delete http functions
Peter Stockings
2023-12-16 22:35:28 +11:00
2365fa3987
Add edit form for http functions
Peter Stockings
2023-12-16 21:56:35 +11:00
d8b441374e
Add ability to add new http functions (Needs refactor, bad stuff)
Peter Stockings
2023-12-16 21:27:49 +11:00
efa815c5cb
When trying out http function, ensure response is rendered
Peter Stockings
2023-12-16 20:09:50 +11:00
7293801ddd
Remove content type as default header from fetch request (this should be fetched from dom)
Peter Stockings
2023-12-16 20:03:27 +11:00
ab25d557f8
Add ability to test http functions with postman like interface
Peter Stockings
2023-12-16 19:55:51 +11:00
8f94ae12ef
Add .env to gitignore
Peter Stockings
2023-12-16 19:05:37 +11:00
b0785d282f
Remove numpy as dependency
Peter Stockings
2023-12-16 19:05:10 +11:00
e88661dfd2
Fetch http_functions from database
Peter Stockings
2023-12-16 19:02:04 +11:00
4796b7d8d1
Add views (static for now) for http and timer functions on dashboard
Peter Stockings
2023-12-16 18:19:48 +11:00
ca4cfd27b9
Add some text to explain what this does
Peter Stockings
2023-12-16 17:57:41 +11:00
9d4e6e1709
Add ability to clear script and output, and add link to dashboard from home page
Peter Stockings
2023-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 Stockings
2023-12-16 17:32:44 +11:00
f18c4628b7
Hide scroll bar on editor
Peter Stockings
2023-12-16 17:04:04 +11:00
68c29b6617
Only show response when available
Peter Stockings
2023-12-16 16:56:39 +11:00
6dda461404
Refactor solution
Peter Stockings
2023-12-16 15:35:48 +11:00
3545491b88
Add requests to requirements.txt
Peter Stockings
2023-12-16 10:52:20 +11:00
81d8d00586
Add code editor with that executes script on isolator
Peter Stockings
2023-12-16 00:24:36 +11:00
bbe3356a9c
Initial commit
Peter Stockings
2023-12-14 22:22:15 +11:00