Client - display users registration date in admin timezone
This commit is contained in:
parent
b68dba34c1
commit
e7feb25bfa
2
fittrackee/dist/index.html
vendored
2
fittrackee/dist/index.html
vendored
@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/favicon.ico"><![endif]--><link rel="stylesheet" href="/static/css/fork-awesome.min.css"><link rel="stylesheet" href="/static/css/leaflet.css"><title>FitTrackee</title><link href="/static/css/admin.c784857e.css" rel="prefetch"><link href="/static/css/main.90171b28.css" rel="prefetch"><link href="/static/css/main~workouts.c12079e7.css" rel="prefetch"><link href="/static/css/profile.23881524.css" rel="prefetch"><link href="/static/css/reset.528e2916.css" rel="prefetch"><link href="/static/css/workouts.a9a41b99.css" rel="prefetch"><link href="/static/js/admin.b2c267a7.js" rel="prefetch"><link href="/static/js/chunk-2d0c9189.c81458cc.js" rel="prefetch"><link href="/static/js/chunk-2d0cf391.020c75ea.js" rel="prefetch"><link href="/static/js/chunk-2d0da8f3.c8c3e7e8.js" rel="prefetch"><link href="/static/js/chunk-2d2248b6.d84473c1.js" rel="prefetch"><link href="/static/js/chunk-2d22523a.4b710d99.js" rel="prefetch"><link href="/static/js/main.44a7d380.js" rel="prefetch"><link href="/static/js/main~workouts.052defa0.js" rel="prefetch"><link href="/static/js/profile.a7cb3b48.js" rel="prefetch"><link href="/static/js/reset.607f183f.js" rel="prefetch"><link href="/static/js/workouts.4a8b05f4.js" rel="prefetch"><link href="/static/css/app.fc944b83.css" rel="preload" as="style"><link href="/static/js/app.0f3cb969.js" rel="preload" as="script"><link href="/static/js/chunk-vendors.17cfd9a1.js" rel="preload" as="script"><link href="/static/css/app.fc944b83.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="fittrackee_client"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but FitTrackee doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/static/js/chunk-vendors.17cfd9a1.js"></script><script src="/static/js/app.0f3cb969.js"></script></body></html>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><!--[if IE]><link rel="icon" href="/favicon.ico"><![endif]--><link rel="stylesheet" href="/static/css/fork-awesome.min.css"><link rel="stylesheet" href="/static/css/leaflet.css"><title>FitTrackee</title><link href="/static/css/admin.c784857e.css" rel="prefetch"><link href="/static/css/main.90171b28.css" rel="prefetch"><link href="/static/css/main~workouts.c12079e7.css" rel="prefetch"><link href="/static/css/profile.23881524.css" rel="prefetch"><link href="/static/css/reset.528e2916.css" rel="prefetch"><link href="/static/css/workouts.a9a41b99.css" rel="prefetch"><link href="/static/js/admin.b2c267a7.js" rel="prefetch"><link href="/static/js/chunk-2d0c9189.c81458cc.js" rel="prefetch"><link href="/static/js/chunk-2d0cf391.020c75ea.js" rel="prefetch"><link href="/static/js/chunk-2d0da8f3.c8c3e7e8.js" rel="prefetch"><link href="/static/js/chunk-2d2248b6.d84473c1.js" rel="prefetch"><link href="/static/js/chunk-2d22523a.4b710d99.js" rel="prefetch"><link href="/static/js/main.44a7d380.js" rel="prefetch"><link href="/static/js/main~workouts.44a477db.js" rel="prefetch"><link href="/static/js/profile.a7cb3b48.js" rel="prefetch"><link href="/static/js/reset.607f183f.js" rel="prefetch"><link href="/static/js/workouts.4a8b05f4.js" rel="prefetch"><link href="/static/css/app.24ba011a.css" rel="preload" as="style"><link href="/static/js/app.b02bdc1f.js" rel="preload" as="script"><link href="/static/js/chunk-vendors.61765c73.js" rel="preload" as="script"><link href="/static/css/app.24ba011a.css" rel="stylesheet"><link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#4DBA87"><meta name="apple-mobile-web-app-capable" content="no"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="apple-mobile-web-app-title" content="fittrackee_client"><link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png"><link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87"><meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png"><meta name="msapplication-TileColor" content="#000000"></head><body><noscript><strong>We're sorry but FitTrackee doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/static/js/chunk-vendors.61765c73.js"></script><script src="/static/js/app.b02bdc1f.js"></script></body></html>
|
@ -64,7 +64,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||||||
"url": "/img/workouts/mountains.svg"
|
"url": "/img/workouts/mountains.svg"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "8954b4a4692e6bb0b12a980ae8a13eb3",
|
"revision": "9e86ef92a894641dfb2cb18d4eafa882",
|
||||||
"url": "/index.html"
|
"url": "/index.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -80,8 +80,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||||||
"url": "/static/css/admin.c784857e.css"
|
"url": "/static/css/admin.c784857e.css"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "71a645c7dac244c284e2",
|
"revision": "eb1b0ab18e7b390d39d4",
|
||||||
"url": "/static/css/app.fc944b83.css"
|
"url": "/static/css/app.24ba011a.css"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "82c1118c918377daaa71a320ab8eea42",
|
"revision": "82c1118c918377daaa71a320ab8eea42",
|
||||||
@ -96,7 +96,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||||||
"url": "/static/css/main.90171b28.css"
|
"url": "/static/css/main.90171b28.css"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "e6d0842782251189ebb2",
|
"revision": "7cbc2a35623621321963",
|
||||||
"url": "/static/css/main~workouts.c12079e7.css"
|
"url": "/static/css/main~workouts.c12079e7.css"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -196,8 +196,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||||||
"url": "/static/js/admin.b2c267a7.js"
|
"url": "/static/js/admin.b2c267a7.js"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "71a645c7dac244c284e2",
|
"revision": "eb1b0ab18e7b390d39d4",
|
||||||
"url": "/static/js/app.0f3cb969.js"
|
"url": "/static/js/app.b02bdc1f.js"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "bd7d183c9f68e5f4027d",
|
"revision": "bd7d183c9f68e5f4027d",
|
||||||
@ -220,16 +220,16 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|||||||
"url": "/static/js/chunk-2d22523a.4b710d99.js"
|
"url": "/static/js/chunk-2d22523a.4b710d99.js"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "9c1366622a8bb7c99e50",
|
"revision": "6c05e0c377c41a911291",
|
||||||
"url": "/static/js/chunk-vendors.17cfd9a1.js"
|
"url": "/static/js/chunk-vendors.61765c73.js"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "e459cb348928f86035a2",
|
"revision": "e459cb348928f86035a2",
|
||||||
"url": "/static/js/main.44a7d380.js"
|
"url": "/static/js/main.44a7d380.js"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "e6d0842782251189ebb2",
|
"revision": "7cbc2a35623621321963",
|
||||||
"url": "/static/js/main~workouts.052defa0.js"
|
"url": "/static/js/main~workouts.44a477db.js"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"revision": "611a96d7197f82c08a4d",
|
"revision": "611a96d7197f82c08a4d",
|
2
fittrackee/dist/service-worker.js
vendored
2
fittrackee/dist/service-worker.js
vendored
@ -14,7 +14,7 @@
|
|||||||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||||
|
|
||||||
importScripts(
|
importScripts(
|
||||||
"/precache-manifest.759e22f69f3840ffbe12f1a2837d0c33.js"
|
"/precache-manifest.f64af53e4d8d7da197055dd0a21b72e1.js"
|
||||||
);
|
);
|
||||||
|
|
||||||
workbox.core.setCacheNameDetails({prefix: "fittrackee_client"});
|
workbox.core.setCacheNameDetails({prefix: "fittrackee_client"});
|
||||||
|
File diff suppressed because one or more lines are too long
2
fittrackee/dist/static/js/app.0f3cb969.js
vendored
2
fittrackee/dist/static/js/app.0f3cb969.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
fittrackee/dist/static/js/app.b02bdc1f.js
vendored
Normal file
2
fittrackee/dist/static/js/app.b02bdc1f.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
fittrackee/dist/static/js/app.b02bdc1f.js.map
vendored
Normal file
1
fittrackee/dist/static/js/app.b02bdc1f.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
fittrackee/dist/static/js/chunk-vendors.61765c73.js.map
vendored
Normal file
1
fittrackee/dist/static/js/chunk-vendors.61765c73.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
fittrackee/dist/static/js/main~workouts.44a477db.js
vendored
Normal file
2
fittrackee/dist/static/js/main~workouts.44a477db.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
fittrackee/dist/static/js/main~workouts.44a477db.js.map
vendored
Normal file
1
fittrackee/dist/static/js/main~workouts.44a477db.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -55,7 +55,12 @@
|
|||||||
<span class="cell-heading">
|
<span class="cell-heading">
|
||||||
{{ $t('user.PROFILE.REGISTRATION_DATE') }}
|
{{ $t('user.PROFILE.REGISTRATION_DATE') }}
|
||||||
</span>
|
</span>
|
||||||
{{ user.created_at }}
|
{{
|
||||||
|
format(
|
||||||
|
getDateWithTZ(user.created_at, authUser.timezone),
|
||||||
|
'dd/MM/yyyy HH:mm'
|
||||||
|
)
|
||||||
|
}}
|
||||||
</td>
|
</td>
|
||||||
<td class="center-text">
|
<td class="center-text">
|
||||||
<span class="cell-heading">
|
<span class="cell-heading">
|
||||||
@ -110,6 +115,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { format } from 'date-fns'
|
||||||
import {
|
import {
|
||||||
ComputedRef,
|
ComputedRef,
|
||||||
computed,
|
computed,
|
||||||
@ -129,6 +135,7 @@
|
|||||||
import { IPagination, TPaginationPayload } from '@/types/api'
|
import { IPagination, TPaginationPayload } from '@/types/api'
|
||||||
import { IUserProfile } from '@/types/user'
|
import { IUserProfile } from '@/types/user'
|
||||||
import { useStore } from '@/use/useStore'
|
import { useStore } from '@/use/useStore'
|
||||||
|
import { getDateWithTZ } from '@/utils/dates'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'AdminUsers',
|
name: 'AdminUsers',
|
||||||
@ -233,6 +240,8 @@
|
|||||||
sort,
|
sort,
|
||||||
users,
|
users,
|
||||||
capitalize,
|
capitalize,
|
||||||
|
format,
|
||||||
|
getDateWithTZ,
|
||||||
reloadUsers,
|
reloadUsers,
|
||||||
updateUser,
|
updateUser,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user