Skip to content
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
34 changes: 31 additions & 3 deletions projects/1.20-fabric/assets/hexweb/hexweb/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
{
"block.hexweb.impetus.socket": "Wandering Impetus",

"hexweb.iota.response": "HTTPResponse{%s}",

"hexweb.mishap.invalid_json_key": "The \"%s\" key is not present within the JsonIota!",
"hexweb.mishap.cannot_json": "The %s iota has no direct Json translation!",
"hexweb.mishap.too_early": "You tried accessing a HTTP response before it arrived!",
"hexweb.mishap.blacklist_url": "This URL is blacklisted! Attempted: %s",
"hexweb.mishap.packet_too_big": "The data you attempted to send is too big! Size of %s bytes is bigger than 65535 bytes!",
"hexweb.mishap.no_socket": "The Socket with ID %s does not exist!",
"hexcasting.mishap.invalid_value.class.json": "a json object",
"hexcasting.mishap.invalid_value.class.response": "a HTTP response",
"hexcasting.mishap.invalid_value.class.method": "a string value matching any HTTP request method except CONNECT (GET, FETCH, POST, etc)",
"hexcasting.mishap.invalid_value.class.headers.list": "a list of key-value string pairs ([key, value, key,...])",
"hexcasting.mishap.invalid_value.class.headers.json": "a json with only string values",
"hexcasting.mishap.invalid_value.class.headers": "a list of key-value string pairs or json with only string values",
"hexcasting.mishap.invalid_value.class.body": "a string or json",

"hexweb.entry.json_patterns": "JSON Patterns",
"hexweb.page.json_patterns.entry": "These patterns were taken from a series of notes scrawled on the walls of the room of a Douglas Crockford shortly before their disappearence.$(br)$(br)They describe ways of creating and manipulating a dictionary-like object which uses Strings for keys and a select range of iotas as values. I wonder what the practical applications are...",
Expand All @@ -22,9 +31,28 @@
"hexweb.page.json_patterns.set_element": "Sets the given iota at the given key. Setting a Garbage iota removes the key.",

"hexweb.entry.http_spells": "HTTP Spells",
"hexweb.page.http_spells.entry": "While pondering the depths of one's mind, Sir Bernes-Lee caught a glimpse into another universe. With this view fresh in his mind, he quickly conjured a JSON object, imbued it with information, and sent it hurdling into the other universe.$(br)$(br)These are the patterns recovered after Berners-Lee was found dead having received enough information back to fry his mind.",
"hexweb.page.http_spells.entry": "While pondering the depths of one's mind, Sir Bernes-Lee caught a glimpse into another universe. With this view fresh in his mind, he quickly conjured a JSON object, imbued it with information, and sent it hurdling into the other universe.$(br)These are the patterns recovered after Berners-Lee was found dead having received enough information back to fry his mind.",
"hexweb.page.http_spells.explanation": "To use the following pattern, one needs a $(thing)URL$() as a string alone.$(br)Optionally, one may also include a $(thing)HTTP method$() as a string (defaults to GET if omitted), $(thing)headers$() as either a list of key-value string pairs ([key, value,...]) or a JSON object with string values, and a $(thing)body$() as either a JSON or a string.$(br2)Supported $(thing)HTTP Methods$():$(li)GET$(li)POST$(li)PUT$(li)DELETE$(li)HEAD$(li)OPTIONS$(li)PATCH$(li)TRACE",
"hexcasting.action.hexweb:request": "Request",
"hexweb.page.http_spells.request": "Sends an HTTP request made of the given data, method, and headers to the provided URL.$(br2)The Response is truthy if a response is received.",
"hexweb.page.http_spells.request": "$(br)Sends an HTTP request to the given $(thing)URL$(). Optionally, the $(thing)method$() used, $(thing)headers$() attached, and the $(thing)body$() of data sent with it may also be specified. Returns a $(thing)Response$() which will be Truthy when the response is received.",
"hexcasting.action.hexweb:get_response": "Get Response",
"hexweb.page.http_spells.get_response": "Given a Response Iota, attempt to parse the results. Will Mishap if too early or an IOException is thrown."
"hexweb.page.http_spells.get_response": "Given a Response from an HTTP request, attempt to parse the results. Will Mishap if too early or an error is thrown.",

"hexweb.entry.socket_patterns": "Socket Patterns",
"hexweb.page.socket_patterns.entry": "With the Enlightened Mind, I can perceive beyond our reality and call upon faint connections to others. With the following device and patterns, I can focus this perception and gather information from these other realities.",
"hexweb.page.brainsweeping.impetus_socket": "This device, the Wandering Impetus, will allow me to narrow down and focus this new perception, allowing the transfer of information between realities!",
"hexweb.page.socket_patterns.usage": "To utilize the Wandering Impetus, once must place it as part of a Spell Circle. Then, use the Establish Spell to establish a socket connection. Once that is done, the Impetus is ready.$(br)$(br)Upon the Socket receiving data, the Impetus will trigger the tick after, providing the Wave with the received data as a list of strings.",
"hexcasting.action.hexweb:read": "Cerf's Reflection",
"hexweb.page.socket_patterns.read": "Utilizing the Wandering Impetus used to trigger the Spell Circle, I can attempt to poll the received data queue and, upon success, receive a string iota. Failure returns a null iota.",
"hexcasting.action.hexweb:get_host": "Kahn's Reflection",
"hexweb.page.socket_patterns.get_host": "Given the position for a Wandering Impetus, attempts to retrieve the Socket's host as a string iota. Failure or absence returns a null iota.",
"hexcasting.action.hexweb:get_port": "Kahn's Reflection II",
"hexweb.page.socket_patterns.get_port": "Given the position for a Wandering Impetus, it will retrieve the Socket's port as a double iota.",

"hexweb.entry.socket_spells": "Socket Spells",
"hexweb.page.socket_spells.entry": "I must be mad. I have further augmented the device to allow for sending information to those other realities. SOme even whisper back in cyphers I may yet understand...",
"hexcasting.action.hexweb:send": "Send",
"hexweb.page.socket_spells.send": "Utilizing the Socket Impetus used to trigger the Spell Circle, this sends the provided data through the Socket's connection.",
"hexcasting.action.hexweb:set": "Establish",
"hexweb.page.socket_spells.set": "Given the position for a Socket Impetus, attempts to establish a new Socket connection."
}
Loading
Loading