Commit graph

190 commits

Author SHA1 Message Date
Ian Prest
2edec9d375 Updated "profile" CSS styles
-- New OEM profile (renders same as DCS)
-- SA tweaked to sit a bit higher than DSA
-- Now showing a homing nub on all profiles (other than SA/DSA)
-- DSA/SA deep-dish made (slightly) more visible
2015-07-05 19:44:39 -04:00
Ian Prest
6d1d9efdca Bumped version t v0.12; updated CHANGELOG 2015-07-05 17:39:46 -04:00
Ian Prest
24e8f87982 Rearrange some of the presets. 2015-07-05 17:34:16 -04:00
Ian Prest
f290d0517f Show kbd name & author on the actual layout.
-- Linked to the rendered metadata screen.
2015-07-05 17:10:14 -04:00
Ian Prest
dd79d12d47 Cleaned up some of the presets. 2015-07-05 16:23:57 -04:00
Ian Prest
7b5da3b640 Fixed tiny serialization issue
-- Serializer was outputting the text color even if it was the same as
the default.
-- Also, now rounding numbers to four decimal places, so we don't output
numbers like 7.2499999999999.  :)
2015-07-05 15:50:55 -04:00
Ian Prest
7386b5eaf7 Prevent sorting in the "preset" dropdown.
-- Allows me to specify a sensible order, with most common presets at
the top.
2015-07-05 15:30:58 -04:00
Ian Prest
21d48b394e Tweaked notes rendering to handle blank "author" better. 2015-07-05 15:14:36 -04:00
Ian Prest
b7a8d28ed6 More directives to reduce boilerplate.
-- Most of the editor fields now converted; much smaller & more
readable/maintainable.
2015-07-05 15:04:40 -04:00
Ian Prest
f7d1655934 Directive for label editors, to reduce boilerplate
-- Eliminated ~100 lines of oft-repeated markup.
2015-07-05 13:04:32 -04:00
Ian Prest
198fddbe61 Directive for colorpickers, to reduce boilerplate
-- My first attempt at an Angular directive; trying to reduce the amount
of duplicated markup.
2015-07-05 12:26:41 -04:00
Ian Prest
a6b7053aec Fixed introduction of horizontal scrollbar 2015-07-05 10:47:15 -04:00
Ian Prest
10e7ff7669 Fixed formatting (and close button) for the alerts
-- latest bootstrap broke the formatting
-- switch to angular-bootstrap broke the close button
2015-07-05 10:39:31 -04:00
Ian Prest
6c8e583c3a Prevent wrapping color-swatch tooltips
-- also deleted some unused CSS rules
2015-07-05 10:17:15 -04:00
Ian Prest
29b95cc54d Shrunk textareas slightly to prevent scrolling w/large layouts. 2015-07-05 02:46:53 -04:00
Ian Prest
c3e6c81d18 Fixed resizing with shift+arrows
-- Incorrect call to Math.round
2015-07-05 02:44:18 -04:00
Ian Prest
b8fb293a02 Added markdown rendering support for the 'notes'
-- Switched from plain bootstrap to angular-ui-bootstrap (to fix some
interaction problems); this necessitated a number of markup changes for
the modals and dropdowns.
-- Can now "cancel" the options dialog.
-- Sprinkled the markup with ng-cloak to prevent early rendering
problems.
-- Fixed some copy/paste issues with previous form changes (labels were
incorrect)
2015-07-05 02:42:47 -04:00
Ian Prest
3967c99df2 Added an additional 'keyboard name' metadata field. 2015-07-04 23:20:17 -04:00
Ian Prest
3b11c8b9f6 Added metadata fields for "author" and "notes". 2015-07-04 21:38:04 -04:00
Ian Prest
f19d939278 Comprehensive style sweep to fix Bootstrap issues.
-- Upgrading to the latest Bootstrap broke a bunch of stuff, so I had to
go in and fix it.
-- While I was at it, I switched all the form controls to make better
use of the Bootstrap classes, so they look and reflow a bit better now.
2015-07-04 21:16:01 -04:00
Ian Prest
2f1be45e95 Fix up some formatting problems with the new Bootstrap
-- Also significantly cleaned up the formatting in the help dialog
2015-07-04 16:17:01 -04:00
Ian Prest
b9cacc15c1 Updated hint.css to latest (v1.3.5) 2015-07-04 16:09:31 -04:00
Ian Prest
53046e925d Added missing "hint.css" info to CONTRIB file 2015-07-04 16:09:05 -04:00
Ian Prest
b239ee8515 Updated to latest Bootstrap (v3.3.5) 2015-07-04 16:08:23 -04:00
Ian Prest
5b063b9b5e Can now set different colors for each text label on a keycap.
-- New color picker (angular-bootstrap-colorpicker)
-- Color picker placed beside each label field.
-- Can also drag & drop from palette to label fields (using
angular-dragdrop).
2015-07-04 01:39:20 -04:00
Ian Prest
103e822313 Fix serialization errors with rotated clusters.
-- If the first row in your layout was rotated, the x & y coordinates
didn't get output correctly.
-- The serializer didn't take into account that *both* x & y are updated
when *either* rx & ry are specified in the output; as a result, it would
mis-calculate the correct x & y coordinates for some rotated keys.
-- Fixes #57 and #61
2015-07-03 19:22:18 -04:00
Ian Prest
0b223c8228 Added simple "options" dialog.
1. Currently supports changing the default step/rotate size.
-- Inspired by something @D1SC0tech did in his fork (good idea!).
2. Now rounding values after modifications to avoid floating-point
errors.
3. Also fixed an error when trying to show the help dialog on FireFox.
2015-07-03 14:14:32 -04:00
Ian Prest
2ebc0579bc Remove old/unnecessary license file. 2015-07-03 01:26:52 -04:00
Ian Prest
c0b1814926 Call $scope.$apply() after upload so the UI updates right away. 2015-07-03 01:13:05 -04:00
Ian Prest
94a1900b46 Bumped version to 0.11; updated CHANGELOG. 2015-07-03 01:04:44 -04:00
Ian Prest
3f44b1f866 Added the ability to upload a JSON file.
-- "Upload" button on the raw-data tab
-- Drag & drop to either the raw-data editor, or to the main kb preview
area
2015-07-03 00:42:30 -04:00
Ian Prest
1bb8b02efd Added the ability to download the raw-data as JSON
-- Button on the "Raw Data" tab
-- Data is serialized to (pretty) JSON, then downloaded using
FileSaver.js
2015-07-02 23:20:15 -04:00
Ian Prest
91372ac3fa Add a link to the raw-data-syntax wiki page. 2015-07-02 22:38:36 -04:00
Ian Prest
21a98e8a42 Add links to CHANGELOG, CONTRIBUTORS, and LICENSE from website.
-- Load the Markdown files directly, parse them (with "marked") and put
the result in a model popup.
-- This way I don't need to maintain separate files for the website &
GitHub repo.
2015-07-02 21:35:01 -04:00
Ian Prest
bea12c5a12 Split readme into several files; added LICENSE.md 2015-07-02 21:33:27 -04:00
Ian Prest
5a6a20bc26 Fix navigation issue when using the menus.
-- Something caused the page to start reloading when you accessed the
menus (suspect the upgrade to Angular 1.2.28).
-- I've streamlined the $location usage to always "replace" the existing
URL.
-- When we get the $locationChangeStart event, I ignore events that
would cause navigation to "#" (e.g., using the menus).
-- IE had a related problem where it would prompt to navigate even if
the layout wasn't dirty; now instead of returning NULL (in
onBeforeUnload), we don't return anything, which fixes the IE issue.
2015-07-02 18:57:12 -04:00
Ian Prest
1568e1c7f9 Make F1 show the help screen 2015-07-02 18:04:38 -04:00
Ian Prest
620f0504ea Fix problem where first key always reset itself to 1x1 size.
-- width2/height2 weren't being set, so they had the default (1x1) size
-- Fixes #81.
2015-07-02 17:24:18 -04:00
Ian Prest
31c4d651b8 Fix Kinesis layout to parse properly, & update contributors in readme 2015-07-02 17:12:22 -04:00
Ian Prest
5846bac713 Merge branch 'master' of git://github.com/alerque/keyboard-layout-editor into alerque-master
Conflicts:
	layouts.json
2015-07-02 17:05:05 -04:00
Ian Prest
a5bfe89aae Added YBX color to "Signature Plastics / PBT" palette
-- Since I didn't have a color-chip to sample, I just used their photo
from http://www.keycapsdirect.com/images/colors/pbtYellows.JPG
-- I added a "not color corrected" disclaimer to the color name.
2015-07-02 16:30:48 -04:00
Ian Prest
4e5f2e66a1 Show an error if bad HTML is used in one of the label fields.
-- Exception that was thrown would prevent proper rendering of other
keys.
-- Now catching that exception and drawing an 'error' glyph in the label
field (with a tooltip).
2015-07-02 16:13:50 -04:00
Ian Prest
863ae49c3a Updated Angular to v1.2.28
-- latest version in the 'legacy' branch
2015-07-02 15:50:28 -04:00
Ian Prest
c2b0336dae Updated contributors section in readme 2015-07-02 15:27:40 -04:00
Ian Prest
3fa51617fe Updated "gb-retro-dsa" sample to demonstrate homing keys. 2015-07-02 15:05:09 -04:00
Jordi Orlando
1ab7c771f5 Add DSA dish
Conflicts:
	kb.css
2015-07-02 14:56:41 -04:00
Ian Prest
d4d83f6e53 Added Favicon
-- hand-drawn, based on the Font-Awedome glyph
2015-07-02 14:46:53 -04:00
Ian Prest
8add9dc5ff Changed how I represented the PETSCII glyphs on the VIC-20 layout 2015-07-02 14:16:17 -04:00
Ian Prest
01e8936958 Removed "z-index" from CSS for PETSCII glyphs
... it didn't help with the rendering, but it *did* screw up the mouse
interactions.
2015-06-29 22:10:37 -04:00
Ian Prest
1f4b6b9e3b Cleaned up the VIC-20 sample, added C64 font to render PETSCII box-drawing characters
-- C64 font from http://style64.org/c64-truetype
2015-06-29 21:57:47 -04:00