File tree Expand file tree Collapse file tree 7 files changed +134
-3
lines changed
Expand file tree Collapse file tree 7 files changed +134
-3
lines changed Original file line number Diff line number Diff line change 1+ * @ GalvinPython
Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : " npm"
4+ directory : " /"
5+ schedule :
6+ interval : " weekly"
7+ assignees :
8+ - " GalvinPython"
Original file line number Diff line number Diff line change 1+ name : Build Site (PR)
2+
3+ on :
4+ pull_request :
5+ types : [opened, reopened, synchronize]
6+
7+ jobs :
8+ build-site-test :
9+ name : Build Site
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v2
15+
16+ - name : Setup Bun
17+ uses : oven-sh/setup-bun@v2
18+
19+ - name : Install dependencies
20+ run : bun install
21+
22+ - name : Build Site
23+ run : bun run build
Original file line number Diff line number Diff line change 1+ name : ESLint Check
2+
3+ on :
4+ push :
5+ branches :
6+ - ' *'
7+ paths :
8+ - " **/*.js"
9+ - " **/*.jsx"
10+ - " **/*.ts"
11+ - " **/*.tsx"
12+ - " **/*.mjs"
13+ pull_request :
14+ types : [opened, reopened, synchronize]
15+
16+ jobs :
17+ lint :
18+ name : ESLint
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v2
24+
25+ - name : Setup Bun
26+ uses : oven-sh/setup-bun@v1
27+
28+ - name : Install dependencies
29+ run : bun install
30+
31+ - name : Run ESLint
32+ run : bun run lint
Original file line number Diff line number Diff line change 1+ name : Update bun.lockb
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ update-bun-lockb :
13+ name : " Update bun.lockb"
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Set up Bun
17+ uses : oven-sh/setup-bun@v1
18+
19+ - name : Check out repository
20+ uses : actions/checkout@v4
21+
22+ - name : Install dependencies with Bun
23+ run : bun install
24+
25+ - name : Check for changes
26+ id : git_status
27+ run : |
28+ git add bun.lockb
29+ if [ -z "$(git status --porcelain)" ]; then
30+ echo "No changes to bun.lockb"
31+ echo "::set-output name=changes_detected::false"
32+ else
33+ echo "Changes detected to bun.lockb"
34+ echo "::set-output name=changes_detected::true"
35+ fi
36+
37+ - name : Commit and push changes to bun.lockb
38+ if : steps.git_status.outputs.changes_detected == 'true'
39+ run : |
40+ git config --global user.name 'github-actions[bot]'
41+ git config --global user.email 'github-actions[bot]@users.noreply.github.com'
42+ git commit -m "Update bun.lockb (via GitHub Actions)"
43+ git pull --rebase origin main
44+ git push
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ export default function Document() {
44 return (
55 < Html lang = "en" >
66 < Head >
7+ { /* i dont care that the meta tags are in the wrong place, this is one page and as long as it works why should i care */ }
78 < meta charSet = "UTF-8" />
89 < meta
910 content = "width=device-width, initial-scale=1.0"
@@ -13,8 +14,30 @@ export default function Document() {
1314 content = "View your SQLite database online in a web browser, for free and with no downloads needed"
1415 name = "description"
1516 />
17+ < meta content = "index, follow" name = "robots" />
1618 < link href = "/favicon.svg" rel = "icon" />
1719 < title > SQLite Database Viewer</ title >
20+ < meta content = "SQLite Database Viewer" property = "og:title" />
21+ < meta
22+ content = "View your SQLite database online in a web browser, for free and with no downloads needed"
23+ property = "og:description"
24+ />
25+ < meta content = "website" property = "og:type" />
26+ < meta content = "https://sqlitereader.com" property = "og:url" />
27+ < meta
28+ content = "https://api.microlink.io/?url=https://sqlitereader.com/&screenshot=true&embed=screenshot.url&overlay.browser=dark"
29+ property = "og:image"
30+ />
31+ < meta content = "summary_large_image" name = "twitter:card" />
32+ < meta content = "SQLite Database Viewer" name = "twitter:title" />
33+ < meta
34+ content = "View your SQLite database online in a web browser, for free and with no downloads needed"
35+ name = "twitter:description"
36+ />
37+ < meta
38+ content = "https://api.microlink.io/?url=https://sqlitereader.com/&screenshot=true&embed=screenshot.url&overlay.browser=dark"
39+ name = "twitter:image"
40+ />
1841 </ Head >
1942 < body
2043 className = "antialiased"
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export default function Home() {
7979
8080 formData . append ( "file" , file ) ;
8181
82- setIsLoading ( true ) ; // Set loading to true
82+ setIsLoading ( true ) ;
8383
8484 try {
8585 const response = await fetch ( "/api/upload" , {
@@ -100,7 +100,7 @@ export default function Home() {
100100 console . error ( "Upload error:" , error ) ;
101101 alert ( "Error uploading file." ) ;
102102 } finally {
103- setIsLoading ( false ) ; // Reset loading state
103+ setIsLoading ( false ) ;
104104 }
105105 } ;
106106
@@ -150,7 +150,7 @@ export default function Home() {
150150 } ;
151151
152152 const Spinner = ( ) => (
153- < div className = "flex justify-center items-center" >
153+ < div className = "flex justify-center items-center mb-4 " >
154154 < div className = "animate-spin rounded-full h-8 w-8 border-t-2 border-blue-500" />
155155 </ div >
156156 ) ;
You can’t perform that action at this time.
0 commit comments