Posts by terry@gmail.com

terry@gmail.com's profile picture

moon tv

services: moontv-core: image: ghcr.io/moontechlab/lunatv:latest container_name: moontv-core restart: on-failure ports: - '3000:3000' environment: - USERNAME=admin - PASSWORD=P@ssw0rd - NEXT_PUBLIC_STORAGE_TYPE=kvrocks - KVROCKS_URL=redis://moontv-kvrocks:6666 networks: - moontv-network depends_on: - moontv-kvrocks moontv-kvrocks: image: apache/kvrocks container_name: moontv-kvrocks restart: unless-stopped volumes: - kvrocks-data:/var/lib/kvrocks networks: - moontv-network networks: moontv-network: driver: bridge volumes: kvrocks-data:admin@fnos:/fs/1000/ftp/moon$ admin@fnos:/fs/1000/ftp/moon$ admin@fnos:/fs/1000/ftp/moon$ vi docker-compose.yml admin@fnos:/fs/1000/ftp/moon$ vi docker-compose.yml admin@fnos:/fs/1000/ftp/moon$ cat docker-compose.yml services: moontv-core: image: ghcr.io/moontechlab/lunatv:latest container_name: moontv-core restart: on-failure ports: - '3000:3000' environment: - USERNAME=admin - PASSWORD=P@ssw0rd - NEXT_PUBLIC_STORAGE_TYPE=kvrocks - KVROCKS_URL=redis://moontv-kvrocks:6666 networks: - moontv-network depends_on: - moontv-kvrocks moontv-kvrocks: image: apache/kvrocks container_name: moontv-kvrocks restart: unless-stopped volumes: - kvrocks-data:/var/lib/kvrocks networks: - moontv-network networks: moontv-network: driver: bridge volumes: kvrocks-data ## https://github.com/samqin123/MoonTV/blob/main/config.json

terry@gmail.com's profile picture

vscode

{ // ==================== 編輯器基本設定 ==================== "editor.fontSize": 14, "editor.fontFamily": "'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace", "editor.fontLigatures": true, "editor.lineHeight": 1.6, "editor.tabSize": 2, "editor.insertSpaces": true, "editor.detectIndentation": false, "editor.wordWrap": "on", "editor.minimap.enabled": true, "editor.minimap.maxColumn": 80, "editor.renderWhitespace": "boundary", "editor.cursorBlinking": "expand", "editor.cursorSmoothCaretAnimation": "off", "editor.smoothScrolling": false, "editor.codeActionsOnSave": { // 移除 fixAll.eslint,改由 Prettier 統一負責排版,避免儲存時拉長 ESLint 語法分析耗時 "source.organizeImports": "never", "source.addMissingImports": "never", }, "editor.suggestSelection": "first", "editor.quickSuggestions": { "strings": true, "comments": true, "other": true, }, "editor.inlineSuggest.enabled": true, "editor.linkedEditing": true, "editor.autoClosingBrackets": "always", "editor.autoClosingQuotes": "always", "editor.snippetSuggestions": "top", // ==================== TypeScript/JavaScript 設定 ==================== "js/ts.updateImportsOnFileMove.enabled": "always", "js/ts.suggest.autoImports": true, "js/ts.preferences.importModuleSpecifier": "relative", "js/ts.autoClosingTags.enabled": true, "js/ts.preferences.quoteStyle": "single", "js/ts.experimental.useTsgo": false, // 若非特定實驗環境,建議關閉以維持 TS Server 穩定度 // ==================== ESLint 設定(效能優化) ==================== "eslint.enable": true, "eslint.validate": [ "javascript", "javascriptreact", "typescript", "typescriptreact", ], "eslint.run": "onSave", // 從 onType 改為 onSave,大幅降低打字與儲存時背景解析 AST 的 CPU 負擔 "eslint.codeActionsOnSave.mode": "problems", // 僅針對確認的問題做輕量處理 // ==================== Prettier 設定 ==================== "prettier.enable": true, "prettier.trailingComma": "es5", "prettier.printWidth": 80, "prettier.tabWidth": 2, "prettier.arrowParens": "always", // ==================== 檔案關聯與預設格式化工具 ==================== "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode", }, "[javascriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode", }, "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode", }, "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode", }, "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode", }, "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode", }, // ==================== 檔案排除設定 ==================== "files.exclude": { "**/.git": false, "**/.DS_Store": true, "**/node_modules": false, "**/.next": true, "**/.nuxt": true, "**/dist": true, "**/build": true, "**/.cache": true, "**/coverage": true, }, "search.exclude": { "**/node_modules": true, "**/bower_components": true, "**/*.code-search": true, "**/dist": true, "**/build": true, "**/.next": true, "**/.nuxt": true, "**/coverage": true, "**/.yarn": true, "**/.pnp.*": true, }, // ==================== 檔案儲存設定 ==================== "files.autoSave": "afterDelay", "files.autoSaveDelay": 3000, "files.trimTrailingWhitespace": true, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "files.eol": "\n", // ==================== 終端機設定 ==================== "terminal.integrated.fontSize": 13, "terminal.integrated.fontFamily": "'JetBrains Mono', 'Fira Code', monospace", "terminal.integrated.cursorBlinking": false, "terminal.integrated.cursorStyle": "line", "terminal.integrated.scrollback": 10000, // ==================== Git 設定 ==================== "git.autofetch": true, "git.confirmSync": false, "git.enableSmartCommit": true, "git.suggestSmartCommit": true, "git.ignoreRebaseWarning": true, // ==================== 工作區設定 ==================== "workbench.colorTheme": "Gitpod Dark", "workbench.iconTheme": "material-icon-theme", "workbench.startupEditor": "welcomePage", "workbench.editor.enablePreview": false, "workbench.editor.labelFormat": "short", "workbench.list.smoothScrolling": false, // ==================== 其他最佳化設定 ==================== "explorer.confirmDelete": false, "explorer.confirmDragAndDrop": false, "explorer.compactFolders": false, "breadcrumbs.enabled": true, "emmet.includeLanguages": { "javascript": "javascriptreact", "typescript": "typescriptreact", }, "emmet.triggerExpansionOnTab": true, // ==================== 效能設定 ==================== "files.watcherExclude": { "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, "**/node_modules/**": true, "**/.hg/store/**": true, "**/dist/**": true, "**/build/**": true, }, "npm.packageManager": "npm", // ==================== Path Intellisense ==================== "path-intellisense.autoSlashAfterDirectory": true, "path-intellisense.extensionOnImport": true, // ==================== Auto Rename Tag ==================== "auto-rename-tag.activationOnLanguage": [ "html", "xml", "javascript", "javascriptreact", "typescript", "typescriptreact", ], "prettier.bracketSameLine": true, "claudeCode.preferredLocation": "panel", "terminal.integrated.initialHint": false, "editor.bracketPairColorization.independentColorPoolPerBracketType": true, "json.schemaDownload.trustedDomains": { "https://schemastore.azurewebsites.net/": true, "https://raw.githubusercontent.com/microsoft/vscode/": true, "https://raw.githubusercontent.com/devcontainers/spec/": true, "https://www.schemastore.org/": true, "https://json.schemastore.org/": true, "https://json-schema.org/": true, "https://developer.microsoft.com/json-schemas/": true, "https://biomejs.dev": true, }, "[graphql]": { "editor.defaultFormatter": "esbenp.prettier-vscode", }, "vscode-office.editorTheme": "Github Dark", "github.copilot.enable": { "*": false, "plaintext": false, "markdown": false, "scminput": false, }, "chat.viewSessions.orientation": "stacked", "claudeCode.useTerminal": true, "editor.formatOnSave": true, "claudeCode.hideOnboarding": true, // 啟用嚴格/基礎型別檢查(可選: "off", "basic", "strict") "python.analysis.typeCheckingMode": "basic", // 自動補全匯入(Auto-Import) "python.analysis.autoImportCompletions": true, // 索引第三方套件以提供更精準的補全 "python.analysis.indexing": true, "python.languageServer": "Pylance", "[python]": { "editor.defaultFormatter": "charliermarsh.ruff", "editor.formatOnSave": true, "editor.codeActionsOnSave": { // "source.fixAll.ruff": "explicit", "source.organizeImports.ruff": "explicit", }, }, "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode", }, }