Skip to content

Commit

Permalink
refactor: rewrite project in vue and vite (#99)
Browse files Browse the repository at this point in the history
* init project

* update the main app function

* update readme

* add isFetching flag

* update eslint config and components

* add set token dialog

* update request error handler

* updata storage.ts and api

* update toast

* update share btns

* update styles

* update header and dialog

* update vuex usage in component

* update dialog

* update generate image with watermark

* update chart watermark and header

* update styles

* update header and styles

* update store initial to filter duplicate repos

* code clean

* fix format date string function

* feat: add router (#2)

* add vue-router

* hide other pages

* update inputer repo regex

* update code styles

* remove extra script codes
  • Loading branch information
boojack committed Dec 29, 2021
1 parent c0e7aa7 commit 9a127f4
Show file tree
Hide file tree
Showing 69 changed files with 4,208 additions and 19,566 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

46 changes: 46 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,46 @@
module.exports = {
parser: "vue-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
sourceType: "module",
},
plugins: ["vue", "@typescript-eslint", "prettier"],
extends: [
"eslint:recommended",
"plugin:vue/vue3-recommended",
"@vue/typescript/recommended",
"plugin:prettier/recommended",
],
rules: {
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"vue/multi-word-component-names": "off",
"vue/require-default-prop": "off",
"vue/one-component-per-file": "off",
},
ignorePatterns: ["node_modules", "dist", "public"],
overrides: [
{
files: ["./**/*.js"],
env: {
node: true,
},
rules: {
"no-undef": "off",
},
},
{
files: ["*.vue"],
rules: {
"no-undef": "off",
},
},
],
};
4 changes: 2 additions & 2 deletions .gitignore
@@ -1,5 +1,5 @@
node_modules
.DS_Store
dist
.cache
extension.zip
dist-ssr
*.local
7 changes: 7 additions & 0 deletions .prettierrc
@@ -0,0 +1,7 @@
{
"useTabs": false,
"tabWidth": 2,
"singleQuote": false,
"semi": true,
"printWidth": 80
}
2 changes: 0 additions & 2 deletions .upignore

This file was deleted.

22 changes: 0 additions & 22 deletions LICENSE

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -14,11 +14,11 @@

**Support comparing multiple repos**

![](https://raw.githubusercontent.com/timqian/images/master/star-history.gif)
![web-demo](https://raw.githubusercontent.com/timqian/images/master/star-history.gif)

## [As an extension](https://chrome.google.com/webstore/detail/star-history/iijibbcdddbhokfepbblglfgdglnccfn)

![](https://raw.githubusercontent.com/timqian/images/master/star-history-extension.gif)
![extension-demo](https://raw.githubusercontent.com/timqian/images/master/star-history-extension.gif)

> Note: You can [load the `./extension` folder to chrome](https://superuser.com/a/247654) to install the extension too.
Expand Down
120 changes: 0 additions & 120 deletions core/getStarHistory.js

This file was deleted.

29 changes: 0 additions & 29 deletions core/test/generateUrls_test.js

This file was deleted.

10 changes: 0 additions & 10 deletions core/test/getStarHistory_test.js

This file was deleted.

1 change: 0 additions & 1 deletion core/test/xkct_test.js

This file was deleted.

1 change: 0 additions & 1 deletion extension/assets/cog-solid.svg

This file was deleted.

Binary file removed extension/assets/loadinfo.net.gif
Binary file not shown.

0 comments on commit 9a127f4

Please sign in to comment.