Commit Graph

252 Commits

Author SHA1 Message Date
Ashita Prasad
7d2c29cc0d Update kJSSetupScript & add js_utils.dart 2025-06-22 21:23:55 +05:30
Udhay-Adithya
fe4858ecd0 feat: update pre-request and post-response script handling in CollectionStateNotifier
- Changed return type of handlePreRequestScript and handlePostResponseScript to Future<RequestModel> for better type safety.
- Updated the logic to return the modified request model after executing scripts.
- Ensured that the request model is updated correctly in the sendRequest method after executing the pre-request script.
2025-05-19 16:54:32 +05:30
Udhay-Adithya
0645ab1a33 feat: allow scripts to modify environment variables
Refactors pre-request script execution to support environment variable manipulation.

Introduces a simplified key-value map for the environment within the JavaScript context, allowing easier script interaction. Updates the `ad.environment` JS API accordingly.

Implements logic on the Dart side to translate the structured environment model to the simple map before script execution and merge changes back from the map to the model afterward, persisting the modifications.
2025-05-01 20:14:00 +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
d9906cc88b Merge branch 'foss42:main' into add-feature-scripts 2025-04-25 23:29:23 +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
Ankit Mahato
d55c414438 Update consts.dart 2025-04-23 04:16:14 +05:30
Udhay-Adithya
ef3867ef43 feat: add scripts tab to request pane and update tab structure 2025-04-21 23:31:55 +05:30
Nikhil
db3b343d82 Merge branch 'foss42:main' into add-feature-460 2025-04-14 09:20:51 +05:30
Nikhil
4866c1c520 Added alamofire 2025-03-23 15:19:53 +05:30
Udhay-Adithya
b64d453886 feat: add onboarding functionality and theme switch button 2025-03-17 17:30:48 +05:30
Ashita Prasad
9cf22669bf Merge pull request #525 from StormGear/add-feat-insomia
Added insomia importer
2025-02-24 12:52:33 +05:30
Ashita Prasad
b69a7d5e06 Move EnvironmentVariableType 2025-02-24 12:12:22 +05:30
Ashita Prasad
bbb3fa6364 Update import dialog 2025-02-23 05:51:11 +05:30
Ashita Prasad
67fca59ad4 Merge branch 'main' into main 2025-02-16 17:29:31 +05:30
Ashita Prasad
712d2d21a6 Update consts.dart 2025-02-16 17:24:00 +05:30
Ashita Prasad
0ddecf2163 Add constants 2025-02-16 13:18:48 +05:30
Mrudul-2
aa9e95df95 Added Share Functionality in the Code section by implementing a share-tray by using share_plus package 2025-02-13 17:06:22 +05:30
Ashita Prasad
5de7fd6c83 Merge branch 'main' into add-feat-insomia 2025-01-13 02:10:58 +05:30
StormGear
f4eaf94de3 made necessary name and typo corrections 2025-01-12 13:09:22 +00:00
Ashita Prasad
2c2db4ff21 Hint constants 2025-01-12 16:38:27 +05:30
Ashita Prasad
e33e79e2b4 untitled constant 2025-01-12 15:42:45 +05:30
Ashita Prasad
9339d9a8de Update consts.dart 2025-01-11 13:46:51 +05:30
StormGear
be7954ddd9 added necessary insomnia enums and exports 2025-01-06 15:03:56 +00:00
Ashita Prasad
3a7d9e893a Add Postman Collection version supported 2024-12-23 03:40:47 +05:30
Ashita Prasad
a0a0fd6bf8 Stateful import dialog 2024-12-22 04:52:48 +05:30
Ashita Prasad
329d0ef0c9 Add tokens 2024-12-12 05:22:39 +05:30
Ashita Prasad
4ca5d7b06d Add text dialog 2024-12-06 05:42:40 +05:30
Ashita Prasad
8197a9c2c8 updates 2024-11-30 17:28:48 +05:30
Ashita Prasad
c717b23f7b Update consts.dart 2024-11-30 16:57:13 +05:30
Ashita Prasad
a3536b021b refactor 2024-10-22 07:06:06 +05:30
Ashita Prasad
3e503a06c3 Update main package 2024-10-21 08:30:14 +05:30
Ashita Prasad
f63346ae9a show only in mobile 2024-10-21 05:10:21 +05:30
Clasherzz
cc356d2414 added rustHyper 2024-09-20 20:12:30 +05:30
Ashita Prasad
59fdbae41d Workspace selector feature 2024-09-09 04:03:52 +05:30
Ashita Prasad
bd5c83525e kEncoder -> kJsonEncoder 2024-09-08 05:05:00 +05:30
DenserMeerkat
eb02c435e3 test: his_request_test desktop 2024-08-21 03:13:16 +05:30
Ragul Raj
e6127a5011 Merge branch 'foss42:main' into add-test-environment 2024-08-10 21:06:03 +05:30
Ashita Prasad
ec29debedc Update consts.dart 2024-08-10 20:51:36 +05:30
Ashita Prasad
464a1521c2 move class 2024-08-10 18:33:42 +05:30
DenserMeerkat
ce70a8d1c4 wip: envvar_utils_test 2024-07-29 16:18:10 +05:30
DenserMeerkat
dace495264 fix: ui tests 2024-07-23 16:02:46 +05:30
DenserMeerkat
b2cd91274f wip: manage history dialog 2024-07-22 00:56:44 +05:30
DenserMeerkat
2fc02eadd1 feat: history of requests 2024-07-21 19:55:32 +05:30
DenserMeerkat
d9d60961f7 wip: history requests sheet 2024-07-21 04:34:12 +05:30
Ragul Raj
8eadd7f8fa Merge branch 'main' into add-feature-history 2024-07-20 13:59:15 +05:30
Ashita Prasad
9e61022d89 Update MaterialAppTheme 2024-07-20 10:47:20 +05:30
DenserMeerkat
cad6c97f89 wip: history details pane 2024-07-19 18:11:37 +05:30
Ashita Prasad
c38f9efe0b Refactor design 2024-07-15 02:19:08 +05:30
Ashita Prasad
6277f98ea9 Update item Card menu 2024-07-15 01:51:37 +05:30