Custom Admin Emoji Panel (Djblets)
Review Request #11878 — Created Nov. 20, 2021 and updated
Adds a ListEditEmojiDictionaryField (inherited from Michelle Aubin's
ListEditDictionaryField class), which takes in a dictionary of values and
splits it into a tuple of (key, value1, value2, value3).EmojiFileInput class is a subclass of FileInput, which takes in a file
upload from the user, and saves it into the context variable. In future
implementations, the get_context() method can also be used to render image
previews if the file uploaded is a valid image file.
Unit testing: Unit test suites for ListEditDictionaryField and ListEditField
Local testing: making sure the app runs property with print() statements.
Summary | ID | Author |
---|---|---|
2feb2a1b838640fd4496e505f7877ea5ebafbf72 | mxiuwang | |
1f16add484e311fa95e175dc2310b48efaab08ba | mxiuwang | |
7cc3931eab59f1db877bba4fe4b27d34bf7fa562 | mxiuwang | |
ad573006dac8d287f15765c2807432943beb0c94 | mxiuwang | |
551239428bb72dbfa77d8921948c04ab12c184c2 | mxiuwang | |
89a570f427670d8ae3bb95aa04466fa3f95bbf8e | mxiuwang | |
96f4639e280373651b32fb61f8e9c54ebcdbf955 | mxiuwang | |
8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 | mxiuwang | |
fb858a1db8f16a916ea1351af00163b280ced4f4 | mxiuwang | |
b0afa975bf77e71b0c3527ca4637bea1491f112a | mxiuwang | |
0930dd98450d3286095571053949b2be0a424357 | mxiuwang |
Description | From | Last Updated |
---|---|---|
Description needs to wrap with 80 chars I believe |
akim.ruslanov | |
In testing done, mention what kind of new test was added |
akim.ruslanov | |
The review request description and summary should also reflect what this commit does, not the work being done in Review … |
chipx86 | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (93 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
Col: 87 Missing semicolon. |
reviewbot | |
Col: 62 Missing semicolon. |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (95 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (123 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
Col: 87 Missing semicolon. |
reviewbot | |
Col: 62 Missing semicolon. |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (95 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (123 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E131 continuation line unaligned for hanging indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
This belongs with the Review Board change, since it's really specific to Review Board's implementation. Djblets should be limited to … |
chipx86 | |
Col: 87 Missing semicolon. |
reviewbot | |
Col: 62 Missing semicolon. |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W292 no newline at end of file |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (95 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (123 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E131 continuation line unaligned for hanging indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
Col: 87 Missing semicolon. |
reviewbot | |
Col: 62 Missing semicolon. |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W292 no newline at end of file |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (95 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (123 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E131 continuation line unaligned for hanging indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W292 no newline at end of file |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (95 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (123 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E131 continuation line unaligned for hanging indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W292 no newline at end of file |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E261 at least two spaces before inline comment |
reviewbot | |
E501 line too long (95 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (123 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E131 continuation line unaligned for hanging indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
Col: 87 Missing semicolon. |
reviewbot | |
Col: 62 Missing semicolon. |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E502 the backslash is redundant between brackets |
reviewbot | |
E203 whitespace before ',' |
reviewbot | |
E502 the backslash is redundant between brackets |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E131 continuation line unaligned for hanging indent |
reviewbot | |
E502 the backslash is redundant between brackets |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E502 the backslash is redundant between brackets |
reviewbot | |
E126 continuation line over-indented for hanging indent |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
F401 'django.core.files.storage.get_storage_class' imported but unused |
reviewbot | |
F401 'django.core.files.storage.DefaultStorage' imported but unused |
reviewbot | |
F401 'django.utils.html.format_html_join' imported but unused |
reviewbot | |
F401 'django.utils.html.format_html' imported but unused |
reviewbot | |
Col: 87 Missing semicolon. |
reviewbot | |
Col: 62 Missing semicolon. |
reviewbot |
- Summary:
-
ListEditDictionaryField Patch from Michelle Aubin.Custom Admin Emoji Panel (Djblets)
- Description:
-
~ [WIP] ListEditDictionaryField Patch from Michelle Aubin.
~ Adds a page to the admint panel which allows an admin to upload a custom emoji by uploading a name, shortcode, description, and image. These fields are editable whenever the user re-vists the page. The emoji data is loaded from, and saved into SiteConfiguration, while the image data is loaded from and saved to DefaultStorage.
+ + + + + + Further work that needs to be done:
+ * Enforcing mandatory fields that user must fill out before clicking "Save", so as to not raise an error. + * Adding labels to the form fields, and removing the extra "name" field at the very top of the form. + * Rendering a preview of the emoji when loading the page (through get_context() in EmojiFileUpload). - Testing Done:
-
+ Unit testing
+ Local testing - Commits:
-
Summary ID Author 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang - Diff:
-
Revision 2 (+1046 -296)
Checks run (2 failed)
flake8
-
Warning: Showing 30 of 55 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
JSHint
- Description:
-
~ Adds a page to the admint panel which allows an admin to upload a custom emoji by uploading a name, shortcode, description, and image. These fields are editable whenever the user re-vists the page. The emoji data is loaded from, and saved into SiteConfiguration, while the image data is loaded from and saved to DefaultStorage.
~ Adds a page to the admint panel which allows an admin to upload a custom emoji
+ by uploading a name, shortcode, description, and image. These fields are + editable whenever the user re-vists the page. The emoji data is loaded from, + and saved into SiteConfiguration, while the image data is loaded from and + saved to DefaultStorage. Further work that needs to be done:
~ * Enforcing mandatory fields that user must fill out before clicking "Save", so as to not raise an error. ~ * Adding labels to the form fields, and removing the extra "name" field at the very top of the form. ~ * Rendering a preview of the emoji when loading the page (through get_context() in EmojiFileUpload). ~ * Adding labels to the form fields, and removing the extra "name" field at the ~ very top of the form. ~ * Rendering a preview of the emoji when loading the page (through get_context() + in EmojiFileUpload). - Commits:
-
Summary ID Author 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang - Diff:
-
Revision 3 (+1062 -312)
Checks run (2 failed)
flake8
-
Warning: Showing 30 of 45 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
JSHint
- Description:
-
~ Adds a page to the admint panel which allows an admin to upload a custom emoji
~ Adds a page to the admin panel which allows an admin to upload a custom emoji
by uploading a name, shortcode, description, and image. These fields are editable whenever the user re-vists the page. The emoji data is loaded from, and saved into SiteConfiguration, while the image data is loaded from and saved to DefaultStorage. Further work that needs to be done:
* Adding labels to the form fields, and removing the extra "name" field at the very top of the form. * Rendering a preview of the emoji when loading the page (through get_context() in EmojiFileUpload).
-
This change incorporates a lot of things from Michelle Aubin's change. It makes it hard to know what parts should land from her change and what should land from yours. Can you instead rebase your work on top of hers, only post the range of commits for your work, and mark her review request as a dependency (Depends On field)?
-
This belongs with the Review Board change, since it's really specific to Review Board's implementation. Djblets should be limited to things that are more generic and reusable.
- Description:
-
~ Adds a page to the admin panel which allows an admin to upload a custom emoji
~ by uploading a name, shortcode, description, and image. These fields are ~ editable whenever the user re-vists the page. The emoji data is loaded from, ~ Adds a ListEditEmojiDictionaryField (inherited from Michelle Aubin's
~ ListEditDictionaryField class), which takes in a dictionary of values and ~ splits it into a tuple of (key, value1, value2, value3). - and saved into SiteConfiguration, while the image data is loaded from and - saved to DefaultStorage. ~ ~ EmojiFileInput class is a subclass of ClearableFileInput, which takes in a
+ file upload from the user, and saves it into the context variable. In future + implementations, the get_context() method can also be used to render image + previews if the file uploaded is a valid image file. Further work that needs to be done:
- * Adding labels to the form fields, and removing the extra "name" field at the - very top of the form. * Rendering a preview of the emoji when loading the page (through get_context() ~ in EmojiFileUpload). ~ in EmojiFileUpload). Right now, the uploaded image file is being passed as a + bytestream, but it needs to be passed as a file or image object in order + to be rendered. - Commits:
-
Summary ID Author 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 mxiuwang - Diff:
-
Revision 4 (+1305 -333)
Checks run (2 failed)
flake8
-
Warning: Showing 30 of 49 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
JSHint
- Commits:
-
Summary ID Author 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 mxiuwang - Diff:
-
Revision 5 (+457 -155)
Checks run (1 failed, 1 succeeded)
flake8
-
Warning: Showing 30 of 47 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Commits:
-
Summary ID Author 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 mxiuwang fb858a1db8f16a916ea1351af00163b280ced4f4 mxiuwang - Diff:
-
Revision 6 (+420 -192)
Checks run (1 failed, 1 succeeded)
flake8
-
Warning: Showing 30 of 46 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Commits:
-
Summary ID Author 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 mxiuwang fb858a1db8f16a916ea1351af00163b280ced4f4 mxiuwang 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 mxiuwang fb858a1db8f16a916ea1351af00163b280ced4f4 mxiuwang b0afa975bf77e71b0c3527ca4637bea1491f112a mxiuwang - Diff:
-
Revision 7 (+1273 -371)
Checks run (2 failed)
flake8
-
Warning: Showing 30 of 48 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
JSHint
- Description:
-
Adds a ListEditEmojiDictionaryField (inherited from Michelle Aubin's
ListEditDictionaryField class), which takes in a dictionary of values and splits it into a tuple of (key, value1, value2, value3). ~ EmojiFileInput class is a subclass of ClearableFileInput, which takes in a
~ file upload from the user, and saves it into the context variable. In future ~ EmojiFileInput class is a subclass of FileInput, which takes in a file
~ upload from the user, and saves it into the context variable. In future implementations, the get_context() method can also be used to render image ~ previews if the file uploaded is a valid image file. ~ previews if the file uploaded is a valid image file. - - - - Further work that needs to be done:
- * Rendering a preview of the emoji when loading the page (through get_context() - in EmojiFileUpload). Right now, the uploaded image file is being passed as a - bytestream, but it needs to be passed as a file or image object in order - to be rendered.
- Commits:
-
Summary ID Author 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 mxiuwang fb858a1db8f16a916ea1351af00163b280ced4f4 mxiuwang b0afa975bf77e71b0c3527ca4637bea1491f112a mxiuwang 2feb2a1b838640fd4496e505f7877ea5ebafbf72 mxiuwang 1f16add484e311fa95e175dc2310b48efaab08ba mxiuwang 7cc3931eab59f1db877bba4fe4b27d34bf7fa562 mxiuwang ad573006dac8d287f15765c2807432943beb0c94 mxiuwang 551239428bb72dbfa77d8921948c04ab12c184c2 mxiuwang 89a570f427670d8ae3bb95aa04466fa3f95bbf8e mxiuwang 96f4639e280373651b32fb61f8e9c54ebcdbf955 mxiuwang 8c4bd95ad19b9f9e923fec0b5b9ddedd738d74f8 mxiuwang fb858a1db8f16a916ea1351af00163b280ced4f4 mxiuwang b0afa975bf77e71b0c3527ca4637bea1491f112a mxiuwang 0930dd98450d3286095571053949b2be0a424357 mxiuwang - Diff:
-
Revision 8 (+1298 -388)