diff --git a/.vscode/launch.json b/.vscode/launch.json index 7c905164..2c3525c1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -48,7 +48,7 @@ "AYANOVA_DATA_PATH": "c:\\temp\\ravendata", "AYANOVA_USE_URLS": "http://*:7575;", //"AYANOVA_PERMANENTLY_ERASE_DATABASE":"true", - "AYANOVA_SERVER_TEST_MODE": "true", + "AYANOVA_SERVER_TEST_MODE": "false", "AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8", //"AYANOVA_REPORT_RENDERING_TIMEOUT":"1", "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small", diff --git a/build-release.bat b/build-release.bat index 2116d28e..ac002258 100644 --- a/build-release.bat +++ b/build-release.bat @@ -7,7 +7,7 @@ rmdir C:\data\code\raven\dist\installers /s/q mkdir C:\data\code\raven\dist\installers -@echo ******************** BUILD DOCS ****************************** +@echo ******************** BUILD MAIN DOCS ****************************** cd c:\data\code\raven\docs\8.0\ayanova mkdocs build IF %ERRORLEVEL% NEQ 0 ( @@ -15,6 +15,14 @@ set m=DOCS FAILED TO BUILD goto FAIL ) +@echo ******************** BUILD CUSTOMER DOCS ****************************** +cd c:\data\code\raven\docs\8.0\customer +mkdocs build +IF %ERRORLEVEL% NEQ 0 ( +set m=DOCS FAILED TO BUILD +goto FAIL +) + @echo ******************** BUILD CLIENT **************************** cd c:\data\code\raven-client\ayanova call npm run build diff --git a/docs/8.0/customer/docs/customer-csr.md b/docs/8.0/customer/docs/customer-csr.md new file mode 100644 index 00000000..a23243f5 --- /dev/null +++ b/docs/8.0/customer/docs/customer-csr.md @@ -0,0 +1,2 @@ +# Service requests + diff --git a/docs/8.0/customer/docs/customer-workorders.md b/docs/8.0/customer/docs/customer-workorders.md new file mode 100644 index 00000000..abdc7384 --- /dev/null +++ b/docs/8.0/customer/docs/customer-workorders.md @@ -0,0 +1,3 @@ +# CUSTOMER-WORKORDERS + +UNDERCONSTRUCTION \ No newline at end of file diff --git a/docs/8.0/customer/docs/img/cust-csr-data-table.png b/docs/8.0/customer/docs/img/cust-csr-data-table.png new file mode 100644 index 00000000..2e27b473 Binary files /dev/null and b/docs/8.0/customer/docs/img/cust-csr-data-table.png differ diff --git a/docs/8.0/customer/docs/img/favicon.ico b/docs/8.0/customer/docs/img/favicon.ico new file mode 100644 index 00000000..0580a497 Binary files /dev/null and b/docs/8.0/customer/docs/img/favicon.ico differ diff --git a/docs/8.0/customer/docs/img/logo.svg b/docs/8.0/customer/docs/img/logo.svg new file mode 100644 index 00000000..8a8c3cea --- /dev/null +++ b/docs/8.0/customer/docs/img/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/8.0/customer/docs/index.md b/docs/8.0/customer/docs/index.md new file mode 100644 index 00000000..2c5ebb25 --- /dev/null +++ b/docs/8.0/customer/docs/index.md @@ -0,0 +1,10 @@ +# Welcome to AyaNova + +This manual is accessible locally from the AyaNova `Help` links. + + + + +--- + +
Documentation version: 8.0.0-beta.4, Copyright © 2022 Ground Zero Tech-Works Inc.
diff --git a/docs/8.0/customer/mkdocs.yml b/docs/8.0/customer/mkdocs.yml new file mode 100644 index 00000000..ba6e0442 --- /dev/null +++ b/docs/8.0/customer/mkdocs.yml @@ -0,0 +1,25 @@ +theme: + name: material + palette: + scheme: default + favicon: 'img/favicon.ico' + logo: 'img/logo.svg' + copyright: 'Copyright 2022 Ground Zero Tech-Works Inc.' +site_name: AyaNova Customer manual +site_dir: '../../../server/AyaNova/wwwroot/cust' +strict: true +# Extensions +markdown_extensions: + - pymdownx.highlight: + anchor_linenums: true + - pymdownx.superfences + - toc: + permalink: true + +nav: +- Home: 'index.md' +- User guide: + - User interface: + - Customer User interface: + - 'Workorders': 'customer-workorders.md' + - 'Customer service requests': 'customer-csr.md' \ No newline at end of file diff --git a/makedocs.bat b/makedocs.bat index 6921617a..20cf87a7 100644 --- a/makedocs.bat +++ b/makedocs.bat @@ -1,4 +1,6 @@ cd c:\data\code\raven\docs\8.0\ayanova mkdocs build -s +cd c:\data\code\raven\docs\8.0\customer +mkdocs build -s cd ..\..\.. pause diff --git a/servcustdocs.bat b/servcustdocs.bat new file mode 100644 index 00000000..aa2eb227 --- /dev/null +++ b/servcustdocs.bat @@ -0,0 +1,2 @@ +cd c:\data\code\raven\docs\8.0\customer +mkdocs serve diff --git a/server/AyaNova/Startup.cs b/server/AyaNova/Startup.cs index 2e124ecb..45dca355 100644 --- a/server/AyaNova/Startup.cs +++ b/server/AyaNova/Startup.cs @@ -63,7 +63,7 @@ namespace AyaNova { options.RouteBasePath = "/profiler"; //in testing only ignorepaths was reliable and worked and docs say it prevents any profiling at all - options.IgnorePath("/auth").IgnorePath("/license").IgnorePath("/user").IgnorePath("/docs").IgnorePath("/custdocs"); + options.IgnorePath("/auth").IgnorePath("/license").IgnorePath("/user").IgnorePath("/docs").IgnorePath("/cust"); options.ResultsAuthorize = request => { if (request.HttpContext.Items["AY_PROFILER_ALLOWED"] != null) @@ -644,7 +644,7 @@ namespace AyaNova //to support html5 pushstate routing in spa //this ensures that a refresh at the client will not 404 but rather force back to the index.html app page and then handled internally by the client await next(); - if (!context.Response.HasStarted && !context.Request.Path.Value.StartsWith("/api") && context.Request.Path.Value != "/docs" && context.Request.Path.Value != "/custdocs" && context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value)) + if (!context.Response.HasStarted && !context.Request.Path.Value.StartsWith("/api") && context.Request.Path.Value != "/docs" && context.Request.Path.Value != "/cust" && context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value)) { context.Request.Path = "/index.html"; context.Response.StatusCode = 200;