Changed api endpoint
This commit is contained in:
@@ -5,7 +5,7 @@ export type AutoCompleteItem = {
|
|||||||
text: string;
|
text: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const DISCOVER_BASE = "http://45.157.177.99:8080/discover";
|
const DISCOVER_BASE = "https://fltr-app.de/api/discover";
|
||||||
|
|
||||||
export async function getAutoComplete(
|
export async function getAutoComplete(
|
||||||
query: string,
|
query: string,
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ type RawSeasonOld = {
|
|||||||
| null;
|
| null;
|
||||||
};
|
};
|
||||||
|
|
||||||
const PERSONS_BASE_URL = "http://45.157.177.99:8080/persons";
|
const PERSONS_BASE_URL = "https://fltr-app.de/api/persons";
|
||||||
|
|
||||||
function toMini(p: any | undefined | null): PersonMini | null {
|
function toMini(p: any | undefined | null): PersonMini | null {
|
||||||
if (!p || !p.personId || !p.name) return null;
|
if (!p || !p.personId || !p.name) return null;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export type SearchResultItem = {
|
|||||||
data: any;
|
data: any;
|
||||||
};
|
};
|
||||||
|
|
||||||
const DISCOVER_BASE = "http://45.157.177.99:8080/discover/search";
|
const DISCOVER_BASE = "https://fltr-app.de/api/discover/search";
|
||||||
|
|
||||||
export async function getSearchResults(
|
export async function getSearchResults(
|
||||||
tags: string[] | string,
|
tags: string[] | string,
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export type Season = {
|
|||||||
participants: SeasonParticipant[];
|
participants: SeasonParticipant[];
|
||||||
};
|
};
|
||||||
|
|
||||||
const SEASON_BASE_URL = "http://45.157.177.99:8080/shows";
|
const SEASON_BASE_URL = "https://fltr-app.de/api/shows";
|
||||||
|
|
||||||
export async function getSeason(
|
export async function getSeason(
|
||||||
showId: number,
|
showId: number,
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export type Show = {
|
|||||||
running: boolean;
|
running: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const SHOW_API_URL = "http://45.157.177.99:8080/shows";
|
const SHOW_API_URL = "https://fltr-app.de/api/shows";
|
||||||
|
|
||||||
export async function getShows(): Promise<Show[]> {
|
export async function getShows(): Promise<Show[]> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export type StreamingServiceRaw = {
|
|||||||
value: string;
|
value: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const STREAMING_SERVICE_API_URL = "http://45.157.177.99:8080/config";
|
const STREAMING_SERVICE_API_URL = "https://fltr-app.de/api/config";
|
||||||
|
|
||||||
export async function getStreamingImages(): Promise<StreamingServiceRaw[]> {
|
export async function getStreamingImages(): Promise<StreamingServiceRaw[]> {
|
||||||
try {
|
try {
|
||||||
|
|||||||
26
app.json
26
app.json
@@ -1,43 +1,51 @@
|
|||||||
{
|
{
|
||||||
"expo": {
|
"expo": {
|
||||||
"name": "fltr-app",
|
"name": "FLTR",
|
||||||
"slug": "fltr-app",
|
"slug": "fltr-app",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
"icon": "./assets/images/icon.png",
|
"icon": "./assets/images/icon.png",
|
||||||
"scheme": "fltrapp",
|
"scheme": "fltrapp",
|
||||||
"userInterfaceStyle": "automatic",
|
"userInterfaceStyle": "automatic",
|
||||||
"newArchEnabled": true,
|
"newArchEnabled": true,
|
||||||
"ios": {
|
"ios": {
|
||||||
"supportsTablet": true
|
"supportsTablet": true,
|
||||||
|
"bundleIdentifier": "de.berg-autosoft.fltr"
|
||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
"adaptiveIcon": {
|
"adaptiveIcon": {
|
||||||
"foregroundImage": "./assets/images/adaptive-icon.png",
|
"foregroundImage": "./assets/images/icon.png",
|
||||||
"backgroundColor": "#ffffff"
|
"backgroundColor": "#ffffff"
|
||||||
},
|
},
|
||||||
"edgeToEdgeEnabled": true
|
"edgeToEdgeEnabled": true,
|
||||||
|
"package": "de.bergautosoft.fltr"
|
||||||
},
|
},
|
||||||
"web": {
|
"web": {
|
||||||
"bundler": "metro",
|
"bundler": "metro",
|
||||||
"output": "static",
|
"output": "static",
|
||||||
"favicon": "./assets/images/favicon.png"
|
"favicon": "./assets/images/icon.png"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"expo-router",
|
"expo-router",
|
||||||
[
|
[
|
||||||
"expo-splash-screen",
|
"expo-splash-screen",
|
||||||
{
|
{
|
||||||
"image": "./assets/images/splash-icon.png",
|
"image": "./assets/images/icon.png",
|
||||||
"imageWidth": 200,
|
"imageWidth": 300,
|
||||||
"resizeMode": "contain",
|
"resizeMode": "contain",
|
||||||
"backgroundColor": "#ffffff"
|
"backgroundColor": "#000456"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"expo-web-browser"
|
"expo-web-browser"
|
||||||
],
|
],
|
||||||
"experiments": {
|
"experiments": {
|
||||||
"typedRoutes": true
|
"typedRoutes": true
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"router": {},
|
||||||
|
"eas": {
|
||||||
|
"projectId": "e9743e8a-0922-45bd-bc19-dbfd8a9a7436"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export default StyleSheet.create({
|
|||||||
mainContainer: {
|
mainContainer: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
backgroundColor: Colors.background,
|
backgroundColor: Colors.background,
|
||||||
paddingHorizontal: 15,
|
paddingHorizontal: 5,
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
minHeight: 125,
|
minHeight: 125,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 65 KiB |
21
eas.json
Normal file
21
eas.json
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"cli": {
|
||||||
|
"version": ">= 16.26.0",
|
||||||
|
"appVersionSource": "remote"
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"development": {
|
||||||
|
"developmentClient": true,
|
||||||
|
"distribution": "internal"
|
||||||
|
},
|
||||||
|
"preview": {
|
||||||
|
"distribution": "internal"
|
||||||
|
},
|
||||||
|
"production": {
|
||||||
|
"autoIncrement": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"submit": {
|
||||||
|
"production": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "expo start",
|
"start": "expo start",
|
||||||
"reset-project": "node ./scripts/reset-project.js",
|
"reset-project": "node ./scripts/reset-project.js",
|
||||||
"android": "expo start --android",
|
"android": "expo run:android",
|
||||||
"ios": "expo start --ios",
|
"ios": "expo run:ios",
|
||||||
"web": "expo start --web",
|
"web": "expo start --web",
|
||||||
"lint": "expo lint"
|
"lint": "expo lint"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user