-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
394 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Vue from 'vue' | ||
import VueI18n from 'vue-i18n' | ||
import { en } from './langs/en' | ||
import { cn } from './langs/cn' | ||
|
||
Vue.use(VueI18n) | ||
|
||
export default new VueI18n({ | ||
locale: localStorage.getItem('language') || 'cn', | ||
fallbackLocale: 'en', | ||
messages: { | ||
en, cn | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
export const cn = { | ||
title: 'Weex 真机调试工具', | ||
navbar: { | ||
help: '帮助', | ||
environmentSetting: '环境设置' | ||
}, | ||
home: { | ||
languageTitle: 'Languages', | ||
welcomMessage: '欢迎使用 Weex 调试工具', | ||
tabs: { | ||
debugName: '调试', | ||
pageName: '页面' | ||
}, | ||
tips: { | ||
quickStartTitle: '快速使用', | ||
quickStartDesc: '快速了解如何在你的开发中使用 weex 调试工具', | ||
quickStartUrl: 'http://weex.apache.org/tools/toolkit.html#debug', | ||
guideTitle: '使用教程', | ||
guideDesc: '详细介绍各个功能的使用说明', | ||
guideUrl: 'http://weex.apache.org/tools/toolkit.html#debug', | ||
integerTitle: '集成 Weex Devtool 到你的应用', | ||
integerDesc: '了解如何在你的应用中集成 Weex Devtool SDK', | ||
integerUrl: 'http://weex.apache.org/cn/guide/integrate-devtool-to-ios.html', | ||
helpTitle: '帮助和意见反馈', | ||
helpDesc: '提交Github issue 和帮助提高 Weex Devtool', | ||
helpUrl: 'https://github.com/weexteam/weex-toolkit/issues/new?labels=@weex-cli/debug', | ||
noJsBundle: '暂无可预览页面,你可以通过下面的命令进行页面编译' | ||
}, | ||
toastTips: { | ||
copySuccess: '复制成功', | ||
openPage: '打开页面' | ||
}, | ||
version: '当前版本' | ||
}, | ||
defaultPage: { | ||
title: '性能面板', | ||
pageDescription: '页面正在施工中...' | ||
}, | ||
weexDebugPage: { | ||
title: 'Weex 调试', | ||
appInfo: '应用信息', | ||
sdkVersion: 'SDK版本', | ||
jsDebug: 'JS调试', | ||
network: '网络审查', | ||
logLevel: '日志等级', | ||
elementMode: '切换视图', | ||
clearHistory: '清空历史', | ||
workerJsDesc: 'WorkerJS为调试中间文件,文件开头为[Runtime]-的文件', | ||
jsServiceDesc: 'JSService是weex在运行中使用<a href="http://weex.apache.org/cn/references/js-service.html" target="_blank">JSService接口</a>注入的JS文件,多个文件用逗号隔开', | ||
dependenceJsDesc: 'DependenceJS是weex在创建实例前在JS环境中注入的JS文件', | ||
jsFrameworkDesc: 'JSFramework是为weex运行提供初始环境的JS', | ||
environmentSettingOkDesc: '更改设置', | ||
environmentSettingCancelDesc: '重置', | ||
reloadDesc: '刷新', | ||
restoreDesc: '恢复', | ||
mockTips: 'mock 文件', | ||
generatorFile: '生成文件' | ||
}, | ||
sideBar: { | ||
weex: { | ||
title: 'WEEX 调试' | ||
}, | ||
analyze: { | ||
title: '性能面板' | ||
} | ||
}, | ||
tour: { | ||
step_1: '点击这里可以控制<strong>JS Debug</strong>开关,开启后即可开始JS调试!', | ||
step_2: '点击这里可以选择Log日志等级', | ||
step_3: '进入调试页面后点击这里可以刷新Weex页面', | ||
step_4: '在这里可以输入你本地想访问的JSBundle文件,回车键跳转', | ||
step_5: '点击这里可以针对Weex运行环境进行配置', | ||
step_6: '点击这里可以对文件进行Mock替换', | ||
step_7: '点击这里可以让环境配置生效', | ||
step_8: '点击这里重置环境', | ||
nextText: '下一个', | ||
prevText: '上一个', | ||
finishText: '完成', | ||
skip: '跳过' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
export const en = { | ||
title: 'Weex Debug Tool', | ||
navbar: { | ||
help: 'Help', | ||
environmentSetting: 'Environment' | ||
}, | ||
home: { | ||
languageTitle: '切换语言', | ||
welcomMessage: 'Welcome to weex debugging tool', | ||
tabs: { | ||
debugName: 'Debug', | ||
pageName: 'Pages' | ||
}, | ||
tips: { | ||
quickStartTitle: 'Quick start', | ||
quickStartDesc: 'Quickly learn how to use the weex debugging tool', | ||
quickStartUrl: 'http://weex.apache.org/tools/toolkit.html#debug', | ||
guideTitle: 'Tutorial', | ||
guideDesc: 'Detailed instructions for using each function', | ||
guideUrl: 'http://weex.apache.org/tools/toolkit.html#debug', | ||
integerTitle: 'Integrate Weex Devtool', | ||
integerDesc: 'Learn how to integrate the Weex Devtool SDK into your app', | ||
integerUrl: 'http://weex.apache.org/cn/guide/integrate-devtool-to-ios.html', | ||
helpTitle: 'Help & Feedback', | ||
helpDesc: 'Submit a Github issue to help Weex Devtool be better', | ||
helpUrl: 'https://github.com/weexteam/weex-toolkit/issues/new?labels=@weex-cli/debug', | ||
noJsBundle: 'There is no preview page yet, you can compile the page with the following command' | ||
}, | ||
toastTips: { | ||
copySuccess: 'Copy success', | ||
openPage: 'Open page' | ||
}, | ||
version: 'Version' | ||
}, | ||
defaultPage: { | ||
title: 'Performance', | ||
pageDescription: 'The page is under development...' | ||
}, | ||
weexDebugPage: { | ||
title: 'Weex Debug', | ||
appInfo: 'APP Info', | ||
sdkVersion: 'SDK Version', | ||
jsDebug: 'JS Debug', | ||
network: 'Network', | ||
logLevel: 'LogLevel', | ||
elementMode: 'ElementMode', | ||
clearHistory: 'Clean', | ||
workerJsDesc: 'WorkerJS is a debugging intermediate file, the file starts with \`[Runtime]-\`', | ||
jsServiceDesc: 'JSService is using <a href="http://weex.apache.org/cn/references/js-service.html" target="_blank">JSService API</a>register in the run, multiple files separated by commas', | ||
dependenceJsDesc: 'DependenceJS is the JS file injected by Weex in the JS environment before creating the instance', | ||
jsFrameworkDesc: 'JSFramework is the JS that provides the initial environment for weex to run', | ||
environmentSettingOkDesc: 'Change Setting', | ||
environmentSettingCancelDesc: 'Reset', | ||
reloadDesc: 'Refresh', | ||
restoreDesc: 'Restore', | ||
mockTips: 'Mock file', | ||
generatorFile: 'Generate File' | ||
}, | ||
sideBar: { | ||
weex: { | ||
title: 'WEEX DEBUG' | ||
}, | ||
analyze: { | ||
title: 'PERFORMENCE' | ||
} | ||
}, | ||
tour: { | ||
step_1: 'Click here to control the <strong>JS Debug</strong> switch, and start JS debugging after opening!', | ||
step_2: 'Click here to select Log log level', | ||
step_3: 'Click here to refresh the Weex page after entering the debug page', | ||
step_4: 'Enter the JSBundle file you want to access locally, press Enter to jump', | ||
step_5: 'Click here to configure for the Weex runtime environment', | ||
step_6: 'Click here to Mock replace the file', | ||
step_7: 'Click here to make the environment configuration take effect', | ||
step_8: 'Click here to reset the environment', | ||
nextText: 'Next', | ||
prevText: 'Prev', | ||
finishText: 'Finish', | ||
skip: 'Skip' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.