浏览代码

Cambios nuevos

Ángel G. Romero Rosario 2 年前
父节点
当前提交
ccb1a3fe91

+ 0
- 2
build/static/js/186.09c3ea27.chunk.js
文件差异内容过多而无法显示
查看文件


+ 0
- 1
build/static/js/186.09c3ea27.chunk.js.map
文件差异内容过多而无法显示
查看文件


+ 0
- 3
build/static/js/738.aba3ba7d.chunk.js
文件差异内容过多而无法显示
查看文件


+ 0
- 11
build/static/js/738.aba3ba7d.chunk.js.LICENSE.txt 查看文件

@@ -1,11 +0,0 @@
1
-/**
2
- * @license
3
- * Copyright Google Inc. All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- *
8
- * This file is a port of shadowCSS from webcomponents.js to TypeScript.
9
- * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
10
- * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
11
- */

+ 0
- 1
build/static/js/738.aba3ba7d.chunk.js.map
文件差异内容过多而无法显示
查看文件


+ 0
- 3
build/static/js/851.7ada53df.chunk.js
文件差异内容过多而无法显示
查看文件


+ 0
- 3
build/static/js/851.7ada53df.chunk.js.LICENSE.txt 查看文件

@@ -1,3 +0,0 @@
1
-/*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */

+ 0
- 1
build/static/js/851.7ada53df.chunk.js.map
文件差异内容过多而无法显示
查看文件


+ 0
- 3
build/static/js/main.a0b94822.js
文件差异内容过多而无法显示
查看文件


+ 0
- 56
build/static/js/main.a0b94822.js.LICENSE.txt 查看文件

@@ -1,56 +0,0 @@
1
-/*!
2
- * (C) Ionic http://ionicframework.com - MIT License
3
- */
4
-
5
-/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
6
-
7
-/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
8
-
9
-/**
10
- * @license React
11
- * react-dom.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */
18
-
19
-/**
20
- * @license React
21
- * react-jsx-runtime.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */
28
-
29
-/**
30
- * @license React
31
- * react.production.min.js
32
- *
33
- * Copyright (c) Facebook, Inc. and its affiliates.
34
- *
35
- * This source code is licensed under the MIT license found in the
36
- * LICENSE file in the root directory of this source tree.
37
- */
38
-
39
-/**
40
- * @license React
41
- * scheduler.production.min.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */
48
-
49
-/** @license React v16.13.1
50
- * react-is.production.min.js
51
- *
52
- * Copyright (c) Facebook, Inc. and its affiliates.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE file in the root directory of this source tree.
56
- */

+ 0
- 1
build/static/js/main.a0b94822.js.map
文件差异内容过多而无法显示
查看文件


+ 1
- 0
capacitor.config.json 查看文件

@@ -0,0 +1 @@
1
+{}

+ 13
- 0
frases.json 查看文件

@@ -0,0 +1,13 @@
1
+{
2
+    "frases": [
3
+        {"id": "build/static/media/frases_motivacionales/1.png"},
4
+        {"id": "build/static/media/frases_motivacionales/2.png"},
5
+        {"id": "build/static/media/frases_motivacionales/3.png"},
6
+        {"id": "build/static/media/frases_motivacionales/4.png"},
7
+        {"id": "build/static/media/frases_motivacionales/5.png"},
8
+        {"id": "build/static/media/frases_motivacionales/6.png"},
9
+        {"id": "build/static/media/frases_motivacionales/7.png"},
10
+        {"id": "build/static/media/frases_motivacionales/8.png"},
11
+        {"id": "build/static/media/frases_motivacionales/9.png"}
12
+    ]
13
+}

+ 140
- 15
package-lock.json 查看文件

@@ -29,6 +29,7 @@
29 29
         "cordova-plugin-geolocation": "^4.1.0",
30 30
         "history": "^4.9.0",
31 31
         "ionicons": "^6.0.3",
32
+        "mathjs": "^11.5.0",
32 33
         "react": "^18.2.0",
33 34
         "react-dom": "^18.2.0",
34 35
         "react-router": "^5.2.0",
@@ -50,6 +51,7 @@
50 51
       },
51 52
       "devDependencies": {
52 53
         "@capacitor/cli": "4.5.0",
54
+        "@types/mathjs": "^9.4.2",
53 55
         "@types/react-dom": "^18.0.9",
54 56
         "react-scripts": "5.0.1"
55 57
       }
@@ -2002,11 +2004,11 @@
2002 2004
       }
2003 2005
     },
2004 2006
     "node_modules/@babel/runtime": {
2005
-      "version": "7.20.1",
2006
-      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.1.tgz",
2007
-      "integrity": "sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg==",
2007
+      "version": "7.20.6",
2008
+      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.6.tgz",
2009
+      "integrity": "sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA==",
2008 2010
       "dependencies": {
2009
-        "regenerator-runtime": "^0.13.10"
2011
+        "regenerator-runtime": "^0.13.11"
2010 2012
       },
2011 2013
       "engines": {
2012 2014
         "node": ">=6.9.0"
@@ -4044,6 +4046,16 @@
4044 4046
       "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
4045 4047
       "dev": true
4046 4048
     },
4049
+    "node_modules/@types/mathjs": {
4050
+      "version": "9.4.2",
4051
+      "resolved": "https://registry.npmjs.org/@types/mathjs/-/mathjs-9.4.2.tgz",
4052
+      "integrity": "sha512-GF5g1vJmvKdWIWsE53XX7EDAyCaZ9p6gaYm1xhlXn5JjrY/NJrOfJN3fBxS3wyZpVh3QqKoMkS2WjFwxWMHOTw==",
4053
+      "deprecated": "This is a stub types definition. mathjs provides its own type definitions, so you do not need this installed.",
4054
+      "dev": true,
4055
+      "dependencies": {
4056
+        "mathjs": "*"
4057
+      }
4058
+    },
4047 4059
     "node_modules/@types/mime": {
4048 4060
       "version": "3.0.1",
4049 4061
       "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz",
@@ -5992,6 +6004,18 @@
5992 6004
       "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",
5993 6005
       "dev": true
5994 6006
     },
6007
+    "node_modules/complex.js": {
6008
+      "version": "2.1.1",
6009
+      "resolved": "https://registry.npmjs.org/complex.js/-/complex.js-2.1.1.tgz",
6010
+      "integrity": "sha512-8njCHOTtFFLtegk6zQo0kkVX1rngygb/KQI6z1qZxlFI3scluC+LVTCFbrkWjBv4vvLlbQ9t88IPMC6k95VTTg==",
6011
+      "engines": {
6012
+        "node": "*"
6013
+      },
6014
+      "funding": {
6015
+        "type": "patreon",
6016
+        "url": "https://www.patreon.com/infusion"
6017
+      }
6018
+    },
5995 6019
     "node_modules/compressible": {
5996 6020
       "version": "2.0.18",
5997 6021
       "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz",
@@ -6658,8 +6682,7 @@
6658 6682
     "node_modules/decimal.js": {
6659 6683
       "version": "10.4.3",
6660 6684
       "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz",
6661
-      "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==",
6662
-      "dev": true
6685
+      "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA=="
6663 6686
     },
6664 6687
     "node_modules/dedent": {
6665 6688
       "version": "0.7.0",
@@ -7267,6 +7290,11 @@
7267 7290
       "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
7268 7291
       "dev": true
7269 7292
     },
7293
+    "node_modules/escape-latex": {
7294
+      "version": "1.2.0",
7295
+      "resolved": "https://registry.npmjs.org/escape-latex/-/escape-latex-1.2.0.tgz",
7296
+      "integrity": "sha512-nV5aVWW1K0wEiUIEdZ4erkGGH8mDxGyxSeqPzRNtWP7ataw+/olFObw7hujFWlVjNsaDFw5VZ5NzVSIqRgfTiw=="
7297
+    },
7270 7298
     "node_modules/escape-string-regexp": {
7271 7299
       "version": "1.0.5",
7272 7300
       "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
@@ -8571,7 +8599,6 @@
8571 8599
       "version": "4.2.0",
8572 8600
       "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
8573 8601
       "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==",
8574
-      "dev": true,
8575 8602
       "engines": {
8576 8603
         "node": "*"
8577 8604
       },
@@ -9929,6 +9956,11 @@
9929 9956
         "node": ">=10"
9930 9957
       }
9931 9958
     },
9959
+    "node_modules/javascript-natural-sort": {
9960
+      "version": "0.7.1",
9961
+      "resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz",
9962
+      "integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw=="
9963
+    },
9932 9964
     "node_modules/jest": {
9933 9965
       "version": "27.5.1",
9934 9966
       "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz",
@@ -11353,6 +11385,28 @@
11353 11385
         "tmpl": "1.0.5"
11354 11386
       }
11355 11387
     },
11388
+    "node_modules/mathjs": {
11389
+      "version": "11.5.0",
11390
+      "resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.5.0.tgz",
11391
+      "integrity": "sha512-vJ/+SqWtxjW6/aeDRt8xL3TlOVKqwN15BIyTGVqGbIWuiqgY4SxZ0yLuna82YH9CB757iFP7uJ4m3KvVBX7Qcg==",
11392
+      "dependencies": {
11393
+        "@babel/runtime": "^7.20.6",
11394
+        "complex.js": "^2.1.1",
11395
+        "decimal.js": "^10.4.3",
11396
+        "escape-latex": "^1.2.0",
11397
+        "fraction.js": "^4.2.0",
11398
+        "javascript-natural-sort": "^0.7.1",
11399
+        "seedrandom": "^3.0.5",
11400
+        "tiny-emitter": "^2.1.0",
11401
+        "typed-function": "^4.1.0"
11402
+      },
11403
+      "bin": {
11404
+        "mathjs": "bin/cli.js"
11405
+      },
11406
+      "engines": {
11407
+        "node": ">= 14"
11408
+      }
11409
+    },
11356 11410
     "node_modules/mdn-data": {
11357 11411
       "version": "2.0.4",
11358 11412
       "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz",
@@ -14706,6 +14760,11 @@
14706 14760
         "url": "https://opencollective.com/webpack"
14707 14761
       }
14708 14762
     },
14763
+    "node_modules/seedrandom": {
14764
+      "version": "3.0.5",
14765
+      "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-3.0.5.tgz",
14766
+      "integrity": "sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg=="
14767
+    },
14709 14768
     "node_modules/select-hose": {
14710 14769
       "version": "2.0.0",
14711 14770
       "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
@@ -15776,6 +15835,11 @@
15776 15835
       "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==",
15777 15836
       "dev": true
15778 15837
     },
15838
+    "node_modules/tiny-emitter": {
15839
+      "version": "2.1.0",
15840
+      "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
15841
+      "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
15842
+    },
15779 15843
     "node_modules/tiny-invariant": {
15780 15844
       "version": "1.3.1",
15781 15845
       "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz",
@@ -15978,6 +16042,14 @@
15978 16042
         "node": ">= 0.6"
15979 16043
       }
15980 16044
     },
16045
+    "node_modules/typed-function": {
16046
+      "version": "4.1.0",
16047
+      "resolved": "https://registry.npmjs.org/typed-function/-/typed-function-4.1.0.tgz",
16048
+      "integrity": "sha512-DGwUl6cioBW5gw2L+6SMupGwH/kZOqivy17E4nsh1JI9fKF87orMmlQx3KISQPmg3sfnOUGlwVkroosvgddrlg==",
16049
+      "engines": {
16050
+        "node": ">= 14"
16051
+      }
16052
+    },
15981 16053
     "node_modules/typedarray-to-buffer": {
15982 16054
       "version": "3.1.5",
15983 16055
       "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
@@ -18775,11 +18847,11 @@
18775 18847
       }
18776 18848
     },
18777 18849
     "@babel/runtime": {
18778
-      "version": "7.20.1",
18779
-      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.1.tgz",
18780
-      "integrity": "sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg==",
18850
+      "version": "7.20.6",
18851
+      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.6.tgz",
18852
+      "integrity": "sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA==",
18781 18853
       "requires": {
18782
-        "regenerator-runtime": "^0.13.10"
18854
+        "regenerator-runtime": "^0.13.11"
18783 18855
       }
18784 18856
     },
18785 18857
     "@babel/runtime-corejs3": {
@@ -20266,6 +20338,15 @@
20266 20338
       "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
20267 20339
       "dev": true
20268 20340
     },
20341
+    "@types/mathjs": {
20342
+      "version": "9.4.2",
20343
+      "resolved": "https://registry.npmjs.org/@types/mathjs/-/mathjs-9.4.2.tgz",
20344
+      "integrity": "sha512-GF5g1vJmvKdWIWsE53XX7EDAyCaZ9p6gaYm1xhlXn5JjrY/NJrOfJN3fBxS3wyZpVh3QqKoMkS2WjFwxWMHOTw==",
20345
+      "dev": true,
20346
+      "requires": {
20347
+        "mathjs": "*"
20348
+      }
20349
+    },
20269 20350
     "@types/mime": {
20270 20351
       "version": "3.0.1",
20271 20352
       "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz",
@@ -21769,6 +21850,11 @@
21769 21850
       "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",
21770 21851
       "dev": true
21771 21852
     },
21853
+    "complex.js": {
21854
+      "version": "2.1.1",
21855
+      "resolved": "https://registry.npmjs.org/complex.js/-/complex.js-2.1.1.tgz",
21856
+      "integrity": "sha512-8njCHOTtFFLtegk6zQo0kkVX1rngygb/KQI6z1qZxlFI3scluC+LVTCFbrkWjBv4vvLlbQ9t88IPMC6k95VTTg=="
21857
+    },
21772 21858
     "compressible": {
21773 21859
       "version": "2.0.18",
21774 21860
       "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz",
@@ -22243,8 +22329,7 @@
22243 22329
     "decimal.js": {
22244 22330
       "version": "10.4.3",
22245 22331
       "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz",
22246
-      "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==",
22247
-      "dev": true
22332
+      "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA=="
22248 22333
     },
22249 22334
     "dedent": {
22250 22335
       "version": "0.7.0",
@@ -22724,6 +22809,11 @@
22724 22809
       "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
22725 22810
       "dev": true
22726 22811
     },
22812
+    "escape-latex": {
22813
+      "version": "1.2.0",
22814
+      "resolved": "https://registry.npmjs.org/escape-latex/-/escape-latex-1.2.0.tgz",
22815
+      "integrity": "sha512-nV5aVWW1K0wEiUIEdZ4erkGGH8mDxGyxSeqPzRNtWP7ataw+/olFObw7hujFWlVjNsaDFw5VZ5NzVSIqRgfTiw=="
22816
+    },
22727 22817
     "escape-string-regexp": {
22728 22818
       "version": "1.0.5",
22729 22819
       "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
@@ -23708,8 +23798,7 @@
23708 23798
     "fraction.js": {
23709 23799
       "version": "4.2.0",
23710 23800
       "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
23711
-      "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==",
23712
-      "dev": true
23801
+      "integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA=="
23713 23802
     },
23714 23803
     "fresh": {
23715 23804
       "version": "0.5.2",
@@ -24692,6 +24781,11 @@
24692 24781
         "minimatch": "^3.0.4"
24693 24782
       }
24694 24783
     },
24784
+    "javascript-natural-sort": {
24785
+      "version": "0.7.1",
24786
+      "resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz",
24787
+      "integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw=="
24788
+    },
24695 24789
     "jest": {
24696 24790
       "version": "27.5.1",
24697 24791
       "resolved": "https://registry.npmjs.org/jest/-/jest-27.5.1.tgz",
@@ -25811,6 +25905,22 @@
25811 25905
         "tmpl": "1.0.5"
25812 25906
       }
25813 25907
     },
25908
+    "mathjs": {
25909
+      "version": "11.5.0",
25910
+      "resolved": "https://registry.npmjs.org/mathjs/-/mathjs-11.5.0.tgz",
25911
+      "integrity": "sha512-vJ/+SqWtxjW6/aeDRt8xL3TlOVKqwN15BIyTGVqGbIWuiqgY4SxZ0yLuna82YH9CB757iFP7uJ4m3KvVBX7Qcg==",
25912
+      "requires": {
25913
+        "@babel/runtime": "^7.20.6",
25914
+        "complex.js": "^2.1.1",
25915
+        "decimal.js": "^10.4.3",
25916
+        "escape-latex": "^1.2.0",
25917
+        "fraction.js": "^4.2.0",
25918
+        "javascript-natural-sort": "^0.7.1",
25919
+        "seedrandom": "^3.0.5",
25920
+        "tiny-emitter": "^2.1.0",
25921
+        "typed-function": "^4.1.0"
25922
+      }
25923
+    },
25814 25924
     "mdn-data": {
25815 25925
       "version": "2.0.4",
25816 25926
       "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz",
@@ -28102,6 +28212,11 @@
28102 28212
         "ajv-keywords": "^3.5.2"
28103 28213
       }
28104 28214
     },
28215
+    "seedrandom": {
28216
+      "version": "3.0.5",
28217
+      "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-3.0.5.tgz",
28218
+      "integrity": "sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg=="
28219
+    },
28105 28220
     "select-hose": {
28106 28221
       "version": "2.0.0",
28107 28222
       "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
@@ -28946,6 +29061,11 @@
28946 29061
       "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==",
28947 29062
       "dev": true
28948 29063
     },
29064
+    "tiny-emitter": {
29065
+      "version": "2.1.0",
29066
+      "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
29067
+      "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
29068
+    },
28949 29069
     "tiny-invariant": {
28950 29070
       "version": "1.3.1",
28951 29071
       "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz",
@@ -29106,6 +29226,11 @@
29106 29226
         "mime-types": "~2.1.24"
29107 29227
       }
29108 29228
     },
29229
+    "typed-function": {
29230
+      "version": "4.1.0",
29231
+      "resolved": "https://registry.npmjs.org/typed-function/-/typed-function-4.1.0.tgz",
29232
+      "integrity": "sha512-DGwUl6cioBW5gw2L+6SMupGwH/kZOqivy17E4nsh1JI9fKF87orMmlQx3KISQPmg3sfnOUGlwVkroosvgddrlg=="
29233
+    },
29109 29234
     "typedarray-to-buffer": {
29110 29235
       "version": "3.1.5",
29111 29236
       "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",

+ 2
- 0
package.json 查看文件

@@ -24,6 +24,7 @@
24 24
     "cordova-plugin-geolocation": "^4.1.0",
25 25
     "history": "^4.9.0",
26 26
     "ionicons": "^6.0.3",
27
+    "mathjs": "^11.5.0",
27 28
     "react": "^18.2.0",
28 29
     "react-dom": "^18.2.0",
29 30
     "react-router": "^5.2.0",
@@ -70,6 +71,7 @@
70 71
   "description": "An Ionic project",
71 72
   "devDependencies": {
72 73
     "@capacitor/cli": "4.5.0",
74
+    "@types/mathjs": "^9.4.2",
73 75
     "@types/react-dom": "^18.0.9",
74 76
     "react-scripts": "5.0.1"
75 77
   }

二进制
src/.DS_Store 查看文件


二进制
src/images/.DS_Store 查看文件


+ 9
- 4
src/pages/Home.tsx 查看文件

@@ -3,9 +3,14 @@ import { arrowDownCircle, heart } from 'ionicons/icons';
3 3
 import { isPlatform } from '@ionic/react';
4 4
 
5 5
 import './styles/styles.css';
6
+import * as math from 'mathjs';
6 7
 
7 8
 // This is the date that is going to appear on the
8 9
 // card with the Motivational message
10
+let value = math.randomInt(1,10);
11
+let num = value.toString();
12
+
13
+console.log(value);
9 14
 const current = new Date();
10 15
 const date = `${current.toLocaleString('default', {month: 'long'}) } ${current.getDate()}`;
11 16
 
@@ -42,10 +47,10 @@ const Home: React.FC = () => {
42 47
               <IonButton fill="clear"> <IonIcon slot="icon-only" icon={arrowDownCircle} class="moti-download"></IonIcon></IonButton> 
43 48
             </IonCardTitle>
44 49
           </IonCardHeader>
45
-          <IonImg class="moti-img" alt="Motivational messa ge" src={require("./generatedMsgs/moti1.jpeg")}></IonImg>
50
+          <IonImg class="moti-img" alt="Motivational messa ge" src={require("./images/frases_motivavionales/"+num+".png")}></IonImg>
46 51
         </IonCard>
47 52
 
48
-        {/* Card 2 */}
53
+        {/* Card 2
49 54
         <IonCard class="moti-card">
50 55
           <IonCardHeader class="card-header">
51 56
             <IonCardTitle class="card-date">
@@ -53,8 +58,8 @@ const Home: React.FC = () => {
53 58
               <IonButton fill="clear"> <IonIcon slot="icon-only" icon={arrowDownCircle} class="moti-download"></IonIcon></IonButton>
54 59
             </IonCardTitle>
55 60
           </IonCardHeader>
56
-          <IonImg class="moti-img" alt="Motivational messa ge" src={require("./generatedMsgs/moti1.jpeg")}></IonImg>
57
-        </IonCard>
61
+          <IonImg class="moti-img" alt="Motivational messa ge" src={require("./images/frases_motivavionales/2.png")}></IonImg> 
62
+        </IonCard> */}
58 63
       </IonContent>
59 64
     </IonPage>
60 65
   );

二进制
src/pages/images/frases_motivavionales/1.png 查看文件


二进制
src/pages/images/frases_motivavionales/2.png 查看文件


二进制
src/pages/images/frases_motivavionales/3.png 查看文件


二进制
src/pages/images/frases_motivavionales/4.png 查看文件


二进制
src/pages/images/frases_motivavionales/5.png 查看文件


二进制
src/pages/images/frases_motivavionales/6.png 查看文件


二进制
src/pages/images/frases_motivavionales/7.png 查看文件


二进制
src/pages/images/frases_motivavionales/8.png 查看文件


二进制
src/pages/images/frases_motivavionales/9.png 查看文件