feat: Add initial plugin structure and configuration settings #3166

Closed
vikasyadav01234 wants to merge 1 commit from master into master
vikasyadav01234 commented 2025-03-31 09:13:47 +00:00 (Migrated from github.com)
No description provided.
Tr07An11 (Migrated from github.com) approved these changes 2025-03-31 12:04:01 +00:00
JellyBrick (Migrated from github.com) requested changes 2025-03-31 13:21:18 +00:00
@ -144,1 +310,4 @@
"@playwright/test": "1.51.1",
"@stylistic/eslint-plugin-js": "4.2.0",
"@total-typescript/ts-reset": "0.6.1",
"@types/electron": "^1.4.38",
JellyBrick (Migrated from github.com) commented 2025-03-31 13:16:02 +00:00

@types/electron is deprecated.
Electron has own type definitions.

`@types/electron` is deprecated. Electron has own type definitions.
@ -0,0 +1,23 @@
declare module './default' {
JellyBrick (Migrated from github.com) commented 2025-03-31 13:16:12 +00:00

?

?
@ -0,0 +1,14 @@
module.exports = {
JellyBrick (Migrated from github.com) commented 2025-03-31 13:16:27 +00:00

What is this file?

What is this file?
@ -40,1 +37,4 @@
import { setUpTray } from 'tray';
import { setupSongInfo } from 'providers/song-info';
import { restart, setupAppControls } from 'providers/app-controls';
import {
JellyBrick (Migrated from github.com) commented 2025-03-31 13:16:38 +00:00

Why did you use ./ instead of @/?

Why did you use `./` instead of `@/`?
@ -369,11 +364,8 @@ async function createMainWindow() {
}),
JellyBrick (Migrated from github.com) commented 2025-03-31 13:18:32 +00:00

We don't use oauth. Also, this is not the valid code.

We don't use oauth. Also, this is not the valid code.
@ -0,0 +1,22 @@
export const MenuTemplate = [
JellyBrick (Migrated from github.com) commented 2025-03-31 13:19:03 +00:00

?

?
@ -1,14 +1,14 @@
{
"extends": "./node_modules/@electron-toolkit/tsconfig/tsconfig.node.json",
"extends": "./node_modules/@electron-toolkit/tsconfig/tsconfig.node.json", // Updated path
"compilerOptions": {
JellyBrick (Migrated from github.com) commented 2025-03-31 13:21:06 +00:00

The standard JSON specification doesn't have “comments”, and this code is not valid.

The standard JSON specification doesn't have “comments”, and this code is not valid.
JellyBrick (Migrated from github.com) commented 2025-03-31 13:21:13 +00:00

Ditto

Ditto
JellyBrick (Migrated from github.com) requested changes 2025-03-31 13:22:07 +00:00
copilot-pull-request-reviewer[bot] (Migrated from github.com) reviewed 2025-03-31 13:23:18 +00:00
copilot-pull-request-reviewer[bot] (Migrated from github.com) left a comment

Pull Request Overview

This PR introduces the initial plugin structure along with configuration settings and basic menu functionality. Key changes include adding plugin utility functions, setting up new menu entries, and enhancing configuration and initialization logic with an added login flow.

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

File Description
src/plugins/utils/main.js Introduces basic plugin and utility functions
src/menu.js Adds new menu template entries for File and Edit menus
src/index.ts Updates import paths and adds a new openBrowserLogin function
src/config/default.js Provides default configuration settings
Files not reviewed (1)
  • package.json: Language not supported
## Pull Request Overview This PR introduces the initial plugin structure along with configuration settings and basic menu functionality. Key changes include adding plugin utility functions, setting up new menu entries, and enhancing configuration and initialization logic with an added login flow. ### Reviewed Changes Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment. | File | Description | | --------------------------- | ------------------------------------------------------------- | | src/plugins/utils/main.js | Introduces basic plugin and utility functions | | src/menu.js | Adds new menu template entries for File and Edit menus | | src/index.ts | Updates import paths and adds a new openBrowserLogin function | | src/config/default.js | Provides default configuration settings | <details> <summary>Files not reviewed (1)</summary> * **package.json**: Language not supported </details>
copilot-pull-request-reviewer[bot] (Migrated from github.com) commented 2025-03-31 13:23:17 +00:00

The openBrowserLogin function uses 'shell' and 'ipcMain' without importing them. Please add 'import { shell, ipcMain } from "electron";' at the top of the file to avoid runtime errors.

The openBrowserLogin function uses 'shell' and 'ipcMain' without importing them. Please add 'import { shell, ipcMain } from "electron";' at the top of the file to avoid runtime errors.
JellyBrick commented 2025-03-31 13:25:05 +00:00 (Migrated from github.com)

We're sorry, but this PR is suspected to be an AI slop. We can't approve this PR.

We're sorry, but this PR is suspected to be an **AI slop**. We **can't approve** this PR.

Pull request closed

Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#3166
No description provided.