Skip to content

Commit

Permalink
feat!: Vue3 Rewrite (VueTorrent#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
WDaan authored Oct 20, 2023
1 parent b81670d commit 575b071
Show file tree
Hide file tree
Showing 377 changed files with 14,853 additions and 25,402 deletions.
4 changes: 1 addition & 3 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
VITE_USE_FAKE_TORRENTS=false
VITE_FAKE_TORRENT_COUNT=5
VITE_QBITTORRENT_TARGET='http://127.0.0.1'
VITE_QBITTORRENT_PORT=8080
VITE_QBITTORRENT_TARGET='http://127.0.0.1'
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

File renamed without changes.
7 changes: 3 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# My Title [feat/fix/perf/chore]

Please explain what kind of feature your PR's brings or what kind of bug it fixes. Feel free to include screenshots for UI related changes. Keep all the commits inside your PR
related to topic of the PR, otherwise create a seperate PR
related to topic of the PR, otherwise create a seperate PR. Don't forget to link the related issue! (if applicable)

# PR Checklist
## PR Checklist

- [ ] I've started from master
- [ ] I've only committed changes related to this PR
- [ ] All Unit tests pass
- [ ] All tests pass
- [ ] I've removed all commented code
- [ ] I've removed all unneeded console.log statements
5 changes: 5 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,25 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Build Node.js cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- name: Install dependencies
run: npm ci

- name: Build VueTorrent
run: npm run build

- name: Push to nightly-release
uses: JamesIves/[email protected]
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run release please
uses: google-github-actions/[email protected].12
uses: google-github-actions/[email protected]
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -61,20 +61,25 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Build Node.js cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- name: Install dependencies
run: npm ci

- name: Build VueTorrent
run: npm run build

- name: Push to latest-release
uses: JamesIves/[email protected]
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Build Node.js cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- name: Install dependencies
run: npm ci

- name: Build VueTorrent
run: npm run build
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,32 @@ on:
- master

jobs:
test-core:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Build Node.js cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- name: Install dependencies
run: npm ci

- name: check linting
run: npm run lint

- name: Run tests
run: npm run test:unit
run: npm run test

- name: Test Build
run: npm run build
39 changes: 39 additions & 0 deletions .github/workflows/vue3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Vue3 nightly
on:
push:
branches:
- vue3
jobs:
push-nightly-vue3:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Build Node.js cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- name: Install dependencies
run: npm ci

- name: Build VueTorrent
run: npm run build

- name: Run tests
run: npm run test

- name: Push to nightly-release
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: nightly-release-vue3
FOLDER: ./vuetorrent
52 changes: 32 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
.DS_Store
node_modules

# Log files
npm-debug.log*

# Editor directories and files
.idea
.vscode
.history
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# vuetorrent
vuetorrent/**
config
Downloads
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# non-essential
node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Custom
vuetorrent/**
docker/**
coverage/
config/
10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

16 changes: 16 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"arrowParens": "avoid",
"bracketSameLine": true,
"bracketSpacing": true,
"endOfLine": "auto",
"htmlWhitespaceSensitivity": "css",
"printWidth": 180,
"proseWrap": "always",
"quoteProps": "as-needed",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false,
"vueIndentScriptAndStyle": false
}
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
32 changes: 17 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,41 @@

## [1.8.0](https://github.com/WDaan/VueTorrent/compare/v1.7.4...v1.8.0) (2023-10-04)


### Features

* login with url query ([#1108](https://github.com/WDaan/VueTorrent/issues/1108)) ([459b7e0](https://github.com/WDaan/VueTorrent/commit/459b7e08f2c630f6e92a459fd39b3dade7ef7fdf))

- login with url query ([#1108](https://github.com/WDaan/VueTorrent/issues/1108)) ([459b7e0](https://github.com/WDaan/VueTorrent/commit/459b7e08f2c630f6e92a459fd39b3dade7ef7fdf))

### Bug Fixes

* hungarian translations ([#1127](https://github.com/WDaan/VueTorrent/issues/1127)) ([2c9c9d5](https://github.com/WDaan/VueTorrent/commit/2c9c9d5ac197c1e56fec2f26c20fc631c2dc86e1))

- hungarian translations ([#1127](https://github.com/WDaan/VueTorrent/issues/1127)) ([2c9c9d5](https://github.com/WDaan/VueTorrent/commit/2c9c9d5ac197c1e56fec2f26c20fc631c2dc86e1))

### Improvements

* Add autofocus on login page ([#1117](https://github.com/WDaan/VueTorrent/issues/1117)) ([7ca220d](https://github.com/WDaan/VueTorrent/commit/7ca220dfa6eff9a6f943fcacd045ef6b8f2ce570))
* add Hungarian translations ([#1121](https://github.com/WDaan/VueTorrent/issues/1121)) ([f584aad](https://github.com/WDaan/VueTorrent/commit/f584aadcea38e28251f7347a8d794eca8ce807a0))
- Add autofocus on login page ([#1117](https://github.com/WDaan/VueTorrent/issues/1117))
([7ca220d](https://github.com/WDaan/VueTorrent/commit/7ca220dfa6eff9a6f943fcacd045ef6b8f2ce570))
- add Hungarian translations ([#1121](https://github.com/WDaan/VueTorrent/issues/1121))
([f584aad](https://github.com/WDaan/VueTorrent/commit/f584aadcea38e28251f7347a8d794eca8ce807a0))

## [1.7.4](https://github.com/WDaan/VueTorrent/compare/v1.7.3...v1.7.4) (2023-09-19)


### Bug Fixes

* change settings speed tab speed unit to KiBps ([#1082](https://github.com/WDaan/VueTorrent/issues/1082)) ([587038a](https://github.com/WDaan/VueTorrent/commit/587038a7ae25fcedcb29b358a12e5f3a3b38ce64))
* formatDataValues for values with 4 digits or more ([#1083](https://github.com/WDaan/VueTorrent/issues/1083)) ([ad562f0](https://github.com/WDaan/VueTorrent/commit/ad562f056a4976b484ae7f98da2eef8153f9b0c4))
* **logs:** wrong date parsing ([#1076](https://github.com/WDaan/VueTorrent/issues/1076)) ([14a6b90](https://github.com/WDaan/VueTorrent/commit/14a6b90547dda3284254608f6cd203bc84634768))
* Revert "fix(logs): Wrong date parsing" ([#1099](https://github.com/WDaan/VueTorrent/issues/1099)) ([1110bdb](https://github.com/WDaan/VueTorrent/commit/1110bdb8b780d9512366d1e46ed8aecadb2efa4d))
- change settings speed tab speed unit to KiBps ([#1082](https://github.com/WDaan/VueTorrent/issues/1082))
([587038a](https://github.com/WDaan/VueTorrent/commit/587038a7ae25fcedcb29b358a12e5f3a3b38ce64))
- formatDataValues for values with 4 digits or more ([#1083](https://github.com/WDaan/VueTorrent/issues/1083))
([ad562f0](https://github.com/WDaan/VueTorrent/commit/ad562f056a4976b484ae7f98da2eef8153f9b0c4))
- **logs:** wrong date parsing ([#1076](https://github.com/WDaan/VueTorrent/issues/1076))
([14a6b90](https://github.com/WDaan/VueTorrent/commit/14a6b90547dda3284254608f6cd203bc84634768))
- Revert "fix(logs): Wrong date parsing" ([#1099](https://github.com/WDaan/VueTorrent/issues/1099))
([1110bdb](https://github.com/WDaan/VueTorrent/commit/1110bdb8b780d9512366d1e46ed8aecadb2efa4d))

## [1.7.3](https://github.com/WDaan/VueTorrent/compare/v1.7.2...v1.7.3) (2023-08-31)


### Bug Fixes

* mobile long press [#911](https://github.com/WDaan/VueTorrent/issues/911) ([6871e54](https://github.com/WDaan/VueTorrent/commit/6871e54f94c19f4c5d54f6d5056a4f1b302a956a))
* revert longpress fix, unreliable on pwa [#911](https://github.com/WDaan/VueTorrent/issues/911) ([3214997](https://github.com/WDaan/VueTorrent/commit/3214997194f76d01b3ead9439589c3103eb2728c))
- mobile long press [#911](https://github.com/WDaan/VueTorrent/issues/911) ([6871e54](https://github.com/WDaan/VueTorrent/commit/6871e54f94c19f4c5d54f6d5056a4f1b302a956a))
- revert longpress fix, unreliable on pwa [#911](https://github.com/WDaan/VueTorrent/issues/911)
([3214997](https://github.com/WDaan/VueTorrent/commit/3214997194f76d01b3ead9439589c3103eb2728c))

## [1.7.2](https://github.com/WDaan/VueTorrent/compare/v1.7.1...v1.7.2) (2023-08-31)

Expand Down
Loading

0 comments on commit 575b071

Please sign in to comment.