Skip to content

Commit e0427c5

Browse files
committed
refactor(emot): 调整 emot 将默认的颜表情改为 emoji表情
1 parent 41fcc32 commit e0427c5

File tree

3 files changed

+118
-38
lines changed

3 files changed

+118
-38
lines changed

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
ph: '快来评论呀',
179179
serverURLs: ipts[0].value,
180180
path: ipts[1].value,
181-
emotCDN: 'https://cdn.jsdelivr.net/npm/[email protected]'
181+
// emotCDN: 'https://cdn.jsdelivr.net/npm/[email protected]'
182182
})
183183
}
184184
</script>

src/client/lib/emot.js

Lines changed: 115 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -157,42 +157,123 @@ export default (emotCDN) => {
157157
const items = {}
158158
for (const i of key) items[i] = emotCDN + i + '.png'
159159
return {
160-
OwO: {
160+
'😀': {
161161
type: 'text',
162162
items: {
163-
喵星人: '( =•ω•= )m',
164-
hi: 'Hi~ o(* ̄▽ ̄*)ブ',
165-
啊啊: 'w(゚Д゚)w',
166-
擦眼泪: ' (ノへ ̄、)',
167-
不屑: ' ( ̄_, ̄ )',
168-
好耶: 'ヽ(✿゚▽゚)ノ',
169-
: ' (๑•̀ㅂ•́)و✧',
170-
: '( ̄ε(# ̄)☆╰╮o( ̄皿 ̄///)',
171-
: '(づ ̄3 ̄)づ╭❤~',
172-
: 'Σ( ° △ °|||)︴',
173-
: '(~ ̄(OO) ̄)ブ',
174-
: '凸(艹皿艹 )',
175-
啵啵: '(*  ̄3)(ε ̄ *)',
176-
挖鼻屎: '(* ̄rǒ ̄)',
177-
: '┗|`O′|┛ 嗷~~',
178-
: '︿( ̄︶ ̄)︿',
179-
好滴: '(u‿ฺu✿ฺ)',
180-
啦啦: '♪(^∇^*)',
181-
拍桌: 'o(*≧▽≦)ツ┏━┓',
182-
惊喜: '╰(*°▽°*)╯',
183-
嘟嘴: '(○` 3′○)',
184-
愣住: '(°ー°〃)',
185-
哼哼: 'o( ̄ヘ ̄o#)',
186-
崩溃: 'o(≧口≦)o',
187-
不是我: 'ㄟ( ▔, ▔ )ㄏ',
188-
呃呃呃: '(⊙﹏⊙)',
189-
: '(ˉ▽ ̄~) 切~~',
190-
拜拜: 'ヾ( ̄▽ ̄)Bye~Bye~',
191-
斜眼: '( ﹁ ﹁ ) ~→',
192-
美味: 'Ψ( ̄∀ ̄)Ψ',
193-
: '✧(≖ ◡ ≖✿)',
194-
淡定: '━( ̄ー ̄*|||━━',
195-
太可怕了: 'ヽ(*。>Д<)o゜'
163+
'grinning face': '😀',
164+
'grinning face with big eyes': '😃',
165+
'grinning face with smiling eyes': '😄',
166+
'beaming face with smiling eyes': '😁',
167+
'grinning squinting face': '😆',
168+
'grinning face with sweat': '😅',
169+
'rolling on the floor laughing': '🤣',
170+
'face with tears of joy': '😂',
171+
'slightly smiling face': '🙂',
172+
'upside down face': '🙃',
173+
'winking face': '😉',
174+
'smiling face with smiling eyes': '😊',
175+
'smiling face with halo': '😇',
176+
'smiling face with hearts': '🥰',
177+
'smiling face with heart eyes': '😍',
178+
'star struck': '🤩',
179+
'face blowing a kiss': '😘',
180+
'kissing face': '😗',
181+
'smiling face': '☺️',
182+
'kissing face with closed eyes': '😚',
183+
'kissing face with smiling eyes': '😙',
184+
'face savoring food': '😋',
185+
'face with tongue': '😛',
186+
'winking face with tongue': '😜',
187+
'zany face': '🤪',
188+
'squinting face with tongue': '😝',
189+
'money mouth face': '🤑',
190+
'hugging face': '🤗',
191+
'face with hand over mouth': '🤭',
192+
'shushing face': '🤫',
193+
'thinking face': '🤔',
194+
'zipper mouth face': '🤐',
195+
'face with raised eyebrow': '🤨',
196+
'neutral face': '😐',
197+
'expressionless face': '😑',
198+
'face without mouth': '😶',
199+
'smirking face': '😏',
200+
'unamused face': '😒',
201+
'face with rolling eyes': '🙄',
202+
'grimacing face': '😬',
203+
'lying face': '🤥',
204+
'relieved face': '😌',
205+
'pensive face': '😔',
206+
'sleepy face': '😪',
207+
'drooling face': '🤤',
208+
'sleeping face': '😴',
209+
'face with medical mask': '😷',
210+
'face with thermometer': '🤒',
211+
'face with head bandage': '🤕',
212+
'nauseated face': '🤢',
213+
'face vomiting': '🤮',
214+
'sneezing face': '🤧',
215+
'hot face': '🥵',
216+
'cold face': '🥶',
217+
'woozy face': '🥴',
218+
'dizzy face': '😵',
219+
'exploding head': '🤯',
220+
'cowboy hat face': '🤠',
221+
'partying face': '🥳',
222+
'smiling face with sunglasses': '😎',
223+
'nerd face': '🤓',
224+
'face with monocle': '🧐',
225+
'confused face': '😕',
226+
'worried face': '😟',
227+
'slightly frowning face': '🙁',
228+
'frowning face': '☹️',
229+
'face with open mouth': '😮',
230+
'hushed face': '😯',
231+
'astonished face': '😲',
232+
'flushed face': '😳',
233+
'pleading face': '🥺',
234+
'frowning face with open mouth': '😦',
235+
'anguished face': '😧',
236+
'fearful face': '😨',
237+
'anxious face with sweat': '😰',
238+
'sad but relieved face': '😥',
239+
'crying face': '😢',
240+
'loudly crying face': '😭',
241+
'face screaming in fear': '😱',
242+
'confounded face': '😖',
243+
'persevering face': '😣',
244+
'disappointed face': '😞',
245+
'downcast face with sweat': '😓',
246+
'weary face': '😩',
247+
'tired face': '😫',
248+
'yawning face': '🥱',
249+
'face with steam from nose': '😤',
250+
'pouting face': '😡',
251+
'angry face': '😠',
252+
'face with symbols on mouth': '🤬',
253+
'smiling face with horns': '😈',
254+
'angry face with horns': '👿',
255+
skull: '💀',
256+
'skull and crossbones': '☠️',
257+
'pile of poo': '💩',
258+
'clown face': '🤡',
259+
ogre: '👹',
260+
goblin: '👺',
261+
ghost: '👻',
262+
alien: '👽',
263+
'alien monster': '👾',
264+
robot: '🤖',
265+
'grinning cat': '😺',
266+
'grinning cat with smiling eyes': '😸',
267+
'cat with tears of joy': '😹',
268+
'smiling cat with heart eyes': '😻',
269+
'cat with wry smile': '😼',
270+
'kissing cat': '😽',
271+
'weary cat': '🙀',
272+
'crying cat': '😿',
273+
'pouting cat': '😾',
274+
'see no evil monkey': '🙈',
275+
'hear no evil monkey': '🙉',
276+
'speak no evil monkey': '🙊'
196277
}
197278
},
198279
[`<img src=${items['鼓掌']}>`]: {

src/client/view/submit.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
if (/^https?:\/\//.test(str) && /([A-Za-z\d]{1,30}\.)+[A-Za-z\d]{2,5}$/.test(new URL(str).hostname)) {
3636
return true
3737
}
38-
// eslint-disable-next-line no-empty
38+
// eslint-disable-next-line no-empty
3939
} catch (error) {}
4040
return false
4141
}
@@ -481,7 +481,6 @@
481481
resize: vertical;
482482
padding: 10px;
483483
margin: 0;
484-
font-size: 0;
485484
overflow-x: hidden;
486485
user-select: none;
487486
}
@@ -491,11 +490,11 @@
491490
}
492491
493492
.D-emot-item {
493+
font-size: 20px;
494494
list-style-type: none;
495495
padding: 5px 10px;
496496
border-radius: 5px;
497497
display: inline-block;
498-
font-size: 12px;
499498
line-height: 14px;
500499
margin: 0 10px 12px 0;
501500
cursor: pointer;

0 commit comments

Comments
 (0)