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
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)
2024-03-29 22:34:57 +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
163a1dbc5f
Disable send request button and display animation when request is already started
2024-03-29 20:19:52 +11:00
Peter Stockings
c2cf448528
For postman-like http client change default tab for response view to Browser Preview
2024-03-29 19:57:23 +11:00
Peter Stockings
e92a1ad69d
Limit decimal places length of response time in ms
2024-03-29 19:07:17 +11:00
Peter Stockings
db191d7cf5
Format response time & size
2024-03-29 18:44:32 +11:00
Peter Stockings
6044d2e00b
For postman-like mithril.js driven client made the following minor changes
...
* Display response status, size, time
* Toggle between response body (text), Browser preview (HTML), & headers
2024-03-29 18:38:48 +11:00
Peter Stockings
c2d17e1b82
Remove unused stylings from landing page template
2024-03-29 18:32:23 +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
df458c2738
Use mithril.js to make postman like client (Previously was static html with a sprinkling of js)
2024-03-28 20:49:49 +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
fc021d6971
Use landing page template and perform minor UI updates on other pages (Still needs alot of work)
2024-03-24 21:50:21 +11:00
Peter Stockings
e21a575726
Update function editor response view, and add execution timer
2024-03-24 20:52:32 +11:00
Peter Stockings
761165cb23
Minor UI change for function edit form, moved execute button to bottom
2024-03-24 19:48:43 +11:00
Peter Stockings
2d9c0b9d53
Add ability to rename http functions
2024-01-03 16:37:36 +11:00
Peter Stockings
563d93ab69
Add favicon
2023-12-22 15:46:33 +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
bb29718467
Slightly reduce size of is public icon on http functions list view
2023-12-21 21:38:53 +11:00
Peter Stockings
c03c650da0
Logout when clicking on profile icon
2023-12-21 21:23:12 +11:00
Peter Stockings
e124025568
Add icon on http function list view to denote public status
2023-12-21 20:04:39 +11:00
Peter Stockings
37b9e10914
Add link to logs from edit page and vice versa for http functions, QOL change
2023-12-21 19:11:24 +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
14e4672be6
Add link to login page from signup page
2023-12-21 12:05:15 +11:00
Peter Stockings
2077eb835f
Render http function url in client url feild
2023-12-20 23:45:40 +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
6a894df009
In function editor response panel show returned http status code
2023-12-20 21:08:26 +11:00
Peter Stockings
595d392af4
Change text to red when isolator returns error on function playground
2023-12-19 23:17:12 +11:00
Peter Stockings
fc2ca7c4e8
Remove debugger from editor template
2023-12-19 21:24:46 +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
4b64430022
Add refresh view button on edit page, found it useful for testing to see updates to environment info
2023-12-19 19:10:58 +11:00
Peter Stockings
c968ef583c
Use url_for to generate url for http functions on overview page
2023-12-19 12:41:48 +11:00
Peter Stockings
c30c666caf
Update remaining editor maxLines to 100 from 15
2023-12-18 23:06:13 +11:00
Peter Stockings
17f98195a2
Update maxLines to 100 for all ace editors, this auto sizes the editors
2023-12-18 22:39:21 +11:00
Peter Stockings
4b0c356cda
Add link to selected http function from edit/logs views. Also remove min number of lines from environment info ace editor
2023-12-18 22:18:31 +11:00
Peter Stockings
9aa551a083
Make http functions overview page more responsive
2023-12-18 21:24:40 +11:00
Peter Stockings
71ab2c3b6b
Add refresh button on logs page
2023-12-18 20:57:57 +11:00
Peter Stockings
7bde81c89a
Make logs table more responsive (Still needs alot of work - probably need to make accordion)
2023-12-18 20:44:24 +11:00
Peter Stockings
6f46198693
Add ability to see history of http functions invocations
2023-12-18 20:33:58 +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
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
538d5083e4
Remove trailing newlines introduced from new/edit page for http functions
2023-12-17 11:06:42 +11:00
Peter Stockings
204000a668
Add ability to delete http functions
2023-12-16 22:35:28 +11:00