Browse Source

change endpoint

pull/2/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
b7a62a0485
  1. 4
      src/const/ApiConst.js
  2. 4
      src/views/SimproV2/Gantt/index.js

4
src/const/ApiConst.js

@ -112,8 +112,8 @@ export const BASE_INTEGRATION_V1 = "http://ospro-api.adyawinsa.com:9083";
export const TOKEN_ADW = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIxMjAyIiwiZXhwIjoxNjkxODMwNDkzfQ.DvBQIOZsdFndWsliPCZT65Y6G5Xx4vWBKz8Rhe7rvRA";
// export let BASE_OSPRO = "https://ospro-api.ospro.id";
export let BASE_OSPRO = "https://adw-api.ospro.id";
// export let BASE_OSPRO = "http://localhost:8444";
// export let BASE_OSPRO = "https://adw-api.ospro.id";
export let BASE_OSPRO = "http://localhost:8444";
// export let BASE_OSPRO = "http://192.168.1.123:8444"; // local
// export let BASE_OSPRO = "http://103.73.125.81:8444"; // ip public adw
export let BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`;

4
src/views/SimproV2/Gantt/index.js

@ -76,8 +76,8 @@ const Gantt = (props) => {
const RenderGantt = () => (
<iframe
id="frame-gantt"
// src={`https://adw-gantt.ospro.id/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}`}
src={`http://localhost:8446/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}`}
src={`https://adw-gantt.ospro.id/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}`}
// src={`http://localhost:8446/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}`}
style={{
width: '100%',
height: '95vh',

Loading…
Cancel
Save