mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
now user can login
This commit is contained in:
parent
e7960a6bf8
commit
e19001ca82
25 changed files with 493 additions and 32844 deletions
5
src/constants/api.js
Normal file
5
src/constants/api.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
export const SERVER = 'http://alpha-map.vault48.org';
|
||||
export const API = {
|
||||
COMPOSE: `${SERVER}/engine/composerOrchid.php`,
|
||||
GET_GUEST: `${SERVER}/engine/auth.php`,
|
||||
};
|
19
src/constants/auth.js
Normal file
19
src/constants/auth.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
export const ROLES = {
|
||||
guest: 'guest',
|
||||
vk: 'vk',
|
||||
};
|
||||
|
||||
export const DEFAULT_USER = {
|
||||
new_messages: 0,
|
||||
place_types: {},
|
||||
random_url: '',
|
||||
role: ROLES.guest,
|
||||
routes: [],
|
||||
success: false,
|
||||
userdata: {
|
||||
name: '',
|
||||
agent: '',
|
||||
ip: '',
|
||||
photo: '',
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue