Loading...
;
- }
-
- if (error) {
- return
-
-
-
+
+
Main Page
- >
)
}
\ No newline at end of file
diff --git a/front/src/types.ts b/front/src/types.ts
deleted file mode 100644
index b86ff18..0000000
--- a/front/src/types.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-interface Article {
- id: number;
- title: string;
- content: string;
-}
-
-interface ArticlePreview {
- id: number;
- title: string;
- preview: string;
-}
-
-export type { Article, ArticlePreview };
\ No newline at end of file
diff --git a/front/vite.config.ts b/front/vite.config.ts
index 795d340..8b0f57b 100644
--- a/front/vite.config.ts
+++ b/front/vite.config.ts
@@ -4,28 +4,4 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
- server: {
- proxy: {
- '/api': {
- target: 'http://127.0.0.1:2486',
- changeOrigin: true,
- secure: false,
- ws: true,
- /*
- configure: (proxy, _options) => {
- proxy.on('error', (err, _req, _res) => {
- console.log('proxy error', err);
- });
- proxy.on('proxyReq', (proxyReq, req, _res) => {
- console.log('Sending Request to the Target:', req.method, req.url);
- });
- proxy.on('proxyRes', (proxyRes, req, _res) => {
- console.log('Received Response from the Target:', proxyRes.statusCode, req.url);
- });
- },
- */
- //rewrite: path => path.replace(/^\/api/, '')
- }
- }
- },
})
diff --git a/package-lock.json b/package-lock.json
deleted file mode 100644
index e73376c..0000000
--- a/package-lock.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "name": "projet-nuitinfo-2024",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {}
-}