Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions ExternalAPI.Furiax/ExternalAPI.Furiax.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.12.35707.178
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FormulaOneServer", "FormulaOneServer\FormulaOneServer.csproj", "{DDC111E3-B359-4008-B827-9146F185389A}"
EndProject
Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "FormulaOneClient", "FormulaOneClient\FormulaOneClient.esproj", "{2691435F-CE8D-4BAB-A7E6-0A218552B93A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DDC111E3-B359-4008-B827-9146F185389A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DDC111E3-B359-4008-B827-9146F185389A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DDC111E3-B359-4008-B827-9146F185389A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DDC111E3-B359-4008-B827-9146F185389A}.Release|Any CPU.Build.0 = Release|Any CPU
{2691435F-CE8D-4BAB-A7E6-0A218552B93A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2691435F-CE8D-4BAB-A7E6-0A218552B93A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2691435F-CE8D-4BAB-A7E6-0A218552B93A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{2691435F-CE8D-4BAB-A7E6-0A218552B93A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2691435F-CE8D-4BAB-A7E6-0A218552B93A}.Release|Any CPU.Build.0 = Release|Any CPU
{2691435F-CE8D-4BAB-A7E6-0A218552B93A}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
24 changes: 24 additions & 0 deletions ExternalAPI.Furiax/FormulaOneClient/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
12 changes: 12 additions & 0 deletions ExternalAPI.Furiax/FormulaOneClient/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
This file explains how Visual Studio created the project.

The following tools were used to generate this project:
- create-vite

The following steps were used to generate this project:
- Create react project with create-vite: `npm init --yes vite@latest formulaoneclient -- --template=react`.
- Updating vite.config.js with port.
- Create project file (`formulaoneclient.esproj`).
- Create `launch.json` to enable debugging.
- Add project to solution.
- Write this file.
11 changes: 11 additions & 0 deletions ExternalAPI.Furiax/FormulaOneClient/FormulaOneClient.esproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/1.0.1738743">
<PropertyGroup>
<StartupCommand>npm run dev</StartupCommand>
<JavaScriptTestRoot>src\</JavaScriptTestRoot>
<JavaScriptTestFramework>Jest</JavaScriptTestFramework>
<!-- Allows the build (or compile) script located on package.json to run on Build -->
<ShouldRunBuildScript>false</ShouldRunBuildScript>
<!-- Folder where production build objects will be placed -->
<BuildOutputFolder>$(MSBuildProjectDirectory)\dist</BuildOutputFolder>
</PropertyGroup>
</Project>
8 changes: 8 additions & 0 deletions ExternalAPI.Furiax/FormulaOneClient/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
38 changes: 38 additions & 0 deletions ExternalAPI.Furiax/FormulaOneClient/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import js from '@eslint/js'
import globals from 'globals'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'

export default [
{ ignores: ['dist'] },
{
files: ['**/*.{js,jsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
settings: { react: { version: '18.3' } },
plugins: {
react,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...js.configs.recommended.rules,
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
...reactHooks.configs.recommended.rules,
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
]
13 changes: 13 additions & 0 deletions ExternalAPI.Furiax/FormulaOneClient/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Loading