├── FTServer
├── Views
│ ├── _ViewStart.cshtml
│ ├── _ViewImports.cshtml
│ ├── Shared
│ │ ├── _Layout.cshtml
│ │ └── Error.cshtml
│ ├── Book
│ │ └── Index.cshtml
│ └── Home
│ │ ├── Index.cshtml
│ │ ├── Admin.cshtml
│ │ ├── ResultPartial.cshtml
│ │ └── About.cshtml
├── fts.ico
├── wwwroot
│ ├── favicon.ico
│ └── css
│ │ └── themes
│ │ └── default
│ │ └── assets
│ │ └── fonts
│ │ └── icons.woff2
├── Models
│ ├── AdminModel.cs
│ ├── Error.cshtml.cs
│ ├── About.cshtml.cs
│ ├── Book.cshtml.cs
│ └── ResultPartial.cshtml.cs
├── appsettings.json
├── appsettings.Development.json
├── Code
│ ├── App.cs
│ ├── ConcurrentLinkedDeque.cs
│ ├── Config.cs
│ ├── FKeyWord.cs
│ ├── ReadonlyList.cs
│ ├── IndexFields.cs
│ ├── EasyOR.cs
│ ├── FStringUtil.cs
│ ├── IndexServer.cs
│ ├── FCSharpBridge.cs
│ ├── FLang.cs
│ ├── IndexPage.cs
│ ├── Html.cs
│ ├── IndexAPI.cs
│ └── FTSEngine.cs
├── Properties
│ └── launchSettings.json
├── .vscode
│ ├── tasks.json
│ └── launch.json
├── FTServer.csproj
├── Startup.cs
├── Controllers
│ ├── HomeController.cs
│ └── BookController.cs
└── Program.cs
├── .gitignore
├── EngineConsole
├── EngineConsole.csproj
├── Program.cs
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── ObjectSearch.cs
└── EngineTest.cs
└── README.md
/FTServer/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout";
3 | }
4 |
--------------------------------------------------------------------------------
/FTServer/fts.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iboxdb/ftserver-cs/HEAD/FTServer/fts.ico
--------------------------------------------------------------------------------
/FTServer/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iboxdb/ftserver-cs/HEAD/FTServer/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/FTServer/wwwroot/css/themes/default/assets/fonts/icons.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iboxdb/ftserver-cs/HEAD/FTServer/wwwroot/css/themes/default/assets/fonts/icons.woff2
--------------------------------------------------------------------------------
/FTServer/Models/AdminModel.cs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | namespace FTServer.Models
5 | {
6 | public class AdminModel
7 | {
8 | public string url;
9 | public string msg;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | Data/*
2 | Obj/*
3 | Bin/*
4 | data/*
5 | obj/*
6 | bin/*
7 | *_Bak
8 | */obj/*
9 | */bin/*
10 | */Data/*
11 | */data/*
12 | FTServer/Code/ExampleCode.txt
13 | *.box
14 | *.box.swp
15 | DATA_FTS_CS_140/*
16 |
--------------------------------------------------------------------------------
/FTServer/Views/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using FTServer
2 | @using FTServer.Models
3 | @using FTServer.Controllers;
4 | @using System.Text.Encodings.Web
5 |
6 |
7 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
8 |
--------------------------------------------------------------------------------
/FTServer/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Warning",
5 | "Microsoft.Hosting.Lifetime": "Information",
6 | "Microsoft.AspNetCore.Hosting.Diagnostics": "Warning"
7 | }
8 | },
9 | "AllowedHosts": "*"
10 | }
--------------------------------------------------------------------------------
/FTServer/Models/Error.cshtml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace FTServer.Models
4 | {
5 | public class ErrorViewModel
6 | {
7 | public string RequestId { get; set; }
8 |
9 | public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/FTServer/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Warning",
5 | "Microsoft.Hosting.Lifetime": "Information",
6 | "Microsoft.AspNetCore.Hosting.Diagnostics": "Warning"
7 | }
8 | },
9 | "AllowedHosts": "*"
10 | }
--------------------------------------------------------------------------------
/FTServer/Models/About.cshtml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Concurrent;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Threading.Tasks;
6 | using Microsoft.AspNetCore.Mvc.RazorPages;
7 |
8 | namespace FTServer.Models
9 | {
10 | public class AboutModel
11 | {
12 |
13 | public ResultPartialModel Result { get; set; }
14 |
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/FTServer/Models/Book.cshtml.cs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | using System;
5 |
6 | namespace FTServer.Models
7 | {
8 | public class BookModel
9 | {
10 | public static readonly Random ran = new Random();
11 | public string Title { get; set; }
12 | public string Description { get; set; }
13 |
14 | public string Keywords { get; set; }
15 |
16 | public string Text { get; set; }
17 |
18 | public string Ex { get; set; }
19 | }
20 | }
--------------------------------------------------------------------------------
/EngineConsole/EngineConsole.csproj:
--------------------------------------------------------------------------------
1 |
12 | Request ID: @Model.RequestId
13 |
18 | Swapping to Development environment will display more detailed information about the error that occurred. 19 |
20 |21 | The Development environment shouldn't be enabled for deployed applications. 22 | It can result in displaying sensitive information from exceptions to end users. 23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 24 | and restarting the app. 25 |
26 | -------------------------------------------------------------------------------- /FTServer/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": ".NET Core Launch (web)", 9 | "type": "coreclr", 10 | "request": "launch", 11 | "preLaunchTask": "build", 12 | "program": "${workspaceFolder}/bin/Debug/net8.0/FTServer.dll", 13 | "args": [], 14 | "cwd": "${workspaceFolder}", 15 | "stopAtEntry": false, 16 | "serverReadyAction": { 17 | //"action": "openExternally", 18 | //"pattern": "\\bNow listening on:\\s+(https?://\\S+)" 19 | }, 20 | "env": { 21 | "ASPNETCORE_ENVIRONMENT": "Development" 22 | }, 23 | "sourceFileMap": { 24 | "/Views": "${workspaceFolder}/Views" 25 | } 26 | } 27 | 28 | ] 29 | } -------------------------------------------------------------------------------- /FTServer/Code/ConcurrentLinkedDeque.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Concurrent; 3 | using System.Collections.Generic; 4 | using IBoxDB.LocalServer; 5 | 6 | namespace FTServer 7 | { 8 | public class ConcurrentLinkedDeque@Model.Ex
25 |@Model.Text
28 |CodeStart WinWinWin.GetDatabase().CopyTo(new ShowMirror(bakAddr, bakRoot), buffer)
31 |