Skip to content

Commit

Permalink
Merge pull request #873 from TyVik/js_depends
Browse files Browse the repository at this point in the history
Update js dependencies.
  • Loading branch information
TyVik authored Oct 8, 2022
2 parents a0ecf6f + a6e4e65 commit 76a7727
Show file tree
Hide file tree
Showing 8 changed files with 5,090 additions and 6,254 deletions.
44 changes: 24 additions & 20 deletions frontend/__tests__/__snapshots__/Congratulation.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,31 @@

exports[`shallow <Congratulation /> components render 1`] = `
<IntlProvider
defaultFormats={Object {}}
defaultFormats={{}}
defaultLocale="en"
fallbackOnEmptyString={true}
formats={Object {}}
formats={{}}
locale="en"
messages={Object {}}
messages={{}}
onError={[Function]}
onWarn={[Function]}
textComponent={Symbol(react.fragment)}
>
<injectIntl(BaseCongratulation)
name="Belarus"
options={
Object {
{
"score": 60,
}
}
parts={Array []}
parts={[]}
text="congratulations.puzzle"
>
<BaseCongratulation
intl={
Object {
"defaultFormats": Object {},
{
"$t": [Function],
"defaultFormats": {},
"defaultLocale": "en",
"defaultRichTextElements": undefined,
"fallbackOnEmptyString": true,
Expand All @@ -41,8 +43,8 @@ exports[`shallow <Congratulation /> components render 1`] = `
"formatRelativeTime": [Function],
"formatTime": [Function],
"formatTimeToParts": [Function],
"formats": Object {},
"formatters": Object {
"formats": {},
"formatters": {
"getDateTimeFormat": [Function],
"getDisplayNames": [Function],
"getListFormat": [Function],
Expand All @@ -52,20 +54,21 @@ exports[`shallow <Congratulation /> components render 1`] = `
"getRelativeTimeFormat": [Function],
},
"locale": "en",
"messages": Object {},
"messages": {},
"onError": [Function],
"onWarn": [Function],
"textComponent": Symbol(react.fragment),
"timeZone": undefined,
"wrapRichTextChunksInFragment": undefined,
}
}
name="Belarus"
options={
Object {
{
"score": 60,
}
}
parts={Array []}
parts={[]}
text="congratulations.puzzle"
>
<Modal
Expand All @@ -74,7 +77,7 @@ exports[`shallow <Congratulation /> components render 1`] = `
autoFocus={true}
backdrop={true}
dialogAs={
Object {
{
"$$typeof": Symbol(react.forward_ref),
"displayName": "ModalDialog",
"render": [Function],
Expand All @@ -96,8 +99,8 @@ exports[`shallow <Congratulation /> components render 1`] = `
BootstrapModalManager {
"handleContainerOverflow": true,
"isRTL": false,
"modals": Array [
Object {
"modals": [
{
"add": [Function],
"backdrop": <div
class="fade modal-backdrop show"
Expand Down Expand Up @@ -190,9 +193,9 @@ exports[`shallow <Congratulation /> components render 1`] = `
},
],
"ownerDocument": undefined,
"state": Object {
"state": {
"scrollBarWidth": 1024,
"style": Object {
"style": {
"overflow": "",
"paddingRight": "",
},
Expand Down Expand Up @@ -334,7 +337,7 @@ exports[`shallow <Congratulation /> components render 1`] = `
in={true}
mountOnEnter={false}
nodeRef={
Object {
{
"current": <div
class="fade modal-backdrop show"
/>,
Expand Down Expand Up @@ -398,7 +401,7 @@ exports[`shallow <Congratulation /> components render 1`] = `
in={true}
mountOnEnter={false}
nodeRef={
Object {
{
"current": <div
aria-labelledby="contained-modal-title-lg"
aria-modal="true"
Expand Down Expand Up @@ -499,7 +502,8 @@ exports[`shallow <Congratulation /> components render 1`] = `
onMouseUp={[Function]}
role="dialog"
style={
Object {
{
"display": "block",
"paddingLeft": undefined,
"paddingRight": 0,
}
Expand Down
10 changes: 7 additions & 3 deletions frontend/__tests__/__snapshots__/Index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`shallow <Index /> components render: Index 1`] = `
Array [
[
<div
className="nav nav-tabs nav-fill"
onKeyDown={[Function]}
Expand All @@ -15,10 +15,12 @@ Array [
aria-selected={true}
className="puzzle-tab nav-link active"
data-rr-ui-event-key="puzzle"
disabled={false}
href="#"
id="indexTab-tab-puzzle"
onClick={[Function]}
onKeyDown={[Function]}
role="tab"
tabIndex={0}
>
Puzzle
</a>
Expand All @@ -27,11 +29,13 @@ Array [
className="nav-item"
>
<a
aria-selected={false}
className="quiz-tab nav-link"
data-rr-ui-event-key="quiz"
disabled={false}
href="#"
id="indexTab-tab-quiz"
onClick={[Function]}
onKeyDown={[Function]}
role="tab"
tabIndex={-1}
>
Expand Down
16 changes: 8 additions & 8 deletions frontend/__tests__/__snapshots__/Infobox.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ exports[`shallow <Infobox /> components click collapse: infobox 1`] = `
className="close"
onClick={
[MockFunction] {
"calls": Array [
Array [],
"calls": [
[],
],
"results": Array [
Object {
"results": [
{
"type": "return",
"value": undefined,
},
Expand Down Expand Up @@ -313,11 +313,11 @@ exports[`shallow <Infobox /> components click collapse: infobox-collapse 1`] = `
className="close"
onClick={
[MockFunction] {
"calls": Array [
Array [],
"calls": [
[],
],
"results": Array [
Object {
"results": [
{
"type": "return",
"value": undefined,
},
Expand Down
6 changes: 3 additions & 3 deletions frontend/__tests__/__snapshots__/QuizInit.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`shallow <QuizInit /> components render: quizinit 1`] = `
autoFocus={true}
backdrop={true}
dialogAs={
Object {
{
"$$typeof": Symbol(react.forward_ref),
"displayName": "ModalDialog",
"render": [Function],
Expand All @@ -33,15 +33,15 @@ exports[`shallow <QuizInit /> components render: quizinit 1`] = `
<ModalBody>
<QuizInitForm
available={
Array [
[
"name",
"flag",
"coat_of_arms",
"capital",
]
}
data={
Object {
{
"capital": true,
"coat_of_arms": true,
"flag": true,
Expand Down
22 changes: 11 additions & 11 deletions frontend/__tests__/__snapshots__/Toolbox.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ exports[`shallow <Toolbox /> components check props: toolbox 1`] = `
click={[Function]}
key="5054"
polygon={
Object {
{
"draggable": false,
"id": 5054,
"infobox": Object {
"infobox": {
"area": "32,300",
"capital": Object {
"capital": {
"lat": 52,
"lng": 23,
"name": "Брест",
Expand All @@ -96,12 +96,12 @@ exports[`shallow <Toolbox /> components check props: toolbox 1`] = `
},
"isSolved": true,
"loaded": true,
"marker": Object {
"marker": {
"lat": 52,
"lng": 23,
},
"name": "Брестская область",
"paths": Array [],
"paths": [],
"population": "1386982",
"wiki": "https://ru.wikipedia.org/wiki/Брестская_область",
}
Expand All @@ -111,31 +111,31 @@ exports[`shallow <Toolbox /> components check props: toolbox 1`] = `
click={[Function]}
key="5060"
polygon={
Object {
{
"draggable": true,
"id": 5060,
"infobox": Object {
"infobox": {
"loaded": false,
"name": "Витебская область",
},
"isSolved": false,
"paths": Array [],
"paths": [],
}
}
/>
<NameListItem
click={[Function]}
key="5055"
polygon={
Object {
{
"draggable": true,
"id": 5055,
"infobox": Object {
"infobox": {
"loaded": false,
"name": "Гомельская область",
},
"isSolved": false,
"paths": Array [],
"paths": [],
}
}
/>
Expand Down
18 changes: 6 additions & 12 deletions frontend/__tests__/__snapshots__/Workshop.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`shallow <Workshop /> components render: Workshop 1`] = `
Array [
[
<form
className="row justify-content-between"
>
Expand Down Expand Up @@ -65,11 +65,9 @@ Array [
>
<input
aria-autocomplete="list"
aria-controls="react-select-2-listbox"
aria-describedby="react-select-2-placeholder"
aria-expanded={false}
aria-haspopup={true}
aria-owns="react-select-2-listbox"
autoCapitalize="none"
autoComplete="off"
autoCorrect="off"
Expand All @@ -82,7 +80,7 @@ Array [
role="combobox"
spellCheck="false"
style={
Object {
{
"background": 0,
"border": 0,
"color": "inherit",
Expand Down Expand Up @@ -175,11 +173,9 @@ Array [
>
<input
aria-autocomplete="list"
aria-controls="react-select-3-listbox"
aria-describedby="react-select-3-placeholder"
aria-expanded={false}
aria-haspopup={true}
aria-owns="react-select-3-listbox"
autoCapitalize="none"
autoComplete="off"
autoCorrect="off"
Expand All @@ -192,7 +188,7 @@ Array [
role="combobox"
spellCheck="false"
style={
Object {
{
"background": 0,
"border": 0,
"color": "inherit",
Expand Down Expand Up @@ -299,11 +295,9 @@ Array [
>
<input
aria-autocomplete="list"
aria-controls="react-select-4-listbox"
aria-describedby="react-select-4-placeholder"
aria-expanded={false}
aria-haspopup={true}
aria-owns="react-select-4-listbox"
autoCapitalize="none"
autoComplete="off"
autoCorrect="off"
Expand All @@ -316,7 +310,7 @@ Array [
role="combobox"
spellCheck="false"
style={
Object {
{
"background": 0,
"border": 0,
"color": "inherit",
Expand Down Expand Up @@ -383,12 +377,12 @@ Array [
</form>,
<div
className="infinite-scroll-component__outerdiv"
style={Object {}}
style={{}}
>
<div
className="infinite-scroll-component row"
style={
Object {
{
"WebkitOverflowScrolling": "touch",
"height": "auto",
"overflow": "auto",
Expand Down
Loading

0 comments on commit 76a7727

Please sign in to comment.