mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-02 02:00:49 +08:00
feat(core): enable battery save mode for mobile (#13441)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Battery save mode is now enabled by default on mobile devices. * Users will see an updated, more detailed description for battery save mode. * Battery save mode can now be configured by all users, not just in certain builds. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^16.0.0",
|
||||
"msw": "^2.6.8",
|
||||
"oxlint": "^1.1.0",
|
||||
"oxlint": "1.10.0",
|
||||
"prettier": "^3.4.2",
|
||||
"semver": "^7.6.3",
|
||||
"serve": "^14.2.4",
|
||||
|
||||
@@ -286,9 +286,10 @@ export const AFFINE_FLAGS = {
|
||||
enable_battery_save_mode: {
|
||||
category: 'affine',
|
||||
displayName: 'Enable Battery Save Mode (Require Restart)',
|
||||
description: 'Enable battery save mode',
|
||||
configurable: isCanaryBuild,
|
||||
defaultState: false,
|
||||
description:
|
||||
'Limit indexing and other compute-intensive tasks on this device, may experience longer loading time and latency in search and other features, in exchange for quietness.',
|
||||
configurable: true,
|
||||
defaultState: isMobile,
|
||||
},
|
||||
enable_mobile_database_editing: {
|
||||
category: 'blocksuite',
|
||||
|
||||
@@ -802,7 +802,7 @@ __metadata:
|
||||
husky: "npm:^9.1.7"
|
||||
lint-staged: "npm:^16.0.0"
|
||||
msw: "npm:^2.6.8"
|
||||
oxlint: "npm:^1.1.0"
|
||||
oxlint: "npm:1.10.0"
|
||||
prettier: "npm:^3.4.2"
|
||||
semver: "npm:^7.6.3"
|
||||
serve: "npm:^14.2.4"
|
||||
@@ -10708,58 +10708,58 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/darwin-arm64@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@oxlint/darwin-arm64@npm:1.1.0"
|
||||
"@oxlint/darwin-arm64@npm:1.10.0":
|
||||
version: 1.10.0
|
||||
resolution: "@oxlint/darwin-arm64@npm:1.10.0"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/darwin-x64@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@oxlint/darwin-x64@npm:1.1.0"
|
||||
"@oxlint/darwin-x64@npm:1.10.0":
|
||||
version: 1.10.0
|
||||
resolution: "@oxlint/darwin-x64@npm:1.10.0"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/linux-arm64-gnu@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@oxlint/linux-arm64-gnu@npm:1.1.0"
|
||||
"@oxlint/linux-arm64-gnu@npm:1.10.0":
|
||||
version: 1.10.0
|
||||
resolution: "@oxlint/linux-arm64-gnu@npm:1.10.0"
|
||||
conditions: os=linux & cpu=arm64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/linux-arm64-musl@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@oxlint/linux-arm64-musl@npm:1.1.0"
|
||||
"@oxlint/linux-arm64-musl@npm:1.10.0":
|
||||
version: 1.10.0
|
||||
resolution: "@oxlint/linux-arm64-musl@npm:1.10.0"
|
||||
conditions: os=linux & cpu=arm64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/linux-x64-gnu@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@oxlint/linux-x64-gnu@npm:1.1.0"
|
||||
"@oxlint/linux-x64-gnu@npm:1.10.0":
|
||||
version: 1.10.0
|
||||
resolution: "@oxlint/linux-x64-gnu@npm:1.10.0"
|
||||
conditions: os=linux & cpu=x64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/linux-x64-musl@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@oxlint/linux-x64-musl@npm:1.1.0"
|
||||
"@oxlint/linux-x64-musl@npm:1.10.0":
|
||||
version: 1.10.0
|
||||
resolution: "@oxlint/linux-x64-musl@npm:1.10.0"
|
||||
conditions: os=linux & cpu=x64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/win32-arm64@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@oxlint/win32-arm64@npm:1.1.0"
|
||||
"@oxlint/win32-arm64@npm:1.10.0":
|
||||
version: 1.10.0
|
||||
resolution: "@oxlint/win32-arm64@npm:1.10.0"
|
||||
conditions: os=win32 & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@oxlint/win32-x64@npm:1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "@oxlint/win32-x64@npm:1.1.0"
|
||||
"@oxlint/win32-x64@npm:1.10.0":
|
||||
version: 1.10.0
|
||||
resolution: "@oxlint/win32-x64@npm:1.10.0"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
@@ -27892,18 +27892,18 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"oxlint@npm:^1.1.0":
|
||||
version: 1.1.0
|
||||
resolution: "oxlint@npm:1.1.0"
|
||||
"oxlint@npm:1.10.0":
|
||||
version: 1.10.0
|
||||
resolution: "oxlint@npm:1.10.0"
|
||||
dependencies:
|
||||
"@oxlint/darwin-arm64": "npm:1.1.0"
|
||||
"@oxlint/darwin-x64": "npm:1.1.0"
|
||||
"@oxlint/linux-arm64-gnu": "npm:1.1.0"
|
||||
"@oxlint/linux-arm64-musl": "npm:1.1.0"
|
||||
"@oxlint/linux-x64-gnu": "npm:1.1.0"
|
||||
"@oxlint/linux-x64-musl": "npm:1.1.0"
|
||||
"@oxlint/win32-arm64": "npm:1.1.0"
|
||||
"@oxlint/win32-x64": "npm:1.1.0"
|
||||
"@oxlint/darwin-arm64": "npm:1.10.0"
|
||||
"@oxlint/darwin-x64": "npm:1.10.0"
|
||||
"@oxlint/linux-arm64-gnu": "npm:1.10.0"
|
||||
"@oxlint/linux-arm64-musl": "npm:1.10.0"
|
||||
"@oxlint/linux-x64-gnu": "npm:1.10.0"
|
||||
"@oxlint/linux-x64-musl": "npm:1.10.0"
|
||||
"@oxlint/win32-arm64": "npm:1.10.0"
|
||||
"@oxlint/win32-x64": "npm:1.10.0"
|
||||
dependenciesMeta:
|
||||
"@oxlint/darwin-arm64":
|
||||
optional: true
|
||||
@@ -27924,7 +27924,7 @@ __metadata:
|
||||
bin:
|
||||
oxc_language_server: bin/oxc_language_server
|
||||
oxlint: bin/oxlint
|
||||
checksum: 10/1cd94bc8f7114ad56a22ea8dcb06c505511307bad6dc92283d8fc6c1d408254ccb116ecde7b21dfab0c4bfae7806f7efb2f76560aa6fa42eb1d892c84473c0cb
|
||||
checksum: 10/c48920a998e9f2ed801c95c81fdbacf885b18fe348d54b63d07696793a14b9b023be94082bb7a5a4e768b4c6244c1063b9fb0b0bd8324ffef12e62cf1cdb9a50
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user