Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
DoraemonKit
提交
daf8b04e
D
DoraemonKit
项目概览
DiDi
/
DoraemonKit
11 个月 前同步成功
通知
166
Star
19623
Fork
3062
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DoraemonKit
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
daf8b04e
编写于
4月 07, 2020
作者:
Y
yixiangboy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
国际化和android端对齐
上级
4ddb763f
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
37 addition
and
37 deletion
+37
-37
iOS/DoraemonKit/Resource/en.lproj/Doraemon.strings
iOS/DoraemonKit/Resource/en.lproj/Doraemon.strings
+8
-8
iOS/DoraemonKit/Resource/zh-Hans.lproj/Doraemon.strings
iOS/DoraemonKit/Resource/zh-Hans.lproj/Doraemon.strings
+11
-11
iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.h
iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.h
+1
-1
iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m
iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m
+11
-11
iOS/DoraemonKit/Src/Core/Plugin/Common/DeleteLocalData/DoraemonDeleteLocalDataViewController.m
...n/DeleteLocalData/DoraemonDeleteLocalDataViewController.m
+2
-2
iOS/DoraemonKit/Src/Core/Plugin/Performance/UIProfile/DoraemonUIProfileViewController.m
...n/Performance/UIProfile/DoraemonUIProfileViewController.m
+1
-1
iOS/DoraemonKit/Src/Core/Plugin/UI/ViewMetrics/DoraemonMetricsViewController.m
...ore/Plugin/UI/ViewMetrics/DoraemonMetricsViewController.m
+2
-2
iOS/DoraemonKit/Src/GPS/DoraemonGPSViewController.m
iOS/DoraemonKit/Src/GPS/DoraemonGPSViewController.m
+1
-1
未找到文件。
iOS/DoraemonKit/Resource/en.lproj/Doraemon.strings
浏览文件 @
daf8b04e
...
...
@@ -107,7 +107,7 @@
"链接不能为空" = "url can not be nil";
//清除本地数据
"清
除本地数据
" = "Clear Sanbox";
"清
理缓存
" = "Clear Sanbox";
"确定要删除本地数据" = "Confirm to clear sanbox data";
"正在清理中" = "Deleting";
...
...
@@ -207,8 +207,8 @@
"确认删除所有卡顿记录吗?" = "Confirm to delete all ANR tracks?";
//大图检测
"大图检测" = "
Large Image
";
"大图检测开关" = "
Large
image detection switch";
"大图检测" = "
BigImg
";
"大图检测开关" = "
Big
image detection switch";
//弱网检测
"模拟弱网" = "Weak Network";
...
...
@@ -229,7 +229,7 @@
"本次启动时间为" = "App launch time = ";
//UI层级
"UI层级
检查
" = "UI Hierarchy";
"UI层级" = "UI Hierarchy";
"UI层级检查开关" = "UI Hierarchy switch";
//函数耗时
...
...
@@ -250,8 +250,8 @@
"内存泄漏检测弹框提醒" = "Memory Leak Alert Warning";
"内存泄漏检测结果" = "Memory Leak Result";
//
颜色拾取
器
"
颜色拾取
器" = "Color Picker";
//
取色
器
"
取色
器" = "Color Picker";
//组件检查
"组件检查" = "View Check";
...
...
@@ -265,8 +265,8 @@
"位置:左%@ 右%@ 上%@ 下%@" = "Position: left:%@ right:%@ top:%@ bottom:%@";
//元素边框线
"
元素边框线
" = "View Border";
"
元素边框线开关" = "Widget
border switch";
"
布局边框
" = "View Border";
"
布局边框开关" = "View
border switch";
//UI结构
"UI结构" = "UI Structure";
...
...
iOS/DoraemonKit/Resource/zh-Hans.lproj/Doraemon.strings
浏览文件 @
daf8b04e
...
...
@@ -88,8 +88,8 @@
"文件预览" = "文件预览";
//Mock GPS
"Mock GPS" = "
Mock GPS
";
"打开Mock GPS" = "打开
Mock GPS
";
"Mock GPS" = "
位置模拟
";
"打开Mock GPS" = "打开
位置模拟
";
"请输入经纬度" = "请输入经纬度";
"经纬度不能为空" = "经纬度不能为空";
"格式不正确" = "格式不正确";
...
...
@@ -107,7 +107,7 @@
"链接不能为空" = "链接不能为空";
//清除本地数据
"清
除本地数据" = "清除本地数据
";
"清
理缓存" = "清理缓存
";
"确定要删除本地数据" = "确定要删除本地数据";
"正在清理中" = "正在清理中";
...
...
@@ -148,9 +148,9 @@
"CPU检测开关" = "CPU检测开关";
//内存
"内存" = "
Memory
";
"内存检测" = "
Memory monitor
";
"内存检测开关" = "
Memory monitor switch
";
"内存" = "
内存
";
"内存检测" = "
内存检测
";
"内存检测开关" = "
内存检测开关
";
//网络
"网络" = "网络";
...
...
@@ -229,7 +229,7 @@
"本次启动时间为" = "本次启动时间为";
//UI层级
"UI层级
检查" = "UI层级检查
";
"UI层级
" = "UI层级
";
"UI层级检查开关" = "UI层级检查开关";
//函数耗时
...
...
@@ -248,8 +248,8 @@
"内存泄漏检测弹框提醒" = "内存泄漏检测弹框提醒";
"内存泄漏检测结果" = "内存泄漏检测结果";
//
颜色拾取
器
"
颜色拾取器" = "颜色拾取
器";
//
取色
器
"
取色器" = "取色
器";
//组件检查
"组件检查" = "组件检查";
...
...
@@ -263,8 +263,8 @@
"位置:左%@ 右%@ 上%@ 下%@" = "位置:左%@ 右%@ 上%@ 下%@";
//元素边框线
"
元素边框线" = "元素边框线
";
"
元素边框线开关" = "元素边框线
开关";
"
布局边框" = "布局边框
";
"
布局边框开关" = "布局边框
开关";
//UI结构
"UI结构" = "UI结构";
...
...
iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.h
浏览文件 @
daf8b04e
...
...
@@ -37,7 +37,7 @@ typedef NS_ENUM(NSUInteger, DoraemonManagerPluginType) {
DoraemonManagerPluginType_DoraemonCrashPlugin
,
// 子线程UI
DoraemonManagerPluginType_DoraemonSubThreadUICheckPlugin
,
// 清
除本地数据
// 清
理缓存
DoraemonManagerPluginType_DoraemonDeleteLocalDataPlugin
,
// NSLog
DoraemonManagerPluginType_DoraemonNSLogPlugin
,
...
...
iOS/DoraemonKit/Src/Core/Manager/DoraemonManager.m
浏览文件 @
daf8b04e
...
...
@@ -280,7 +280,7 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
-
(
void
)
addPluginWithPluginType
:(
DoraemonManagerPluginType
)
pluginType
{
DoraemonManagerPluginTypeModel
*
model
=
[
self
getDefaultPluginDataWithPluginType
:
pluginType
];
[
self
addPluginWithTitle
:
DoraemonLocalizedString
(
model
.
title
)
icon
:
model
.
icon
desc
:
DoraemonLocalizedString
(
model
.
desc
)
pluginName
:
model
.
pluginName
atModule
:
DoraemonLocalizedString
(
model
.
atModule
)
buriedPoint
:
model
.
buriedPoint
];
[
self
addPluginWithTitle
:
model
.
title
icon
:
model
.
icon
desc
:
model
.
desc
pluginName
:
model
.
pluginName
atModule
:
model
.
atModule
buriedPoint
:
model
.
buriedPoint
];
}
-
(
void
)
addPluginWithTitle
:(
NSString
*
)
title
icon
:(
NSString
*
)
iconName
desc
:(
NSString
*
)
desc
pluginName
:(
NSString
*
)
entryName
atModule
:(
NSString
*
)
moduleName
{
...
...
@@ -467,8 +467,8 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
@{
kBuriedPoint
:
@"dokit_sdk_comm_ck_sandbox"
}
],
@
(
DoraemonManagerPluginType_DoraemonGPSPlugin
)
:
@[
@{
kTitle
:
@"Mock GPS"
},
@{
kDesc
:
@"Mock GPS"
},
@{
kTitle
:
DoraemonLocalizedString
(
@"Mock GPS"
)
},
@{
kDesc
:
DoraemonLocalizedString
(
@"Mock GPS"
)
},
@{
kIcon
:
@"doraemon_mock_gps"
},
@{
kPluginName
:
@"DoraemonGPSPlugin"
},
@{
kAtModule
:
DoraemonLocalizedString
(
@"常用工具"
)},
...
...
@@ -483,8 +483,8 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
@{
kBuriedPoint
:
@"dokit_sdk_comm_ck_h5"
}
],
@
(
DoraemonManagerPluginType_DoraemonDeleteLocalDataPlugin
)
:
@[
@{
kTitle
:
DoraemonLocalizedString
(
@"清
除本地数据
"
)},
@{
kDesc
:
DoraemonLocalizedString
(
@"清
除本地数据
"
)},
@{
kTitle
:
DoraemonLocalizedString
(
@"清
理缓存
"
)},
@{
kDesc
:
DoraemonLocalizedString
(
@"清
理缓存
"
)},
@{
kIcon
:
@"doraemon_qingchu"
},
@{
kPluginName
:
@"DoraemonDeleteLocalDataPlugin"
},
@{
kAtModule
:
DoraemonLocalizedString
(
@"常用工具"
)},
...
...
@@ -614,8 +614,8 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
@{
kBuriedPoint
:
@"dokit_sdk_performance_ck_leak"
}
],
@
(
DoraemonManagerPluginType_DoraemonUIProfilePlugin
)
:
@[
@{
kTitle
:
DoraemonLocalizedString
(
@"UI层级
检查
"
)},
@{
kDesc
:
DoraemonLocalizedString
(
@"
显示UI层级检查
"
)},
@{
kTitle
:
DoraemonLocalizedString
(
@"UI层级"
)},
@{
kDesc
:
DoraemonLocalizedString
(
@"
UI层级s
"
)},
@{
kIcon
:
@"doraemon_view_level"
},
@{
kPluginName
:
@"DoraemonUIProfilePlugin"
},
@{
kAtModule
:
DoraemonLocalizedString
(
@"性能检测"
)},
...
...
@@ -639,8 +639,8 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
],
// 视觉工具
@
(
DoraemonManagerPluginType_DoraemonColorPickPlugin
)
:
@[
@{
kTitle
:
DoraemonLocalizedString
(
@"
颜色拾取
器"
)},
@{
kDesc
:
DoraemonLocalizedString
(
@"
颜色拾取
器"
)},
@{
kTitle
:
DoraemonLocalizedString
(
@"
取色
器"
)},
@{
kDesc
:
DoraemonLocalizedString
(
@"
取色
器"
)},
@{
kIcon
:
@"doraemon_straw"
},
@{
kPluginName
:
@"DoraemonColorPickPlugin"
},
@{
kAtModule
:
DoraemonLocalizedString
(
@"视觉工具"
)},
...
...
@@ -663,8 +663,8 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
@{
kBuriedPoint
:
@"dokit_sdk_ui_ck_aligin_scaleplate"
}
],
@
(
DoraemonManagerPluginType_DoraemonViewMetricsPlugin
)
:
@[
@{
kTitle
:
DoraemonLocalizedString
(
@"
元素边框线
"
)},
@{
kDesc
:
DoraemonLocalizedString
(
@"
元素边框线
"
)},
@{
kTitle
:
DoraemonLocalizedString
(
@"
布局边框
"
)},
@{
kDesc
:
DoraemonLocalizedString
(
@"
布局边框
"
)},
@{
kIcon
:
@"doraemon_viewmetrics"
},
@{
kPluginName
:
@"DoraemonViewMetricsPlugin"
},
@{
kAtModule
:
DoraemonLocalizedString
(
@"视觉工具"
)},
...
...
iOS/DoraemonKit/Src/Core/Plugin/Common/DeleteLocalData/DoraemonDeleteLocalDataViewController.m
浏览文件 @
daf8b04e
...
...
@@ -21,10 +21,10 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
title
=
DoraemonLocalizedString
(
@"清
除本地数据
"
);
self
.
title
=
DoraemonLocalizedString
(
@"清
理缓存
"
);
_cellBtn
=
[[
DoraemonCellButton
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
bigTitleView
.
doraemon_bottom
,
self
.
view
.
doraemon_width
,
kDoraemonSizeFrom750_Landscape
(
104
))];
[
_cellBtn
renderUIWithTitle
:
DoraemonLocalizedString
(
@"清
除本地数据
"
)];
[
_cellBtn
renderUIWithTitle
:
DoraemonLocalizedString
(
@"清
理缓存
"
)];
[
_cellBtn
renderUIWithRightContent
:[
self
getHomeDirFileSize
]];
_cellBtn
.
delegate
=
self
;
[
_cellBtn
needDownLine
];
...
...
iOS/DoraemonKit/Src/Core/Plugin/Performance/UIProfile/DoraemonUIProfileViewController.m
浏览文件 @
daf8b04e
...
...
@@ -22,7 +22,7 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
title
=
DoraemonLocalizedString
(
@"UI层级
检查
"
);
self
.
title
=
DoraemonLocalizedString
(
@"UI层级"
);
_switchView
=
[[
DoraemonCellSwitch
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
bigTitleView
.
doraemon_bottom
,
self
.
view
.
doraemon_width
,
kDoraemonSizeFrom750
(
104
))];
[
_switchView
renderUIWithTitle
:
DoraemonLocalizedString
(
@"UI层级检查开关"
)
switchOn
:[
DoraemonUIProfileManager
sharedInstance
].
enable
];
...
...
iOS/DoraemonKit/Src/Core/Plugin/UI/ViewMetrics/DoraemonMetricsViewController.m
浏览文件 @
daf8b04e
...
...
@@ -21,10 +21,10 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
title
=
DoraemonLocalizedString
(
@"
元素边框线
"
);
self
.
title
=
DoraemonLocalizedString
(
@"
布局边框
"
);
_switchView
=
[[
DoraemonCellSwitch
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
bigTitleView
.
doraemon_bottom
,
self
.
view
.
doraemon_width
,
kDoraemonSizeFrom750_Landscape
(
104
))];
[
_switchView
renderUIWithTitle
:
DoraemonLocalizedString
(
@"
元素边框线
开关"
)
switchOn
:[
DoraemonViewMetricsConfig
defaultConfig
].
enable
];
[
_switchView
renderUIWithTitle
:
DoraemonLocalizedString
(
@"
布局边框
开关"
)
switchOn
:[
DoraemonViewMetricsConfig
defaultConfig
].
enable
];
[
_switchView
needTopLine
];
[
_switchView
needDownLine
];
_switchView
.
delegate
=
self
;
...
...
iOS/DoraemonKit/Src/GPS/DoraemonGPSViewController.m
浏览文件 @
daf8b04e
...
...
@@ -32,7 +32,7 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
title
=
@"Mock GPS"
;
self
.
title
=
DoraemonLocalizedString
(
@"Mock GPS"
)
;
[
self
initUI
];
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录