mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-06-04 09:41:32 +02:00
chore: update .dockerignore and .gitignore for Capacitor, add build scripts to package.json, and create initial index.html
This commit is contained in:
@@ -2,3 +2,5 @@ node_modules/
|
||||
.next/
|
||||
.github/
|
||||
.DS_Store
|
||||
android/
|
||||
ios/
|
||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -41,4 +41,8 @@ next-env.d.ts
|
||||
/public/sw.js
|
||||
/public/sw.js.map
|
||||
/public/workbox-*.js
|
||||
/public/workbox-*.js.map
|
||||
/public/workbox-*.js.map
|
||||
|
||||
# capacitor
|
||||
/android/
|
||||
/ios/
|
||||
@@ -3,7 +3,11 @@ import type { CapacitorConfig } from '@capacitor/cli';
|
||||
const config: CapacitorConfig = {
|
||||
appId: 'rocks.lumina.app',
|
||||
appName: 'LUMINA',
|
||||
webDir: 'public'
|
||||
webDir: 'public',
|
||||
server: {
|
||||
url: 'https://lumina.rocks',
|
||||
cleartext: true
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
@@ -6,7 +6,10 @@
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
"lint": "next lint",
|
||||
"cap:sync": "npx cap sync",
|
||||
"cap:build:android": "npx cap sync && npx cap open android",
|
||||
"cap:build:ios": "npx cap sync && npx cap open ios"
|
||||
},
|
||||
"dependencies": {
|
||||
"@capacitor/android": "^7.4.3",
|
||||
|
||||
40
public/index.html
Normal file
40
public/index.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LUMINA</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.loading {
|
||||
text-align: center;
|
||||
}
|
||||
.loading img {
|
||||
max-width: 150px;
|
||||
}
|
||||
.loading p {
|
||||
margin-top: 20px;
|
||||
color: #666;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="loading">
|
||||
<img src="/lumina.png" alt="LUMINA" />
|
||||
<p>Loading LUMINA...</p>
|
||||
</div>
|
||||
<script>
|
||||
// This page will only be shown briefly before redirecting to the actual app
|
||||
window.location.href = "https://lumina.rocks";
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user