cleanup imports

This commit is contained in:
Iuri Matias 2020-05-29 19:08:31 -04:00
parent 2bc165bbc2
commit d4341e1f17
9 changed files with 24 additions and 57 deletions

View File

@ -1,12 +1,11 @@
import NimQml
import json, eventemitter
import ../../status/chat as chat_model
import ../../signals/types
import json, eventemitter, chronicles
import ../../status/libstatus/types as status_types
import ../../signals/types
import ../../status/chat
import ../../status/status
import views/channels_list
import view
import chronicles
import ../../status/status
logScope:
topics = "chat-controller"

View File

@ -1,28 +1,9 @@
import NimQml
import Tables
import strformat
import NimQml, Tables
import random
import ../../../status/chat
const accountColors* = [
"#9B832F",
"#D37EF4",
"#1D806F",
"#FA6565",
"#7CDA00",
"#887af9",
"#8B3131"
]
const channelColors* = [
"#fa6565",
"#7cda00",
"#887af9",
"#51d0f0",
"#FE8F59",
"#d37ef4"
]
const accountColors* = ["#9B832F", "#D37EF4", "#1D806F", "#FA6565", "#7CDA00", "#887af9", "#8B3131"]
const channelColors* = ["#fa6565", "#7cda00", "#887af9", "#51d0f0", "#FE8F59", "#d37ef4"]
type
ChannelsRoles {.pure.} = enum

View File

@ -1,14 +1,7 @@
import NimQml
import chronicles
import options
import std/wrapnils
import eventemitter
import NimQml, eventemitter, chronicles, options, std/wrapnils
import ../../status/libstatus/types as status_types
import ../../signals/types
# import ../../status/accounts as AccountModel
import ../../status/status
import view
type LoginController* = ref object of SignalSubscriber

View File

@ -1,16 +1,17 @@
import NimQml
import Tables
import NimQml, Tables
import json
import nimcrypto
import strformat
import json_serialization
import ../../signals/types
import ../../status/libstatus/types as status_types
import ../../status/libstatus/accounts as status_accounts
import strformat
import json_serialization
import core
import ../../status/accounts as AccountModel
import ../../status/status
import core
type
AccountRoles {.pure.} = enum

View File

@ -1,11 +1,9 @@
import NimQml
import chronicles
import eventemitter
import ../../signals/types
import ../../status/node
import view
import ../../status/status
import view
logScope:
topics = "node"

View File

@ -1,5 +1,4 @@
import NimQml
import Tables
import NimQml, Tables
import json
import nimcrypto
import ../../status/libstatus/types as status_types

View File

@ -1,15 +1,11 @@
import NimQml
import eventemitter
import strformat
import json
import ../../status/libstatus/mailservers as status_mailservers
import ../../signals/types
import view
import "../../status/libstatus/types" as status_types
import ../../status/profile
import ../../status/profile
import ../../status/status
import view
type ProfileController* = object
view*: ProfileView

View File

@ -1,16 +1,17 @@
import NimQml
import eventemitter
# import eventemitter
import strformat
import strutils
import chronicles
import view
import ../../status/libstatus/wallet as status_wallet
import ../../status/wallet
import ../../signals/types
import ../../status/wallet
import ../../status/status
import view
type WalletController* = ref object of SignalSubscriber
status: Status
view*: WalletView

View File

@ -1,8 +1,7 @@
import NimQml
import Tables
import views/asset_list
import NimQml, Tables
import ../../status/wallet
import ../../status/status
import views/asset_list
QtObject:
type