Skip to content

Commit c58f429

Browse files
committed
⬆️ upgrade dependencies
1 parent ac1a0a4 commit c58f429

10 files changed

Lines changed: 7209 additions & 9386 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
{
22
"name": "rclone-webui-angular",
3-
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
4+
"features": {
5+
"ghcr.io/devcontainers-extra/features/angular-cli:2": {
6+
"version": "16"
7+
},
8+
"ghcr.io/devcontainers-extra/features/rclone:1": {}
9+
},
10+
"postCreateCommand": "npm ci && ng analytics disable && echo 'source <(ng completion script)' >> ~/.bashrc",
11+
"forwardPorts": [
12+
4200,
13+
5572
14+
],
415
"customizations": {
516
"vscode": {
617
"extensions": [
@@ -12,4 +23,4 @@
1223
]
1324
}
1425
}
15-
}
26+
}

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
pull-requests: write
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

19-
- uses: actions/setup-node@v3
19+
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 20
21+
node-version: 22
2222

2323
- name: Cache npm
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: ~/.npm
2727
key: RcloneWebuiAngular-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/release-embed.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
contents: write
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

17-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 20
19+
node-version: 22
2020

2121
- name: Cache npm
22-
uses: actions/cache@v2
22+
uses: actions/cache@v4
2323
with:
2424
path: ~/.npm
2525
key: RcloneWebuiAngular-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/release-native.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
contents: write
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616

17-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 20
19+
node-version: 22
2020

2121
- name: Cache npm
22-
uses: actions/cache@v2
22+
uses: actions/cache@v4
2323
with:
2424
path: ~/.npm
2525
key: RcloneWebuiAngular-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/release-standalone.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
id-token: write
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

19-
- uses: actions/setup-node@v3
19+
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 20
21+
node-version: 22
2222

2323
- name: Cache npm
24-
uses: actions/cache@v2
24+
uses: actions/cache@v4
2525
with:
2626
path: ~/.npm
2727
key: RcloneWebuiAngular-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ If you feel like coding, translating or just want to help, please check [CONTRIB
4949

5050
### Development
5151

52-
Run backend: `rclone rcd --rc-user="<your username>" --rc-pass="<your password>" --rc-addr=127.0.0.1:5572`
52+
> Optional: This project ready for Dev-Container, try it out at [GitHub Codespace](https://codespaces.new/yuudi/rclone-webui-angular)
5353
54-
Run frontend: `ng serve`
54+
1. install rclone if you didn't
55+
1. start project
5556

56-
Api calling will be proxied to backed [config](./src/proxy.conf.mjs)
57+
```sh
58+
npm start # it will start rclone and angular at same time, API calling will be properly proxied to backed
59+
```

angular.json

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"baseHref": "en-US/"
2020
},
2121
"locales": {
22-
"de-DE":{
22+
"de-DE": {
2323
"translation": "src/locale/messages.de-DE.xlf",
2424
"baseHref": "de-DE/"
2525
},
@@ -41,19 +41,16 @@
4141
"outputPath": "dist/build",
4242
"index": "src/index.html",
4343
"main": "src/main.ts",
44-
"polyfills": [
45-
"zone.js"
46-
],
44+
"polyfills": ["zone.js"],
4745
"tsConfig": "tsconfig.app.json",
4846
"inlineStyleLanguage": "scss",
4947
"assets": [
5048
"src/favicon.ico",
5149
"src/assets",
5250
"src/manifest.webmanifest"
5351
],
54-
"styles": [
55-
"src/styles.scss"
56-
],
52+
53+
"styles": ["src/styles.scss"],
5754
"scripts": [],
5855
"serviceWorker": true,
5956
"ngswConfigPath": "ngsw-config.json"
@@ -144,28 +141,20 @@
144141
"builder": "@angular-devkit/build-angular:jest",
145142
"options": {
146143
"tsConfig": "tsconfig.spec.json",
147-
"polyfills": [
148-
"zone.js",
149-
"zone.js/testing"
150-
]
144+
"polyfills": ["zone.js", "zone.js/testing"]
151145
}
152146
},
153147
"lint": {
154148
"builder": "@angular-eslint/builder:lint",
155149
"options": {
156-
"lintFilePatterns": [
157-
"src/**/*.ts",
158-
"src/**/*.html"
159-
]
150+
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
160151
}
161152
}
162153
}
163154
}
164155
},
165156
"cli": {
166157
"analytics": false,
167-
"schematicCollections": [
168-
"@angular-eslint/schematics"
169-
]
158+
"schematicCollections": ["@angular-eslint/schematics"]
170159
}
171160
}

docs/CONTRIBUTING.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,25 @@ For new feature or big changes, please open an [issue](https://github.com/yuudi/
1212

1313
### Development environment
1414

15-
Run backend: `rclone rcd --rc-user="<your username>" --rc-pass="<your password>" --rc-addr=127.0.0.1:5572`
15+
> Optional: This project ready for Dev-Container, try it out at [GitHub Codespace](https://codespaces.new/yuudi/rclone-webui-angular)
1616
17-
Run frontend: `ng serve`
17+
1. install rclone if you didn't
18+
1. create some backend for test purpose
1819

19-
Api calling will be proxied to backed [config](../src/proxy.conf.mjs)
20+
```sh
21+
TMP_DIR=$(mktemp -d)
22+
mkdir -p $TMP_DIR/pseudo-backend/{backend-a/{folder-1,folder-2},backend-b}
23+
touch $TMP_DIR/pseudo-backend/backend-a/{folder-1/{file-1.txt,file-2.jpg},file.txt}
24+
rclone config create pseudo-backend-a alias remote=$TMP_DIR/pseudo-backend/backend-a
25+
rclone config create pseudo-backend-b alias remote=$TMP_DIR/pseudo-backend/backend-b
26+
# rm -r $TMP_DIR # when you want to delete them
27+
```
28+
29+
1. start project
30+
31+
```sh
32+
npm start # it will start rclone and angular at same time, API calling will be properly proxied to backed
33+
```
2034

2135
## Translation
2236

0 commit comments

Comments
 (0)