Compare commits
19 Commits
3a6b793948
...
renovate/t
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ccb6b2516 | |||
| 82b7b24ef7 | |||
| 732bbc17f4 | |||
| 29da42d9ff | |||
| 269d0cd638 | |||
| 69e15165e3 | |||
| 7663a12ee4 | |||
| dcda0b3561 | |||
| 5f82fd9e5a | |||
| af11fa31d3 | |||
| a049d618e5 | |||
| 41bc03a737 | |||
| 2ab6eff761 | |||
| 6c881a265a | |||
| 2b15f0a87c | |||
| 1d6ab2a82b | |||
| 24e82e69d1 | |||
| b079d411de | |||
| e04c8eb99f |
14
README.md
@ -1,3 +1,17 @@
|
||||
<div align="center" markdown="1">
|
||||
<sup>Special thanks to:</sup>
|
||||
<br>
|
||||
<br>
|
||||
<a href="https://go.warp.dev/pear-desktop">
|
||||
<img alt="Warp sponsorship" width="400" src="https://github.com/user-attachments/assets/8307ea56-e872-494a-8a9c-de0e296a06ed" />
|
||||
</a>
|
||||
|
||||
### [Warp, built for coding with multiple AI agents](https://go.warp.dev/pear-desktop)
|
||||
[Available for macOS, Linux, & Windows](https://go.warp.dev/pear-desktop)<br>
|
||||
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div align="center">
|
||||
|
||||
# :pear: Pear Desktop
|
||||
|
||||
35
assets/generated/icons/mac/icon.icon/Assets/SVG Image.svg
Normal file
@ -0,0 +1,35 @@
|
||||
<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g filter="url(#filter0_d_18_2)">
|
||||
<circle cx="512" cy="512" r="410" fill="url(#paint0_linear_18_2)"/>
|
||||
<circle cx="512" cy="512" r="402" stroke="url(#paint1_radial_18_2)" stroke-opacity="0.5" stroke-width="16"/>
|
||||
</g>
|
||||
<path d="M675 505.072C680.333 508.152 680.333 515.849 675 518.928L436.5 656.626C431.167 659.705 424.5 655.857 424.5 649.698V374.302C424.5 368.24 430.96 364.415 436.249 367.234L436.5 367.374L675 505.072Z" fill="url(#paint2_linear_18_2)" stroke="url(#paint3_linear_18_2)" stroke-width="8" stroke-linejoin="round"/>
|
||||
<defs>
|
||||
<filter id="filter0_d_18_2" x="78" y="90" width="868" height="868" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
||||
<feOffset dy="12"/>
|
||||
<feGaussianBlur stdDeviation="12"/>
|
||||
<feComposite in2="hardAlpha" operator="out"/>
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0.866667 0 0 0 0 0.141176 0 0 0 0 0.462745 0 0 0 0.4 0"/>
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_18_2"/>
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_18_2" result="shape"/>
|
||||
</filter>
|
||||
<linearGradient id="paint0_linear_18_2" x1="102" y1="102" x2="922" y2="922" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FF632F"/>
|
||||
<stop offset="1" stop-color="#DC148C"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="paint1_radial_18_2" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(512 512) rotate(45) scale(579.828)">
|
||||
<stop offset="0.68" stop-color="white" stop-opacity="0"/>
|
||||
<stop offset="0.72" stop-color="white"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="paint2_linear_18_2" x1="512" y1="329" x2="512" y2="695" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="white"/>
|
||||
<stop offset="1" stop-color="white" stop-opacity="0.4"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="paint3_linear_18_2" x1="512" y1="329" x2="512" y2="695" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="white" stop-opacity="0"/>
|
||||
<stop offset="1" stop-color="white" stop-opacity="0.5"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
67
assets/generated/icons/mac/icon.icon/icon.json
Normal file
@ -0,0 +1,67 @@
|
||||
{
|
||||
"fill" : {
|
||||
"linear-gradient" : [
|
||||
"display-p3:1.00000,1.00000,1.00000,1.00000",
|
||||
"srgb:0.84314,0.84314,0.84314,1.00000"
|
||||
],
|
||||
"orientation" : {
|
||||
"start" : {
|
||||
"x" : 0.5,
|
||||
"y" : 0
|
||||
},
|
||||
"stop" : {
|
||||
"x" : 0.5,
|
||||
"y" : 0.7
|
||||
}
|
||||
}
|
||||
},
|
||||
"groups" : [
|
||||
{
|
||||
"blur-material" : null,
|
||||
"hidden" : false,
|
||||
"layers" : [
|
||||
{
|
||||
"blend-mode-specializations" : [
|
||||
{
|
||||
"appearance" : "dark",
|
||||
"value" : "normal"
|
||||
}
|
||||
],
|
||||
"image-name" : "SVG Image.svg",
|
||||
"name" : "transparent-icon",
|
||||
"opacity-specializations" : [
|
||||
{
|
||||
"value" : 1
|
||||
},
|
||||
{
|
||||
"appearance" : "dark",
|
||||
"value" : 1
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"name" : "group",
|
||||
"opacity-specializations" : [
|
||||
{
|
||||
"appearance" : "dark",
|
||||
"value" : 0.8
|
||||
}
|
||||
],
|
||||
"shadow" : {
|
||||
"kind" : "layer-color",
|
||||
"opacity" : 0.5
|
||||
},
|
||||
"specular" : true,
|
||||
"translucency" : {
|
||||
"enabled" : false,
|
||||
"value" : 0.5
|
||||
}
|
||||
}
|
||||
],
|
||||
"supported-platforms" : {
|
||||
"circles" : [
|
||||
"watchOS"
|
||||
],
|
||||
"squares" : "shared"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 36 KiB |
BIN
assets/icon.png
|
Before Width: | Height: | Size: 172 KiB After Width: | Height: | Size: 790 KiB |
@ -1,10 +1,40 @@
|
||||
<svg width="180" height="180" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg" id="icon-play">
|
||||
<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g filter="url(#filter0_d_18_2)">
|
||||
<circle cx="512" cy="512" r="410" fill="url(#paint0_linear_18_2)" />
|
||||
<circle cx="512" cy="512" r="402" stroke="url(#paint1_radial_18_2)" stroke-opacity="0.5" stroke-width="16" />
|
||||
</g>
|
||||
<path
|
||||
d="M675 505.072C680.333 508.152 680.333 515.849 675 518.928L436.5 656.626C431.167 659.705 424.5 655.857 424.5 649.698V374.302C424.5 368.24 430.96 364.415 436.249 367.234L436.5 367.374L675 505.072Z"
|
||||
fill="url(#paint2_linear_18_2)" stroke="url(#paint3_linear_18_2)" stroke-width="8" stroke-linejoin="round" />
|
||||
<defs>
|
||||
<linearGradient id="grad-play" x1="10%" y1="10%" x2="90%" y2="90%">
|
||||
<stop offset="0%" style="stop-color:#FF512F; stop-opacity:1"/>
|
||||
<stop offset="100%" style="stop-color:#DD2476; stop-opacity:1"/>
|
||||
<filter id="filter0_d_18_2" x="78" y="90" width="868" height="868" filterUnits="userSpaceOnUse"
|
||||
color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
||||
result="hardAlpha" />
|
||||
<feOffset dy="12" />
|
||||
<feGaussianBlur stdDeviation="12" />
|
||||
<feComposite in2="hardAlpha" operator="out" />
|
||||
<feColorMatrix type="matrix" values="0 0 0 0 0.866667 0 0 0 0 0.141176 0 0 0 0 0.462745 0 0 0 0.4 0" />
|
||||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_18_2" />
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_18_2" result="shape" />
|
||||
</filter>
|
||||
<linearGradient id="paint0_linear_18_2" x1="102" y1="102" x2="922" y2="922" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#FF632F" />
|
||||
<stop offset="1" stop-color="#DC148C" />
|
||||
</linearGradient>
|
||||
<radialGradient id="paint1_radial_18_2" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(512 512) rotate(45) scale(579.828)">
|
||||
<stop offset="0.68" stop-color="white" stop-opacity="0" />
|
||||
<stop offset="0.72" stop-color="white" />
|
||||
</radialGradient>
|
||||
<linearGradient id="paint2_linear_18_2" x1="512" y1="329" x2="512" y2="695" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="white" />
|
||||
<stop offset="1" stop-color="white" stop-opacity="0.4" />
|
||||
</linearGradient>
|
||||
<linearGradient id="paint3_linear_18_2" x1="512" y1="329" x2="512" y2="695" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="white" stop-opacity="0" />
|
||||
<stop offset="1" stop-color="white" stop-opacity="0.5" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<circle cx="100" cy="100" r="90" fill="url(#grad-play)"/>
|
||||
<path d="M85 70 L130 100 L85 130 Z" fill="white" stroke="white" stroke-width="4" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 2.4 KiB |
BIN
assets/tray-paused-white.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 22 KiB |
BIN
assets/tray-white.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
assets/tray.png
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 22 KiB |
@ -20,7 +20,7 @@ mac:
|
||||
arch:
|
||||
- x64
|
||||
- arm64
|
||||
icon: assets/generated/icons/mac/icon.icns
|
||||
icon: assets/generated/icons/mac/icon.icon
|
||||
compression: maximum
|
||||
win:
|
||||
icon: assets/generated/icons/win/icon.ico
|
||||
|
||||
@ -18,51 +18,89 @@ export default tsEslint.config(
|
||||
{
|
||||
plugins: {
|
||||
stylistic,
|
||||
importPlugin
|
||||
importPlugin,
|
||||
},
|
||||
languageOptions: {
|
||||
parser: tsEslint.parser,
|
||||
parserOptions: {
|
||||
project: true,
|
||||
project: ['tsconfig.json', 'tsconfig.test.json'],
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 'latest'
|
||||
}
|
||||
ecmaVersion: 'latest',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'stylistic/arrow-parens': ['error', 'always'],
|
||||
'stylistic/object-curly-spacing': ['error', 'always'],
|
||||
'stylistic/jsx-pascal-case': 'error',
|
||||
'stylistic/jsx-curly-spacing': ['error', { when: 'never', children: true }],
|
||||
'stylistic/jsx-curly-spacing': [
|
||||
'error',
|
||||
{ when: 'never', children: true },
|
||||
],
|
||||
'stylistic/jsx-sort-props': 'error',
|
||||
'prettier/prettier': ['error', { singleQuote: true, semi: true, tabWidth: 2, trailingComma: 'all', quoteProps: 'preserve' }],
|
||||
'prettier/prettier': [
|
||||
'error',
|
||||
{
|
||||
singleQuote: true,
|
||||
semi: true,
|
||||
tabWidth: 2,
|
||||
trailingComma: 'all',
|
||||
quoteProps: 'preserve',
|
||||
},
|
||||
],
|
||||
'@typescript-eslint/no-floating-promises': 'off',
|
||||
'@typescript-eslint/no-misused-promises': ['off', { checksVoidReturn: false }],
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
||||
'@typescript-eslint/no-misused-promises': [
|
||||
'off',
|
||||
{ checksVoidReturn: false },
|
||||
],
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'warn',
|
||||
{ argsIgnorePattern: '^_' },
|
||||
],
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
'@typescript-eslint/consistent-type-imports': ['error', {
|
||||
fixStyle: 'inline-type-imports',
|
||||
prefer: 'type-imports',
|
||||
disallowTypeAnnotations: false,
|
||||
}],
|
||||
'@typescript-eslint/consistent-type-imports': [
|
||||
'error',
|
||||
{
|
||||
fixStyle: 'inline-type-imports',
|
||||
prefer: 'type-imports',
|
||||
disallowTypeAnnotations: false,
|
||||
},
|
||||
],
|
||||
'importPlugin/first': 'error',
|
||||
'importPlugin/newline-after-import': 'off',
|
||||
'importPlugin/no-default-export': 'off',
|
||||
'importPlugin/no-duplicates': 'error',
|
||||
'importPlugin/no-unresolved': ['error', { ignore: ['^virtual:', '\\?inline$', '\\?raw$', '\\?asset&asarUnpack'] }],
|
||||
'importPlugin/order': ['error', {
|
||||
'groups': ['builtin', 'external', ['internal', 'index', 'sibling'], 'parent', 'type'],
|
||||
'newlines-between': 'always-and-inside-groups',
|
||||
'alphabetize': { order: 'ignore', caseInsensitive: false }
|
||||
}],
|
||||
'importPlugin/no-unresolved': [
|
||||
'error',
|
||||
{
|
||||
ignore: ['^virtual:', '\\?inline$', '\\?raw$', '\\?asset&asarUnpack'],
|
||||
},
|
||||
],
|
||||
'importPlugin/order': [
|
||||
'error',
|
||||
{
|
||||
'groups': [
|
||||
'builtin',
|
||||
'external',
|
||||
['internal', 'index', 'sibling'],
|
||||
'parent',
|
||||
'type',
|
||||
],
|
||||
'newlines-between': 'always-and-inside-groups',
|
||||
'alphabetize': { order: 'ignore', caseInsensitive: false },
|
||||
},
|
||||
],
|
||||
'importPlugin/prefer-default-export': 'off',
|
||||
'camelcase': ['error', { properties: 'never' }],
|
||||
'class-methods-use-this': 'off',
|
||||
'stylistic/lines-around-comment': ['error', {
|
||||
beforeBlockComment: false,
|
||||
afterBlockComment: false,
|
||||
beforeLineComment: false,
|
||||
afterLineComment: false,
|
||||
}],
|
||||
'stylistic/lines-around-comment': [
|
||||
'error',
|
||||
{
|
||||
beforeBlockComment: false,
|
||||
afterBlockComment: false,
|
||||
beforeLineComment: false,
|
||||
afterLineComment: false,
|
||||
},
|
||||
],
|
||||
'stylistic/max-len': 'off',
|
||||
'stylistic/no-mixed-operators': 'warn', // prettier does not support no-mixed-operators
|
||||
'stylistic/no-multi-spaces': ['error', { ignoreEOLComments: true }],
|
||||
@ -70,16 +108,20 @@ export default tsEslint.config(
|
||||
'no-void': 'error',
|
||||
'no-empty': 'off',
|
||||
'prefer-promise-reject-errors': 'off',
|
||||
'stylistic/quotes': ['error', 'single', {
|
||||
avoidEscape: true,
|
||||
allowTemplateLiterals: false,
|
||||
}],
|
||||
'stylistic/quotes': [
|
||||
'error',
|
||||
'single',
|
||||
{
|
||||
avoidEscape: true,
|
||||
allowTemplateLiterals: 'never',
|
||||
},
|
||||
],
|
||||
'stylistic/quote-props': ['error', 'consistent'],
|
||||
'stylistic/semi': ['error', 'always'],
|
||||
},
|
||||
settings: {
|
||||
'import/parsers': {
|
||||
'@typescript-eslint/parser': ['.ts']
|
||||
'@typescript-eslint/parser': ['.ts'],
|
||||
},
|
||||
'import/resolver': {
|
||||
typescript: {},
|
||||
|
||||
@ -155,7 +155,7 @@
|
||||
"del-cli": "6.0.0",
|
||||
"discord-api-types": "0.38.37",
|
||||
"electron": "38.7.2",
|
||||
"electron-builder": "26.0.12",
|
||||
"electron-builder": "26.4.0",
|
||||
"electron-builder-squirrel-windows": "26.0.12",
|
||||
"electron-devtools-installer": "4.0.0",
|
||||
"electron-vite": "4.0.1",
|
||||
@ -168,10 +168,9 @@
|
||||
"eslint-plugin-solid": "0.14.5",
|
||||
"glob": "11.1.0",
|
||||
"node-gyp": "11.4.2",
|
||||
"playwright": "1.55.1",
|
||||
"ts-morph": "27.0.2",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "8.43.0",
|
||||
"typescript-eslint": "8.53.0",
|
||||
"utf-8-validate": "6.0.6",
|
||||
"vite": "npm:rolldown-vite@7.3.0",
|
||||
"vite-plugin-inspect": "11.3.3",
|
||||
|
||||
591
pnpm-lock.yaml
generated
@ -288,7 +288,7 @@
|
||||
"name": "Ambiente-Modus"
|
||||
},
|
||||
"amuse": {
|
||||
"description": "Fügt Unterstützung für das Amuse \"Spielt gerade\"-Widget von 6K Labs hinzu",
|
||||
"description": "Fügt {{applicationName}} Unterstützung für das Amuse \"Spielt gerade\"-Widget von 6K Labs hinzu",
|
||||
"name": "Amuse",
|
||||
"response": {
|
||||
"query": "Amuse API-Server läuft. /query für Liedinformationen."
|
||||
@ -883,12 +883,12 @@
|
||||
},
|
||||
"name": "Synchronisierte Texte",
|
||||
"refetch-btn": {
|
||||
"fetching": "Hole Songtext...",
|
||||
"normal": "Songtext neu holen"
|
||||
"fetching": "Laden...",
|
||||
"normal": "Songtext neu laden"
|
||||
},
|
||||
"warnings": {
|
||||
"duration-mismatch": "⚠️ - Es kann sein, dass die Synchronization nicht stimmt, da die Songdauer nicht übereinstimmt.",
|
||||
"inexact": "⚠️ - Der Songtext stimmt möglicherweise nicht überein",
|
||||
"inexact": "⚠️ - Es ist möglich, dass der Songtext für diesen Song nicht übereinstimmt.",
|
||||
"instrumental": "⚠️ - Das ist ein instrumentales Lied"
|
||||
}
|
||||
},
|
||||
|
||||
@ -320,6 +320,22 @@
|
||||
"hostname": {
|
||||
"label": "نام میزبان"
|
||||
},
|
||||
"https": {
|
||||
"label": "HTTPS و گواهینامهها",
|
||||
"submenu": {
|
||||
"cert": {
|
||||
"dialogTitle": "پرونده گواهینامه HTTPS را انتخاب کنید",
|
||||
"label": "پرونده گواهینامه (crt/.pem.)"
|
||||
},
|
||||
"enable-https": {
|
||||
"label": "فعال کردن HTTPS"
|
||||
},
|
||||
"key": {
|
||||
"dialogTitle": "پرونده کلید خصوصی HTTPS را انتخاب کنید",
|
||||
"label": "پرونده کلید خصوصی (key/.pem)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"port": {
|
||||
"label": "پورت"
|
||||
}
|
||||
|
||||
@ -237,7 +237,8 @@
|
||||
"submenu": {
|
||||
"percent": "{{ratio}}%"
|
||||
}
|
||||
}
|
||||
},
|
||||
"enable-seekbar": "Abilita tematizzazione della seekbar"
|
||||
},
|
||||
"name": "Tema abbinato a colore album"
|
||||
},
|
||||
@ -320,6 +321,22 @@
|
||||
"hostname": {
|
||||
"label": "Hostname"
|
||||
},
|
||||
"https": {
|
||||
"label": "HTTPS & Certificati",
|
||||
"submenu": {
|
||||
"cert": {
|
||||
"dialogTitle": "Seleziona file di certificato HTTPS",
|
||||
"label": "File di certificato (.crt/.pem)"
|
||||
},
|
||||
"enable-https": {
|
||||
"label": "Abilita HTTPS"
|
||||
},
|
||||
"key": {
|
||||
"dialogTitle": "Seleziona il file della chiave privata HTTPS",
|
||||
"label": "File della chiave privata (.key/.pem)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"port": {
|
||||
"label": "Porta"
|
||||
}
|
||||
@ -461,9 +478,9 @@
|
||||
"set-status-display-type": {
|
||||
"label": "Testo dello status",
|
||||
"submenu": {
|
||||
"application": "Ascoltando {{applicationName}}",
|
||||
"artist": "Stai ascoltando {artist}",
|
||||
"title": "Stai ascoltando {song title}",
|
||||
"application": "Ascoltando {{applicationName}}"
|
||||
"title": "Stai ascoltando {song title}"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -866,7 +883,7 @@
|
||||
},
|
||||
"name": "Testi sincronizzati",
|
||||
"refetch-btn": {
|
||||
"fetching": "Sto recuperando...",
|
||||
"fetching": "Caricamento...",
|
||||
"normal": "Recupera i testi"
|
||||
},
|
||||
"warnings": {
|
||||
|
||||
@ -117,7 +117,7 @@
|
||||
"hide-menu": {
|
||||
"dialog": {
|
||||
"message": "მენიუ შემდეგი გაშვებისას დაიმალება, მის საჩვენებლად გამოიყენეთ [Alt] (ან თუ აპლიკაციის მენიუს იყენებთ, უკან დააწკაპუნეთ [`])",
|
||||
"title": "მენიუს დამალვა ჩართულია"
|
||||
"title": "მენიუს დამალვა ჩაირთო"
|
||||
},
|
||||
"label": "მენიუს დამალვა"
|
||||
},
|
||||
|
||||
@ -171,7 +171,7 @@
|
||||
"remove": "제거"
|
||||
},
|
||||
"remove-theme": "사용자 정의 테마를 제거하시겠습니까?",
|
||||
"remove-theme-message": "사용자 정의 테마를 제거하시겠습니까?"
|
||||
"remove-theme-message": "이 설정을 변경하면 커스텀 테마가 삭제됩니다"
|
||||
},
|
||||
"label": "테마",
|
||||
"submenu": {
|
||||
@ -289,7 +289,7 @@
|
||||
},
|
||||
"amuse": {
|
||||
"description": "6K Labs Amuse의 'now playing' 위젯에 {{applicationName}} 지원 추가",
|
||||
"name": "Amuse",
|
||||
"name": "Amuseio AB",
|
||||
"response": {
|
||||
"query": "Amuse API 서버가 실행 중입니다. GET /query로 노래 정보를 가져오세요."
|
||||
}
|
||||
@ -321,6 +321,22 @@
|
||||
"hostname": {
|
||||
"label": "호스트 명"
|
||||
},
|
||||
"https": {
|
||||
"label": "HTTPS 및 인증서",
|
||||
"submenu": {
|
||||
"cert": {
|
||||
"dialogTitle": "HTTPS 인증서 파일을 선택해 주세요",
|
||||
"label": "인증서 파일(.crt/.pem)"
|
||||
},
|
||||
"enable-https": {
|
||||
"label": "HTTPS 활성화"
|
||||
},
|
||||
"key": {
|
||||
"dialogTitle": "HTTPS 개인 키 파일을 선택해 주세요",
|
||||
"label": "개인 키 파일(.key/.pem)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"port": {
|
||||
"label": "포트"
|
||||
}
|
||||
@ -457,13 +473,13 @@
|
||||
"disconnected": "연결 해제 됨",
|
||||
"hide-duration-left": "남은 재생 시간 숨기기",
|
||||
"hide-github-button": "GitHub 링크 버튼 숨기기",
|
||||
"play-on-application": "유튜브 뮤직에서 재생",
|
||||
"play-on-application": "{{applicationName}} 에서 재생",
|
||||
"set-inactivity-timeout": "비활성 시간 제한 설정",
|
||||
"set-status-display-type": {
|
||||
"label": "상태 텍스트",
|
||||
"submenu": {
|
||||
"artist": "{아티스트} 듣는 중",
|
||||
"application": "{{applicationName}} 듣는 중",
|
||||
"artist": "{아티스트} 듣는 중",
|
||||
"title": "{곡 제목} 듣는 중"
|
||||
}
|
||||
}
|
||||
|
||||
@ -151,7 +151,9 @@
|
||||
"label": "Vizualiniai patobulinimai",
|
||||
"submenu": {
|
||||
"custom-window-title": {
|
||||
"label": "Pasirinktinis lango pavadinimas",
|
||||
"prompt": {
|
||||
"label": "Įveskite pasirinktinį lango pavadinimą: (palikite tuščią, jei norite išjungti)",
|
||||
"placeholder": "Pavyzdys: {{applicationName}}"
|
||||
}
|
||||
},
|
||||
@ -431,9 +433,9 @@
|
||||
"set-inactivity-timeout": "Nustatyti neveiklumo laiką",
|
||||
"set-status-display-type": {
|
||||
"submenu": {
|
||||
"application": "Klausosi {{applicationName}}",
|
||||
"artist": "Klausosi {artist]",
|
||||
"title": "Klausosi {song title}",
|
||||
"application": "Klausosi {{applicationName}}"
|
||||
"title": "Klausosi {song title}"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -237,7 +237,8 @@
|
||||
"submenu": {
|
||||
"percent": "{{ratio}}%"
|
||||
}
|
||||
}
|
||||
},
|
||||
"enable-seekbar": "Zezwól stylowanie paska wyszukiwań"
|
||||
},
|
||||
"name": "Motyw kolorów albumu"
|
||||
},
|
||||
@ -320,6 +321,22 @@
|
||||
"hostname": {
|
||||
"label": "Nazwa hosta (IP)"
|
||||
},
|
||||
"https": {
|
||||
"label": "HTTPS i Certyfikaty",
|
||||
"submenu": {
|
||||
"cert": {
|
||||
"dialogTitle": "Wybierz plik certyfikatu HTTPS",
|
||||
"label": "Certyfikat (.crt/.pem)"
|
||||
},
|
||||
"enable-https": {
|
||||
"label": "Zezwól HTTPS"
|
||||
},
|
||||
"key": {
|
||||
"dialogTitle": "Wybierz plik prywatnego klucza HTTPS",
|
||||
"label": "Klucz prywatny (.key/.pem)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"port": {
|
||||
"label": "Port"
|
||||
}
|
||||
@ -461,8 +478,8 @@
|
||||
"set-status-display-type": {
|
||||
"label": "Opis statusu",
|
||||
"submenu": {
|
||||
"artist": "Słucha {artist}",
|
||||
"application": "Słucha {{applicationName}}",
|
||||
"artist": "Słucha {artist}",
|
||||
"title": "Słucha {song title}"
|
||||
}
|
||||
}
|
||||
|
||||
@ -321,6 +321,22 @@
|
||||
"hostname": {
|
||||
"label": "Nome do anfitrião"
|
||||
},
|
||||
"https": {
|
||||
"label": "HTTPS & Certificados",
|
||||
"submenu": {
|
||||
"cert": {
|
||||
"dialogTitle": "Selecione o certificado do HTTPS",
|
||||
"label": "Arquivo de certificado (.crt/.pem)"
|
||||
},
|
||||
"enable-https": {
|
||||
"label": "Habilitar HTTPS"
|
||||
},
|
||||
"key": {
|
||||
"dialogTitle": "Selecione a chave privada do HTTPS",
|
||||
"label": "Arquivo de chave privada (.key/.pem)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"port": {
|
||||
"label": "Porta"
|
||||
}
|
||||
@ -462,8 +478,8 @@
|
||||
"set-status-display-type": {
|
||||
"label": "Texto de status",
|
||||
"submenu": {
|
||||
"artist": "Ouvindo {artist}",
|
||||
"application": "Ouvindo {{applicationName}}",
|
||||
"artist": "Ouvindo {artist}",
|
||||
"title": "Ouvindo {song title}"
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,13 +2,13 @@
|
||||
"common": {
|
||||
"console": {
|
||||
"plugins": {
|
||||
"execute-failed": "Ошибка загрузки плагина {{pluginName}}::{{contextName}}",
|
||||
"execute-failed": "Ошибка при выполнении плагина {{pluginName}}::{{contextName}}",
|
||||
"executed-at-ms": "Плагин {{pluginName}}::{{contextName}} загружен за {{ms}}мс",
|
||||
"initialize-failed": "Ошибка инициализации плагина \"{{pluginName}}\"",
|
||||
"load-all": "Загружаем все плагины",
|
||||
"load-failed": "Ошибка загрузки плагина \"{{pluginName}}\"",
|
||||
"loaded": "Плагин \"{{pluginName}}\" загружен",
|
||||
"unload-failed": "Ошибка выгрузки плагина \"{{pluginName}}\"",
|
||||
"unload-failed": "Ошибка при выгрузке плагина \"{{pluginName}}\"",
|
||||
"unloaded": "Плагин \"{{pluginName}}\" выгружен"
|
||||
}
|
||||
}
|
||||
@ -44,7 +44,7 @@
|
||||
},
|
||||
"dialog": {
|
||||
"hide-menu-enabled": {
|
||||
"detail": "Меню скрыто, 'Alt' чтобы показать его ('Escape' если используете внутреннее меню приложения)",
|
||||
"detail": "Меню скрыто, используйте 'Alt' чтобы показать его ('Escape' если используете внутреннее меню приложения)",
|
||||
"message": "Скрытие меню включено",
|
||||
"title": "Включено скрытие меню"
|
||||
},
|
||||
@ -53,8 +53,8 @@
|
||||
"later": "Позже",
|
||||
"restart-now": "Перезапустить сейчас"
|
||||
},
|
||||
"detail": "Перезапустите приложение для включения плагина {{pluginName}}",
|
||||
"message": "Перезапуск для применения плагина {{pluginName}}",
|
||||
"detail": "Для вступления изменений в силу плагину \"{{pluginName}}\" требуется перезапуск",
|
||||
"message": "Требуется перезапуск плагина \"{{pluginName}}\"",
|
||||
"title": "Нужен перезапуск"
|
||||
},
|
||||
"unresponsive": {
|
||||
@ -100,7 +100,7 @@
|
||||
"disable-hardware-acceleration": "Отключить аппаратное ускорение",
|
||||
"edit-config-json": "Редактировать config.json",
|
||||
"override-user-agent": "Переопределить User-Agent",
|
||||
"restart-on-config-changes": "Перезапускать при изменениях конфига",
|
||||
"restart-on-config-changes": "Перезапускать при изменениях конфигурации",
|
||||
"set-proxy": {
|
||||
"label": "Задать прокси",
|
||||
"prompt": {
|
||||
@ -237,7 +237,8 @@
|
||||
"submenu": {
|
||||
"percent": "{{ratio}}%"
|
||||
}
|
||||
}
|
||||
},
|
||||
"enable-seekbar": "Включить тематическое оформление полосы прокрутки"
|
||||
},
|
||||
"name": "Цветовая тема альбома"
|
||||
},
|
||||
@ -287,7 +288,7 @@
|
||||
"name": "Режим Ambient"
|
||||
},
|
||||
"amuse": {
|
||||
"description": "Добавляет поддержку виджета Amuse „сейчас играет“ от 6K Labs",
|
||||
"description": "Добавляет {{applicationName}} поддержку виджета Amuse „сейчас играет“ от 6K Labs",
|
||||
"name": "Amuse",
|
||||
"response": {
|
||||
"query": "Сервер Amuse API запущен. GET /query чтобы получить информацию о треке."
|
||||
@ -320,6 +321,22 @@
|
||||
"hostname": {
|
||||
"label": "Имя хоста"
|
||||
},
|
||||
"https": {
|
||||
"label": "HTTPS и сертификаты",
|
||||
"submenu": {
|
||||
"cert": {
|
||||
"dialogTitle": "Выберите файл сертификата HTTPS",
|
||||
"label": "Файл сертификата (.crt/.pem)"
|
||||
},
|
||||
"enable-https": {
|
||||
"label": "Включить HTTPS"
|
||||
},
|
||||
"key": {
|
||||
"dialogTitle": "Выберите файл приватного ключа HTTPS",
|
||||
"label": "Файл приватного ключа (.key/.pem)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"port": {
|
||||
"label": "Порт"
|
||||
}
|
||||
|
||||
@ -320,6 +320,13 @@
|
||||
"hostname": {
|
||||
"label": "Tên máy chủ"
|
||||
},
|
||||
"https": {
|
||||
"submenu": {
|
||||
"enable-https": {
|
||||
"label": "Bật HTTPS"
|
||||
}
|
||||
}
|
||||
},
|
||||
"port": {
|
||||
"label": "Cổng"
|
||||
}
|
||||
@ -461,9 +468,9 @@
|
||||
"set-status-display-type": {
|
||||
"label": "Văn bản trạng thái",
|
||||
"submenu": {
|
||||
"application": "Đang nghe {{applicationName}}",
|
||||
"artist": "Đang nghe nhạc của {artist}",
|
||||
"title": "Đang nghe nhạc {song title}",
|
||||
"application": "Đang nghe {{applicationName}}"
|
||||
"title": "Đang nghe nhạc {song title}"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
11
src/tray.ts
@ -1,8 +1,10 @@
|
||||
import { Menu, nativeImage, screen, Tray } from 'electron';
|
||||
import is from 'electron-is';
|
||||
|
||||
import defaultTrayIconAsset from '@assets/tray.png?asset&asarUnpack';
|
||||
import pausedTrayIconAsset from '@assets/tray-paused.png?asset&asarUnpack';
|
||||
import TrayIcon from '@assets/tray.png?asset&asarUnpack';
|
||||
import PausedTrayIcon from '@assets/tray-paused.png?asset&asarUnpack';
|
||||
import TrayIconWhite from '@assets/tray-white.png?asset&asarUnpack';
|
||||
import PausedTrayIconWhite from '@assets/tray-paused-white.png?asset&asarUnpack';
|
||||
|
||||
import * as config from './config';
|
||||
|
||||
@ -52,14 +54,15 @@ export const setUpTray = (app: Electron.App, win: Electron.BrowserWindow) => {
|
||||
const pixelRatio = is.windows()
|
||||
? screen.getPrimaryDisplay().scaleFactor || 1
|
||||
: 1;
|
||||
|
||||
const defaultTrayIcon = nativeImage
|
||||
.createFromPath(defaultTrayIconAsset)
|
||||
.createFromPath(is.macOS() ? TrayIconWhite : TrayIcon)
|
||||
.resize({
|
||||
width: 16 * pixelRatio,
|
||||
height: 16 * pixelRatio,
|
||||
});
|
||||
const pausedTrayIcon = nativeImage
|
||||
.createFromPath(pausedTrayIconAsset)
|
||||
.createFromPath(is.macOS() ? PausedTrayIconWhite : PausedTrayIcon)
|
||||
.resize({
|
||||
width: 16 * pixelRatio,
|
||||
height: 16 * pixelRatio,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
import { _electron as electron } from 'playwright';
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
import { test, expect, _electron as electron } from '@playwright/test';
|
||||
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
@ -32,7 +32,11 @@ test('Pear Desktop App - With default settings, app is launched and visible', as
|
||||
// expect(title.replaceAll(/\s/g, ' ')).toEqual('Pear Desktop');
|
||||
|
||||
const url = window.url();
|
||||
expect(url.startsWith('https://music.\u0079\u006f\u0075\u0074\u0075\u0062\u0065.com')).toBe(true);
|
||||
expect(
|
||||
url.startsWith(
|
||||
'https://music.\u0079\u006f\u0075\u0074\u0075\u0062\u0065.com',
|
||||
),
|
||||
).toBe(true);
|
||||
|
||||
await app.close();
|
||||
});
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
"exclude": ["./dist"],
|
||||
"include": [
|
||||
"electron.vite.config.mts",
|
||||
"playwright.config.ts",
|
||||
"./src/**/*",
|
||||
"*.config.*js",
|
||||
"*.config.*js"
|
||||
]
|
||||
}
|
||||
|
||||
8
tsconfig.test.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"exclude": ["./dist"],
|
||||
"include": [
|
||||
"playwright.config.ts",
|
||||
"./tests/**/*"
|
||||
]
|
||||
}
|
||||