chore: fix nim import warnings

This commit is contained in:
Jonathan Rainville 2021-06-23 14:06:33 -04:00 committed by Iuri Matias
parent 1bcfd9df14
commit 60b6390581
21 changed files with 35 additions and 52 deletions

View File

@ -1,8 +1,5 @@
import # std libs
sugar, sequtils, times, strutils
import
stew/faux_closures
strutils
import # status-desktop libs
../../status/chat/chat as status_chat, ./views/communities,

View File

@ -1,5 +1,5 @@
import NimQml, Tables, json, sequtils, chronicles, times, re, sugar, strutils, os, strformat, algorithm
import ../../status/[status, mailservers]
import NimQml, Tables, json, sequtils, chronicles, strutils, os, strformat
import ../../status/[status]
import ../../status/constants
import ../../status/utils as status_utils
import ../../status/chat as status_chat

View File

@ -1,7 +1,6 @@
import NimQml, Tables
import ../../../status/chat/[chat, message]
import ../../../status/chat/[chat]
import ../../../status/status
import ../../../status/ens
import ../../../status/accounts
import strutils

View File

@ -1,11 +1,10 @@
import NimQml, Tables, json, sequtils, chronicles, times, re, sugar, strutils, os, strformat, algorithm
import NimQml, Tables, json, sequtils, chronicles, strutils
import ../../../status/[status, contacts, types]
import ../../../status/signals/types as signal_types
import ../../../status/[status, contacts]
import ../../../status/ens as status_ens
import ../../../status/chat as status_chat
import ../../../status/chat/[chat, message]
import ../../../status/tasks/[qt, task_runner_impl]
import ../../../status/chat/[chat]
import ../../../status/tasks/[task_runner_impl]
import communities, chat_item, channels_list, communities, community_list

View File

@ -4,7 +4,6 @@ import ../../../status/chat/chat
import ./community_list
import ./community_item
import ./community_membership_request_list
import ./channels_list
import ../../utils/image_utils
import ../../../status/signals/types as signal_types
import ../../../status/types

View File

@ -1,4 +1,4 @@
import NimQml, Tables, json, sequtils, chronicles, times, re, sugar, strutils, os, strformat, algorithm
import NimQml, json, sequtils, chronicles, re, strutils
logScope:
topics = "formatinput-view"

View File

@ -1,8 +1,8 @@
import NimQml, Tables, sets, json, sugar, re
import NimQml, Tables, json, re
import ../../../status/status
import ../../../status/accounts
import ../../../status/chat
import ../../../status/chat/[message,stickers]
import ../../../status/chat/[message]
import ../../../status/profile/profile
import ../../../status/ens
import strformat, strutils, sequtils

View File

@ -5,7 +5,7 @@ import ../../../status/chat
import ../../../status/chat/[message,stickers]
import ../../../status/profile/profile
import ../../../status/ens
import strformat, strutils
import strutils
import message_format
type

View File

@ -1,6 +1,6 @@
import NimQml
import Tables
import json, sequtils, sugar
import json, sequtils
import ../../../status/settings
import ../../../status/types
import ../../../status/status

View File

@ -1,13 +1,12 @@
import atomics, strformat, strutils, sequtils, json, std/wrapnils, parseUtils, tables, chronicles, web3/[ethtypes, conversions], stint
from sugar import `=>`, `->`
import atomics, strutils, sequtils, json, tables, chronicles, web3/[ethtypes, conversions], stint
import NimQml, json, sequtils, chronicles, strutils, strformat, json
import
../../../status/[status, settings, wallet, tokens],
../../../status/[status, wallet, tokens],
../../../status/tokens as status_tokens,
../../../status/tasks/[qt, task_runner_impl]
import account_list, account_item, transaction_list, accounts, asset_list, token_list, transactions, history
import account_item, accounts, transactions, history
logScope:
topics = "balance-view"

View File

@ -1,9 +1,9 @@
import atomics, strformat, strutils, sequtils, json, std/wrapnils, parseUtils, tables, chronicles, web3/[ethtypes, conversions], stint
import NimQml, json, sequtils, chronicles, strutils, strformat, json
import sequtils, json, chronicles, web3/[ethtypes, conversions], stint
import NimQml, json, sequtils, chronicles, strutils, json
import ../../../status/[status, settings, wallet, tokens, types]
import ../../../status/[status, settings, wallet, types]
import account_list, account_item, transaction_list, accounts, asset_list, token_list
import account_list, account_item, accounts
logScope:
topics = "ens-view"

View File

@ -1,11 +1,11 @@
import atomics, strformat, strutils, sequtils, json, std/wrapnils, parseUtils, tables, chronicles, web3/[ethtypes, conversions], stint
import atomics, strformat, strutils, sequtils, json, std/wrapnils, parseUtils, chronicles, web3/[ethtypes, conversions], stint
import NimQml, json, sequtils, chronicles, strutils, strformat, json
import
../../../status/[status, settings, wallet, tokens, utils, types],
../../../status/[status, wallet, utils, types],
../../../status/tasks/[qt, task_runner_impl]
import account_list, account_item, transaction_list, accounts
import account_item
const ZERO_ADDRESS* = "0x0000000000000000000000000000000000000000"

View File

@ -1,13 +1,13 @@
import algorithm, atomics, strformat, strutils, sequtils, json, std/wrapnils, parseUtils, tables, chronicles, web3/[ethtypes, conversions], stint, sugar
import algorithm, atomics, strutils, sequtils, json, tables, chronicles, web3/[ethtypes, conversions], stint, sugar
from sugar import `=>`, `->`
import NimQml, json, sequtils, chronicles, strutils, strformat, json
import NimQml, json, sequtils, chronicles, strutils, json
import
../../../status/[status, settings, wallet, tokens, types, utils],
../../../status/[status, wallet, types, utils],
../../../status/wallet as status_wallet,
../../../status/tasks/[qt, task_runner_impl]
import account_list, account_item, transaction_list, accounts, asset_list, token_list, transactions
import account_list, account_item, transaction_list, accounts, transactions
logScope:
topics = "history-view"

View File

@ -1,11 +1,7 @@
import json, json_serialization
import
sugar, sequtils, strutils, atomics
import json
import libstatus/browser as status_browser
import ../eventemitter
import signals/types
#TODO: temporary?
import types as LibStatusTypes

View File

@ -1,10 +1,8 @@
import json, strutils, sequtils, tables, chronicles, times, sugar
import libstatus/chat as status_chat
import libstatus/mailservers as status_mailservers
import libstatus/chatCommands as status_chat_commands
import types
import utils as status_utils
import libstatus/contacts as status_contacts
import stickers
import ../eventemitter

View File

@ -1,5 +1,5 @@
import json, strmisc, atomics
import core, ../utils, ../types, settings
import core, ../utils, ../types
from ../profile/profile import Profile
var

View File

@ -1,4 +1,4 @@
import json, times
import json
import core, ../utils
proc ping*(mailservers: seq[string], timeoutMs: int): string =

View File

@ -1,11 +1,7 @@
import json, json_serialization
import
sugar, sequtils, strutils, atomics
import json
import libstatus/mailservers as status_mailservers
import ../eventemitter
import signals/types
#TODO: temporary?
import types as LibStatusTypes

View File

@ -1,4 +1,4 @@
import ens, chat/stickers, wallet, settings, permissions
import ens, wallet, permissions
import ../eventemitter
import types
import libstatus/accounts

View File

@ -1,4 +1,4 @@
import json, random, strutils, sequtils, sugar, chronicles, tables
import json, random, strutils, sequtils, sugar, chronicles
import json_serialization
import ../utils
import ../libstatus/accounts as status_accounts

View File

@ -1,12 +1,12 @@
import
algorithm, chronos, chronicles, json, math, os, random, sequtils, sets, sugar,
algorithm, chronos, chronicles, json, math, os, random, sequtils, sets,
tables
from times import cpuTime
import
../../../libstatus/settings as status_settings,
../../../libstatus/mailservers as status_mailservers,
../../../libstatus/core as status_core, ../../../libstatus/chat as status_chat,
../../../libstatus/core as status_core,
../../../types, ../../../fleet,
./events as mailserver_events