diff options
author | tdro <tdro@noreply.example.com> | 2023-12-30 16:39:52 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-12-30 16:39:52 -0500 |
commit | b8e1c5a3d9d37e8e49cce22a0fdcda260ed481dc (patch) | |
tree | 02f1efcc04c74e2373130fe80b92420b2ea86f1e | |
parent | 82041d35b1bb1cd01b422327264acdd15418bee6 (diff) | |
download | canory-b8e1c5a3d9d37e8e49cce22a0fdcda260ed481dc.tar.gz canory-b8e1c5a3d9d37e8e49cce22a0fdcda260ed481dc.tar.bz2 canory-b8e1c5a3d9d37e8e49cce22a0fdcda260ed481dc.zip |
config: Add settings page
Adjust icons
25 files changed, 339 insertions, 136 deletions
@@ -31,43 +31,44 @@ build-site: # Build site build-icons: # Build icons rm -rf static/icons mkdir -p static/icons/feather static/icons/tabler - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/LICENSE --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/alert-circle.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/archive.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/arrow-down-circle.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/arrow-left.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/arrow-right.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/arrow-up.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/at-sign.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/calendar.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/circle.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/clock.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/edit.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/external-link.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/eye-off.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/eye.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/file-text.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/git-commit.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/globe.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/heart.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/home.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/link.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/map-pin.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/refresh-cw.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/rss.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/search.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/tag.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/trash-2.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/user.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/users.svg --output-dir static/icons/feather - curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/LICENSE --output-dir static/icons/tabler - curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/book-2.svg --output-dir static/icons/tabler - curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/clock.svg --output-dir static/icons/tabler - curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/code.svg --output-dir static/icons/tabler - curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/notes.svg --output-dir static/icons/tabler - curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/pinned.svg --output-dir static/icons/tabler - curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/robot.svg --output-dir static/icons/tabler - curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/square-letter-m.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/LICENSE --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/alert-circle.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/arrow-down-circle.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/arrow-left.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/arrow-right.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/arrow-up.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/at-sign.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/calendar.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/circle.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/clock.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/edit.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/external-link.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/eye-off.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/eye.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/file-text.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/git-commit.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/globe.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/heart.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/home.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/link.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/map-pin.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/refresh-cw.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/rss.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/search.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/trash-2.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/user.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/feathericons/feather/master/icons/users.svg --output-dir static/icons/feather + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/LICENSE --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/archive.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/book-2.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/clock.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/code.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/notes.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/pinned.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/robot.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/settings.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/square-letter-m.svg --output-dir static/icons/tabler + curl --silent --remote-name https://raw.githubusercontent.com/tabler/tabler-icons/master/icons/tags.svg --output-dir static/icons/tabler git add -f static/icons test: # Test everything diff --git a/config.json b/config.json index 50bd995..9bc0475 100644 --- a/config.json +++ b/config.json @@ -39,38 +39,44 @@ { "name": "Tags", "url": "/tags/", - "identifier": "feather/tag", + "identifier": "tabler/tags", "weight": 2, "icon": "home" }, { "name": "Archives", "url": "/archives/messages/", - "identifier": "tabler/clock", + "identifier": "tabler/archive", "weight": 3 }, { "name": "Authors", "url": "/authors/", "identifier": "feather/users", + "weight": 4 + }, + { + "name": "Settings", + "url": "/settings/", + "identifier": "tabler/settings", "weight": 5 }, { + "name": "Sources", + "url": "/sources/", + "identifier": "feather/git-commit", + "weight": 6 + }, + { "name": "RSS Feed", "url": "/rss.xml", "identifier": "feather/rss", - "weight": 6 + "weight": 7 }, { "name": "JSON Feed", "url": "/index.json", "identifier": "feather/circle", - "weight": 7 - }, - { - "name": "Sources", - "url": "/sources/", - "identifier": "feather/git-commit", "weight": 8 } ] @@ -213,6 +219,11 @@ "baseName": "index", "mediaType": "text/html" }, + "settings": { + "path": "settings", + "baseName": "index", + "mediaType": "text/html" + }, "sources": { "path": "sources", "baseName": "index", @@ -251,6 +262,7 @@ "sources", "browserconfig", "archives", + "settings", "webmanifest" ], "section": [ diff --git a/config.toml b/config.toml index 64b9524..e7bd944 100644 --- a/config.toml +++ b/config.toml @@ -33,38 +33,44 @@ enableRobotsTXT = true [[menu.main]] name = "Tags" url = "/tags/" - identifier = "feather/tag" + identifier = "tabler/tags" weight = 2 icon = "home" [[menu.main]] name = "Archives" url = "/archives/messages/" - identifier = "tabler/clock" + identifier = "tabler/archive" weight = 3 [[menu.main]] name = "Authors" url = "/authors/" identifier = "feather/users" + weight = 4 + + [[menu.main]] + name = "Settings" + url = "/settings/" + identifier = "tabler/settings" weight = 5 [[menu.main]] + name = "Sources" + url = "/sources/" + identifier = "feather/git-commit" + weight = 6 + + [[menu.main]] name = "RSS Feed" url = "/rss.xml" identifier = "feather/rss" - weight = 6 + weight = 7 [[menu.main]] name = "JSON Feed" url = "/index.json" identifier = "feather/circle" - weight = 7 - - [[menu.main]] - name = "Sources" - url = "/sources/" - identifier = "feather/git-commit" weight = 8 [params] @@ -148,6 +154,10 @@ enableRobotsTXT = true path = "archives/messages" baseName = "index" mediaType = "text/html" + [outputFormats.settings] + path = "settings" + baseName = "index" + mediaType = "text/html" [outputFormats.sources] path = "sources" baseName = "index" @@ -169,7 +179,7 @@ enableRobotsTXT = true mediaType = "text/html" [outputs] - home = ["html", "rss", "xslt.rss", "xslt.sitemap", "json", "authors", "authors.section", "sources", "browserconfig", "archives", "webmanifest"] + home = ["html", "rss", "xslt.rss", "xslt.sitemap", "json", "authors", "authors.section", "sources", "browserconfig", "archives", "settings", "webmanifest"] section = ["html", "rss", "gallery", "following", "webring"] taxonomy = ["html", "rss"] term = ["html", "rss"] diff --git a/config.yaml b/config.yaml index dc1d427..5a040ab 100644 --- a/config.yaml +++ b/config.yaml @@ -37,28 +37,32 @@ menu: weight: 1 - name: Tags url: /tags/ - identifier: feather/tag + identifier: tabler/tags weight: 2 icon: home - name: Archives url: /archives/messages/ - identifier: tabler/clock + identifier: tabler/archive weight: 3 - name: Authors url: /authors/ identifier: feather/users + weight: 4 + - name: Settings + url: /settings/ + identifier: tabler/settings weight: 5 + - name: Sources + url: /sources/ + identifier: feather/git-commit + weight: 6 - name: RSS Feed url: /rss.xml identifier: feather/rss - weight: 6 + weight: 7 - name: JSON Feed url: /index.json identifier: feather/circle - weight: 7 - - name: Sources - url: /sources/ - identifier: feather/git-commit weight: 8 params: @@ -144,6 +148,10 @@ outputFormats: path: archives/messages baseName: index mediaType: text/html + settings: + path: settings + baseName: index + mediaType: text/html sources: path: sources baseName: index @@ -176,6 +184,7 @@ outputs: - sources - browserconfig - archives + - settings - webmanifest section: - html diff --git a/static/icons/feather/LICENSE b/static/icons/feather/LICENSE index b869713..1f4f433 100644 --- a/static/icons/feather/LICENSE +++ b/static/icons/feather/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2013-2017 Cole Bemis +Copyright (c) 2013-2023 Cole Bemis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE.
\ No newline at end of file +SOFTWARE. diff --git a/static/icons/feather/archive.svg b/static/icons/feather/archive.svg deleted file mode 100644 index 978eb76..0000000 --- a/static/icons/feather/archive.svg +++ /dev/null @@ -1,15 +0,0 @@ -<svg - xmlns="http://www.w3.org/2000/svg" - width="24" - height="24" - viewBox="0 0 24 24" - fill="none" - stroke="currentColor" - stroke-width="2" - stroke-linecap="round" - stroke-linejoin="round" -> - <polyline points="21 8 21 21 3 21 3 8" /> - <rect x="1" y="3" width="22" height="5" /> - <line x1="10" y1="12" x2="14" y2="12" /> -</svg> diff --git a/static/icons/feather/eye-off.svg b/static/icons/feather/eye-off.svg index 98c45f6..e7552f4 100644 --- a/static/icons/feather/eye-off.svg +++ b/static/icons/feather/eye-off.svg @@ -9,6 +9,8 @@ stroke-linecap="round" stroke-linejoin="round" > - <path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" /> + <path + d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" + /> <line x1="1" y1="1" x2="23" y2="23" /> </svg> diff --git a/static/icons/feather/eye.svg b/static/icons/feather/eye.svg index 5fb707b..edaab72 100644 --- a/static/icons/feather/eye.svg +++ b/static/icons/feather/eye.svg @@ -1 +1,14 @@ -<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
\ No newline at end of file +<svg + xmlns="http://www.w3.org/2000/svg" + width="24" + height="24" + viewBox="0 0 24 24" + fill="none" + stroke="currentColor" + stroke-width="2" + stroke-linecap="round" + stroke-linejoin="round" +> + <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" /> + <circle cx="12" cy="12" r="3" /> +</svg> diff --git a/static/icons/feather/file-text.svg b/static/icons/feather/file-text.svg new file mode 100644 index 0000000..6cba58c --- /dev/null +++ b/static/icons/feather/file-text.svg @@ -0,0 +1,17 @@ +<svg + xmlns="http://www.w3.org/2000/svg" + width="24" + height="24" + viewBox="0 0 24 24" + fill="none" + stroke="currentColor" + stroke-width="2" + stroke-linecap="round" + stroke-linejoin="round" +> + <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" /> + <polyline points="14 2 14 8 20 8" /> + <line x1="16" y1="13" x2="8" y2="13" /> + <line x1="16" y1="17" x2="8" y2="17" /> + <polyline points="10 9 9 9 8 9" /> +</svg> diff --git a/static/icons/feather/globe.svg b/static/icons/feather/globe.svg index a9c820f..7617e0c 100644 --- a/static/icons/feather/globe.svg +++ b/static/icons/feather/globe.svg @@ -11,5 +11,7 @@ > <circle cx="12" cy="12" r="10" /> <line x1="2" y1="12" x2="22" y2="12" /> - <path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" /> + <path + d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" + /> </svg> diff --git a/static/icons/feather/heart.svg b/static/icons/feather/heart.svg index 8e0b98d..5f083d2 100644 --- a/static/icons/feather/heart.svg +++ b/static/icons/feather/heart.svg @@ -9,5 +9,7 @@ stroke-linecap="round" stroke-linejoin="round" > - <path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" /> + <path + d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" + /> </svg> diff --git a/static/icons/feather/refresh-cw.svg b/static/icons/feather/refresh-cw.svg index 1773a2f..c2cb05d 100644 --- a/static/icons/feather/refresh-cw.svg +++ b/static/icons/feather/refresh-cw.svg @@ -11,5 +11,7 @@ > <polyline points="23 4 23 10 17 10" /> <polyline points="1 20 1 14 7 14" /> - <path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" /> + <path + d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" + /> </svg> diff --git a/static/icons/feather/tag.svg b/static/icons/feather/tag.svg deleted file mode 100644 index e8500cd..0000000 --- a/static/icons/feather/tag.svg +++ /dev/null @@ -1,14 +0,0 @@ -<svg - xmlns="http://www.w3.org/2000/svg" - width="24" - height="24" - viewBox="0 0 24 24" - fill="none" - stroke="currentColor" - stroke-width="2" - stroke-linecap="round" - stroke-linejoin="round" -> - <path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z" /> - <line x1="7" y1="7" x2="7.01" y2="7" /> -</svg> diff --git a/static/icons/feather/trash-2.svg b/static/icons/feather/trash-2.svg index f3bd2bd..237872e 100644 --- a/static/icons/feather/trash-2.svg +++ b/static/icons/feather/trash-2.svg @@ -10,7 +10,9 @@ stroke-linejoin="round" > <polyline points="3 6 5 6 21 6" /> - <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" /> + <path + d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" + /> <line x1="10" y1="11" x2="10" y2="17" /> <line x1="14" y1="11" x2="14" y2="17" /> </svg> diff --git a/static/icons/tabler/archive.svg b/static/icons/tabler/archive.svg new file mode 100644 index 0000000..8772d7f --- /dev/null +++ b/static/icons/tabler/archive.svg @@ -0,0 +1,19 @@ +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-archive" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> + <path + d="M3 4m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z" + /> + <path d="M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10" /> + <path d="M10 12l4 0" /> +</svg> diff --git a/static/icons/tabler/book-2.svg b/static/icons/tabler/book-2.svg index e136c71..695784f 100644 --- a/static/icons/tabler/book-2.svg +++ b/static/icons/tabler/book-2.svg @@ -1,8 +1,17 @@ -<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-book-2" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> - <path stroke="none" d="M0 0h24v24H0z" fill="none"/> +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-book-2" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12z" /> <path d="M19 16h-12a2 2 0 0 0 -2 2" /> <path d="M9 8h6" /> </svg> - - diff --git a/static/icons/tabler/clock.svg b/static/icons/tabler/clock.svg index e7a91d3..d8d9af3 100644 --- a/static/icons/tabler/clock.svg +++ b/static/icons/tabler/clock.svg @@ -1,7 +1,16 @@ -<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> - <path stroke="none" d="M0 0h24v24H0z" fill="none"/> +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-clock" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0" /> <path d="M12 7v5l3 3" /> </svg> - - diff --git a/static/icons/tabler/code.svg b/static/icons/tabler/code.svg index 3a18207..df80bc2 100644 --- a/static/icons/tabler/code.svg +++ b/static/icons/tabler/code.svg @@ -1,8 +1,17 @@ -<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-code" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> - <path stroke="none" d="M0 0h24v24H0z" fill="none"/> +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-code" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M7 8l-4 4l4 4" /> <path d="M17 8l4 4l-4 4" /> <path d="M14 4l-4 16" /> </svg> - - diff --git a/static/icons/tabler/notes.svg b/static/icons/tabler/notes.svg index bed52e0..e6947da 100644 --- a/static/icons/tabler/notes.svg +++ b/static/icons/tabler/notes.svg @@ -1,9 +1,20 @@ -<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-notes" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> - <path stroke="none" d="M0 0h24v24H0z" fill="none"/> - <path d="M5 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z" /> +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-notes" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> + <path + d="M5 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z" + /> <path d="M9 7l6 0" /> <path d="M9 11l6 0" /> <path d="M9 15l4 0" /> </svg> - - diff --git a/static/icons/tabler/pinned.svg b/static/icons/tabler/pinned.svg index 56e24ba..4a232b6 100644 --- a/static/icons/tabler/pinned.svg +++ b/static/icons/tabler/pinned.svg @@ -1,8 +1,17 @@ -<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-pinned" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> - <path stroke="none" d="M0 0h24v24H0z" fill="none"/> +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-pinned" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M9 4v6l-2 4v2h10v-2l-2 -4v-6" /> <path d="M12 16l0 5" /> <path d="M8 4l8 0" /> </svg> - - diff --git a/static/icons/tabler/robot.svg b/static/icons/tabler/robot.svg index 0b94b49..64f2658 100644 --- a/static/icons/tabler/robot.svg +++ b/static/icons/tabler/robot.svg @@ -1,11 +1,25 @@ -<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-robot" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> - <path stroke="none" d="M0 0h24v24H0z" fill="none"/> - <path d="M7 7h10a2 2 0 0 1 2 2v1l1 1v3l-1 1v3a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-3l-1 -1v-3l1 -1v-1a2 2 0 0 1 2 -2z" /> - <path d="M10 16h4" /> - <circle cx="8.5" cy="11.5" r=".5" fill="currentColor" /> - <circle cx="15.5" cy="11.5" r=".5" fill="currentColor" /> - <path d="M9 7l-1 -4" /> - <path d="M15 7l1 -4" /> +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-robot" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> + <path + d="M6 4m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z" + /> + <path d="M12 2v2" /> + <path d="M9 12v9" /> + <path d="M15 12v9" /> + <path d="M5 16l4 -2" /> + <path d="M15 14l4 2" /> + <path d="M9 18h6" /> + <path d="M10 8v.01" /> + <path d="M14 8v.01" /> </svg> - - diff --git a/static/icons/tabler/settings.svg b/static/icons/tabler/settings.svg new file mode 100644 index 0000000..caa2e55 --- /dev/null +++ b/static/icons/tabler/settings.svg @@ -0,0 +1,18 @@ +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-settings" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> + <path + d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" + /> + <path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" /> +</svg> diff --git a/static/icons/tabler/square-letter-m.svg b/static/icons/tabler/square-letter-m.svg index 07486bc..f3670dd 100644 --- a/static/icons/tabler/square-letter-m.svg +++ b/static/icons/tabler/square-letter-m.svg @@ -1,7 +1,18 @@ -<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-square-letter-m" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> - <path stroke="none" d="M0 0h24v24H0z" fill="none"/> - <path d="M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z" /> +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-square-letter-m" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> + <path + d="M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z" + /> <path d="M9 16v-8l3 5l3 -5v8" /> </svg> - - diff --git a/static/icons/tabler/tags.svg b/static/icons/tabler/tags.svg new file mode 100644 index 0000000..b2f166c --- /dev/null +++ b/static/icons/tabler/tags.svg @@ -0,0 +1,19 @@ +<svg + xmlns="http://www.w3.org/2000/svg" + class="icon icon-tabler icon-tabler-tags" + width="24" + height="24" + viewBox="0 0 24 24" + stroke-width="2" + stroke="currentColor" + fill="none" + stroke-linecap="round" + stroke-linejoin="round" +> + <path stroke="none" d="M0 0h24v24H0z" fill="none" /> + <path + d="M3 8v4.172a2 2 0 0 0 .586 1.414l5.71 5.71a2.41 2.41 0 0 0 3.408 0l3.592 -3.592a2.41 2.41 0 0 0 0 -3.408l-5.71 -5.71a2 2 0 0 0 -1.414 -.586h-4.172a2 2 0 0 0 -2 2z" + /> + <path d="M18 19l1.592 -1.592a4.82 4.82 0 0 0 0 -6.816l-4.592 -4.592" /> + <path d="M7 10h-.01" /> +</svg> diff --git a/themes/default/layouts/_default/home.settings.html b/themes/default/layouts/_default/home.settings.html new file mode 100644 index 0000000..44b3399 --- /dev/null +++ b/themes/default/layouts/_default/home.settings.html @@ -0,0 +1,32 @@ +{{- define "title" -}}Settings — {{ end -}} +{{- define "description" -}}A list of all interface settings — {{ end -}} +{{- define "styles" -}} +<style> + {{ partial "navigator.css.html" (dict "Link" "/settings/") | safeCSS }} +</style> +{{- end -}} + +{{- define "header" -}} + {{- partial "navigator-middle.html" + (dict + "Context" . + "IconLabel" "Back" + "Id" "back" + "Title" "Settings" + "Icon" "arrow-left" + "Subtitle" "Interface" + "Href" (or (and (gt .Paginator.PageNumber 1) (.Paginator.Prev.URL | absURL)) "/") + ) + -}} +{{- end -}} + +{{- define "middle" -}} +{{- end -}} + +{{- define "footer" -}} + {{- partial "base-footer.html" . -}} +{{- end -}} + +{{- define "right" -}} + {{- partial "navigator-right.html" . -}} +{{- end -}} |