mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-15 22:07:08 +02:00
Merge branch 'master' into ci-skip-unchanged
This commit is contained in:
commit
bd611e7f6c
21 changed files with 1196 additions and 467 deletions
40
log/log.go
40
log/log.go
|
|
@ -1,6 +1,7 @@
|
|||
package log
|
||||
|
||||
import (
|
||||
"cmp"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
|
@ -9,9 +10,10 @@ import (
|
|||
"net/http"
|
||||
"os"
|
||||
"runtime"
|
||||
"sort"
|
||||
"slices"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
|
|
@ -76,18 +78,19 @@ type levelPath struct {
|
|||
}
|
||||
|
||||
var (
|
||||
currentLevel Level
|
||||
loggerMu sync.RWMutex
|
||||
defaultLogger = logrus.New()
|
||||
logSourceLine = false
|
||||
rootPath string
|
||||
logLevels []levelPath
|
||||
currentLevel atomic.Uint32
|
||||
hasLogLevelOverrides atomic.Bool
|
||||
loggerMu sync.RWMutex
|
||||
defaultLogger = logrus.New()
|
||||
logSourceLine = false
|
||||
rootPath string
|
||||
logLevels []levelPath
|
||||
)
|
||||
|
||||
// SetLevel sets the global log level used by the simple logger.
|
||||
func SetLevel(l Level) {
|
||||
loggerMu.Lock()
|
||||
currentLevel = l
|
||||
currentLevel.Store(uint32(l))
|
||||
defaultLogger.Level = logrus.TraceLevel
|
||||
loggerMu.Unlock()
|
||||
logrus.SetLevel(logrus.Level(l))
|
||||
|
|
@ -126,9 +129,10 @@ func SetLogLevels(levels map[string]string) {
|
|||
for k, v := range levels {
|
||||
logLevels = append(logLevels, levelPath{path: k, level: ParseLogLevel(v)})
|
||||
}
|
||||
sort.Slice(logLevels, func(i, j int) bool {
|
||||
return logLevels[i].path > logLevels[j].path
|
||||
slices.SortFunc(logLevels, func(a, b levelPath) int {
|
||||
return cmp.Compare(b.path, a.path)
|
||||
})
|
||||
hasLogLevelOverrides.Store(len(logLevels) != 0)
|
||||
}
|
||||
|
||||
func SetLogSourceLine(enabled bool) {
|
||||
|
|
@ -193,9 +197,7 @@ func SetDefaultLogger(l *logrus.Logger) *logrus.Logger {
|
|||
}
|
||||
|
||||
func CurrentLevel() Level {
|
||||
loggerMu.RLock()
|
||||
defer loggerMu.RUnlock()
|
||||
return currentLevel
|
||||
return Level(currentLevel.Load())
|
||||
}
|
||||
|
||||
// IsGreaterOrEqualTo returns true if the caller's current log level is equal or greater than the provided level.
|
||||
|
|
@ -248,18 +250,18 @@ func Writer() io.Writer {
|
|||
}
|
||||
|
||||
func shouldLog(requiredLevel Level, skip int) bool {
|
||||
loggerMu.RLock()
|
||||
level := currentLevel
|
||||
levels := logLevels
|
||||
loggerMu.RUnlock()
|
||||
|
||||
level := Level(currentLevel.Load())
|
||||
if level >= requiredLevel {
|
||||
return true
|
||||
}
|
||||
if len(levels) == 0 {
|
||||
if !hasLogLevelOverrides.Load() {
|
||||
return false
|
||||
}
|
||||
|
||||
loggerMu.RLock()
|
||||
levels := logLevels
|
||||
loggerMu.RUnlock()
|
||||
|
||||
_, file, _, ok := runtime.Caller(skip)
|
||||
if !ok {
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -137,9 +137,10 @@ ON CONFLICT (user_id, library_id) DO NOTHING;`,
|
|||
func (r *libraryRepository) StoreMusicFolder() error {
|
||||
sq := Update(r.tableName).Set("path", conf.Server.MusicFolder).
|
||||
Set("updated_at", time.Now()).
|
||||
Where(Eq{"id": model.DefaultLibraryID})
|
||||
_, err := r.executeSQL(sq)
|
||||
if err != nil {
|
||||
Where(Eq{"id": model.DefaultLibraryID}).
|
||||
Where(NotEq{"path": conf.Server.MusicFolder})
|
||||
rowsAffected, err := r.executeSQL(sq)
|
||||
if err == nil && rowsAffected > 0 {
|
||||
libLock.Lock()
|
||||
defer libLock.Unlock()
|
||||
libCache[model.DefaultLibraryID] = conf.Server.MusicFolder
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/Masterminds/squirrel"
|
||||
"github.com/navidrome/navidrome/conf"
|
||||
"github.com/navidrome/navidrome/conf/configtest"
|
||||
"github.com/navidrome/navidrome/log"
|
||||
"github.com/navidrome/navidrome/model"
|
||||
"github.com/navidrome/navidrome/model/request"
|
||||
|
|
@ -139,6 +141,46 @@ var _ = Describe("LibraryRepository", func() {
|
|||
})
|
||||
})
|
||||
|
||||
Describe("StoreMusicFolder", func() {
|
||||
var libBefore *model.Library
|
||||
|
||||
BeforeEach(func() {
|
||||
var err error
|
||||
libBefore, err = repo.Get(model.DefaultLibraryID)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
DeferCleanup(configtest.SetupConfig())
|
||||
DeferCleanup(func() {
|
||||
_, _ = conn.NewQuery("update library set path = {:path}, updated_at = {:updated_at} where id = {:id}").
|
||||
Bind(dbx.Params{"path": libBefore.Path, "updated_at": libBefore.UpdatedAt, "id": model.DefaultLibraryID}).
|
||||
Execute()
|
||||
libLock.Lock()
|
||||
defer libLock.Unlock()
|
||||
delete(libCache, model.DefaultLibraryID)
|
||||
})
|
||||
})
|
||||
|
||||
It("skips updating the default library when the configured path is unchanged", func() {
|
||||
conf.Server.MusicFolder = libBefore.Path
|
||||
Expect(repo.StoreMusicFolder()).To(Succeed())
|
||||
|
||||
libAfter, err := repo.Get(model.DefaultLibraryID)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(libAfter.Path).To(Equal(libBefore.Path))
|
||||
Expect(libAfter.UpdatedAt).To(Equal(libBefore.UpdatedAt))
|
||||
})
|
||||
|
||||
It("updates the default library only when the configured path changes", func() {
|
||||
conf.Server.MusicFolder = libBefore.Path + "-updated"
|
||||
Expect(repo.StoreMusicFolder()).To(Succeed())
|
||||
|
||||
libAfter, err := repo.Get(model.DefaultLibraryID)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(libAfter.Path).To(Equal(conf.Server.MusicFolder))
|
||||
Expect(libAfter.UpdatedAt).ToNot(Equal(libBefore.UpdatedAt))
|
||||
})
|
||||
})
|
||||
|
||||
It("refreshes stats", func() {
|
||||
libBefore, err := repo.Get(1)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ Generate boilerplate from a schema:
|
|||
# Install XTP: https://docs.xtp.dylibso.com/docs/cli
|
||||
|
||||
xtp plugin init \
|
||||
--schema-file ../schemas/metadata_agent.yaml \
|
||||
--schema-file ../capabilities/metadata_agent.yaml \
|
||||
--template go \
|
||||
--path ./my-plugin \
|
||||
--name my-plugin
|
||||
|
|
@ -119,7 +119,7 @@ xtp plugin build
|
|||
zip -j my-plugin.ndp manifest.json dist/plugin.wasm
|
||||
```
|
||||
|
||||
Available schemas in [../schemas/](../schemas/):
|
||||
Available schemas in [../capabilities/](../capabilities/):
|
||||
- `metadata_agent.yaml` – Artist/album metadata
|
||||
- `scrobbler.yaml` – Scrobbling integration
|
||||
- `lifecycle.yaml` – Init callbacks
|
||||
|
|
|
|||
|
|
@ -84,4 +84,4 @@ Rust plugins must be compiled to WebAssembly:
|
|||
cargo build --target wasm32-wasip1 --release
|
||||
```
|
||||
|
||||
See the [webhook-rs](../../examples/webhook-rs/) example for a complete plugin implementation.
|
||||
See the [webhook-rs](../../../examples/webhook-rs/) example for a complete plugin implementation.
|
||||
|
|
|
|||
|
|
@ -5,48 +5,53 @@
|
|||
"name": "曲",
|
||||
"fields": {
|
||||
"albumArtist": "アルバムアーティスト",
|
||||
"duration": "長さ",
|
||||
"duration": "再生時間",
|
||||
"trackNumber": "#",
|
||||
"playCount": "再生数",
|
||||
"playCount": "再生回数",
|
||||
"title": "タイトル",
|
||||
"artist": "アーティスト",
|
||||
"composer": "作曲",
|
||||
"album": "アルバム",
|
||||
"path": "ファイルパス",
|
||||
"libraryName": "ライブラリ",
|
||||
"genre": "ジャンル",
|
||||
"compilation": "Compilation",
|
||||
"compilation": "コンピレーション",
|
||||
"year": "年",
|
||||
"size": "ファイルサイズ",
|
||||
"updatedAt": "更新日",
|
||||
"updatedAt": "更新日時",
|
||||
"bitRate": "ビットレート",
|
||||
"bitDepth": "ビット深度",
|
||||
"sampleRate": "サンプリングレート",
|
||||
"albumGain": "アルバムゲイン",
|
||||
"trackGain": "トラックゲイン",
|
||||
"channels": "チャンネル",
|
||||
"disc": "ディスク %{discNumber}",
|
||||
"discSubtitle": "ディスクサブタイトル",
|
||||
"starred": "お気に入り",
|
||||
"comment": "コメント",
|
||||
"rating": "レート",
|
||||
"quality": "品質",
|
||||
"rating": "評価",
|
||||
"quality": "形式",
|
||||
"bpm": "BPM",
|
||||
"playDate": "最後の再生",
|
||||
"channels": "チャンネル",
|
||||
"createdAt": "追加日",
|
||||
"grouping": "グループ分け",
|
||||
"playDate": "最終再生日時",
|
||||
"createdAt": "追加日時",
|
||||
"grouping": "グループ化",
|
||||
"mood": "ムード",
|
||||
"participants": "追加参加者",
|
||||
"participants": "参加者",
|
||||
"tags": "追加タグ",
|
||||
"mappedTags": "マッピング済みタグ",
|
||||
"rawTags": "未処理タグ",
|
||||
"bitDepth": "ビット深度",
|
||||
"sampleRate": "サンプリングレート",
|
||||
"missing": "不明",
|
||||
"libraryName": "ライブラリ"
|
||||
"mappedTags": "マッピングされたタグ",
|
||||
"rawTags": "未加工タグ",
|
||||
"missing": "不明"
|
||||
},
|
||||
"actions": {
|
||||
"addToQueue": "最後に再生",
|
||||
"playNow": "すぐに再生",
|
||||
"playNow": "今すぐ再生",
|
||||
"addToPlaylist": "プレイリストに追加",
|
||||
"shuffleAll": "全曲シャッフル",
|
||||
"showInPlaylist": "プレイリストで表示",
|
||||
"shuffleAll": "すべてシャッフル",
|
||||
"download": "ダウンロード",
|
||||
"playNext": "次に再生",
|
||||
"info": "詳細",
|
||||
"showInPlaylist": "含まれるプレイリスト"
|
||||
"instantMix": "インスタントミックス"
|
||||
}
|
||||
},
|
||||
"album": {
|
||||
|
|
@ -54,48 +59,49 @@
|
|||
"fields": {
|
||||
"albumArtist": "アルバムアーティスト",
|
||||
"artist": "アーティスト",
|
||||
"duration": "長さ",
|
||||
"songCount": "曲",
|
||||
"playCount": "再生数",
|
||||
"name": "名前",
|
||||
"duration": "再生時間",
|
||||
"songCount": "曲数",
|
||||
"playCount": "再生回数",
|
||||
"size": "ファイルサイズ",
|
||||
"name": "アルバム名",
|
||||
"libraryName": "ライブラリ",
|
||||
"genre": "ジャンル",
|
||||
"compilation": "Compilation",
|
||||
"compilation": "コンピレーション",
|
||||
"year": "年",
|
||||
"updatedAt": "更新日",
|
||||
"comment": "コメント",
|
||||
"rating": "レート",
|
||||
"createdAt": "追加日",
|
||||
"size": "サイズ",
|
||||
"originalDate": "オリジナルの日付",
|
||||
"releaseDate": "リリース日",
|
||||
"date": "録音日",
|
||||
"originalDate": "オリジナル発売日",
|
||||
"releaseDate": "発売日",
|
||||
"releases": "リリース",
|
||||
"released": "リリース",
|
||||
"recordLabel": "ラベル",
|
||||
"released": "リリース済み",
|
||||
"updatedAt": "更新日時",
|
||||
"comment": "コメント",
|
||||
"rating": "評価",
|
||||
"createdAt": "追加日時",
|
||||
"recordLabel": "レーベル",
|
||||
"catalogNum": "カタログ番号",
|
||||
"releaseType": "タイプ",
|
||||
"grouping": "グループ分け",
|
||||
"releaseType": "リリースタイプ",
|
||||
"grouping": "グループ化",
|
||||
"media": "メディア",
|
||||
"mood": "ムード",
|
||||
"date": "録音日",
|
||||
"missing": "不明",
|
||||
"libraryName": "ライブラリ"
|
||||
"missing": "不明"
|
||||
},
|
||||
"actions": {
|
||||
"playAll": "再生",
|
||||
"playAll": "すべて再生",
|
||||
"playNext": "次に再生",
|
||||
"addToQueue": "最後に再生",
|
||||
"share": "共有",
|
||||
"shuffle": "シャッフル",
|
||||
"addToPlaylist": "プレイリストへ追加",
|
||||
"addToPlaylist": "プレイリストに追加",
|
||||
"download": "ダウンロード",
|
||||
"info": "詳細",
|
||||
"share": "共有"
|
||||
"refresh": "メタデータを更新"
|
||||
},
|
||||
"lists": {
|
||||
"all": "全て",
|
||||
"all": "すべて",
|
||||
"random": "ランダム",
|
||||
"recentlyAdded": "最近の追加",
|
||||
"recentlyPlayed": "最近の再生",
|
||||
"mostPlayed": "最も再生",
|
||||
"mostPlayed": "最多再生",
|
||||
"starred": "お気に入り",
|
||||
"topRated": "高評価"
|
||||
}
|
||||
|
|
@ -106,33 +112,33 @@
|
|||
"name": "名前",
|
||||
"albumCount": "アルバム枚数",
|
||||
"songCount": "曲数",
|
||||
"playCount": "再生数",
|
||||
"rating": "レート",
|
||||
"genre": "ジャンル",
|
||||
"size": "サイズ",
|
||||
"playCount": "再生回数",
|
||||
"rating": "評価",
|
||||
"genre": "ジャンル",
|
||||
"role": "役割",
|
||||
"missing": "不明"
|
||||
},
|
||||
"roles": {
|
||||
"albumartist": "アルバムアーティスト",
|
||||
"artist": "アーティスト",
|
||||
"composer": "作曲家",
|
||||
"conductor": "指揮者",
|
||||
"lyricist": "作詞家",
|
||||
"arranger": "編曲者",
|
||||
"composer": "作曲",
|
||||
"conductor": "指揮",
|
||||
"lyricist": "作詞",
|
||||
"arranger": "編曲",
|
||||
"producer": "プロデューサー",
|
||||
"director": "ディレクター",
|
||||
"director": "監督",
|
||||
"engineer": "エンジニア",
|
||||
"mixer": "ミキサー",
|
||||
"remixer": "リミキサー",
|
||||
"djmixer": "DJ ミキサー",
|
||||
"performer": "演奏者",
|
||||
"maincredit": "アルバムアーティストもしくはアーティスト"
|
||||
"performer": "演奏",
|
||||
"maincredit": "アルバムアーティストまたはアーティスト"
|
||||
},
|
||||
"actions": {
|
||||
"topSongs": "人気曲",
|
||||
"shuffle": "シャッフル",
|
||||
"radio": "ラジオ",
|
||||
"topSongs": "トップソング"
|
||||
"radio": "ラジオ"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
|
|
@ -140,55 +146,58 @@
|
|||
"fields": {
|
||||
"userName": "ユーザー名",
|
||||
"isAdmin": "管理者",
|
||||
"lastLoginAt": "最終ログイン",
|
||||
"updatedAt": "更新日",
|
||||
"lastLoginAt": "最終ログイン日時",
|
||||
"lastAccessAt": "最終アクセス日時",
|
||||
"updatedAt": "更新日時",
|
||||
"name": "名前",
|
||||
"password": "パスワード",
|
||||
"createdAt": "作成日",
|
||||
"createdAt": "作成日時",
|
||||
"changePassword": "パスワードを変更しますか?",
|
||||
"currentPassword": "現在のパスワード",
|
||||
"newPassword": "新しいパスワード",
|
||||
"token": "トークン",
|
||||
"lastAccessAt": "最終アクセス",
|
||||
"libraries": "ライブラリ"
|
||||
"libraries": "ライブラリ",
|
||||
"scrobbleFilter": "Scrobble フィルター"
|
||||
},
|
||||
"helperTexts": {
|
||||
"name": "名前の変更は次回ログイン以降反映されます",
|
||||
"libraries": "このユーザーに対して特定ライブラリを選択するか、デフォルトのライブラリを使用する場合は空欄のままにします"
|
||||
"name": "ユーザー名の変更は、次回ログイン時に反映されます",
|
||||
"libraries": "このユーザー用に特定のライブラリを選択するか、デフォルトのライブラリを使用する場合は空のままにしてください",
|
||||
"scrobbleFilter": "これらのスマートプレイリストのルールに一致する曲は、Last.fm、ListenBrainz、または Scrobble プラグインに送信されません。スマートプレイリストと同じ JSON 構文と動作を使用します。例: {\"all\":[{\"lt\":{\"rating\":4}}]}。すべてを Scrobble する場合は空欄のままにしてください。ローカルでの再生回数には影響しません。"
|
||||
},
|
||||
"notifications": {
|
||||
"created": "ユーザーが作成されました",
|
||||
"updated": "ユーザーが更新されました",
|
||||
"deleted": "ユーザーが削除されました"
|
||||
},
|
||||
"message": {
|
||||
"listenBrainzToken": "ListenBrainzユーザートークンを入力",
|
||||
"clickHereForToken": "ここをクリックしトークンを入手",
|
||||
"selectAllLibraries": "全てのライブラリを選択",
|
||||
"adminAutoLibraries": "管理者ユーザーは自動的にすべてのライブラリにアクセスできます"
|
||||
},
|
||||
"validation": {
|
||||
"librariesRequired": "管理者以外のユーザーには少なくとも1つのライブラリを選択する必要があります"
|
||||
"librariesRequired": "管理者以外のユーザーについては、少なくとも 1 つのライブラリを選択する必要があります",
|
||||
"invalidScrobbleFilter": "有効なスマートプレイリストのルールである必要があります。上限、オフセット、更新遅延はサポートされていません。"
|
||||
},
|
||||
"message": {
|
||||
"listenBrainzToken": "ListenBrainz のユーザートークンを入力してください。",
|
||||
"clickHereForToken": "トークンを取得するには、ここをクリックしてください",
|
||||
"selectAllLibraries": "すべてのライブラリを選択",
|
||||
"adminAutoLibraries": "管理者ユーザーは、すべてのライブラリに自動的にアクセスできます"
|
||||
}
|
||||
},
|
||||
"player": {
|
||||
"name": "プレイヤー",
|
||||
"name": "プレーヤー",
|
||||
"fields": {
|
||||
"name": "名前",
|
||||
"transcodingId": "トランスコード",
|
||||
"maxBitRate": "最大ビットレート",
|
||||
"client": "クライアント",
|
||||
"userName": "ユーザ名",
|
||||
"lastSeen": "最後の利用",
|
||||
"userName": "ユーザー名",
|
||||
"lastSeen": "最終アクセス日時",
|
||||
"reportRealPath": "実際のファイルパスを返す",
|
||||
"scrobbleEnabled": "他のサービスへscrobbleする"
|
||||
"scrobbleEnabled": "外部サービスに Scrobble する"
|
||||
}
|
||||
},
|
||||
"transcoding": {
|
||||
"name": "トランスコード",
|
||||
"fields": {
|
||||
"name": "名前",
|
||||
"targetFormat": "対象フォーマット",
|
||||
"targetFormat": "ターゲット形式",
|
||||
"defaultBitRate": "デフォルトビットレート",
|
||||
"command": "コマンド"
|
||||
}
|
||||
|
|
@ -197,45 +206,46 @@
|
|||
"name": "プレイリスト",
|
||||
"fields": {
|
||||
"name": "名前",
|
||||
"duration": "時間",
|
||||
"duration": "再生時間",
|
||||
"ownerName": "所有者",
|
||||
"public": "公開",
|
||||
"updatedAt": "更新日",
|
||||
"createdAt": "作成日",
|
||||
"songCount": "曲",
|
||||
"updatedAt": "更新日時",
|
||||
"createdAt": "作成日時",
|
||||
"songCount": "曲数",
|
||||
"comment": "コメント",
|
||||
"sync": "自動インポート",
|
||||
"path": "インポート元"
|
||||
"sync": "同期",
|
||||
"path": "インポートパス",
|
||||
"starred": "お気に入り"
|
||||
},
|
||||
"actions": {
|
||||
"selectPlaylist": "プレイリストを選択",
|
||||
"addNewPlaylist": "'%{name}' を作成",
|
||||
"selectPlaylist": "プレイリストを選択:",
|
||||
"addNewPlaylist": "\"%{name}\" を作成",
|
||||
"export": "エクスポート",
|
||||
"makePublic": "公開する",
|
||||
"makePrivate": "非公開にする",
|
||||
"saveQueue": "キューをプレイリストに保存",
|
||||
"searchOrCreate": "プレイリストを検索または入力して新規作成...",
|
||||
"pressEnterToCreate": "Enterキーを押して新しいプレイリストを作成",
|
||||
"removeFromSelection": "選択から削除"
|
||||
"makePublic": "公開にする",
|
||||
"makePrivate": "非公開にする",
|
||||
"searchOrCreate": "プレイリストを検索するか、入力して新規作成します...",
|
||||
"pressEnterToCreate": "Enter キーを押して新しいプレイリストを作成します",
|
||||
"removeFromSelection": "選択から除外"
|
||||
},
|
||||
"message": {
|
||||
"duplicate_song": "重複する曲を追加",
|
||||
"song_exist": "既にプレイリストに存在する曲です。追加しますか?",
|
||||
"noPlaylistsFound": "プレイリストが見つかりません",
|
||||
"noPlaylists": "利用可能なプレイリストはありません"
|
||||
"duplicate_song": "重複している曲を追加",
|
||||
"song_exist": "プレイリストに重複する曲が追加されようとしています。重複する曲を追加しますか、それともスキップしますか?",
|
||||
"noPlaylistsFound": "プレイリストが見つかりませんでした",
|
||||
"noPlaylists": "利用可能なプレイリストがありません"
|
||||
}
|
||||
},
|
||||
"radio": {
|
||||
"name": "ラジオ",
|
||||
"fields": {
|
||||
"name": "名前",
|
||||
"streamUrl": "配信URL",
|
||||
"homePageUrl": "ホームページURL",
|
||||
"updatedAt": "更新日",
|
||||
"createdAt": "作成日"
|
||||
"streamUrl": "ストリーム URL",
|
||||
"homePageUrl": "ホームページ URL",
|
||||
"updatedAt": "更新日時",
|
||||
"createdAt": "作成日時"
|
||||
},
|
||||
"actions": {
|
||||
"playNow": "すぐに再生"
|
||||
"playNow": "今すぐ再生"
|
||||
}
|
||||
},
|
||||
"share": {
|
||||
|
|
@ -244,55 +254,57 @@
|
|||
"username": "共有者",
|
||||
"url": "URL",
|
||||
"description": "説明",
|
||||
"downloadable": "ダウンロードを許可しますか?",
|
||||
"contents": "コンテンツ",
|
||||
"expiresAt": "期限切れ",
|
||||
"lastVisitedAt": "最後の訪問",
|
||||
"visitCount": "訪問回数",
|
||||
"format": "フォーマット",
|
||||
"expiresAt": "有効期限",
|
||||
"lastVisitedAt": "最終閲覧日時",
|
||||
"visitCount": "閲覧回数",
|
||||
"format": "形式",
|
||||
"maxBitRate": "最大ビットレート",
|
||||
"updatedAt": "更新日",
|
||||
"createdAt": "作成日",
|
||||
"downloadable": "ダウンロードを許可しますか?"
|
||||
}
|
||||
"updatedAt": "更新日時",
|
||||
"createdAt": "作成日時"
|
||||
},
|
||||
"notifications": {},
|
||||
"actions": {}
|
||||
},
|
||||
"missing": {
|
||||
"name": "欠落したファイル",
|
||||
"name": "欠落ファイル",
|
||||
"empty": "欠落しているファイルはありません",
|
||||
"fields": {
|
||||
"path": "パス",
|
||||
"size": "サイズ",
|
||||
"updatedAt": "欠落日",
|
||||
"libraryName": "ライブラリ"
|
||||
"path": "ファイルパス",
|
||||
"size": "ファイルサイズ",
|
||||
"libraryName": "ライブラリ名",
|
||||
"updatedAt": "更新日時"
|
||||
},
|
||||
"actions": {
|
||||
"remove": "削除",
|
||||
"remove_all": "全て削除"
|
||||
"remove_all": "すべて削除"
|
||||
},
|
||||
"notifications": {
|
||||
"removed": "欠落ファイルが削除されました"
|
||||
},
|
||||
"empty": "ファイルの欠落はありません"
|
||||
}
|
||||
},
|
||||
"library": {
|
||||
"name": "ライブラリ",
|
||||
"fields": {
|
||||
"name": "名前",
|
||||
"path": "パス",
|
||||
"remotePath": "リモートパス",
|
||||
"lastScanAt": "最終スキャン",
|
||||
"remotePath": "リモートスキャン",
|
||||
"lastScanAt": "最終スキャン日時",
|
||||
"songCount": "曲数",
|
||||
"albumCount": "アルバム数",
|
||||
"albumCount": "アルバム枚数",
|
||||
"artistCount": "アーティスト数",
|
||||
"totalSongs": "曲数",
|
||||
"totalAlbums": "アルバム数",
|
||||
"totalArtists": "アーティスト数",
|
||||
"totalFolders": "フォルダー数",
|
||||
"totalFiles": "ファイル数",
|
||||
"totalMissingFiles": "欠落したファイル",
|
||||
"totalSongs": "総曲数",
|
||||
"totalAlbums": "総アルバム枚数",
|
||||
"totalArtists": "総アーティスト数",
|
||||
"totalFolders": "フォルダー総数",
|
||||
"totalFiles": "ファイル総数",
|
||||
"totalMissingFiles": "欠落ファイル数",
|
||||
"totalSize": "合計サイズ",
|
||||
"totalDuration": "合計時間",
|
||||
"defaultNewUsers": "新規ユーザーに対するデフォルト",
|
||||
"createdAt": "作成日",
|
||||
"updatedAt": "更新日"
|
||||
"totalDuration": "総再生時間",
|
||||
"defaultNewUsers": "新規ユーザーのデフォルト設定",
|
||||
"createdAt": "作成日時",
|
||||
"updatedAt": "更新日時"
|
||||
},
|
||||
"sections": {
|
||||
"basic": "基本情報",
|
||||
|
|
@ -300,95 +312,172 @@
|
|||
},
|
||||
"actions": {
|
||||
"scan": "ライブラリをスキャン",
|
||||
"manageUsers": "ユーザーアクセス管理",
|
||||
"viewDetails": "詳細を表示",
|
||||
"quickScan": "クイックスキャン",
|
||||
"fullScan": "フルスキャン"
|
||||
"fullScan": "フルスキャン",
|
||||
"manageUsers": "ユーザーを管理",
|
||||
"viewDetails": "詳細を表示"
|
||||
},
|
||||
"notifications": {
|
||||
"created": "ライブラリが正常に作成されました",
|
||||
"updated": "ライブラリが正常に更新されました",
|
||||
"deleted": "ライブラリが正常に削除されました",
|
||||
"scanStarted": "スキャンを開始しました",
|
||||
"scanCompleted": "スキャンが完了しました",
|
||||
"quickScanStarted": "クイックスキャンを開始しました",
|
||||
"fullScanStarted": "フルスキャンを開始しました",
|
||||
"scanError": "スキャン開始中にエラーが発生。ログを確認してください"
|
||||
"scanStarted": "ライブラリのスキャンが開始されました",
|
||||
"quickScanStarted": "クイックスキャンが開始されました",
|
||||
"fullScanStarted": "フルスキャンが開始されました",
|
||||
"scanError": "スキャンを開始できませんでした。ログを確認してください",
|
||||
"scanCompleted": "ライブラリのスキャンが完了しました"
|
||||
},
|
||||
"validation": {
|
||||
"nameRequired": "ライブラリの名前が必要です",
|
||||
"pathRequired": "ライブラリのパスが必要です",
|
||||
"nameRequired": "ライブラリ名は必須です",
|
||||
"pathRequired": "ライブラリパスは必須です",
|
||||
"pathNotDirectory": "ライブラリパスはディレクトリである必要があります",
|
||||
"pathNotFound": "ライブラリのパスが見つかりません",
|
||||
"pathNotAccessible": "ライブラリパスへアクセスできません",
|
||||
"pathNotFound": "ライブラリパスが見つかりません",
|
||||
"pathNotAccessible": "ライブラリパスにアクセスできません",
|
||||
"pathInvalid": "無効なライブラリパス"
|
||||
},
|
||||
"messages": {
|
||||
"deleteConfirm": "このライブラリを削除しますか?関連する全てのデータとユーザーアクセスが削除されます。",
|
||||
"deleteConfirm": "このライブラリを削除してもよろしいですか?これにより、関連するすべてのデータおよびユーザーのアクセス権が削除されます。",
|
||||
"scanInProgress": "スキャン中...",
|
||||
"noLibrariesAssigned": "このユーザーに割り当てられているライブラリはありません"
|
||||
"noLibrariesAssigned": "このユーザーに割り当てられたライブラリはありません"
|
||||
}
|
||||
},
|
||||
"plugin": {
|
||||
"name": "プラグイン",
|
||||
"fields": {
|
||||
"id": "ID",
|
||||
"name": "名前",
|
||||
"description": "説明",
|
||||
"version": "バージョン",
|
||||
"author": "作者",
|
||||
"website": "ウェブサイト",
|
||||
"permissions": "権限",
|
||||
"enabled": "有効",
|
||||
"status": "ステータス",
|
||||
"path": "パス",
|
||||
"lastError": "エラー",
|
||||
"hasError": "エラー",
|
||||
"updatedAt": "更新日時",
|
||||
"createdAt": "インストール日時",
|
||||
"configKey": "キー",
|
||||
"configValue": "値",
|
||||
"allUsers": "すべてのユーザーを許可",
|
||||
"selectedUsers": "選択されたユーザー",
|
||||
"allLibraries": "すべてのライブラリを許可",
|
||||
"selectedLibraries": "選択されたライブラリ",
|
||||
"allowWriteAccess": "書き込み権限を許可"
|
||||
},
|
||||
"sections": {
|
||||
"status": "ステータス",
|
||||
"info": "プラグイン情報",
|
||||
"configuration": "設定",
|
||||
"manifest": "マニフェスト",
|
||||
"usersPermission": "ユーザー権限",
|
||||
"libraryPermission": "ライブラリ権限"
|
||||
},
|
||||
"status": {
|
||||
"enabled": "有効",
|
||||
"disabled": "無効"
|
||||
},
|
||||
"actions": {
|
||||
"enable": "有効化",
|
||||
"disable": "無効化",
|
||||
"disabledDueToError": "有効化する前にエラーを修正してください",
|
||||
"disabledUsersRequired": "有効化する前にユーザーを選択してください",
|
||||
"disabledLibrariesRequired": "有効化する前にライブラリを選択してください",
|
||||
"addConfig": "設定を追加",
|
||||
"rescan": "再スキャン"
|
||||
},
|
||||
"notifications": {
|
||||
"enabled": "プラグインが有効化されました",
|
||||
"disabled": "プラグインが無効化されました",
|
||||
"updated": "プラグインが更新されました",
|
||||
"error": "プラグインの更新中にエラーが発生しました"
|
||||
},
|
||||
"validation": {
|
||||
"invalidJson": "設定は有効な JSON である必要があります"
|
||||
},
|
||||
"messages": {
|
||||
"idHelp": "ファイル名から生成されるプラグイン ID です。エージェントなどの設定オプションでこのプラグインを参照する際に使用します。",
|
||||
"configHelp": "キーと値のペアを使用してプラグインを設定します。設定が不要な場合は、空のままにしてください。",
|
||||
"configValidationError": "設定の検証に失敗しました:",
|
||||
"schemaRenderError": "設定フォームを表示できません。プラグインのスキーマが無効である可能性があります。",
|
||||
"clickPermissions": "詳細を表示するには、「権限」をクリックしてください",
|
||||
"noConfig": "設定がありません",
|
||||
"allUsersHelp": "有効にすると、このプラグインは、今後作成されるユーザーも含め、すべてのユーザーにアクセスできるようになります。",
|
||||
"noUsers": "ユーザーが選択されていません",
|
||||
"permissionReason": "理由",
|
||||
"usersRequired": "このプラグインは、ユーザー情報へのアクセスを必要とします。プラグインがアクセスできるユーザーを選択するか、「すべてのユーザーを許可」を有効にしてください。",
|
||||
"allLibrariesHelp": "有効にすると、このプラグインは、今後作成されるライブラリも含め、すべてのライブラリにアクセスできるようになります。",
|
||||
"noLibraries": "ライブラリが選択されていません",
|
||||
"librariesRequired": "このプラグインは、ライブラリ情報へのアクセスを必要とします。プラグインがアクセスできるライブラリを選択するか、「すべてのライブラリを許可」を有効にしてください。",
|
||||
"allowWriteAccessHelp": "有効にすると、プラグインはライブラリディレクトリ内のファイルを変更できるようになります。デフォルトでは、プラグインのアクセス権限は読み取り専用に設定されています。",
|
||||
"requiredHosts": "必須ホスト"
|
||||
},
|
||||
"placeholders": {
|
||||
"configKey": "キー",
|
||||
"configValue": "値"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ra": {
|
||||
"auth": {
|
||||
"welcome1": "Navidromeをインストールいただきありがとうございます!",
|
||||
"welcome2": "管理ユーザーを作成して始めましょう",
|
||||
"welcome1": "Navidrome をインストールしていただき、ありがとうございます!",
|
||||
"welcome2": "まずは、管理者ユーザーを作成してください",
|
||||
"confirmPassword": "パスワードの確認",
|
||||
"buttonCreateAdmin": "管理者の作成",
|
||||
"auth_check_error": "認証に失敗しました。再度ログインしてください",
|
||||
"user_menu": "プロフィール",
|
||||
"buttonCreateAdmin": "管理者を作成",
|
||||
"auth_check_error": "続行するにはログインしてください",
|
||||
"user_menu": "プロファイル",
|
||||
"username": "ユーザー名",
|
||||
"password": "パスワード",
|
||||
"sign_in": "ログイン",
|
||||
"sign_in_error": "認証に失敗しました。入力を確認してください",
|
||||
"sign_in_error": "認証に失敗しました。もう一度お試しください",
|
||||
"logout": "ログアウト",
|
||||
"insightsCollectionNote": "Navidromeでは、プロジェクトの改善に役立てるため、匿名の利用データを収集しています。詳しくは [here] をクリックしてください。"
|
||||
"insightsCollectionNote": "Navidrome では、プロジェクトの改善に役立てるため、匿名化された利用データを収集しています。詳細の確認やオプトアウト(収集の停止)を行うには、[こちら]をクリックしてください"
|
||||
},
|
||||
"validation": {
|
||||
"invalidChars": "文字と数字のみを使用してください",
|
||||
"invalidChars": "英数字のみを使用してください",
|
||||
"passwordDoesNotMatch": "パスワードが一致しません",
|
||||
"required": "必須",
|
||||
"minLength": "%{min}文字以上である必要があります",
|
||||
"maxLength": "%{max}文字以下である必要があります",
|
||||
"minValue": "%{min}以上である必要があります",
|
||||
"maxValue": "%{max}以下である必要があります",
|
||||
"minLength": "%{min} 文字以上である必要があります",
|
||||
"maxLength": "%{max} 文字以下である必要があります",
|
||||
"minValue": "%{min} 桁以上である必要があります",
|
||||
"maxValue": "%{max} 桁以下である必要があります",
|
||||
"number": "数字である必要があります",
|
||||
"email": "メールアドレスである必要があります",
|
||||
"email": "有効なメールアドレスである必要があります",
|
||||
"oneOf": "次のいずれかである必要があります: %{options}",
|
||||
"regex": "次の正規表現形式にする必要があります: %{pattern}",
|
||||
"regex": "特定の形式(正規表現)に一致する必要があります: %{pattern}",
|
||||
"unique": "一意である必要があります",
|
||||
"url": "有効なURLを入力してください"
|
||||
"url": "有効な URL である必要があります"
|
||||
},
|
||||
"action": {
|
||||
"add_filter": "検索条件",
|
||||
"add_filter": "フィルターを追加",
|
||||
"add": "追加",
|
||||
"back": "戻る",
|
||||
"bulk_actions": "%{smart_count}件選択",
|
||||
"bulk_actions": "1 件選択中 |||| %{smart_count} 件選択中",
|
||||
"bulk_actions_mobile": "1 |||| %{smart_count}",
|
||||
"cancel": "キャンセル",
|
||||
"clear_input_value": "空にする",
|
||||
"clear_input_value": "値を消去",
|
||||
"clone": "複製",
|
||||
"confirm": "確認",
|
||||
"create": "作成",
|
||||
"delete": "削除",
|
||||
"edit": "編集",
|
||||
"export": "エクスポート",
|
||||
"list": "一覧",
|
||||
"list": "リスト",
|
||||
"refresh": "更新",
|
||||
"remove_filter": "検索条件を削除",
|
||||
"remove_filter": "このフィルターを削除",
|
||||
"remove": "削除",
|
||||
"save": "保存",
|
||||
"search": "検索",
|
||||
"show": "詳細",
|
||||
"sort": "並び替え",
|
||||
"show": "表示",
|
||||
"sort": "並べ替え",
|
||||
"undo": "元に戻す",
|
||||
"expand": "開く",
|
||||
"expand": "展開",
|
||||
"close": "閉じる",
|
||||
"open_menu": "開く",
|
||||
"close_menu": "閉じる",
|
||||
"open_menu": "メニューを開く",
|
||||
"close_menu": "メニューを閉じる",
|
||||
"unselect": "選択解除",
|
||||
"skip": "スキップ",
|
||||
"bulk_actions_mobile": "1 |||| %{smart_count}",
|
||||
"share": "共有",
|
||||
"download": "ダウンロード"
|
||||
},
|
||||
|
|
@ -402,71 +491,71 @@
|
|||
"edit": "%{name} #%{id}",
|
||||
"error": "問題が発生しました",
|
||||
"list": "%{name}",
|
||||
"loading": "読込中",
|
||||
"loading": "読み込み中",
|
||||
"not_found": "見つかりませんでした",
|
||||
"show": "%{name} #%{id}",
|
||||
"empty": "%{name}はありません",
|
||||
"invite": "作成しますか?"
|
||||
"empty": "%{name} はまだありません。",
|
||||
"invite": "追加してもよろしいですか?"
|
||||
},
|
||||
"input": {
|
||||
"file": {
|
||||
"upload_several": "アップロードするファイルをドロップ、または選択してください",
|
||||
"upload_single": "アップロードするファイルをドロップ、または選択してください"
|
||||
"upload_several": "ファイルをドロップしてアップロードするか、クリックしてファイルを選択してください。",
|
||||
"upload_single": "ファイルをドロップしてアップロードするか、クリックして選択してください。"
|
||||
},
|
||||
"image": {
|
||||
"upload_several": "アップロードする画像をドロップ、または選択してください",
|
||||
"upload_single": "アップロードする画像をドロップ、または選択してください"
|
||||
"upload_several": "画像をドロップしてアップロードするか、クリックして画像を選択してください。",
|
||||
"upload_single": "画像をドロップしてアップロードするか、クリックして画像を選択してください。"
|
||||
},
|
||||
"references": {
|
||||
"all_missing": "データが利用できなくなりました",
|
||||
"many_missing": "選択したデータが利用できなくなりました",
|
||||
"single_missing": "選択したデータが利用できなくなりました"
|
||||
"all_missing": "参照データが見つかりませんでした。",
|
||||
"many_missing": "参照データのうち、少なくとも 1 件が利用できなくなっています。",
|
||||
"single_missing": "参照データは現在利用できません。"
|
||||
},
|
||||
"password": {
|
||||
"toggle_visible": "非表示",
|
||||
"toggle_hidden": "表示"
|
||||
"toggle_visible": "パスワードを非表示",
|
||||
"toggle_hidden": "パスワードを表示"
|
||||
}
|
||||
},
|
||||
"message": {
|
||||
"about": "詳細",
|
||||
"are_you_sure": "本当によろしいですか?",
|
||||
"bulk_delete_content": "%{name} を削除してよろしいですか? |||| 選択した %{smart_count}件のアイテムを削除してよろしいですか?",
|
||||
"bulk_delete_title": "%{name} を削除 |||| %{name} %{smart_count}件を削除",
|
||||
"delete_content": "削除してよろしいですか?",
|
||||
"about": "概要",
|
||||
"are_you_sure": "よろしいですか?",
|
||||
"bulk_delete_content": "%{name} を削除してもよろしいですか? |||| %{smart_count} 件の項目を削除してもよろしいですか?",
|
||||
"bulk_delete_title": "%{name} を削除 |||| %{smart_count} 件の %{name} を削除",
|
||||
"delete_content": "この項目を削除してもよろしいですか?",
|
||||
"delete_title": "%{name} #%{id} を削除",
|
||||
"details": "詳細",
|
||||
"error": "クライアントエラーが発生し、処理を完了できませんでした",
|
||||
"invalid_form": "入力値に誤りがあります。エラーメッセージを確認してください",
|
||||
"loading": "読み込み中です。しばらくお待ちください",
|
||||
"error": "クライアント側でエラーが発生したため、リクエストを完了できませんでした。",
|
||||
"invalid_form": "フォームが無効です。エラーを確認してください",
|
||||
"loading": "ページを読み込んでいます。しばらくお待ちください",
|
||||
"no": "いいえ",
|
||||
"not_found": "間違ったURLを入力したか、間違ったリンクを辿りました",
|
||||
"not_found": "URL を間違えて入力したか、無効なリンクをクリックした可能性があります。",
|
||||
"yes": "はい",
|
||||
"unsaved_changes": "行った変更が保存されていません。このページから移動してよろしいですか?"
|
||||
"unsaved_changes": "変更の一部が保存されませんでした。変更を破棄してもよろしいですか?"
|
||||
},
|
||||
"navigation": {
|
||||
"no_results": "結果が見つかりませんでした",
|
||||
"no_more_results": "ページ番号 %{page} は最大のページ数を超えています。前のページに戻ってください",
|
||||
"page_out_of_boundaries": "ページ番号 %{page} は最大のページ数を超えています",
|
||||
"page_out_from_end": "最大のページ数より後に移動できません",
|
||||
"page_out_from_begin": "1 ページより前に移動できません",
|
||||
"no_results": "検索結果はありません",
|
||||
"no_more_results": "ページ番号 %{page} は範囲外です。前のページに戻ってください。",
|
||||
"page_out_of_boundaries": "ページ番号 %{page} は範囲外です",
|
||||
"page_out_from_end": "最後のページより先には進めません",
|
||||
"page_out_from_begin": "ページ 1 より前には戻れません",
|
||||
"page_range_info": "%{offsetBegin}-%{offsetEnd} / %{total}",
|
||||
"page_rows_per_page": "表示件数:",
|
||||
"page_rows_per_page": "1 ページあたりの表示件数:",
|
||||
"next": "次",
|
||||
"prev": "前",
|
||||
"skip_nav": "スキップ"
|
||||
"skip_nav": "コンテンツへスキップ"
|
||||
},
|
||||
"notification": {
|
||||
"updated": "更新しました |||| %{smart_count} 件更新しました",
|
||||
"created": "作成しました",
|
||||
"deleted": "削除しました |||| %{smart_count} 件削除しました",
|
||||
"bad_item": "データが不正です",
|
||||
"item_doesnt_exist": "データが存在しませんでした",
|
||||
"http_error": "通信エラーが発生しました",
|
||||
"data_provider_error": "dataProviderエラー。詳細はコンソールを確認してください",
|
||||
"i18n_error": "翻訳ファイルが読み込めませんでした",
|
||||
"canceled": "元に戻しました",
|
||||
"logged_out": "認証に失敗しました。再度ログインしてください",
|
||||
"new_version": "新しいバージョンが利用可能です!ページを更新してください。"
|
||||
"updated": "更新されました |||| %{smart_count} 件の項目が更新されました",
|
||||
"created": "作成されました",
|
||||
"deleted": "削除されました |||| %{smart_count} 件の項目が削除されました",
|
||||
"bad_item": "項目が無効です",
|
||||
"item_doesnt_exist": "項目が存在しません",
|
||||
"http_error": "サーバー通信エラーが発生しました",
|
||||
"data_provider_error": "dataProvider のエラーが発生しました。詳細についてはコンソールを確認してください。",
|
||||
"i18n_error": "指定された言語の翻訳を読み込めません",
|
||||
"canceled": "操作がキャンセルされました",
|
||||
"logged_out": "セッションが終了しました。再接続してください。",
|
||||
"new_version": "新しいバージョンが利用可能になりました!このウィンドウを更新してください。"
|
||||
},
|
||||
"toggleFieldsMenu": {
|
||||
"columnsToDisplay": "表示列",
|
||||
|
|
@ -476,45 +565,59 @@
|
|||
}
|
||||
},
|
||||
"message": {
|
||||
"note": "注意",
|
||||
"transcodingDisabled": "セキュリティ上の理由から、Web インターフェイスからのトランスコード設定は無効になっています。\nこれを設定したい場合、環境変数 %{config} を設定しサーバーを再起動してください。",
|
||||
"transcodingEnabled": "Navidromeは現在 %{config} の設定で実行されており、WebUIのトランスコード設定からコマンドを実行できます。\nセキュリティ上の問題から、この設定はトランスコード設定を変更する時のみ有効にすることを推奨します。",
|
||||
"songsAddedToPlaylist": "プレイリストへ1曲追加しました |||| プレイリストへ%{smart_count}曲追加しました",
|
||||
"noPlaylistsAvailable": "利用不可",
|
||||
"delete_user_title": "'%{name}' を削除",
|
||||
"delete_user_content": "このユーザーとその全てのデータ(プレイリストや設定)を削除してもよろしいですか?",
|
||||
"notifications_blocked": "ブラウザの設定でこのサイトの通知がブロックされています",
|
||||
"notifications_not_available": "このブラウザはデスクトップ通知をサポートしていません",
|
||||
"lastfmLinkSuccess": "Last.fmとリンクしscrobbleが有効になりました",
|
||||
"lastfmLinkFailure": "Last.fmとリンクできませんでした",
|
||||
"lastfmUnlinkSuccess": "設定が解除され、Last.fmへのscrobbleは無効になっています",
|
||||
"lastfmUnlinkFailure": "Last.fmとリンクできませんでした",
|
||||
"uploadCover": "カバーをアップロード",
|
||||
"removeCover": "カバーを削除",
|
||||
"coverUploaded": "カバーアートが更新されました",
|
||||
"coverRemoved": "カバーアートが削除されました",
|
||||
"coverUploadError": "カバーアートのアップロード中にエラーが発生しました",
|
||||
"coverRemoveError": "カバーアートの削除中にエラーが発生しました",
|
||||
"metadataRefreshStarted": "メタデータの更新が開始されました",
|
||||
"note": "注記",
|
||||
"transcodingDisabled": "セキュリティ上の理由により、ウェブインターフェース経由でのトランスコード設定の変更は無効になっています。トランスコードのオプションを変更(編集または追加)する場合は、%{config} 設定オプションを指定してサーバーを再起動してください。",
|
||||
"transcodingEnabled": "Navidrome は現在 %{config} で動作しており、ウェブインターフェースのトランスコード設定からシステムコマンドを実行できる状態になっています。セキュリティ上の理由から、この機能を無効にしておき、トランスコードのオプションを設定する際のみ有効にすることをお勧めします。",
|
||||
"songsAddedToPlaylist": "1 曲をプレイリストに追加しました |||| %{smart_count} 曲をプレイリストに追加しました",
|
||||
"noSimilarSongsFound": "類似の曲は見つかりませんでした",
|
||||
"startingInstantMix": "インスタントミックスを読み込み中...",
|
||||
"noTopSongsFound": "人気曲は見つかりませんでした",
|
||||
"noPlaylistsAvailable": "利用可能なプレイリストがありません",
|
||||
"delete_user_title": "ユーザー「%{name}」を削除",
|
||||
"delete_user_content": "このユーザーと、そのすべてのデータ(プレイリストや設定を含む)を削除してもよろしいですか?",
|
||||
"remove_missing_title": "欠落ファイルを削除",
|
||||
"remove_missing_content": "選択した欠落ファイルをデータベースから削除してもよろしいですか?これにより、再生回数や評価を含む、これらのファイルに関するすべての情報が完全に削除されます。",
|
||||
"remove_all_missing_title": "すべての欠落ファイルを削除",
|
||||
"remove_all_missing_content": "すべての欠落ファイルをデータベースから削除してもよろしいですか?これにより、再生回数や評価を含む、これらのファイルに関するすべての情報が完全に削除されます。",
|
||||
"notifications_blocked": "お使いのブラウザーの設定で、このサイトからの通知をブロックしています",
|
||||
"notifications_not_available": "このブラウザーはデスクトップ通知に対応していないか、または Navidrome に HTTPS 経由でアクセスしていない可能性があります",
|
||||
"lastfmLinkSuccess": "Last.fm との連携に成功し、Scrobbling 機能が有効になりました",
|
||||
"lastfmLinkFailure": "Last.fm との連携に失敗しました",
|
||||
"lastfmUnlinkSuccess": "Last.fm との連携が解除され、Scrobbling 機能が無効になりました",
|
||||
"lastfmUnlinkFailure": "Last.fm との連携解除に失敗しました",
|
||||
"listenBrainzLinkSuccess": "ListenBrainz との連携に成功し、ユーザー %{user} として Scrobbling 機能が有効になりました",
|
||||
"listenBrainzLinkFailure": "ListenBrainz との連携に失敗しました: %{error}",
|
||||
"listenBrainzUnlinkSuccess": "ListenBrainz との連携が解除され、Scrobbling 機能が無効になりました",
|
||||
"listenBrainzUnlinkFailure": "ListenBrainz との連携解除に失敗しました",
|
||||
"openIn": {
|
||||
"lastfm": "Last.fmで開く",
|
||||
"musicbrainz": "MusicBrainzで開く"
|
||||
"lastfm": "Last.fm で開く",
|
||||
"musicbrainz": "MusicBrainz で開く"
|
||||
},
|
||||
"lastfmLink": "続きを読む",
|
||||
"listenBrainzLinkSuccess": "%{user} へのscrobbling設定に成功しました",
|
||||
"listenBrainzLinkFailure": "ListenBrainzとのリンクに失敗しました: %{error}",
|
||||
"listenBrainzUnlinkSuccess": "ListenBrainzとのリンクとscrobblingを無効化しました。",
|
||||
"listenBrainzUnlinkFailure": "ListenBrainzとのリンクを解除できませんでした",
|
||||
"downloadOriginalFormat": "元のフォーマットでダウンロード",
|
||||
"shareOriginalFormat": "元のフォーマットで共有",
|
||||
"shareDialogTitle": "%{resource} '%{name}' を共有",
|
||||
"shareOriginalFormat": "オリジナルの形式で共有",
|
||||
"shareDialogTitle": "%{resource}「%{name}」を共有",
|
||||
"shareBatchDialogTitle": "1 %{resource} を共有 |||| %{smart_count} %{resource} を共有",
|
||||
"shareSuccess": "コピーしました: %{url}",
|
||||
"shareFailure": "コピーに失敗しました %{url}",
|
||||
"downloadDialogTitle": "ダウンロード %{resource} '%{name}' (%{size})",
|
||||
"shareCopyToClipboard": "クリップボードへコピー: Ctrl+C, Enter",
|
||||
"remove_missing_title": "欠落ファイルを削除",
|
||||
"remove_missing_content": "選択した欠落ファイルをデータベースから削除してもよろしいですか?これにより、再生数や評価を含むそれらのファイルへの参照が完全に削除されます。",
|
||||
"remove_all_missing_title": "全ての欠落ファイルを削除",
|
||||
"remove_all_missing_content": "データベースから欠落ファイルをすべて削除してもよろしいですか?これにより、再生数や評価を含むそれらのファイルへの参照が永久に削除されます。",
|
||||
"noSimilarSongsFound": "類似の曲が見つかりませんでした",
|
||||
"noTopSongsFound": "トップソングが見つかりません"
|
||||
"shareCopyToClipboard": "クリップボードにコピー: Ctrl+C、Enter",
|
||||
"shareSuccess": "URL をクリップボードにコピーしました: %{url}",
|
||||
"shareFailure": "URL %{url} をクリップボードにコピーできませんでした",
|
||||
"downloadDialogTitle": "%{resource}「%{name}」(%{size}) をダウンロード",
|
||||
"downloadOriginalFormat": "オリジナルの形式でダウンロード"
|
||||
},
|
||||
"menu": {
|
||||
"library": "ライブラリ",
|
||||
"librarySelector": {
|
||||
"allLibraries": "すべてのライブラリ (%{count})",
|
||||
"multipleLibraries": "%{total} 件のライブラリのうち %{selected} 件",
|
||||
"selectLibraries": "ライブラリを選択",
|
||||
"none": "無し"
|
||||
},
|
||||
"settings": "設定",
|
||||
"version": "バージョン",
|
||||
"theme": "テーマ",
|
||||
|
|
@ -523,53 +626,48 @@
|
|||
"options": {
|
||||
"theme": "テーマ",
|
||||
"language": "言語",
|
||||
"defaultView": "デフォルト画面",
|
||||
"defaultView": "デフォルトの画面",
|
||||
"desktop_notifications": "デスクトップ通知",
|
||||
"lastfmScrobbling": "Last.fmへscrobbleする",
|
||||
"listenBrainzScrobbling": "ListenBrainzへscrobble",
|
||||
"replaygain": "ReplayGainモード",
|
||||
"preAmp": "プリアンプ",
|
||||
"lastfmNotConfigured": "Last.fm API キーが設定されていません。",
|
||||
"lastfmScrobbling": "Last.fm に Scrobble",
|
||||
"listenBrainzScrobbling": "ListenBrainz に Scrobble",
|
||||
"replaygain": "リプレイゲインモード",
|
||||
"preAmp": "リプレイゲインプリアンプ (dB)",
|
||||
"gain": {
|
||||
"none": "無効",
|
||||
"album": "アルバムゲインを使う",
|
||||
"track": "トラックゲインを使う"
|
||||
},
|
||||
"lastfmNotConfigured": "Last.fmのAPIキーが設定されていません"
|
||||
"album": "アルバムゲインを使用",
|
||||
"track": "トラックゲインを使用"
|
||||
}
|
||||
}
|
||||
},
|
||||
"albumList": "アルバム",
|
||||
"about": "詳細",
|
||||
"playlists": "プレイリスト",
|
||||
"onlyFavourites": "お気に入りのみ表示",
|
||||
"sharedPlaylists": "共有プレイリスト",
|
||||
"librarySelector": {
|
||||
"allLibraries": "全てのライブラリ( %{count} )",
|
||||
"multipleLibraries": "%{selected} 個 / %{total} 個のライブラリ",
|
||||
"selectLibraries": "ライブラリを選択",
|
||||
"none": "無し"
|
||||
}
|
||||
"about": "概要"
|
||||
},
|
||||
"player": {
|
||||
"playListsText": "再生リスト",
|
||||
"playListsText": "再生キュー",
|
||||
"openText": "開く",
|
||||
"closeText": "閉じる",
|
||||
"notContentText": "音楽がありません",
|
||||
"clickToPlayText": "クリックして再生",
|
||||
"clickToPauseText": "一時停止",
|
||||
"clickToPauseText": "クリックして一時停止",
|
||||
"nextTrackText": "次の曲",
|
||||
"previousTrackText": "前の曲",
|
||||
"reloadText": "更新",
|
||||
"reloadText": "再読み込み",
|
||||
"volumeText": "音量",
|
||||
"toggleLyricText": "歌詞を切り替え",
|
||||
"toggleLyricText": "歌詞の表示 / 非表示",
|
||||
"toggleMiniModeText": "最小化",
|
||||
"destroyText": "削除",
|
||||
"destroyText": "破棄",
|
||||
"downloadText": "ダウンロード",
|
||||
"removeAudioListsText": "リストを空にする",
|
||||
"clickToDeleteText": "クリックして%{name}を削除",
|
||||
"removeAudioListsText": "オーディオリストを削除",
|
||||
"clickToDeleteText": "クリックして %{name} を削除",
|
||||
"emptyLyricText": "歌詞がありません",
|
||||
"playModeText": {
|
||||
"order": "順番に",
|
||||
"orderLoop": "リピート",
|
||||
"singleLoop": "一曲リピート",
|
||||
"order": "順番に再生",
|
||||
"orderLoop": "繰り返し再生",
|
||||
"singleLoop": "1 曲のみ繰り返し再生",
|
||||
"shufflePlay": "シャッフル"
|
||||
}
|
||||
},
|
||||
|
|
@ -578,14 +676,14 @@
|
|||
"homepage": "ホームページ",
|
||||
"source": "ソースコード",
|
||||
"featureRequests": "機能リクエスト",
|
||||
"lastInsightsCollection": "最後のデータ収集",
|
||||
"lastInsightsCollection": "最終データ収集日時",
|
||||
"insights": {
|
||||
"disabled": "無効",
|
||||
"waiting": "待機中"
|
||||
}
|
||||
},
|
||||
"tabs": {
|
||||
"about": "詳細",
|
||||
"about": "概要",
|
||||
"config": "設定"
|
||||
},
|
||||
"config": {
|
||||
|
|
@ -593,42 +691,43 @@
|
|||
"environmentVariable": "環境変数",
|
||||
"currentValue": "現在値",
|
||||
"configurationFile": "設定ファイル",
|
||||
"exportToml": "設定をエクスポート(TOML)",
|
||||
"exportSuccess": "設定をTOML形式でクリップボードへエクスポートしました",
|
||||
"exportToml": "設定をエクスポート (TOML)",
|
||||
"downloadToml": "設定をダウンロード (TOML)",
|
||||
"exportSuccess": "設定が TOML 形式でクリップボードにエクスポートされました",
|
||||
"exportFailed": "設定のコピーに失敗しました",
|
||||
"devFlagsHeader": "開発フラグ(変更・削除の可能性あり)",
|
||||
"devFlagsHeader": "開発用フラグ(変更または削除される可能性があります)",
|
||||
"devFlagsComment": "これらは実験的な設定であり、将来のバージョンで削除される可能性があります"
|
||||
}
|
||||
},
|
||||
"activity": {
|
||||
"title": "活動",
|
||||
"totalScanned": "スキャン済みフォルダー",
|
||||
"title": "アクティビティ",
|
||||
"totalScanned": "スキャンされたフォルダーの総数",
|
||||
"quickScan": "クイック",
|
||||
"fullScan": "フル",
|
||||
"selectiveScan": "選択的",
|
||||
"serverUptime": "サーバー稼働時間",
|
||||
"serverDown": "サーバーオフライン",
|
||||
"serverDown": "オフライン",
|
||||
"scanType": "最終スキャン",
|
||||
"status": "スキャンエラー",
|
||||
"elapsedTime": "経過時間",
|
||||
"selectiveScan": "選択的スキャン"
|
||||
},
|
||||
"help": {
|
||||
"title": "ホットキー",
|
||||
"hotkeys": {
|
||||
"show_help": "このヘルプを表示",
|
||||
"toggle_menu": "サイドバーの表示/非表示",
|
||||
"toggle_play": "再生/停止",
|
||||
"prev_song": "前の曲",
|
||||
"next_song": "次の曲",
|
||||
"vol_up": "音量を上げる",
|
||||
"vol_down": "音量を下げる",
|
||||
"toggle_love": "星の付け外し",
|
||||
"current_song": "現在の曲へ移動"
|
||||
}
|
||||
"elapsedTime": "経過時間"
|
||||
},
|
||||
"nowPlaying": {
|
||||
"title": "再生中",
|
||||
"empty": "何も再生されていません",
|
||||
"minutesAgo": "%{smart_count} 分前 |||| %{smart_count} 分前"
|
||||
"empty": "再生中の曲はありません",
|
||||
"minutesAgo": "%{smart_count} 分前"
|
||||
},
|
||||
"help": {
|
||||
"title": "Navidrome ホットキー",
|
||||
"hotkeys": {
|
||||
"show_help": "ヘルプを表示",
|
||||
"toggle_menu": "サイドバーの表示 / 非表示",
|
||||
"toggle_play": "再生 / 一時停止",
|
||||
"prev_song": "前の曲",
|
||||
"next_song": "次の曲",
|
||||
"current_song": "再生中の曲へ移動",
|
||||
"vol_up": "音量を上げる",
|
||||
"vol_down": "音量を下げる",
|
||||
"toggle_love": "この曲をお気に入り登録 / 登録解除"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -387,6 +387,11 @@ var _ = Describe("Scanner", Ordered, func() {
|
|||
files := fsys.MapFS
|
||||
files["Kraftwerk/Autobahn/01 - Autobahn.mp3"] = kraftwerk(track(1, "Autobahn"))
|
||||
fsys.SetFiles(files)
|
||||
// Backdate the previous scan so this one's new artists are unambiguously newer:
|
||||
// RefreshStats picks touched artists with a strict artist.updated_at >
|
||||
// library.last_scan_at, and Windows' coarse clock can put both in one tick.
|
||||
_, err := db.Db().ExecContext(ctx, "UPDATE library SET last_scan_at = ?", time.Now().Add(-time.Hour))
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(runScanner(ctx, false)).To(Succeed())
|
||||
resolveQueuedArtwork()
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
This package implements a subset of the [Jellyfin](https://jellyfin.org/) REST API on top of
|
||||
Navidrome's existing library, users, playlists and scrobbling infrastructure. It lets
|
||||
Jellyfin-compatible clients (e.g. [Finamp](https://github.com/jmshrv/finamp),
|
||||
[jftui](https://github.com/dylanmtaylor/jftui)) browse and stream a Navidrome library without
|
||||
[jftui](https://github.com/Aanok/jftui)) browse and stream a Navidrome library without
|
||||
requiring a real Jellyfin server.
|
||||
|
||||
It is **not** a full Jellyfin server implementation: only the endpoints needed to browse a music
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ func (api *Router) routes() http.Handler {
|
|||
r.Use(throttleStreams(conf.Server.Jellyfin.MaxConcurrentStreams))
|
||||
r.Get("/items", api.getItems)
|
||||
r.Get("/users/{userId}/items", api.getItems)
|
||||
r.Get("/items/latest", api.getLatest)
|
||||
r.Get("/users/{userId}/items/latest", api.getLatest)
|
||||
r.Get("/artists", api.getArtists)
|
||||
r.Get("/artists/albumartists", api.getAlbumArtists)
|
||||
|
|
|
|||
|
|
@ -563,6 +563,43 @@ var _ = Describe("Browsing", func() {
|
|||
})
|
||||
})
|
||||
|
||||
Describe("GET /Items/Latest", func() {
|
||||
// Jellyfin marks the /Users/{userId} form obsolete and hides it from the OpenAPI spec, so
|
||||
// SDK-generated clients (Jellify) only ever call this one.
|
||||
It("serves the same response as the legacy /Users/{userId} route", func() {
|
||||
Expect(get("/Items/Latest?Limit=3").Body.String()).
|
||||
To(Equal(get("/Users/admin-1/Items/Latest?Limit=3").Body.String()))
|
||||
})
|
||||
|
||||
It("scopes to ParentId when it names a library", func() {
|
||||
var items []dto.BaseItemDto
|
||||
parseInto(get("/Items/Latest?ParentId="+dto.EncodeLibraryID(1)), &items)
|
||||
Expect(names(items)).To(ConsistOf("Abbey Road", "Help!", "IV", "Kind of Blue", "Singles"))
|
||||
})
|
||||
|
||||
It("scopes to ParentId when it names an artist", func() {
|
||||
var items []dto.BaseItemDto
|
||||
parseInto(get("/Items/Latest?ParentId="+enc(artistID("The Beatles"))), &items)
|
||||
Expect(names(items)).To(ConsistOf("Abbey Road", "Help!"))
|
||||
})
|
||||
|
||||
It("returns nothing for a library the user cannot access", func() {
|
||||
var items []dto.BaseItemDto
|
||||
parseInto(get("/Items/Latest?ParentId="+dto.EncodeLibraryID(99)), &items)
|
||||
Expect(items).To(BeEmpty())
|
||||
})
|
||||
|
||||
It("returns nothing for an id that is neither a library nor an artist", func() {
|
||||
var items []dto.BaseItemDto
|
||||
parseInto(get("/Items/Latest?ParentId="+enc(testID("does-not-exist"))), &items)
|
||||
Expect(items).To(BeEmpty())
|
||||
})
|
||||
|
||||
It("404s a malformed ParentId, like every other filtered endpoint", func() {
|
||||
Expect(get("/Items/Latest?ParentId=not-a-valid-id").Code).To(Equal(http.StatusNotFound))
|
||||
})
|
||||
})
|
||||
|
||||
Describe("GET /Artists and /Genres", func() {
|
||||
It("lists album artists only on /Artists/AlbumArtists (excludes performer-only artists)", func() {
|
||||
names := names(queryResult(get("/Artists/AlbumArtists")).Items)
|
||||
|
|
|
|||
|
|
@ -113,14 +113,12 @@ var _ = Describe("Streaming", func() {
|
|||
var info dto.PlaybackInfoResponse
|
||||
parseInto(get("/Items/"+enc(id)+"/PlaybackInfo"), &info)
|
||||
streamURL := info.MediaSources[0].TranscodingUrl
|
||||
// The URL includes the /jellyfin mount prefix so a client resolving it as an absolute
|
||||
// host path hits the mounted router.
|
||||
Expect(streamURL).To(HavePrefix(consts.URLPathJellyfinAPI + "/Audio/" + enc(id) + "/universal"))
|
||||
// Server-relative: clients append it to a base URL already carrying /jellyfin.
|
||||
Expect(streamURL).To(HavePrefix("/Audio/" + enc(id) + "/universal"))
|
||||
Expect(streamURL).ToNot(HavePrefix(consts.URLPathJellyfinAPI))
|
||||
Expect(streamURL).To(ContainSubstring("api_key="))
|
||||
// The embedded api_key alone must authenticate the stream — no auth header sent. The e2e
|
||||
// router is mounted at the root, so strip the /jellyfin prefix before replaying.
|
||||
replayURL := strings.TrimPrefix(streamURL, consts.URLPathJellyfinAPI)
|
||||
w := rawReq("GET", replayURL, "")
|
||||
// The embedded api_key alone must authenticate the stream — no auth header sent.
|
||||
w := rawReq("GET", streamURL, "")
|
||||
Expect(w.Code).To(Equal(http.StatusOK))
|
||||
Expect(streamerSpy.LastMediaFile.ID).To(Equal(id))
|
||||
})
|
||||
|
|
|
|||
|
|
@ -938,7 +938,18 @@ func (api *Router) getLatest(w http.ResponseWriter, r *http.Request) {
|
|||
fields := dto.ParseFields(p.Strings("fields")...)
|
||||
opts := filter.AlbumsByNewest()
|
||||
opts.Max = p.IntOr("limit", 20)
|
||||
opts = filter.ApplyLibraryFilter(opts, accessibleLibraryIDs(ctx))
|
||||
parentID, ok := decodeFilterParam(p.StringOr("parentid", ""))
|
||||
if !ok {
|
||||
http.Error(w, "Not Found", http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
// A ParentId naming neither a library nor an artist (a stale id, an album) narrows to nothing
|
||||
// rather than widening back to every library.
|
||||
scopeIDs, isLibrary := resolveLibraryScope(ctx, parentID)
|
||||
if parentID != "" && !isLibrary {
|
||||
opts.Filters = squirrel.And{opts.Filters, filter.AlbumsByArtistID(parentID).Filters}
|
||||
}
|
||||
opts = filter.ApplyLibraryFilter(opts, scopeIDs)
|
||||
repo := api.ds.Album(ctx)
|
||||
open := streamCursor(func() (func(func(model.Album, error) bool), error) {
|
||||
return repo.GetCursor(opts)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/navidrome/navidrome/consts"
|
||||
"github.com/navidrome/navidrome/log"
|
||||
"github.com/navidrome/navidrome/model"
|
||||
"github.com/navidrome/navidrome/model/request"
|
||||
|
|
@ -57,13 +56,11 @@ func (api *Router) getPlaybackInfo(w http.ResponseWriter, r *http.Request) {
|
|||
})
|
||||
}
|
||||
}
|
||||
// Embed the caller's token in the stream URL: Jellify's native player fetches TranscodingUrl
|
||||
// verbatim without an auth header, so a non-self-authenticating URL would 401. Direct-play clients
|
||||
// (Finamp) build their own /File?ApiKey URL and ignore this. Include the /jellyfin mount prefix so
|
||||
// a client resolving it as an absolute host path still hits the mounted router.
|
||||
// Self-authenticating: native players fetch this without an auth header. Server-relative:
|
||||
// clients append it to a base URL already carrying /jellyfin.
|
||||
if token := tokenFromRequest(r); token != "" {
|
||||
src.TranscodingSubProtocol = "http"
|
||||
src.TranscodingUrl = consts.URLPathJellyfinAPI + "/Audio/" + src.Id + "/universal?static=true&api_key=" + url.QueryEscape(token)
|
||||
src.TranscodingUrl = "/Audio/" + src.Id + "/universal?static=true&api_key=" + url.QueryEscape(token)
|
||||
}
|
||||
api.ok(w, r, dto.PlaybackInfoResponse{MediaSources: []dto.MediaSourceInfo{src}, PlaySessionId: dto.EncodeID(mf.ID)})
|
||||
}
|
||||
|
|
|
|||
158
ui/src/themes/catppuccinFrappe.css.js
Normal file
158
ui/src/themes/catppuccinFrappe.css.js
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
const stylesheet = `
|
||||
.react-jinke-music-player-main svg:active,
|
||||
.react-jinke-music-player-main svg:hover {
|
||||
color: #949cbb; /* overlay2 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle,
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-track {
|
||||
background-color: #a5adce; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main ::-webkit-scrollbar-thumb {
|
||||
background-color: #a5adce; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle:active {
|
||||
box-shadow: 0 0 2px #a5adce; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .audio-item.playing svg {
|
||||
color: #a5adce; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .audio-item.playing .player-singer {
|
||||
color: #a5adce !important;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .loading svg {
|
||||
color: #a5adce !important;
|
||||
}
|
||||
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle {
|
||||
border: hidden;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
|
||||
|
||||
.rc-slider-rail, .rc-slider-track {
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
.rc-slider {
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
||||
.sound-operation > div:nth-child(4) {
|
||||
transform: translateX(-50%) translateY(5%) !important;
|
||||
}
|
||||
|
||||
.sound-operation {
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel {
|
||||
background-color: #292c3c; /* mantle */
|
||||
color: #c6d0f5; /* text */
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.audio-lists-panel {
|
||||
background-color: #292c3c; /* mantle */
|
||||
bottom: 6.25rem;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item.playing {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:nth-child(2n+1) {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active,
|
||||
.audio-lists-panel-content .audio-item:hover {
|
||||
background-color:rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.audio-lists-panel-header {
|
||||
border-bottom:1px solid #414559; /* surface0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .player-content .audio-lists-btn {
|
||||
background-color:rgba(0,0,0,0);
|
||||
box-shadow:0 0 0 0;
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item {
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .img-content {
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-lyric {
|
||||
color: #a5adce; /* subtext0 */
|
||||
-webkit-text-stroke: 0.5px #303446; /* base */
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .lyric-btn-active,
|
||||
.react-jinke-music-player-main .lyric-btn-active svg {
|
||||
color: #a5adce !important;
|
||||
}
|
||||
|
||||
.audio-lists-panel-header {
|
||||
border-bottom:1px solid rgba(0, 0, 0, 0.25);
|
||||
box-shadow:none;
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item.playing,
|
||||
.audio-lists-panel-content .audio-item.playing svg {
|
||||
color: #a5adce; /* subtext0 */
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active .group:not([class=".player-delete"]) svg,
|
||||
.audio-lists-panel-content .audio-item:hover .group:not([class=".player-delete"]) svg {
|
||||
color: #a5adce; /* subtext0 */
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item .player-icons {
|
||||
scale: 75%;
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active,
|
||||
.audio-lists-panel-content .audio-item:hover {
|
||||
background-color: #51576d; /* surface1 */
|
||||
}
|
||||
|
||||
/* Mobile */
|
||||
|
||||
.react-jinke-music-player-mobile-cover {
|
||||
border: none;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
|
||||
.react-jinke-music-player .music-player-controller {
|
||||
border: none;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
color: #a5adce; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player .music-player-controller .music-player-controller-setting {
|
||||
color: rgba(122,160,236,.3);
|
||||
}
|
||||
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle, .react-jinke-music-player-mobile-progress .rc-slider-track {
|
||||
background-color: #a5adce; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle {
|
||||
border: none;
|
||||
}
|
||||
`
|
||||
|
||||
export default stylesheet
|
||||
106
ui/src/themes/catppuccinFrappe.js
Normal file
106
ui/src/themes/catppuccinFrappe.js
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
import stylesheet from './catppuccinFrappe.css.js'
|
||||
|
||||
export default {
|
||||
themeName: 'Catppuccin Frappé',
|
||||
palette: {
|
||||
primary: {
|
||||
main: '#ca9ee6', // Mauve
|
||||
},
|
||||
secondary: {
|
||||
main: '#292c3c', //Mantle
|
||||
contrastText: '#c6d0f5', // Text
|
||||
},
|
||||
type: 'dark',
|
||||
background: {
|
||||
default: '#303446', // Base
|
||||
},
|
||||
},
|
||||
overrides: {
|
||||
MuiPaper: {
|
||||
root: {
|
||||
color: '#c6d0f5', // Text
|
||||
backgroundColor: '#292c3c', // Mantle
|
||||
MuiSnackbarContent: {
|
||||
root: {
|
||||
color: '#c6d0f5', // Text
|
||||
backgroundColor: '#e78284', // Red
|
||||
},
|
||||
message: {
|
||||
color: '#c6d0f5', // Text
|
||||
backgroundColor: '#e78284', // Red
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiButton: {
|
||||
textPrimary: {
|
||||
color: '#8caaee', // Blue
|
||||
},
|
||||
textSecondary: {
|
||||
color: '#c6d0f5', // Text
|
||||
},
|
||||
},
|
||||
MuiChip: {
|
||||
clickable: {
|
||||
background: '#292c3c', //Mantle
|
||||
},
|
||||
},
|
||||
MuiFormGroup: {
|
||||
root: {
|
||||
color: '#c6d0f5', // Text
|
||||
},
|
||||
},
|
||||
MuiFormHelperText: {
|
||||
root: {
|
||||
Mui: {
|
||||
error: {
|
||||
color: '#e78284', // Red
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiTableHead: {
|
||||
root: {
|
||||
color: '#c6d0f5', // Text
|
||||
background: '#292c3c', //Mantle
|
||||
},
|
||||
},
|
||||
MuiTableCell: {
|
||||
root: {
|
||||
color: '#c6d0f5', // Text
|
||||
background: '#292c3c !important', //Mantle
|
||||
},
|
||||
head: {
|
||||
color: '#c6d0f5', // Text
|
||||
background: '#292c3c !important', //Mantle
|
||||
},
|
||||
},
|
||||
NDLogin: {
|
||||
systemNameLink: {
|
||||
color: '#ca9ee6', // Mauve
|
||||
},
|
||||
icon: {},
|
||||
welcome: {
|
||||
color: '#c6d0f5', // Text
|
||||
},
|
||||
card: {
|
||||
minWidth: 300,
|
||||
background: '#303446', // Base
|
||||
},
|
||||
avatar: {},
|
||||
button: {
|
||||
boxShadow: '3px 3px 5px #303446', // Base
|
||||
},
|
||||
},
|
||||
NDMobileArtistDetails: {
|
||||
bgContainer: {
|
||||
background:
|
||||
'linear-gradient(to bottom, rgba(52 52 52 / 72%), rgb(48 48 48))!important',
|
||||
},
|
||||
},
|
||||
},
|
||||
player: {
|
||||
theme: 'dark',
|
||||
stylesheet,
|
||||
},
|
||||
}
|
||||
|
|
@ -2,41 +2,41 @@ const stylesheet = `
|
|||
.react-jinke-music-player-main.light-theme svg,
|
||||
.react-jinke-music-player .music-player-controller,
|
||||
.react-jinke-music-player .audio-circle-process-bar circle[class='stroke'] {
|
||||
color: #6c6f85;
|
||||
stroke: #6c6f85;
|
||||
color: #6c6f85; /* subtext0 */
|
||||
stroke: #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main svg:active,
|
||||
.react-jinke-music-player-main svg:hover {
|
||||
color: #7c7f93;
|
||||
color: #7c7f93; /* overlay2 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main.light-theme svg:active,
|
||||
.react-jinke-music-player-main.light-theme svg:hover {
|
||||
color: #7c7f93;
|
||||
color: #7c7f93; /* overlay2 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-mobile-play-model-tip,
|
||||
.react-jinke-music-player-main.light-theme .play-mode-title {
|
||||
background-color: #6c6f85;
|
||||
color: #eff1f5;
|
||||
background-color: #6c6f85; /* subtext0 */
|
||||
color: #eff1f5; /* base */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle,
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-track {
|
||||
background-color: #6c6f85;
|
||||
background-color: #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main ::-webkit-scrollbar-thumb {
|
||||
background-color: #6c6f85;
|
||||
background-color: #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle:active {
|
||||
box-shadow: 0 0 2px #6c6f85;
|
||||
box-shadow: 0 0 2px #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .audio-item.playing svg {
|
||||
color: #6c6f85;
|
||||
color: #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .audio-item.playing .player-singer {
|
||||
|
|
@ -65,7 +65,7 @@ const stylesheet = `
|
|||
|
||||
.react-jinke-music-player-main.light-theme .rc-switch-checked {
|
||||
background-color: #6c6f85 !important;
|
||||
border: 1px solid #6c6f85;
|
||||
border: 1px solid #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.sound-operation > div:nth-child(4) {
|
||||
|
|
@ -77,17 +77,17 @@ const stylesheet = `
|
|||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel {
|
||||
background-color: #e6e9ef;
|
||||
color: #4c4f69;
|
||||
background-color: #e6e9ef; /* mantle */
|
||||
color: #4c4f69; /* text */
|
||||
box-shadow: 0 0 8px rgba(76, 79, 105, 0.15);
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main.light-theme .music-player-panel {
|
||||
color: #4c4f69;
|
||||
color: #4c4f69; /* text */
|
||||
}
|
||||
|
||||
.audio-lists-panel {
|
||||
background-color: #e6e9ef;
|
||||
background-color: #e6e9ef; /* mantle */
|
||||
bottom: 6.25rem;
|
||||
box-shadow:
|
||||
rgba(76, 79, 105, 0.12) 0px 4px 6px,
|
||||
|
|
@ -108,7 +108,7 @@ const stylesheet = `
|
|||
}
|
||||
|
||||
.audio-lists-panel-header {
|
||||
border-bottom: 1px solid #ccd0da;
|
||||
border-bottom: 1px solid #ccd0da; /* surface0 */
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
|
@ -118,13 +118,13 @@ const stylesheet = `
|
|||
}
|
||||
|
||||
.react-jinke-music-player-main.light-theme .audio-lists-panel-header {
|
||||
background-color: #e6e9ef;
|
||||
color: #4c4f69;
|
||||
background-color: #e6e9ef; /* mantle */
|
||||
color: #4c4f69; /* text */
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item {
|
||||
line-height: 32px;
|
||||
color: #4c4f69;
|
||||
color: #4c4f69; /* text */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .img-content {
|
||||
|
|
@ -135,7 +135,7 @@ const stylesheet = `
|
|||
|
||||
.react-jinke-music-player-main .music-player-lyric {
|
||||
color: #6c6f85; /* subtext0 */
|
||||
-webkit-text-stroke: 0.35px #eff1f5;
|
||||
-webkit-text-stroke: 0.35px #eff1f5; /* base */
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
|
|
@ -146,12 +146,12 @@ const stylesheet = `
|
|||
|
||||
.audio-lists-panel-content .audio-item.playing,
|
||||
.audio-lists-panel-content .audio-item.playing svg {
|
||||
color: #6c6f85;
|
||||
color: #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active .group:not([class=".player-delete"]) svg,
|
||||
.audio-lists-panel-content .audio-item:hover .group:not([class=".player-delete"]) svg {
|
||||
color: #6c6f85;
|
||||
color: #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item .player-icons {
|
||||
|
|
@ -173,12 +173,12 @@ const stylesheet = `
|
|||
|
||||
.react-jinke-music-player .music-player-controller {
|
||||
border: none;
|
||||
background-color: #e6e9ef;
|
||||
border-color: #e6e9ef;
|
||||
background-color: #e6e9ef; /* mantle */
|
||||
border-color: #e6e9ef; /* mantle */
|
||||
box-shadow:
|
||||
rgba(76, 79, 105, 0.12) 0px 4px 6px,
|
||||
rgba(76, 79, 105, 0.08) 0px 5px 7px;
|
||||
color: #6c6f85;
|
||||
color: #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player .music-player-controller.music-player-playing:before {
|
||||
|
|
@ -187,12 +187,12 @@ const stylesheet = `
|
|||
|
||||
.react-jinke-music-player .music-player-controller .music-player-controller-setting {
|
||||
background: rgba(108, 111, 133, 0.2);
|
||||
color: #eff1f5;
|
||||
color: #eff1f5; /* base */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle,
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-track {
|
||||
background-color: #6c6f85;
|
||||
background-color: #6c6f85; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle {
|
||||
|
|
|
|||
|
|
@ -1,154 +1,158 @@
|
|||
const stylesheet = `
|
||||
.react-jinke-music-player-main svg:active,
|
||||
.react-jinke-music-player-main svg:hover {
|
||||
color: #939ab7; /* overlay2 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main svg:active, .react-jinke-music-player-main svg:hover {
|
||||
color: #00a4dc
|
||||
}
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle,
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-track {
|
||||
background-color: #a5adcb; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle, .react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-track {
|
||||
background-color: #00a4dc
|
||||
}
|
||||
.react-jinke-music-player-main ::-webkit-scrollbar-thumb {
|
||||
background-color: #a5adcb; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main ::-webkit-scrollbar-thumb {
|
||||
background-color: #00a4dc;
|
||||
}
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle:active {
|
||||
box-shadow: 0 0 2px #a5adcb; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle:active {
|
||||
box-shadow: 0 0 2px #00a4dc
|
||||
}
|
||||
.react-jinke-music-player-main .audio-item.playing svg {
|
||||
color: #a5adcb; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .audio-item.playing svg {
|
||||
color: #00a4dc
|
||||
}
|
||||
.react-jinke-music-player-main .audio-item.playing .player-singer {
|
||||
color: #a5adcb !important;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .audio-item.playing .player-singer {
|
||||
color: #00a4dc !important
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .loading svg {
|
||||
color: #00a4dc !important
|
||||
}
|
||||
.react-jinke-music-player-main .loading svg {
|
||||
color: #a5adcb !important;
|
||||
}
|
||||
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle {
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle {
|
||||
border: hidden;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.rc-slider-rail, .rc-slider-track {
|
||||
.rc-slider-rail, .rc-slider-track {
|
||||
height: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
.rc-slider {
|
||||
.rc-slider {
|
||||
padding: 3px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sound-operation > div:nth-child(4) {
|
||||
.sound-operation > div:nth-child(4) {
|
||||
transform: translateX(-50%) translateY(5%) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.sound-operation {
|
||||
.sound-operation {
|
||||
padding: 4px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel {
|
||||
background-color: #1e2030;
|
||||
color: #24273a
|
||||
.react-jinke-music-player-main .music-player-panel {
|
||||
background-color: #1e2030; /* mantle */
|
||||
color: #cad3f5; /* text */
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
}
|
||||
|
||||
.audio-lists-panel {
|
||||
background-color: #1e2030;
|
||||
.audio-lists-panel {
|
||||
background-color: #1e2030; /* mantle */
|
||||
bottom: 6.25rem;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item.playing {
|
||||
.audio-lists-panel-content .audio-item.playing {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:nth-child(2n+1) {
|
||||
.audio-lists-panel-content .audio-item:nth-child(2n+1) {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active,
|
||||
.audio-lists-panel-content .audio-item:hover {
|
||||
.audio-lists-panel-content .audio-item:active,
|
||||
.audio-lists-panel-content .audio-item:hover {
|
||||
background-color:rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
}
|
||||
|
||||
.audio-lists-panel-header {
|
||||
border-bottom:1px solid #242936;
|
||||
}
|
||||
.audio-lists-panel-header {
|
||||
border-bottom:1px solid #363a4f; /* surface0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .player-content .audio-lists-btn {
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .player-content .audio-lists-btn {
|
||||
background-color:rgba(0,0,0,0);
|
||||
box-shadow:0 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item {
|
||||
.audio-lists-panel-content .audio-item {
|
||||
line-height: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .img-content {
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .img-content {
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-lyric {
|
||||
color: #acb3d2;
|
||||
-webkit-text-stroke: 0.5px #2E3440;
|
||||
.react-jinke-music-player-main .music-player-lyric {
|
||||
color: #a5adcb; /* subtext0 */
|
||||
-webkit-text-stroke: 0.5px #1e1e2e; /* base */
|
||||
font-weight: bolder;
|
||||
}
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .lyric-btn-active, .react-jinke-music-player-main .lyric-btn-active svg {
|
||||
color: #acb3d2 !important;
|
||||
}
|
||||
.react-jinke-music-player-main .lyric-btn-active,
|
||||
.react-jinke-music-player-main .lyric-btn-active svg {
|
||||
color: #a5adcb !important;
|
||||
}
|
||||
|
||||
.audio-lists-panel-header {
|
||||
.audio-lists-panel-header {
|
||||
border-bottom:1px solid rgba(0, 0, 0, 0.25);
|
||||
box-shadow:none;
|
||||
}
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item.playing, .audio-lists-panel-content .audio-item.playing svg {
|
||||
color: #00a4dc
|
||||
}
|
||||
.audio-lists-panel-content .audio-item.playing,
|
||||
.audio-lists-panel-content .audio-item.playing svg {
|
||||
color: #a5adcb; /* subtext0 */
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active .group:not([class=".player-delete"]) svg, .audio-lists-panel-content .audio-item:hover .group:not([class=".player-delete"]) svg {
|
||||
color: #00a4dc
|
||||
}
|
||||
.audio-lists-panel-content .audio-item:active .group:not([class=".player-delete"]) svg,
|
||||
.audio-lists-panel-content .audio-item:hover .group:not([class=".player-delete"]) svg {
|
||||
color: #a5adcb; /* subtext0 */
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item .player-icons {
|
||||
.audio-lists-panel-content .audio-item .player-icons {
|
||||
scale: 75%;
|
||||
}
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active,
|
||||
.audio-lists-panel-content .audio-item:hover {
|
||||
background-color: #363a4f;
|
||||
}
|
||||
.audio-lists-panel-content .audio-item:active,
|
||||
.audio-lists-panel-content .audio-item:hover {
|
||||
background-color: #494d64; /* surface1 */
|
||||
}
|
||||
|
||||
/* Mobile */
|
||||
|
||||
.react-jinke-music-player-mobile-cover {
|
||||
.react-jinke-music-player-mobile-cover {
|
||||
border: none;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
}
|
||||
|
||||
.react-jinke-music-player .music-player-controller {
|
||||
.react-jinke-music-player .music-player-controller {
|
||||
border: none;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
color: #00a4dc;
|
||||
}
|
||||
color: #a5adcb; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player .music-player-controller .music-player-controller-setting {
|
||||
.react-jinke-music-player .music-player-controller .music-player-controller-setting {
|
||||
color: rgba(122,160,236,.3);
|
||||
}
|
||||
}
|
||||
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle, .react-jinke-music-player-mobile-progress .rc-slider-track {
|
||||
background-color: #00a4dc;
|
||||
}
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle, .react-jinke-music-player-mobile-progress .rc-slider-track {
|
||||
background-color: #a5adcb; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle {
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
export default stylesheet
|
||||
|
|
|
|||
|
|
@ -4,92 +4,92 @@ export default {
|
|||
themeName: 'Catppuccin Macchiato',
|
||||
palette: {
|
||||
primary: {
|
||||
main: '#c6a0f6',
|
||||
main: '#c6a0f6', // Mauve
|
||||
},
|
||||
secondary: {
|
||||
main: '#1e2030',
|
||||
contrastText: '#cad3f5',
|
||||
main: '#1e2030', // Mantle
|
||||
contrastText: '#cad3f5', // Text
|
||||
},
|
||||
type: 'dark',
|
||||
background: {
|
||||
default: '#24273a',
|
||||
default: '#24273a', // Base
|
||||
},
|
||||
},
|
||||
overrides: {
|
||||
MuiPaper: {
|
||||
root: {
|
||||
color: '#cad3f5',
|
||||
backgroundColor: '#1e2030',
|
||||
color: '#cad3f5', // Text
|
||||
backgroundColor: '#1e2030', // Mantle
|
||||
MuiSnackbarContent: {
|
||||
root: {
|
||||
color: '#cad3f5',
|
||||
backgroundColor: '#ed8796',
|
||||
color: '#cad3f5', // Text
|
||||
backgroundColor: '#ed8796', // Red
|
||||
},
|
||||
message: {
|
||||
color: '#cad3f5',
|
||||
backgroundColor: '#ed8796',
|
||||
color: '#cad3f5', // Text
|
||||
backgroundColor: '#ed8796', // Red
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiButton: {
|
||||
textPrimary: {
|
||||
color: '#8aadf4',
|
||||
color: '#8aadf4', // Blue
|
||||
},
|
||||
textSecondary: {
|
||||
color: '#cad3f5',
|
||||
color: '#cad3f5', // Text
|
||||
},
|
||||
},
|
||||
MuiChip: {
|
||||
clickable: {
|
||||
background: '#1e2030',
|
||||
background: '#1e2030', // Mantle
|
||||
},
|
||||
},
|
||||
MuiFormGroup: {
|
||||
root: {
|
||||
color: '#cad3f5',
|
||||
color: '#cad3f5', // Text
|
||||
},
|
||||
},
|
||||
MuiFormHelperText: {
|
||||
root: {
|
||||
Mui: {
|
||||
error: {
|
||||
color: '#ed8796',
|
||||
color: '#ed8796', // Red
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiTableHead: {
|
||||
root: {
|
||||
color: '#cad3f5',
|
||||
background: '#1e2030',
|
||||
color: '#cad3f5', // Text
|
||||
background: '#1e2030', // Mantle
|
||||
},
|
||||
},
|
||||
MuiTableCell: {
|
||||
root: {
|
||||
color: '#cad3f5',
|
||||
background: '#1e2030 !important',
|
||||
color: '#cad3f5', // Text
|
||||
background: '#1e2030 !important', // Mantle
|
||||
},
|
||||
head: {
|
||||
color: '#cad3f5',
|
||||
background: '#1e2030 !important',
|
||||
color: '#cad3f5', // Text
|
||||
background: '#1e2030 !important', // Mantle
|
||||
},
|
||||
},
|
||||
NDLogin: {
|
||||
systemNameLink: {
|
||||
color: '#c6a0f6',
|
||||
color: '#c6a0f6', // Mauve
|
||||
},
|
||||
icon: {},
|
||||
welcome: {
|
||||
color: '#cad3f5',
|
||||
color: '#cad3f5', // Text
|
||||
},
|
||||
card: {
|
||||
minWidth: 300,
|
||||
background: '#24273a',
|
||||
background: '#24273a', // Base
|
||||
},
|
||||
avatar: {},
|
||||
button: {
|
||||
boxShadow: '3px 3px 5px #24273a',
|
||||
boxShadow: '3px 3px 5px #24273a', // Base
|
||||
},
|
||||
},
|
||||
NDMobileArtistDetails: {
|
||||
|
|
|
|||
158
ui/src/themes/catppuccinMocha.css.js
Normal file
158
ui/src/themes/catppuccinMocha.css.js
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
const stylesheet = `
|
||||
.react-jinke-music-player-main svg:active,
|
||||
.react-jinke-music-player-main svg:hover {
|
||||
color: #9399b2; /* overlay2 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle,
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-track {
|
||||
background-color: #a6adc8; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main ::-webkit-scrollbar-thumb {
|
||||
background-color: #a6adc8; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle:active {
|
||||
box-shadow: 0 0 2px #a6adc8; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .audio-item.playing svg {
|
||||
color: #a6adc8; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .audio-item.playing .player-singer {
|
||||
color: #a6adc8 !important;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .loading svg {
|
||||
color: #a6adc8 !important;
|
||||
}
|
||||
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .rc-slider-handle {
|
||||
border: hidden;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
|
||||
|
||||
.rc-slider-rail, .rc-slider-track {
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
.rc-slider {
|
||||
padding: 3px 0;
|
||||
}
|
||||
|
||||
.sound-operation > div:nth-child(4) {
|
||||
transform: translateX(-50%) translateY(5%) !important;
|
||||
}
|
||||
|
||||
.sound-operation {
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel {
|
||||
background-color: #181825; /* mantle */
|
||||
color: #cdd6f4; /* text */
|
||||
box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
.audio-lists-panel {
|
||||
background-color: #181825; /* mantle */
|
||||
bottom: 6.25rem;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item.playing {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:nth-child(2n+1) {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active,
|
||||
.audio-lists-panel-content .audio-item:hover {
|
||||
background-color:rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.audio-lists-panel-header {
|
||||
border-bottom:1px solid #313244; /* surface0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .player-content .audio-lists-btn {
|
||||
background-color:rgba(0,0,0,0);
|
||||
box-shadow:0 0 0 0;
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item {
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-panel .panel-content .img-content {
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .music-player-lyric {
|
||||
color: #a6adc8; /* subtext0 */
|
||||
-webkit-text-stroke: 0.5px #1e1e2e; /* base */
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.react-jinke-music-player-main .lyric-btn-active,
|
||||
.react-jinke-music-player-main .lyric-btn-active svg {
|
||||
color: #a6adc8 !important;
|
||||
}
|
||||
|
||||
.audio-lists-panel-header {
|
||||
border-bottom:1px solid rgba(0, 0, 0, 0.25);
|
||||
box-shadow:none;
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item.playing,
|
||||
.audio-lists-panel-content .audio-item.playing svg {
|
||||
color: #a6adc8; /* subtext0 */
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active .group:not([class=".player-delete"]) svg,
|
||||
.audio-lists-panel-content .audio-item:hover .group:not([class=".player-delete"]) svg {
|
||||
color: #a6adc8; /* subtext0 */
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item .player-icons {
|
||||
scale: 75%;
|
||||
}
|
||||
|
||||
.audio-lists-panel-content .audio-item:active,
|
||||
.audio-lists-panel-content .audio-item:hover {
|
||||
background-color: #45475a; /* surface1 */
|
||||
}
|
||||
|
||||
/* Mobile */
|
||||
|
||||
.react-jinke-music-player-mobile-cover {
|
||||
border: none;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
}
|
||||
|
||||
.react-jinke-music-player .music-player-controller {
|
||||
border: none;
|
||||
box-shadow:rgba(15, 17, 21, 0.25) 0px 4px 6px, rgba(15, 17, 21, 0.1) 0px 5px 7px;
|
||||
color: #a6adc8; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player .music-player-controller .music-player-controller-setting {
|
||||
color: rgba(122,160,236,.3);
|
||||
}
|
||||
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle, .react-jinke-music-player-mobile-progress .rc-slider-track {
|
||||
background-color: #a6adc8; /* subtext0 */
|
||||
}
|
||||
|
||||
.react-jinke-music-player-mobile-progress .rc-slider-handle {
|
||||
border: none;
|
||||
}
|
||||
`
|
||||
|
||||
export default stylesheet
|
||||
106
ui/src/themes/catppuccinMocha.js
Normal file
106
ui/src/themes/catppuccinMocha.js
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
import stylesheet from './catppuccinMocha.css.js'
|
||||
|
||||
export default {
|
||||
themeName: 'Catppuccin Mocha',
|
||||
palette: {
|
||||
primary: {
|
||||
main: '#cba6f7', // Mauve
|
||||
},
|
||||
secondary: {
|
||||
main: '#181825', // Mantle
|
||||
contrastText: '#cdd6f4', // Text
|
||||
},
|
||||
type: 'dark',
|
||||
background: {
|
||||
default: '#1e1e2e', // Base
|
||||
},
|
||||
},
|
||||
overrides: {
|
||||
MuiPaper: {
|
||||
root: {
|
||||
color: '#cdd6f4', // Text
|
||||
backgroundColor: '#181825', // Mantle
|
||||
MuiSnackbarContent: {
|
||||
root: {
|
||||
color: '#cdd6f4', // Text
|
||||
backgroundColor: '#f38ba8', // Red
|
||||
},
|
||||
message: {
|
||||
color: '#cdd6f4', // Text
|
||||
backgroundColor: '#f38ba8', // Red
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiButton: {
|
||||
textPrimary: {
|
||||
color: '#89b4fa', // Blue
|
||||
},
|
||||
textSecondary: {
|
||||
color: '#cdd6f4', // Text
|
||||
},
|
||||
},
|
||||
MuiChip: {
|
||||
clickable: {
|
||||
background: '#181825', // Mantle
|
||||
},
|
||||
},
|
||||
MuiFormGroup: {
|
||||
root: {
|
||||
color: '#cdd6f4', // Text
|
||||
},
|
||||
},
|
||||
MuiFormHelperText: {
|
||||
root: {
|
||||
Mui: {
|
||||
error: {
|
||||
color: '#f38ba8', // Red
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
MuiTableHead: {
|
||||
root: {
|
||||
color: '#cdd6f4', // Text
|
||||
background: '#181825', // Mantle
|
||||
},
|
||||
},
|
||||
MuiTableCell: {
|
||||
root: {
|
||||
color: '#cdd6f4', // Text
|
||||
background: '#181825 !important', // Mantle
|
||||
},
|
||||
head: {
|
||||
color: '#cdd6f4', // Text
|
||||
background: '#181825 !important', // Mantle
|
||||
},
|
||||
},
|
||||
NDLogin: {
|
||||
systemNameLink: {
|
||||
color: '#cba6f7', // Mauve
|
||||
},
|
||||
icon: {},
|
||||
welcome: {
|
||||
color: '#cdd6f4', // Text
|
||||
},
|
||||
card: {
|
||||
minWidth: 300,
|
||||
background: '#1e1e2e', // Base
|
||||
},
|
||||
avatar: {},
|
||||
button: {
|
||||
boxShadow: '3px 3px 5px #1e1e2e', // Base
|
||||
},
|
||||
},
|
||||
NDMobileArtistDetails: {
|
||||
bgContainer: {
|
||||
background:
|
||||
'linear-gradient(to bottom, rgba(52 52 52 / 72%), rgb(48 48 48))!important',
|
||||
},
|
||||
},
|
||||
},
|
||||
player: {
|
||||
theme: 'dark',
|
||||
stylesheet,
|
||||
},
|
||||
}
|
||||
|
|
@ -8,7 +8,9 @@ import MonokaiTheme from './monokai'
|
|||
import ElectricPurpleTheme from './electricPurple'
|
||||
import NordTheme from './nord'
|
||||
import GruvboxDarkTheme from './gruvboxDark'
|
||||
import CatppuccinFrappeTheme from './catppuccinFrappe'
|
||||
import CatppuccinMacchiatoTheme from './catppuccinMacchiato'
|
||||
import CatppuccinMochaTheme from './catppuccinMocha'
|
||||
import CatppuccinLatteTheme from './catppuccinLatte'
|
||||
import DraculaTheme from './dracula'
|
||||
import NuclearTheme from './nuclear'
|
||||
|
|
@ -31,8 +33,10 @@ export default {
|
|||
|
||||
// New themes should be added here, in alphabetic order
|
||||
AmusicTheme,
|
||||
CatppuccinMacchiatoTheme,
|
||||
CatppuccinFrappeTheme,
|
||||
CatppuccinLatteTheme,
|
||||
CatppuccinMacchiatoTheme,
|
||||
CatppuccinMochaTheme,
|
||||
DraculaTheme,
|
||||
ElectricPurpleTheme,
|
||||
ExtraDarkTheme,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue