Skip to content

Commit

Permalink
Trimming spaces & filtering duplicate words in index (#362)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
ru-danko and sonic16x authored Dec 5, 2024
1 parent 5eecc08 commit e4d64cd
Show file tree
Hide file tree
Showing 10 changed files with 116 additions and 61 deletions.
25 changes: 21 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interslavic",
"version": "1.25.2",
"version": "1.25.3",
"description": "Interslavic Dictionary",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -84,6 +84,7 @@
"eslint-plugin-storybook": "^0.11.1",
"file-loader": "^6.2.0",
"globals": "^15.12.0",
"gzip-size": "^7.0.0",
"html-webpack-plugin": "^5.6.3",
"jest": "^29.7.0",
"jsdom": "^25.0.1",
Expand Down
4 changes: 4 additions & 0 deletions src/components/Textarea/Textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@
border: 2px solid var(--invalid-color);
}
}

&:not(.error) textarea:focus {
outline: var(--outline);
}
}
7 changes: 5 additions & 2 deletions src/services/dictionary-test/dictionary-test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import * as fs from 'fs'

import { Dictionary } from 'services'
import { Dictionary, IBasicData } from 'services'

import basicData from './basic.json'
import testData from './basic.json'
import { deepDiffMapper } from './deepDiffMapper'
import testSnapshot from './snapshot.json'

const basicData = testData as unknown as IBasicData


Dictionary.init(basicData.wordList, basicData.searchIndex)

const snapshot = {}
Expand Down
Loading

0 comments on commit e4d64cd

Please sign in to comment.