Skip to content

Commit

Permalink
Merge pull request #53 from ConducereIT/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
cristim67 authored Apr 12, 2024
2 parents 18d1fad + eec7364 commit e966330
Show file tree
Hide file tree
Showing 9 changed files with 388 additions and 1,241 deletions.
1,604 changes: 376 additions & 1,228 deletions client/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"preview": "vite preview"
},
"dependencies": {
"@genezio-sdk/dev-apv": "^1.0.0-prod",
"@genezio/auth": "2.0.13",
"@genezio-sdk/apv-production": "^1.0.0-prod",
"@genezio/auth": "^2.0.13",
"@genezio/vite-plugin-genezio": "^1.0.4",
"@react-oauth/google": "^0.12.1",
"@types/styled-components": "^5.1.34",
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/RaceRegistration.component.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react';
import { BackendService } from "@genezio-sdk/dev-apv";
import { BackendService } from "@genezio-sdk/apv-production";

type RegistrationState = {
tshirtSize: string;
Expand Down
4 changes: 2 additions & 2 deletions client/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { GoogleOAuthProvider } from '@react-oauth/google'
import { AuthService } from '@genezio/auth';

AuthService.getInstance().setTokenAndRegion(
"0-7wbqm5eaw3w6pkcauqnk4chrmu0zyron",
"0-ul63zxst4qppvf6bbn526l2uyi0arumm",
"eu-central-1");

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<GoogleOAuthProvider clientId='30633693522-jd2bijo2t8drg37f1l9jngmmupdj3015.apps.googleusercontent.com'>
<GoogleOAuthProvider clientId='30633693522-jd2bijo2t8drg37f1l9jngmmupdj3015.apps.googleusercontent.com'>
<App />
</GoogleOAuthProvider>
</React.StrictMode>
Expand Down
2 changes: 1 addition & 1 deletion client/src/views/Account.view.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from "react";
import { useNavigate } from 'react-router-dom';
import { AuthService } from '@genezio/auth';
import { BackendService } from "@genezio-sdk/dev-apv";
import { BackendService } from "@genezio-sdk/apv-production";
import { Header } from "../components/Header.component";

interface Race {
Expand Down
2 changes: 1 addition & 1 deletion client/src/views/Login.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {CredentialResponse, GoogleLogin} from '@react-oauth/google';
import {AuthService} from '@genezio/auth';
import {useNavigate} from 'react-router-dom';
import {Header} from '../components/Header.component';
import {BackendService} from '@genezio-sdk/dev-apv';
import {BackendService} from '@genezio-sdk/apv-production';

const Login: React.FC = () => {

Expand Down
7 changes: 3 additions & 4 deletions genezio.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Learn more about Genezio YAML at https://genezio.com/docs/project-structure/genezio-configuration-file/
# The name of the project.
name: dev-apv
name: apv-production
# The region where the project is deployed.
region: eu-central-1
# The version of the Genezio YAML configuration to parse.
Expand Down Expand Up @@ -37,13 +37,12 @@ frontend:
scripts:
# List of scripts to run before deploying the frontend.
deploy:
- npm install @genezio-sdk/dev-apv
- npm install @genezio-sdk/apv-production
- npm install
local: npm i
# List of scripts that build your frontend before deployment. It should populate the specified `publish` directory.
build: npm run build
# List of scripts to run when starting the local development server.
start:
- npm install
- npm run dev
subdomain: aqua-voluminous-boa
subdomain: aquamarine-splendid-silverfish
2 changes: 1 addition & 1 deletion server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@genezio/types": "1.0.14",
"@genezio/types": "^1.0.14",
"@prisma/client": "^5.12.1",
"node-fetch": "^3.3.2"
},
Expand Down

0 comments on commit e966330

Please sign in to comment.