From 36f14798fc223f24cafe16198733ec2d4471d998 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 12 Mar 2018 14:28:00 -0300 Subject: [PATCH] Small adjustments on FieldsList and CollectionsList. Adds moment library for converting data formats. --- package-lock.json | 5 ++++ package.json | 1 + .../components/edition/field-edition-form.vue | 2 -- .../components/lists/collections-list.vue | 23 +++++++++++++++---- src/admin/components/lists/fields-list.vue | 17 ++++++++++---- .../components/navigation/primary-menu.vue | 2 +- src/admin/js/router.js | 2 +- src/admin/pages/lists/collections-page.vue | 7 +++++- src/admin/scss/_variables.scss | 1 + src/admin/tainacan-admin-i18n.php | 15 ++++++++++++ 10 files changed, 61 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 410ddaa58..00f14f1db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5988,6 +5988,11 @@ "minimist": "0.0.8" } }, + "moment": { + "version": "2.21.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.21.0.tgz", + "integrity": "sha512-TCZ36BjURTeFTM/CwRcViQlfkMvL1/vFISuNLO5GkcVm1+QHfbSiNqZuWeMFjj1/3+uAjXswgRk30j1kkLYJBQ==" + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", diff --git a/package.json b/package.json index 48751e60f..1159144f1 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "buefy": "^0.6.3", "bulma": "^0.6.2", "mdi": "^2.1.99", + "moment": "^2.21.0", "node-sass": "^4.7.2", "qs": "^6.5.1", "sass-loader": "^6.0.6", diff --git a/src/admin/components/edition/field-edition-form.vue b/src/admin/components/edition/field-edition-form.vue index 0302f58e3..f53937084 100644 --- a/src/admin/components/edition/field-edition-form.vue +++ b/src/admin/components/edition/field-edition-form.vue @@ -1,8 +1,6 @@