GithubHelp home page GithubHelp logo

Comments (16)

Mister-Hope avatar Mister-Hope commented on May 5, 2024 1

Could you please clear the cache and try again?

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024 1

but the template runs well, see https://github.com/Mister-Hope/vuepress-theme-hope-template/runs/1238745335 for action log.

The sitemap successfully generated in https://mister-hope.github.io/vuepress-theme-hope-template/sitemap.xml

And my theme docs runs well too.

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024 1

I tried, but I really cannot reproduce this "bug or maybe not"

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024 1

Hi, can you help with your language support? 😄

https://github.com/Mister-Hope/vuepress-theme-hope/blob/master/packages/shared-utils/lib/i18n/config.ts

from vuepress-theme-hope.

ItsBioDude avatar ItsBioDude commented on May 5, 2024

Doesn't help. I've tried vuepress build src --no-cache but still doesn't work

image

The failed job is for meilisearch so ignore it

from vuepress-theme-hope.

ItsBioDude avatar ItsBioDude commented on May 5, 2024

I have tried gitlab as well https://loctran016.gitlab.io/present/ but doesn't work. Here is my config

const resolve = require("vuepress-theme-hope/resolve");

module.exports = resolve({
  plugins: [
    'reading-progress',
    'cat-model',
    ["add-this",
      {
        pubid: "ra-5f78a77a86505c7f",
      },
    ],
    ['@vuepress-reco/bgm-player',
    {
      audios: [
        {
          name: 'Doraemon No Uta',
          artist: 'KUMIKO OUSUGI',
          url: 'https://loctran016.gitlab.io/present/music.mp3',
          cover: 'https://loctran016.gitlab.io/present/avatar.png',
        },
      ]  
    }],
  ],
  title: "Presentation",
  description: "Các bài thuyết trình của Trần Tấn Lộc",
  evergreen: true,

  headOption: {
    icon: "/favicon.ico",
    pwa: {
      manifest: "/manifest.json",
      themeColor: "#46bd87",
      appleStatusBarColor: "black",
      appleIcon: "/icon/appleIcon152.png",
      msTileImage: "/icon/msIcon144.png",
      msTileColor: "#ffffff",
    },
  },
  head: [
    ["link",
      {
        rel: "mask-icon",
        href: "/icons/safari-pinned-tab.svg",
        color: "#46bd87",
      },],
      [ "script", { src: "https://kit.fontawesome.com/9a2024a1f9.js", crossorigin: "anonymous"},],
  ],

  base: "/present/",
  search: false,

  themeConfig: {
    baseLang: 'en-US',
    logo: "/avatar.png",
    iconPrefix: "",
    nav: [
      {
        text: 'Cat',
        link: '/category/',
        icon: 'fas fa-th-large'
      },
      {
        text: 'Tags',
        link: '/tag/',
        icon: 'fas fa-tag'
      },
      {
        text: 'Contact',
        ariaLabel: 'Language Menu',
        icon: 'fas fa-user-circle',
        items: [
          {
            text: 'About Us',
            link: '/about/intro',
            icon: 'fas fa-address-book'
          },
          {
            text: 'GitLab',
            link: 'https://gitlab.com/LocTran016',
            icon: 'fab fa-gitlab',
          },
          {
            text: 'Github',
            link: 'https://github.com/LocTran016',
            icon: 'fab fa-github-alt'
          },
          {
            text: 'BitBucket',
            link: 'https://bitbucket.org/LocTran016/',
            icon: 'fab fa-bitbucket'
          },
          {
            text: 'Facebook',
            link: 'https://www.facebook.com/loctran016',
            icon: 'fab fa-facebook'
          },
          {
            text: 'Instagram',
            link: 'https://www.instagram.com/loctran016/',
            icon: 'fab fa-instagram'
          },
          {
            text: 'Reddit',
            link: 'https://www.reddit.com/user/Larrytran016',
            icon: 'fab fa-reddit'
          },
          {
            text: 'Twitter',
            link: 'https://twitter.com/TrnTnLc04864603',
            icon: 'fab fa-twitter'
          },
          {
            text: 'Gmail',
            link: 'mailto:[email protected]',
            icon: 'far fa-envelope'
          },
        ]
      },
      {
          text: 'TimeLine',
          link: '/timeline/',
          icon: 'fas fa-history fa-spin'
      },],

    author: "LocTran016",

    blog: {
      avatar: "/avatar.png",
      intro: "/misc/about/",
      sidebarDisplay: "mobile",
      links: {
    },

    seo:{
      twitterID: "https://twitter.com/TrnTnLc04864603"
    },
    markdown: {
      enableAll: true,
    },

    comment: {
      type: "vssue",
      platform: "gitlab",
      owner: "LocTran016",
      repo: "present",
      clientId: "396e9e1a6cfa32611e7710f8676a288c034a3eb2c85836b7e08eed2389ea0a78",
      autoCreateIssue: true,
    },

    copyright: {
      status: "global",
    },
    footer: {
      display: true,
      copyright: true,
    },

    hostname: "https://loctran016.github.io/present/",
  },},
});

from vuepress-theme-hope.

ItsBioDude avatar ItsBioDude commented on May 5, 2024

Well, I have found that the add this, comment(vssue) and sitemap are not working. This is quite strange because I have set all of them correctly (I have used the copy button to get clientID so no way it will be wrong, all others are set correctly as well.

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024

Perhaps vssue access hostname when in use then clear the value. I will have a look later.

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024

I clone the vssue repo, and I didnot found any problems.
image
I don't think there are issues in my code. Maybe you can come to Vssue for help.

By the way, do you find out why gitlab is not working?

from vuepress-theme-hope.

ItsBioDude avatar ItsBioDude commented on May 5, 2024

No, For the vssue, it used to working on my another site (different clienID) mean there isn't any problem with vssue. Don't know why there isn't anything wrong with your code and my config, but add this, vssue, sitemap still doesn't working which is really strange. For sharethis, it only working in dev mode (the web opened in the left)

image

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024

No, For the vssue, it used to working on my another site (different clienID) mean there isn't any problem with vssue. Don't know why there isn't anything wrong with your code and my config, but add this, vssue, sitemap still doesn't working which is really strange. For sharethis, it only working in dev mode (the web opened in the left)

image

Sharethis request is blocked by the browser, because github and gitlab will refuse some Cross site Request by setting request headers. They are doing this to prevent from cross site attacks.

image

Front end cannot set the request headers. To let this work, maybe you should deploy it on your own server with addtional back end support.

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024

It do seems that vssue is imcopatable with my theme. But there are not bugs in my code, and I do not have time to read through vssue repo to found out what's wrong. So I suggest using valine instead of vssue. Feel free to open new issues if you found new problems.

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024

By the way, if you want to learn more about add-this plugin problems, search "Cross-domain Request" and “Same-origin Policy” “CSRF” to make a simple view. Then you can understand what's CORS and why this CORS is blocked.

In other words, add-this is incopatable with Github Pages, Gitlab Pages or other static page services because most(I think is all) of their CORS settings will block some request made by add-this script.

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024

I will evel the code as a work around.

from vuepress-theme-hope.

Mister-Hope avatar Mister-Hope commented on May 5, 2024

1.0.0-0 has release and fixed add-this plugin.

from vuepress-theme-hope.

ItsBioDude avatar ItsBioDude commented on May 5, 2024

Yes, I will

from vuepress-theme-hope.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.