mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
Refactor terminal and remove duplicate code.
This commit is contained in:
@@ -3,7 +3,6 @@ import 'package:apidash_design_system/apidash_design_system.dart';
|
||||
import 'package:apidash_core/apidash_core.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
// Terminal enums moved here from models to avoid circular imports and simplify usage
|
||||
|
||||
const kDiscordUrl = "https://bit.ly/heyfoss";
|
||||
const kGitUrl = "https://github.com/foss42/apidash";
|
||||
@@ -86,15 +85,6 @@ enum HistoryRetentionPeriod {
|
||||
final IconData icon;
|
||||
}
|
||||
|
||||
/// Source category of a terminal entry
|
||||
enum TerminalSource { network, js, system }
|
||||
|
||||
/// Severity level of a terminal entry
|
||||
enum TerminalLevel { debug, info, warn, error }
|
||||
|
||||
/// Phase of a network log lifecycle
|
||||
enum NetworkPhase { started, progress, completed, failed }
|
||||
|
||||
enum ItemMenuOption {
|
||||
edit("Rename"),
|
||||
delete("Delete"),
|
||||
@@ -521,3 +511,6 @@ const kMsgClearHistorySuccess = 'History cleared successfully';
|
||||
const kMsgClearHistoryError = 'Error clearing history';
|
||||
const kMsgShareError = "Unable to share";
|
||||
const kLabelGenerateUI = "Generate UI";
|
||||
// Terminal Page
|
||||
const kMsgNoLogs = 'No logs yet';
|
||||
const kMsgSendToView = 'Send a request to view its details in the console.';
|
||||
|
||||
Reference in New Issue
Block a user