Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: clean codebase #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed bg/carbonfibre/carbon-slice.jpg
Binary file not shown.
Binary file removed bg/carbonfibre/carbon_texture1869.png
Binary file not shown.
Binary file removed bg/carbonfibre/carbon_texture1873.png
Binary file not shown.
Binary file removed bg/carbonfibre/carbon_texture1874.png
Binary file not shown.
Binary file removed bg/carbonfibre/carbon_texture1876.jpg
Binary file not shown.
Binary file removed bg/carbonfibre/carbon_texture1877.jpg
Binary file not shown.
Binary file removed bg/carbonfibre/carbon_texture1879.png
Binary file not shown.
Binary file removed bg/carbonfibre/carbon_texture1882.jpg
Binary file not shown.
Binary file removed bg/leather/black.jpg
Binary file not shown.
Binary file removed bg/leather/brown.jpg
Binary file not shown.
Binary file removed bg/leather/leather-slice.jpg
Binary file not shown.
Binary file removed bg/leather/leather_texture1051.jpg
Binary file not shown.
Binary file removed bg/leather/leather_texture394.jpg
Binary file not shown.
Binary file removed bg/leather/leather_texture404.jpg
Binary file not shown.
Binary file removed bg/leather/leather_texture4315.jpg
Binary file not shown.
Binary file removed bg/leather/leather_texture4326.jpg
Binary file not shown.
Binary file removed bg/leather/leather_texture4327.jpg
Binary file not shown.
Binary file removed bg/leather/leather_texture4329.jpg
Binary file not shown.
Binary file removed bg/leather/leather_texture4337.jpg
Binary file not shown.
Binary file removed bg/leather/leather_texture4378.jpg
Binary file not shown.
Binary file removed bg/marble/marble-slice.jpg
Binary file not shown.
Binary file removed bg/marble/marble_texture1809.jpg
Binary file not shown.
Binary file removed bg/marble/marble_texture1820.jpg
Binary file not shown.
Binary file removed bg/marble/marble_texture4496.jpg
Binary file not shown.
Binary file removed bg/marble/marble_texture4509.jpg
Binary file not shown.
Binary file removed bg/marble/marble_texture4510.jpg
Diff not rendered.
Binary file removed bg/marble/marble_texture4511.jpg
Diff not rendered.
Binary file removed bg/marble/marble_texture4512.jpg
Diff not rendered.
Binary file removed bg/marble/marble_texture4515.jpg
Diff not rendered.
Binary file removed bg/marble/marble_texture4617.jpg
Diff not rendered.
Binary file removed bg/marble/marble_texture4653.jpg
Diff not rendered.
Binary file removed bg/metal/aluminum_texture1642.jpg
Diff not rendered.
Binary file removed bg/metal/aluminum_texture1644.jpg
Diff not rendered.
Binary file removed bg/metal/aluminum_texture1645.jpg
Diff not rendered.
Binary file removed bg/metal/aluminum_texture1649.jpg
Diff not rendered.
Binary file removed bg/metal/aluminum_texture1735.jpg
Diff not rendered.
Binary file removed bg/metal/aluminum_texture1738.jpg
Diff not rendered.
Binary file removed bg/metal/aluminum_texture1784.jpg
Diff not rendered.
Binary file removed bg/metal/iron_texture1744.jpg
Diff not rendered.
Binary file removed bg/metal/iron_texture1745.jpg
Diff not rendered.
Binary file removed bg/metal/iron_texture61.jpg
Diff not rendered.
Binary file removed bg/metal/iron_texture66.jpg
Diff not rendered.
Binary file removed bg/metal/metal-slice.jpg
Diff not rendered.
Binary file removed bg/metal/titanium_texture1752.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-wa.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-war.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-wbo.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-wck.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-wea.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-wfk.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-wfm.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-wfo.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-wq.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-wv.jpg
Diff not rendered.
Binary file removed bg/plastic/abs-ww.jpg
Diff not rendered.
Binary file removed bg/plastic/pbt-black.png
Diff not rendered.
Binary file removed bg/plastic/pbt-tgj.png
Diff not rendered.
Binary file removed bg/plastic/pbt-tt.png
Diff not rendered.
Binary file removed bg/plastic/pbt-up.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wan.png
Diff not rendered.
Binary file removed bg/plastic/pbt-was.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wat.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wbk.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wbr.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wcs.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wcv.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wcx.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wdg.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wfj.png
Diff not rendered.
Binary file removed bg/plastic/pbt-wfn.png
Diff not rendered.
Binary file removed bg/plastic/plastic-slice.jpg
Diff not rendered.
Binary file removed bg/wood/Red_Mahogany_Wood.jpg
Diff not rendered.
Binary file removed bg/wood/bamboo-dark.jpg
Diff not rendered.
Binary file removed bg/wood/bamboo.jpg
Diff not rendered.
Binary file removed bg/wood/birch-european-white.jpg
Diff not rendered.
Binary file removed bg/wood/birch-yellow.jpg
Diff not rendered.
Binary file removed bg/wood/birch.jpg
Diff not rendered.
Binary file removed bg/wood/cherry.jpg
Diff not rendered.
Binary file removed bg/wood/chestnut-american.jpg
Diff not rendered.
Binary file removed bg/wood/ebony-macassar.jpg
Diff not rendered.
Binary file removed bg/wood/fir-white.jpg
Diff not rendered.
Binary file removed bg/wood/mahogany-african.jpg
Diff not rendered.
Binary file removed bg/wood/maple-orange.jpg
Diff not rendered.
Binary file removed bg/wood/maple-yellow.jpg
Diff not rendered.
Binary file removed bg/wood/moringa.jpg
Diff not rendered.
Binary file removed bg/wood/oak.jpg
Diff not rendered.
Binary file removed bg/wood/pine-oregon.jpg
Diff not rendered.
Binary file removed bg/wood/sandalwood-african.jpg
Diff not rendered.
Binary file removed bg/wood/teak-african.jpg
Diff not rendered.
Binary file removed bg/wood/teak-golden.jpg
Diff not rendered.
Binary file removed bg/wood/walnut.jpg
Diff not rendered.
Binary file removed bg/wood/wood-slice.jpg
Diff not rendered.
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.12.0",
"homepage": "http://www.keyboard-layout-editor.com",
"authors": [
"Ian Prest <github.com@ian.prest.ca>"
"Ian Prest <github.com@ian.prest.ca>",
"Timur Ismagilov <bouncepaw2@ya.ru>"
],
"description": "A website to edit layouts for physical computer keyboards.",
"main": "kb.html",
Expand Down
76 changes: 76 additions & 0 deletions build/config.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_nghttp2": "false",
"debug_node": "false",
"enable_lto": "false",
"enable_pgo_generate": "false",
"enable_pgo_use": "false",
"force_dynamic_crt": 0,
"host_arch": "x64",
"icu_gyp_path": "tools/icu/icu-system.gyp",
"icu_small": "false",
"icu_ver_major": "65",
"is_debug": 0,
"llvm_version": "0.0",
"napi_build_version": "6",
"node_byteorder": "little",
"node_debug_lib": "false",
"node_enable_d8": "false",
"node_install_npm": "false",
"node_module_version": 79,
"node_no_browser_globals": "false",
"node_prefix": "/usr",
"node_release_urlbase": "",
"node_report": "true",
"node_shared": "false",
"node_shared_brotli": "false",
"node_shared_cares": "true",
"node_shared_http_parser": "false",
"node_shared_libuv": "true",
"node_shared_nghttp2": "true",
"node_shared_openssl": "true",
"node_shared_zlib": "true",
"node_tag": "",
"node_target_type": "executable",
"node_use_bundled_v8": "true",
"node_use_dtrace": "false",
"node_use_etw": "false",
"node_use_node_code_cache": "true",
"node_use_node_snapshot": "true",
"node_use_openssl": "true",
"node_use_v8_platform": "true",
"node_with_ltcg": "false",
"node_without_node_options": "false",
"openssl_fips": "",
"openssl_is_fips": "false",
"shlib_suffix": "so.79",
"target_arch": "x64",
"v8_enable_31bit_smis_on_64bit_arch": 0,
"v8_enable_gdbjit": 0,
"v8_enable_i18n_support": 1,
"v8_enable_inspector": 1,
"v8_enable_pointer_compression": 0,
"v8_no_strict_aliasing": 1,
"v8_optimized_debug": 1,
"v8_promise_internal_field_count": 1,
"v8_random_seed": 0,
"v8_trace_maps": 0,
"v8_use_siphash": 1,
"want_separate_host_toolset": 0,
"nodedir": "/root/.cache/node-gyp/13.11.0",
"standalone_static_library": 1,
"g": "true",
"unsafe_perm": "true"
}
}
2 changes: 1 addition & 1 deletion deploy/authorization/kle.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=kle

[Service]
ExecStartPre=fuser -k 81/tcp
ExecStart=<absolute_path>/deploy/authorization/server.py --client-id <client_id> --client-secret <client_secret> --port 81
ExecStart=/home/bouncepaw/src/keyboard-layout-editor/deploy/authorization/server.py --client-id <client_id> --client-secret <client_secret> --port 81
ExecStopPost=fuser -k 81/tcp
Restart=on-failure

Expand Down
6 changes: 3 additions & 3 deletions deploy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ server {
listen 80;

location / {
root /root/keyboard-layout-editor/;
root /home/bouncepaw/src/keyboard-layout-editor/;
index kb.html;
}

location ~ \.(html|js|css|ico|woff|woff2|ttf|map|jpg|png)$ {
root /root/keyboard-layout-editor/;
root /home/bouncepaw/src/keyboard-layout-editor/;
}

location ~ ^/authorization {
proxy_pass http://127.0.0.1:81;
}
}
}
246 changes: 33 additions & 213 deletions kb.html

Large diffs are not rendered by default.

Loading