adding frontend to cicd
Some checks failed
Build and Deploy Backend / Run Linters and Tests (Backend) (push) Successful in 19s
Build and Deploy Backend / Build (Backend) (push) Has been cancelled
Build and Deploy Backend / Build Native Android App (EAS) (push) Has been cancelled
Build and Deploy Backend / Deploy to Host (push) Has been cancelled
Build and Deploy Backend / Build (Frontend Web) (push) Has been cancelled
16
interfaces/nativeapp/Dockerfile.nginx
Normal file
@@ -0,0 +1,16 @@
|
||||
# ./frontend/Dockerfile.nginx
|
||||
|
||||
FROM nginx:1.28-alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Remove default Nginx welcome page
|
||||
RUN rm /usr/share/nginx/html/*
|
||||
|
||||
# Copy the pre-built Expo web output
|
||||
COPY dist/ /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
# Start Nginx in the foreground
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
1331
interfaces/nativeapp/dist/_expo/static/js/web/index-0ef639b7ebb0f592fe73fd94db0b4205.js
vendored
Normal file
|
After Width: | Height: | Size: 653 B |
BIN
interfaces/nativeapp/dist/assets/node_modules/@react-navigation/elements/lib/module/assets/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 207 B |
BIN
interfaces/nativeapp/dist/assets/node_modules/@react-navigation/elements/lib/module/assets/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 220 B |
|
After Width: | Height: | Size: 334 B |
|
After Width: | Height: | Size: 502 B |
|
After Width: | Height: | Size: 645 B |
BIN
interfaces/nativeapp/dist/assets/node_modules/@react-navigation/elements/lib/module/assets/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 141 B |
|
After Width: | Height: | Size: 201 B |
|
After Width: | Height: | Size: 266 B |
|
After Width: | Height: | Size: 332 B |
BIN
interfaces/nativeapp/dist/assets/node_modules/@react-navigation/elements/lib/module/assets/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 928 B |
BIN
interfaces/nativeapp/dist/assets/src/assets/MAIA_ICON.55dab8d84a31f13e7cdf223a69c97d91.png
vendored
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
interfaces/nativeapp/dist/assets/src/assets/fonts/Inter-Bold.8b04b3bd9435341377d7f4b4d68b6ecc.ttf
vendored
Normal file
BIN
interfaces/nativeapp/dist/assets/src/assets/fonts/Inter-Light.65ec965bd90e1a297cdb3be407420abc.ttf
vendored
Normal file
BIN
interfaces/nativeapp/dist/assets/src/assets/fonts/Inter-Medium.4591e900425d177e6ba268d165bf12e8.ttf
vendored
Normal file
BIN
interfaces/nativeapp/dist/assets/src/assets/fonts/Inter-Regular.e48c1217adab2a0e44f8df400d33c325.ttf
vendored
Normal file
BIN
interfaces/nativeapp/dist/assets/src/assets/fonts/Inter-Thin.1e9e30c74648950a240427636b6c1992.ttf
vendored
Normal file
BIN
interfaces/nativeapp/dist/favicon.ico
vendored
Normal file
|
After Width: | Height: | Size: 14 KiB |
37
interfaces/nativeapp/dist/index.html
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||
<title>MAIA</title>
|
||||
<!-- The `react-native-web` recommended style reset: https://necolas.github.io/react-native-web/docs/setup/#root-element -->
|
||||
<style id="expo-reset">
|
||||
/* These styles make the body full-height */
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
/* These styles disable body scrolling if you are using <ScrollView> */
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
/* These styles make the root element full-height */
|
||||
#root {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
flex: 1;
|
||||
}
|
||||
</style>
|
||||
<link rel="shortcut icon" href="/favicon.ico" /></head>
|
||||
|
||||
<body>
|
||||
<!-- Use static rendering with Expo Router to support running without JavaScript. -->
|
||||
<noscript>
|
||||
You need to enable JavaScript to run this app.
|
||||
</noscript>
|
||||
<!-- The root element for your Expo app. -->
|
||||
<div id="root"></div>
|
||||
<script src="/_expo/static/js/web/index-0ef639b7ebb0f592fe73fd94db0b4205.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
1
interfaces/nativeapp/dist/metadata.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":0,"bundler":"metro","fileMetadata":{}}
|
||||
36
interfaces/nativeapp/nginx.conf
Normal file
@@ -0,0 +1,36 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name app.maia.depaoli.id.au;
|
||||
|
||||
# Set the root directory for static files
|
||||
root /usr/share/nginx/html;
|
||||
# Default file to serve
|
||||
index index.html index.htm;
|
||||
|
||||
location / {
|
||||
# Crucial for SPAs:
|
||||
# - Try to serve the requested file ($uri)
|
||||
# - If it's not found, try it as a directory ($uri/)
|
||||
# - If that's not found, serve index.html (letting client-side routing handle it)
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Add gzip compression for better performance
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 6;
|
||||
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss text/javascript image/svg+xml;
|
||||
|
||||
# Improve caching for assets
|
||||
location ~* \.(?:css|js|jpg|jpeg|gif|png|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public";
|
||||
access_log off; # Don't log access for static assets
|
||||
}
|
||||
|
||||
# Deny access to hidden files
|
||||
location ~ /\. {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||