Removed @locl dependency for translations

Added CommonModule to fix intellisense

Added ability to load json assets by name, and an http call to update youtubedl-material
This commit is contained in:
Isaac Grynsztein
2020-04-01 19:44:22 -04:00
parent c40513ba4a
commit 458e4b45f8
4 changed files with 13 additions and 9 deletions

View File

@@ -94,6 +94,10 @@ export class PostsService {
}
}
loadAsset(name) {
return this.http.get(`./assets/${name}`);
}
setConfig(config) {
return this.http.post(this.path + 'setConfig', {new_config_file: config});
}
@@ -180,6 +184,11 @@ export class PostsService {
return this.http.post(this.path + 'getAllSubscriptions', {});
}
// updates the server to the latest version
updateServer() {
return this.http.post(this.path + 'updateServer', {});
}
// gets tag of the latest version of youtubedl-material
getLatestGithubRelease() {
return this.http.get('https://api.github.com/repos/tzahi12345/youtubedl-material/releases/latest');