Skip to content

Commit

Permalink
Prepare to release 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mthli committed Jun 17, 2015
1 parent 252d1ba commit d7ea0e3
Show file tree
Hide file tree
Showing 8 changed files with 755 additions and 251 deletions.
337 changes: 104 additions & 233 deletions Ninja/.idea/workspace.xml

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions Ninja/assets/ninja_introduction_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,46 +26,46 @@ <h1>Ninja introduction</h1>

<p><strong>The author has to prepare for the final exam, so MAYBE pause updates</strong>.</p>

<p>Basically Ninja is a simple web browser like any others, but there are some different things you need to know:</p>
<p>Basically Ninja is a simple web browser like any other, but there are some different things you need to know:</p>

<h3>Custom home:</h3>

<ul><li><p>First login Ninja, home show as <code>about:blank</code>.</p></li><li><p>Use the overflow menu&#39;s <strong>Add to home</strong> to pin webpages.</p></li><li><p>Use the overflow menu&#39;s <strong>Relayout</strong> to custom your home.</p></li><li><p><strong>Long press</strong> on a card of home, you can edit it title.</p></li></ul>
<ul><li><p>On the applications first start, home page shows as <code>about:blank</code>.</p></li><li><p>Use the overflow menu&#39;s <strong>Add to home</strong> to pin webpages to Homepage.</p></li><li><p>Use the overflow menu&#39;s <strong>Relayout</strong> to customize your homepage layout.</p></li><li><p><strong>Long press</strong> on a card on the homepage, and you can edit the title.</p></li></ul>

<h2>Switch tabs:</h2>

<ul><li><p>You can set tab switcher position in <strong>screen top or screen bottom</strong> at <code>Setting/Browser/Tab position</code>.</p></li><li><p>Press the <strong>address bar</strong> and <strong>drag it down or up</strong>, then the fashion tab switcher will display.</p></li><li><p><strong>Swipe up/down</strong> to dimiss a page.</p></li></ul>
<ul><li><p>You can set tab switcher position to be at the <strong>screen top or screen bottom</strong> at <code>Settings/Browser/Tab position</code>.</p></li><li><p>Press the <strong>address bar</strong> and <strong>drag it down or up</strong>, then the fashion tab switcher will display.</p></li><li><p><strong>Swipe up/down</strong> to dimiss a page.</p></li><li><p>Or just <strong>swipe the omnibox left/right</strong> to swicth tabs :)</p></li></ul>

<p><strong>Remember</strong> that if the soft keyboard is shown the tab switcher would not display, it&#39;s our design :)</p>

<h2>Load in background when you click links in other App:</h2>

<ol><li><p>Set Ninja as your <strong>default browser</strong> when click links.</p></li><li><p><strong>Single tap</strong> will open links in background, and show a clickable notification in statusbar.</p></li><li><p><strong>Double taps</strong> will show a dialog that allows you to open links in foreground, etc.</p></li></ol>
<ol><li><p>Set Ninja as your <strong>default browser</strong> when the link is clicked.</p></li><li><p><strong>Single tap</strong> will open the links in the background, and show a clickable notification in the statusbar.</p></li><li><p><strong>Double tap</strong> will show a dialog that allows you to open links in foreground, etc.</p></li></ol>

<h2>Volume control:</h2>

<p>In <code>Setting/Browser/Volume control</code> you can set the volume keys behavior:</p>
<p>In <code>Settings/Browser/Volume control</code> you can set the volume keys behavior to:</p>

<ul><li><p>Switch tabs.</p></li><li><p>Scroll webpages.</p></li><li><p>System default.</p></li></ul>

<h2>AdBlock whitelist:</h2>

<p>Since AdBlick maybe cause some websites display error, you can add they to <code>Setting/AdBlock/Whitelist</code>.</p>
<p>Since AdBlock maybe cause some websites display error, you can add those websites to the whitelist <code>Settings/AdBlock/Whitelist</code>.</p>

<h2>Readability:</h2>

<p>Ninja support read mode but it need <strong>the token of Readability</strong>.</p>
<p>Ninja supports read mode but it needs <strong>Readability API Token</strong>.</p>

<p>To get the token you should go to <a href="https://www.readability.com/developers/api" title="Readability Developer APIs">Readability Developer APIs</a> to get your own token and set it in <code>Setting/Readability/Token</code>.</p>
<p>To get the token you should go to <a href="https://www.readability.com/developers/api" title="Readability Developer APIs">Readability Developer APIs</a> and set it in <code>Settings/Readability/Token</code>.</p>

<h2>Screenshot:</h2>

<p>Ninja supports <strong>capture entire webpage</strong> function.</p>
<p>Ninja can <strong>capture entire webpages</strong>!</p>

<p>But that is not means you could screenshot a long long long webpage(<strong>OOM</strong>, etc).</p>
<p>But that does not mean you could screenshot a very long webpage which may cause the browser to go <strong>Out of Memory</strong>.</p>

<hr/>

<p><em>2015.06.11 Matthew Lee</em></p>
<p><em>2015.06.17 Matthew Lee</em></p>

</div>
4 changes: 3 additions & 1 deletion Ninja/assets/ninja_introduction_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Basically Ninja is a simple web browser like any other, but there are some diffe

- __Swipe up/down__ to dimiss a page.

- Or just __swipe the omnibox left/right__ to swicth tabs :)

__Remember__ that if the soft keyboard is shown the tab switcher would not display, it's our design :)

## Load in background when you click links in other App:
Expand Down Expand Up @@ -61,4 +63,4 @@ But that does not mean you could screenshot a very long webpage which may cause

---

_2015.06.11 Matthew Lee_
_2015.06.17 Matthew Lee_
6 changes: 4 additions & 2 deletions Ninja/assets/ninja_introduction_zh.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ <h2>自定义主页:</h2>

<h2>切换标签页:</h2>

<ul><li><p>你可以在<code>设置/浏览/标签栏位置</code>中设置标签栏显示在<strong>屏幕顶部</strong><strong>屏幕底部</strong></p></li><li><p>按住地址栏<strong>向下拖拽</strong><strong>向上拖拽</strong>即可显示标签页切换器。</p></li><li><p><strong>上下滑动</strong>标签关闭网页。</p></li><li><p><strong>注意</strong>,当软键盘处于展开状态时,标签页切换器将不会显示以防止误操作。</p></li></ul>
<ul><li><p>你可以在<code>设置/浏览/标签栏位置</code>中设置标签栏显示在<strong>屏幕顶部</strong><strong>屏幕底部</strong></p></li><li><p>按住地址栏<strong>向下拖拽</strong><strong>向上拖拽</strong>即可显示标签页切换器。</p></li><li><p><strong>上下滑动</strong>标签关闭网页。</p></li><li><p>你也可以<strong>左右滑动地址栏</strong>来切换标签页。</p></li></ul>

<p><strong>注意</strong>,当软键盘处于展开状态时,标签页切换器将不会显示以防止误操作。</p>

<h2>在其他App中点击链接实现后台加载:</h2>

Expand Down Expand Up @@ -66,6 +68,6 @@ <h2>网页截图:</h2>

<hr/>

<p><em>2015.06.11 Matthew Lee</em></p>
<p><em>2015.06.17 Matthew Lee</em></p>

</div>
6 changes: 4 additions & 2 deletions Ninja/assets/ninja_introduction_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Ninja在操作上与其他浏览器并没有明显的区别,但是仍然有以

- __上下滑动__标签关闭网页。

- __注意__,当软键盘处于展开状态时,标签页切换器将不会显示以防止误操作。
- 你也可以__左右滑动地址栏__来切换标签页。

__注意__,当软键盘处于展开状态时,标签页切换器将不会显示以防止误操作。

## 在其他App中点击链接实现后台加载:

Expand Down Expand Up @@ -61,4 +63,4 @@ Ninja提供了网页截图功能,可以截取整张网页。

---

_2015.06.11 Matthew Lee_
_2015.06.17 Matthew Lee_
107 changes: 107 additions & 0 deletions Ninja/res/values-zh-rTW/arrays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>

<resources>

<!-- Holder -->
<string-array name="holder_menu">
<item>前台打開</item>
<item>拷貝鏈接</item>
<item>分享</item>
</string-array>

<!-- List -->
<string-array name="list_menu">
<item>新建標簽</item>
<item>拷貝鏈接</item>
<item>分享</item>
<item>編輯</item>
<item>刪除</item>
</string-array>

<!-- Main -->
<string-array name="main_overflow">
<item>回到頂部</item>
<item>添加撥號</item>
<item>頁內搜索</item>
<item>網頁截圖</item>
<item>閱讀模式</item>
<item>分享</item>
<item>排版</item>
<item>退出</item>
</string-array>

<!-- Search engine -->
<string-array name="setting_entries_search_engine">
<item>@string/setting_summary_search_engine_google</item>
<item>@string/setting_summary_search_engine_duckduckgo</item>
<item>@string/setting_summary_search_engine_startpage</item>
<item>@string/setting_summary_search_engine_bing</item>
<item>@string/setting_summary_search_engine_baidu</item>
</string-array>
<string-array name="setting_values_search_engine">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
</string-array>

<!-- Notification -->
<string-array name="setting_entries_notification_priority">
<item>@string/setting_summary_notification_priority_default</item>
<item>@string/setting_summary_notification_priority_high</item>
<item>@string/setting_summary_notification_priority_low</item>
</string-array>
<string-array name="setting_values_notification_priority">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>

<!-- Tab switcher -->
<string-array name="setting_entries_tab_position">
<item>@string/setting_summary_tab_position_top</item>
<item>@string/setting_summary_tab_position_bottom</item>
</string-array>
<string-array name="setting_values_tab_position">
<item>0</item>
<item>1</item>
</string-array>

<!-- Volume control -->
<string-array name="setting_entries_volume_control">
<item>@string/setting_summary_vc_switch_tabs</item>
<item>@string/setting_summary_vc_scroll_webpage</item>
<item>@string/setting_summary_vc_system_default</item>
</string-array>
<string-array name="setting_values_volume_control">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>

<!-- User agent -->
<string-array name="setting_entries_user_agent">
<item>@string/setting_summary_user_agent_default</item>
<item>@string/setting_summary_user_agent_desktop</item>
</string-array>
<string-array name="setting_values_user_agent">
<item>0</item>
<item>1</item>
</string-array>

<!-- Rendering -->
<string-array name="setting_entries_rendering">
<item>@string/setting_summary_rendering_default</item>
<item>@string/setting_summary_rendering_grayscale</item>
<item>@string/setting_summary_rendering_inverted</item>
<item>@string/setting_summary_rendering_inverted_grayscale</item>
</string-array>
<string-array name="setting_values_rendering">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>

</resources>
Loading

0 comments on commit d7ea0e3

Please sign in to comment.