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

[font overview] Vastly improve preset glyphset selection #1967

Merged
merged 38 commits into from
Jan 21, 2025
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
4b00501
Fix pointer for popup menu
justvanrossum Jan 19, 2025
ccaff3a
Add friendly http error strings
justvanrossum Jan 19, 2025
a4ec4ae
Improve fetch error handling
justvanrossum Jan 19, 2025
96e8212
Beginnings of new/better preset glyphset dialog
justvanrossum Jan 19, 2025
5922765
Add 'suggest' link to new dialog; remove presets popup from edit dialog
justvanrossum Jan 20, 2025
12811f0
Plug in add custom glyph set
justvanrossum Jan 20, 2025
4face76
Rename function, refine dialog title
justvanrossum Jan 20, 2025
f95f77c
Move glyphset collection data to json file; fiddle with names
justvanrossum Jan 20, 2025
42e1591
give fetchJSON options arg, improve default caching behavior
justvanrossum Jan 20, 2025
9611770
The button is not only for 'add' anymore, so 'Save' seems more approp…
justvanrossum Jan 20, 2025
8995228
Remove no-cache default: no need for it after all
justvanrossum Jan 20, 2025
a02f203
Rename module
justvanrossum Jan 20, 2025
c70650b
Invalidate cache for edited glyph sets; prepare for more find-grained…
justvanrossum Jan 20, 2025
c070b5b
Allow collections to have global dataOptions
justvanrossum Jan 20, 2025
b4bb43e
Beginnings of tsv/csv parsing
justvanrossum Jan 20, 2025
c07c5c4
Add Black Foundry collection; add collection-level data options
justvanrossum Jan 20, 2025
acf0db7
Allow code point OR glyph name to be missing
justvanrossum Jan 20, 2025
28861cb
Add some Adobe char sets
justvanrossum Jan 20, 2025
43bf3e2
Log error on parse error
justvanrossum Jan 20, 2025
44af842
Refactor parsing per data format; guess row separator
justvanrossum Jan 20, 2025
8e2dd24
Prefix Black Foundry sets with BF
justvanrossum Jan 20, 2025
209a8cc
Add glyphset collection scrape script
justvanrossum Jan 20, 2025
8466f63
Refactor so we can load glyphsets in parallel, add loading indicator
justvanrossum Jan 20, 2025
a86bec3
Ensure the glyphset section is open when adding/editing
justvanrossum Jan 20, 2025
d287504
Actually, this is only needed when we add
justvanrossum Jan 20, 2025
0a3e117
Fix label alignment
justvanrossum Jan 20, 2025
1c21b98
Sort collections by name
justvanrossum Jan 20, 2025
b89b859
Remember last selected glyphset collection
justvanrossum Jan 20, 2025
8479dce
Remove unused css class, improve 'suggest' label
justvanrossum Jan 20, 2025
a9870f2
Improve button title
justvanrossum Jan 20, 2025
afba89a
Be more consistent with options, and allow to set class for label
justvanrossum Jan 21, 2025
4f72fbf
Fiddle with dialog layout / styling
justvanrossum Jan 21, 2025
2420a38
UI for TSV/CSV data format options
justvanrossum Jan 21, 2025
e62a48b
Wrap checkbox + label deeper, so we can set the 'display' propery on …
justvanrossum Jan 21, 2025
dac301e
Make UI switch between glyph-names and tsv/csv
justvanrossum Jan 21, 2025
84b5155
Move Note field
justvanrossum Jan 21, 2025
e0406cd
Provide default dataFormat
justvanrossum Jan 21, 2025
5e9327f
Improve error message
justvanrossum Jan 21, 2025
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
Prev Previous commit
Next Next commit
Add friendly http error strings
  • Loading branch information
justvanrossum committed Jan 19, 2025
commit ccaff3aa3a622f5b96d7570756774ee0f880a7a6
44 changes: 44 additions & 0 deletions src/fontra/client/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,3 +761,47 @@ export function bisect_right(a, x) {

return lo;
}

export const friendlyHttpStatus = {
200: "OK",
201: "Created",
202: "Accepted",
203: "Non-Authoritative Information",
204: "No Content",
205: "Reset Content",
206: "Partial Content",
300: "Multiple Choices",
301: "Moved Permanently",
302: "Found",
303: "See Other",
304: "Not Modified",
305: "Use Proxy",
306: "Unused",
307: "Temporary Redirect",
400: "Bad Request",
401: "Unauthorized",
402: "Payment Required",
403: "Forbidden",
404: "Not Found",
405: "Method Not Allowed",
406: "Not Acceptable",
407: "Proxy Authentication Required",
408: "Request Timeout",
409: "Conflict",
410: "Gone",
411: "Length Required",
412: "Precondition Required",
413: "Request Entry Too Large",
414: "Request-URI Too Long",
415: "Unsupported Media Type",
416: "Requested Range Not Satisfiable",
417: "Expectation Failed",
418: "I'm a teapot",
429: "Too Many Requests",
500: "Internal Server Error",
501: "Not Implemented",
502: "Bad Gateway",
503: "Service Unavailable",
504: "Gateway Timeout",
505: "HTTP Version Not Supported",
};