Skip to content

Commit

Permalink
release: v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Aug 15, 2022
1 parent 0002b76 commit 7afe3ed
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 29 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
module.exports = {
parser: 'babel-eslint',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
env: {
node: true,
commonjs: true,
es6: true,
browser: true,
},
extends: 'eslint:recommended',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
parserOptions: {
sourceType: 'module',
},
rules: {
quotes: ['error', 'single'],
'prefer-const': 2,
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
},
};
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.6.0 (15 Aug 2022)

* feat: support basePath
* feat: support proxy

## 1.5.0 (7 Aug 2022)

* feat: support https
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chii",
"version": "1.5.0",
"version": "1.6.0",
"description": "Chrome devtools framework",
"main": "./server/index.js",
"bin": {
Expand All @@ -22,7 +22,7 @@
"dev:front_end": "cd devtools/devtools-frontend && gn gen out/Default && autoninja -C out/Default && lsla shx cp -R out/Default/gen/front_end ../../public",
"lint": "npm run lint:server && npm run lint:target",
"lint:server": "eslint \"server/**/*.js\" \"bin/*.js\"",
"lint:target": "tslint \"target/**/*.ts\"",
"lint:target": "eslint \"src/**/*.ts\"",
"init:front_end": "cd devtools && rm -rf devtools-frontend && gclient sync --with_branch_heads --verbose && cd ../ && python3 script/apply_all_patches.py patches/config.json",
"es5": "es-check es5 public/target.js"
},
Expand All @@ -40,18 +40,19 @@
},
"homepage": "https://github.com/liriliri/chii#readme",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"babel-eslint": "^10.1.0",
"chobitsu": "^1.2.1",
"es-check": "^6.2.1",
"eslint": "^6.8.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"gulp": "^4.0.2",
"gulp-clean": "^0.4.0",
"gulp-uglify-es": "^3.0.0",
"ncp": "^2.0.0",
"terser": "^5.10.0",
"ts-loader": "^9.3.1",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.8.3",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
Expand Down
9 changes: 3 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ const start = Date.now();
setInterval(() => {
fetch(`${window.basePath}timestamp`)
.then(res => res.text())
.then(
timestamp => {
if (toInt(timestamp) > start) location.reload();
},
() => {}
);
.then(timestamp => {
if (toInt(timestamp) > start) location.reload();
});
}, 2000);
4 changes: 2 additions & 2 deletions src/target/DevtoolsFrame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default class DevtoolsFrame {
private $container: $.$;
private $draggable: $.$;
private height: number;
private startY: number = 0;
private originHeight: number = 0;
private startY = 0;
private originHeight = 0;
constructor() {
this.container = h('.__chobitsu-hide__') as HTMLDivElement;
this.$container = $(this.container);
Expand Down
1 change: 1 addition & 0 deletions src/target/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function getFavicon() {
let favicon = location.origin + '/favicon.ico';

const $link = $('link');
/* eslint-disable-next-line */
$link.each(function (this: HTMLElement) {
if (contain(this.getAttribute('rel') || '', 'icon')) {
const href = this.getAttribute('href');
Expand Down
14 changes: 0 additions & 14 deletions tslint.json

This file was deleted.

0 comments on commit 7afe3ed

Please sign in to comment.