1
This commit is contained in:
@@ -0,0 +1,162 @@
|
||||
.DS_Store
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
share/python-wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
MANIFEST
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.nox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*.cover
|
||||
*.py,cover
|
||||
.hypothesis/
|
||||
.pytest_cache/
|
||||
cover/
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
db.sqlite3-journal
|
||||
|
||||
# Flask stuff:
|
||||
instance/
|
||||
.webassets-cache
|
||||
|
||||
# Scrapy stuff:
|
||||
.scrapy
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
.pybuilder/
|
||||
target/
|
||||
|
||||
# Jupyter Notebook
|
||||
.ipynb_checkpoints
|
||||
|
||||
# IPython
|
||||
profile_default/
|
||||
ipython_config.py
|
||||
|
||||
# pyenv
|
||||
# For a library or package, you might want to ignore these files since the code is
|
||||
# intended to run in multiple environments; otherwise, check them in:
|
||||
# .python-version
|
||||
|
||||
# pipenv
|
||||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
||||
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
||||
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
||||
# install all needed dependencies.
|
||||
#Pipfile.lock
|
||||
|
||||
# poetry
|
||||
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
||||
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
||||
# commonly ignored for libraries.
|
||||
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
||||
#poetry.lock
|
||||
|
||||
# pdm
|
||||
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
||||
#pdm.lock
|
||||
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
||||
# in version control.
|
||||
# https://pdm.fming.dev/#use-with-ide
|
||||
.pdm.toml
|
||||
|
||||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
||||
__pypackages__/
|
||||
|
||||
# Celery stuff
|
||||
celerybeat-schedule
|
||||
celerybeat.pid
|
||||
|
||||
# SageMath parsed files
|
||||
*.sage.py
|
||||
|
||||
# Environments
|
||||
.env
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
ENV/
|
||||
env.bak/
|
||||
venv.bak/
|
||||
|
||||
# Spyder project settings
|
||||
.spyderproject
|
||||
.spyproject
|
||||
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
|
||||
# mkdocs documentation
|
||||
/site
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
.dmypy.json
|
||||
dmypy.json
|
||||
|
||||
# Pyre type checker
|
||||
.pyre/
|
||||
|
||||
# pytype static type analyzer
|
||||
.pytype/
|
||||
|
||||
# Cython debug symbols
|
||||
cython_debug/
|
||||
|
||||
# PyCharm
|
||||
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
||||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
+1
@@ -0,0 +1 @@
|
||||
# EmojiKitchen
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
SERVER_NAME = "localhost:5000"
|
||||
DEBUG = True
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import requests
|
||||
from flask import Flask, render_template
|
||||
|
||||
# Flask Goodness
|
||||
app = Flask(__name__, instance_relative_config = True)
|
||||
app.config.from_object("config")
|
||||
app.config.from_pyfile("config.py", silent = True)
|
||||
|
||||
def getEmojiCombinations():
|
||||
try:
|
||||
return { emoji : { (left if left != emoji else right) : (left.replace("-", "-u"), right.replace("-", "-u"), date) for left, right, date in map(lambda c: c.values(), combinations) } for emoji, combinations in requests.get("https://raw.githubusercontent.com/xsalazar/emoji-kitchen/main/src/Components/emojiData.json").json().items() }
|
||||
except:
|
||||
return {}
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
return render_template("index.html", combinations = getEmojiCombinations(), size = 64)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 212 B |
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background-image: url('img/background.png');
|
||||
background-attachment: fixed;
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.full-size {
|
||||
overflow: scroll;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sticky-table-headers-top {
|
||||
/* Stick to the left */
|
||||
top: 0;
|
||||
position: sticky;
|
||||
|
||||
/* Displayed on top of other rows when scrolling */
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.sticky-table-headers-left {
|
||||
/* Stick to the left */
|
||||
left: 0;
|
||||
position: sticky;
|
||||
|
||||
/* Displayed on top of other rows when scrolling */
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.emojiSquared {
|
||||
background-color: #9ca3af;
|
||||
box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034),
|
||||
0 6.7px 5.3px rgba(0, 0, 0, 0.048),
|
||||
0 12.5px 10px rgba(0, 0, 0, 0.06),
|
||||
0 12.3px 7.9px rgba(0, 0, 0, 0.072),
|
||||
0 11.8px 3.4px rgba(0, 0, 0, 0.086),
|
||||
0 10px 8px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Emoji Kitchen</title>
|
||||
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
||||
<link href='http://fonts.googleapis.com/css?family=Poiret+One|Open+Sans:700,400' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<div class="full-size">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr class="emojiSquared sticky-table-headers-top">
|
||||
<th class="sticky-table-headers-left emojiSquared">
|
||||
<img width="{{ size }}px" height="{{ size }}px" src="static/img/origin.png">
|
||||
</th>
|
||||
{% for emoji in combinations.keys() %}
|
||||
<th class>
|
||||
<img width="{{ size }}px" height="{{ size }}px" src="https://raw.githubusercontent.com/googlefonts/noto-emoji/main/svg/emoji_u{{ emoji.replace('-fe0f', '').replace('-' , '_') }}.svg" alt="{{ emoji }}" />
|
||||
</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% for rowEmoji in combinations.keys() %}
|
||||
<tr>
|
||||
<td class="emojiSquared sticky-table-headers-left">
|
||||
<img width="{{ size }}px" height="{{ size }}px" src="https://raw.githubusercontent.com/googlefonts/noto-emoji/main/svg/emoji_u{{ rowEmoji.replace('-fe0f', '').replace('-' , '_') }}.svg" alt="{{ rowEmoji }}" />
|
||||
</td>
|
||||
|
||||
{% for columnEmoji in combinations.keys() %}
|
||||
<td class="{{ 'emojiSquared' if rowEmoji == columnEmoji else '' }}">
|
||||
{% if columnEmoji not in combinations[rowEmoji] %}
|
||||
<img width="{{ size }}px" height="{{ size }}px" alt="" />
|
||||
{% else %}
|
||||
{% for left, right, date in [combinations[rowEmoji][columnEmoji]] %}
|
||||
<img width="{{ size }}px" height="{{ size }}px" src="https://www.gstatic.com/android/keyboard/emojikitchen/{{ date }}/u{{ left }}/u{{ left }}_u{{ right }}.png" loading="lazy" alt="u{{ left }}_u{{ right }}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+1
-1
@@ -6,9 +6,9 @@
|
||||
<link rel="stylesheet" href="/ecstra/ecsta.css">
|
||||
|
||||
<center><h1>this site is under construction </h1></center>
|
||||
<a href="/index2.html">home</a>
|
||||
<a href="/mincrat.html">games</a>
|
||||
<a href="/batu.html">bata games</a>
|
||||
<a href="EmojiKitchen-main/EmojiKitchen-main/templates/index.html">try me out well site is down</a>
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Classwork</title>
|
||||
hi
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user