diff --git a/apps/cory/admin.json b/apps/cory/admin.json index cf9f2b47..b04c06ca 100644 --- a/apps/cory/admin.json +++ b/apps/cory/admin.json @@ -1 +1 @@ -{"type":"tildefriends-app","files":{"app.js":"&uhGJsy5+qBgOgEgMqCTDasK+C+GWGptHKfPiAsD5eGA=.sha256","index.html":"&D3JwdPXy/QsLXkmwNDrBFXdzxfqO1/JGxfqEArnS5v4=.sha256","lit.min.js":"&3FfrVflmGr0n4lvN0GriN1Qz1lEw31SbZxRSJrcXR28=.sha256","script.js":"&AUPPnLdyXVocBHQwqWZ7rMdgj0h0/dxEERJz4+RoRQ0=.sha256"}} \ No newline at end of file +{"type":"tildefriends-app","files":{"app.js":"&uhGJsy5+qBgOgEgMqCTDasK+C+GWGptHKfPiAsD5eGA=.sha256","index.html":"&D3JwdPXy/QsLXkmwNDrBFXdzxfqO1/JGxfqEArnS5v4=.sha256","lit.min.js":"&3FfrVflmGr0n4lvN0GriN1Qz1lEw31SbZxRSJrcXR28=.sha256","script.js":"&TZ2ymD6cFVUjQleGcDslt8apjp7k3xLlfv2F8rQVM4I=.sha256"}} \ No newline at end of file diff --git a/apps/cory/admin/script.js b/apps/cory/admin/script.js index eb06531e..858a6de4 100644 --- a/apps/cory/admin/script.js +++ b/apps/cory/admin/script.js @@ -25,17 +25,30 @@ window.addEventListener('load', function() { function input_template(key, description) { if (description.type === 'boolean') { return html` - - - - ${description.description} + + +
+ + ${description.description} +
+ `; + } else if (description.type === 'textarea') { + return html` + + +
+ + ${description.description} +
`; } else { return html` - + - - ${description.description} +
+ + ${description.description} +
`; } } @@ -56,7 +69,9 @@ window.addEventListener('load', function() { const page_template = (data) => html`

Global Settings

- ${Object.keys(data.settings).sort().map(x => html`
${input_template(x, data.settings[x])}
`)} +
+ ${Object.keys(data.settings).sort().map(x => html`${input_template(x, data.settings[x])}`)} +
${users_template(data.users)}
`; render(page_template(g_data), document.body); diff --git a/apps/cory/ssblit/app.js b/apps/cory/ssb/app.js similarity index 100% rename from apps/cory/ssblit/app.js rename to apps/cory/ssb/app.js diff --git a/apps/cory/ssblit/commonmark-hashtag.js b/apps/cory/ssb/commonmark-hashtag.js similarity index 100% rename from apps/cory/ssblit/commonmark-hashtag.js rename to apps/cory/ssb/commonmark-hashtag.js diff --git a/apps/cory/ssblit/commonmark-linkify.js b/apps/cory/ssb/commonmark-linkify.js similarity index 100% rename from apps/cory/ssblit/commonmark-linkify.js rename to apps/cory/ssb/commonmark-linkify.js diff --git a/apps/cory/ssblit/commonmark.min.js b/apps/cory/ssb/commonmark.min.js similarity index 100% rename from apps/cory/ssblit/commonmark.min.js rename to apps/cory/ssb/commonmark.min.js diff --git a/apps/cory/ssblit/emojis.js b/apps/cory/ssb/emojis.js similarity index 100% rename from apps/cory/ssblit/emojis.js rename to apps/cory/ssb/emojis.js diff --git a/apps/cory/ssblit/emojis.json b/apps/cory/ssb/emojis.json similarity index 100% rename from apps/cory/ssblit/emojis.json rename to apps/cory/ssb/emojis.json diff --git a/apps/cory/ssblit/index.html b/apps/cory/ssb/index.html similarity index 100% rename from apps/cory/ssblit/index.html rename to apps/cory/ssb/index.html diff --git a/apps/cory/ssblit/lit-all.min.js b/apps/cory/ssb/lit-all.min.js similarity index 100% rename from apps/cory/ssblit/lit-all.min.js rename to apps/cory/ssb/lit-all.min.js diff --git a/apps/cory/ssblit/lit-all.min.js.map b/apps/cory/ssb/lit-all.min.js.map similarity index 100% rename from apps/cory/ssblit/lit-all.min.js.map rename to apps/cory/ssb/lit-all.min.js.map diff --git a/apps/cory/ssblit/script.js b/apps/cory/ssb/script.js similarity index 100% rename from apps/cory/ssblit/script.js rename to apps/cory/ssb/script.js diff --git a/apps/cory/ssblit/tf-app.js b/apps/cory/ssb/tf-app.js similarity index 100% rename from apps/cory/ssblit/tf-app.js rename to apps/cory/ssb/tf-app.js diff --git a/apps/cory/ssblit/tf-compose.js b/apps/cory/ssb/tf-compose.js similarity index 100% rename from apps/cory/ssblit/tf-compose.js rename to apps/cory/ssb/tf-compose.js diff --git a/apps/cory/ssblit/tf-connections.js b/apps/cory/ssb/tf-connections.js similarity index 100% rename from apps/cory/ssblit/tf-connections.js rename to apps/cory/ssb/tf-connections.js diff --git a/apps/cory/ssblit/tf-id-picker.js b/apps/cory/ssb/tf-id-picker.js similarity index 100% rename from apps/cory/ssblit/tf-id-picker.js rename to apps/cory/ssb/tf-id-picker.js diff --git a/apps/cory/ssblit/tf-message.js b/apps/cory/ssb/tf-message.js similarity index 100% rename from apps/cory/ssblit/tf-message.js rename to apps/cory/ssb/tf-message.js diff --git a/apps/cory/ssblit/tf-news.js b/apps/cory/ssb/tf-news.js similarity index 100% rename from apps/cory/ssblit/tf-news.js rename to apps/cory/ssb/tf-news.js diff --git a/apps/cory/ssblit/tf-profile.js b/apps/cory/ssb/tf-profile.js similarity index 100% rename from apps/cory/ssblit/tf-profile.js rename to apps/cory/ssb/tf-profile.js diff --git a/apps/cory/ssblit/tf-styles.js b/apps/cory/ssb/tf-styles.js similarity index 100% rename from apps/cory/ssblit/tf-styles.js rename to apps/cory/ssb/tf-styles.js diff --git a/apps/cory/ssblit/tf-tab-connections.js b/apps/cory/ssb/tf-tab-connections.js similarity index 100% rename from apps/cory/ssblit/tf-tab-connections.js rename to apps/cory/ssb/tf-tab-connections.js diff --git a/apps/cory/ssblit/tf-tab-news.js b/apps/cory/ssb/tf-tab-news.js similarity index 100% rename from apps/cory/ssblit/tf-tab-news.js rename to apps/cory/ssb/tf-tab-news.js diff --git a/apps/cory/ssblit/tf-tab-search.js b/apps/cory/ssb/tf-tab-search.js similarity index 100% rename from apps/cory/ssblit/tf-tab-search.js rename to apps/cory/ssb/tf-tab-search.js diff --git a/apps/cory/ssblit/tf-user.js b/apps/cory/ssb/tf-user.js similarity index 100% rename from apps/cory/ssblit/tf-user.js rename to apps/cory/ssb/tf-user.js diff --git a/apps/cory/ssblit/tf-utils.js b/apps/cory/ssb/tf-utils.js similarity index 100% rename from apps/cory/ssblit/tf-utils.js rename to apps/cory/ssb/tf-utils.js diff --git a/apps/cory/ssblit/tribute.css b/apps/cory/ssb/tribute.css similarity index 100% rename from apps/cory/ssblit/tribute.css rename to apps/cory/ssb/tribute.css diff --git a/apps/cory/ssblit/tribute.esm.js b/apps/cory/ssb/tribute.esm.js similarity index 100% rename from apps/cory/ssblit/tribute.esm.js rename to apps/cory/ssb/tribute.esm.js diff --git a/src/main.c b/src/main.c index 8da6e526..0c151be6 100644 --- a/src/main.c +++ b/src/main.c @@ -300,7 +300,7 @@ static int _tf_command_export(const char* file, int argc, char* argv[]) "db", "docs", "follow", - "ssblit", + "ssb", "todo", }; for (int i = 0; i < (int)_countof(k_export); i++)