Skip to content

Commit 6e63aa0

Browse files
committed
style(global): format code
1 parent f0d1798 commit 6e63aa0

11 files changed

Lines changed: 60 additions & 52 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
### Issue tracker
44

5-
Issues are tracked in GitHub Issues for `Muxi-X/ccnubox_rn`. See `docs/agents/issue-tracker.md`.
5+
Issues are tracked in GitHub Issues for `Muxi-X/ccnubox_rn`. See
6+
`docs/agents/issue-tracker.md`.
67

78
### Triage labels
89

910
Use the default triage labels. See `docs/agents/triage-labels.md`.
1011

1112
### Domain docs
1213

13-
This repository uses a single-context domain-doc layout. See `docs/agents/domain.md`.
14+
This repository uses a single-context domain-doc layout. See
15+
`docs/agents/domain.md`.

app.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"plugins": [
7878
"expo-router",
7979
"expo-web-browser",
80-
"expo-font",
80+
"expo-font",
8181
[
8282
"react-native-edge-to-edge",
8383
{
@@ -112,8 +112,8 @@
112112
"android": {
113113
"usesCleartextTraffic": true
114114
},
115-
"ios": {
116-
"buildReactNativeFromSource": false
115+
"ios": {
116+
"buildReactNativeFromSource": false
117117
}
118118
}
119119
],

docs/agents/domain.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ This repository uses a single-context domain-documentation layout.
66

77
- Read `CONTEXT.md` at the repository root when it exists.
88
- Read ADRs under `docs/adr/` that concern the area being changed.
9-
- If either location does not exist, proceed silently; domain documents are created lazily when decisions are established.
9+
- If either location does not exist, proceed silently; domain documents are
10+
created lazily when decisions are established.
1011

1112
## Vocabulary
1213

13-
Use domain terms as defined in `CONTEXT.md`. Avoid introducing synonyms that conflict with its glossary.
14+
Use domain terms as defined in `CONTEXT.md`. Avoid introducing synonyms that
15+
conflict with its glossary.
1416

1517
## Architecture decisions
1618

17-
If proposed work contradicts an existing ADR, surface that conflict explicitly rather than silently overriding the decision.
19+
If proposed work contradicts an existing ADR, surface that conflict explicitly
20+
rather than silently overriding the decision.

docs/agents/issue-tracker.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# Issue tracker: GitHub
22

3-
Issues and PRDs for this repo live as GitHub issues. Use the `gh` CLI for all operations.
3+
Issues and PRDs for this repo live as GitHub issues. Use the `gh` CLI for all
4+
operations.
45

56
## Conventions
67

78
- **Create an issue**: `gh issue create --title "..." --body "..."`.
8-
- **Read an issue**: `gh issue view <number> --comments`, including labels and relevant comments.
9+
- **Read an issue**: `gh issue view <number> --comments`, including labels and
10+
relevant comments.
911
- **List issues**: use `gh issue list` with appropriate label and state filters.
1012
- **Comment on an issue**: `gh issue comment <number> --body "..."`.
11-
- **Apply or remove labels**: use `gh issue edit <number> --add-label "..."` or `--remove-label "..."`.
13+
- **Apply or remove labels**: use `gh issue edit <number> --add-label "..."` or
14+
`--remove-label "..."`.
1215
- **Close an issue**: `gh issue close <number> --comment "..."`.
1316

14-
Infer the repository from `git remote -v`; `gh` does this automatically inside the clone.
17+
Infer the repository from `git remote -v`; `gh` does this automatically inside
18+
the clone.
1519

1620
## When a skill says "publish to the issue tracker"
1721

docs/agents/triage-labels.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Triage labels
22

3-
| Canonical role | Tracker label | Meaning |
4-
| --- | --- | --- |
5-
| `needs-triage` | `needs-triage` | Maintainer needs to evaluate this issue |
6-
| `needs-info` | `needs-info` | Waiting on reporter for more information |
3+
| Canonical role | Tracker label | Meaning |
4+
| ----------------- | ----------------- | ------------------------------------------ |
5+
| `needs-triage` | `needs-triage` | Maintainer needs to evaluate this issue |
6+
| `needs-info` | `needs-info` | Waiting on reporter for more information |
77
| `ready-for-agent` | `ready-for-agent` | Fully specified and ready for an AFK agent |
8-
| `ready-for-human` | `ready-for-human` | Requires human implementation |
9-
| `wontfix` | `wontfix` | Will not be actioned |
8+
| `ready-for-human` | `ready-for-human` | Requires human implementation |
9+
| `wontfix` | `wontfix` | Will not be actioned |
1010

11-
When a skill mentions a canonical role, use the corresponding tracker label from this table.
11+
When a skill mentions a canonical role, use the corresponding tracker label from
12+
this table.

ios/ccnubox.xcodeproj/project.pbxproj

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// !$*UTF8*$!
22
{
33
archiveVersion = 1;
4+
objectVersion = 77;
45
classes = {
56
};
6-
objectVersion = 77;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -78,7 +78,7 @@
7878
/* End PBXFileReference section */
7979

8080
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
81-
XX53667B411AB4C79BF324XX /* Exceptions for "widget" folder in "widget" target */ = {
81+
XX53667B411AB4C79BF324XX /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {
8282
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
8383
membershipExceptions = (
8484
"expo-target.config.js",
@@ -92,10 +92,9 @@
9292
XXC40D60DCDFACB9DFC7EEXX /* widget */ = {
9393
isa = PBXFileSystemSynchronizedRootGroup;
9494
exceptions = (
95-
XX53667B411AB4C79BF324XX /* Exceptions for "widget" folder in "widget" target */,
95+
XX53667B411AB4C79BF324XX /* PBXFileSystemSynchronizedBuildFileExceptionSet */,
9696
);
97-
explicitFileTypes = {
98-
};
97+
explicitFileTypes = {};
9998
explicitFolders = (
10099
);
101100
path = widget;
@@ -253,7 +252,7 @@
253252
children = (
254253
XXC40D60DCDFACB9DFC7EEXX /* widget */,
255254
);
256-
name = "expo:targets";
255+
name = expo:targets;
257256
path = ../targets;
258257
sourceTree = "<group>";
259258
};
@@ -436,6 +435,10 @@
436435
shellPath = /bin/sh;
437436
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ccnubox/Pods-ccnubox-frameworks.sh\"\n";
438437
showEnvVarsInLog = 0;
438+
outputFileListPaths = (
439+
);
440+
inputFileListPaths = (
441+
);
439442
};
440443
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
441444
isa = PBXShellScriptBuildPhase;
@@ -488,6 +491,10 @@
488491
shellPath = /bin/sh;
489492
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ccnubox/Pods-ccnubox-resources.sh\"\n";
490493
showEnvVarsInLog = 0;
494+
outputFileListPaths = (
495+
);
496+
inputFileListPaths = (
497+
);
491498
};
492499
CE6A01DA19AE436BA9A9BE3E /* [Expo Dev Launcher] Strip Local Network Keys for Release */ = {
493500
isa = PBXShellScriptBuildPhase;
@@ -779,6 +786,7 @@
779786
};
780787
XX34044F15DF842CFD3034XX /* Release */ = {
781788
isa = XCBuildConfiguration;
789+
name = Release;
782790
buildSettings = {
783791
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
784792
CLANG_ANALYZER_NONNULL = YES;
@@ -788,12 +796,10 @@
788796
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
789797
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
790798
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
791-
CODE_SIGN_ENTITLEMENTS = ../targets/widget/generated.entitlements;
792799
CODE_SIGN_STYLE = Automatic;
793800
COPY_PHASE_STRIP = NO;
794801
CURRENT_PROJECT_VERSION = 19;
795802
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
796-
DEVELOPMENT_TEAM = 7K67YDYQD8;
797803
GCC_C_LANGUAGE_STANDARD = gnu11;
798804
GENERATE_INFOPLIST_FILE = YES;
799805
INFOPLIST_FILE = ../targets/widget/Info.plist;
@@ -807,21 +813,22 @@
807813
);
808814
MARKETING_VERSION = 3.1.7;
809815
MTL_FAST_MATH = YES;
810-
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
811816
PRODUCT_BUNDLE_IDENTIFIER = "release-20240916.widget";
812817
PRODUCT_NAME = "$(TARGET_NAME)";
813-
REGISTER_APP_GROUPS = YES;
814818
SKIP_INSTALL = YES;
815-
SWIFT_COMPILATION_MODE = wholemodule;
816819
SWIFT_EMIT_LOC_STRINGS = YES;
820+
SWIFT_COMPILATION_MODE = wholemodule;
817821
SWIFT_OPTIMIZATION_LEVEL = "-O";
818822
SWIFT_VERSION = 5.0;
819823
TARGETED_DEVICE_FAMILY = "1,2";
824+
CODE_SIGN_ENTITLEMENTS = ../targets/widget/generated.entitlements;
825+
REGISTER_APP_GROUPS = YES;
826+
DEVELOPMENT_TEAM = 7K67YDYQD8;
820827
};
821-
name = Release;
822828
};
823829
XXDC728E3D4EB020525057XX /* Debug */ = {
824830
isa = XCBuildConfiguration;
831+
name = Debug;
825832
buildSettings = {
826833
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
827834
CLANG_ANALYZER_NONNULL = YES;
@@ -831,11 +838,9 @@
831838
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
832839
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
833840
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
834-
CODE_SIGN_ENTITLEMENTS = ../targets/widget/generated.entitlements;
835841
CODE_SIGN_STYLE = Automatic;
836842
CURRENT_PROJECT_VERSION = 19;
837843
DEBUG_INFORMATION_FORMAT = dwarf;
838-
DEVELOPMENT_TEAM = 7K67YDYQD8;
839844
GCC_C_LANGUAGE_STANDARD = gnu11;
840845
GENERATE_INFOPLIST_FILE = YES;
841846
INFOPLIST_FILE = ../targets/widget/Info.plist;
@@ -850,18 +855,18 @@
850855
MARKETING_VERSION = 3.1.7;
851856
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
852857
MTL_FAST_MATH = YES;
853-
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
854858
PRODUCT_BUNDLE_IDENTIFIER = "release-20240916.widget";
855859
PRODUCT_NAME = "$(TARGET_NAME)";
856-
REGISTER_APP_GROUPS = YES;
857860
SKIP_INSTALL = YES;
858861
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
859862
SWIFT_EMIT_LOC_STRINGS = YES;
860863
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
861864
SWIFT_VERSION = 5.0;
862865
TARGETED_DEVICE_FAMILY = "1,2";
866+
CODE_SIGN_ENTITLEMENTS = ../targets/widget/generated.entitlements;
867+
REGISTER_APP_GROUPS = YES;
868+
DEVELOPMENT_TEAM = 7K67YDYQD8;
863869
};
864-
name = Debug;
865870
};
866871
/* End XCBuildConfiguration section */
867872

@@ -886,11 +891,11 @@
886891
};
887892
XX509A8227CD432F916357XX /* Build configuration list for PBXNativeTarget "widget" */ = {
888893
isa = XCConfigurationList;
894+
defaultConfigurationIsVisible = 0;
889895
buildConfigurations = (
890896
XXDC728E3D4EB020525057XX /* Debug */,
891897
XX34044F15DF842CFD3034XX /* Release */,
892898
);
893-
defaultConfigurationIsVisible = 0;
894899
defaultConfigurationName = Release;
895900
};
896901
/* End XCConfigurationList section */

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ packages:
77
patchedDependencies:
88
'@bacons/apple-targets@4.0.7': 'patches/@bacons__apple-targets@4.0.7.patch'
99
# 'mx-jpush-expo@1.2.5': 'patches/mx-jpush-expo@1.2.5.patch'
10-
minimumReleaseAge: 0
10+
minimumReleaseAge: 0

src/app/(setting)/checkUpdate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const mxLogo = require('../../assets/images/mx-logo.png');
2424

2525
function CheckUpdate(): React.ReactNode {
2626
const version = Application.nativeApplicationVersion;
27-
const updateInfo = Constants.default.expoConfig?.extra
28-
?.updateInfo as UpdateInfo | undefined;
27+
const updateInfo = Constants.default.expoConfig?.extra?.updateInfo as
28+
UpdateInfo | undefined;
2929
const [manualProgress, setManualProgress] = useState<
3030
EasUpdateProgress | 'restarting' | null
3131
>(null);

src/themeBasedComponents/type.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
/** 可配置组件名 */
22
export type ConfigurableComponentName =
3-
| 'HeaderLeft'
4-
| 'HeaderCenter'
5-
| 'HeaderRight'
6-
| 'CourseItem';
3+
'HeaderLeft' | 'HeaderCenter' | 'HeaderRight' | 'CourseItem';

src/utils/easUpdate.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import * as Updates from 'expo-updates';
22

33
export type EasUpdateResult =
4-
| { status: 'disabled' }
5-
| { status: 'up-to-date' }
6-
| { status: 'downloaded' };
4+
{ status: 'disabled' } | { status: 'up-to-date' } | { status: 'downloaded' };
75

86
export type EasUpdateProgress = 'checking' | 'downloading';
97

@@ -15,7 +13,7 @@ type EasUpdateOptions = {
1513
let activeUpdateOperation: Promise<EasUpdateResult> | null = null;
1614

1715
const runUpdateOperation = async (
18-
options: EasUpdateOptions,
16+
options: EasUpdateOptions
1917
): Promise<EasUpdateResult> => {
2018
if (!Updates.isEnabled) {
2119
return { status: 'disabled' };
@@ -39,7 +37,7 @@ const runUpdateOperation = async (
3937
};
4038

4139
export const checkAndDownloadUpdateAsync = (
42-
options: EasUpdateOptions = {},
40+
options: EasUpdateOptions = {}
4341
): Promise<EasUpdateResult> => {
4442
if (activeUpdateOperation) {
4543
return activeUpdateOperation;

0 commit comments

Comments
 (0)