customer docs

This commit is contained in:
2022-03-31 22:35:14 +00:00
parent d86931b0ee
commit 1f3f52b41e
12 changed files with 57 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@@ -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",

View File

@@ -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

View File

@@ -0,0 +1,2 @@
# Service requests

View File

@@ -0,0 +1,3 @@
# CUSTOMER-WORKORDERS
UNDERCONSTRUCTION

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

@@ -0,0 +1,10 @@
# Welcome to AyaNova
This manual is accessible locally from the AyaNova `Help` links.
---
<h6>Documentation version: 8.0.0-beta.4, Copyright &copy; 2022 Ground Zero Tech-Works Inc.</h6>

View File

@@ -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'

View File

@@ -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

2
servcustdocs.bat Normal file
View File

@@ -0,0 +1,2 @@
cd c:\data\code\raven\docs\8.0\customer
mkdocs serve

View File

@@ -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;