mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Revert "[fix] Try something to be independent from github"
This commit is contained in:
parent
3e886cdb6f
commit
0e2fcaa4a6
2 changed files with 5 additions and 3 deletions
|
@ -578,6 +578,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
// Install custom app from github
|
||||
app.post('#/apps/install/custom', function(c) {
|
||||
|
||||
var params = {
|
||||
|
@ -594,9 +595,10 @@
|
|||
|
||||
// Force trailing slash
|
||||
params.app = params.app.replace(/\/?$/, '/');
|
||||
var giturl = params.app + "raw/master/manifest.json";
|
||||
|
||||
// Get manifest.json to get additional parameters
|
||||
jQuery.ajax({
|
||||
url: giturl,
|
||||
url: params.app.replace('github.com', 'raw.githubusercontent.com') + 'master/manifest.json',
|
||||
type: 'GET',
|
||||
})
|
||||
.done(function(manifest) {
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
<div class="form-group has-feedback">
|
||||
<label for="url" class="col-sm-12">{{t 'url'}}</label>
|
||||
<div class="col-sm-12">
|
||||
<input type="url" id="url" name="url" class="form-control" value="" placeholder="https://GITHOST.TLD/USER/(...)/REPOSITORY" required>
|
||||
<input type="url" id="url" name="url" class="form-control" value="" placeholder="https://github.com/USER/REPOSITORY" required pattern="^https://github.com/[a-zA-Z0-9-_.]+/[a-zA-Z0-9-_.]+[/]?$">
|
||||
<p class="text-warning">
|
||||
<span class="fa-github"></span> {{t 'custom_app_url_only_github'}}
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue