Commit Graph

92 Commits

Author SHA1 Message Date
Peter Stockings
9d48bbd285 Refactor HTTP functions overview and logs pages with improved UI and responsiveness
- Modernize the design of HTTP functions overview and logs pages
- Add more detailed styling with Tailwind CSS
- Improve layout and readability with better typography and spacing
- Add empty state handling for both logs and functions lists
- Enhance visual hierarchy and interaction states
2025-02-14 22:22:27 +11:00
Peter Stockings
5ec8bba9e8 Refactor HTTP function editor with Mithril components and new API endpoints
- Add new Mithril components for editor (editor.js), response view (responseView.js), and alerts (alert.js)
- Create new API endpoints for creating, updating, and deleting HTTP functions
- Update templates to use new Mithril editor component
- Improve header navigation with more consistent styling and active state indicators
- Remove old edit form route and template
- Add new dedicated editor route and template

cursor.ai
2025-02-14 00:40:45 +11:00
Peter Stockings
bc4a1ae9a6 Show original script as well, still need to add revert/switch version functionality 2024-05-18 22:46:44 +10:00
Peter Stockings
2b4ca571ca Add in version history for http functions
and also load .env in dev mode
2024-05-18 21:55:11 +10:00
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
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
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
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
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
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
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
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