1 line
8.0 KiB
Plaintext
1 line
8.0 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/views/user/ProfileView.vue?a414","webpack:///./src/views/user/ProfileView.vue","webpack:///./src/views/user/ProfileView.vue?6e93","webpack:///./src/views/user/UserView.vue?98c4","webpack:///./src/views/user/ProfileView.vue?dd98","webpack:///./src/views/user/UserView.vue?01ff","webpack:///./src/views/user/UserView.vue","webpack:///./src/views/user/UserView.vue?abfb"],"names":["_hoisted_1","key","id","class","render","_ctx","_cache","$props","$setup","$data","$options","_component_router_view","authUser","username","user","name","setup","store","useStore","getters","GETTERS","AUTH_USER_PROFILE","__exports__","_hoisted_2","_component_UserHeader","_component_UserInfos","components","UserHeader","UserInfos","route","USER","params","dispatch","ACTIONS","GET_USER","EMPTY_USER"],"mappings":"2JAGMA,EAAa,CACjBC,IAAK,EACLC,GAAI,UACJC,MAAO,kBAGH,SAAUC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAyB,8BAAkB,eAEjD,OAAQN,EAAKO,SAASC,UACjB,yBAAc,gCAAoB,MAAOb,EAAY,CACpD,yBAAaW,EAAwB,CAAEG,KAAMT,EAAKO,UAAY,KAAM,EAAG,CAAC,YAE1E,gCAAoB,IAAI,G,4BCTb,+BAAgB,CAC7BG,KAAM,cACNC,MAF6B,WAG3B,IAAMC,EAAQ,OAAAC,EAAA,QACRN,EAAsC,uBAC1C,kBAAMK,EAAME,QAAQ,OAAgBC,QAAQC,sBAE9C,MAAO,CAAET,e,iCCPf,MAAMU,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASlB,GAAQ,CAAC,YAAY,qBAE1E,gB,oCCTf,W,kCCAA,W,yDCGMJ,EAAa,CACjBC,IAAK,EACLC,GAAI,OACJC,MAAO,QAEHoB,EAAa,CAAEpB,MAAO,OAEtB,SAAUC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMc,EAAwB,8BAAkB,cAC1CC,EAAuB,8BAAkB,aAE/C,OAAQpB,EAAKS,KAAKD,UACb,yBAAc,gCAAoB,MAAOb,EAAY,CACpD,yBAAawB,EAAuB,CAAEV,KAAMT,EAAKS,MAAQ,KAAM,EAAG,CAAC,SACnE,gCAAoB,MAAOS,EAAY,CACrC,yBAAaE,EAAsB,CACjCX,KAAMT,EAAKS,KACX,cAAc,GACb,KAAM,EAAG,CAAC,cAGjB,gCAAoB,IAAI,G,gECRb,+BAAgB,CAC7BC,KAAM,WACNW,WAAY,CACVC,aAAA,KACAC,YAAA,MAEFZ,MAN6B,WAO3B,IAAMa,EAAQ,iBACRZ,EAAQ,OAAAC,EAAA,QAERJ,EAAkC,uBACtC,kBAAMG,EAAME,QAAQ,OAAYC,QAAQU,SAgB1C,OAbA,4BAAc,WAEVD,EAAME,OAAOlB,UACoB,kBAA1BgB,EAAME,OAAOlB,UAEpBI,EAAMe,SAAS,OAAYC,QAAQC,SAAUL,EAAME,OAAOlB,aAI9D,8BAAgB,WACdI,EAAMe,SAAS,OAAYC,QAAQE,eAG9B,CAAErB,W,iCCpCf,MAAMQ,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASlB,GAAQ,CAAC,YAAY,qBAE1E,gB","file":"static/js/profile.7e87449f.js","sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-37d55f74\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n id: \"profile\",\n class: \"container view\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_view = _resolveComponent(\"router-view\")!\n\n return (_ctx.authUser.username)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_router_view, { user: _ctx.authUser }, null, 8, [\"user\"])\n ]))\n : _createCommentVNode(\"\", true)\n}","\n import { computed, ComputedRef, defineComponent } from 'vue'\n\n import { AUTH_USER_STORE } from '@/store/constants'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'ProfileView',\n setup() {\n const store = useStore()\n const authUser: ComputedRef<IUserProfile> = computed(\n () => store.getters[AUTH_USER_STORE.GETTERS.AUTH_USER_PROFILE]\n )\n return { authUser }\n },\n })\n","import { render } from \"./ProfileView.vue?vue&type=template&id=37d55f74&scoped=true&ts=true\"\nimport script from \"./ProfileView.vue?vue&type=script&lang=ts\"\nexport * from \"./ProfileView.vue?vue&type=script&lang=ts\"\n\nimport \"./ProfileView.vue?vue&type=style&index=0&id=37d55f74&lang=scss&scoped=true\"\n\nimport exportComponent from \"/mnt/data-lnx/Devs/00_Perso/FitTrackee/fittrackee_client/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-37d55f74\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./UserView.vue?vue&type=style&index=0&id=82f4bbf6&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./ProfileView.vue?vue&type=style&index=0&id=37d55f74&lang=scss&scoped=true\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-82f4bbf6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n id: \"user\",\n class: \"view\"\n}\nconst _hoisted_2 = { class: \"box\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_UserHeader = _resolveComponent(\"UserHeader\")!\n const _component_UserInfos = _resolveComponent(\"UserInfos\")!\n\n return (_ctx.user.username)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_UserHeader, { user: _ctx.user }, null, 8, [\"user\"]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_UserInfos, {\n user: _ctx.user,\n \"from-admin\": true\n }, null, 8, [\"user\"])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}","\n import {\n ComputedRef,\n computed,\n defineComponent,\n onBeforeMount,\n onBeforeUnmount,\n } from 'vue'\n import { useRoute } from 'vue-router'\n\n import UserHeader from '@/components/User/ProfileDisplay/UserHeader.vue'\n import UserInfos from '@/components/User/ProfileDisplay/UserInfos.vue'\n import { USERS_STORE } from '@/store/constants'\n import { IUserProfile } from '@/types/user'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'UserView',\n components: {\n UserHeader,\n UserInfos,\n },\n setup() {\n const route = useRoute()\n const store = useStore()\n\n const user: ComputedRef<IUserProfile> = computed(\n () => store.getters[USERS_STORE.GETTERS.USER]\n )\n\n onBeforeMount(() => {\n if (\n route.params.username &&\n typeof route.params.username === 'string'\n ) {\n store.dispatch(USERS_STORE.ACTIONS.GET_USER, route.params.username)\n }\n })\n\n onBeforeUnmount(() => {\n store.dispatch(USERS_STORE.ACTIONS.EMPTY_USER)\n })\n\n return { user }\n },\n })\n","import { render } from \"./UserView.vue?vue&type=template&id=82f4bbf6&scoped=true&ts=true\"\nimport script from \"./UserView.vue?vue&type=script&lang=ts\"\nexport * from \"./UserView.vue?vue&type=script&lang=ts\"\n\nimport \"./UserView.vue?vue&type=style&index=0&id=82f4bbf6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/mnt/data-lnx/Devs/00_Perso/FitTrackee/fittrackee_client/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-82f4bbf6\"]])\n\nexport default __exports__"],"sourceRoot":""} |