Skip to content

Commit

Permalink
Add client side files, update controller and OpenAPI config
Browse files Browse the repository at this point in the history
  • Loading branch information
markusobviuse committed May 21, 2024
1 parent 22d04ca commit dda67dc
Show file tree
Hide file tree
Showing 33 changed files with 4,517 additions and 131 deletions.
404 changes: 404 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ bin/

xcopy*
Our.Umbraco.TheDashboard.Testsite/
Artifacts
Artifacts

Our.Umbraco.TheDashboard/wwwroot/App_Plugins/Our.Umbraco.TheDashboard/dist
24 changes: 24 additions & 0 deletions Our.Umbraco.TheDashboard/Client/.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?
16 changes: 16 additions & 0 deletions Our.Umbraco.TheDashboard/Client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!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 + Lit + TS</title>
<link rel="stylesheet" href="./src/index.css" />
<script type="module" src="/src/my-element.ts"></script>
</head>
<body>
<my-element>
<h1>Vite + Lit</h1>
</my-element>
</body>
</html>
14 changes: 14 additions & 0 deletions Our.Umbraco.TheDashboard/Client/openapi-ts.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineConfig } from '@hey-api/openapi-ts';

export default defineConfig({
input: 'http://localhost:24760/umbraco/swagger/the-dashboard/swagger.json',
output: 'src/backend-api',
//format : false,
//enums : 'javascript', // Typescript not recommended https://heyapi.vercel.app/openapi-ts/configuration.html#enums
schemas : false,
//lint : false,
//debug: true,
services: {
name: '{{name}}Resource'
}
});
Loading

0 comments on commit dda67dc

Please sign in to comment.