feat: add Trans.util.test.query_youdao file ,.. and some utility function

This commit is contained in:
JuanZoran
2023-01-06 23:05:10 +08:00
parent a1488b2d9b
commit 2f6520940a
10 changed files with 225 additions and 19 deletions

View File

@ -1,6 +1,6 @@
local M = {}
M.to_lines = function (field)
M.to_content = function (field)
-- TODO
end

View File

@ -1,6 +1,6 @@
local M = {}
M.to_lines = function (field)
M.to_content = function (field)
-- TODO
end

View File

@ -1,6 +1,6 @@
local M = {}
M.to_lines = function (field)
M.to_content = function (field)
-- TODO
end

View File

@ -1,6 +1,6 @@
local M = {}
M.to_lines = function (field)
M.to_content = function (field)
-- TODO
end

View File

@ -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

View File

@ -1,6 +1,6 @@
local M = {}
M.to_lines = function (field)
M.to_content = function (field)
-- TODO
end