feat: add Trans.util.test.query_youdao file ,.. and some utility function
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
local M = {}
|
||||
|
||||
M.to_lines = function (field)
|
||||
M.to_content = function (field)
|
||||
-- TODO
|
||||
end
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
local M = {}
|
||||
|
||||
M.to_lines = function (field)
|
||||
M.to_content = function (field)
|
||||
-- TODO
|
||||
end
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
local M = {}
|
||||
|
||||
M.to_lines = function (field)
|
||||
M.to_content = function (field)
|
||||
-- TODO
|
||||
end
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
local M = {}
|
||||
|
||||
M.to_lines = function (field)
|
||||
M.to_content = function (field)
|
||||
-- TODO
|
||||
end
|
||||
|
||||
|
@ -1,7 +1,31 @@
|
||||
local M = {}
|
||||
|
||||
M.to_lines = function (field)
|
||||
local display = require("Tran.conf").ui.display
|
||||
-- Example:
|
||||
-- local content = {
|
||||
-- width = 1,
|
||||
-- height = 1;
|
||||
-- lines = {
|
||||
-- Highlight = {
|
||||
-- 'first line',
|
||||
-- 'second line',
|
||||
-- }
|
||||
-- }, ---@table
|
||||
-- }
|
||||
|
||||
|
||||
-- local function format()
|
||||
--
|
||||
-- end
|
||||
|
||||
M.to_content = function (field)
|
||||
-- TODO
|
||||
local line = ''
|
||||
local format = '%s %s %s %s'
|
||||
local content = {
|
||||
height = 1,
|
||||
}
|
||||
return content
|
||||
end
|
||||
|
||||
return M
|
||||
|
@ -1,6 +1,6 @@
|
||||
local M = {}
|
||||
|
||||
M.to_lines = function (field)
|
||||
M.to_content = function (field)
|
||||
-- TODO
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user