Browse Source

ajout du module node react-router-dom

Lou 3 years ago
parent
commit
ecaadc9945
2 changed files with 119 additions and 4 deletions
  1. 4
    3
      package.json
  2. 115
    1
      yarn.lock

+ 4
- 3
package.json View File

@@ -7,11 +7,12 @@
7 7
   },
8 8
   "dependencies": {
9 9
     "react": "^17.0.0",
10
-    "react-dom": "^17.0.0"
10
+    "react-dom": "^17.0.0",
11
+    "react-router-dom": "^5.2.0"
11 12
   },
12 13
   "devDependencies": {
13 14
     "@vitejs/plugin-react-refresh": "^1.3.1",
14
-    "vite": "^2.3.5",
15
-    "sass": "^1.35.0"
15
+    "sass": "^1.35.0",
16
+    "vite": "^2.3.5"
16 17
   }
17 18
 }

+ 115
- 1
yarn.lock View File

@@ -181,6 +181,13 @@
181 181
   dependencies:
182 182
     "@babel/helper-plugin-utils" "^7.13.0"
183 183
 
184
+"@babel/runtime@^7.1.2", "@babel/runtime@^7.12.1":
185
+  version "7.14.6"
186
+  resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.14.6.tgz#535203bc0892efc7dec60bdc27b2ecf6e409062d"
187
+  integrity sha512-/PCB2uJ7oM44tz8YhC4Z/6PeOKXp4K588f+5M3clr1M4zbqztlo0XEfJ2LEzj/FgwfgGcIdl8n7YYjTCI0BYwg==
188
+  dependencies:
189
+    regenerator-runtime "^0.13.4"
190
+
184 191
 "@babel/template@^7.12.13":
185 192
   version "7.12.13"
186 193
   resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.12.13.tgz#530265be8a2589dbb37523844c5bcb55947fb327"
@@ -386,6 +393,25 @@ has@^1.0.3:
386 393
   dependencies:
387 394
     function-bind "^1.1.1"
388 395
 
396
+history@^4.9.0:
397
+  version "4.10.1"
398
+  resolved "https://registry.yarnpkg.com/history/-/history-4.10.1.tgz#33371a65e3a83b267434e2b3f3b1b4c58aad4cf3"
399
+  integrity sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==
400
+  dependencies:
401
+    "@babel/runtime" "^7.1.2"
402
+    loose-envify "^1.2.0"
403
+    resolve-pathname "^3.0.0"
404
+    tiny-invariant "^1.0.2"
405
+    tiny-warning "^1.0.0"
406
+    value-equal "^1.0.1"
407
+
408
+hoist-non-react-statics@^3.1.0:
409
+  version "3.3.2"
410
+  resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
411
+  integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
412
+  dependencies:
413
+    react-is "^16.7.0"
414
+
389 415
 is-binary-path@~2.1.0:
390 416
   version "2.1.0"
391 417
   resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
@@ -417,6 +443,11 @@ is-number@^7.0.0:
417 443
   resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
418 444
   integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
419 445
 
446
+isarray@0.0.1:
447
+  version "0.0.1"
448
+  resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
449
+  integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=
450
+
420 451
 "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
421 452
   version "4.0.0"
422 453
   resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@@ -434,13 +465,21 @@ json5@^2.1.2:
434 465
   dependencies:
435 466
     minimist "^1.2.5"
436 467
 
437
-loose-envify@^1.1.0:
468
+loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.1, loose-envify@^1.4.0:
438 469
   version "1.4.0"
439 470
   resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
440 471
   integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
441 472
   dependencies:
442 473
     js-tokens "^3.0.0 || ^4.0.0"
443 474
 
475
+mini-create-react-context@^0.4.0:
476
+  version "0.4.1"
477
+  resolved "https://registry.yarnpkg.com/mini-create-react-context/-/mini-create-react-context-0.4.1.tgz#072171561bfdc922da08a60c2197a497cc2d1d5e"
478
+  integrity sha512-YWCYEmd5CQeHGSAKrYvXgmzzkrvssZcuuQDDeqkT+PziKGMgE+0MCCtcKbROzocGBG1meBLl2FotlRwf4gAzbQ==
479
+  dependencies:
480
+    "@babel/runtime" "^7.12.1"
481
+    tiny-warning "^1.0.3"
482
+
444 483
 minimist@^1.2.5:
445 484
   version "1.2.5"
446 485
   resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
@@ -476,6 +515,13 @@ path-parse@^1.0.6:
476 515
   resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
477 516
   integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
478 517
 
518
+path-to-regexp@^1.7.0:
519
+  version "1.8.0"
520
+  resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a"
521
+  integrity sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==
522
+  dependencies:
523
+    isarray "0.0.1"
524
+
479 525
 picomatch@^2.0.4, picomatch@^2.2.1:
480 526
   version "2.3.0"
481 527
   resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"
@@ -490,6 +536,15 @@ postcss@^8.2.10:
490 536
     nanoid "^3.1.23"
491 537
     source-map-js "^0.6.2"
492 538
 
539
+prop-types@^15.6.2:
540
+  version "15.7.2"
541
+  resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
542
+  integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
543
+  dependencies:
544
+    loose-envify "^1.4.0"
545
+    object-assign "^4.1.1"
546
+    react-is "^16.8.1"
547
+
493 548
 react-dom@^17.0.0:
494 549
   version "17.0.2"
495 550
   resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23"
@@ -499,11 +554,45 @@ react-dom@^17.0.0:
499 554
     object-assign "^4.1.1"
500 555
     scheduler "^0.20.2"
501 556
 
557
+react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1:
558
+  version "16.13.1"
559
+  resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
560
+  integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
561
+
502 562
 react-refresh@^0.9.0:
503 563
   version "0.9.0"
504 564
   resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.9.0.tgz#71863337adc3e5c2f8a6bfddd12ae3bfe32aafbf"
505 565
   integrity sha512-Gvzk7OZpiqKSkxsQvO/mbTN1poglhmAV7gR/DdIrRrSMXraRQQlfikRJOr3Nb9GTMPC5kof948Zy6jJZIFtDvQ==
506 566
 
567
+react-router-dom@^5.2.0:
568
+  version "5.2.0"
569
+  resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-5.2.0.tgz#9e65a4d0c45e13289e66c7b17c7e175d0ea15662"
570
+  integrity sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA==
571
+  dependencies:
572
+    "@babel/runtime" "^7.1.2"
573
+    history "^4.9.0"
574
+    loose-envify "^1.3.1"
575
+    prop-types "^15.6.2"
576
+    react-router "5.2.0"
577
+    tiny-invariant "^1.0.2"
578
+    tiny-warning "^1.0.0"
579
+
580
+react-router@5.2.0:
581
+  version "5.2.0"
582
+  resolved "https://registry.yarnpkg.com/react-router/-/react-router-5.2.0.tgz#424e75641ca8747fbf76e5ecca69781aa37ea293"
583
+  integrity sha512-smz1DUuFHRKdcJC0jobGo8cVbhO3x50tCL4icacOlcwDOEQPq4TMqwx3sY1TP+DvtTgz4nm3thuo7A+BK2U0Dw==
584
+  dependencies:
585
+    "@babel/runtime" "^7.1.2"
586
+    history "^4.9.0"
587
+    hoist-non-react-statics "^3.1.0"
588
+    loose-envify "^1.3.1"
589
+    mini-create-react-context "^0.4.0"
590
+    path-to-regexp "^1.7.0"
591
+    prop-types "^15.6.2"
592
+    react-is "^16.6.0"
593
+    tiny-invariant "^1.0.2"
594
+    tiny-warning "^1.0.0"
595
+
507 596
 react@^17.0.0:
508 597
   version "17.0.2"
509 598
   resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
@@ -519,6 +608,16 @@ readdirp@~3.6.0:
519 608
   dependencies:
520 609
     picomatch "^2.2.1"
521 610
 
611
+regenerator-runtime@^0.13.4:
612
+  version "0.13.7"
613
+  resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55"
614
+  integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==
615
+
616
+resolve-pathname@^3.0.0:
617
+  version "3.0.0"
618
+  resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-3.0.0.tgz#99d02224d3cf263689becbb393bc560313025dcd"
619
+  integrity sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==
620
+
522 621
 resolve@^1.19.0:
523 622
   version "1.20.0"
524 623
   resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
@@ -576,6 +675,16 @@ supports-color@^5.3.0:
576 675
   dependencies:
577 676
     has-flag "^3.0.0"
578 677
 
678
+tiny-invariant@^1.0.2:
679
+  version "1.1.0"
680
+  resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.1.0.tgz#634c5f8efdc27714b7f386c35e6760991d230875"
681
+  integrity sha512-ytxQvrb1cPc9WBEI/HSeYYoGD0kWnGEOR8RY6KomWLBVhqz0RgTwVO9dLrGz7dC+nN9llyI7OKAgRq8Vq4ZBSw==
682
+
683
+tiny-warning@^1.0.0, tiny-warning@^1.0.3:
684
+  version "1.0.3"
685
+  resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754"
686
+  integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==
687
+
579 688
 to-fast-properties@^2.0.0:
580 689
   version "2.0.0"
581 690
   resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
@@ -588,6 +697,11 @@ to-regex-range@^5.0.1:
588 697
   dependencies:
589 698
     is-number "^7.0.0"
590 699
 
700
+value-equal@^1.0.1:
701
+  version "1.0.1"
702
+  resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c"
703
+  integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==
704
+
591 705
 vite@^2.3.5:
592 706
   version "2.3.6"
593 707
   resolved "https://registry.yarnpkg.com/vite/-/vite-2.3.6.tgz#1f7cfde88a51a802d69000c7bac85d481c2e871c"

Loading…
Cancel
Save