mirror of
https://github.com/foss42/apidash.git
synced 2025-12-10 15:23:19 +08:00
Update flutter_js_service.dart
This commit is contained in:
@@ -2,13 +2,11 @@
|
|||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:developer';
|
import 'dart:developer';
|
||||||
|
import 'package:apidash_core/apidash_core.dart';
|
||||||
import 'package:apidash/consts.dart';
|
|
||||||
import 'package:apidash/models/request_model.dart';
|
|
||||||
import 'package:apidash_core/models/http_request_model.dart';
|
|
||||||
import 'package:apidash_core/models/http_response_model.dart';
|
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_js/flutter_js.dart';
|
import 'package:flutter_js/flutter_js.dart';
|
||||||
|
import '../models/models.dart';
|
||||||
|
import '../utils/utils.dart';
|
||||||
|
|
||||||
late JavascriptRuntime jsRuntime;
|
late JavascriptRuntime jsRuntime;
|
||||||
|
|
||||||
@@ -122,7 +120,7 @@ Future<
|
|||||||
$dataInjection
|
$dataInjection
|
||||||
|
|
||||||
// --- Setup Script (will declare variables within the IIFE scope) ---
|
// --- Setup Script (will declare variables within the IIFE scope) ---
|
||||||
$setupScript
|
$kJSSetupScript
|
||||||
|
|
||||||
// --- User Script (will execute within the IIFE scope)---
|
// --- User Script (will execute within the IIFE scope)---
|
||||||
$userScript
|
$userScript
|
||||||
@@ -216,7 +214,7 @@ Future<
|
|||||||
$dataInjection
|
$dataInjection
|
||||||
|
|
||||||
// --- Setup Script (will declare variables within the IIFE scope) ---
|
// --- Setup Script (will declare variables within the IIFE scope) ---
|
||||||
$setupScript
|
$kJSSetupScript
|
||||||
|
|
||||||
// --- User Script (will execute within the IIFE scope)---
|
// --- User Script (will execute within the IIFE scope)---
|
||||||
$userScript
|
$userScript
|
||||||
|
|||||||
Reference in New Issue
Block a user