переменная теперь одна убраны бесполезные кнопки информации
This commit is contained in:
parent
75e672934c
commit
23905636d9
@ -1,2 +1 @@
|
|||||||
REACT_APP_DOMAIN="https://squiz.pena.digital"
|
REACT_APP_DOMAIN="https://squiz.pena.digital"
|
||||||
REACT_APP_HUB_DOMAIN="https://shub.pena.digital"
|
|
@ -1,2 +1 @@
|
|||||||
REACT_APP_DOMAIN="https://squiz.pena.digital"
|
REACT_APP_DOMAIN="https://squiz.pena.digital"
|
||||||
REACT_APP_HUB_DOMAIN="https://shub.pena.digital"
|
|
@ -8,7 +8,7 @@ import type {
|
|||||||
} from "@frontend/kitui";
|
} from "@frontend/kitui";
|
||||||
import { parseAxiosError } from "../utils/parse-error";
|
import { parseAxiosError } from "../utils/parse-error";
|
||||||
|
|
||||||
const apiUrl =process.env.REACT_APP_DOMAIN + "/auth";
|
const apiUrl = process.env.REACT_APP_DOMAIN + "/auth";
|
||||||
|
|
||||||
export async function register(
|
export async function register(
|
||||||
login: string,
|
login: string,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
const domen = process.env.REACT_APP_HUB_DOMAIN
|
const domen = process.env.REACT_APP_DOMAIN;
|
||||||
|
|
||||||
export function sendContactFormRequest(body: {
|
export function sendContactFormRequest(body: {
|
||||||
contact: string;
|
contact: string;
|
||||||
|
@ -18,7 +18,7 @@ import {
|
|||||||
CopyQuestionResponse,
|
CopyQuestionResponse,
|
||||||
} from "@model/question/copy";
|
} from "@model/question/copy";
|
||||||
|
|
||||||
const baseUrl = process.env.REACT_APP_DOMAIN ;
|
const baseUrl = process.env.REACT_APP_DOMAIN;
|
||||||
|
|
||||||
function get(quizId: string) {
|
function get(quizId: string) {
|
||||||
return makeRequest<any>({
|
return makeRequest<any>({
|
||||||
|
@ -90,7 +90,6 @@ export const ResultSettings = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography variant="h5">Настройки результатов</Typography>
|
<Typography variant="h5">Настройки результатов</Typography>
|
||||||
<Info />
|
|
||||||
<Button
|
<Button
|
||||||
disableRipple
|
disableRipple
|
||||||
sx={{
|
sx={{
|
||||||
|
@ -65,7 +65,9 @@ function TariffPage() {
|
|||||||
for (let page = 2; page <= totalPages; page += 1) {
|
for (let page = 2; page <= totalPages; page += 1) {
|
||||||
const tariffsResult = await makeRequest<never, GetTariffsResponse>({
|
const tariffsResult = await makeRequest<never, GetTariffsResponse>({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: process.env.REACT_APP_DOMAIN + `/strator/tariff?page=${page}&limit=100`,
|
url:
|
||||||
|
process.env.REACT_APP_DOMAIN +
|
||||||
|
`/strator/tariff?page=${page}&limit=100`,
|
||||||
});
|
});
|
||||||
console.log(page);
|
console.log(page);
|
||||||
|
|
||||||
@ -109,7 +111,7 @@ function TariffPage() {
|
|||||||
//Добавляем желаемый тариф в корзину
|
//Добавляем желаемый тариф в корзину
|
||||||
await makeRequest({
|
await makeRequest({
|
||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
url: process.env.REACT_APP_HUB_DOMAIN + `/customer/cart?id=${id}`,
|
url: process.env.REACT_APP_DOMAIN + `/customer/cart?id=${id}`,
|
||||||
});
|
});
|
||||||
//Если нам хватает денежек - покупаем тариф
|
//Если нам хватает денежек - покупаем тариф
|
||||||
if (price <= user.wallet.cash) {
|
if (price <= user.wallet.cash) {
|
||||||
@ -130,7 +132,9 @@ function TariffPage() {
|
|||||||
// history.pushState({}, null, "https://hub.pena.digital/wallet?action=squizpay");
|
// history.pushState({}, null, "https://hub.pena.digital/wallet?action=squizpay");
|
||||||
|
|
||||||
var link = document.createElement("a");
|
var link = document.createElement("a");
|
||||||
link.href = process.env.REACT_APP_HUB_DOMAIN + `/payment?action=squizpay&dif=${
|
link.href =
|
||||||
|
process.env.REACT_APP_DOMAIN +
|
||||||
|
`/payment?action=squizpay&dif=${
|
||||||
(price - Number(user.wallet.cash)) * 100
|
(price - Number(user.wallet.cash)) * 100
|
||||||
}`;
|
}`;
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
@ -300,7 +304,7 @@ export const inCart = () => {
|
|||||||
try {
|
try {
|
||||||
await makeRequest({
|
await makeRequest({
|
||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
url: process.env.REACT_APP_HUB_DOMAIN + `/customer/cart?id=${id}`,
|
url: process.env.REACT_APP_DOMAIN + `/customer/cart?id=${id}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
let index = saveCart.indexOf("green");
|
let index = saveCart.indexOf("green");
|
||||||
|
@ -413,7 +413,8 @@ export const uploadQuestionImage = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
const imageId = values[0];
|
const imageId = values[0];
|
||||||
const imageUrl = process.env.REACT_APP_DOMAIN + `/squizimages/${quizQid}/${imageId}`;
|
const imageUrl =
|
||||||
|
process.env.REACT_APP_DOMAIN + `/squizimages/${quizQid}/${imageId}`;
|
||||||
|
|
||||||
updateQuestion(questionId, (question) => {
|
updateQuestion(questionId, (question) => {
|
||||||
updateFn(question, imageUrl);
|
updateFn(question, imageUrl);
|
||||||
|
@ -129,7 +129,7 @@ export const quizStore = create<QuizStore>()(
|
|||||||
config: {
|
config: {
|
||||||
noStartPage: false,
|
noStartPage: false,
|
||||||
type: "", // quiz или form
|
type: "", // quiz или form
|
||||||
logo: process.env.REACT_APP_HUB_DOMAIN + "/img/logo",
|
logo: process.env.REACT_APP_DOMAIN + "/img/logo",
|
||||||
startpage: {
|
startpage: {
|
||||||
description: "", // приветственный текст опроса
|
description: "", // приветственный текст опроса
|
||||||
button: "", // текст на кнопке начала опроса
|
button: "", // текст на кнопке начала опроса
|
||||||
|
Loading…
Reference in New Issue
Block a user