From 1c30c4ac98c0f2a5ef4cc1cb6a6f597075b5e055 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Tue, 18 Jun 2024 21:29:48 +0900 Subject: [PATCH 01/11] chore: Move comparison operators --- src/ts/gui/highlight.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ts/gui/highlight.ts b/src/ts/gui/highlight.ts index fe75301c..63ae71cd 100644 --- a/src/ts/gui/highlight.ts +++ b/src/ts/gui/highlight.ts @@ -97,7 +97,7 @@ const normalCBSwithParams = [ 'arraypop', 'array_pop', 'arraypush', 'array_push', 'arraysplice', 'array_splice', 'makearray', 'array', 'a', 'make_array', 'history', 'messages', 'range', 'date', 'time', 'datetimeformat', 'date_time_format', 'random', 'pick', 'roll', 'datetimeformat', 'hidden_key', 'reverse', 'getglobalvar', 'position', 'slot', 'rollp', - 'and', 'or', 'not', 'message_time_array', 'filter' + 'and', 'or', 'not', 'message_time_array', 'filter', 'greater', 'less', 'greater_equal', 'less_equal' ] const displayRelatedCBS = [ @@ -113,7 +113,7 @@ const deprecatedCBS = [ ] const deprecatedCBSwithParams = [ - 'greater', 'less', 'greater_equal', 'less_equal', 'remaind', 'pow' + 'remaind', 'pow' ] const decorators = [ From 092543158883b82c5d22696f1ad1bdb6fd7ec2de Mon Sep 17 00:00:00 2001 From: kwaroran Date: Tue, 18 Jun 2024 21:32:39 +0900 Subject: [PATCH 02/11] Improve automark.ts code to handle more symbols --- src/ts/plugins/automark.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ts/plugins/automark.ts b/src/ts/plugins/automark.ts index ce119d46..52c490a2 100644 --- a/src/ts/plugins/automark.ts +++ b/src/ts/plugins/automark.ts @@ -196,11 +196,8 @@ export function risuFormater(dat:string){ lineResult = lineResult.substring(0,lineResult.length-1) } - console.log(lineResult) - result += lineResult } - console.log(result) return result.trim() } \ No newline at end of file From f4c10b8395206d3092ee16679cb3967be8d9fc29 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Tue, 18 Jun 2024 21:55:22 +0900 Subject: [PATCH 03/11] improve translation --- src/lib/ChatScreens/Chat.svelte | 28 +++++++++++++------ src/lib/Setting/Pages/AdvancedSettings.svelte | 3 ++ src/ts/parser.ts | 25 +++++++++++++---- src/ts/storage/database.ts | 2 ++ 4 files changed, 44 insertions(+), 14 deletions(-) diff --git a/src/lib/ChatScreens/Chat.svelte b/src/lib/ChatScreens/Chat.svelte index 2bafe476..c4657710 100644 --- a/src/lib/ChatScreens/Chat.svelte +++ b/src/lib/ChatScreens/Chat.svelte @@ -1,6 +1,6 @@