mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
backend: initial log in dialog
This commit is contained in:
parent
6f6e6ae6d7
commit
8bba2ff1ba
8 changed files with 83 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
import React from 'react';
|
||||
|
||||
import { GuestButton } from '$components/user/GuestButton';
|
||||
import { SERVER } from '$constants/api';
|
||||
import { SERVER, TEST } from '$constants/api';
|
||||
import { DEFAULT_USER, ROLES } from '$constants/auth';
|
||||
import { UserButton } from '$components/user/UserButton';
|
||||
import { UserMenu } from '$components/user/UserMenu';
|
||||
|
@ -60,7 +60,8 @@ export class Component extends React.PureComponent<Props, void> {
|
|||
const left = (width - 700) / 2;
|
||||
|
||||
window.open(
|
||||
`https://oauth.vk.com/authorize?client_id=5987644&scope=&redirect_uri=${SERVER}/engine/oauthOrchid.php&response_type=code`,
|
||||
// `https://oauth.vk.com/authorize?client_id=5987644&scope=&redirect_uri=${SERVER}/engine/oauthOrchid.php&response_type=code`,
|
||||
`https://oauth.vk.com/authorize?client_id=5987644&scope=&redirect_uri=${TEST}/auth/social/vk`,
|
||||
'socialPopupWindow',
|
||||
`location=no,width=700,height=370,scrollbars=no,top=${top},left=${left},resizable=no`
|
||||
);
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
export const SERVER = 'http://alpha-map.vault48.org';
|
||||
export const TEST = 'http://localhost:3000';
|
||||
|
||||
export const API = {
|
||||
COMPOSE: `${SERVER}/engine/composerOrchid.php`,
|
||||
GET_GUEST: `${SERVER}/engine/authOrchid.php`,
|
||||
CHECK_TOKEN: `${SERVER}/engine/authOrchid.php`,
|
||||
GET_GUEST: `${TEST}/auth/guest`,
|
||||
CHECK_TOKEN: `${TEST}/auth`,
|
||||
GET_MAP: `${SERVER}/engine/authOrchid.php`,
|
||||
POST_MAP: `${SERVER}/engine/authOrchid.php?action=store`,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue