Feature Request: Support Custom Server Configuration in aw-client-js

オープン
#48 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nodejs, typescript
領域
api

調査の方向性

src/aw-client.ts の 140 行目付近から始め、aw-client-js が現在サーバーエンドポイントをどのように選択しているかを調べてください。カスタム base URL とポートについてサポートされている設定動作を特定し、そのうえでクライアントがデフォルトではない ActivityWatch サーバーまたはリモートの ActivityWatch サーバーを対象にできることを検証してください。issue ではテストファイルが指定されていないため、完了には選択した設定インターフェースのカバレッジを含める必要があります。

索引モデルが issue の本文から書いたものです。

説明

To support multi-user environments and remote server deployments, aw-client-js should allow explicit configuration of the server base_url and port.

Currently, the native Windows client achieves this via configuration files in the client's config folder, which enables users to connect to a server running on a different machine or custom port. However, aw-client-js lacks a similar mechanism, making it difficult for browser-based or custom clients to connect to non-default endpoints.

Adding support for custom server URLs in aw-client-js (e.g. via constructor options or environment variables) would bring it in line with the native clients and enable greater flexibility for advanced use cases like:

  • Connecting to a centralized ActivityWatch server
  • Running multiple clients across devices
  • Developing third-party clients or extensions

Relevant code reference: aw-client.ts L140

主要言語
TypeScript
スター
40
フォーク
20
平均マージ
10日 20時間
マージ済み PR(30日)
7

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ActivityWatch/aw-client-js のほかの issue

ActivityWatch/aw-client-js の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。