Tim Abbott
2b8324b778
emoji: Fix caching permissions issues.
...
Previously, you needed to be root to update the emoji cache, which
caused problems with how Zulip is upgraded in production.
2016-10-25 17:52:19 -07:00
Prabhakar Gupta
bc6421fbfb
tools: Remove empty wrapper script build_emoji.
...
This renames the old `emoji_dump.py` to `build_emoji`, removing the
old shell essentially empty shell script. `emoji_dump.py` was always
a weird name, and this makes it a bit easier to read the code for this
system.
2016-10-20 22:57:45 -07:00
Tim Abbott
4a4664d268
mypy: Remove a bunch of now-unnecessary type: ignore annotations.
...
Since mypy and typeshed have advanced a lot over the last several
months, we no longer need these `type: ignore` annotations.
2016-10-17 11:48:34 -07:00
Umair Khan
e0c10ed1e8
Cache emoji dump output.
...
This saves a bunch of time building release tarballs, provisioning,
and upgrading Zulip from git that was spent regenerating the Zulip
emoji sprite sheet.
[commit message tweaked by tabbott]
2016-10-10 11:15:43 -07:00
Umair Khan
b6ad24b11b
Fix names of sprite emojis.
2016-09-30 10:42:52 -07:00
Tim Abbott
5fcc8146c1
emoji_dump: Clean up spammy sprite creation output.
...
Glue apparently prints 1 line per file being processed.
2016-09-14 11:49:55 -07:00
Umair Khan
6c21d7a2c8
Annotate tools/setup/emoji_dump/emoji_dump.py.
2016-09-12 08:10:49 -07:00
Tim Abbott
24906f7678
emoji_dump: Update SIZE to 136x136 to reflect new emoji set.
...
I'm not entirely sure that this is correct, but it suffices to make
the spritesheet emoji have the right size.
2016-09-08 15:18:04 -07:00
Tim Abbott
a4536cca1e
emoji_dump: Generate a sprite sheet for the Zulip emoji.
2016-09-08 15:16:58 -07:00
Tim Abbott
abf85e7fbd
emoji_dump: Add warning for fallback to black/white.
...
I don't think the black/white fallback code is actually used by
default, and thus when it is used, it's usually a sign that something
is broken. We should throw an error, but at the very least it makes
sense to print a warning.
2016-09-08 15:05:38 -07:00
Tim Abbott
aca6636729
emoji_dump: Fix buggy path management.
...
In d583710f7c
, I apparently broke the
color emoji handling, which was masked (for test purposes) by the fact
that we catch an expection if color doesn't work and in that case fall
back to black and white emoji.
2016-09-08 15:04:09 -07:00
Tim Abbott
a6fffe5120
emoji_dump: Move size constants to top of file.
2016-09-08 14:30:20 -07:00
Tim Abbott
d583710f7c
emoji_dump: Refactor path code to be a bit cleaner.
2016-09-08 14:27:47 -07:00
Tim Abbott
b200c6cdc0
Move assets/ to live under static/.
...
This decreases the clutter in the root directory of the Zulip
repository.
2016-08-26 10:23:38 -07:00
Taranjeet Singh
b82836a901
tools/setup/emoji_dump/emoji_dump.py: Move bitmaps & *.ttx to var/.
...
Also update .gitignore to remove the old .gitignore markings for
these files' old locations.
2016-08-02 15:18:36 -07:00
James Porter
2a8e8129d1
Make emoji_dump delete old ttx files on start.
2016-06-04 17:05:48 -07:00
James Porter
f5f2d72178
Wrap main bit of emoji_dump.py in a main function.
2016-06-04 17:05:48 -07:00
James Porter
9d58624359
Minor reformatting of emoji_dump.py.
2016-06-04 17:05:48 -07:00
James Porter
d008d96597
Update Emoji set.
2016-06-04 17:05:48 -07:00
Eklavya Sharma
149938d468
Change shebangs from python2.7 to python.
2016-05-29 05:03:08 -07:00
Umair Khan
1161862b07
Move tools/emoji_dump to tools/setup/.
2016-05-26 18:28:14 +05:00