GithubHelp home page GithubHelp logo

gitlab-stats-for-scribtable's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gitlab-stats-for-scribtable's Issues

Set private token as header and not as query parameter

Awesome work!

let resp = await new Request(
`${GITLAB_URL}/api/v4/issues?state=opened&scope=assigned_to_me&private_token=${ACCESS_TOKEN}`
).loadJSON();
const assignedIssueCount = resp.length;
resp = await new Request(`${GITLAB_URL}/api/v4/todos?private_token=${ACCESS_TOKEN}`).loadJSON();
const todoCount = resp.length;
resp = await new Request(
`${GITLAB_URL}/api/v4/merge_requests?scope=assigned_to_me&state=opened&private_token=${ACCESS_TOKEN}`
).loadJSON();
const assingedMrCount = resp.length;
const formatter = new DateFormatter();
formatter.dateFormat = 'yyyy-MM-dd';
const yesterday = formatter.string(new Date(Date.now() - 864e5));
resp = await new Request(
`${GITLAB_URL}/api/v4/users/${USERNAME}/events?after=${yesterday}&private_token=${ACCESS_TOKEN}`
).loadJSON();
const contribCount = resp.length;

Setting the private token as query parameter is discouraged and it should be rather set as a header, which this framework seems to support: https://docs.scriptable.app/request/#headers / https://docs.gitlab.com/ee/api/#personalproject-access-tokens

See also https://tools.ietf.org/html/rfc6750#section-5.3

Don't pass bearer tokens in page URLs: Bearer tokens SHOULD NOT be
passed in page URLs (for example, as query string parameters).
Instead, bearer tokens SHOULD be passed in HTTP message headers or
message bodies for which confidentiality measures are taken.
Browsers, web servers, and other software may not adequately
secure URLs in the browser history, web server logs, and other
data structures. If bearer tokens are passed in page URLs,
attackers might be able to steal them from the history data, logs,
or other unsecured locations.

How to change Icons

Hello @p0fi,

i just checked your code because i want to build something similar for GitHub.

My Question is how did you insert the Images Properly?

I didn't find any good documentation for that. Did you just encode the url to the Icons? I tried do decode these Base64 String and thougt maybe you store the pictures anywhere and get back to them.

Appreciate your Help asap. ๐Ÿ‘๐Ÿผ

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.