Posts by LeonardoEbert • 1,156 points
73 posts
-
0
votes1
answer256
viewsQ: Dynamic friendly URL . htaccess
I currently have the following rule in . htaccess: RewriteRule ^fale-conosco/?$ view/fale_conosco.php [NC,L] And I would like it to be possible to inform a friendly URL after contacting us/.…
-
1
votes0
answers60
viewsQ: Determine Bootstrap column width when detecting overflow in div
Currently the distribution of Boostrap columns is fixed in size 2, example: col-lg-2, but inside that column is a <ul> with several <li>, and when overflow occurs to <ul> is…
-
1
votes1
answer212
viewsA: Error connecting to Mysql with PHP and Docker
I was able to solve the problem by climbing a Mariadb container along with the other containers I was already using and I used the Portainer tool to manage the containers and see which ip’s and…
-
2
votes1
answer156
viewsQ: Configure CSS to generate a new column when overflow is reached
I am generating a list of links dynamically using PHP, but this list is very large and I would like when it reaches a certain height in px the column is broken in 2, 3, or as many as necessary. Ex.:…
-
0
votes1
answer212
viewsQ: Error connecting to Mysql with PHP and Docker
I am running the Docker and in the settings step correctly the credentials for the connection to Mysql(Mariadb), but always returns the following error:…
-
0
votes1
answer149
viewsA: PWA Installation Banner Configurations
I’ve already found the solution to what I needed. The banner is only shown once, if the user does not install the app the banner will only be shown again when(and if) the user clears the browser…
-
1
votes1
answer149
viewsQ: PWA Installation Banner Configurations
I have a PWA that was developed using Vuejs and would like to know if it is possible to display the installation banner more than once, because currently it only questions once if the user wants to…
-
0
votes0
answers54
viewsQ: Ajax request does not reach the server when the body is too large
In an ajax call I make to the server in a report generation function I am finding a situation. When in the request body I send a small array, with 20 positions everything happens normally, but when…
-
0
votes1
answer226
viewsQ: Vue-router replace not working?
I am developing a PWA and I am having problems with the router, because when I use the back button of my smartphone it goes through all the previously visited routes only to after exit the…
-
0
votes1
answer149
viewsQ: Scope of service-worker?
I am working on a PWA and would like to know if the scope or directory where the service-worker file is located can interfere, such as in push notifications. A file that is inside /statics/sw.js…
-
0
votes1
answer126
viewsQ: Clear history of`-router`when loading main menu
In a PWA I’m using Vuejs and I’m having problems with the back button of the smartphone, because when I use it the PWA does what is most logical and back to the previous screen. But I just log in to…
-
1
votes1
answer546
viewsQ: Push notifications on Android with PWA
I have a PWA(Progressive Web Application) that was created using Vuejs in conjunction with a web system. And for push notifications was used Firebase Cloud Messaging, but I have a problem when it…
-
0
votes0
answers65
viewsQ: PWA works correctly on the browser but doesn’t work properly on the smartphone?
I did a PWA and performed all the tests in the browser and everything came out as expected, but when I do the test on my smartphone it does not ask permission to send notifications and also does not…
-
0
votes1
answer57
viewsQ: Error of Keys Firebase
I’m doing a PWA using Vue and Quasar, but when I make a request in Postman to appear a push notification I have the following return in Postman: { "multicast_id": idMulticast, //removido por mim ao…
-
0
votes0
answers54
viewsQ: Perform the hook 'beforeUpdate' only once in Vuejs
I got a code pad inside the hook beforeUpdate() of the Vue instance, and it is running several times in a row. My question is: It’s normal to hook beforeUpdate() be called several times?? If not,…
-
0
votes1
answer1119
viewsQ: Convert numeric value to javascript string
I am creating a receipt layout and I need the value of the receipt to be detailed in full in the body of the receipt, for example: Transform R$ 45,51 in Forty-five reais and fifty-one cents. Is…
-
0
votes1
answer845
viewsQ: Copy text to clipboard using Vuejs?
On the return of a request is coming the digitable line of a boleto and assign this digitable line to a variable, but what I want to do now is copy this digitable line to the clipboard, so that the…
-
2
votes1
answer5206
viewsQ: Remove simple javascript quotes
I need to remove simple quotes from a string, I’ve tried string.replace(/\'/g, ''), .replace(/"'"/g, '') and it doesn’t work, someone can help me?
-
0
votes3
answers1610
viewsQ: Concatenate single quotes into date variable?
I have an application in Vuejs and need to concatenate simple quotes in a variable that has a date like this 2017-11-09T02:00:00.000Z . I tried it this way and I didn’t succeed: var novaData = "'" +…
-
1
votes2
answers2359
viewsQ: Avoid form Ubmit by pressing the Enter key
I have a input in the Vuejs that is inside a form and when I press enter I don’t want the form is submitted. Together with Vuejs I am using Quasar and I was able to assign the function call only in…
-
5
votes1
answer149
viewsQ: Configure HTML variable inside Nodemailer html
I need to send an email using Nodemailer, and I need to send email with html, but I’m not able to set the variables directly inside the email HTML, I’ve tried the replace() and did not succeed.…
-
2
votes2
answers4055
viewsQ: What’s the best way to save an image on Mongodb?
I am developing a JS system with Node server and need to save images in Mongodb in a way that saves as much space as possible, and I am currently converting the image to String Base64 and saving as…
-
0
votes1
answer1042
viewsQ: Transforming string in time in Javascript
I am developing an application in Vuejs and on a screen I have two input’s of hour and are being saved in Mongodb as String. However the input only accepts in the time format and when I click on the…
-
1
votes0
answers470
viewsQ: How to limit the upload of an image through its size in pixels?
I’m making an application with Vuejs and I have an image upload input and I want to set an image size limit for upload, not in KB or MB, but rather based on your pixels I mean, only allow the upload…
-
0
votes0
answers222
viewsQ: Transfer (paste) files from the clipboard to a file input?
I got the following input archival: <input class="botao" @change="carregarFoto" type="file" name="photo" accept="image/*"> <img :src="foto" style="width:192px;height:108px;" />…
-
4
votes2
answers3068
viewsQ: Convert image to Base64 using Vuejs?
I have a <input type="file /> in Vuejs and when I select an image I want it to be converted into base64, because I will save the images in the database only in base64. What would be the method…
-
2
votes1
answer596
viewsQ: Browse all properties of a Vuejs object
I am using Vuejs in a project and need to go through all the properties of the object associated with v-model. I know that if it was an array I could use u for, foreach, map and many other means of…
-
0
votes1
answer123
viewsA: Error in Mongodb/Mongoose?
The problem has been solved. What happened was the following: the person who had the DB on her machine gave a commit on the server files, and for it was configured to try to access the Mongo on ip…
-
0
votes1
answer123
viewsQ: Error in Mongodb/Mongoose?
I am trying to start my server, however while trying to start it accuses error in Mongodb, and I have been for hours looking for the solution to this problem and so far found nothing. What’s even…
-
3
votes2
answers668
viewsQ: String64 for image in Vuejs
I am receiving a database coded string 64 from the database and I want it to render as an image on the screen, my question is: Just set up the :src= with the variable that contains the string Base64…
-
1
votes2
answers126
viewsQ: Take over positions of an array after comparison with another array?
I have a function (in Javascript) that compares 2 arrays: let diferencas = []; let numD = 0; for (let a = 0; a < dados.length; a++) { if (dados[a].idEmail === results[a].idEmail) {…
-
2
votes3
answers8565
viewsQ: Compare 2 arrays and save the difference between them in the database?
I have 2 object arrays, one of them is composed of emails that comes from the provider through IMAP protocol and I convert to objects and then put in an array all of it. The other is an array of…
-
0
votes1
answer578
viewsQ: Compare two object arrays?
I need to compare 2 arrays in Javascript, one that returns from a Mongodb query and the other comes from the email provider. The two comparison criteria are the email ID and the box to which it…
-
2
votes0
answers210
viewsQ: Upload multiple files using the same request?
I am using the Vuejs/Quasar Framework to do the front end of my application and Hapijs to do the server. And in the uploading part of the attachments I’m running a test with uploading multiple…
-
0
votes1
answer69
viewsQ: Send email after upload is complete?
I have the following function for sending emails using the nodemailer and a Hapijs server: let data = request.payload; if (data.file) { let name = data.file.hapi.filename; let caminho = __dirname +…
-
2
votes0
answers164
viewsQ: Pick up file path after upload?
I am making an email application using Vuejs and I am in the attachments part, and I want to get the file path because only it is enough for me to send the attachment using nodemailer. Is there any…
-
1
votes0
answers215
viewsQ: Attach file in email application?
I am developing an email application and the front end is being done in Vuejs/Quasar Framework and the server is being developed with Hapijs. I’ve managed to send simple emails using Nodemailer and…
-
2
votes2
answers127
viewsQ: Pick specific characters from a string?
I’m getting the following Javascript string: Nome Sobrenome <[email protected]> How do I pick up only the email inside <>??
-
-1
votes1
answer69
viewsQ: Detect id of an DOM element?
I am developing an application in Vuejs/Quasar and need to discover the id of a certain element using the getElementById, how do I do it in Vuejs??
-
6
votes1
answer735
viewsQ: How to turn an asynchronous function into synchronous?
I have an asynchronous function and I would like it to become synchronous, because being asynchronous she is sending the data to the client before even completing the necessary steps, follows code:…
-
4
votes2
answers1212
viewsQ: Check out of Base64?
I’m making an email application (Hapijs) and found that some emails have his text encoded for Base64, but others do not. In this application I will need to receive emails from all services (Gmail,…
-
0
votes1
answer129
viewsQ: How to turn email object into Stream, Buffer or String?
I’m making an email application and my server is being made in Hapijs, and I’m having trouble taking the email and turning it into a String, Buffer or Stream. I want to turn to these formats because…
-
1
votes1
answer154
viewsA: Convert Response date from HTML to PDF
I recommend the library Pdfkit, it makes the "conversion" from HTML to PDF, already used and is very good
-
1
votes1
answer594
viewsQ: Redirect after receiving Replay from server?
I have an application that the front end is Vuejs/Quasar and the server is hapiJS. I am working on the login part and would like to know how to redirect the page after receiving confirmation from…
-
-1
votes1
answer56
viewsQ: Change view when clicking on another item?
I’m making an email application and I want when I click the email being viewed to change. What I want to happen is: I want to apply the same function in both parts. As for clicking on the email, if…
-
1
votes1
answer67
viewsQ: Session library for Nodejs/Hapijs?
I’m making an email application and I got to the part where I need to do the session and login part, but I’ve never done this before, I’m using Hapijs as a server and I’d like to know which are the…
-
2
votes1
answer1087
viewsQ: How to verify if a String is encoded in Base64?
I am working on an email application using Vuejs/Quasar on the client and Hapijs on the server, and some emails (depends on the sender) comes with the text encoded in Base64, and others not. Here…
-
2
votes1
answer941
viewsQ: Change page content when clicking on link in Vuejs
I have an email application and I have a side menu with all the mailboxes that will be available to the user. Here’s a screenshot: What I want to do is: Each time I select (click) an item from that…
-
4
votes2
answers481
viewsQ: Push() does not work in Vuejs?
I need to push() the data of Vuejs and make it add another object in the object array it has there. But when I click on the button I programmed for you to push() it just doesn’t. Follows code:…
-
2
votes1
answer85
viewsQ: Convert a stream to string?
I’m taking emails from the inbox of an account I created for testing, I’m tracking them with the Node-imap and parse them with the Mailparser and I am able to recover most of the information I need,…