Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler committed May 6, 2024
1 parent 491709d commit de766cc
Show file tree
Hide file tree
Showing 76 changed files with 15,321 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tools/portal/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.{ts,js}]
quote_type = single

[*.{md,mdx}]
max_line_length = off
trim_trailing_whitespace = false

[*.{yml,yaml}]
quote_type = single
20 changes: 20 additions & 0 deletions tools/portal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
**/node_modules/**

.DS_Store
.vscode/*
!.vscode/launch.json
.idea

docker/upload
docker/library
uploads
coverage

mobile/gradle.properties
mobile/openapi/pubspec.lock
mobile/*.jks
mobile/libisar.dylib

open-api/typescript-sdk/build
mobile/android/fastlane/report.xml
mobile/ios/fastlane/report.xml
38 changes: 38 additions & 0 deletions tools/portal/server/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'plugin:unicorn/recommended'],
root: true,
env: {
node: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'error',
'unicorn/prevent-abbreviations': 'off',
'unicorn/filename-case': 'off',
'unicorn/no-null': 'off',
'unicorn/prefer-top-level-await': 'off',
'unicorn/prefer-event-target': 'off',
'unicorn/no-thenable': 'off',
'unicorn/import-style': 'off',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': 'error',
// Note: you must disable the base rule as it can report incorrect errors
'require-await': 'off',
'@typescript-eslint/require-await': 'error',
curly: 2,
'prettier/prettier': 0,
'no-restricted-imports': ['error', { patterns: [{ group: ['.*'], message: 'Relative imports are not allowed.' }] }],
},
};
1 change: 1 addition & 0 deletions tools/portal/server/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.12
8 changes: 8 additions & 0 deletions tools/portal/server/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"semi": true,
"organizeImportsSkipDestructiveCodeActions": true,
"plugins": ["prettier-plugin-organize-imports"]
}
73 changes: 73 additions & 0 deletions tools/portal/server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a>
</p>

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
</p>
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->

## Description

[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.

## Installation

```bash
$ npm install
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).

## Stay in touch

- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Nest is [MIT licensed](LICENSE).
2 changes: 2 additions & 0 deletions tools/portal/server/dist/app.module.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export declare class AppModule {
}
23 changes: 23 additions & 0 deletions tools/portal/server/dist/app.module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/portal/server/dist/app.module.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions tools/portal/server/dist/controllers/preview.controller.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { PreviewCreateDto, PreviewDto } from 'src/dtos/preview.dto';
import { PreviewService } from 'src/services/preview.service';
export declare class PreviewController {
private service;
constructor(service: PreviewService);
getPreviewInstances(): Promise<Array<PreviewDto>>;
getPreviewInstance(name: string): Promise<PreviewDto>;
createPreviewInstance(dto: PreviewCreateDto): Promise<PreviewDto>;
}
59 changes: 59 additions & 0 deletions tools/portal/server/dist/controllers/preview.controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions tools/portal/server/dist/dtos/preview.dto.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export declare class PreviewDto {
name: string;
spec: PreviewSpecDto;
status: any;
}
export declare class PreviewCreateDto {
name: string;
spec: PreviewSpecDto;
}
declare class PreviewSpecDto {
immich: ImmichConfigurationDto;
database: DatabaseConfigurationDto;
}
declare class ImmichConfigurationDto {
tag: string;
server: ImmichServerConfigurationDto;
}
declare class ImmichServerConfigurationDto {
replicas?: number;
}
declare class DatabaseConfigurationDto {
initType?: string;
}
export {};
32 changes: 32 additions & 0 deletions tools/portal/server/dist/dtos/preview.dto.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/portal/server/dist/dtos/preview.dto.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/portal/server/dist/main.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
12 changes: 12 additions & 0 deletions tools/portal/server/dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/portal/server/dist/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions tools/portal/server/dist/services/preview.service.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { PreviewCreateDto, PreviewDto } from 'src/dtos/preview.dto';
export declare class PreviewService {
private apiUrl;
getPreviewInstances(): Promise<Array<PreviewDto>>;
getPreviewInstance(name: string): Promise<PreviewDto>;
createPreviewInstance(dto: PreviewCreateDto): Promise<PreviewDto>;
}
35 changes: 35 additions & 0 deletions tools/portal/server/dist/services/preview.service.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/portal/server/dist/services/preview.service.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tools/portal/server/dist/tsconfig.build.tsbuildinfo

Large diffs are not rendered by default.

Loading

0 comments on commit de766cc

Please sign in to comment.