Bhikkhu-Kosalla 5 лет назад
Родитель
Сommit
ca2bba62f0
4 измененных файлов с 59 добавлено и 38 удалено
  1. 35 36
      README.md
  2. 6 2
      app/term/note.js
  3. 1 0
      app/term/term.css
  4. 17 0
      database_log

+ 35 - 36
README.md

@@ -4,41 +4,40 @@
 
 ### 工具
 
-
 推荐使用 **VSCode**, 常用插件列表
 
-- [ESLint](https://github.com/Microsoft/vscode-eslint)
-- [Rust(rls)](https://github.com/rust-lang/rls-vscode)
-- [Icons](https://github.com/vscode-icons/vscode-icons)
-- [OneDark Pro](https://github.com/Binaryify/OneDark-Pro)
-- [Better Toml](https://github.com/bungcip/better-toml)
-- [Prettier - Code formatter](https://github.com/prettier/prettier-vscode)
-- [SQL Formatter](https://github.com/kufii/vscode-sql-formatter)
+-   [ESLint](https://github.com/Microsoft/vscode-eslint)
+-   [Rust(rls)](https://github.com/rust-lang/rls-vscode)
+-   [Icons](https://github.com/vscode-icons/vscode-icons)
+-   [OneDark Pro](https://github.com/Binaryify/OneDark-Pro)
+-   [Better Toml](https://github.com/bungcip/better-toml)
+-   [Prettier - Code formatter](https://github.com/prettier/prettier-vscode)
+-   [SQL Formatter](https://github.com/kufii/vscode-sql-formatter)
 
 ### Git commit message 规范
 
-- 遵循 git pull request 流程
-- 所有代码必须经过格式化
-- 禁止提交测试中间数据、key、db 等文件
-- Git commit message 格式
-  - 每条 message 不超过一行
-  - 每个 commit 应该是独立的一个 issue 任务
-  - message 格式 `:code: message body`
-  - code 定义
-    - bug fix: `:bug:`
-    - new feature: `:construction:`
-    - document: `:pencil:`
-    - ops: `:rocket:`
-    - config file: `:wrench:`
-    - test case: `::white_check_mark:`
+-   遵循 git pull request 流程
+-   所有代码必须经过格式化
+-   禁止提交测试中间数据、key、db 等文件
+-   Git commit message 格式
+    -   每条 message 不超过一行
+    -   每个 commit 应该是独立的一个 issue 任务
+    -   message 格式 `:code: message body`
+    -   code 定义
+        -   bug fix: `:bug:`
+        -   new feature: `:construction:`
+        -   document: `:pencil:`
+        -   ops: `:rocket:`
+        -   config file: `:wrench:`
+        -   test case: `::white_check_mark:`
 
 ### 资源格式
 
-- 文字统一使用**markdown**格式
-- 图片
-  - 尽量使用**png**格式
-  - 如果是 svg 或 graphiz 绘图,**附带源代码**
-  - **禁止**使用未经授权的图片
+-   文字统一使用**markdown**格式
+-   图片
+    -   尽量使用**png**格式
+    -   如果是 svg 或 graphiz 绘图,**附带源代码**
+    -   **禁止**使用未经授权的图片
 
 ## 部署
 
@@ -51,18 +50,18 @@ $ RUST_LOG=info axis -i staging -r deploy
 
 ### 后端
 
-- [MinIO is a high performance object storage server compatible with Amazon S3 APIs](https://github.com/minio/minio)
-- [Diesel: A safe, extensible ORM and Query Builder for Rust](https://github.com/diesel-rs/diesel)
-- [Actix web is a small, pragmatic, and extremely fast rust web framework](https://github.com/actix/actix-web)
+-   [MinIO is a high performance object storage server compatible with Amazon S3 APIs](https://github.com/minio/minio)
+-   [Diesel: A safe, extensible ORM and Query Builder for Rust](https://github.com/diesel-rs/diesel)
+-   [Actix web is a small, pragmatic, and extremely fast rust web framework](https://github.com/actix/actix-web)
 
 ### 前端
 
-- [Pluggable enterprise-level react application framework](https://umijs.org/)
-- [Ant Desigh Pro](https://pro.ant.design/docs/getting-started)
-- [Third-Party Libraries](https://ant.design/docs/react/recommendation)
+-   [Pluggable enterprise-level react application framework](https://umijs.org/)
+-   [Ant Desigh Pro](https://pro.ant.design/docs/getting-started)
+-   [Third-Party Libraries](https://ant.design/docs/react/recommendation)
 
 ### Git
 
-- [About git pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests)
-- [how to write a git commit message:](https://chris.beams.io/posts/git-commit/)
-- [An emoji guide for your commit messages](https://gitmoji.carloscuesta.me/)
+-   [About git pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests)
+-   [how to write a git commit message:](https://chris.beams.io/posts/git-commit/)
+-   [An emoji guide for your commit messages](https://gitmoji.carloscuesta.me/)

+ 6 - 2
app/term/note.js

@@ -632,7 +632,7 @@ function add_new_tran_button_click(obj) {
 				$(obj).parent().attr("end") +
 				"' ,'" +
 				iterator.id +
-				"')";
+				"',this)";
 			html += '">' + iterator.name + "</li>";
 		}
 	}
@@ -646,7 +646,7 @@ function add_new_tran_button_click(obj) {
 	}
 }
 
-function new_sentence(book, para, begin, end, channel) {
+function new_sentence(book, para, begin, end, channel, obj) {
 	let newsent = { id: "", text: "", lang: "", channal: channel };
 
 	for (let iterator of _arrData) {
@@ -663,6 +663,10 @@ function new_sentence(book, para, begin, end, channel) {
 			}
 		}
 	}
+	if ($(obj).parent().parent().css("display") == "block") {
+		$(obj).parent().parent().hide();
+	}
+
 	note_edit_sentence(book, para, begin, end, channel);
 }
 

+ 1 - 0
app/term/term.css

@@ -223,6 +223,7 @@ note > .tran .tran_text_tool_bar::after,
 .tran_text_tool_bar li {
 	list-style: none;
 	display: flex;
+	white-space: nowrap;
 }
 .tran_text_tool_bar .icon {
 	margin: auto 0.4em auto 0;

+ 17 - 0
database_log

@@ -0,0 +1,17 @@
+# 数据库更改日志
+
+## 2020/12/20
+
+### 路径与文件名
+
+/../tmp/appdata/palicanon/pali_sent_sim.db3
+
+### 数据结构
+
+```
+CREATE TABLE pali_sent_sim (
+    id        INTEGER PRIMARY KEY,
+    sim_sents TEXT
+);
+
+```