update about and help menus
This commit is contained in:
parent
c960501a87
commit
de91ae719b
3 changed files with 24 additions and 8 deletions
|
|
@ -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";
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue