SignPuddle 3 organizes user interface elements into interface collections. Interface collections are available in three different forms: database, plain text files, and JSON objects
Each collection is available as an SQLite database. These databases are the primary source and all edits are directly applied to the database.
table entry
key
message
description
icon
user
created_at
updated_at
Each collection is available as a plain text field where each entry occupies its own line. Each entry contains multiple fields that are divided by tab characters. The plain text files are designed for easy import and export from the databases.
key /t message /t description /t icon /t user /t created_at /t updated_at
The interface JSON data file is an object. Each key contains an object with three properties: message, description, icon, and updated_at.
{ “name”: “en-US-interface-sp3”, “data”: { “key.example.one”: { “message”: “example message”, “description”: “example description”, “icon”: “example”, “updated_at”: “date-time” } } }
Resources related to interface collections
Source: ApiTxt format and JSON objects
Documents: API Blueprint and Stand Alone HTML
Live Page: API Interface and JavaScript
Parameters | |||
---|---|---|---|
name |
string
sp3
|
partial interface name |
Headers | |
---|---|
Content-Type | text/plain |
text/plain
["en-US-interface-sp3"]
Access to available interfaces
Parameters | |||
---|---|---|---|
name |
string
en-US-interface-sp3
|
The name of an interface |
|
update |
number
1
|
Forces a rewrite of the interface for json and txt formats |
Headers | |
---|---|
If-Modified-Since | 2019-01-16T16:56:19.175Z |
null
Headers | |
---|---|
Content-Type | text/plain |
text/plain
print.buttons.main message description icon
Access to interface keys
Parameters | |||
---|---|---|---|
name |
string
en-US-interface-sp3
|
The name of an interface |
Headers | |
---|---|
If-Modified-Since | 2019-01-16T16:56:19.175Z |
Pass | 724fd4b4438fba9d0c5ab89d0833e5c9 |
null
Headers | |
---|---|
Content-Type | text/plain |
text/plain
["print.buttons.main"]
Search interface for text
Parameters | |||
---|---|---|---|
name |
string
en-US-interface-sp3
|
The name of an interface |
|
text |
string
SignPuddle
|
The text for searching |
Headers | |
---|---|
Pass | 724fd4b4438fba9d0c5ab89d0833e5c9 |
null
Headers | |
---|---|
Content-Type | text/plain |
text/plain
[
{
"key": "print.buttons.main",
"message": "Print it!"
}
]
Entries for interface
Parameters | |||
---|---|---|---|
name |
string
en-US-interface-sp3
|
The name of an interface |
Headers | |
---|---|
Content-Type | application/json |
Pass | 724fd4b4438fba9d0c5ab89d0833e5c9 |
application/json
{"key":"new.key.one", "message":"UI text","description":"about the text","icon":"search"}
Headers | |
---|---|
Content-Type | text/plain |
text/plain
...
Specific entries for interface
Parameters | |||
---|---|---|---|
name |
string
en-US-interface-sp3
|
The name of an interface |
|
key |
string
system.button.open
|
The name of an interface key |
Headers | |
---|---|
If-Modified-Since | 2019-01-16T16:56:19.175Z |
Pass | 724fd4b4438fba9d0c5ab89d0833e5c9 |
null
Headers | |
---|---|
Content-Type | text/plain |
text/plain
...
Parameters | |||
---|---|---|---|
name |
string
en-US-interface-sp3
|
The name of an interface |
|
key |
string
system.button.open
|
The name of an interface key |
Headers | |
---|---|
Pass | 724fd4b4438fba9d0c5ab89d0833e5c9 |
{"key":"new.key.one", "message":"UI text","description":"about the text","icon":"search"}
Headers |
---|
Parameters | |||
---|---|---|---|
name |
string
en-US-interface-sp3
|
The name of an interface |
|
key |
string
system.button.open
|
The name of an interface key |
Headers | |
---|---|
Pass | 724fd4b4438fba9d0c5ab89d0833e5c9 |
null
Headers |
---|