Skip to content

Commit 826709d

Browse files
author
robot
committed
feat: v0.9.2
1 parent b6da881 commit 826709d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Binary file not shown.

‎public/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "leetcode cheatsheet",
44
"description": "刷题小助手,made by 力扣加加",
5-
"version": "0.9.1",
5+
"version": "0.9.2",
66
"browser_action": {
77
"default_popup": "index.html",
88
"default_title": "力扣加加"

‎src/App.js

+8
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,18 @@ const { TabPane } = Tabs;
3434

3535
const dataSource = Object.values(problems);
3636
const chrome = window.chrome;
37+
3738
// function inLeetCodeWebsite(url) {
3839
// return [LEETCODE_CN_URL, LEETCODE_URL].some((u) => url.includes(u));
3940
// }
4041

42+
// 根据 Github 用户名获取用户信息
43+
function getUserInfo(username) {
44+
return fetch(`https://api.github.com/users/${username}`)
45+
.then((res) => res.json())
46+
.then((res) => res);
47+
}
48+
4149
const columns = [
4250
{
4351
title: "题目",

0 commit comments

Comments
 (0)