Browse Source

HUE-9485 [frontend] Add luxon lib for handling date and time

Johan Ahlen 5 năm trước cách đây
mục cha
commit
ff025e9ede
2 tập tin đã thay đổi với 13 bổ sung0 xóa
  1. 11 0
      package-lock.json
  2. 2 0
      package.json

+ 11 - 0
package-lock.json

@@ -5305,6 +5305,12 @@
       "integrity": "sha512-VYg5VcZecApmAILpSsTtD0UUAHUIGWi7/um9WQjbk/ajPWinGZAKkH9U8zbFmvdxfafFGvcRm655XRm6vc6hoQ==",
       "dev": true
     },
+    "@types/luxon": {
+      "version": "1.25.0",
+      "resolved": "https://registry.npmjs.org/@types/luxon/-/luxon-1.25.0.tgz",
+      "integrity": "sha512-iIJp2CP6C32gVqI08HIYnzqj55tlLnodIBMCcMf28q9ckqMfMzocCmIzd9JWI/ALLPMUiTkCu1JGv3FFtu6t3g==",
+      "dev": true
+    },
     "@types/minimatch": {
       "version": "3.0.3",
       "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
@@ -16294,6 +16300,11 @@
         "yallist": "^3.0.2"
       }
     },
+    "luxon": {
+      "version": "1.25.0",
+      "resolved": "https://registry.npmjs.org/luxon/-/luxon-1.25.0.tgz",
+      "integrity": "sha512-hEgLurSH8kQRjY6i4YLey+mcKVAWXbDNlZRmM6AgWDJ1cY3atl8Ztf5wEY7VBReFbmGnwQPz7KYJblL8B2k0jQ=="
+    },
     "make-dir": {
       "version": "2.1.0",
       "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz",

+ 2 - 0
package.json

@@ -58,6 +58,7 @@
     "less": "^3.10.3",
     "localforage": "1.7.3",
     "lodash": "4.17.19",
+    "luxon": "1.25.0",
     "medium-editor": "5.23.3",
     "page": "1.8.6",
     "plotly.js-dist": "1.45.3",
@@ -85,6 +86,7 @@
     "@types/jest": "26.0.0",
     "@types/jquery": "3.5.0",
     "@types/knockout": "3.4.67",
+    "@types/luxon": "1.25.0",
     "@typescript-eslint/eslint-plugin": "3.4.0",
     "@typescript-eslint/parser": "3.4.0",
     "@vue/test-utils": "^1.0.3",