mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
store/wishlist_add: ask for link to LICENSE file
This commit is contained in:
parent
dc9cdf9365
commit
e9524f63e6
2 changed files with 14 additions and 0 deletions
10
store/app.py
10
store/app.py
|
@ -217,6 +217,7 @@ def add_to_wishlist():
|
||||||
description = request.form["description"].strip().replace("\n", "")
|
description = request.form["description"].strip().replace("\n", "")
|
||||||
upstream = request.form["upstream"].strip().replace("\n", "")
|
upstream = request.form["upstream"].strip().replace("\n", "")
|
||||||
website = request.form["website"].strip().replace("\n", "")
|
website = request.form["website"].strip().replace("\n", "")
|
||||||
|
license = request.form["license"].strip().replace("\n", "")
|
||||||
|
|
||||||
boring_keywords_to_check_for_people_not_reading_the_instructions = ["free", "open source", "open-source", "self-hosted", "simple", "lightweight", "light-weight", "best", "most", "fast", "flexible", "puissante", "powerful", "secure"]
|
boring_keywords_to_check_for_people_not_reading_the_instructions = ["free", "open source", "open-source", "self-hosted", "simple", "lightweight", "light-weight", "best", "most", "fast", "flexible", "puissante", "powerful", "secure"]
|
||||||
|
|
||||||
|
@ -239,6 +240,14 @@ def add_to_wishlist():
|
||||||
len(upstream) <= 150,
|
len(upstream) <= 150,
|
||||||
_("Upstream code repo URL should be less than 150 characters"),
|
_("Upstream code repo URL should be less than 150 characters"),
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
len(license) >= 10,
|
||||||
|
_("License URL should be at least 10 characters"),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
len(license) <= 250,
|
||||||
|
_("License URL should be less than 250 characters"),
|
||||||
|
),
|
||||||
(len(website) <= 150, _("Website URL should be less than 150 characters")),
|
(len(website) <= 150, _("Website URL should be less than 150 characters")),
|
||||||
(
|
(
|
||||||
re.match(r"^[\w\.\-\(\)\ ]+$", name),
|
re.match(r"^[\w\.\-\(\)\ ]+$", name),
|
||||||
|
@ -338,6 +347,7 @@ Proposed by **{session['user']['username']}**
|
||||||
|
|
||||||
Website: {website}
|
Website: {website}
|
||||||
Upstream repo: {upstream}
|
Upstream repo: {upstream}
|
||||||
|
License: {license}
|
||||||
Description: {description}
|
Description: {description}
|
||||||
|
|
||||||
- [ ] Confirm app is self-hostable and generally makes sense to possibly integrate in YunoHost
|
- [ ] Confirm app is self-hostable and generally makes sense to possibly integrate in YunoHost
|
||||||
|
|
|
@ -66,6 +66,10 @@
|
||||||
<label for="upstream" class="mt-5 block font-bold text-gray-700">{{ _("Project code repository") }}</label>
|
<label for="upstream" class="mt-5 block font-bold text-gray-700">{{ _("Project code repository") }}</label>
|
||||||
<input name="upstream" type="url" class="w-full mt-1 rounded-md border-gray-200 text-gray-700 shadow-sm" maxlength="150" required >
|
<input name="upstream" type="url" class="w-full mt-1 rounded-md border-gray-200 text-gray-700 shadow-sm" maxlength="150" required >
|
||||||
|
|
||||||
|
<label for="license" class="mt-5 block font-bold text-gray-700">{{ _("Link to the project's LICENSE") }}</label>
|
||||||
|
<input name="license" type="url" class="w-full mt-1 rounded-md border-gray-200 text-gray-700 shadow-sm" required maxlength="250"></input>
|
||||||
|
<span class="text-xs text-gray-600 font-bold">{{ _("The YunoHost project will only package free/open-source software (with possible case-by-case exceptions for apps which are not-totally-free)") }}</span>
|
||||||
|
|
||||||
<label for="website" class="mt-5 block font-bold text-gray-700">{{ _("Project website") }}</label>
|
<label for="website" class="mt-5 block font-bold text-gray-700">{{ _("Project website") }}</label>
|
||||||
<input name="website" type="url" class="w-full mt-1 rounded-md border-gray-200 text-gray-700 shadow-sm" maxlength="150" >
|
<input name="website" type="url" class="w-full mt-1 rounded-md border-gray-200 text-gray-700 shadow-sm" maxlength="150" >
|
||||||
<span class="text-xs text-gray-600">{{ _("Please *do not* just copy-paste the code repository URL. If the project has no proper website, then leave the field empty.") }}</span>
|
<span class="text-xs text-gray-600">{{ _("Please *do not* just copy-paste the code repository URL. If the project has no proper website, then leave the field empty.") }}</span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue