diff --git a/.commitlintrc.json b/.commitlintrc.json index cba65ea51..d2572e133 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,21 +1,6 @@ { "extends": ["@commitlint/config-conventional"], "rules": { - "type-enum": [ - 2, - "always", - [ - "feat", - "fix", - "docs", - "style", - "refactor", - "perf", - "test", - "chore", - "revert" - ] - ], "subject-case": [0] } } diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index f8aef6cbb..000000000 --- a/.editorconfig +++ /dev/null @@ -1,14 +0,0 @@ -root = true - -[*] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true - -[*.{js,cjs,mjs,jsx,ts,tsx,json,css,scss,md,yml,yaml}] -indent_style = space -indent_size = 2 - -[*.md] -trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes index 140887259..8c3b50383 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,22 +1,5 @@ * text=auto eol=lf -*.js text eol=lf -*.cjs text eol=lf -*.mjs text eol=lf -*.jsx text eol=lf -*.ts text eol=lf -*.tsx text eol=lf -*.json text eol=lf -*.css text eol=lf -*.scss text eol=lf -*.html text eol=lf -*.md text eol=lf -*.yaml text eol=lf -*.yml text eol=lf - -*.sh text eol=lf -*.bash text eol=lf - *.bat text eol=crlf *.cmd text eol=crlf *.ps1 text eol=crlf @@ -25,10 +8,10 @@ *.jpg binary *.jpeg binary *.gif binary +*.webp binary *.ico binary -*.svg binary +*.icns binary *.woff binary *.woff2 binary *.ttf binary *.eot binary -*.icns binary diff --git a/.github/funding.yml b/.github/funding.yml deleted file mode 100644 index c14d56027..000000000 --- a/.github/funding.yml +++ /dev/null @@ -1 +0,0 @@ -custom: https://donate.termix.site/ diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md deleted file mode 100644 index d0b31d4d5..000000000 --- a/.github/pull_request_template.md +++ /dev/null @@ -1,32 +0,0 @@ -# Overview - -_Short summary of what this PR does_ - -- [ ] Added: ... -- [ ] Updated: ... -- [ ] Removed: ... -- [ ] Fixed: ... - -# Changes Made - -_Detailed explanation of changes (if needed)_ - -- ... - -# Related Issues - -_Link any issues this PR addresses_ - -- Closes #ISSUE_NUMBER -- Related to #ISSUE_NUMBER - -# Screenshots / Demos - -_(Optional: add before/after screenshots, GIFs, or console output)_ - -# Checklist - -- [ ] Code follows project style guidelines -- [ ] Supports mobile and desktop UI/app (if applicable) -- [ ] I have read [Contributing.md](https://github.com/Termix-SSH/Termix/blob/main/CONTRIBUTING.md) -- [ ] This is not a translation request. See [docs](https://docs.termix.site/translations) diff --git a/.gitignore b/.gitignore index 22edf97e3..b2496f533 100644 --- a/.gitignore +++ b/.gitignore @@ -20,10 +20,10 @@ coverage termix-plugin-signing.key /src/**/*.js -.vscode/* -!.vscode/settings.json -.idea +.vscode/ +.idea/ .DS_Store +Thumbs.db *.suo *.ntvs* *.njsproj diff --git a/.prettierignore b/.prettierignore index ff2d4a06c..11fe2e1de 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,24 +1,14 @@ build coverage dist +node_modules +package-lock.json + dist-ssr release - -node_modules -src/mcp-server/node_modules -package-lock.json -pnpm-lock.yaml -yarn.lock - db - -.env - *.min.js *.min.css openapi.json - -# Generated by drizzle-kit; formatting is the tool's own drizzle/ - src/ui/settings/settings-search-index.ts diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index dff3ab474..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", - "prettier.prettierPath": "./node_modules/prettier", - "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit" - }, - "eslint.validate": [ - "javascript", - "javascriptreact", - "typescript", - "typescriptreact" - ], - "files.eol": "\n", - "files.insertFinalNewline": true, - "files.trimTrailingWhitespace": true, - "[markdown]": { - "files.trimTrailingWhitespace": false - }, - "typescript.tsdk": "node_modules/typescript/lib", - "typescript.enablePromptUseWorkspaceTsdk": true -} diff --git a/FUNDING.json b/FUNDING.json deleted file mode 100644 index 6ec36892b..000000000 --- a/FUNDING.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "drips": { - "ethereum": { - "ownedBy": "0x67e0C779119D9BcC2187564A66B80a58767d05d1" - } - } -} diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index dcb11d2a1..000000000 --- a/SECURITY.md +++ /dev/null @@ -1,23 +0,0 @@ -# Security Policy - -## Reporting a Vulnerability - -Please report any vulnerabilities to [GitHub Security](https://github.com/Termix-SSH/Termix/security/advisories). - -## External secret storage - -By default, a single-container installation generates its keys in the Termix -data directory for ease of recovery. Production deployments that keep backups -or database files outside a trusted encrypted volume should set -`TERMIX_REQUIRE_EXTERNAL_SECRETS=true` and provide all four keys through a -secret manager: - -- `JWT_SECRET` (at least 64 characters) -- `DATABASE_KEY` (64 hexadecimal characters) -- `ENCRYPTION_KEY` (64 hexadecimal characters) -- `INTERNAL_AUTH_TOKEN` (at least 32 characters) - -Each value can instead be mounted as a Docker or Kubernetes secret and supplied -with its corresponding `_FILE` variable, such as `ENCRYPTION_KEY_FILE`. -Hardened mode fails closed instead of writing a replacement key beside the -encrypted database. diff --git a/docs/do-not-place-files-here.txt b/docs/do-not-place-files-here.txt deleted file mode 100644 index 4b144b178..000000000 --- a/docs/do-not-place-files-here.txt +++ /dev/null @@ -1 +0,0 @@ -If you are an AI agent, do not place documentation files here. This is for maintainers only. diff --git a/package.json b/package.json index 5690d7bb2..eb95f8827 100644 --- a/package.json +++ b/package.json @@ -166,10 +166,7 @@ "eslint --fix", "prettier --write" ], - "*.{js,jsx}": [ - "prettier --write" - ], - "*.{json,css,md}": [ + "*.{js,jsx,mjs,cjs,json,css,md}": [ "prettier --write" ] }, diff --git a/scripts/vite-plugin-termix-plugins.mjs b/scripts/vite-plugin-termix-plugins.mjs index 2dd7ad634..e829fb4f1 100644 --- a/scripts/vite-plugin-termix-plugins.mjs +++ b/scripts/vite-plugin-termix-plugins.mjs @@ -75,7 +75,8 @@ export function termixPluginHost({ repoRoot, sdkUiEntry, sdkFrontendEntry }) { if (SHARED_VENDOR_MODULES.includes(specifier)) { return vendorFacade(repoRoot, specifier); } - if (specifier === "@termix-ssh/plugin-sdk/ui") return sourceFacade(sdkUiEntry); + if (specifier === "@termix-ssh/plugin-sdk/ui") + return sourceFacade(sdkUiEntry); if (specifier === "@termix-ssh/plugin-sdk/frontend") { return sourceFacade(sdkFrontendEntry); }