PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / trunk
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler vtrunk
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
fluent-cart / assets / chunks / NotFound.js

NotFound.js in FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler trunk, at assets/chunks/NotFound.js

2 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{_ as g}from"./DynamicIcon.js?ver=1.6.6";import{e as p,d as a,c as b,b as v,m as k,t as s,w as c,n as S,r as l,o as u,a as _,i as h,M as x,h as T,u as L,f as q}from"./vue.esm-bundler.js?ver=1.6.6";import{_ as B}from"./_plugin-vue_export-helper.js?ver=1.6.6";import{A as N}from"./Asset.js?ver=1.6.6";import{t as r}from"./Translator.js?ver=1.6.6";import{a as w,u as C}from"./vue-router.js?ver=1.6.6";const D={name:"LabelHint",components:{DynamicIcon:g},props:{title:String,content:{type:String,default:null},placement:String,required:{type:Boolean,default:!1},hideAfter:{type:Number,default:0}}},I={class:"label"},A=["innerHTML"];function H(n,o,e,t,i,d){const f=l("DynamicIcon"),m=l("el-tooltip");return u(),p("span",{class:S(`fct-label-hint ${e.required?"is-required":""}`)},[a("span",I,s(e.title),1),e.content?(u(),b(m,{key:0,effect:"dark",placement:e.placement?e.placement:"top","popper-class":"fct-label-hint-popover fct-tooltip","show-after":400,"hide-after":e.hideAfter},{content:c(()=>[a("div",{innerHTML:e.content},null,8,A)]),default:c(()=>[_(f,{name:"InformationFill"})]),_:1},8,["placement","hide-after"])):v("",!0),k(n.$slots,"default")],2)}const O=B(D,[["render",H]]);function P(){h(()=>{document.addEventListener("keydown",o)}),x(()=>{document.removeEventListener("keydown",o)});let n;function o(t){(t.ctrlKey||t.metaKey)&&!t.shiftKey&&t.keyCode===83&&(t.preventDefault(),typeof n=="function"&&n())}function e(t){n=t}return{onSave:e}}const M={class:"fct-not-found-page"},V={class:"fct-not-found-page-inner"},E=["src"],j={__name:"NotFound",props:{buttonText:{type:String,default:r("Back to Dashboard")},route:{type:String,default:"/"},message:{type:String,default:r("Oops! That page can't be found.")}},setup(n){const o=n,e=T({}),t=w(),i=C();h(()=>{e.value={buttonText:t.query.buttonText||o.buttonText,route:t.query.route||o.route,message:t.query.message||o.message},i.replace({query:{}})});const d=()=>N.getUrl("images/404.svg");return(f,m)=>{const y=l("el-button");return u(),p("div",M,[a("div",V,[a("img",{src:d(),alt:"404"},null,8,E),a("div",null,[a("h5",null,s(e.value.message),1),a("p",null,s(L(r)("Please check the URL and try again, or use the search bar to find what you need.")),1),_(y,{tag:"router-link",type:"primary",to:e.value.route},{default:c(()=>[q(s(e.value.buttonText),1)]),_:1},8,["to"])])])])}}};export{O as L,j as _,P as u};
2