Giter Site home page Giter Site logo

GitHub API V3/V4 issues track about vssue HOT 19 OPEN

meteorlxy avatar meteorlxy commented on May 27, 2024
GitHub API V3/V4 issues track

from vssue.

Comments (19)

syhyz1990 avatar syhyz1990 commented on May 27, 2024

vuepress 插件 设置为github-v4时 , 模板指定issueId

会返回错误 无法将值“ 270”强制转换为Int

image

from vssue.

meteorlxy avatar meteorlxy commented on May 27, 2024

@syhyz1990

// wrong
<Vssue issue-id="270" />

// correct
<Vssue :issue-id="270" />

from vssue.

DynamicLoader avatar DynamicLoader commented on May 27, 2024

I found a way to use github app with API v4 instead of using github oauth app with API v3.Just need to create a new github app,and give it issue R/W permission,and use vssue.github-v4.js instead of vssue-github.js.

from vssue.

meteorlxy avatar meteorlxy commented on May 27, 2024

@Lucy2003 Sounds cool! I'll take a look

from vssue.

DynamicLoader avatar DynamicLoader commented on May 27, 2024

packages@vssue\api-github-v4\src\index.ts

Github API v4版本的请求头accept是否应改为 'application/vnd.github.v4+json' ?

还是说,由于要用一部分API v3的功能,所以要用 'application/vnd.github.v3+json' ?

from vssue.

meteorlxy avatar meteorlxy commented on May 27, 2024

还是说,由于要用一部分API v3的功能,所以要用 'application/vnd.github.v3+json' ?

后者

from vssue.

RehanSaeed avatar RehanSaeed commented on May 27, 2024

Any progress on reducing the amount of permissions required?

from vssue.

realpdai avatar realpdai commented on May 27, 2024

@meteorlxy

Vssue 不支持IE 11,可以看所有vssue demo页面在IE下的表现,需要考虑下兼容性问题。

from vssue.

meteorlxy avatar meteorlxy commented on May 27, 2024

@realpdai 你说的可能是 vuepress 在 ie11 的兼容问题?

from vssue.

realpdai avatar realpdai commented on May 27, 2024

@realpdai 你说的可能是 vuepress 在 ie11 的兼容问题?

是的,可以看下你所有demo页面 https://vssue.js.org/zh/demo/github-v4.html, 在IE11下都无法正常显示。也可以看下https://www.pdai.tech。 看似因为ts转换引起的吧

from vssue.

meteorlxy avatar meteorlxy commented on May 27, 2024

@realpdai 这个是 vuepress 的问题,下个版本会修复

vuejs/vuepress@69c193a

from vssue.

realpdai avatar realpdai commented on May 27, 2024

@realpdai 这个是 vuepress 的问题,下个版本会修复

vuejs/vuepress@69c193a

Greate, thx, 坐等出修复后的版本。

from vssue.

meteorlxy avatar meteorlxy commented on May 27, 2024

所以其实和 vssue 没啥关系,你要急着用的话手动引用 ployfill 的版本

from vssue.

realpdai avatar realpdai commented on May 27, 2024

所以其实和 vssue 没啥关系,你要急着用的话手动引用 ployfill 的版本

秒回够赞,暂时还没那么急,我就不引babel-polyfill了,等你出新版本,O(∩_∩)O

from vssue.

realpdai avatar realpdai commented on May 27, 2024

@meteorlxy

Hi, 我注意到vuepress v1.5.0 已经修复了ployfill (https://github.com/vuejs/vuepress/releases/tag/v1.5.0), 但是使用了Vssue插件的vuepress网站依然存在问题(在IE 9/IE 11/edge下报错)。

经测试,删除vssue插件后IE下能正常打开。楼主是否可以将vssue插件的Demo页面升级至最新的vuepress v1.5.0,看下是否兼容IE。

thx.

from vssue.

meteorlxy avatar meteorlxy commented on May 27, 2024

@realpdai 已更新,看起来没啥问题

image

from vssue.

realpdai avatar realpdai commented on May 27, 2024

@realpdai 已更新,看起来没啥问题

感谢回复,我明天看下公司电脑上IE的显示vssue demo页的显示状况及其版本。

from vssue.

realpdai avatar realpdai commented on May 27, 2024

@meteorlxy

多次测试,还是发现报错:

环境信息:

System:
    OS: Windows 10 10.0.14393
    CPU: (8) x64 Intel(R) Core(TM) i7-6700T CPU @ 2.80GHz
  Binaries:
    Node: 12.9.1 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 6.10.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: 38.14393.2068.0
  npmPackages:
    @vuepress/core:  1.5.0
    @vuepress/theme-default:  1.5.0
    vuepress: ^1.5.0 => 1.5.0

引用最基本vuepress+vssue(都采用最简默认配置排除干扰)

  "devDependencies": {
    "@vuepress/plugin-back-to-top": "^1.5.0",
    "@vuepress/plugin-medium-zoom": "^1.5.0",
    "vuepress": "^1.5.0",
    "webpack-dev-server": "^3.11.0"
  },
  "dependencies": {
    "@vssue/api-github-v4": "^1.4.0",
    "@vssue/vuepress-plugin-vssue": "^1.4.4"
  }

错误信息:

SCRIPT1005: Expected '(' 链接到如下:

this.vssue.API.platform.meta.reactable&&this.comment.reactions&&!this.editMode)}get reactionKeys(){return["heart","like","unlike"]}get editContentRows(){return this.editContent.split("\n").length-1}get editInputRows(){return this.editContentRows<3?5:this.editContentRows+2}async postReaction({reaction:t}){try{if(this.creatingReactions.includes(t))return;this.creatingReactions.push(t),await this.vssue.postCommentReaction({commentId:this.comment.id,reaction:t})||this.vssue.$emit("error",new Error(this.vssue.$t("reactionGiven",

另外一些表象:

  • 测试是在仅保留 vssue+vuepress下进行vuepress build 编译的内容后放置web container运行。
  • CentOS环境下编译了,同样的错误
  • IE 测试了Edge和IE11都有同样错误
  • 删除vssue后,错误消失
  • v3, v4都测试了,同样的错误
  • 除了IE浏览器下,其它浏览器正常
  • IE打开vssue demo页面,正常

from vssue.

meteorlxy avatar meteorlxy commented on May 27, 2024

@realpdai vuejs/vuepress#2031

另外这个 issue 只是为了记录已知的 github 平台问题,不要在这里反馈新的问题。

from vssue.

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.