Commit Graph

83 Commits

Author SHA1 Message Date
Udhay-Adithya
1dab4fe007 feat: add pre_post_script_utils test 2025-07-02 00:09:30 +05:30
Ankit Mahato
053d2ea309 Update flutter_js_service.dart 2025-06-29 01:23:20 +05:30
Ankit Mahato
6b11ec5d84 Merge branch 'main' into add-feature-scripts 2025-06-28 17:59:12 +05:30
Ashita Prasad
702b0d119c sharedprefs to hive 2025-06-23 03:04:24 +05:30
Ashita Prasad
9e686a8145 export flutter_js_services 2025-06-22 21:28:09 +05:30
Ashita Prasad
53fff89056 Update flutter_js_service.dart 2025-06-22 21:24:03 +05:30
Udhay-Adithya
12aa846792 feat: update scripts code pane to use ad dropdown button 2025-06-22 20:09:50 +05:30
Ashita Prasad
ede412f11b Update hive_services.dart 2025-05-17 23:42:10 +05:30
Udhay-Adithya
14ff728870 fix: JS bridge message handling and script execution checks
Refines JS bridge handlers to process messages directly as typed arguments, removing unnecessary JSON decoding and clarifying error logs.
Updates logic to only execute post-response scripts when present and corrects a warning message.
2025-05-16 14:30:58 +05:30
Udhay-Adithya
c2c67a7fca feat: implement post-response script handling and update environment variables 2025-05-02 01:26:52 +05:30
Udhay-Adithya
36061f660a feat add pre-request script execution
Initializes JavaScript runtime during application startup.
Executes user-defined pre-request scripts before sending API requests, allowing modification of request details like URL, headers, and body.
Updates script execution environment for better scoping and uses synchronous evaluation.
2025-05-01 16:48:50 +05:30
Udhay-Adithya
fadf49372f feat: add support for pre-request scripts
Introduces `preRequestScript` and `postRequestScript` fields to the request model to store user-defined scripts.

Implements a service using `flutter_js` to execute JavaScript pre-request scripts before a request is sent.
The script can access and modify request data (like headers, body, URL) and environment variables.

Adds bridging to forward JavaScript `console.log`, `console.warn`, and `console.error` calls to the Dart console for easier debugging
2025-04-25 23:26:31 +05:30
Udhay-Adithya
839d8b5c00 feat: add JavaScript scripting foundation
Introduces a JavaScript setup script that defines the `ad` helper object.
This `ad` object exposes APIs for manipulating request data, accessing response details, and managing environment variables within scripts.

Adds an `evaluate` function to execute JS code using the `flutter_js` runtime and log results or errors.
This establishes the core infrastructure for pre-request and post-response scripting.
2025-04-25 22:34:02 +05:30
Udhay-Adithya
f97b39a103 feat: add flutter_js dependency and implement JS runtime service 2025-04-22 14:39:06 +05:30
Ankit Mahato
f286eb98ff Update shared_preferences_services.dart 2025-04-01 06:55:51 +05:30
Ankit Mahato
279e001a7f Update shared_preferences_services.dart 2025-04-01 06:53:56 +05:30
Udhay-Adithya
9de706d6b9 feat: change onboarding flow and remove theme switch button 2025-03-17 18:11:13 +05:30
Udhay-Adithya
b64d453886 feat: add onboarding functionality and theme switch button 2025-03-17 17:30:48 +05:30
Ashita Prasad
bd5c7597c9 Add clear history 2025-01-12 17:30:17 +05:30
Ashita Prasad
a3536b021b refactor 2024-10-22 07:06:06 +05:30
Ashita Prasad
2f0c97b51e Update hive_services.dart 2024-09-17 22:45:18 +05:30
Ashita Prasad
edf8c523c8 Update hive_services.dart 2024-09-16 15:55:22 +05:30
Ashita Prasad
a0d93082f4 hive updates 2024-09-16 03:03:26 +05:30
Ashita Prasad
a87e7bf6b0 Update hive_services.dart 2024-09-16 00:14:23 +05:30
Ashita Prasad
8820d26885 Add clearSharedPrefs() 2024-09-09 05:13:42 +05:30
Ashita Prasad
83cdc130e5 Update integration test 2024-09-09 04:46:46 +05:30
Ashita Prasad
59fdbae41d Workspace selector feature 2024-09-09 04:03:52 +05:30
Ashita Prasad
802d9e4607 workspace 2024-09-08 15:17:21 +05:30
DenserMeerkat
bed7ad347c feat: auto clear history 2024-07-22 21:19:33 +05:30
DenserMeerkat
d5feb0b091 wip: history request groups 2024-07-14 23:16:29 +05:30
DenserMeerkat
8228b28a24 wip: environment pane 2024-06-13 13:21:35 +05:30
DenserMeerkat
6aa959cbee wip: env models, provider 2024-06-09 10:27:11 +05:30
Ankit Mahato
58ace08ded Refactor models 2024-04-19 19:28:34 +05:30
Ankit Mahato
beb6d52c79 Fix multipart request 2024-03-10 06:06:28 +05:30
Ashita Prasad
d46dd0071f Update ContentType & ResponseBodyView enums 2024-01-08 00:32:49 +05:30
Ashita Prasad
37ec266a23 Merge branch 'main' into form_data_imp 2024-01-07 15:50:20 +05:30
Ashita Prasad
805f82a677 hasContentTypeHeader getter added to RequestModel 2024-01-07 15:44:19 +05:30
Ashita Prasad
fead5e6a20 format 2024-01-07 15:07:40 +05:30
Ashita Prasad
462519610a fixes 2024-01-07 14:45:18 +05:30
Ashita Prasad
3823b94531 Merge branch 'main' into form_data_imp 2024-01-06 22:50:02 +05:30
Ashita Prasad
c92cc4c5d1 Merge branch 'main' into add-feature-checkbox 2024-01-06 03:04:06 +05:30
Vidya Sagar
9fa72af06b feat: added http and dio code gen 2024-01-03 23:10:51 +05:30
APPALA REDDI
5eb91fbaf7 fix: content type header presence check 2024-01-02 09:22:11 +05:30
APPALA REDDI
6efc5d56de fix: wrong header check while overriding content type 2024-01-01 15:03:42 +05:30
APPALA REDDI
5734b79b1f fix: set contenttype only if headers does not have one 2024-01-01 15:01:21 +05:30
Vidya Sagar
6ba41970ad Merge branch 'form_data_imp' of https://github.com/vidya-hub/apidash into form_data_imp 2023-12-27 21:27:41 +05:30
Vidya Sagar
880f445c31 fix: fixes for alignment issues and request handling methods 2023-12-27 21:25:58 +05:30
Ashita Prasad
bdd63ead7e Merge branch 'main' into add-feature-checkbox 2023-12-25 21:29:36 +05:30
Vidya Sagar
513243e711 Merge branch 'main' into form_data_imp 2023-12-24 22:44:31 +05:30
Ashita Prasad
aceb3ada08 Update box names 2023-12-24 16:42:18 +05:30