Skip to content

Commit

Permalink
Merge pull request #490 from conwnet/master
Browse files Browse the repository at this point in the history
release 0.12.0
  • Loading branch information
conwnet authored Mar 5, 2023
2 parents c6fb771 + 1622776 commit 0d4e69a
Show file tree
Hide file tree
Showing 59 changed files with 2,063 additions and 1,174 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ cd github1s
yarn build:vscode
```

After the inital successful build, you could use the watch mode:
After the initial successful build, you could use the watch mode:

```bash
cd github1s
Expand Down Expand Up @@ -177,6 +177,7 @@ We are partnered with [OSS Insight](https://ossinsight.io/?utm_source=github1s&u
- [shortcut to github1s](https://chrome.google.com/webstore/detail/shortcut-to-github1s/gfcdbodapcbfckbfpmgeldfkkgjknceo) ([katsuhisa91/github1s-shortcut](https://github.com/katsuhisa91/github1s-shortcut))
- [Github1s Shortut - Open source](https://github.com/Fauzdar1/Github1s)
- [⚡️ 1s to GitHub1s!](https://github.com/holazz/webext-github1s)
- [github1s Google Chrome Extensions](https://github.com/Lonely-Mr-zhang/github_1s_vscode)

### Firefox Extensions

Expand Down
6 changes: 3 additions & 3 deletions api/github-auth-callback/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ got@^11.8.5:
responselike "^2.0.0"

http-cache-semantics@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==
version "4.1.1"
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a"
integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==

http2-wrapper@^1.0.0-beta.5.2:
version "1.0.3"
Expand Down
6 changes: 3 additions & 3 deletions api/vscode-unpkg/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,9 @@ got@^11.8.5:
responselike "^2.0.0"

http-cache-semantics@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==
version "4.1.1"
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a"
integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==

[email protected]:
version "1.5.2"
Expand Down
11 changes: 5 additions & 6 deletions extensions/github1s/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
"lib": "lib"
},
"activationEvents": [
"onStartupFinished",
"onFileSystem:github1s",
"onFileSystem:gitlab1s",
"onFileSystem:bitbucket1s",
"onFileSystem:npmjs1s",
"onFileSystem:ossinsight",
"onCommand:remoteHub.openRepository",
"onCommand:github1s.commands.openRepository",
"onStartupFinished"
"onCommand:remoteHub.openRepository"
],
"browser": "./dist/extension",
"engines": {
Expand Down Expand Up @@ -585,9 +584,9 @@
},
"scripts": {
"clean": "rm -rf dist out",
"build": "webpack --config extension.webpack.config.js --mode production",
"compile": "webpack --config extension.webpack.config.js --mode production",
"dev": "webpack --config extension.webpack.config.js --watch"
"build": "webpack --config webpack.config.js --mode production",
"compile": "webpack --config webpack.config.js --mode production",
"dev": "webpack --config webpack.config.js --watch"
},
"keywords": [],
"author": "",
Expand Down
File renamed without changes.
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@
"lib": "lib"
},
"devDependencies": {
"@github1s/vscode-web": "0.7.0",
"@github1s/vscode-web": "0.8.0",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"chokidar": "^3.5.3",
"clean-css": "^5.3.2",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.3",
"eslint": "^8.25.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jsdoc": "^39.3.14",
"eslint-plugin-prettier": "^4.2.1",
"file-loader": "^6.2.0",
"fs-extra": "^10.1.0",
"generate-file-webpack-plugin": "^1.0.1",
"html-webpack-plugin": "^5.5.0",
Expand All @@ -26,29 +29,29 @@
"prettier": "^2.7.1",
"serve-handler": "^6.1.3",
"start-server-and-test": "^1.14.0",
"style-loader": "^3.3.1",
"ts-loader": "^9.4.2",
"typescript": "^4.7.3",
"webpack": "^5.73.0",
"uglify-js": "^3.17.4",
"webpack": "^5.75.0",
"webpack-cli": "^4.10.0",
"webpack-dev-server": "^4.9.2",
"yalc": "^1.0.0-pre.53"
},
"scripts": {
"preinstall": "./scripts/preinstall.sh",
"postinstall": "husky install && ./scripts/postinstall.sh",
"clean-build": "./scripts/clean-build.sh",
"clean": "./scripts/clean.sh",
"dev": "yarn watch",
"build": "./scripts/build.sh",
"clean": "./scripts/clean.sh",
"yalc": "yalc publish vscode-web && yalc add -D @github1s/vscode-web",
"build:vscode": "cd vscode-web && yarn build",
"vercel-build": "USE_HASH_HTML=true yarn build && yarn hash && rm -rf public && mv dist public",
"hash": "./scripts/hash.sh",
"package": "yarn webpack",
"watch": "rm -rf dist && run-p watch:*",
"watch-with-vscode": "DEV_VSCODE=true run-p watch watch-vscode",
"watch-vscode": "cd vscode-web && yarn watch",
"watch:dev-server": "node server.js",
"webpack": "webpack --config webpack.config.js",
"watch-with-vscode": "DEV_VSCODE=true run-p watch watch-vscode",
"watch:dev-server": "webpack serve --mode=development",
"watch:github1s-extension": "cd extensions/github1s && yarn dev",
"webpack": "webpack --config webpack.config.js",
"format": "prettier --write .",
"eslint": "eslint --ext .ts --ext .js .",
"test:ci": "start-test watch:dev-server 5000 test",
Expand Down
21 changes: 21 additions & 0 deletions public/analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(function () {
const mid = 'G-D3LJNF4DN0';
if (window.location.hostname.match(/\.?gitlab1s\.com$/i)) {
mid = 'G-1F70ST6944';
} else if (window.location.hostname.match(/\.?bitbucket1s\.org$/i)) {
mid = 'G-SPWSR3V6YC';
} else if (window.location.hostname.match(/\.?npmjs1s\.com$/i)) {
mid = 'G-VF4VCXYFKV';
}
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', mid);
window.addEventListener('load', function () {
const element = window.document.createElement('script');
element.src = 'https://www.googletagmanager.com/gtag/js?id=' + mid;
window.document.body.append(element);
});
})();
File renamed without changes
File renamed without changes
File renamed without changes.
43 changes: 43 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<!-- Disable pinch zooming -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<!-- Workbench Icon/Manifest/CSS -->
<link rel="icon" media="(prefers-color-scheme:light)" href="/favicon-light.svg" type="image/svg+xml" />
<link rel="icon" media="(prefers-color-scheme:dark)" href="/favicon-dark.svg" type="image/svg+xml" />
<% if (!devVscode) { %>
<link rel="preload" href="/static-<%= staticHash %>/vscode/vs/workbench/workbench.web.main.css" as="style">
<% } %>
<link rel="manifest" href="/manifest.json" />
<title>GitHub1s</title>
<script><%= pageTitleScript %></script>
<script><%= analyticsScript %></script>
<style><%= spinnerStyle %></style>
</head>

<body aria-label="">
<noscript title="No JavaScript Support">
<h1>You need to enable JavaScript to run this app.</h1>
</noscript>
<div id="load-spinner" aria-label="loading">
<div class="lds-grid">
<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
</div>
</div>
</body>

<script src="/static-<%= staticHash %>/vscode/vs/loader.js"></script>
<script src="/static-<%= staticHash %>/vscode/vs/webPackagePaths.js"></script>
<script src="/static-<%= staticHash %>/config/extensions.js"></script>
<script src="/static-<%= staticHash %>/config/bootstrap.js"></script>
<% if (devVscode) { %>
<script>require(['vs/code/browser/workbench/workbench'], function () {});</script>
<% } else { %>
<script src="/static-<%= staticHash %>/vscode/vs/workbench/workbench.web.main.nls.js"></script>
<script src="/static-<%= staticHash %>/vscode/vs/workbench/workbench.web.main.js"></script>
<script src="/static-<%= staticHash %>/vscode/vs/code/browser/workbench/workbench.js"></script>
<% } %>
<script src="https://unpkg.com/[email protected]/dist/index.js" crossorigin="anonymous" async="async"></script>
</html>
File renamed without changes.
9 changes: 9 additions & 0 deletions public/page-title.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(function () {
if (window.location.hostname.match(/\.?gitlab1s\.com$/i)) {
window.document.title = 'GitLab1s';
} else if (window.location.hostname.match(/\.?bitbucket1s\.org$/i)) {
window.document.title = 'Bitbucket1s';
} else if (window.location.hostname.match(/\.?npmjs1s\.com$/i)) {
window.document.title = 'npm1s';
}
})();
File renamed without changes.
93 changes: 93 additions & 0 deletions public/spinner.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
#load-spinner {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #1e1e1e
}

.lds-grid {
display: inline-block;
position: relative;
width: 80px;
height: 80px
}

.lds-grid div {
position: absolute;
width: 16px;
height: 16px;
border-radius: 50%;
background: #fff;
animation: lds-grid 1.2s linear infinite
}

.lds-grid div:nth-child(1) {
top: 8px;
left: 8px;
animation-delay: 0s
}

.lds-grid div:nth-child(2) {
top: 8px;
left: 32px;
animation-delay: -0.4s
}

.lds-grid div:nth-child(3) {
top: 8px;
left: 56px;
animation-delay: -0.8s
}

.lds-grid div:nth-child(4) {
top: 32px;
left: 8px;
animation-delay: -0.4s
}

.lds-grid div:nth-child(5) {
top: 32px;
left: 32px;
animation-delay: -0.8s
}

.lds-grid div:nth-child(6) {
top: 32px;
left: 56px;
animation-delay: -1.2s
}

.lds-grid div:nth-child(7) {
top: 56px;
left: 8px;
animation-delay: -0.8s
}

.lds-grid div:nth-child(8) {
top: 56px;
left: 32px;
animation-delay: -1.2s
}

.lds-grid div:nth-child(9) {
top: 56px;
left: 56px;
animation-delay: -1.6s
}

@keyframes lds-grid {
0%,
100% {
opacity: 1
}

50% {
opacity: 0.5
}
}
29 changes: 0 additions & 29 deletions resources/index-dev-vscode.html

This file was deleted.

38 changes: 0 additions & 38 deletions resources/index-hash.html

This file was deleted.

Loading

1 comment on commit 0d4e69a

@vercel
Copy link

@vercel vercel bot commented on 0d4e69a Mar 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.