Skip to content

Commit 4fde283

Browse files
authored
chore: format and lint webapp also (#4056)
#3977 added formatting and linting everywhere else. This extends it to the webapp.
1 parent 1d6f900 commit 4fde283

515 files changed

Lines changed: 6533 additions & 5659 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.oxfmtrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"sortPackageJson": false,
1313
"ignorePatterns": [
1414
"node_modules",
15-
"apps/webapp",
1615
".env",
1716
".env.local",
1817
"pnpm-lock.yaml",

.oxlintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"**/*.d.ts",
88
"**/seed.js",
99
"**/seedCloud.ts",
10-
"**/populate.js",
11-
"apps/webapp/**"
10+
"**/populate.js"
1211
],
1312
// All rules below are disabled because they currently fire on the existing
1413
// codebase (1748 warnings across these 20 rules as of this commit). Disabled

apps/webapp/app/assets/icons/AIPenIcon.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ export function AIPenIcon({ className }: { className?: string }) {
1919
stroke="currentColor"
2020
strokeWidth="2"
2121
/>
22-
<line
23-
x1="17.6464"
24-
y1="10.3536"
25-
x2="13.6464"
26-
y2="6.35355"
27-
stroke="currentColor"
28-
/>
22+
<line x1="17.6464" y1="10.3536" x2="13.6464" y2="6.35355" stroke="currentColor" />
2923
</svg>
3024
);
3125
}

apps/webapp/app/assets/icons/AiProviderIcons.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ export function CerebrasIcon({ className }: IconProps) {
147147

148148
export function MistralIcon({ className }: IconProps) {
149149
return (
150-
<svg className={className} viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
150+
<svg
151+
className={className}
152+
viewBox="0 0 24 24"
153+
fill="currentColor"
154+
xmlns="http://www.w3.org/2000/svg"
155+
>
151156
<path d="M7.28516 3.74658H4.1416V6.8809H7.28516V3.74658Z" />
152157
<path d="M19.8579 3.74658H16.7144V6.8809H19.8579V3.74658Z" />
153158
<path d="M10.4277 6.88086H4.1416V10.0152H10.4277V6.88086Z" />
@@ -174,4 +179,3 @@ export function AzureIcon({ className }: IconProps) {
174179
</svg>
175180
);
176181
}
177-

apps/webapp/app/assets/icons/AttemptIcon.tsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,8 @@ export function AttemptIcon({ className }: { className?: string }) {
88
fill="none"
99
xmlns="http://www.w3.org/2000/svg"
1010
>
11-
<rect
12-
x="3"
13-
y="3"
14-
width="18"
15-
height="18"
16-
rx="2"
17-
stroke="currentColor"
18-
strokeWidth="2"
19-
/>
20-
<rect
21-
width="6"
22-
height="2"
23-
rx="1"
24-
transform="matrix(1 0 0 -1 9 15)"
25-
fill="currentColor"
26-
/>
11+
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" strokeWidth="2" />
12+
<rect width="6" height="2" rx="1" transform="matrix(1 0 0 -1 9 15)" fill="currentColor" />
2713
<rect
2814
width="2.48444"
2915
height="2"

apps/webapp/app/assets/icons/ClockIcon.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ export function ClockIcon({ className }: { className?: string }) {
1818
strokeWidth="2"
1919
strokeLinecap="round"
2020
/>
21-
<path
22-
d="M15.5 15.5L12 12"
23-
stroke="currentColor"
24-
strokeWidth="2"
25-
strokeLinecap="round"
26-
/>
21+
<path d="M15.5 15.5L12 12" stroke="currentColor" strokeWidth="2" strokeLinecap="round" />
2722
</svg>
2823
);
2924
}

apps/webapp/app/assets/icons/FunctionIcon.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@ export function FunctionIcon({ className }: { className?: string }) {
88
fill="none"
99
xmlns="http://www.w3.org/2000/svg"
1010
>
11-
<rect
12-
x="3"
13-
y="3"
14-
width="18"
15-
height="18"
16-
rx="2"
17-
stroke="currentColor"
18-
strokeWidth="2"
19-
/>
11+
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" strokeWidth="2" />
2012
<path
2113
fillRule="evenodd"
2214
clipRule="evenodd"

apps/webapp/app/assets/icons/InfoIcon.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@ export function InfoIcon({ className }: { className?: string }) {
88
fill="none"
99
xmlns="http://www.w3.org/2000/svg"
1010
>
11-
<rect
12-
x="3"
13-
y="3"
14-
width="18"
15-
height="18"
16-
rx="9"
17-
stroke="currentColor"
18-
strokeWidth="2"
19-
/>
11+
<rect x="3" y="3" width="18" height="18" rx="9" stroke="currentColor" strokeWidth="2" />
2012
<path
2113
d="M9.90005 11.7C9.90005 11.2029 10.303 10.8 10.8 10.8H11.1041C12.4476 10.8 13.4455 12.044 13.1541 13.3555L12.6031 15.8348C12.5615 16.0222 12.704 16.1999 12.896 16.1999H13.2C13.6971 16.1999 14.1 16.6029 14.1 17.0999C14.1 17.597 13.6971 17.9999 13.2 17.9999H12.896C11.5525 17.9999 10.5545 16.7558 10.846 15.4444L11.397 12.965C11.4386 12.7777 11.296 12.5999 11.1041 12.5999H10.8C10.303 12.5999 9.90005 12.197 9.90005 11.7Z"
2214
fill="currentColor"

apps/webapp/app/assets/icons/IntegrationsIcon.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ export function IntegrationsIcon({ className }: { className?: string }) {
1313
stroke="currentColor"
1414
strokeWidth="2"
1515
/>
16-
<path
17-
d="M4 7H10V14H3V8C3 7.44772 3.44772 7 4 7Z"
18-
stroke="currentColor"
19-
strokeWidth="2"
20-
/>
16+
<path d="M4 7H10V14H3V8C3 7.44772 3.44772 7 4 7Z" stroke="currentColor" strokeWidth="2" />
2117
<path
2218
d="M17 14V20C17 20.5523 16.5523 21 16 21H10V14H17Z"
2319
stroke="currentColor"

apps/webapp/app/assets/icons/RightSideMenuIcon.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,7 @@ export function RightSideMenuIcon({ className }: { className?: string }) {
1515
onMouseEnter={() => setHovered(true)}
1616
onMouseLeave={() => setHovered(false)}
1717
>
18-
<rect
19-
x="4"
20-
y="4"
21-
width="16"
22-
height="16"
23-
rx="2"
24-
stroke="currentColor"
25-
strokeWidth="2"
26-
/>
18+
<rect x="4" y="4" width="16" height="16" rx="2" stroke="currentColor" strokeWidth="2" />
2719
<motion.rect
2820
y="6"
2921
height="12"

0 commit comments

Comments
 (0)