@bilfenyazilimekibi/bilpack 1.3.30 → 1.3.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bilpack.common.js +1 -1
- package/dist/bilpack.umd.js +1 -1
- package/dist/bilpack.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/bilpack.common.js
CHANGED
|
@@ -445,7 +445,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
445
445
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
446
446
|
|
|
447
447
|
"use strict";
|
|
448
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"LoginResetPasswordForm\",\n props: {\n token: {\n type: String,\n default: \"\",\n },\n },\n data() {\n return {\n valid: false,\n showPassword: false,\n showConfirmPassword: false,\n isSubmitting: false,\n errors: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n form: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n };\n },\n computed: {\n canSubmit() {\n return (\n this.form.newPassword !== \"\" &&\n this.form.confirmPassword !== \"\" &&\n !this.isSubmitting\n );\n },\n },\n methods: {\n handleGoToLogin() {\n window.location.href = \"/login\";\n },\n validateForm() {\n this.errors.newPassword = \"\";\n this.errors.confirmPassword = \"\";\n if (!this.form.newPassword.trim()) {\n this.errors.newPassword = \"Yeni şifre zorunludur.\";\n return false;\n }\n if (this.form.newPassword.length < 4) {\n this.errors.newPassword = \"Şifre en az 4 karakter olmalıdır.\";\n return false;\n }\n if (this.form.newPassword !== this.form.confirmPassword) {\n this.errors.confirmPassword = \"Şifreler eşleşmiyor.\";\n return false;\n }\n return true;\n },\n async handleSubmit() {\n if (!this.token) {\n this.$refs.resetSwal.error({\n title: \"Geçersiz veya eksik sıfırlama bağlantısı.\",\n text: \"\",\n });\n return;\n }\n if (!this.validateForm()) {\n return;\n }\n this.isSubmitting = true;\n try {\n const res = await this.$axios.post(
|
|
448
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"LoginResetPasswordForm\",\n props: {\n token: {\n type: String,\n default: \"\",\n },\n },\n data() {\n return {\n valid: false,\n showPassword: false,\n showConfirmPassword: false,\n isSubmitting: false,\n errors: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n form: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n };\n },\n computed: {\n canSubmit() {\n return (\n this.form.newPassword !== \"\" &&\n this.form.confirmPassword !== \"\" &&\n !this.isSubmitting\n );\n },\n },\n methods: {\n handleGoToLogin() {\n window.location.href = \"/login\";\n },\n validateForm() {\n this.errors.newPassword = \"\";\n this.errors.confirmPassword = \"\";\n if (!this.form.newPassword.trim()) {\n this.errors.newPassword = \"Yeni şifre zorunludur.\";\n return false;\n }\n if (this.form.newPassword.length < 4) {\n this.errors.newPassword = \"Şifre en az 4 karakter olmalıdır.\";\n return false;\n }\n if (this.form.newPassword !== this.form.confirmPassword) {\n this.errors.confirmPassword = \"Şifreler eşleşmiyor.\";\n return false;\n }\n return true;\n },\n async handleSubmit() {\n if (!this.token) {\n this.$refs.resetSwal.error({\n title: \"Geçersiz veya eksik sıfırlama bağlantısı.\",\n text: \"\",\n });\n return;\n }\n if (!this.validateForm()) {\n return;\n }\n this.isSubmitting = true;\n try {\n const bildashBaseUrl = this.$bilpack.env.bilapps.replace('bilapp', 'bildash');\n const res = await this.$axios.post(`${bildashBaseUrl}/reset/password/confirm`, {\n token: this.token,\n newPassword: this.form.newPassword,\n });\n const data = res.data || {};\n const d = data.data;\n const status =\n data.status === true ||\n (d && d.status === true) ||\n (d && d.data && d.data.status === true);\n const message = data.message ?? d?.message ?? d?.data?.message ?? \"\";\n\n if (status) {\n this.$refs.resetSwal.success({\n title: \"Şifreniz başarıyla güncellendi.\",\n text: \"Giriş sayfasına yönlendiriliyorsunuz...\",\n });\n setTimeout(() => {\n this.$router.push(\"/login\");\n }, 1000);\n } else {\n this.$refs.resetSwal.error({\n title: \"Şifre sıfırlanamadı\",\n text: message || \"Bir hata oluştu.\",\n });\n }\n } catch (err) {\n const msg =\n err.response?.data?.message ||\n err.response?.data?.error ||\n \"Bir hata oluştu.\";\n this.$refs.resetSwal.error({\n title: \"Şifre sıfırlanamadı\",\n text: msg,\n });\n } finally {\n this.isSubmitting = false;\n }\n },\n },\n});\n\n\n//# sourceURL=webpack://@bilfenyazilimekibi/bilpack/./src/components/bf-login/LoginResetPasswordForm.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
|
|
449
449
|
|
|
450
450
|
/***/ }),
|
|
451
451
|
|
package/dist/bilpack.umd.js
CHANGED
|
@@ -455,7 +455,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
455
455
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
456
456
|
|
|
457
457
|
"use strict";
|
|
458
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"LoginResetPasswordForm\",\n props: {\n token: {\n type: String,\n default: \"\",\n },\n },\n data() {\n return {\n valid: false,\n showPassword: false,\n showConfirmPassword: false,\n isSubmitting: false,\n errors: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n form: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n };\n },\n computed: {\n canSubmit() {\n return (\n this.form.newPassword !== \"\" &&\n this.form.confirmPassword !== \"\" &&\n !this.isSubmitting\n );\n },\n },\n methods: {\n handleGoToLogin() {\n window.location.href = \"/login\";\n },\n validateForm() {\n this.errors.newPassword = \"\";\n this.errors.confirmPassword = \"\";\n if (!this.form.newPassword.trim()) {\n this.errors.newPassword = \"Yeni şifre zorunludur.\";\n return false;\n }\n if (this.form.newPassword.length < 4) {\n this.errors.newPassword = \"Şifre en az 4 karakter olmalıdır.\";\n return false;\n }\n if (this.form.newPassword !== this.form.confirmPassword) {\n this.errors.confirmPassword = \"Şifreler eşleşmiyor.\";\n return false;\n }\n return true;\n },\n async handleSubmit() {\n if (!this.token) {\n this.$refs.resetSwal.error({\n title: \"Geçersiz veya eksik sıfırlama bağlantısı.\",\n text: \"\",\n });\n return;\n }\n if (!this.validateForm()) {\n return;\n }\n this.isSubmitting = true;\n try {\n const res = await this.$axios.post(
|
|
458
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"LoginResetPasswordForm\",\n props: {\n token: {\n type: String,\n default: \"\",\n },\n },\n data() {\n return {\n valid: false,\n showPassword: false,\n showConfirmPassword: false,\n isSubmitting: false,\n errors: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n form: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n };\n },\n computed: {\n canSubmit() {\n return (\n this.form.newPassword !== \"\" &&\n this.form.confirmPassword !== \"\" &&\n !this.isSubmitting\n );\n },\n },\n methods: {\n handleGoToLogin() {\n window.location.href = \"/login\";\n },\n validateForm() {\n this.errors.newPassword = \"\";\n this.errors.confirmPassword = \"\";\n if (!this.form.newPassword.trim()) {\n this.errors.newPassword = \"Yeni şifre zorunludur.\";\n return false;\n }\n if (this.form.newPassword.length < 4) {\n this.errors.newPassword = \"Şifre en az 4 karakter olmalıdır.\";\n return false;\n }\n if (this.form.newPassword !== this.form.confirmPassword) {\n this.errors.confirmPassword = \"Şifreler eşleşmiyor.\";\n return false;\n }\n return true;\n },\n async handleSubmit() {\n if (!this.token) {\n this.$refs.resetSwal.error({\n title: \"Geçersiz veya eksik sıfırlama bağlantısı.\",\n text: \"\",\n });\n return;\n }\n if (!this.validateForm()) {\n return;\n }\n this.isSubmitting = true;\n try {\n const bildashBaseUrl = this.$bilpack.env.bilapps.replace('bilapp', 'bildash');\n const res = await this.$axios.post(`${bildashBaseUrl}/reset/password/confirm`, {\n token: this.token,\n newPassword: this.form.newPassword,\n });\n const data = res.data || {};\n const d = data.data;\n const status =\n data.status === true ||\n (d && d.status === true) ||\n (d && d.data && d.data.status === true);\n const message = data.message ?? d?.message ?? d?.data?.message ?? \"\";\n\n if (status) {\n this.$refs.resetSwal.success({\n title: \"Şifreniz başarıyla güncellendi.\",\n text: \"Giriş sayfasına yönlendiriliyorsunuz...\",\n });\n setTimeout(() => {\n this.$router.push(\"/login\");\n }, 1000);\n } else {\n this.$refs.resetSwal.error({\n title: \"Şifre sıfırlanamadı\",\n text: message || \"Bir hata oluştu.\",\n });\n }\n } catch (err) {\n const msg =\n err.response?.data?.message ||\n err.response?.data?.error ||\n \"Bir hata oluştu.\";\n this.$refs.resetSwal.error({\n title: \"Şifre sıfırlanamadı\",\n text: msg,\n });\n } finally {\n this.isSubmitting = false;\n }\n },\n },\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-login/LoginResetPasswordForm.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
|
|
459
459
|
|
|
460
460
|
/***/ }),
|
|
461
461
|
|
package/dist/bilpack.umd.min.js
CHANGED
|
@@ -455,7 +455,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
455
455
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
456
456
|
|
|
457
457
|
"use strict";
|
|
458
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"LoginResetPasswordForm\",\n props: {\n token: {\n type: String,\n default: \"\",\n },\n },\n data() {\n return {\n valid: false,\n showPassword: false,\n showConfirmPassword: false,\n isSubmitting: false,\n errors: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n form: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n };\n },\n computed: {\n canSubmit() {\n return (\n this.form.newPassword !== \"\" &&\n this.form.confirmPassword !== \"\" &&\n !this.isSubmitting\n );\n },\n },\n methods: {\n handleGoToLogin() {\n window.location.href = \"/login\";\n },\n validateForm() {\n this.errors.newPassword = \"\";\n this.errors.confirmPassword = \"\";\n if (!this.form.newPassword.trim()) {\n this.errors.newPassword = \"Yeni şifre zorunludur.\";\n return false;\n }\n if (this.form.newPassword.length < 4) {\n this.errors.newPassword = \"Şifre en az 4 karakter olmalıdır.\";\n return false;\n }\n if (this.form.newPassword !== this.form.confirmPassword) {\n this.errors.confirmPassword = \"Şifreler eşleşmiyor.\";\n return false;\n }\n return true;\n },\n async handleSubmit() {\n if (!this.token) {\n this.$refs.resetSwal.error({\n title: \"Geçersiz veya eksik sıfırlama bağlantısı.\",\n text: \"\",\n });\n return;\n }\n if (!this.validateForm()) {\n return;\n }\n this.isSubmitting = true;\n try {\n const res = await this.$axios.post(
|
|
458
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"LoginResetPasswordForm\",\n props: {\n token: {\n type: String,\n default: \"\",\n },\n },\n data() {\n return {\n valid: false,\n showPassword: false,\n showConfirmPassword: false,\n isSubmitting: false,\n errors: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n form: {\n newPassword: \"\",\n confirmPassword: \"\",\n },\n };\n },\n computed: {\n canSubmit() {\n return (\n this.form.newPassword !== \"\" &&\n this.form.confirmPassword !== \"\" &&\n !this.isSubmitting\n );\n },\n },\n methods: {\n handleGoToLogin() {\n window.location.href = \"/login\";\n },\n validateForm() {\n this.errors.newPassword = \"\";\n this.errors.confirmPassword = \"\";\n if (!this.form.newPassword.trim()) {\n this.errors.newPassword = \"Yeni şifre zorunludur.\";\n return false;\n }\n if (this.form.newPassword.length < 4) {\n this.errors.newPassword = \"Şifre en az 4 karakter olmalıdır.\";\n return false;\n }\n if (this.form.newPassword !== this.form.confirmPassword) {\n this.errors.confirmPassword = \"Şifreler eşleşmiyor.\";\n return false;\n }\n return true;\n },\n async handleSubmit() {\n if (!this.token) {\n this.$refs.resetSwal.error({\n title: \"Geçersiz veya eksik sıfırlama bağlantısı.\",\n text: \"\",\n });\n return;\n }\n if (!this.validateForm()) {\n return;\n }\n this.isSubmitting = true;\n try {\n const bildashBaseUrl = this.$bilpack.env.bilapps.replace('bilapp', 'bildash');\n const res = await this.$axios.post(`${bildashBaseUrl}/reset/password/confirm`, {\n token: this.token,\n newPassword: this.form.newPassword,\n });\n const data = res.data || {};\n const d = data.data;\n const status =\n data.status === true ||\n (d && d.status === true) ||\n (d && d.data && d.data.status === true);\n const message = data.message ?? d?.message ?? d?.data?.message ?? \"\";\n\n if (status) {\n this.$refs.resetSwal.success({\n title: \"Şifreniz başarıyla güncellendi.\",\n text: \"Giriş sayfasına yönlendiriliyorsunuz...\",\n });\n setTimeout(() => {\n this.$router.push(\"/login\");\n }, 1000);\n } else {\n this.$refs.resetSwal.error({\n title: \"Şifre sıfırlanamadı\",\n text: message || \"Bir hata oluştu.\",\n });\n }\n } catch (err) {\n const msg =\n err.response?.data?.message ||\n err.response?.data?.error ||\n \"Bir hata oluştu.\";\n this.$refs.resetSwal.error({\n title: \"Şifre sıfırlanamadı\",\n text: msg,\n });\n } finally {\n this.isSubmitting = false;\n }\n },\n },\n});\n\n\n//# sourceURL=webpack://bilpack/./src/components/bf-login/LoginResetPasswordForm.vue?./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options");
|
|
459
459
|
|
|
460
460
|
/***/ }),
|
|
461
461
|
|