From 1a12a3e57db511641d7a9f06b99b6211c1a3c921 Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Fri, 30 Oct 2020 17:47:33 -0500 Subject: [PATCH] Character preview cleanup --- bbcode/UrlTagView.vue | 1 - chat/CharacterSearch.vue | 123 ++++++++++++++++++++++-------- chat/UserView.vue | 2 +- chat/preview/CharacterPreview.vue | 32 ++++++-- chat/preview/ImagePreview.vue | 30 ++++++-- chat/preview/image-dom-mutator.ts | 2 + chat/preview/test-urls.txt | 3 + learn/matcher-types.ts | 15 ++-- learn/matcher.ts | 2 +- site/character_page/sidebar.vue | 2 +- 10 files changed, 158 insertions(+), 54 deletions(-) diff --git a/bbcode/UrlTagView.vue b/bbcode/UrlTagView.vue index 29f5d46..e3a3fe6 100644 --- a/bbcode/UrlTagView.vue +++ b/bbcode/UrlTagView.vue @@ -11,7 +11,6 @@ @mouseover.prevent="show()" @mouseenter.prevent="show()" @mouseleave.prevent="dismiss()" - @mouseout.prevent="dismiss()" @click.middle.prevent="toggleStickyness()" >{{text}} -
+ :buttonText="state === 'results' ? l('characterSearch.again') : undefined" class="character-search"> +
{{error}}
@@ -27,19 +27,23 @@
-
+

- {{l('characterSearch.results')}} - + {{results.length}} {{l('characterSearch.results')}} + + Scoring {{resultsPending}}...

-
-