Skip to content

Commit e6f4a4d

Browse files
authored
feat: Add log settings, view and download (#1545)
1 parent 9516e6b commit e6f4a4d

51 files changed

Lines changed: 2603 additions & 167 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66
"typescript",
77
"typescriptreact"
88
],
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": "explicit",
11+
"source.organizeImports": "explicit"
12+
},
913
"typescript.tsdk": "node_modules/typescript/lib",
1014
"typescript.enablePromptUseWorkspaceTsdk": true,
15+
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
1116
"sqltools.connections": [
1217
{
1318
"previewLimit": 50,
@@ -38,5 +43,8 @@
3843
"typescript.preferences.importModuleSpecifier": "relative",
3944
"files.associations": {
4045
"globals.css": "tailwindcss"
46+
},
47+
"search.exclude": {
48+
"**/.yarn": true
4149
}
4250
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
"lint": "turbo lint",
1515
"format": "turbo format",
1616
"format:check": "turbo format:check",
17-
"knip": "knip"
17+
"knip": "knip",
18+
"check-types": "turbo check-types"
1819
},
1920
"workspaces": [
2021
"ui",
21-
"server"
22+
"server",
23+
"packages/*"
2224
],
2325
"engines": {
2426
"node": ">=18"

packages/contracts/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import globals from 'globals'
2+
import pluginJs from '@eslint/js'
3+
import tseslint from 'typescript-eslint'
4+
import eslintConfigPrettier from 'eslint-config-prettier'
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
{ files: ['**/*.{js,mjs,cjs,ts}'] },
9+
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.strictTypeChecked,
12+
eslintConfigPrettier,
13+
]

packages/contracts/package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "@maintainerr/contracts",
3+
"version": "2.8.0",
4+
"private": true,
5+
"main": "./dist/index.js",
6+
"module": "./dist/index.mjs",
7+
"types": "./dist/index.d.mts",
8+
"exports": {
9+
".": {
10+
"import": {
11+
"types": "./dist/index.d.mts",
12+
"default": "./dist/index.mjs"
13+
},
14+
"require": {
15+
"types": "./dist/index.d.ts",
16+
"default": "./dist/index.js"
17+
}
18+
}
19+
},
20+
"files": [
21+
"dist"
22+
],
23+
"scripts": {
24+
"build": "tsup",
25+
"dev": "tsup --watch",
26+
"lint": "eslint \"{src,test}/**/*.ts\" --fix",
27+
"format": "prettier --write --ignore-path .gitignore .",
28+
"format:check": "prettier --check --ignore-path .gitignore .",
29+
"check-types": "tsc --noEmit"
30+
},
31+
"devDependencies": {
32+
"@eslint/js": "^9.19.0",
33+
"eslint": "^9.19.0",
34+
"eslint-config-prettier": "^10.0.1",
35+
"globals": "^15.14.0",
36+
"prettier": "^3.4.2",
37+
"tsup": "^8.3.6",
38+
"typescript": "^5.7.3",
39+
"typescript-eslint": "^8.22.0"
40+
},
41+
"dependencies": {
42+
"@nestjs/common": "^11.0.10",
43+
"@nestjs/core": "^11.0.10",
44+
"@nestjs/swagger": "^11.0.3",
45+
"class-transformer": "^0.5.1",
46+
"class-validator": "^0.14.1",
47+
"nestjs-zod": "^4.3.1",
48+
"reflect-metadata": "^0.2.2",
49+
"rxjs": "^7.8.1",
50+
"zod": "^3.24.1"
51+
}
52+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* @see https://prettier.io/docs/configuration
3+
* @type {import("prettier").Config}
4+
*/
5+
const config = {
6+
singleQuote: true,
7+
semi: false,
8+
}
9+
10+
module.exports = config
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './versionResponse.dto'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export interface VersionResponse {
2+
status: 1 | 0
3+
version: string
4+
commitTag: string
5+
updateAvailable: boolean
6+
}

packages/contracts/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './app'
2+
export * from './settings/logs'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export * from './logEvent.dto'
2+
export * from './logFile.dto'
3+
export * from './logSetting'
4+
export * from './logSetting.dto'

0 commit comments

Comments
 (0)