From bc5a13de2049e9b2aec3ffed278e48857f4d2d8f Mon Sep 17 00:00:00 2001 From: Jonathan McCaffrey Date: Sun, 1 May 2022 17:07:06 -0400 Subject: [PATCH] feat(Documents) Moving dev docs to GitHub wiki. Updating Dev Links --- .../Navigation/DesktopNavComponent.razor | 2 +- .../Navigation/DesktopNavLinkComponent.razor | 5 +++-- Components/Utils/Links.cs | 14 ++++++++++++++ IGP/Database.db | Bin 278528 -> 278528 bytes IGP/wwwroot/generated/WebPageModels.json | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 Components/Utils/Links.cs diff --git a/Components/Navigation/DesktopNavComponent.razor b/Components/Navigation/DesktopNavComponent.razor index 9038b4b..cf79575 100644 --- a/Components/Navigation/DesktopNavComponent.razor +++ b/Components/Navigation/DesktopNavComponent.razor @@ -32,7 +32,7 @@ { } diff --git a/Components/Navigation/DesktopNavLinkComponent.razor b/Components/Navigation/DesktopNavLinkComponent.razor index 938b223..64eef7c 100644 --- a/Components/Navigation/DesktopNavLinkComponent.razor +++ b/Components/Navigation/DesktopNavLinkComponent.razor @@ -1,4 +1,5 @@ -@inject INavigationService NavigationService; +@using Components.Utils +@inject INavigationService NavigationService; @inject NavigationManager NavigationManager; @if (isOnPage) @@ -11,7 +12,7 @@ } else { - + diff --git a/Components/Utils/Links.cs b/Components/Utils/Links.cs new file mode 100644 index 0000000..7b5dedf --- /dev/null +++ b/Components/Utils/Links.cs @@ -0,0 +1,14 @@ +namespace Components.Utils; + +public static class Links +{ + public static string GetTarget(string link) + { + if (link.StartsWith("https://")) + { + return "_blank"; + } + + return "_self"; + } +} \ No newline at end of file diff --git a/IGP/Database.db b/IGP/Database.db index 0aba4a215e90985e1b2d94617aabb0b22dc3fd28..7a67b2d92c06b68b3e2c3ac70c34c168ac95ac01 100644 GIT binary patch delta 679 zcmYk4PiqrF7{+&-l*G+uH_^tBmX;}AL`q|#Qboa(P-!u11Qk&boa|1TF}pKycDA9S zCeedO|KyN^Ui<)JAwoe#6!f5opFpId=i;p=gR{FR-sYY6d4JFIGSls*yWRB0$Es`$ zKUGg$J+LI{A9PF4X+N|FnyKwiepa3+OUa`8Q+=v>s*${z_@?Y6ZYPcp)2WP-x}d}* zIji^dZ1g;Io9^KEt+AuCEk>^)le_str=abkOS^<{7V=#dCW4VODZ$R@y+}5C5jSz* zKhqYcpnEwky0bw%1KY^ul%UXDasJiAeQ&-OB8GOjAA9>)to10_|J8}c4P!ha%azLA z(&%1kByW~RWAEQ-Mb*uN7c>i&;#`T&OTbqlQ3(t|5jjz-cf8 zJc2o}5Qo?vJl~QhJ4f<`eDPqh*t=2@VHWQk3&T`fh=6m{V7B@L+Ely1(*N_6Kfun xJ;nsiUZ4Aq2*rA|#j%5L2oz-0BNh;E0{kx^b|HujHn!wk{O>lK^h@O7^*?2+;yVBU delta 400 zcmZo@5Nv1=+;GyL(R=eLf13oY?+pA$`BV5M`5yC4;7jJy;Qhk8owtTpkLL-`LY`6{ zUmh{;dtBeS>$t5q3kn?LV&tCueb*Ky28PLNcW1Jg3a~S5mf9o2SntEl&cG<2DJ#z6 zo0y%Mm#*NS=2}sZlbD$Y;-sXOrRL-pTT1tzv1m!2D zDEKB81mq;<6)U9W7ooVe2q>GISO9S>J1`J*_T4aK_U3b#%zj`xFrXIkPX18O((LlD k-Q^$Sc9(xl2M%&E^W`(}H}bRdyQ$2_qR0Gy77wg3PC diff --git a/IGP/wwwroot/generated/WebPageModels.json b/IGP/wwwroot/generated/WebPageModels.json index dac45f8..1cd7835 100644 --- a/IGP/wwwroot/generated/WebPageModels.json +++ b/IGP/wwwroot/generated/WebPageModels.json @@ -1 +1 @@ -[{"Id":1,"WebSectionModelId":2,"Name":"Database","Description":"Database of game information","Href":"database","IsPrivate":"False"},{"Id":2,"WebSectionModelId":1,"Name":"Build Calculator","Description":"Build order calculator for determining army timings","Href":"build-calculator","IsPrivate":"False"},{"Id":3,"WebSectionModelId":1,"Name":"Harass Calculator","Description":"Alloy harassment calculator","Href":"harass-calculator","IsPrivate":"False"},{"Id":4,"WebSectionModelId":1,"Name":"Memory Tester","Description":"Testing memory","Href":"memory-tester","IsPrivate":"False"},{"Id":5,"WebSectionModelId":1,"Name":"Comparion Charts","Description":"Ecnomy charts to compare build orders","Href":"comparison-charts","IsPrivate":"True"},{"Id":6,"WebSectionModelId":2,"Name":"Notes","Description":"General player notes","Href":"notes","IsPrivate":"False"},{"Id":7,"WebSectionModelId":2,"Name":"Key Mapping","Description":"General key mapping info","Href":"keymapping","IsPrivate":"True"},{"Id":8,"WebSectionModelId":4,"Name":"Road Map","Description":"Plans for this website","Href":"roadmap","IsPrivate":"False"},{"Id":9,"WebSectionModelId":4,"Name":"Change Log","Description":"Past updates to the website","Href":"changelog","IsPrivate":"False"},{"Id":10,"WebSectionModelId":4,"Name":"Agile","Description":"Showing agile view of this website","Href":"agile","IsPrivate":"False"},{"Id":11,"WebSectionModelId":4,"Name":"Making Of","Description":"Explaining development details of this website","Href":"makingof","IsPrivate":"False"},{"Id":12,"WebSectionModelId":2,"Name":"Documentation","Description":"Explaining how to use this website","Href":"documentation","IsPrivate":"True"},{"Id":13,"WebSectionModelId":3,"Name":"About","Description":"Answering general questions on the website","Href":"about","IsPrivate":"False"},{"Id":14,"WebSectionModelId":3,"Name":"Contact","Description":"My contact info","Href":"contact","IsPrivate":"False"},{"Id":15,"WebSectionModelId":3,"Name":"Streams","Description":"Stream info","Href":"streams","IsPrivate":"False"},{"Id":16,"WebSectionModelId":4,"Name":"Documentation","Description":"Development information","Href":"docs","IsPrivate":"False"},{"Id":17,"WebSectionModelId":5,"Name":"Permissions","Description":"Permission Settings","Href":"permissions","IsPrivate":"False"},{"Id":18,"WebSectionModelId":5,"Name":"Data Collection","Description":"Data Collection Settings","Href":"data-collection","IsPrivate":"True"},{"Id":19,"WebSectionModelId":5,"Name":"Storage","Description":"Storage Settings","Href":"storage","IsPrivate":"False"},{"Id":20,"WebSectionModelId":1,"Name":"Economy Comparison","Description":"Compare economies","Href":"economy-comparison","IsPrivate":"False"}] \ No newline at end of file +[{"Id":1,"WebSectionModelId":2,"Name":"Database","Description":"Database of game information","Href":"database","IsPrivate":"False"},{"Id":2,"WebSectionModelId":1,"Name":"Build Calculator","Description":"Build order calculator for determining army timings","Href":"build-calculator","IsPrivate":"False"},{"Id":3,"WebSectionModelId":1,"Name":"Harass Calculator","Description":"Alloy harassment calculator","Href":"harass-calculator","IsPrivate":"False"},{"Id":4,"WebSectionModelId":1,"Name":"Memory Tester","Description":"Testing memory","Href":"memory-tester","IsPrivate":"False"},{"Id":5,"WebSectionModelId":1,"Name":"Comparion Charts","Description":"Ecnomy charts to compare build orders","Href":"comparison-charts","IsPrivate":"True"},{"Id":6,"WebSectionModelId":2,"Name":"Notes","Description":"General player notes","Href":"notes","IsPrivate":"False"},{"Id":7,"WebSectionModelId":2,"Name":"Key Mapping","Description":"General key mapping info","Href":"keymapping","IsPrivate":"True"},{"Id":8,"WebSectionModelId":4,"Name":"Milestones","Description":" ","Href":"https://github.com/JonathanMcCaffrey/IGP-Fan-Reference/milestones","IsPrivate":"False"},{"Id":9,"WebSectionModelId":4,"Name":"Commits","Description":" ","Href":"https://github.com/JonathanMcCaffrey/IGP-Fan-Reference/commits/main","IsPrivate":"False"},{"Id":10,"WebSectionModelId":4,"Name":"Tasks","Description":" ","Href":"https://github.com/JonathanMcCaffrey/IGP-Fan-Reference/projects/3","IsPrivate":"False"},{"Id":11,"WebSectionModelId":4,"Name":"Code","Description":" ","Href":"https://github.com/JonathanMcCaffrey/IGP-Fan-Reference","IsPrivate":"False"},{"Id":12,"WebSectionModelId":2,"Name":"Documentation","Description":"Explaining how to use this website","Href":"documentation","IsPrivate":"True"},{"Id":13,"WebSectionModelId":3,"Name":"About","Description":"Answering general questions on the website","Href":"about","IsPrivate":"False"},{"Id":14,"WebSectionModelId":3,"Name":"Contact","Description":"My contact info","Href":"contact","IsPrivate":"False"},{"Id":15,"WebSectionModelId":3,"Name":"Streams","Description":"Stream info","Href":"streams","IsPrivate":"False"},{"Id":16,"WebSectionModelId":4,"Name":"Wiki","Description":" ","Href":"https://github.com/JonathanMcCaffrey/IGP-Fan-Reference/wiki","IsPrivate":"False"},{"Id":17,"WebSectionModelId":5,"Name":"Permissions","Description":"Permission Settings","Href":"permissions","IsPrivate":"False"},{"Id":18,"WebSectionModelId":5,"Name":"Data Collection","Description":"Data Collection Settings","Href":"data-collection","IsPrivate":"True"},{"Id":19,"WebSectionModelId":5,"Name":"Storage","Description":"Storage Settings","Href":"storage","IsPrivate":"False"},{"Id":20,"WebSectionModelId":1,"Name":"Economy Comparison","Description":"Compare economies","Href":"economy-comparison","IsPrivate":"False"}] \ No newline at end of file