No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. ghada
    3. Topics
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 19
    • Best 2
    • Groups 0

    Topics created by ghada

    • G

      change meta tags dynamically from index.html
      Help • • ghada

      8
      0
      Votes
      8
      Posts
      1133
      Views

      G

      I followed this tutorial https://hackernoon.com/firebase-to-the-rescue-dynamic-routing-via-hosting-functions-integration-aef888ddf311
      and I put this snipit of code in the index.js in my backend folder.
      when I share through twitter for example It never shows the image in the index.html but also it never shares the image specified in this function although when I go to the link specified the tweet It shows the updated meta but a blank page!!!
      does this means I need to use firebase ssr???

      function buildHtmlWithArticle (article) {
      const string = ‘<!DOCTYPE html>\n’+
      ‘<html lang=“en” translate=“yes”> \n’+
      ‘<head> \n’+
      ‘<meta charset=“utf-8” /> \n’ +
      ‘<meta http-equiv=“X-UA-Compatible” content=“IE=edge” /> \n’+
      ‘<meta name=“viewport” content=“width=device-width,initial-scale=1.0” /> \n’ +
      ‘<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” /> \n’+
      ‘<meta http-equiv=“Content-Type” content=“text/html; charset=ISO-8859-1” /> \n’+

      ‘<meta NAME=“geo.position” CONTENT=“latitude; longitude”> \n’+
      ‘<meta NAME=“geo.placename” CONTENT=“Place Name”> \n’+
      ‘<meta NAME=“geo.region” CONTENT=“Country Subdivision Code”></meta> \n’+
      ‘<meta http-equiv=“Cache-control” content=“public”> \n’+

      '<title>' + article.title + '</title>\n' + '<meta property="og:title" content="' + article.title + '"> \n' + '<meta property="og:image" content="' + article.image + '"> \n' + '<meta property="twitter:title" content="' + article.title + '"> \n'+ '<meta property="twitter:image" name="twitter:image" content="' + article.image +'" > \n' + '</head> \n'+ '<body> \n'+ '<noscript> \n'+ '<div id="app"></div> \n'+

      ‘</body> \n’+
      ‘</html>’

      return string;
      }
      exports.article = functions.https.onRequest( async (req, res) => {
      console.log(‘in article function’)
      console.log(‘path in req’,req.path)
      const path = req.path.split(’/’);
      console.log(‘path’,path)
      const articleId = path[2];

      const article = await admin
      .firestore()
      .doc(article/${articleId})
      .get()
      const item = Object.assign({}, article.data(), {
      id: article.uri,
      });
      const htmlString = buildHtmlWithArticle(item);
      console.log(‘html string’,htmlString)
      res.status(200).end(htmlString);

      });

    • G

      higri/islamic calendar
      Help • • ghada

      2
      0
      Votes
      2
      Posts
      72
      Views

      Hawkeye64

      @ghada I think this is what you want

      calendar="persian"
    • G

      q-uploader : change its form
      Help • • ghada

      1
      0
      Votes
      1
      Posts
      73
      Views

      No one has replied

    • G

      border color of q-input out of focus
      Help • • ghada

      1
      0
      Votes
      1
      Posts
      112
      Views

      No one has replied

    • G

      q-table loop through columns
      Help • • ghada

      9
      0
      Votes
      9
      Posts
      825
      Views

      G

      thanks guys for the help, I implemented each type of tables separately as you said

    • G

      QTimeline
      Framework • • ghada

      3
      0
      Votes
      3
      Posts
      93
      Views

      G

      thank you it worked !!