193 Commits

Author SHA1 Message Date
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
4196d89440 Pretty print environment info JSON using json.dumps() 2023-12-18 22:16:23 +11:00
Peter Stockings
9aa551a083 Make http functions overview page more responsive 2023-12-18 21:24:40 +11:00
Peter Stockings
7e2181c7a6 Only show invocation logs for http function selected 2023-12-18 21:23:49 +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
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
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
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
efa815c5cb When trying out http function, ensure response is rendered 2023-12-16 20:09:50 +11:00
Peter Stockings
7293801ddd Remove content type as default header from fetch request (this should be fetched from dom) 2023-12-16 20:03:27 +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
8f94ae12ef Add .env to gitignore 2023-12-16 19:05:37 +11:00
Peter Stockings
b0785d282f Remove numpy as dependency 2023-12-16 19:05:10 +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
ca4cfd27b9 Add some text to explain what this does 2023-12-16 17:57:41 +11:00
Peter Stockings
9d4e6e1709 Add ability to clear script and output, and add link to dashboard from home page 2023-12-16 17:50:08 +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
68c29b6617 Only show response when available 2023-12-16 16:56:39 +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