From fa8b0eeab680a029f4ccf655d0588af60542c6b1 Mon Sep 17 00:00:00 2001 From: HOANGLAOTA Date: Tue, 16 Jul 2024 13:44:19 +0700 Subject: [PATCH] add config --- .gitignore | 2 -- src/_constants/config.js | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/_constants/config.js diff --git a/.gitignore b/.gitignore index 982c1cb..933d0a4 100644 --- a/.gitignore +++ b/.gitignore @@ -24,8 +24,6 @@ yarn-error.log* .eslintcache -/src/_constants/configs.js -/src/_constants/config.js /package-lock.json /docker-compose.yml /yarn.lock \ No newline at end of file diff --git a/src/_constants/config.js b/src/_constants/config.js new file mode 100644 index 0000000..657eb9f --- /dev/null +++ b/src/_constants/config.js @@ -0,0 +1,23 @@ +export const configConstants = { + API_URL: "", + API_KEY: "8c3a30506d9633a8b202cb5a91873efa", + AUTH_BASIC_USER_NAME: "gek_admin", + AUTH_BASIC_PASSWORD: "gek_admin_password", + APP_ID_GOOGLE: + "906644438510-eid5lsm4ndgtu0qh2lbrk31tl8r7rrt6.apps.googleusercontent.com", + SCOPE_LOGIN_GOOGLE: "https://www.googleapis.com/auth/user.gender.read", + APP_ID_FACEBOOK: "660393674829980", + // BASE_URL: "http://45.119.84.189:10809/", + BASE_URL: "https://service.sundayenglish.com/", + EXCERCISE_URL: "https://exercise.sundayenglish.com/", + // API_URL_SETEST: "http://45.119.84.189:10809/api", + API_URL_AGENT: 'https://agent.sundayenglish.com/api', + API_URL_SETEST: "https://service.sundayenglish.com/api", + AUTH_URL: "https://oauth2.sundayenglish.com/", + API_TIMEOUT: "60000", + LOGIN_VIA_GOOLE: "GOOGLE", + LOGIN_VIA_FACEBOOK: "FACEBOOK", + LOGIN_VIA_APPLE: "LOGIN_VIA_APPLE", + APP_ID_APPLE: "gk.app.sunday", + DEFAULT_LIMIT: 10, +};