Skip to content

Move usingElectron from computed into data#4810

Merged
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
absidue:using-electron-data
Mar 27, 2024
Merged

Move usingElectron from computed into data#4810
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
absidue:using-electron-data

Conversation

@absidue
Copy link
Member

@absidue absidue commented Mar 25, 2024

Move usingElectron from computed into data

Pull Request Type

  • Code cleanup

Description

As that value is set at build time and never changes at runtime, we don't need any of the benefits of a computed property (avoiding doing costly operations more often than necessary), so it's better suited in data.

Testing

Check that the external player settings still show up in the Electron build (yarn run dev), check that they are still correctly hidden in the web build (yarn run dev:web).

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 8fa8e1f

@absidue absidue added the PR: low priority For pull requests that don't require a fast review. e.g. code cleanup label Mar 25, 2024
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 25, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) March 25, 2024 22:29
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

External Player Settings isnt listed when i ran yarn run dev:web

Capture

@absidue
Copy link
Member Author

absidue commented Mar 26, 2024

External Player Settings isnt listed when i ran yarn run dev:web

Capture

That is expected and mentioned in the testing section of the pull request (we can't run command line commands from inside a web browser).

@FreeTubeBot FreeTubeBot merged commit b65b1a6 into FreeTubeApp:development Mar 27, 2024
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 27, 2024
@absidue absidue deleted the using-electron-data branch March 27, 2024 06:36
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Apr 2, 2024
* development: (72 commits)
  Add support for CommentViews in video comments (FreeTubeApp#4806)
  Add support for LockupViews on the channel podcasts tab (FreeTubeApp#4767)
  Bump youtubei.js from 9.1.0 to 9.2.0 (FreeTubeApp#4836)
  Bump swiper from 11.0.7 to 11.1.0 (FreeTubeApp#4837)
  Bump the stylelint group with 1 update (FreeTubeApp#4835)
  Bump the eslint group with 1 update (FreeTubeApp#4834)
  Bump electron from 29.1.5 to 29.1.6 (FreeTubeApp#4838)
  Translated using Weblate (Estonian)
  Fix v-observe-visibility error when playlist items are updated (FreeTubeApp#4774)
  Fix extracting the subscriber count from channel PageHeader nodes (FreeTubeApp#4804)
  Translated using Weblate (Portuguese)
  Create empty subscriptions cache objects directly instead of cloning (FreeTubeApp#4814)
  Parse compact numbers without using floating point numbers to avoid accuracy issues (FreeTubeApp#4817)
  Fix the left arrow key not working on the first button in prompts (FreeTubeApp#4816)
  Fix the web build's manifest.json file getting included in the electron build (FreeTubeApp#4815)
  Move usingElectron from computed into data (FreeTubeApp#4810)
  Stop setting node modules path now that we bundle the modules (FreeTubeApp#4809)
  Translated using Weblate (Bulgarian)
  Bump express from 4.18.1 to 4.19.2 (FreeTubeApp#4812)
  Translated using Weblate (Portuguese (Brazil))
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: low priority For pull requests that don't require a fast review. e.g. code cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants