Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-void0 committed Jan 10, 2024
1 parent eb46e36 commit bad1120
Show file tree
Hide file tree
Showing 28 changed files with 99 additions and 270 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"eslint.experimental.useFlatConfig": true
"eslint.experimental.useFlatConfig": true,
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) NOW hemengke1997
Copyright (c) 2023 thomas-void0

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# ts-template
# fake fingerprint

> a template for typescript project or plugin
generate fake fingerprint of brower.

- branch `master` => single repo template
- branch `monorepo` => monorepo template
# install

```shell
npm install fake-fingerprint
```

# use

# api

# license

MIT [@hemengke1997](https://github.com/hemengke1997)

# inspiration

by [my-fingerprint](https://github.com/omegaee/my-fingerprint)
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"name": "ts-template",
"version": "0.0.0",
"name": "fake-fingerprint",
"version": "0.0.1",
"packageManager": "[email protected]",
"description": "a template for typescript project or plugin",
"description": "generate fake fingerprint of brower.",
"type": "module",
"keywords": [
"TODO"
"fake",
"fingerprint"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/hemengke1997/ts-template.git"
"url": "git+https://github.com/thomas-void0/fake-fingerprint.git"
},
"author": "hemengke <https://github.com/hemengke1997>",
"author": "thomas-void0",
"files": [
"CHANGELOG.md",
"README.md",
Expand Down
6 changes: 0 additions & 6 deletions playground/package.json

This file was deleted.

24 changes: 0 additions & 24 deletions playground/spa/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions playground/spa/__tests__/index.spec.ts

This file was deleted.

16 changes: 0 additions & 16 deletions playground/spa/index.html

This file was deleted.

22 changes: 0 additions & 22 deletions playground/spa/package.json

This file was deleted.

1 change: 0 additions & 1 deletion playground/spa/public/vite.svg

This file was deleted.

42 changes: 0 additions & 42 deletions playground/spa/src/App.css

This file was deleted.

32 changes: 0 additions & 32 deletions playground/spa/src/App.tsx

This file was deleted.

1 change: 0 additions & 1 deletion playground/spa/src/assets/react.svg

This file was deleted.

69 changes: 0 additions & 69 deletions playground/spa/src/index.css

This file was deleted.

10 changes: 0 additions & 10 deletions playground/spa/src/main.tsx

This file was deleted.

1 change: 0 additions & 1 deletion playground/spa/src/vite-env.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions playground/spa/vite.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion playground/test-utils.ts

This file was deleted.

12 changes: 0 additions & 12 deletions playground/tsconfig.json

This file was deleted.

1 change: 0 additions & 1 deletion playground/vitestGlobalSetup.ts

This file was deleted.

1 change: 0 additions & 1 deletion playground/vitestSetup.ts

This file was deleted.

2 changes: 0 additions & 2 deletions pnpm-workspace.yaml

This file was deleted.

6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
export {}
import { NavigatorHandle } from "./lib/navigator";

Check warning on line 1 in src/index.ts

View workflow job for this annotation

GitHub Actions / Lint: node-LTS, ubuntu-latest

Replace `"./lib/navigator";` with `'./lib/navigator'`

new NavigatorHandle((key) => {
console.log("key:", key);

Check warning on line 4 in src/index.ts

View workflow job for this annotation

GitHub Actions / Lint: node-LTS, ubuntu-latest

Replace `"key:",·key);` with `'key:',·key)`
});

Check warning on line 5 in src/index.ts

View workflow job for this annotation

GitHub Actions / Lint: node-LTS, ubuntu-latest

Delete `;`
10 changes: 10 additions & 0 deletions src/lib/base.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export type ReportFn<T> = (key: keyof T) => void
export abstract class Base<C extends Record<string, any>> {
abstract report: ReportFn<C>

protected abstract intercept(): void

abstract set(conf: C): void

abstract reset(): void
}
Loading

0 comments on commit bad1120

Please sign in to comment.