From de91ae719b8d8699c3ec780e4f5bd6ece63dcfd5 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Mon, 12 Aug 2024 19:40:14 -0400 Subject: [PATCH] update about and help menus --- src/mesh/api.js | 4 ++++ src/mesh/build.js | 25 ++++++++++++++++++------- web/kiri/index.html | 3 ++- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/mesh/api.js b/src/mesh/api.js index e9702a6f..a026cc4b 100644 --- a/src/mesh/api.js +++ b/src/mesh/api.js @@ -1372,6 +1372,10 @@ const api = exports({ window.open("https://docs.grid.space/projects/mesh-tool"); }, + bugs() { + window.open("https://github.com/GridSpace/grid-apps/issues"); + }, + version() { window.location = "/choose?back"; }, diff --git a/src/mesh/build.js b/src/mesh/build.js index 9182ca6d..27c30e93 100644 --- a/src/mesh/build.js +++ b/src/mesh/build.js @@ -200,17 +200,28 @@ api.welcome = function(version = "unknown") { const { prefs } = api; const { map } = prefs; modal.show('About Mesh:Tool', div({ class:"welcome" }, [ + h.a({ + target: "site", + _: "Grid.Space", + href: "https://grid.space/" + }), + div(`Version: ${version}`), + hr({ width: "100%" }), h.a({ target: "docs", _: "Guide & Documentation", href: "https://docs.grid.space/projects/mesh-tool" }), h.a({ - target: "docs", - _: "Grid.Space", - href: "https://grid.space/" + target: "help", + _: "Discourse Forums", + href: "https://forum.grid.space/" + }), + h.a({ + target: "help", + _: "Discord Server", + href: "https://discord.gg/suyCCgr" }), - div(`Version: ${version}`), hr({ width: "100%" }), div({ class: "choice" }, [ input({ @@ -483,8 +494,8 @@ function ui_build() { div({ class: "menu sketch-off" }, [ div('Faces'), div({ class: "menu-items" }, [ - menu_item('Flip Normals', tool.invert), - menu_item('Triangulate', tool.triangulate), + menu_item('Flip Normals', tool.invert, ['bi-shift','I']), + menu_item('Triangulate', tool.triangulate, ['bi-shift','T']), menu_item('Analyze', tool.analyze), menu_item('Clean', tool.clean), ]) @@ -510,7 +521,7 @@ function ui_build() { menu_item('About', () => { api.welcome(mesh.version) }), hr(), menu_item('Documentation', api.help), - menu_item('Official Site', api.gridspace), + menu_item('Report Bugs', api.bugs), menu_item('Donate', api.donate), hr(), menu_item('Versions', api.version), diff --git a/web/kiri/index.html b/web/kiri/index.html index 06b9bf39..6342bedb 100644 --- a/web/kiri/index.html +++ b/web/kiri/index.html @@ -448,8 +448,9 @@ Documentation & APIs Discourse Forums Discord Server + Bug Reports Releases & Binaries - Donations are welcome! + Support Development Video Guide (from v2.5)