Skip to content

Commit 7b16e85

Browse files
authored
chore: housecleaning (#62)
Currently the project is unable to deploy to vercel, in this PR I made changes that involves the UI repository, before putting it in #60 I want to make sure that all changes made will not break the functionality of the website in the long run
2 parents da7ed02 + 5db0fe5 commit 7b16e85

File tree

187 files changed

+6491
-1648
lines changed

Some content is hidden

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

187 files changed

+6491
-1648
lines changed

.eslintrc.json

Lines changed: 0 additions & 152 deletions
This file was deleted.

.github/workflows/format-check.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/housekeeping.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Format / Lint / Dependency Checks
2+
on: [push]
3+
4+
jobs:
5+
check-code-format:
6+
name: "Check code format and lint"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: 20
13+
cache: yarn
14+
15+
- name: Install deps
16+
run: yarn
17+
18+
- name: "Biome: Format"
19+
id: formatter
20+
run: yarn format
21+
continue-on-error: true
22+
23+
- name: "Biome: Lint"
24+
id: linter
25+
run: yarn lint
26+
continue-on-error: true
27+
28+
- name: "Check outcomes"
29+
if: always()
30+
run: |
31+
if [[ "${{ steps.formatter.outcome }}" != "success" || "${{ steps.linter.outcome }}" != "success" ]]; then
32+
echo "Formatting checks failed; make sure to format and lint your code accordingly!"
33+
exit 1
34+
fi
35+
36+
knip-deps:
37+
name: "Unused code & dependencies"
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version: 20
44+
cache: yarn
45+
46+
- name: Install deps
47+
run: yarn
48+
49+
- name: "Knip checks"
50+
run: yarn knip

.prettierignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.vercelignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
apps/client
1+
apps/desktop

apps/desktop/src/components/TitleBar.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { useEffect, useRef, useState } from "react"
2-
import { MyArtverseIcon } from "@mav/ui"
32
import { appWindow } from "@tauri-apps/api/window"
43
import {
54
VscChromeMaximize,
@@ -37,10 +36,13 @@ export function TitleBar() {
3736
}, [])
3837

3938
return (
40-
<div data-tauri-drag-region="" className="flex items-center justify-between">
39+
<div
40+
data-tauri-drag-region=""
41+
className="flex items-center justify-between"
42+
>
4143
<div className="flex items-center gap-x-3 px-5 py-3">
4244
<div data-tauri-drag-region="">
43-
<MyArtverseIcon logoOnly size={0.6} />
45+
{/* <MyArtverseIcon logoOnly size={0.6} /> */}
4446
</div>
4547
<span data-tauri-drag-region="" className="select-none text-lg">
4648
Window title

apps/desktop/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": "@mav/config/tsconfig.shared.json",
33
"include": ["src", "**/*.ts", "**/*.tsx"],
4+
"exclude": ["vite.config.ts", "vite.config.d.ts", "node_modules", "dist"],
45
"references": [{ "path": "./tsconfig.node.json" }]
56
}

apps/desktop/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export default defineConfig(async () => ({
2424
},
2525
build: {
2626
// Tauri uses Chromium on Windows and WebKit on macOS and Linux
27-
target: process.env.TAURI_PLATFORM == "windows" ? "chrome105" : "safari13",
27+
target:
28+
process.env.TAURI_PLATFORM == "windows" ? "chrome105" : "safari13",
2829
// don't minify for debug builds
2930
minify: !process.env.TAURI_DEBUG ? "esbuild" : false,
3031
// produce sourcemaps for debug builds

apps/web/lib/redirects.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable import/no-anonymous-default-export */
12
export default [
23
{ source: "/signup", destination: "/register", permanent: true },
34
{ source: "/sign-up", destination: "/register", permanent: true },

0 commit comments

Comments
 (0)