FitTrackee/fittrackee/dist/static/js/admin.b2c267a7.js.map
2021-11-03 18:28:29 +01:00

1 line
11 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/components/Common/Error.vue?46b2","webpack:///./src/views/AdminView.vue","webpack:///./src/views/AdminView.vue?ec89","webpack:///./src/views/AdminView.vue?aeb1","webpack:///./src/views/AdminView.vue?0c07","webpack:///./src/components/Common/NotFound.vue","webpack:///./src/components/Common/Error.vue","webpack:///./src/components/Common/Error.vue?0362","webpack:///./src/components/Common/Error.vue?f1fd","webpack:///./src/components/Common/NotFound.vue?7feb","webpack:///./src/components/Common/NotFound.vue?fca3"],"names":["id","class","userLoading","isAuthUserAmin","appConfig","appStatistics","name","components","NotFound","setup","store","useStore","dispatch","ACTIONS","GET_APPLICATION_STATS","appLoading","getters","GETTERS","APP_LOADING","APP_CONFIG","APP_STATS","IS_ADMIN","USER_LOADING","render","__scopeId","title","message","$t","target","button-text","buttonText","$router","push","path","props","type","String","required","default","Error"],"mappings":"uGAAA,W,4JCCOA,GAAG,S,SACDC,MAAM,a,EAOT,yBAAmB,OAAdD,GAAG,UAAQ,S,wLARpB,yBAUM,MAVN,EAUM,CAT0B,EAAAE,Y,iEAA9B,yBAQM,MARN,EAQM,CANI,EAAAC,gB,yBADR,yBAIE,G,MAFCC,UAAW,EAAAA,UACXC,cAAe,EAAAA,e,iEAElB,yBAAmB,YACnB,U,oCCDW,+BAAgB,CAC7BC,KAAM,QACNC,WAAY,CACVC,WAAA,MAEFC,MAL6B,WAM3B,IAAMC,EAAQ,OAAAC,EAAA,QAEd,4BAAc,kBACZD,EAAME,SAAS,OAAWC,QAAQC,0BAGpC,IAAMC,EAAmC,uBACvC,kBAAML,EAAMM,QAAQ,OAAWC,QAAQC,gBAEnCd,EAAqC,uBACzC,kBAAMM,EAAMM,QAAQ,OAAWC,QAAQE,eAEnCd,EAA6C,uBACjD,kBAAMK,EAAMM,QAAQ,OAAWC,QAAQG,cAEnCjB,EAAuC,uBAC3C,kBAAMO,EAAMM,QAAQ,OAAWC,QAAQI,aAEnCnB,EAAoC,uBACxC,kBAAMQ,EAAMM,QAAQ,OAAWC,QAAQK,iBAGzC,MAAO,CACLlB,YACAW,aACAV,gBACAF,iBACAD,kB,UCpCR,EAAOqB,OAASA,EAChB,EAAOC,UAAY,kBAEJ,gB,oCCRf,W,qMCCA,yBAII,GAHAC,MAAM,MACLC,QAAS,EAAAC,GAAA,0BAAsB,EAAAC,SAC/BC,cAAa,EAAAF,GAAE,gB,uICHb3B,GAAG,S,GACDC,MAAM,iB,yFADb,yBAQM,MARN,EAQM,CAPJ,yBAMM,MANN,EAMM,CALJ,yBAAoB,uCAAb,EAAAwB,OAAK,GACZ,yBAAoB,sCAAd,EAAAC,SAAO,GACC,EAAAI,Y,yBAAd,yBAES,U,MAFkB,QAAK,+BAAE,EAAAC,QAAQC,KAAK,EAAAC,QAAOhC,MAAM,S,6BACvD,EAAA6B,YAAU,I,8CCHJ,+BAAgB,CAC7BxB,KAAM,QACN4B,MAAO,CACLT,MAAO,CACLU,KAAMC,OACNC,UAAU,GAEZX,QAAS,CACPS,KAAMC,QAERN,WAAY,CACVK,KAAMC,QAERH,KAAM,CACJE,KAAMC,OACNE,QAAS,Q,UCbjB,EAAOf,OAAS,EAChB,EAAOC,UAAY,kBAEJ,QCHE,+BAAgB,CAC7BlB,KAAM,WACNC,WAAY,CACVgC,SAEFL,MAAO,CACLN,OAAQ,CACNO,KAAMC,OACNE,QAAS,WCVjB,EAAOf,OAASA,EAED","file":"static/js/admin.b2c267a7.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Error.vue?vue&type=style&index=0&id=58e20d75&scoped=true&lang=scss\"","<template>\n <div id=\"admin\">\n <div class=\"container\" v-if=\"!userLoading\">\n <router-view\n v-if=\"isAuthUserAmin\"\n :appConfig=\"appConfig\"\n :appStatistics=\"appStatistics\"\n />\n <NotFound v-else />\n <div id=\"bottom\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, ComputedRef, defineComponent, onBeforeMount } from 'vue'\n\n import NotFound from '@/components/Common/NotFound.vue'\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { TAppConfig, IAppStatistics } from '@/types/application'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'Admin',\n components: {\n NotFound,\n },\n setup() {\n const store = useStore()\n\n onBeforeMount(() =>\n store.dispatch(ROOT_STORE.ACTIONS.GET_APPLICATION_STATS)\n )\n\n const appLoading: ComputedRef<boolean> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_LOADING]\n )\n const appConfig: ComputedRef<TAppConfig> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_CONFIG]\n )\n const appStatistics: ComputedRef<IAppStatistics> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_STATS]\n )\n const isAuthUserAmin: ComputedRef<boolean> = computed(\n () => store.getters[USER_STORE.GETTERS.IS_ADMIN]\n )\n const userLoading: ComputedRef<boolean> = computed(\n () => store.getters[USER_STORE.GETTERS.USER_LOADING]\n )\n\n return {\n appConfig,\n appLoading,\n appStatistics,\n isAuthUserAmin,\n userLoading,\n }\n },\n })\n</script>\n\n<style lang=\"scss\" scoped>\n @import '~@/scss/base.scss';\n\n #admin {\n .admin-card {\n width: 100%;\n margin-bottom: 55px;\n\n ::v-deep(.card) {\n .admin-form {\n display: flex;\n flex-direction: column;\n\n label {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: $default-margin 0;\n flex-wrap: wrap;\n\n input {\n width: 50%;\n font-size: 0.9em;\n margin-right: $default-margin * 5;\n @media screen and (max-width: $medium-limit) {\n margin-right: 0;\n }\n @media screen and (max-width: $small-limit) {\n width: 100%;\n }\n\n &:disabled {\n -webkit-appearance: none;\n -moz-appearance: textfield;\n background-color: white;\n border-color: white;\n color: var(--app-color);\n }\n }\n }\n .form-buttons {\n display: flex;\n gap: $default-padding;\n margin-bottom: $default-margin;\n }\n }\n }\n }\n }\n</style>\n","\n import { computed, ComputedRef, defineComponent, onBeforeMount } from 'vue'\n\n import NotFound from '@/components/Common/NotFound.vue'\n import { ROOT_STORE, USER_STORE } from '@/store/constants'\n import { TAppConfig, IAppStatistics } from '@/types/application'\n import { useStore } from '@/use/useStore'\n\n export default defineComponent({\n name: 'Admin',\n components: {\n NotFound,\n },\n setup() {\n const store = useStore()\n\n onBeforeMount(() =>\n store.dispatch(ROOT_STORE.ACTIONS.GET_APPLICATION_STATS)\n )\n\n const appLoading: ComputedRef<boolean> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_LOADING]\n )\n const appConfig: ComputedRef<TAppConfig> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_CONFIG]\n )\n const appStatistics: ComputedRef<IAppStatistics> = computed(\n () => store.getters[ROOT_STORE.GETTERS.APP_STATS]\n )\n const isAuthUserAmin: ComputedRef<boolean> = computed(\n () => store.getters[USER_STORE.GETTERS.IS_ADMIN]\n )\n const userLoading: ComputedRef<boolean> = computed(\n () => store.getters[USER_STORE.GETTERS.USER_LOADING]\n )\n\n return {\n appConfig,\n appLoading,\n appStatistics,\n isAuthUserAmin,\n userLoading,\n }\n },\n })\n","import { render } from \"./AdminView.vue?vue&type=template&id=796ecd8d&scoped=true\"\nimport script from \"./AdminView.vue?vue&type=script&lang=ts\"\nexport * from \"./AdminView.vue?vue&type=script&lang=ts\"\n\nimport \"./AdminView.vue?vue&type=style&index=0&id=796ecd8d&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-796ecd8d\"\n\nexport default script","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./AdminView.vue?vue&type=style&index=0&id=796ecd8d&lang=scss&scoped=true\"","<template>\n <Error\n title=\"404\"\n :message=\"$t(`error.NOT_FOUND.${target}`)\"\n :button-text=\"$t('common.HOME')\"\n />\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue'\n\n import Error from '@/components/Common/Error.vue'\n\n export default defineComponent({\n name: 'NotFound',\n components: {\n Error,\n },\n props: {\n target: {\n type: String,\n default: 'PAGE',\n },\n },\n })\n</script>\n","<template>\n <div id=\"error\">\n <div class=\"error-content\">\n <h1>{{ title }}</h1>\n <p>{{ message }}</p>\n <button v-if=\"buttonText\" @click=\"$router.push(path)\" class=\"upper\">\n {{ buttonText }}\n </button>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'Error',\n props: {\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n },\n buttonText: {\n type: String,\n },\n path: {\n type: String,\n default: '/',\n },\n },\n })\n</script>\n\n<style scoped lang=\"scss\">\n @import '~@/scss/base';\n\n #error {\n display: flex;\n align-items: center;\n justify-content: center;\n\n height: 75vh;\n\n text-align: center;\n\n .error-content {\n margin-top: 50px;\n\n h1 {\n font-size: 6em;\n text-shadow: 4px 4px 0 var(--app-shadow-color);\n }\n\n p {\n font-size: 1.2em;\n margin: 30px 0;\n }\n }\n }\n</style>\n","\n import { defineComponent } from 'vue'\n\n export default defineComponent({\n name: 'Error',\n props: {\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n },\n buttonText: {\n type: String,\n },\n path: {\n type: String,\n default: '/',\n },\n },\n })\n","import { render } from \"./Error.vue?vue&type=template&id=58e20d75&scoped=true\"\nimport script from \"./Error.vue?vue&type=script&lang=ts\"\nexport * from \"./Error.vue?vue&type=script&lang=ts\"\n\nimport \"./Error.vue?vue&type=style&index=0&id=58e20d75&scoped=true&lang=scss\"\nscript.render = render\nscript.__scopeId = \"data-v-58e20d75\"\n\nexport default script","\n import { defineComponent } from 'vue'\n\n import Error from '@/components/Common/Error.vue'\n\n export default defineComponent({\n name: 'NotFound',\n components: {\n Error,\n },\n props: {\n target: {\n type: String,\n default: 'PAGE',\n },\n },\n })\n","import { render } from \"./NotFound.vue?vue&type=template&id=2e960d8e\"\nimport script from \"./NotFound.vue?vue&type=script&lang=ts\"\nexport * from \"./NotFound.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script"],"sourceRoot":""}