Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update User Interface to support requests support (#205)
* Add framework field to the Project model * Update serializers and views to update the Project framework field --------- Co-authored-by: Raymond Negron <raymond1242@Raymonds-MacBook-Air.local> Co-authored-by: joaquin garmendia <joaquingc123@gmail.com> Co-authored-by: mgonnav <mateo@emegona.com>
- Loading branch information
1 parent
fd6a41a
commit ec08db0
Showing
11 changed files
with
177 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 3.1.14 on 2023-07-12 14:14 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0031_project_oder_by_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="project", | ||
name="framework", | ||
field=models.CharField( | ||
choices=[("SCRAPY", "Scrapy"), ("REQUESTS", "Requests")], | ||
default="SCRAPY", | ||
help_text="Project's framework.", | ||
max_length=20, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
import { Tag } from "antd"; | ||
|
||
export function RequestTag() { | ||
return ( | ||
<div className="flex"> | ||
<Tag className="text-estela-blue-full font-semibold border-0 bg-estela-blue-low text-base rounded py-1"> | ||
REQUESTS | ||
</Tag> | ||
<Tag className="text-xs border-estela-blue-full text-estela-blue-full h-fit rounded">Beta</Tag> | ||
</div> | ||
); | ||
} | ||
|
||
export function ScrapyTag() { | ||
return ( | ||
<div className="flex"> | ||
<Tag className="text-estela-blue-full font-semibold border-0 bg-estela-blue-low text-base rounded py-1"> | ||
SCRAPY | ||
</Tag> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.