Posts

Showing posts from December, 2022

filter data in type script search function

< template >   < Div >     < input       type = "text"       v-model ="searchquery"       @ input ="filtereddata()"       placeholder = "Search title.."     />     < div v-if ="checkpw" class = "card" >       < div class = "card-header" >         < span class = "h3 text-primary mt-4" > Production Files </ span >       </ div >       < ul         class = "list-group list-group-flush"         v-for ="(value, index) in urls"         : key ="index"       >         < li class = "list-group-item h5" >           < i class = "bi bi-file-earmark-zip-fill text-primary h3 mx-2" ></ i >           < span > {{ value ...

get urls data and split in the diffrent parts to get endpoint of file name given in last of url and show it .. by put in new array or variable by using -1

 <template>   <div class="card" v-if="checkpw">     <div class="card-header">       <span class="h3 text-primary mt-4">Production Script Files</span>     </div>     <ul class="list-group list-group-flush" v-for="(value, index) in urls" :key="index">       <li class="list-group-item h5">         <i class="bi bi-file-earmark-zip-fill text-primary h3 mx-2"></i>        <span> {{ value }} </span>       <a :href="`https://production.brighterbins.com/production/download/${value}`" class="btn btn-primary px-3 py-2" download>Download </a>        </li>     </ul>       <!-- @click="psFileDownload(value)" -->   </div>   <div v-if="errormsg" class="text-danger">     <h5 class="pt-5 pt-5 text-d...