Browse Source

remove single line comment occurences

pull/2/head
Muhammad Sulaiman Yusuf 3 years ago
parent
commit
591ee7ded6
  1. 5
      src/App.js
  2. 6
      src/App.scss
  3. 2
      src/components/AdmTree/AdmTree.js
  4. 1
      src/components/AdmTree/example.js
  5. 1
      src/components/BaseMap/BaseMap.js
  6. 10
      src/components/DailyInfo/DailyInfo.js
  7. 2
      src/components/ImagePopup/ImagePopup.js
  8. 1
      src/components/LayerTreeAdm/LayerTreeAdm.js
  9. 1
      src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js
  10. 1
      src/components/MapHeader/MapHeader.js
  11. 1
      src/components/MapLegend/MapLegend.js
  12. 7
      src/components/MapTable/MapTable.js
  13. 7
      src/components/MapTable/MapTable_backup.js
  14. 7
      src/components/MapTable/MapTable_backup2.js
  15. 1
      src/components/MapTable2/MapTable.js
  16. 7
      src/components/MapTable2/MapTable_backup.js
  17. 7
      src/components/MapTable2/MapTable_backup2.js
  18. 3
      src/components/MapToolbar/MapToolbar.js
  19. 3
      src/components/MapToolbar/MapToolbar_backup.js
  20. 3
      src/components/MapToolbar_backup/MapToolbar.js
  21. 3
      src/components/MapToolbar_backup/MapToolbar_backup.js
  22. 2
      src/components/QueryBuilder/QueryBuilder.js
  23. 1
      src/components/SearchFeatures/SearchFeatures.js
  24. 5
      src/containers/DefaultLayout/DefaultHeader.js
  25. 3
      src/containers/DefaultLayout/DefaultLayout.js
  26. 4
      src/index.js
  27. 19
      src/polyfill.js
  28. 13
      src/routes.js
  29. 2
      src/scss/_custom.scss
  30. 1
      src/scss/_ie-fix.scss
  31. 1
      src/scss/_variables.scss
  32. 5
      src/scss/style.scss
  33. 1
      src/scss/vendors/_variables.scss
  34. 7
      src/serviceWorker.js
  35. 1
      src/views/BaseLayers/BaseLayers.js
  36. 2
      src/views/ControlMonitoringGantt/index.js
  37. 4
      src/views/DashboardProject/ganttDashboard.js
  38. 20
      src/views/Map/Map.js
  39. 29
      src/views/Map/Map_16.js
  40. 26
      src/views/Map/Map_backup.js
  41. 1
      src/views/MapConfig/MapConfig.js
  42. 16
      src/views/Map_backup/Map.js
  43. 26
      src/views/Map_backup/Map_backup.js
  44. 1
      src/views/Master/ConfigAlert/index.js
  45. 2
      src/views/Master/MasterCountry/MasterCountry.js
  46. 2
      src/views/Master/MasterCustomer/DialogForm.js
  47. 1
      src/views/Master/MasterCustomer/SettingCustomer.js
  48. 2
      src/views/Master/MasterDistrict/MasterDistrict.js
  49. 1
      src/views/Master/MasterGroupSales/index.js
  50. 1
      src/views/Master/MasterKaryawan/DialogForm.js
  51. 9
      src/views/Master/MasterKaryawan/index.js
  52. 1
      src/views/Master/MasterMenu/index.js
  53. 1
      src/views/Master/MasterOffice/DialogForm.js
  54. 1
      src/views/Master/MasterOffice/SettingOffice.js
  55. 1
      src/views/Master/MasterOffice/index.js
  56. 1
      src/views/Master/MasterOfficeHours/index.js
  57. 1
      src/views/Master/MasterOrganization/DialogEmployee.js
  58. 1
      src/views/Master/MasterRoles/index.js
  59. 1
      src/views/Master/MasterSales/SettingSales.js
  60. 1
      src/views/Master/MasterSales/index.js
  61. 2
      src/views/Master/MasterSubdistrict/MasterSubdistrict.js
  62. 1
      src/views/Master/MasterTask/index.js
  63. 2
      src/views/Master/MasterVillage/MasterVillage.js
  64. 2
      src/views/Master/PlanningVsRealisasi/DialogView.js
  65. 2
      src/views/Master/Proyek/DialogForm.js
  66. 2
      src/views/Master/Proyek/DialogFormPlanning.js
  67. 2
      src/views/Master/Proyek/DialogFormSub.js
  68. 2
      src/views/Master/Proyek/DialogMap.js
  69. 2
      src/views/Master/Proyek/DialogPlanning.js
  70. 3
      src/views/Master/Proyek/SubProyekComp.js
  71. 25
      src/views/Master/Proyek/index.js
  72. 2
      src/views/Master/RoleProject/index.js
  73. 2
      src/views/Master/SubProyek/DialogForm.js
  74. 1
      src/views/Master/SubProyek/index.js
  75. 6
      src/views/Report/ControlMonitoring/DialogFoto.js
  76. 1
      src/views/Report/ControlMonitoring/DialogView.js
  77. 3
      src/views/Report/alert/DialogForm.js
  78. 5
      src/views/Report/alert/index.js
  79. 3
      src/views/Report/k3/DialogForm.js
  80. 2
      src/views/Report/k3/index.js
  81. 7
      src/views/SimproV2/ChecklistK3/index.js
  82. 2
      src/views/SimproV2/Closing/DialogForm.js
  83. 3
      src/views/SimproV2/Closing/index.js
  84. 3
      src/views/SimproV2/ControlMonitoring/index.js
  85. 2
      src/views/SimproV2/CreatedProyek/DialogForm.js
  86. 2
      src/views/SimproV2/CreatedProyek/DialogFormProyek.js
  87. 17
      src/views/SimproV2/CreatedProyek/DialogFormResource.js
  88. 1
      src/views/SimproV2/CreatedProyek/DialogTools.js
  89. 1
      src/views/SimproV2/CreatedProyek/FormAsignHr.js
  90. 1
      src/views/SimproV2/CreatedProyek/ViewProject.js
  91. 5
      src/views/SimproV2/CreatedProyek/index.js
  92. 2
      src/views/SimproV2/Divisi/DialogForm.js
  93. 17
      src/views/SimproV2/Gantt/index.js
  94. 3
      src/views/SimproV2/PlanningHarian/DialogForm.js
  95. 1
      src/views/SimproV2/Presence/index.js
  96. 40
      src/views/SimproV2/ProjectType/DialogForm.js
  97. 2
      src/views/SimproV2/RateCost/DialogForm.js
  98. 32
      src/views/SimproV2/ResourceMaterial/DialogForm.js
  99. 2
      src/views/SimproV2/ResourceMaterial/index.js
  100. 3
      src/views/SimproV2/ResourceTools/DialogEditReqTools.js
  101. Some files were not shown because too many files have changed in this diff Show More

5
src/App.js

@ -2,16 +2,11 @@ import React, { Component } from 'react';
import { HashRouter, Route, Switch } from 'react-router-dom';
import './App.scss';
import 'react-notifications/lib/notifications.css';
// import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css';
// import 'react-bootstrap-table-next/dist/react-bootstrap-table-next.min.js';
// import 'react-bootstrap-table2-paginator/dist/react-bootstrap-table2-paginator.min.css';
const loading = () => <div className="animated fadeIn pt-3 text-center">Loading...</div>;
// Containers
const DefaultLayout = React.lazy(() => import('./containers/DefaultLayout'));
// Pages
const Login = React.lazy(() => import('./views/Pages/Login'));
const Register = React.lazy(() => import('./views/Pages/Register'));
const Page403 = React.lazy(() => import('./views/Pages/Page403'));

6
src/App.scss

@ -1,11 +1,5 @@
// Styles
// CoreUI Icons Set
@import '~@coreui/icons/css/coreui-icons.css';
// Import Flag Icons Set
@import '~flag-icon-css/css/flag-icon.min.css';
// Import Font Awesome Icons Set
@import '~font-awesome/css/font-awesome.min.css';
// Import Simple Line Icons Set
@import '~simple-line-icons/css/simple-line-icons.css';
// Import Main styles for this application
@import './scss/style.scss';

2
src/components/AdmTree/AdmTree.js

@ -1,6 +1,5 @@
import React, { Component, Fragment } from 'react';
import { Form, FormGroup, Label, Input, Row, Col, ListGroup, ListGroupItem } from 'reactstrap';
// Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import { Tree, Input as SearchInput, Menu, Dropdown } from 'antd';
import { API_KOMINFO_GET_PROV, API_KOMINFO_GET_KABKOT, API_KOMINFO_GET_KEC, API_KOMINFO_GET_DESA } from '../../const/ApiConst.js';
import Loader from 'react-loader-spinner'
@ -11,7 +10,6 @@ import { findWhere } from 'underscore';
import { opt2G, opt3G, opt4G, netQuality2G, netQuality3G, netQuality4G, bts, mukim } from '../../const/Kominfo.js';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
// npm install --save-dev @iconify/react @iconify/icons-mdi
import { Icon, InlineIcon } from '@iconify/react';
import mapMarker from '@iconify/icons-mdi/map-marker';

1
src/components/AdmTree/example.js

@ -132,5 +132,4 @@ class SearchTree extends React.Component {
}
}
// ReactDOM.render(<SearchTree />, document.getElementById('container'));
export default SearchTree;

1
src/components/BaseMap/BaseMap.js

@ -2,7 +2,6 @@ import React, { Component } from 'react';
import './BaseMap.css';
import '../../assets/css/customscroll.css';
import { Row, Col } from 'reactstrap';
// import Legend from '@terrestris/react-geo/dist/Legend/Legend';
class BaseMap extends Component {

10
src/components/DailyInfo/DailyInfo.js

@ -32,19 +32,10 @@ import {
} from '../../const/AppConst.js'
import axios from 'axios';
import { API_GEOHR_KARYAWAN, API_DAILY_INFO, API_DAILY_INFO_DETAIL, DASHBOARD_PROYEK_SEARCH, PROYEK_SEARCH } from '../../const/ApiConst';
// import DialogBottom from './DialogBottom'
import { toast } from 'react-toastify';
import moment from 'moment';
const id_org = window.localStorage.getItem('id_org');
// const token = window.localStorage.getItem('token');
// const config = {
// headers:
// {
// "Authorization": `Bearer ${token}`,
// "Content-type": `application/json`
// }
// };
class DailyInfo extends React.Component {
@ -267,7 +258,6 @@ class DailyInfo extends React.Component {
// "key": "total dengan keterangan",
// "total": this.state.sumTelat,
// "color": NOT_YET_COLOR,
// "text_color": WHITE_COLOR
// },
// {
// "id": 5,

2
src/components/ImagePopup/ImagePopup.js

@ -10,8 +10,6 @@ import {
import './ImagePopup.css';
import '../../assets/css/customscroll.css';
import ImageSlider from '../ImageSlider';
// import { getImagePopup } from '../../const/GeoserverFunc.js';
// import { BASE_IMAGE } from '../../const/ApiConst.js';
class ImagePopup extends Component {

1
src/components/LayerTreeAdm/LayerTreeAdm.js

@ -8,7 +8,6 @@ import "react-loader-spinner/dist/loader/css/react-spinner-loader.css"
import './LayerTreeGeoHR.css'
import '../../assets/css/customscroll.css'
import { findWhere } from 'underscore';
// import { opt2G, opt3G, opt4G, netQuality2G, netQuality3G, netQuality4G } from '../../const/Kominfo.js';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import ContentLoader from "react-content-loader"

1
src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js

@ -8,7 +8,6 @@ import "react-loader-spinner/dist/loader/css/react-spinner-loader.css"
import './LayerTreeGeoHR.css'
import '../../assets/css/customscroll.css'
import { findWhere } from 'underscore';
// import { opt2G, opt3G, opt4G, netQuality2G, netQuality3G, netQuality4G } from '../../const/Kominfo.js';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import ContentLoader from "react-content-loader"

1
src/components/MapHeader/MapHeader.js

@ -28,7 +28,6 @@ const propTypes = {
const defaultProps = {};
// const MappifiedNominatimSearch = mappify(NominatimSearch);
class MapHeader extends Component {
// loading = () => <div className="animated fadeIn pt-1 text-center">Loading...</div>

1
src/components/MapLegend/MapLegend.js

@ -2,7 +2,6 @@ import React, { Component } from 'react';
import './MapLegend.css';
import '../../assets/css/customscroll.css';
import { Legend } from '@terrestris/react-geo';
// import Legend from '@terrestris/react-geo/dist/Legend/Legend';
class MapLegend extends Component {

7
src/components/MapTable/MapTable.js

@ -2,7 +2,6 @@ import React, { Component, Fragment } from 'react';
import Draggable, { DraggableCore } from "react-draggable";
import { Modal, ModalHeader, ModalBody, ModalFooter, Button,
UncontrolledTooltip, UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
// import { Rnd } from 'react-rnd';
import BootstrapTable from 'react-bootstrap-table-next';
import ToolkitProvider, { Search, CSVExport } from 'react-bootstrap-table2-toolkit';
import paginationFactory from 'react-bootstrap-table2-paginator';
@ -23,7 +22,6 @@ import { reqTableData, getTableColumns, updateFeature, updateFeature2, deleteFea
import { API_GET_COLUMN_TABLE } from '../../const/ApiConst.js';
import { findWhere, without } from 'underscore';
// For Select feature then go to map
import { Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon } from 'ol/geom';
import { Circle as CircleStyle, Fill, Stroke, Style, Text } from 'ol/style';
import { Select } from 'ol/interaction';
@ -95,11 +93,6 @@ const products = [
}
}*/
// const selectRow = {
// mode: 'radio',
// clickToSelect: true,
// clickToEdit: true // Click to edit cell also
// };
class TableContent extends Component {

7
src/components/MapTable/MapTable_backup.js

@ -2,7 +2,6 @@ import React, { Component, Fragment } from 'react';
import Draggable, { DraggableCore } from "react-draggable";
import { Modal, ModalHeader, ModalBody, ModalFooter, Button,
UncontrolledTooltip, UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
// import { Rnd } from 'react-rnd';
import BootstrapTable from 'react-bootstrap-table-next';
import ToolkitProvider, { Search, CSVExport } from 'react-bootstrap-table2-toolkit';
import paginationFactory from 'react-bootstrap-table2-paginator';
@ -21,7 +20,6 @@ import { getTableColumns } from '../../const/GeoserverFunc.js';
import { API_GET_COLUMN_TABLE } from '../../const/ApiConst.js';
import { findWhere, without } from 'underscore';
// For Select feature then go to map
import { Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon } from 'ol/geom';
import { Circle as CircleStyle, Fill, Stroke, Style, Text } from 'ol/style';
import { Select } from 'ol/interaction';
@ -92,11 +90,6 @@ const products = [
}
}*/
// const selectRow = {
// mode: 'radio',
// clickToSelect: true,
// clickToEdit: true // Click to edit cell also
// };
class TableContent extends Component {

7
src/components/MapTable/MapTable_backup2.js

@ -2,7 +2,6 @@ import React, { Component, Fragment } from 'react';
import Draggable, { DraggableCore } from "react-draggable";
import { Modal, ModalHeader, ModalBody, ModalFooter, Button,
UncontrolledTooltip, UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
// import { Rnd } from 'react-rnd';
import BootstrapTable from 'react-bootstrap-table-next';
import ToolkitProvider, { Search, CSVExport } from 'react-bootstrap-table2-toolkit';
import paginationFactory from 'react-bootstrap-table2-paginator';
@ -23,7 +22,6 @@ import { getTableColumns, updateFeature } from '../../const/GeoserverFunc.js';
import { API_GET_COLUMN_TABLE } from '../../const/ApiConst.js';
import { findWhere, without } from 'underscore';
// For Select feature then go to map
import { Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon } from 'ol/geom';
import { Circle as CircleStyle, Fill, Stroke, Style, Text } from 'ol/style';
import { Select } from 'ol/interaction';
@ -95,11 +93,6 @@ const products = [
}
}*/
// const selectRow = {
// mode: 'radio',
// clickToSelect: true,
// clickToEdit: true // Click to edit cell also
// };
class TableContent extends Component {

1
src/components/MapTable2/MapTable.js

@ -7,7 +7,6 @@ import React, { Component } from 'react';
import { Col, Row, Table, Card, CardHeader, CardBody, Input} from 'reactstrap';
import { Icon } from '@iconify/react';
import closeCircleOutline from '@iconify/icons-ion/close-circle-outline';
// import removeIcon from '@iconify/icons-ion/remove';
import removeCircleOutline from '@iconify/icons-ion/remove-circle-outline';
import windowMaximaze from '@iconify/icons-mdi/window-maximize';
import { Pagination } from 'antd';

7
src/components/MapTable2/MapTable_backup.js

@ -2,7 +2,6 @@ import React, { Component, Fragment } from 'react';
import Draggable, { DraggableCore } from "react-draggable";
import { Modal, ModalHeader, ModalBody, ModalFooter, Button,
UncontrolledTooltip, UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
// import { Rnd } from 'react-rnd';
import BootstrapTable from 'react-bootstrap-table-next';
import ToolkitProvider, { Search, CSVExport } from 'react-bootstrap-table2-toolkit';
import paginationFactory from 'react-bootstrap-table2-paginator';
@ -21,7 +20,6 @@ import { getTableColumns } from '../../const/GeoserverFunc.js';
import { API_GET_COLUMN_TABLE } from '../../const/ApiConst.js';
import { findWhere, without } from 'underscore';
// For Select feature then go to map
import { Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon } from 'ol/geom';
import { Circle as CircleStyle, Fill, Stroke, Style, Text } from 'ol/style';
import { Select } from 'ol/interaction';
@ -92,11 +90,6 @@ const products = [
}
}*/
// const selectRow = {
// mode: 'radio',
// clickToSelect: true,
// clickToEdit: true // Click to edit cell also
// };
class TableContent extends Component {

7
src/components/MapTable2/MapTable_backup2.js

@ -2,7 +2,6 @@ import React, { Component, Fragment } from 'react';
import Draggable, { DraggableCore } from "react-draggable";
import { Modal, ModalHeader, ModalBody, ModalFooter, Button,
UncontrolledTooltip, UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
// import { Rnd } from 'react-rnd';
import BootstrapTable from 'react-bootstrap-table-next';
import ToolkitProvider, { Search, CSVExport } from 'react-bootstrap-table2-toolkit';
import paginationFactory from 'react-bootstrap-table2-paginator';
@ -23,7 +22,6 @@ import { getTableColumns, updateFeature } from '../../const/GeoserverFunc.js';
import { API_GET_COLUMN_TABLE } from '../../const/ApiConst.js';
import { findWhere, without } from 'underscore';
// For Select feature then go to map
import { Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon } from 'ol/geom';
import { Circle as CircleStyle, Fill, Stroke, Style, Text } from 'ol/style';
import { Select } from 'ol/interaction';
@ -95,11 +93,6 @@ const products = [
}
}*/
// const selectRow = {
// mode: 'radio',
// clickToSelect: true,
// clickToEdit: true // Click to edit cell also
// };
class TableContent extends Component {

3
src/components/MapToolbar/MapToolbar.js

@ -24,12 +24,9 @@ import MapLegend from '../../components/MapLegend';
import MeasureContainer from '../../components/MeasureContainer';
import DailyInfo from '../../components/DailyInfo';
import LayerTreeAdm from '../../components/LayerTreeAdm';
// import PopupContainer from '../../components/PopupContainer';
import { appConfig, wfsDispatcherUrl } from '../../const/MapConst.js';
// import { API_LAYER_SEARCH_LABEL } from '../../const/ApiConst.js';
import './MapToolbar.css';
import { Icon, InlineIcon } from '@iconify/react';
// import layersIcon from '@iconify/icons-simple-line-icons/layers';
import layersIcon from '@iconify/icons-ion/layers';
import mapIcon from '@iconify/icons-ion/map';
import ellipsisVerticalSharp from '@iconify/icons-ion/ellipsis-vertical-sharp';

3
src/components/MapToolbar/MapToolbar_backup.js

@ -21,12 +21,9 @@ import SearchFeatures from '../../components/SearchFeatures';
import AddFeature from '../../components/AddFeature';
import MapLegend from '../../components/MapLegend';
import MeasureContainer from '../../components/MeasureContainer';
// import PopupContainer from '../../components/PopupContainer';
import { appConfig, wfsDispatcherUrl } from '../../const/MapConst.js';
// import { API_LAYER_SEARCH_LABEL } from '../../const/ApiConst.js';
import './MapToolbar.css';
import { Icon, InlineIcon } from '@iconify/react';
// import layersIcon from '@iconify/icons-simple-line-icons/layers';
import layersIcon from '@iconify/icons-ion/layers';
import mapIcon from '@iconify/icons-ion/map';
import ellipsisVerticalSharp from '@iconify/icons-ion/ellipsis-vertical-sharp';

3
src/components/MapToolbar_backup/MapToolbar.js

@ -24,12 +24,9 @@ import MapLegend from '../../components/MapLegend';
import MeasureContainer from '../../components/MeasureContainer';
import DailyInfo from '../../components/DailyInfo';
import LayerTreeGeoHR from '../../components/LayerTreeGeoHR';
// import PopupContainer from '../../components/PopupContainer';
import { appConfig, wfsDispatcherUrl } from '../../const/MapConst.js';
// import { API_LAYER_SEARCH_LABEL } from '../../const/ApiConst.js';
import './MapToolbar.css';
import { Icon, InlineIcon } from '@iconify/react';
// import layersIcon from '@iconify/icons-simple-line-icons/layers';
import layersIcon from '@iconify/icons-ion/layers';
import mapIcon from '@iconify/icons-ion/map';
import ellipsisVerticalSharp from '@iconify/icons-ion/ellipsis-vertical-sharp';

3
src/components/MapToolbar_backup/MapToolbar_backup.js

@ -21,12 +21,9 @@ import SearchFeatures from '../../components/SearchFeatures';
import AddFeature from '../../components/AddFeature';
import MapLegend from '../../components/MapLegend';
import MeasureContainer from '../../components/MeasureContainer';
// import PopupContainer from '../../components/PopupContainer';
import { appConfig, wfsDispatcherUrl } from '../../const/MapConst.js';
// import { API_LAYER_SEARCH_LABEL } from '../../const/ApiConst.js';
import './MapToolbar.css';
import { Icon, InlineIcon } from '@iconify/react';
// import layersIcon from '@iconify/icons-simple-line-icons/layers';
import layersIcon from '@iconify/icons-ion/layers';
import mapIcon from '@iconify/icons-ion/map';
import ellipsisVerticalSharp from '@iconify/icons-ion/ellipsis-vertical-sharp';

2
src/components/QueryBuilder/QueryBuilder.js

@ -8,7 +8,6 @@ import { QUERY_BUILDER_FIELD_SALES,QUERY_BUILDER_FIELD_OFFICE,QUERY_BUILDER_FIEL
const InitialConfig = AntdConfig;
// You need to provide your own config. See below 'Config format'
const config = {
...InitialConfig,
fields: {
@ -21,7 +20,6 @@ const config = {
}
};
// You can load query value from your backend storage (for saving see `Query.onChange()`)
const queryValue = {
"id": "a8aa88a9-0123-4456-b89a-b17a1e7592fc",
"type": "group",

1
src/components/SearchFeatures/SearchFeatures.js

@ -3,7 +3,6 @@ import './SearchFeatures.css'
import '../../assets/css/customscroll.css'
import { Input, ListGroup, ListGroupItem, Row, Col, Badge } from 'reactstrap'
// For Select feature then go to map
import { Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon } from 'ol/geom';
import { Circle as CircleStyle, Fill, Stroke, Style, Text } from 'ol/style';
import { Select } from 'ol/interaction';

5
src/containers/DefaultLayout/DefaultHeader.js

@ -5,15 +5,10 @@ import PropTypes from 'prop-types';
import { Menu, Dropdown, Row, Col } from 'antd'
import { AppAsideToggler, AppNavbarBrand, AppSidebarToggler } from '@coreui/react';
import { ALERTUSER_SEARCH, ALERT_SEARCH, ALERTUSER_STATUSVIEW, ALERT_STATUSVIEW, APP_MODE } from '../../const/ApiConst';
// import logo from '../../assets/img/brand/logo.svg'
// import logo from '../../assets/img/brand/logo_siopas.png'
// import logo_bmd_denpasar from '../../assets/img/brand/logo_bmd_denpasar.png'
// import logo_kominfo from '../../assets/img/brand/logo_kominfo.jpeg'
import user_logo from '../../assets/img/avatars/user.png'
import logo_header_adw from '../../assets/img/logo_adyawinsa.jpg'
import logo_header_kit from '../../assets/img/logo_kit.png'
import logo_header_nawakara from '../../assets/img/logo_nawakara.png'
// import sygnet from '../../assets/img/brand/sygnet.svg'
import axios from 'axios';
import './Default.css'
const token = window.localStorage.getItem('token');

3
src/containers/DefaultLayout/DefaultLayout.js

@ -18,10 +18,7 @@ import {
AppBreadcrumb2 as AppBreadcrumb,
AppSidebarNav2 as AppSidebarNav,
} from '@coreui/react';
// sidebar nav config
import navigation from '../../_nav';
// import navigation_kominfo from '../../_nav_kominfo';
// routes config
import routes from '../../routes';
import { emptyConstants } from '../../const/MapConst.js';
const countErr = localStorage.getItem('countErr');

4
src/index.js

@ -1,6 +1,5 @@
import 'react-app-polyfill/ie9'; // For IE 9-11 support
import 'react-app-polyfill/stable';
// import 'react-app-polyfill/ie11'; // For IE 11 support
import './polyfill'
import React from 'react';
import ReactDOM from 'react-dom';
@ -11,7 +10,4 @@ import "antd/dist/antd.css";
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();

19
src/polyfill.js

@ -5,30 +5,11 @@ import "core-js";
import 'core-js/features/set/map';
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
// import 'core-js/es6/symbol'
// import 'core-js/es6/object'
// import 'core-js/es6/function'
// import 'core-js/es6/parse-int'
// import 'core-js/es6/parse-float'
// import 'core-js/es6/number'
// import 'core-js/es6/math'
// import 'core-js/es6/string'
// import 'core-js/es6/date'
// import 'core-js/es6/array'
// import 'core-js/es6/regexp'
// import 'core-js/es6/map'
// import 'core-js/es6/weak-map'
// import 'core-js/es6/set'
// import 'core-js/es7/object'
/** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect'
/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
// import 'core-js/es7/reflect'
// CustomEvent() constructor functionality in IE9, IE10, IE11
(function () {
if ( typeof window.CustomEvent === "function" ) return false

13
src/routes.js

@ -4,18 +4,9 @@ const BaseLayers = React.lazy(() => import('./views/BaseLayers'));
const Layers = React.lazy(() => import('./views/Layers/Layers'));
const Layer = React.lazy(() => import('./views/Layers/Layer'));
const MapConfig = React.lazy(() => import('./views/MapConfig'));
// const DashboardKominfo = React.lazy(() => import('./views/DashboardKominfo'));
// const Sales = React.lazy(() => import('./views/Master/MasterSales'));
// const GroupSales = React.lazy(() => import('./views/Master/MasterGroupSales'));
const OfficeHours = React.lazy(() => import('./views/Master/MasterOfficeHours'));
// const Customer = React.lazy(() => import('./views/Master/MasterCustomer'));
// const SettingSales = React.lazy(() => import('./views/Master/MasterSales/SettingSales'));
// const SettingOffice = React.lazy(() => import('./views/Master/MasterOffice/SettingOffice'));
// const SettingCustomer = React.lazy(() => import('./views/Master/MasterCustomer/SettingCustomer'));
// new
const DivisiKaryawan = React.lazy(() => import('./views/Master/MasterTipeKaryawan'));
const UserAdmin = React.lazy(() => import('./views/Master/UserAdmin'));
// const UserWaspang = React.lazy(() => import('./views/Master/UserWaspang'));
const Presensi = React.lazy(() => import('./views/SimproV2/Presence'));
const LaporanTugas = React.lazy(() => import('./views/Master/MasterTask'));
const Izin = React.lazy(() => import('./views/Master/MasterCuti'));
@ -28,13 +19,11 @@ const Absensi = React.lazy(() => import('./views/Master/MasterAbsensi'));
const Lembur = React.lazy(() => import('./views/Master/MasterLembur'));
const Organization = React.lazy(() => import('./views/Master/MasterOrganization'));
const Proyek = React.lazy(() => import('./views/Master/Proyek'));
// const SubProyek = React.lazy(() => import('./views/Master/SubProyek'));
const DashboardSimpro = React.lazy(() => import('./views/DashboardSimpro'));
const controlMonitoring = React.lazy(() => import('./views/Report/ControlMonitoring'));
const K3 = React.lazy(() => import('./views/Report/k3'));
const TestGantt = React.lazy(() => import('./views/testgantt'));
const ConfigAlert = React.lazy(() => import('./views/Master/ConfigAlert'));
// const NetworkDiagram = React.lazy(() => import('./views/Master/NetworkDiagram'));
const LaporanAlert = React.lazy(() => import('./views/Report/alert'));
const ControlMonitoringGantt = React.lazy(() => import('./views/ControlMonitoringGantt'));
const CreatedProyek = React.lazy(() => import('./views/SimproV2/CreatedProyek'));
@ -55,9 +44,7 @@ const ChecklistK3 = React.lazy(() => import('./views/SimproV2/ChecklistK3'));
const DashboardPMO = React.lazy(() => import('./views/DashboardPMO'));
const DashboardProject = React.lazy(() => import('./views/DashboardProject'));
const DashboardSecurity = React.lazy(() => import('./views/DashboardSecurity'));
// const PlanningVsRealisasi = React.lazy(() => import('./views/Master/PlanningVsRealisasi'));
// https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config
const routes = [
{ path: '/', exact: true, name: 'Home' },
{ path: '/dashboard', name: 'Dashboard', component: DashboardSimpro },

2
src/scss/_custom.scss

@ -1,5 +1,3 @@
// Here you can add other styles
// @media (min-width: 992px)
.sidebar-minimized .sidebar .nav-link {
min-width: 300px !important;
}

1
src/scss/_ie-fix.scss

@ -2,7 +2,6 @@ html body .app.flex-row.align-items-center {
height: 100vh;
}
// ie11 floating footer temp fix, react only
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#root {
display: flex;

1
src/scss/_variables.scss

@ -1 +0,0 @@
// Variable overrides

5
src/scss/style.scss

@ -1,14 +1,9 @@
// If you want to override variables do it here
@import "variables";
// Import styles
@import "~@coreui/coreui/scss/coreui.scss";
// Temp fix for reactstrap
@import '~@coreui/coreui/scss/_dropdown-menu-right.scss';
// If you want to add something do it here
@import "custom";
// ie fixes
@import "ie-fix";

1
src/scss/vendors/_variables.scss vendored

@ -1,4 +1,3 @@
// Override Boostrap variables
@import "../variables";
@import "~bootstrap/scss/mixins";
@import "~@coreui/coreui/scss/variables";

7
src/serviceWorker.js

@ -1,12 +1,5 @@
// In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on the "N+1" visit to a page, since previously
// cached resources are updated in the background.
// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.
// This link also includes instructions on opting out of this behavior.
const isLocalhost = Boolean(
window.location.hostname === 'localhost' ||

1
src/views/BaseLayers/BaseLayers.js

@ -1,5 +1,4 @@
import React, { Component } from 'react'
// import './BaseLayers.css'
import DataTable from '../../components/DataTable'
const data = [

2
src/views/ControlMonitoringGantt/index.js

@ -1,6 +1,5 @@
import React, { useEffect, useMemo, useState } from 'react';
import Timeline from 'react-calendar-timeline'
// make sure you include the timeline stylesheet or the timeline will not be styled
import 'react-calendar-timeline/lib/Timeline.css'
import moment from 'moment';
import { BASE_SIMPRO, PROYEK_ADD, PROYEK_SEARCH_DETAIL, GANTT_CONTROL_MONITORING_SEARCH, PROYEK_EDIT, PROYEK_DELETE } from '../../const/ApiConst';
@ -15,7 +14,6 @@ import {
Table,
Modal, ModalHeader, ModalBody, ModalFooter
} from 'reactstrap';
// import GanttFull from './GanttDhtmlx';
import GanttFull from './GanttDhtmlx2';
import DialogForm from '../Master/Proyek/DialogForm';
import DialogFormSub from '../Master/Proyek/DialogFormSub';

4
src/views/DashboardProject/ganttDashboard.js

@ -1,10 +1,6 @@
import React, { useEffect, useMemo, useState } from 'react';
import Timeline from 'react-calendar-timeline'
// make sure you include the timeline stylesheet or the timeline will not be styled
import 'react-calendar-timeline/lib/Timeline.css'
// import moment from 'moment';
// import { USER_VERSION_GANTT_SEARCH, BASE_SIMPRO_LUMEN } from '../../../const/ApiConst';
// import axios from "../../../const/interceptorApi"
const token = localStorage.getItem("token")
const url = `https://ospro-gantt.ospro.id/src/index.html?base_url=https://ospro-api.ospro.id/api&gantt_id=12&proyek_id=11&token=${token}&ro=0`

20
src/views/Map/Map.js

@ -20,7 +20,6 @@ import OlSourceTileJson from 'ol/source/TileJSON';
import OlLayerGroup from 'ol/layer/Group';
import OlSourceTileWMS from 'ol/source/TileWMS';
import OlSourceImageWMS from 'ol/source/ImageWMS';
// import OlLayerSwitcher from 'ol/control/LayerSwitcher';
import {fromLonLat, transformExtent, transform} from 'ol/proj';
import {Vector as VectorSource, XYZ as XYZSource, Cluster} from 'ol/source';
import Overlay from 'ol/Overlay';
@ -60,7 +59,6 @@ import DrawingTool from '../../components/DrawingTool';
import ImagePopup from '../../components/ImagePopup';
import ImageSlider from '../../components/ImageSlider';
import RoutingBar from '../../components/RoutingBar';
// import MapLayerSwitcher from '../../components/MapLayerSwitcher';
import { appConfig, setRequestMapHeader, layerStyleUrl, BMD_DENPASAR_MAPSERVICE_URL, IU_MAPSERVICE_URL, MAP_ID, emptyConstants,
WMS_CAPABILITIES_URL_2 } from '../../const/MapConst.js';
import { Icon } from '@iconify/react';
@ -91,24 +89,15 @@ import Loader from 'react-loader-spinner'
import "react-loader-spinner/dist/loader/css/react-spinner-loader.css"
import * as alasql from 'alasql';
import * as lodash from 'lodash';
// import LineChart from './LineChart'
// import PieChart from './PieChart'
import { Pie, Line } from 'react-chartjs-2';
import numeral from 'numeral';
const MappifiedNominatimSearch = mappify(NominatimSearch);
const MappifiedMeasureButton = mappify(MeasureButton);
// const MappifiedLayerTree = mappify(LayerTree);
const Map = mappify(onDropAware(MapComponent));
// const center = [ 788453.4890155146, 6573085.729161344 ];
const projection = 'EPSG:3857'; //default
const projection4326 = 'EPSG:4326';
// const projection = 'EPSG:4326'; // lat long
// Indonesia
// const lat = -2.6000285;
// const lon = 118.015776;
// const zoom = 5;
const lat = -0.1240;
const lon = 103.5173;
const zoom = 4;
@ -156,15 +145,6 @@ const googleStreetLayer = new OlLayerTile({
})
// let baseLayers = [
// osmLayer,
// esriLayer,
// // googleLayer,
// // googleStreetLayer,
// denpasarLayer,
// citraDenpasarLayer,
// iuLayerGroup
// ];
let baseLayers = [];

29
src/views/Map/Map_16.js

@ -33,7 +33,6 @@ import OlSourceTileJson from 'ol/source/TileJSON';
import OlLayerGroup from 'ol/layer/Group';
import OlSourceTileWMS from 'ol/source/TileWMS';
import OlSourceImageWMS from 'ol/source/ImageWMS';
// import OlLayerSwitcher from 'ol/control/LayerSwitcher';
import { fromLonLat, transformExtent, transform } from 'ol/proj';
import { Vector as VectorSource, XYZ as XYZSource, Cluster } from 'ol/source';
import Overlay from 'ol/Overlay';
@ -68,13 +67,11 @@ import PopupContainer from '../../components/PopupContainer/PopupContainer';
import {
AppHeader
} from '@coreui/react';
// import MapHeader from '../../components/MapHeader/MapHeader';
import MapToolbar from '../../components/MapToolbar/MapToolbar';
import DrawingTool from '../../components/DrawingTool/DrawingTool';
import ImagePopup from '../../components/ImagePopup/ImagePopup';
import ImageSlider from '../../components/ImageSlider/ImageSlider';
import RoutingBar from '../../components/RoutingBar/RoutingBar';
// import MapLayerSwitcher from '../../components/MapLayerSwitcher';
import {
appConfig, setRequestMapHeader, layerStyleUrl, BMD_DENPASAR_MAPSERVICE_URL, IU_MAPSERVICE_URL, MAP_ID, emptyConstants,
WMS_CAPABILITIES_URL_2
@ -117,9 +114,6 @@ import Loader from 'react-loader-spinner'
import "react-loader-spinner/dist/loader/css/react-spinner-loader.css"
import * as alasql from 'alasql';
import * as lodash from 'lodash';
// import LineChart from './LineChart'
// import PieChart from './PieChart'
// import Chart from 'chart.js'
import { Pie, Line, Bar } from 'react-chartjs-2';
import numeral from 'numeral';
import { NotificationContainer, NotificationManager } from 'react-notifications';
@ -134,27 +128,15 @@ const HEADER = {
const MappifiedNominatimSearch = mappify(NominatimSearch);
const MappifiedMeasureButton = mappify(MeasureButton);
// const MappifiedLayerTree = mappify(LayerTree);
const Map = mappify(onDropAware(MapComponent));
// const center = [ 788453.4890155146, 6573085.729161344 ];
const projection = 'EPSG:3857'; //default
const projection4326 = 'EPSG:4326';
// const projection = 'EPSG:4326'; // lat long
// Indonesia
// const lat = -2.6000285;
// const lon = 118.015776;
// const zoom = 5;
// const lat = -0.1240;
// const lon = 103.5173;
// const lat = -2.36;
// const lon = 121.96;
const lat = -6.228000;
const lon = 106.559242;
const zoom = 9;
const maxZoom = APP_MODE === 'KIT' ? 9 : 22;
// const maxZoom = 22
const Indonesia = new fromLonLat([lon, lat], projection);
const Bali_bbox = [115.178638994694, -8.71934970794214, 115.269238650799, -8.59763413248024];
@ -200,15 +182,6 @@ const googleStreetLayer = new OlLayerTile({
})
// let baseLayers = [
// osmLayer,
// esriLayer,
// // googleLayer,
// // googleStreetLayer,
// denpasarLayer,
// citraDenpasarLayer,
// iuLayerGroup
// ];
let baseLayers = [];

26
src/views/Map/Map_backup.js

@ -59,7 +59,6 @@ baselayer
import React, { Component, Suspense, Fragment } from 'react';
import ReactDOM from 'react-dom';
// import { Card, CardBody, CardHeader, Col, Row } from 'reactstrap';
import { Button, UncontrolledTooltip } from 'reactstrap';
import './Map.css';
@ -76,7 +75,6 @@ import OlSourceOsm from 'ol/source/OSM';
import OlSourceTileJson from 'ol/source/TileJSON';
import OlLayerGroup from 'ol/layer/Group';
import OlSourceTileWMS from 'ol/source/TileWMS';
// import OlLayerSwitcher from 'ol/control/LayerSwitcher';
import {fromLonLat, transformExtent} from 'ol/proj';
import {Vector as VectorSource, XYZ as XYZSource, Cluster} from 'ol/source';
import Overlay from 'ol/Overlay';
@ -98,20 +96,13 @@ import {
import CapabilitiesUtil from '@terrestris/ol-util/dist/CapabilitiesUtil/CapabilitiesUtil';
import LayerSwitcher from '@terrestris/react-geo/dist/LayerSwitcher/LayerSwitcher';
import axios from 'axios';
// import { PopupContainer } from '../../components/PopupContainer';
import PopupContainer from '../../components/PopupContainer';
import {
AppHeader
} from '@coreui/react';
// import { Badge, UncontrolledDropdown, DropdownItem, DropdownMenu, DropdownToggle, Nav, NavItem,
// InputGroup, Input, InputGroupAddon, InputGroupText, Button
// } from 'reactstrap';
// const DefaultHeader = React.lazy(() => import('../../containers/DefaultLayout/DefaultHeader'));
// import MapHeader from './MapHeader';
import MapHeader from '../../components/MapHeader';
import MapToolbar from '../../components/MapToolbar';
// import MapLayerSwitcher from '../../components/MapLayerSwitcher';
import { appConfig, setRequestMapHeader, layerStyleUrl } from '../../const/MapConst.js';
import { Icon } from '@iconify/react';
import imageOutline from '@iconify/icons-ion/image-outline';
@ -123,23 +114,14 @@ import createOutline from '@iconify/icons-ion/create-outline';
import contractIcon from '@iconify/icons-ion/contract';
import {Col, Row} from 'reactstrap';
// import {
// custom, //name spaces
// //group
// //objects
// } from "react-openlayers";
const MappifiedNominatimSearch = mappify(NominatimSearch);
const MappifiedMeasureButton = mappify(MeasureButton);
// const MappifiedLayerTree = mappify(LayerTree);
const Map = mappify(onDropAware(MapComponent));
// const center = [ 788453.4890155146, 6573085.729161344 ];
const projection = 'EPSG:3857'; //default
const projection4326 = 'EPSG:4326';
// const projection = 'EPSG:4326'; // lat long
// Indonesia
const lat = -2.6000285;
const lon = 118.015776;
const zoom = 5;
@ -464,7 +446,6 @@ const tanah_kantor_instansi_pemerintah = new OlLayerTile({
});
}*/
// map.on('postcompose', map.updateSize);
/*const overlay = new Overlay({
element: document.getElementById('popup'),
@ -474,14 +455,7 @@ const tanah_kantor_instansi_pemerintah = new OlLayerTile({
}
});*/
// const popupClick = () => {
// alert('hellawwww');
// console.log('hellaawww');
// }
// const popupC = (
// <button onClick={popupClick}>Helloww</button>
// )
/*class PopupC extends Component {
constructor(props) {

1
src/views/MapConfig/MapConfig.js

@ -1,5 +1,4 @@
import React, { Component } from 'react'
// import './MapConfig.css'
import DataTable from '../../components/DataTable'

16
src/views/Map_backup/Map.js

@ -18,7 +18,6 @@ import OlSourceTileJson from 'ol/source/TileJSON';
import OlLayerGroup from 'ol/layer/Group';
import OlSourceTileWMS from 'ol/source/TileWMS';
import OlSourceImageWMS from 'ol/source/ImageWMS';
// import OlLayerSwitcher from 'ol/control/LayerSwitcher';
import {fromLonLat, transformExtent, transform} from 'ol/proj';
import {Vector as VectorSource, XYZ as XYZSource, Cluster} from 'ol/source';
import Overlay from 'ol/Overlay';
@ -58,7 +57,6 @@ import DrawingTool from '../../components/DrawingTool';
import ImagePopup from '../../components/ImagePopup';
import ImageSlider from '../../components/ImageSlider';
import RoutingBar from '../../components/RoutingBar';
// import MapLayerSwitcher from '../../components/MapLayerSwitcher';
import { appConfig, setRequestMapHeader, layerStyleUrl, BMD_DENPASAR_MAPSERVICE_URL, IU_MAPSERVICE_URL, MAP_ID, emptyConstants,
WMS_CAPABILITIES_URL_2 } from '../../const/MapConst.js';
import { Icon } from '@iconify/react';
@ -92,14 +90,10 @@ import * as lodash from 'lodash';
const MappifiedNominatimSearch = mappify(NominatimSearch);
const MappifiedMeasureButton = mappify(MeasureButton);
// const MappifiedLayerTree = mappify(LayerTree);
const Map = mappify(onDropAware(MapComponent));
// const center = [ 788453.4890155146, 6573085.729161344 ];
const projection = 'EPSG:3857'; //default
const projection4326 = 'EPSG:4326';
// const projection = 'EPSG:4326'; // lat long
// Indonesia
const lat = -2.6000285;
const lon = 118.015776;
const zoom = 5;
@ -206,15 +200,6 @@ const iuLayerGroup = new OlLayerGroup({
imageName: 'iu_map.PNG'
});
// let baseLayers = [
// osmLayer,
// esriLayer,
// // googleLayer,
// // googleStreetLayer,
// denpasarLayer,
// citraDenpasarLayer,
// iuLayerGroup
// ];
let baseLayers = [];
@ -543,7 +528,6 @@ const testLayer = new OlLayerTile({
geom_type: 'Polygon'
});
// let projectFeatures = [];
class SiopasMap extends Component {
constructor(props) {

26
src/views/Map_backup/Map_backup.js

@ -59,7 +59,6 @@ baselayer
import React, { Component, Suspense, Fragment } from 'react';
import ReactDOM from 'react-dom';
// import { Card, CardBody, CardHeader, Col, Row } from 'reactstrap';
import { Button, UncontrolledTooltip } from 'reactstrap';
import './Map.css';
@ -76,7 +75,6 @@ import OlSourceOsm from 'ol/source/OSM';
import OlSourceTileJson from 'ol/source/TileJSON';
import OlLayerGroup from 'ol/layer/Group';
import OlSourceTileWMS from 'ol/source/TileWMS';
// import OlLayerSwitcher from 'ol/control/LayerSwitcher';
import {fromLonLat, transformExtent} from 'ol/proj';
import {Vector as VectorSource, XYZ as XYZSource, Cluster} from 'ol/source';
import Overlay from 'ol/Overlay';
@ -98,20 +96,13 @@ import {
import CapabilitiesUtil from '@terrestris/ol-util/dist/CapabilitiesUtil/CapabilitiesUtil';
import LayerSwitcher from '@terrestris/react-geo/dist/LayerSwitcher/LayerSwitcher';
import axios from 'axios';
// import { PopupContainer } from '../../components/PopupContainer';
import PopupContainer from '../../components/PopupContainer';
import {
AppHeader
} from '@coreui/react';
// import { Badge, UncontrolledDropdown, DropdownItem, DropdownMenu, DropdownToggle, Nav, NavItem,
// InputGroup, Input, InputGroupAddon, InputGroupText, Button
// } from 'reactstrap';
// const DefaultHeader = React.lazy(() => import('../../containers/DefaultLayout/DefaultHeader'));
// import MapHeader from './MapHeader';
import MapHeader from '../../components/MapHeader';
import MapToolbar from '../../components/MapToolbar';
// import MapLayerSwitcher from '../../components/MapLayerSwitcher';
import { appConfig, setRequestMapHeader, layerStyleUrl } from '../../const/MapConst.js';
import { Icon } from '@iconify/react';
import imageOutline from '@iconify/icons-ion/image-outline';
@ -123,23 +114,14 @@ import createOutline from '@iconify/icons-ion/create-outline';
import contractIcon from '@iconify/icons-ion/contract';
import {Col, Row} from 'reactstrap';
// import {
// custom, //name spaces
// //group
// //objects
// } from "react-openlayers";
const MappifiedNominatimSearch = mappify(NominatimSearch);
const MappifiedMeasureButton = mappify(MeasureButton);
// const MappifiedLayerTree = mappify(LayerTree);
const Map = mappify(onDropAware(MapComponent));
// const center = [ 788453.4890155146, 6573085.729161344 ];
const projection = 'EPSG:3857'; //default
const projection4326 = 'EPSG:4326';
// const projection = 'EPSG:4326'; // lat long
// Indonesia
const lat = -2.6000285;
const lon = 118.015776;
const zoom = 5;
@ -464,7 +446,6 @@ const tanah_kantor_instansi_pemerintah = new OlLayerTile({
});
}*/
// map.on('postcompose', map.updateSize);
/*const overlay = new Overlay({
element: document.getElementById('popup'),
@ -474,14 +455,7 @@ const tanah_kantor_instansi_pemerintah = new OlLayerTile({
}
});*/
// const popupClick = () => {
// alert('hellawwww');
// console.log('hellaawww');
// }
// const popupC = (
// <button onClick={popupClick}>Helloww</button>
// )
/*class PopupC extends Component {
constructor(props) {

1
src/views/Master/ConfigAlert/index.js

@ -3,7 +3,6 @@ import { Card, CardBody, CardHeader, Input } from 'reactstrap';
import axios from 'axios';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Card as ACard,Row, Col, Switch } from 'antd';
// import moment from 'moment';
import { CALERTUSER_SEARCH,CONFIGALERT_SEARCH,CALERTUSER_DELETE, CALERTUSER_ADD } from '../../../const/ApiConst.js';
import { Icon } from '@iconify/react';
import Bell from '@iconify/icons-ion/notifications-outline';

2
src/views/Master/MasterCountry/MasterCountry.js

@ -1,10 +1,8 @@
import React, { Component } from 'react'
// import './MasterCountry.css'
import DataTable from '../../../components/DataTable'
import {API_LIST_DATA_COUNTRY, API_INSERT_DATA_COUNTRY, API_UPDATE_DATA_COUNTRY, API_DELETE_DATA_COUNTRY } from '../../../const/ApiConst.js'
// important!
const columns = [{
dataField: 'id',
alias: "Id",

2
src/views/Master/MasterCustomer/DialogForm.js

@ -2,10 +2,8 @@ import React, { Component } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Col, Row, Button, Form, FormGroup, Label, Input, FormText, CardImg, FormFeedback } from 'reactstrap';
import { ListGroup, ListGroupItem } from 'reactstrap';
// import Map from './Map'
import axios from 'axios'
import { NotificationContainer, NotificationManager } from 'react-notifications';
// import ShowImage from './ShowImage';
const API = `https://oslog.id/geohr-api`

1
src/views/Master/MasterCustomer/SettingCustomer.js

@ -6,7 +6,6 @@ import SweetAlert from 'react-bootstrap-sweetalert';
import DialogForm from './DialogForm';
import { NotificationContainer, NotificationManager} from 'react-notifications';
import { Pagination } from 'antd';
// npm install --save-dev @iconify/react @iconify-icons/ant-design
import { Icon, InlineIcon } from '@iconify/react';
import closeCircleOutline from '@iconify/icons-ion/close-circle-outline';
import settingOutlined from '@iconify/icons-ant-design/setting-outlined';

2
src/views/Master/MasterDistrict/MasterDistrict.js

@ -1,9 +1,7 @@
import React, { Component } from 'react'
// import './MasterDistrict.css'
import DataTable from '../../../components/DataTable'
import { API_LIST_DATA_DISTRICT, API_INSERT_DATA_DISTRICT, API_UPDATE_DATA_DISTRICT, API_DELETE_DATA_DISTRICT } from '../../../const/ApiConst.js'
// important!
const columns = [{
dataField: 'id',
alias: "Id",

1
src/views/Master/MasterGroupSales/index.js

@ -8,7 +8,6 @@ import DialogForm from './DialogForm';
import paginationFactory from 'react-bootstrap-table2-paginator';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import ToolkitProvider, { Search } from 'react-bootstrap-table2-toolkit';
// import { Pagination, PaginationItem, PaginationLink } from 'reactstrap';
import { Pagination } from 'antd';
import { Tooltip } from 'reactstrap';

1
src/views/Master/MasterKaryawan/DialogForm.js

@ -13,7 +13,6 @@ import { NotificationContainer, NotificationManager } from 'react-notifications'
const format = 'YYYY-MM-DD';
// const BASE_URL = "http://siopas.co.id/custom-php/api/geohr/";
let countError = 0;
const listGender = [
{

9
src/views/Master/MasterKaryawan/index.js

@ -19,17 +19,8 @@ const id_org = window.localStorage.getItem('id_org');
const roleName = window.localStorage.getItem('role_name');
// const BASE_URL = "http://siopas.co.id/custom-php/api/geohr/";
// "Authorization": `Bearer ${token}`
// const config = {
// headers: {
// 'Content-Type': 'application/json',
// 'Origin':'http://localhost:3000/',
// 'Accept':'application/json'
// }
// }
const momentFormat = 'HH:mm';

1
src/views/Master/MasterMenu/index.js

@ -7,7 +7,6 @@ import SweetAlert from 'react-bootstrap-sweetalert';
import DialogForm from './DialogForm';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Pagination, Tooltip, Table } from 'antd';
// import moment from 'moment';
import { MENU_ADD,MENU_SEARCH,MENU_EDIT,MENU_DELETE } from '../../../const/ApiConst.js';
const token = window.localStorage.getItem('token');

1
src/views/Master/MasterOffice/DialogForm.js

@ -5,7 +5,6 @@ import { ListGroup, ListGroupItem } from 'reactstrap';
import Map from './Map'
import axios from 'axios'
import { NotificationContainer, NotificationManager } from 'react-notifications';
// import ShowImage from './ShowImage';
const API = `https://oslog.id/geohr-api`

1
src/views/Master/MasterOffice/SettingOffice.js

@ -6,7 +6,6 @@ import SweetAlert from 'react-bootstrap-sweetalert';
import DialogForm from './DialogForm';
import { NotificationContainer, NotificationManager} from 'react-notifications';
import { Pagination } from 'antd';
// npm install --save-dev @iconify/react @iconify-icons/ant-design
import { Icon, InlineIcon } from '@iconify/react';
import settingOutlined from '@iconify/icons-ant-design/setting-outlined';
import {Link} from 'react-router-dom'

1
src/views/Master/MasterOffice/index.js

@ -4,7 +4,6 @@ import { Button } from 'reactstrap';
import DialogForm from './DialogForm'
import axios from 'axios'
import SweetAlert from 'react-bootstrap-sweetalert';
// import { Pagination, PaginationItem, PaginationLink } from 'reactstrap';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Pagination } from 'antd';
import { Icon, InlineIcon } from '@iconify/react';

1
src/views/Master/MasterOfficeHours/index.js

@ -11,7 +11,6 @@ import { Tooltip } from 'reactstrap';
import { API_GET_DATA_OFFICE_HOURS,BASE_URL_GEOHR_API, API_GEOHR_SETTING_OFFICE_HOURS, API_GEOHR_EDIT_OFFICE_HOURS} from '../../../const/ApiConst'
import * as XLSX from 'xlsx';
// const BASE_URL = "https://oslog.id/geohr-api/";
const id_org = window.localStorage.getItem('id_org');
const roleName = window.localStorage.getItem('role_name');

1
src/views/Master/MasterOrganization/DialogEmployee.js

@ -8,7 +8,6 @@ import { Transfer } from 'antd';
const ERROR_TITLE = "judul is required!"
const ERROR_MESSAGE = "message is required!"
// const BASE_URL = "https://oslog.id/geohr-api/";
const BASE_URL = "http://siopas.co.id/custom-php/api/geohr/";
const roleName = window.localStorage.getItem('role_name');
let countError = 0;

1
src/views/Master/MasterRoles/index.js

@ -8,7 +8,6 @@ import DialogForm from './DialogForm';
import DialogMenuRoles from './DialogMenuRoles';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Pagination, Tooltip, Table } from 'antd';
// import { Tooltip } from 'reactstrap';
import { ROLE_ADD, ROLE_SEARCH, ROLE_EDIT, ROLE_DELETE, ROLEMENU_ADD, ROLEMENU_SEARCH, ROLEMENU_DELETE_ROLE } from '../../../const/ApiConst.js';

1
src/views/Master/MasterSales/SettingSales.js

@ -6,7 +6,6 @@ import SweetAlert from 'react-bootstrap-sweetalert';
import DialogForm from './DialogForm';
import { NotificationContainer, NotificationManager} from 'react-notifications';
import { Pagination } from 'antd';
// npm install --save-dev @iconify/react @iconify-icons/ant-design
import { Icon, InlineIcon } from '@iconify/react';
import settingOutlined from '@iconify/icons-ant-design/setting-outlined';
import {Link} from 'react-router-dom'

1
src/views/Master/MasterSales/index.js

@ -6,7 +6,6 @@ import SweetAlert from 'react-bootstrap-sweetalert';
import DialogForm from './DialogForm';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Pagination } from 'antd';
// npm install --save-dev @iconify/react @iconify-icons/ant-design
import { Icon, InlineIcon } from '@iconify/react';
import settingOutlined from '@iconify/icons-ant-design/setting-outlined';
import { Link } from 'react-router-dom';

2
src/views/Master/MasterSubdistrict/MasterSubdistrict.js

@ -1,9 +1,7 @@
import React, { Component } from 'react'
// import './MasterSubdistrict.css'
import DataTable from '../../../components/DataTable'
import { API_LIST_DATA_SUBDISTRICT, API_INSERT_DATA_SUBDISTRICT, API_UPDATE_DATA_SUBDISTRICT, API_DELETE_DATA_SUBDISTRICT } from '../../../const/ApiConst.js'
// important!
const columns = [{
dataField: 'id',
alias: "Id",

1
src/views/Master/MasterTask/index.js

@ -8,7 +8,6 @@ import SweetAlert from 'react-bootstrap-sweetalert';
import DialogForm from './DialogForm';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Pagination } from 'antd';
// import { Tooltip } from 'reactstrap';
import { DatePicker } from 'antd';
import * as XLSX from 'xlsx';
import eyeFilled from '@iconify/icons-ant-design/eye-filled';

2
src/views/Master/MasterVillage/MasterVillage.js

@ -1,9 +1,7 @@
import React, { Component } from 'react'
// import './MasterVillage.css'
import DataTable from '../../../components/DataTable'
import { API_LIST_DATA_VILLAGE, API_INSERT_DATA_VILLAGE, API_UPDATE_DATA_VILLAGE, API_DELETE_DATA_VILLAGE } from '../../../const/ApiConst.js'
// important!
const columns = [{
dataField: 'id',
alias: "Id",

2
src/views/Master/PlanningVsRealisasi/DialogView.js

@ -4,8 +4,6 @@ import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { Select, Table } from 'antd'
import { BASE_SIMPRO } from '../../../const/ApiConst';
import { NotificationContainer, NotificationManager } from 'react-notifications';
// import { Language } from 'src/const/LanguageConst';
// import moment from 'moment';
import 'antd/dist/antd.css';
import axios from 'axios';
import moment from 'moment';

2
src/views/Master/Proyek/DialogForm.js

@ -2,10 +2,8 @@ import React, { useEffect, useState } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { DatePicker, Tooltip } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import moment from 'moment';
import 'antd/dist/antd.css';
// const { Option } = Select
import DialogMap from './DialogMap';
const DialogForm = ({openDialog, closeDialog, toggleDialog, typeDialog, dataEdit}) => {

2
src/views/Master/Proyek/DialogFormPlanning.js

@ -4,8 +4,6 @@ import { Button, Form, FormGroup, Label, Col, Row } from 'reactstrap';
import { Select, DatePicker, Input } from 'antd'
import { BASE_SIMPRO } from '../../../const/ApiConst';
import { NotificationContainer, NotificationManager } from 'react-notifications';
// import { Language } from 'src/const/LanguageConst';
// import moment from 'moment';
import 'antd/dist/antd.css';
import axios from 'axios';
import moment from 'moment';

2
src/views/Master/Proyek/DialogFormSub.js

@ -4,8 +4,6 @@ import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { Select, DatePicker, Tooltip } from 'antd'
import { BASE_SIMPRO } from '../../../const/ApiConst';
import { NotificationContainer, NotificationManager } from 'react-notifications';
// import { Language } from 'src/const/LanguageConst';
// import moment from 'moment';
import 'antd/dist/antd.css';
import axios from 'axios';
import moment from 'moment';

2
src/views/Master/Proyek/DialogMap.js

@ -8,8 +8,6 @@ import axios from 'axios';
import moment from 'moment';
import 'antd/dist/antd.css';
import L from 'leaflet';
// import '@geoman-io/leaflet-geoman-free';
// import '@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css';
import 'leaflet-draw/dist/leaflet.draw.css'
import { EditControl } from "react-leaflet-draw"

2
src/views/Master/Proyek/DialogPlanning.js

@ -4,8 +4,6 @@ import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { Select, Table } from 'antd'
import { BASE_SIMPRO } from '../../../const/ApiConst';
import { NotificationContainer, NotificationManager } from 'react-notifications';
// import { Language } from 'src/const/LanguageConst';
// import moment from 'moment';
import 'antd/dist/antd.css';
import axios from 'axios';
import moment from 'moment';

3
src/views/Master/Proyek/SubProyekComp.js

@ -1,12 +1,9 @@
import React, { useEffect, useState } from 'react';
import { Button, Table, Tooltip } from 'antd';
// import { Language } from 'src/const/LanguageConst';
// import moment from 'moment';
import 'antd/dist/antd.css';
import axios from 'axios';
import moment from 'moment';
// import { Tooltip } from 'reactstrap';
import SweetAlert from 'react-bootstrap-sweetalert';
import { NotificationManager } from 'react-notifications';
import { BASE_SIMPRO } from '../../../const/ApiConst';

25
src/views/Master/Proyek/index.js

@ -1,7 +1,5 @@
import React, { useState, useEffect, useMemo } from 'react';
import { Card, CardBody, CardHeader, Col, Row, Input } from 'reactstrap';
// import { Button } from 'reactstrap';
// import { Button } from 'antd'
import { DownloadOutlined } from '@ant-design/icons';
import axios from 'axios';
import * as XLSX from 'xlsx';
@ -14,18 +12,7 @@ import { Pagination, Table, Button, Tooltip } from 'antd';
import { BASE_SIMPRO, PROYEK_ADD, PROYEK_SEARCH, PROYEK_EDIT, PROYEK_DELETE } from '../../../const/ApiConst';
import { formatRupiah } from '../../../const/CustomFunc'
import moment from 'moment'
// import moment from 'moment';
// const column = [
// { name: "Nama" },
// { name: "Biaya" },
// { name: "Progress" },
// { name: "SDM" },
// { name: "PIC" },
// { name: "Start" },
// { name: "Finish" },
// { name: "Deskripsi" }
// ]
const format = "DD-MM-YYYY";
const data = [
{
@ -61,16 +48,6 @@ const data = [
const url = "";
const proyek_id = localStorage.getItem('proyek_id');
const role_id = localStorage.getItem('role_id');
// const column = [
// { name: "Nama" },
// { name: "Biaya" },
// { name: "Progress" },
// { name: "SDM" },
// { name: "PIC" },
// { name: "Start" },
// { name: "Finish" },
// { name: "Deskripsi" }
// ]
const IndexRole = ({ params }) => {
const token = localStorage.getItem("token")

2
src/views/Master/RoleProject/index.js

@ -5,10 +5,8 @@ import axios from 'axios';
import * as XLSX from 'xlsx';
import SweetAlert from 'react-bootstrap-sweetalert';
import DialogForm from './DialogForm';
// import DialogMenuRoles from './DialogMenuRoles';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Pagination, Tooltip, Table } from 'antd';
// import { Tooltip } from 'reactstrap';
import { PROJECT_ROLE_ADD, PROJECT_ROLE_SEARCH, PROJECT_ROLE_EDIT, PROJECT_ROLE_DELETE, ROLEMENU_ADD, ROLEMENU_SEARCH, ROLEMENU_DELETE_ROLE } from '../../../const/ApiConst.js';

2
src/views/Master/SubProyek/DialogForm.js

@ -4,8 +4,6 @@ import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { Select } from 'antd'
import { BASE_SIMPRO } from '../../../const/ApiConst';
import { NotificationContainer, NotificationManager } from 'react-notifications';
// import { Language } from 'src/const/LanguageConst';
// import moment from 'moment';
import 'antd/dist/antd.css';
import axios from 'axios';
import moment from 'moment';

1
src/views/Master/SubProyek/index.js

@ -9,7 +9,6 @@ import { NotificationContainer, NotificationManager } from 'react-notifications'
import { Pagination } from 'antd';
import { Tooltip } from 'reactstrap';
import { BASE_SIMPRO } from '../../../const/ApiConst';
// import moment from 'moment';
const url = "";

6
src/views/Report/ControlMonitoring/DialogFoto.js

@ -3,14 +3,8 @@ import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { Select, Image } from 'antd'
import { SIMPRO_BASE_IMAGE } from '../../../const/ApiConst';
// import { NotificationContainer, NotificationManager } from 'react-notifications';
// import { Language } from 'src/const/LanguageConst';
// import moment from 'moment';
import 'antd/dist/antd.css';
// import axios from 'axios';
// import moment from 'moment';
// const { Option } = Select
const DialogFoto = ({ openDialog, closeDialog, toggleDialog, dataReport }) => {
// const token = localStorage.getItem("token")

1
src/views/Report/ControlMonitoring/DialogView.js

@ -4,7 +4,6 @@ import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { Tooltip } from 'antd'
import { SIMPRO_BASE_IMAGE } from '../../../const/ApiConst';
import { NotificationContainer, NotificationManager } from 'react-notifications';
// import { Language } from 'src/const/LanguageConst';
import moment from 'moment';
import 'antd/dist/antd.css';
import axios from 'axios';

3
src/views/Report/alert/DialogForm.js

@ -1,9 +1,6 @@
import React, { Component } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Col, Row, Button, Form, FormGroup, Label, Input } from 'reactstrap';
// import Select from 'react-select'
// import axios from 'axios';
// import moment from 'moment';
import { Image } from 'antd';
import 'antd/dist/antd.css';
import { SIMPRO_BASE_IMAGE } from '../../../const/ApiConst.js';

5
src/views/Report/alert/index.js

@ -4,18 +4,13 @@ import { Button } from 'reactstrap';
import axios from 'axios';
import moment from 'moment';
import SweetAlert from 'react-bootstrap-sweetalert';
// import DialogForm from './DialogForm';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Pagination, Tooltip } from 'antd';
import { DatePicker, Badge } from 'antd';
import * as XLSX from 'xlsx';
import { ALERTUSER_SEARCH, ALERT_SEARCH, ALERTUSER_STATUSVIEW, ALERT_STATUSVIEW } from '../../../const/ApiConst.js';
const { RangePicker } = DatePicker;
// const { Option } = Select
const token = localStorage.getItem('token');
// const configAlertUser = localStorage.getItem('userConfigAlert');
// const proyekId = localStorage.getItem('proyek_id');
// const roleId = localStorage.getItem('role_id');
const config = {
headers:
{

3
src/views/Report/k3/DialogForm.js

@ -1,9 +1,6 @@
import React, { Component } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Col, Row, Button, Form, FormGroup, Label, Input } from 'reactstrap';
// import Select from 'react-select'
// import axios from 'axios';
// import moment from 'moment';
import { Image } from 'antd';
import 'antd/dist/antd.css';
import { BASE_SIMPRO_LUMEN_IMAGE } from '../../../const/ApiConst.js';

2
src/views/Report/k3/index.js

@ -13,8 +13,6 @@ import { PRESENSI_SEARCH, PROYEK_SEARCH, USERPROYEK_SEARCH, K3_SEARCH, SIMPRO_BA
const { RangePicker } = DatePicker;
const { Option } = Select
const token = localStorage.getItem('token');
// const proyekId = localStorage.getItem('proyek_id');
// const roleId = localStorage.getItem('role_id');
const config = {
headers:
{

7
src/views/SimproV2/ChecklistK3/index.js

@ -1,22 +1,15 @@
import React, { useState, useEffect, useMemo } from 'react';
import { Card, CardBody, CardHeader, Col, Row, Input, Table } from 'reactstrap';
// import { DownloadOutlined } from '@ant-design/icons';
import axios from "../../../const/interceptorApi"
import * as XLSX from 'xlsx';
import SweetAlert from 'react-bootstrap-sweetalert';
import DialogForm from './DialogForm';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Pagination, Button, Tooltip } from 'antd';
// import { formatRupiah, formatNumber } from '../../../const/CustomFunc'
import {
CHECKLIST_K3_ADD, CHECKLIST_K3_EDIT, CHECKLIST_K3_DELETE,CHECKLIST_K3_SEARCH
} from '../../../const/ApiConst';
// import moment from 'moment'
// const url = "";
// const proyek_id = localStorage.getItem('proyek_id');
// const role_id = localStorage.getItem('role_id');
// const format = "DD-MM-YYYY";
const token = window.localStorage.getItem('token');
const config = {
headers:

2
src/views/SimproV2/Closing/DialogForm.js

@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { DatePicker, Tooltip, Select } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import axios from "../../../const/interceptorApi"
import moment from 'moment';
import { NotificationContainer, NotificationManager } from 'react-notifications';
@ -11,7 +10,6 @@ import { formatNumber } from '../../../const/CustomFunc';
import { TYPE_PROYEK, USER_LIST, BASE_SIMPRO } from '../../../const/ApiConst';
const { Option } = Select
// import DialogMap from './DialogMap';
const DialogForm = ({ openDialog, closeDialog, toggleDialog, idTask }) => {
const token = localStorage.getItem("token")

3
src/views/SimproV2/Closing/index.js

@ -10,9 +10,6 @@ import { Pagination, Table, Button, Tooltip } from 'antd';
import { BASE_SIMPRO, PROYEK_ADD, PROYEK_SEARCH, PROYEK_EDIT, PROYEK_DELETE } from '../../../const/ApiConst';
import { formatRupiah } from '../../../const/CustomFunc'
import moment from 'moment'
// import DialogFormResource from './DialogFormResource';
// import ViewProject from './ViewProject';
// import SubProyekComp from './SubProyekComp';
const url = "";
const proyek_id = localStorage.getItem('proyek_id');

3
src/views/SimproV2/ControlMonitoring/index.js

@ -4,10 +4,7 @@ import { DownloadOutlined } from '@ant-design/icons';
import axios from "../../../const/interceptorApi";
import * as XLSX from 'xlsx';
import SweetAlert from 'react-bootstrap-sweetalert';
// import DialogForm from './DialogForm';
import { NotificationContainer, NotificationManager } from 'react-notifications';
// import { Pagination, Table, Button, Tooltip} from 'antd';
// import { BASE_SIMPRO, PROYEK_ADD, PROYEK_SEARCH, PROYEK_EDIT, PROYEK_DELETE } from '../../../const/ApiConst';
import moment from 'moment'
const ControlMonitoring = ({params}) => {

2
src/views/SimproV2/CreatedProyek/DialogForm.js

@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { DatePicker, Tooltip, Select } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import axios from "../../../const/interceptorApi"
import moment from 'moment';
import { NotificationContainer, NotificationManager } from 'react-notifications';
@ -11,7 +10,6 @@ import { formatNumber } from '../../../const/CustomFunc';
import { TYPE_PROYEK, USER_LIST, BASE_SIMPRO_LUMEN } from '../../../const/ApiConst';
const { Option } = Select
// import DialogMap from './DialogMap';
const DialogForm = ({ openDialog, closeDialog, toggleDialog, idTask, dataTypeProyek, dataPM }) => {
const token = localStorage.getItem("token")

2
src/views/SimproV2/CreatedProyek/DialogFormProyek.js

@ -2,7 +2,6 @@ import React, { useEffect, useState, useMemo } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { DatePicker, Tooltip, Select } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import axios from "../../../const/interceptorApi"
import moment from 'moment';
import { NotificationContainer, NotificationManager } from 'react-notifications';
@ -11,7 +10,6 @@ import { formatNumber } from '../../../const/CustomFunc';
import { PROYEK_GET_ID, PROJECT_MILESTONE_WHERE_CUSTOM, PROJECT_PARTICIPANT_WHERE_CUSTOM, PROJECT_APPROVAL_WHERE_CUSTOM, CURRENCY_LIST } from '../../../const/ApiConst';
const { Option } = Select
// import DialogMap from './DialogMap';
const DialogFormProyek = ({ openDialog, closeDialog, toggleDialog, idTask, dataTypeProyek, dataPM }) => {
const token = localStorage.getItem("token")

17
src/views/SimproV2/CreatedProyek/DialogFormResource.js

@ -2,7 +2,6 @@ import React, { useEffect, useState, useMemo } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { DatePicker, Table, Tooltip, Select, List, Transfer } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import moment from 'moment';
import 'antd/dist/antd.css';
import { BASE_SIMPRO, TYPE_PROYEK, USER_LIST, USERPROYEK_ADD_DETAIL, USERPROYEK_LIST, USERPROYEK_SEARCH } from '../../../const/ApiConst';
@ -11,7 +10,6 @@ import { NotificationContainer, NotificationManager } from 'react-notifications'
import _, { initial } from 'underscore'
const { Option } = Select
// import DialogMap from './DialogMap';
const mockData = [];
for (let i = 0; i < 20; i++) {
@ -22,7 +20,6 @@ for (let i = 0; i < 20; i++) {
});
}
// const initialTargetKeys = mockData.filter(item => +item.key > 10).map(item => item.key);
const DialogFormResource = ({ openDialog, closeDialog, toggleDialog, idTask, userProyek, userResource }) => {
const token = localStorage.getItem("token")
@ -222,21 +219,7 @@ const DialogFormResource = ({ openDialog, closeDialog, toggleDialog, idTask, use
setUserName(null)
}
// const handleSaveDataResource = async () => {
// const payload = {
// proyek_id: idTask,
// data: dataResource.map(res => ({ user_id: res.user_id }))
// }
// const result = await axios.post(USERPROYEK_ADD_DETAIL, payload, HEADER).then(values => values).catch(err => err.response);
// console.log(result)
// if (result && result.data && result.data.code === 200) {
// closeDialog('cancel', 'none')
// NotificationManager.success(`Add Participant success`, 'Success!!');
// } else {
// NotificationManager.error(`Data proyek gagal di edit`, `Failed!!`);
// }
// }
// const RenderTable = useMemo(() => {
// const group = _.chain(dataResource)

1
src/views/SimproV2/CreatedProyek/DialogTools.js

@ -2,7 +2,6 @@ import React, { useEffect, useState, useMemo } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { DatePicker, Select, AutoComplete } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import moment from 'moment';
import 'antd/dist/antd.css';
import { REQUEST_TOOLS_ADD, BASE_SIMPRO, TYPE_PROYEK, USER_LIST, USERPROYEK_ADD_DETAIL, USERPROYEK_LIST, TOOLS_TO_PROYEK_SEARCH, TOOLS_TO_PROYEK_ADD_DETAIL, REQUEST_TOOLS_EDIT } from '../../../const/ApiConst';

1
src/views/SimproV2/CreatedProyek/FormAsignHr.js

@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { DatePicker, Select } from 'antd';
// import moment from 'moment';
import 'antd/dist/antd.css';
import { formatNumber } from '../../../const/CustomFunc';
const { Option } = Select

1
src/views/SimproV2/CreatedProyek/ViewProject.js

@ -4,7 +4,6 @@ import { Button } from 'reactstrap';
import moment from 'moment';
import 'antd/dist/antd.css';
import _ from 'underscore'
// import { formatNumber, renderFormatRupiah } from '../../../const/CustomFunc';
import './style.css'
import { formatThousand, sortBy } from '../../../const/CustomFunc';

5
src/views/SimproV2/CreatedProyek/index.js

@ -1,6 +1,5 @@
import React, { useState, useEffect, useMemo } from 'react';
import { Card, CardBody, CardHeader, Col, Row, Input } from 'reactstrap';
// import { DownloadOutlined } from '@ant-design/icons';
import axios from "../../../const/interceptorApi"
import * as XLSX from 'xlsx';
import SweetAlert from 'react-bootstrap-sweetalert';
@ -17,19 +16,15 @@ import {
} from '../../../const/ApiConst';
import { formatNumber, formatRupiah, formatThousand, renderFormatRupiah } from '../../../const/CustomFunc'
import moment from 'moment'
// import DialogFormResource from './DialogFormResource';
import DialogFormMaterial from './DataRequestMaterial';
import DialogTableTools from './DialogTableTools';
import DialogDocument from './DialogDocument';
import DialogInitDocument from './DialogInitDocument';
import DialogGantt from './DialogGantt';
// import DialogAsignHr from './AsignHrProject';
import AssignHrProject from './AsignHrProject';
import AssignK3Project from './AssignK3Project';
import ViewProject from './ViewProject';
import { Icon } from '@iconify/react';
// import { Link } from 'react-router-dom';
// import SubProyekComp from './SubProyekComp';
import { Link } from 'react-router-dom';
const url = "";

2
src/views/SimproV2/Divisi/DialogForm.js

@ -4,12 +4,10 @@ import {
Button, Form, FormGroup, Label, Input, Col, Row
} from 'reactstrap';
import { DatePicker, Tooltip, Select } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import { formatRupiah, formatNumber } from '../../../const/CustomFunc'
import moment from 'moment';
import 'antd/dist/antd.css';
const { Option } = Select
// import DialogMap from './DialogMap';
const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdit }) => {
const [id, setId] = useState(0)

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

@ -1,25 +1,8 @@
import React, { useEffect, useMemo, useState } from 'react';
import Timeline from 'react-calendar-timeline'
// make sure you include the timeline stylesheet or the timeline will not be styled
import 'react-calendar-timeline/lib/Timeline.css'
// import moment from 'moment';
import { USER_VERSION_GANTT_SEARCH, BASE_SIMPRO_LUMEN } from '../../../const/ApiConst';
import axios from "../../../const/interceptorApi"
// import { NotificationContainer, NotificationManager } from 'react-notifications';
// import { Button } from 'antd';
// import {
// Container, Col, Row, UncontrolledTooltip,
// Card,
// CardBody,
// CardHeader,
// Table,
// Modal, ModalHeader, ModalBody, ModalFooter
// } from 'reactstrap';
// import GanttFull from './GanttDhtmlx';
// import GanttFull from './GanttDhtmlx2';
// import DialogForm from '../Master/Proyek/DialogForm';
// import DialogFormSub from '../Master/Proyek/DialogFormSub';
// import Iframe from "@nicholasadamou/react-iframe";
const token = localStorage.getItem("token")
const userId = parseInt(localStorage.getItem("user_id"));

3
src/views/SimproV2/PlanningHarian/DialogForm.js

@ -4,13 +4,11 @@ import {
Button, Form, FormGroup, Label, Input, Col, Row
} from 'reactstrap';
import { DatePicker, Tooltip, Select, Input as InputAntd } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import moment from 'moment';
import 'antd/dist/antd.css';
import { formatRupiah, formatNumber } from '../../../const/CustomFunc'
import { ROLE_SEARCH } from '../../../const/ApiConst'
const { Option } = Select
// import DialogMap from './DialogMap';
const token = window.localStorage.getItem('token');
const config = {
@ -22,7 +20,6 @@ const config = {
};
const DialogForm = ({openDialog, closeDialog, toggleDialog, typeDialog, dataEdit, roleList}) => {
// const [id, setId] = useState(0)
const [name, setName] = useState('')
const [description, setDescription] = useState('')
const [biaya, setBiaya] = useState(0)

1
src/views/SimproV2/Presence/index.js

@ -3,7 +3,6 @@ import { Card, CardBody, CardHeader, Col, Row, Input } from 'reactstrap';
import { Button } from 'reactstrap';
import axios from 'axios';
import * as XLSX from 'xlsx';
// import SweetAlert from 'react-bootstrap-sweetalert';
import { NotificationContainer, NotificationManager } from 'react-notifications';
import { Pagination, Tooltip, Table, DatePicker } from 'antd';
import moment from 'moment';

40
src/views/SimproV2/ProjectType/DialogForm.js

@ -4,18 +4,15 @@ import {
Button, Form, FormGroup, Label, Input, Col, Row
} from 'reactstrap';
import { DatePicker, Tooltip, Select } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import { formatRupiah, formatNumber } from '../../../const/CustomFunc'
import moment from 'moment';
import 'antd/dist/antd.css';
const { Option } = Select
// import DialogMap from './DialogMap';
const DialogForm = ({openDialog, closeDialog, toggleDialog, typeDialog, dataEdit}) => {
const [id, setId] = useState(0)
const [projectType, setProjectType] = useState('')
const [uom, setUom] = useState('')
// const [password, setPassword] = useState('')
const [description, setDescription] = useState('')
const [unitPrice, setUnitPrice] = useState()
@ -70,39 +67,10 @@ const DialogForm = ({openDialog, closeDialog, toggleDialog, typeDialog, dataEdit
}
// const handleDatePickerStart = (date, dateString) => {
// setStartDate(date)
// }
// const handleDatePickerEnd = (date, dateString) => {
// setEndDate(date)
// }
// const onChangeColor = (val) => {
// setColor(val)
// }
// const handleCloseDialogMap = (type, data) => {
// if (type === 'save') {
// // set to new state
// setWorkArea(data.workArea)
// setLat(data.lat ? data.lat : '')
// setLon(data.lon ? data.lon : '')
// setRadius(data.radius? data.radius: 0)
// }
// else if (type === 'cancel') {
// // set as default
// setWorkArea(dataEdit && dataEdit.area_kerja ? dataEdit.area_kerja : '')
// setLat(dataEdit && dataEdit.lat ? dataEdit.lat : '')
// setLon(dataEdit && dataEdit.lon ? dataEdit.lon : '')
// setRadius(dataEdit && dataEdit.buffer_radius ? dataEdit.buffer_radius : 0)
// }
// setOpenDialogMap(false)
// }
// const toggleMapDialog = () => {
// setOpenDialogMap(!openDialogMap)
// }
const renderForm = () => {
return(

2
src/views/SimproV2/RateCost/DialogForm.js

@ -5,13 +5,11 @@ import {
} from 'reactstrap';
import { DatePicker, Tooltip, Select } from 'antd';
import axios from 'axios';
// import { Language } from 'src/const/LanguageConst';
import { formatRupiah, formatNumber } from '../../../const/CustomFunc'
import moment from 'moment';
import 'antd/dist/antd.css';
import { PROJECT_ROLE_SEARCH } from '../../../const/ApiConst.js';
const { Option } = Select
// import DialogMap from './DialogMap';
const token = window.localStorage.getItem('token');

32
src/views/SimproV2/ResourceMaterial/DialogForm.js

@ -4,18 +4,15 @@ import {
Button, Form, FormGroup, Label, Input, Col, Row
} from 'reactstrap';
import { DatePicker, Tooltip, Select } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import { formatRupiah, formatNumber } from '../../../const/CustomFunc'
import moment from 'moment';
import 'antd/dist/antd.css';
const { Option } = Select
// import DialogMap from './DialogMap';
const DialogForm = ({openDialog, closeDialog, toggleDialog, typeDialog, dataEdit}) => {
const [id, setId] = useState(0)
const [materialName, setMaterialName] = useState('')
const [uom, setUom] = useState('')
// const [password, setPassword] = useState('')
const [description, setDescription] = useState('')
const [unitPrice, setUnitPrice] = useState('')
const [priceReq, setPriceReq] = useState('')
@ -164,39 +161,10 @@ const DialogForm = ({openDialog, closeDialog, toggleDialog, typeDialog, dataEdit
setDescription('')
}
// const handleDatePickerStart = (date, dateString) => {
// setStartDate(date)
// }
// const handleDatePickerEnd = (date, dateString) => {
// setEndDate(date)
// }
// const onChangeColor = (val) => {
// setColor(val)
// }
// const handleCloseDialogMap = (type, data) => {
// if (type === 'save') {
// // set to new state
// setWorkArea(data.workArea)
// setLat(data.lat ? data.lat : '')
// setLon(data.lon ? data.lon : '')
// setRadius(data.radius? data.radius: 0)
// }
// else if (type === 'cancel') {
// // set as default
// setWorkArea(dataEdit && dataEdit.area_kerja ? dataEdit.area_kerja : '')
// setLat(dataEdit && dataEdit.lat ? dataEdit.lat : '')
// setLon(dataEdit && dataEdit.lon ? dataEdit.lon : '')
// setRadius(dataEdit && dataEdit.buffer_radius ? dataEdit.buffer_radius : 0)
// }
// setOpenDialogMap(false)
// }
// const toggleMapDialog = () => {
// setOpenDialogMap(!openDialogMap)
// }
const renderForm = () => {
if (typeDialog === 'Save' || typeDialog === 'Edit') {

2
src/views/SimproV2/ResourceMaterial/index.js

@ -1,7 +1,6 @@
import React, { useState, useEffect, useMemo } from 'react';
import { Card, CardBody, CardHeader, Col, Row, Input } from 'reactstrap';
import { DownloadOutlined } from '@ant-design/icons';
// import axios from "../../../const/interceptorApi";
import * as XLSX from 'xlsx';
import SweetAlert from 'react-bootstrap-sweetalert';
import DialogForm from './DialogForm';
@ -26,7 +25,6 @@ const proyek_id = localStorage.getItem('proyek_id');
const role_id = localStorage.getItem('role_id');
const format = "DD-MM-YYYY";
// Accepts the array and key
const groupBy = (array, key) => {
// Return the end result
return array.reduce((result, currentValue) => {

3
src/views/SimproV2/ResourceTools/DialogEditReqTools.js

@ -2,7 +2,6 @@ import React, { useEffect, useState, useMemo } from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Button, Form, FormGroup, Label, Input, Col, Row } from 'reactstrap';
import { DatePicker, Table, Tooltip, Select, List, Transfer } from 'antd';
// import { Language } from 'src/const/LanguageConst';
import moment from 'moment';
import 'antd/dist/antd.css';
import { AXIOS, REQUEST_TOOLS_EDIT, BASE_SIMPRO, TYPE_PROYEK, USER_LIST, USERPROYEK_ADD_DETAIL, USERPROYEK_LIST, TOOLS_TO_PROYEK_SEARCH, TOOLS_TO_PROYEK_ADD_DETAIL } from '../../../const/ApiConst';
@ -12,7 +11,6 @@ import _, { initial } from 'underscore'
const { Option } = Select
// import DialogMap from './DialogMap';
const mockData = [];
for (let i = 0; i < 20; i++) {
@ -23,7 +21,6 @@ for (let i = 0; i < 20; i++) {
});
}
// const initialTargetKeys = mockData.filter(item => +item.key > 10).map(item => item.key);
const DialogTools = ({ openDialog, closeDialog, toggleDialog, idTask, handleCloseDialogFormTools, dataEdit }) => {
const token = localStorage.getItem("token")

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save