Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.1.0版本使用说明 #1

Open
idoubi opened this issue Mar 1, 2020 · 0 comments
Open

v0.1.0版本使用说明 #1

idoubi opened this issue Mar 1, 2020 · 0 comments

Comments

@idoubi
Copy link
Owner

idoubi commented Mar 1, 2020

  1. 生成github access token
    https://github.com/settings/tokens/new

  2. 新增一个html页面
    touch feedback.html

  3. 填入要展示的github项目信息

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Product's feedback page</title>
  </head>

  <body>
    <div id="feesue-container"></div>

    <script src="path-to/dist/feesue.min.js"></script>
    <script>
      var feesue = new Feesue({
        token: "[github personal access token]",
        owner: "[github owner]",
        repo: "[github repository]",
        state: "[state of issues]",
        labels: "[labels of issues]",
        direction: "[sort direction, asc or desc]",
        sort: "[sort field, updated_at/created_at/comments eg.]",
        theme_color: "[theme color like #08a5e0]",
        per_page: 20,
        product: {
          name: "[name of product]",
          intro: "[intro of product]",
          logo: "[logo of product]",
          github_url: "[github url of product]",
          github_title: "[text in github button]",
          home_url: "[home url of product]",
          home_title: "[text in home button]",
          comments_title: "[title of comments area]"
        }
      });

      feesue.render("feesue-container");
    </script>
  </body>
</html>
  1. 访问页面 path-to/feedback.html
@idoubi idoubi changed the title v0.1.0版本功能说明 v0.1.0版本使用说明 Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant