Skip to content

Commit

Permalink
リップルエフェクトの追加・アップデートチェッカーの機能追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Robot-Inventor committed Jan 27, 2020
1 parent 7f8c0bc commit 914322b
Showing 17 changed files with 410 additions and 85 deletions.
97 changes: 97 additions & 0 deletions changelog.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Change Log
All notable changes to this project will be documented in this file.

## Information
Series Name : ORIZIN Agent
Edition : ORIZIN Agent HTML Based

To read other information, check resource/information.txt.

## Versioning
The meaning of the version, "a.b.c.de-f" is shown below:

|Place|Meaning|Character Type|Minimum|
|:-----:|:-------:|:--:|:--:|
|a|Major Version|Number|0|
|b|Minor Version|Number|0|
|c|Build (Total Version)|Number|1|
|d|Revision|Number|0|
|e|Release|Alphabet (dev or nothing)|N/A|
|f|Development Code Name|Alphabet|N/A|

The meaning of the words are shown below:

|Word|Meaning|
|:-----:|:-------:|
|Major Version|Big functions were added or there are big changes in UI.|
|Minor Version|Small functions were added or there are small changes in UI.|
|Build (Total Version)|When the version was changed, this number increase.|
|Revision|There are bug fixes or changed comments in the program.|
|Release|If the program is "Develop", the value is "dev".|
|Development Code Name|Code name of the major (or minor) version.|

## Releases

### [Unreleased]
#### Added
- You can use tkinter instead of web browser for GUI now.
- You can choose your favorite colors for UI now.

#### Changed
- Behavior became a little faster than before by optimizing variable types.

### [v0.5.6.0dev-Albatross] - 2020-01-27
#### Added
- Added ripple effect to the buttons. Because of this, oss_license.html was modified.
- You can see update contents on the push notification of Auto/Manual Update Checker now.

### [v0.4.5.0dev-Albatross] - 2020-01-23
#### Added
- 10 responses were added to the dictionary, so there are 271 responses in total.
- Added the Flag Page. You can see it from the Settings Page.

#### Changed
- The behavior in dictionary error is changed. The error message is shown in the new window made by tkinter.
- Google Search Function became more useful.

### [v0.3.4.0dev-Albatross] - 2020-01-23
#### Added
- Added Auto Update Checker with a push notification, and Manual Update Checker. Because of this, oss_license.html was modified.

#### Changed
- Changed the background color of selected text.
- Google Search Function became more useful.

#### Fixed
- Fixed the issue that default web browser was not used in Google Search Function.
- Fixed the issue that app bar was shown in splash screen.

### [v0.2.3.0dev-Albatross] - 2020-01-22
#### Added
- 3 responses were added to the dictionary, so there are 261 responses in total.
- Added Google Search Function. If you ask questions to ORIZIN Agent, it'll open the default web browser and search the questions.

#### Changed
- Changed privacy_policy.txt for Google Search Function.
- The UI design was made similar to the Material Design.

#### Fixed
- Fixed some dictionary format error.

### [v0.1.2.0dev-Albatross] - 2020-01-21
#### Added
- 108 responses were added to the dictionary, so there are 258 responses in total.

#### Changed
- The panel layout supports vertical screens by changing panel layout and panel size.

### [v0.0.1.0dev-Albatross] - 2019-12-26
#### Added
- privacy_policy.txt was added.

#### Notice
In this release, there were some changes, but the version was not changed.

### [v0.0.1.0dev-Albatross] - 2019-12-25
#### Added
- All files of ORIZIN Agent HTML Based was released.
116 changes: 60 additions & 56 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,93 +1,97 @@
# Change Log
All notable changes to this project will be documented in this file.
このプロジェクトに対するすべての重要な変更は、このファイルに文書化されます。

## Information
## 情報
Series Name : ORIZIN Agent
Edition : ORIZIN Agent HTML Based

To read other information, check resource/information.txt.
他の情報を読むには,resource/information.txtを参照してください。

## Versioning
The meaning of the version, "a.b.c.de-f" is shown below:
## バージョニング
"a.b.c.de-f"というバージョン番号の意味は以下の通りです。

|Place|Meaning|Character Type|Minimum|
|位置|意味|文字の種類|最小値|
|:-----:|:-------:|:--:|:--:|
|a|Major Version|Number|0|
|b|Minor Version|Number|0|
|c|Build (Total Version)|Number|1|
|d|Revision|Number|0|
|e|Release|Alphabet (dev or nothing)|N/A|
|f|Development Code Name|Alphabet|N/A|
|a|メジャーバージョン|数字|0|
|b|マイナーバージョン|数字|0|
|c|ビルド(累積バージョン)|数字|1|
|d|リビジョン|数字|0|
|e|リリース|アルファベット(dev または なし)|N/A|
|f|開発コードネーム|アルファベット|N/A|

The meaning of the words are shown below:
それぞれの言葉の意味は以下の通りです。

|Word|Meaning|
|言葉|意味|
|:-----:|:-------:|
|Major Version|Big functions were added or there are big changes in UI.|
|Minor Version|Small functions were added or there are small changes in UI.|
|Build (Total Version)|When the version was changed, this number increase.|
|Revision|There are bug fixes or changed comments in the program.|
|Release|If the program is "Develop", the value is "dev".|
|Development Code Name|Code name of the major (or minor) version.|
|メジャーバージョン|大きな機能の追加またはUIの大きな変更|
|マイナーバージョン|小さな機能の追加またはUIの小さな変更|
|ビルド(累積バージョン)|バージョン番号が変わるたびにこの数字が増えます|
|リビジョン|バグの修正またはプログラム中のコメントの変更|
|リリース|プログラムがDevelop版の場合"dev"になる|
|開発コードネーム|メジャー(マイナー)バージョンのコードネーム|

## Releases
## リリース

### [Unreleased]
#### Added
#### 追加
- You can use tkinter instead of web browser for GUI now.
- You can choose your favorite colors for UI now.

#### Changed
#### 変更
- Behavior became a little faster than before by optimizing variable types.

### [v0.4.5.0dev-Albatross] - 2020-1-23
#### Added
- 10 responses were added to the dictionary, so there are 271 responses in total.
- The Space Battle Ship Game as the easter egg is now available.
- Added the Flag Page. You can see it from the Settings Page.
### [v0.5.6.0dev-Albatross] - 2020-01-27
#### 追加
- ボタンにリップルエフェクトを追加しました。また,それに伴いoss_license.htmlを変更しました。
- アップデートを確認した際にプッシュ通知でアップデートの内容が表示されるようになりました。

#### Changed
- The behavior in dictionary error is changed. The error message is shown in the new window made by tkinter.
- Google Search Function became more useful.
### [v0.4.5.0dev-Albatross] - 2020-01-23
#### 追加
- 10通りの応答を辞書に追加し,応答は全てで271通りになりました。
- 試験機能ページを追加しました。設定ページから見ることができます。

#### 変更
- 辞書エラーの際の挙動が変更になりました。tkinter
- Google検索機能がより使いやすくなりました。

### [v0.3.4.0dev-Albatross] - 2020-01-23
#### Added
- Added Auto Update Checker with a push notification, and Manual Update Checker. Because of this, oss_license.html was modified.
#### 追加
- プッシュ通知付きのオートアップデートチェッカーとマニュアルアップデートチェッカーを追加しました。また,それに伴いoss_license.htmlを変更しました。

#### Changed
- Changed the background color of selected text.
- Google Search Function became more useful.
#### 変更
- 選択されたテキストの背景色を変更しました。
- Google検索機能がより使いやすくなりました。

#### Fixed
- Fixed the issue that default web browser was not used in Google Search Function.
- Fixed the issue that app bar was shown in splash screen.
#### 修正
- Google検索機能でデフォルトのWEBブラウザが使われない問題を修正しました。
- スプラッシュ画面でアプリバーが表示されてしまう問題を修正しました。

### [v0.2.3.0dev-Albatross] - 2020-01-22
#### Added
- 3 responses were added to the dictionary, so there are 261 responses in total.
- Added Google Search Function. If you ask questions to ORIZIN Agent, it'll open the default web browser and search the questions.
#### 追加
- 3通りの応答を辞書に追加し,応答は全てで261通りになりました。
- Google検索機能を追加しました。ORIZIN Agentに質問するとデフォルトのWEBブラウザで質問が検索されます。

#### Changed
- Changed privacy_policy.txt for Google Search Function.
- The UI design was made similar to the Material Design.
#### 変更
- privacy_policy.txtをGoogle検索機能のために変更しました。
- UIのデザインをマテリアルデザインに近づけました。

#### Fixed
- Fixed some dictionary format error.
#### 修正
- 辞書の書式のミスを修正しました。

### [v0.1.2.0dev-Albatross] - 2020-01-21
#### Added
- 108 responses were added to the dictionary, so there are 258 responses in total.
#### 追加
- 108通りの応答を辞書に追加し,応答は全てで258通りになりました。

#### Changed
- The panel layout supports vertical screens by changing panel layout and panel size.
#### 変更
- パネルレイアウトとパネルサイズを変更することで縦画面をサポートしました。

### [v0.0.1.0dev-Albatross] - 2019-12-26
#### Added
- privacy_policy.txt was added.
#### 追加
- privacy_policy.txtが追加されました。

#### Notice
In this release, there were some changes, but the version was not changed.
- このリリースでは,幾つかの変更がありましたが,バージョン番号は変更されませんでした。

### [v0.0.1.0dev-Albatross] - 2019-12-25
#### Added
- All files of ORIZIN Agent HTML Based was released.
#### 追加
- ORIZIN Agent HTML Basedのすべてのファイルがリリースされました。
5 changes: 3 additions & 2 deletions orizin_agent.py
Original file line number Diff line number Diff line change
@@ -112,15 +112,16 @@ def check_version_from_info(file):
@eel.expose
def check_update():
info_file = urllib.request.urlopen("https://raw.githubusercontent.com/Robot-Inventor/ORIZIN-Agent-HTML-Based/master/resource/information.txt").read().decode()
update_message = urllib.request.urlopen("https://raw.githubusercontent.com/Robot-Inventor/ORIZIN-Agent-HTML-Based/master/resource/update_message.txt").read().decode()
f = open("resource/information.txt")
local_info_file = f.read()
f.close()
current_version = check_version_from_info(local_info_file)
new_version = check_version_from_info(info_file)
if info_file != local_info_file:
return ["true", current_version, new_version]
return ["true", current_version, new_version, update_message]
else:
return ["false", current_version, new_version]
return ["false", current_version, new_version, update_message]


load_dictionary()
13 changes: 5 additions & 8 deletions resource/css/layout.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import url("light_theme.css");

@import url("ripple.css");

@font-face {
font-family: "League Spartan";
src: url("../font/LeagueSpartan-Regular.ttf") format("truetype");
@@ -200,23 +202,18 @@ pre {
white-space: pre-wrap;
}

#waiting {
width: 100%;
#waiting, #listening {
width: calc(100% - 4vh);
height: 38vh;
position: absolute;
top: 10vh;
left: 0vw;
z-index: 1;
margin: 2vh;
}

#listening {
width: 100%;
height: 38vh;
position: absolute;
top: 10vh;
left: 0vw;
display: none;
z-index: 1;
}

.message {
45 changes: 45 additions & 0 deletions resource/css/ripple.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
.has-ripple {
position: relative;
overflow: hidden;
-webkit-transform: translate3d(0,0,0);
-o-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
.ripple {
display: block;
position: absolute;
pointer-events: none;
border-radius: 50%;

-webkit-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);

background: #fff;
opacity: 1;
}
.ripple-animate {
-webkit-animation: ripple;
-o-animation: ripple;
animation: ripple;
}
@-webkit-keyframes ripple {
100% {
opacity: 0;
-webkit-transform: scale(2);
transform: scale(2);
}
}
@-o-keyframes ripple {
100% {
opacity: 0;
-o-transform: scale(2);
transform: scale(2);
}
}
@keyframes ripple {
100% {
opacity: 0;
transform: scale(2);
}
}
1 change: 1 addition & 0 deletions resource/dictionary/unknownQuestions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

明日の気温は何度
ありがとう
3 changes: 2 additions & 1 deletion resource/html/about_oa.html
Original file line number Diff line number Diff line change
@@ -17,13 +17,14 @@
<h2>About ORIZIN Agent</h2>
<pre class="information"></pre>
<h3>ORIZIN Agentとは</h3>
ORIZIN Agentは,MITライセンスの下に公開されているオープンソースの会話を目的としたルールベースのAIアシスタントです。Robot-Inventorによって開発されました。詳しくは、<a href="https://robot-inventor.github.io/ORIZIN_Agent/" target="_blank">ORIZIN Agent公式サイト</a>を御覧ください。
ORIZIN Agentは,MITライセンスの下に公開されているオープンソースの会話を目的としたルールベースのAIアシスタントです。Robot-Inventorによって開発されました。詳しくは、<a href="https://robot-inventor.github.io/ORIZIN_Agent/" target="_blank" class="ripple_effect">ORIZIN Agent公式サイト</a>を御覧ください。
<h3>ライセンス</h3>
<pre class="license"></pre>
</div>
</main>
<script src="../javascript/jquery-3.4.1.min.js"></script>
<script src="../javascript/basic.js"></script>
<script src="../javascript/ripple.js"></script>
<script src="/eel.js"></script>
<script>
jQuery(function() {
10 changes: 5 additions & 5 deletions resource/html/basic.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<div class="title">
<img src="../image/menu_icon.svg" class="menu_open_button"><h1 style="display: inline;"><a href="index.html"><img src="../image/title.svg" alt="ORIZIN Agent"></a></h1>
<span class="ripple_effect"><img src="../image/menu_icon.svg" class="menu_open_button"></span><span class="ripple_effect"><a href="index.html"><img src="../image/title.svg" alt="ORIZIN Agent"></a></span>
</div>
<div class="side_menu_bar_overlay">
</div>
<div class="side_menu_bar">
<div class="setting_button">
<div class="setting_button ripple_effect">
設定
</div>
<div class="oss_license">
<div class="oss_license ripple_effect">
オープンソスソフトウェアライセンス
</div>
<div class="privacy_policy">
<div class="privacy_policy ripple_effect">
プライバシーポリシー
</div>
<div class="about_oa">
<div class="about_oa ripple_effect">
About ORIZIN Agent
</div>
</div>
Loading

0 comments on commit 914322b

Please sign in to comment.