Skip to content

Commit e4d64cd

Browse files
ru-dankosonic16x
andauthored
Trimming spaces & filtering duplicate words in index (#362)
* trimming spaces & filtering duplicate words in index * Add g-zip size * Add sort * Add constants * Fix textarea outline * Fix types * Update package.json --------- Co-authored-by: sonic16x <[email protected]>
1 parent 5eecc08 commit e4d64cd

File tree

10 files changed

+116
-61
lines changed

10 files changed

+116
-61
lines changed

package-lock.json

+21-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "interslavic",
3-
"version": "1.25.2",
3+
"version": "1.25.3",
44
"description": "Interslavic Dictionary",
55
"license": "MIT",
66
"author": {
@@ -84,6 +84,7 @@
8484
"eslint-plugin-storybook": "^0.11.1",
8585
"file-loader": "^6.2.0",
8686
"globals": "^15.12.0",
87+
"gzip-size": "^7.0.0",
8788
"html-webpack-plugin": "^5.6.3",
8889
"jest": "^29.7.0",
8990
"jsdom": "^25.0.1",

src/components/Textarea/Textarea.scss

+4
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@
3737
border: 2px solid var(--invalid-color);
3838
}
3939
}
40+
41+
&:not(.error) textarea:focus {
42+
outline: var(--outline);
43+
}
4044
}

src/services/dictionary-test/dictionary-test.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import * as fs from 'fs'
22

3-
import { Dictionary } from 'services'
3+
import { Dictionary, IBasicData } from 'services'
44

5-
import basicData from './basic.json'
5+
import testData from './basic.json'
66
import { deepDiffMapper } from './deepDiffMapper'
77
import testSnapshot from './snapshot.json'
88

9+
const basicData = testData as unknown as IBasicData
10+
11+
912
Dictionary.init(basicData.wordList, basicData.searchIndex)
1013

1114
const snapshot = {}

0 commit comments

Comments
 (0)