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