From 202f4d22f42ec631bea8ac3d5af81f6e818fca29 Mon Sep 17 00:00:00 2001 From: sindhu Date: Thu, 2 May 2024 15:49:09 +0700 Subject: [PATCH] fix relative base href --- views/employee/employee.templ | 4 ++-- views/employee/employee_templ.go | 2 +- views/landingpage/landingpage.templ | 2 +- views/landingpage/landingpage_templ.go | 2 +- views/landingpage/medicalservice.templ | 8 ++++---- views/landingpage/medicalservice_templ.go | 4 ++-- views/layout/canvas_layout.templ | 2 +- views/layout/canvas_layout_templ.go | 2 +- views/layout/playground_layout.templ | 2 +- views/layout/playground_layout_templ.go | 2 +- views/login/login.templ | 2 +- views/login/login_templ.go | 2 +- views/login/logincomponent.templ | 6 +++--- views/login/logincomponent_templ.go | 6 +++--- views/under_development/under_development.templ | 2 +- views/under_development/under_development_templ.go | 2 +- 16 files changed, 25 insertions(+), 25 deletions(-) diff --git a/views/employee/employee.templ b/views/employee/employee.templ index adeb7bd..dc4474a 100644 --- a/views/employee/employee.templ +++ b/views/employee/employee.templ @@ -13,7 +13,7 @@ templ MainEmployee(cardServiceComponent templ.Component) { > ... diff --git a/views/employee/employee_templ.go b/views/employee/employee_templ.go index 4b9ce17..af3baeb 100644 --- a/views/employee/employee_templ.go +++ b/views/employee/employee_templ.go @@ -28,7 +28,7 @@ func MainEmployee(cardServiceComponent templ.Component) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/views/landingpage/landingpage.templ b/views/landingpage/landingpage.templ index 9dfe9e2..ad8991b 100644 --- a/views/landingpage/landingpage.templ +++ b/views/landingpage/landingpage.templ @@ -12,7 +12,7 @@ templ MainLandingPage(medicalServiceComponent templ.Component, listAdvantageComp > ") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/views/landingpage/medicalservice.templ b/views/landingpage/medicalservice.templ index 93a92f0..924f744 100644 --- a/views/landingpage/medicalservice.templ +++ b/views/landingpage/medicalservice.templ @@ -83,7 +83,7 @@ templ ListAdvantage(adData []services.AdvantageClient) {
Your Brand @@ -104,7 +104,7 @@ templ HeaderCard() {
Your Brand @@ -138,7 +138,7 @@ templ HeaderCard() {
Your Brand @@ -195,7 +195,7 @@ templ HeaderCard() { " -->
Your Brand diff --git a/views/landingpage/medicalservice_templ.go b/views/landingpage/medicalservice_templ.go index f7335ae..5aa7756 100644 --- a/views/landingpage/medicalservice_templ.go +++ b/views/landingpage/medicalservice_templ.go @@ -253,7 +253,7 @@ func ListAdvantage(adData []services.AdvantageClient) templ.Component { templ_7745c5c3_Var13 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
\"Your
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
\"Your
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -287,7 +287,7 @@ func HeaderCard() templ.Component { templ_7745c5c3_Var14 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
\"Your

Invest in Your Well-being with Our Comprehensive Medical\r Check-Up\r

Elevate your health journey with our thorough medical\r assessments, empowering you to take proactive steps towards a\r healthier, happier life.\r

\"Your

Invest in Your Well-being with Our Comprehensive Medical\r Check-Up\r

Elevate your health journey with our thorough medical\r assessments, empowering you to take proactive steps towards a\r healthier, happier life.\r

Invest in Your Well-being with Our Comprehensive Medical\r Check-Up\r

Elevate your health journey with our thorough medical\r assessments, empowering you to take proactive steps towards a\r healthier, happier life.\r

\"Your
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
\"Your

Invest in Your Well-being with Our Comprehensive Medical\r Check-Up\r

Elevate your health journey with our thorough medical\r assessments, empowering you to take proactive steps towards a\r healthier, happier life.\r

\"Your

Invest in Your Well-being with Our Comprehensive Medical\r Check-Up\r

Elevate your health journey with our thorough medical\r assessments, empowering you to take proactive steps towards a\r healthier, happier life.\r

Invest in Your Well-being with Our Comprehensive Medical\r Check-Up\r

Elevate your health journey with our thorough medical\r assessments, empowering you to take proactive steps towards a\r healthier, happier life.\r

\"Your
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/views/layout/canvas_layout.templ b/views/layout/canvas_layout.templ index e3d2924..182d8c2 100644 --- a/views/layout/canvas_layout.templ +++ b/views/layout/canvas_layout.templ @@ -17,7 +17,7 @@ templ CanvasLayout(title string, css templ.Component, js templ.Component) { - + Company Portal | { title } diff --git a/views/layout/canvas_layout_templ.go b/views/layout/canvas_layout_templ.go index b965c07..3c1e32a 100644 --- a/views/layout/canvas_layout_templ.go +++ b/views/layout/canvas_layout_templ.go @@ -23,7 +23,7 @@ func CanvasLayout(title string, css templ.Component, js templ.Component) templ.C templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("Company Portal | ") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!doctype html><!--\r\n\t\tTemplate Name: Metronic - Bootstrap 4 HTML, React, Angular 9 & VueJS Admin Dashboard Theme\r\n\t\tAuthor: KeenThemes\r\n\t\tWebsite: http://www.keenthemes.com/\r\n\t\tContact: support@keenthemes.com\r\n\t\tFollow: www.twitter.com/keenthemes\r\n\t\tDribbble: www.dribbble.com/keenthemes\r\n\t\tLike: www.facebook.com/keenthemes\r\n\t\tPurchase: https://1.envato.market/EA4JP\r\n\t\tRenew Support: https://1.envato.market/EA4JP\r\n\t\tLicense: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.\r\n\t\t--><html lang=\"en\"><!--begin::Head--><head><base href=\"/\"><meta charset=\"utf-8\"><title>Company Portal | ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/views/layout/playground_layout.templ b/views/layout/playground_layout.templ index b5c96bb..b91c3be 100644 --- a/views/layout/playground_layout.templ +++ b/views/layout/playground_layout.templ @@ -18,7 +18,7 @@ templ PlaygroundLayout(title string, css templ.Component, js templ.Component) { <html lang="en"> <!--begin::Head--> <head> - <base href="../"/> + <base href="/"/> <meta charset="utf-8"/> <title>Company Portal | { title } diff --git a/views/layout/playground_layout_templ.go b/views/layout/playground_layout_templ.go index d992cc5..1e0e7ea 100644 --- a/views/layout/playground_layout_templ.go +++ b/views/layout/playground_layout_templ.go @@ -24,7 +24,7 @@ func PlaygroundLayout(title string, css templ.Component, js templ.Component) tem templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("Company Portal | ") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!doctype html><!--\r\n\t\tTemplate Name: Metronic - Bootstrap 4 HTML, React, Angular 9 & VueJS Admin Dashboard Theme\r\n\t\tAuthor: KeenThemes\r\n\t\tWebsite: http://www.keenthemes.com/\r\n\t\tContact: support@keenthemes.com\r\n\t\tFollow: www.twitter.com/keenthemes\r\n\t\tDribbble: www.dribbble.com/keenthemes\r\n\t\tLike: www.facebook.com/keenthemes\r\n\t\tPurchase: https://1.envato.market/EA4JP\r\n\t\tRenew Support: https://1.envato.market/EA4JP\r\n\t\tLicense: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.\r\n\t\t--><html lang=\"en\"><!--begin::Head--><head><base href=\"/\"><meta charset=\"utf-8\"><title>Company Portal | ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/views/login/login.templ b/views/login/login.templ index 2bc24e4..6db5c6e 100644 --- a/views/login/login.templ +++ b/views/login/login.templ @@ -93,7 +93,7 @@ templ CssLogin() { } templ JsLogin() { - <script src="../../asset-corporate-portal/js/login-general.js"></script> + <script src="/asset-corporate-portal/js/login-general.js"></script> } templ ShowLogin(title string, cmp templ.Component, css templ.Component, js templ.Component) { diff --git a/views/login/login_templ.go b/views/login/login_templ.go index 14c4405..d540882 100644 --- a/views/login/login_templ.go +++ b/views/login/login_templ.go @@ -107,7 +107,7 @@ func JsLogin() templ.Component { templ_7745c5c3_Var3 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<script src=\"../../asset-corporate-portal/js/login-general.js\"></script>") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<script src=\"/asset-corporate-portal/js/login-general.js\"></script>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/views/login/logincomponent.templ b/views/login/logincomponent.templ index f7cab2c..6507db1 100644 --- a/views/login/logincomponent.templ +++ b/views/login/logincomponent.templ @@ -22,7 +22,7 @@ templ AsideLeft() { class="d-flex bgi-no-repeat flex-row-fluid justify-content-center align-items-end" > <img - src="../../asset-corporate-portal/media/login/login-company-vector.png" + src="/asset-corporate-portal/media/login/login-company-vector.png" class="img-fluid" style="height: 55vh; width: 55vh" /> @@ -40,7 +40,7 @@ templ FormSignin() { <!--begin::Title--> <div class="d-flex justify-content-center mb-5"> <img - src="../../asset-corporate-portal/media/logo/logo.png" + src="/asset-corporate-portal/media/logo/logo.png" alt="" style="height: 103px" /> @@ -225,7 +225,7 @@ templ ForgotPassword() { <!--begin::Title--> <div class="d-flex justify-content-center mb-5"> <img - src="../../asset-corporate-portal/media/logo/logo.png" + src="/asset-corporate-portal/media/logo/logo.png" alt="" style="height: 103px" /> diff --git a/views/login/logincomponent_templ.go b/views/login/logincomponent_templ.go index d919e87..c1488c9 100644 --- a/views/login/logincomponent_templ.go +++ b/views/login/logincomponent_templ.go @@ -23,7 +23,7 @@ func AsideLeft() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"login-aside d-flex flex-column flex-row-auto bg-primary\"><!--begin::Aside Top--><div class=\"d-flex flex-column-auto flex-column pt-lg-40 pt-15 px-10\"><!--begin::Aside header--><div class=\"aside-title mb-5\">Empowering Your Workforce's Health\r</div><!--end::Aside header--><!--begin::Aside title--><div class=\"aside-subtitle\">Discover peace of mind and prioritize your health with our\r comprehensive medical check-up packages\r</div><!--end::Aside title--></div><!--end::Aside Top--><!--begin::Aside Bottom--><div class=\"d-flex bgi-no-repeat flex-row-fluid justify-content-center align-items-end\"><img src=\"../../asset-corporate-portal/media/login/login-company-vector.png\" class=\"img-fluid\" style=\"height: 55vh; width: 55vh\"></div><!--end::Aside Bottom--></div>") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"login-aside d-flex flex-column flex-row-auto bg-primary\"><!--begin::Aside Top--><div class=\"d-flex flex-column-auto flex-column pt-lg-40 pt-15 px-10\"><!--begin::Aside header--><div class=\"aside-title mb-5\">Empowering Your Workforce's Health\r</div><!--end::Aside header--><!--begin::Aside title--><div class=\"aside-subtitle\">Discover peace of mind and prioritize your health with our\r comprehensive medical check-up packages\r</div><!--end::Aside title--></div><!--end::Aside Top--><!--begin::Aside Bottom--><div class=\"d-flex bgi-no-repeat flex-row-fluid justify-content-center align-items-end\"><img src=\"/asset-corporate-portal/media/login/login-company-vector.png\" class=\"img-fluid\" style=\"height: 55vh; width: 55vh\"></div><!--end::Aside Bottom--></div>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -47,7 +47,7 @@ func FormSignin() templ.Component { templ_7745c5c3_Var2 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form class=\"form\" novalidate=\"novalidate\" id=\"kt_login_signin_form\"><!--begin::Title--><div class=\"d-flex justify-content-center mb-5\"><img src=\"../../asset-corporate-portal/media/logo/logo.png\" alt=\"\" style=\"height: 103px\"></div><div class=\"pt-2\"><h3 class=\"d-flex justify-content-center title-company text-dark\">Welcome to Corporate Portal\r</h3></div><div class=\"pb-10 pt-0\"><h3 class=\"subtitle-company\" style=\"color: #a7a8bb\">Sign in to access your account\r</h3></div><!--begin::Title--><!--begin::Form group--><div class=\"form-group\"><label class=\"font-size-h6 font-weight-bolder text-dark\">Email</label> <input class=\"form-control form-control-solid h-auto py-7 px-6 rounded-lg\" type=\"text\" name=\"username\" autocomplete=\"off\" placeholder=\"Enter your email\"></div><!--end::Form group--><!--begin::Form group--><div class=\"form-group\"><div class=\"d-flex justify-content-between mt-n5\"><label class=\"font-size-h6 font-weight-bolder text-dark pt-5\">Password</label></div><div class=\"input-group\"><!-- form-control form-control-solid --><input class=\"h-auto form-control form-control-solid py-7 px-6 rounded-lg rounded-right-0\" type=\"password\" name=\"password\" id=\"user-password\" autocomplete=\"off\" placeholder=\"Enter your password\"><div class=\"input-group-append\"><span class=\"input-group-text rounded-lg rounded-left-0\" style=\"border: 0\"><!-- far fa-eye-slash --><a class=\"btn\" role=\"button\" id=\"btn-show\"><i class=\"far fa-eye-slash\" id=\"password-icon\"></i></a></span></div></div></div><div class=\"d-flex justify-content-end\"><a href=\"javascript:;\" class=\"font-size-h6 font-weight-bolder text-hover-primary mb-5 text-primary\" id=\"kt_login_forgot\">Forgot Password ?\r</a></div><!--end::Form group--><!--begin::Action--><div class=\"pb-lg-0 pb-5 pt-5\"><button type=\"button\" id=\"kt_login_signin_submit\" class=\"btn btn-block font-weight-bolder text-white font-size-h6 px-8 py-4 my-3 mr-3 mt-5 btn-primary\">Sign In\r</button></div><!--end::Action--></form>") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form class=\"form\" novalidate=\"novalidate\" id=\"kt_login_signin_form\"><!--begin::Title--><div class=\"d-flex justify-content-center mb-5\"><img src=\"/asset-corporate-portal/media/logo/logo.png\" alt=\"\" style=\"height: 103px\"></div><div class=\"pt-2\"><h3 class=\"d-flex justify-content-center title-company text-dark\">Welcome to Corporate Portal\r</h3></div><div class=\"pb-10 pt-0\"><h3 class=\"subtitle-company\" style=\"color: #a7a8bb\">Sign in to access your account\r</h3></div><!--begin::Title--><!--begin::Form group--><div class=\"form-group\"><label class=\"font-size-h6 font-weight-bolder text-dark\">Email</label> <input class=\"form-control form-control-solid h-auto py-7 px-6 rounded-lg\" type=\"text\" name=\"username\" autocomplete=\"off\" placeholder=\"Enter your email\"></div><!--end::Form group--><!--begin::Form group--><div class=\"form-group\"><div class=\"d-flex justify-content-between mt-n5\"><label class=\"font-size-h6 font-weight-bolder text-dark pt-5\">Password</label></div><div class=\"input-group\"><!-- form-control form-control-solid --><input class=\"h-auto form-control form-control-solid py-7 px-6 rounded-lg rounded-right-0\" type=\"password\" name=\"password\" id=\"user-password\" autocomplete=\"off\" placeholder=\"Enter your password\"><div class=\"input-group-append\"><span class=\"input-group-text rounded-lg rounded-left-0\" style=\"border: 0\"><!-- far fa-eye-slash --><a class=\"btn\" role=\"button\" id=\"btn-show\"><i class=\"far fa-eye-slash\" id=\"password-icon\"></i></a></span></div></div></div><div class=\"d-flex justify-content-end\"><a href=\"javascript:;\" class=\"font-size-h6 font-weight-bolder text-hover-primary mb-5 text-primary\" id=\"kt_login_forgot\">Forgot Password ?\r</a></div><!--end::Form group--><!--begin::Action--><div class=\"pb-lg-0 pb-5 pt-5\"><button type=\"button\" id=\"kt_login_signin_submit\" class=\"btn btn-block font-weight-bolder text-white font-size-h6 px-8 py-4 my-3 mr-3 mt-5 btn-primary\">Sign In\r</button></div><!--end::Action--></form>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -95,7 +95,7 @@ func ForgotPassword() templ.Component { templ_7745c5c3_Var4 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form class=\"form\" novalidate=\"novalidate\" id=\"kt_login_forgot_form\"><!--begin::Title--><div class=\"d-flex justify-content-center mb-5\"><img src=\"../../asset-corporate-portal/media/logo/logo.png\" alt=\"\" style=\"height: 103px\"></div><div class=\"pb-13 pt-lg-0 pt-5\"><h3 class=\"font-weight-bolder text-dark font-size-h4 font-size-h1-lg\">Forgotten Password ?\r</h3><p class=\"text-muted font-weight-bold font-size-h4\">Enter your email to reset your password\r</p></div><!--end::Title--><!--begin::Form group--><div class=\"form-group\"><input class=\"form-control form-control-solid h-auto py-7 px-6 rounded-lg font-size-h6\" type=\"email\" placeholder=\"Email\" name=\"email\" autocomplete=\"off\"></div><!--end::Form group--><!--begin::Form group--><div class=\"form-group d-flex flex-wrap pb-lg-0\"><button type=\"button\" id=\"kt_login_forgot_submit\" class=\"btn btn-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 btn-block btn-submit\">Submit\r</button> <button type=\"button\" id=\"kt_login_forgot_cancel\" class=\"btn btn-light-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 btn-block btn-cancel\">Cancel\r</button></div><!--end::Form group--></form>") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<form class=\"form\" novalidate=\"novalidate\" id=\"kt_login_forgot_form\"><!--begin::Title--><div class=\"d-flex justify-content-center mb-5\"><img src=\"/asset-corporate-portal/media/logo/logo.png\" alt=\"\" style=\"height: 103px\"></div><div class=\"pb-13 pt-lg-0 pt-5\"><h3 class=\"font-weight-bolder text-dark font-size-h4 font-size-h1-lg\">Forgotten Password ?\r</h3><p class=\"text-muted font-weight-bold font-size-h4\">Enter your email to reset your password\r</p></div><!--end::Title--><!--begin::Form group--><div class=\"form-group\"><input class=\"form-control form-control-solid h-auto py-7 px-6 rounded-lg font-size-h6\" type=\"email\" placeholder=\"Email\" name=\"email\" autocomplete=\"off\"></div><!--end::Form group--><!--begin::Form group--><div class=\"form-group d-flex flex-wrap pb-lg-0\"><button type=\"button\" id=\"kt_login_forgot_submit\" class=\"btn btn-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 btn-block btn-submit\">Submit\r</button> <button type=\"button\" id=\"kt_login_forgot_cancel\" class=\"btn btn-light-primary font-weight-bolder font-size-h6 px-8 py-4 my-3 btn-block btn-cancel\">Cancel\r</button></div><!--end::Form group--></form>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/views/under_development/under_development.templ b/views/under_development/under_development.templ index 86d05f0..f3d1b3b 100644 --- a/views/under_development/under_development.templ +++ b/views/under_development/under_development.templ @@ -8,7 +8,7 @@ templ UnderDevelopment() { </div> <div> <img - src="../asset-corporate-portal/media/under_development/under_development.png" + src="/asset-corporate-portal/media/under_development/under_development.png" class="img-fluid" alt="Your Brand" /> diff --git a/views/under_development/under_development_templ.go b/views/under_development/under_development_templ.go index fc9f8f5..b43e4d9 100644 --- a/views/under_development/under_development_templ.go +++ b/views/under_development/under_development_templ.go @@ -23,7 +23,7 @@ func UnderDevelopment() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"d-flex justify-content-center text-center flex-column mt-20\"><div class=\"text-primary underdev\">Site Under Development</div><div class=\"text-disabled underdevsub mb-10\">\"Stay Tuned, We're Building Excitement!\"\r</div><div><img src=\"../asset-corporate-portal/media/under_development/under_development.png\" class=\"img-fluid\" alt=\"Your Brand\"></div></div>") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"d-flex justify-content-center text-center flex-column mt-20\"><div class=\"text-primary underdev\">Site Under Development</div><div class=\"text-disabled underdevsub mb-10\">\"Stay Tuned, We're Building Excitement!\"\r</div><div><img src=\"/asset-corporate-portal/media/under_development/under_development.png\" class=\"img-fluid\" alt=\"Your Brand\"></div></div>") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }