Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanRochet authored and JohanRochet committed Apr 23, 2024
2 parents e587b18 + a6c1ab8 commit 79ebe17
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/app/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
EXPO_USE_METRO_WORKSPACE_ROOT=1
EXPO_PUBLIC_IOS_URL=http://192.168.0.115:3000
EXPO_PUBLIC_ANDROID_URL=http://192.168.0.115:3000
EXPO_PUBLIC_IOS_URL=http://localhost:3000
EXPO_PUBLIC_ANDROID_URL=http://10.0.2.2:3000
5 changes: 3 additions & 2 deletions apps/app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
Expand Down Expand Up @@ -29,9 +30,9 @@
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="app"/>
<data android:scheme="be.unamur.touchIDE"/>
<data android:scheme="be.unamur.touchide"/>
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false"/>
</application>
</manifest>
</manifest>
6 changes: 5 additions & 1 deletion apps/app/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "be.unamur.touchIDE"
"package": "be.unamur.touchIDE",
"permissions": [
"android.permission.INTERNET",
"android.permission.ACCESS_NETWORK_STATE"
]
},
"web": {
"favicon": "./assets/favicon.png"
Expand Down
4 changes: 3 additions & 1 deletion apps/app/app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import '../global.css';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { links, trpc, trpcClient } from '../utils/api';
import { links, trpc, trpcClient, url } from '../utils/api';
import { useState } from 'react';
import Scaffold from '../components/Scaffold';
import Workspace from '../utils/workspace/Workspace';
Expand All @@ -15,6 +15,7 @@ import { completionItemSchema } from '@/schemas/exportedSchemas';
import { KeyboardContext } from '../utils/keyboardContext';
import { StatusBar } from 'expo-status-bar';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import { Text } from 'react-native';

const queryClient = new QueryClient();

Expand All @@ -33,6 +34,7 @@ export default function IndexPage() {

return (
<>
<Text>{url}</Text>
<StatusBar style='light' backgroundColor='rgb(40,40,40)' />
<GestureHandlerRootView style={{ flex: 1 }}>
<KeyboardContext.Provider
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3.9'

services:
web:
ports:
- 3000:3000
14 changes: 14 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
web:
networks:
- web
labels:
- traefik.docker.network=web
- traefik.enable=true
- traefik.http.routers.mscthesis.rule=Host(`mscthesis.loir.app`)
- traefik.http.routers.mscthesis.tls=true
- traefik.http.routers.mscthesis.tls.certresolver=letsencrypt
- traefik.http.services.mscthesis.loadbalancer.server.port=3000
networks:
web:
external: true
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ services:
volumes:
- ./packages/api/src:/usr/src/app/packages/api/src
- ./projects:/usr/src/app/projects
ports:
- 3000:3000
command: npm run dev
build:
context: .
Expand Down

0 comments on commit 79ebe17

Please sign in to comment.