Compare commits

...

3 Commits
v0.5.3 ... main

Author SHA1 Message Date
Nikolai Petukhov
3822ad0dce fixed exit button 2024-10-22 19:25:49 +03:00
Nikolai Petukhov
2829c11e4c 0.5.4 2024-10-16 23:48:44 +03:00
Nikolai Petukhov
0bcdb95b57 change to dev api 2024-10-16 23:48:26 +03:00
5 changed files with 6 additions and 9 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "enterfront", "name": "enterfront",
"version": "0.5.3", "version": "0.5.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "enterfront", "name": "enterfront",
"version": "0.5.3", "version": "0.5.4",
"dependencies": { "dependencies": {
"@brojs/cli": "^1.0.0", "@brojs/cli": "^1.0.0",
"@brojs/create": "^1.0.0", "@brojs/create": "^1.0.0",

View File

@ -31,5 +31,5 @@
"clean": "rimraf dist" "clean": "rimraf dist"
}, },
"name": "enterfront", "name": "enterfront",
"version": "0.5.3" "version": "0.5.4"
} }

View File

@ -4,7 +4,7 @@ import {getConfigValue} from "@brojs/cli";
const LOCAL = "http://localhost:8099"; const LOCAL = "http://localhost:8099";
const DEV = "https://dev.bro-js.ru"; const DEV = "https://dev.bro-js.ru";
export const BASE_API_URL = LOCAL + getConfigValue("enterfront.api"); export const BASE_API_URL = DEV + getConfigValue("enterfront.api");
// fetch(`${BASE_API_URL}/books/list`) // fetch(`${BASE_API_URL}/books/list`)

View File

@ -1,10 +1,7 @@
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
import {getConfigValue} from "@brojs/cli"; import {getConfigValue} from "@brojs/cli";
const LOCAL = "http://localhost:8099"; import { BASE_API_URL } from "../api.js";
const DEV = "https://dev.bro-js.ru";
export const BASE_API_URL = LOCAL + getConfigValue("enterfront.api");
const baseQuery = fetchBaseQuery({ const baseQuery = fetchBaseQuery({
baseUrl: BASE_API_URL, baseUrl: BASE_API_URL,

View File

@ -13,7 +13,7 @@ const Account = () => {
localStorage.removeItem("token"); localStorage.removeItem("token");
localStorage.setItem("message", "Exited successfully!"); localStorage.setItem("message", "Exited successfully!");
window.location.href = "/"; window.location.href = URLs.baseUrl;
} }
const [nickname, setNickname] = useState(""); const [nickname, setNickname] = useState("");