Skip to content

Commit bbb4827

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

5 files changed

Lines changed: 7184 additions & 9367 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
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+
"ghcr.io/devcontainers-extra/features/rclone:1": {}
7+
},
8+
"postCreateCommand": "npm ci",
9+
"forwardPorts": [
10+
4200,
11+
5572
12+
],
413
"customizations": {
514
"vscode": {
615
"extensions": [
@@ -12,4 +21,4 @@
1221
]
1322
}
1423
}
15-
}
24+
}

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,21 @@ 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. create some backend for test purpose
5556

56-
Api calling will be proxied to backed [config](./src/proxy.conf.mjs)
57+
```sh
58+
mkdir -p ./pseudo-backend/{backend-a/{folder-1,folder-2},backend-b}
59+
touch ./pseudo-backend/backend-a/{folder-1/{file-1.txt,file-2.jpg},file.txt}
60+
echo '*' >./pseudo-backend/.gitignore
61+
rclone config create pseudo-backend-a alias remote=$(pwd)/pseudo-backend/backend-a
62+
rclone config create pseudo-backend-b alias remote=$(pwd)/pseudo-backend/backend-b
63+
```
64+
65+
1. start project
66+
67+
```sh
68+
npm start # it will start rclone and angular at same time, API calling will be properly proxied to backed
69+
```

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
}

0 commit comments

Comments
 (0)