diff --git a/src/App.js b/src/App.js
index added1d..445e1f1 100644
--- a/src/App.js
+++ b/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 = () =>
Loading...
;
-// 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'));
diff --git a/src/App.scss b/src/App.scss
index 4512b0f..996c9de 100644
--- a/src/App.scss
+++ b/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';
diff --git a/src/components/AdmTree/AdmTree.js b/src/components/AdmTree/AdmTree.js
index 6971c33..7b448cb 100644
--- a/src/components/AdmTree/AdmTree.js
+++ b/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';
diff --git a/src/components/AdmTree/example.js b/src/components/AdmTree/example.js
index e347bef..a15fcc8 100644
--- a/src/components/AdmTree/example.js
+++ b/src/components/AdmTree/example.js
@@ -132,5 +132,4 @@ class SearchTree extends React.Component {
}
}
-// ReactDOM.render(, document.getElementById('container'));
export default SearchTree;
\ No newline at end of file
diff --git a/src/components/BaseMap/BaseMap.js b/src/components/BaseMap/BaseMap.js
index 7c0de7d..84727f9 100644
--- a/src/components/BaseMap/BaseMap.js
+++ b/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 {
diff --git a/src/components/DailyInfo/DailyInfo.js b/src/components/DailyInfo/DailyInfo.js
index 6ad5f4e..ff0ece1 100644
--- a/src/components/DailyInfo/DailyInfo.js
+++ b/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,
diff --git a/src/components/ImagePopup/ImagePopup.js b/src/components/ImagePopup/ImagePopup.js
index ed61e54..c27aa5f 100644
--- a/src/components/ImagePopup/ImagePopup.js
+++ b/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 {
diff --git a/src/components/LayerTreeAdm/LayerTreeAdm.js b/src/components/LayerTreeAdm/LayerTreeAdm.js
index 64133bf..51f43a3 100644
--- a/src/components/LayerTreeAdm/LayerTreeAdm.js
+++ b/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"
diff --git a/src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js b/src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js
index 9f6fe02..569de1f 100644
--- a/src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js
+++ b/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"
diff --git a/src/components/MapHeader/MapHeader.js b/src/components/MapHeader/MapHeader.js
index 4f85bd9..12b622d 100644
--- a/src/components/MapHeader/MapHeader.js
+++ b/src/components/MapHeader/MapHeader.js
@@ -28,7 +28,6 @@ const propTypes = {
const defaultProps = {};
-// const MappifiedNominatimSearch = mappify(NominatimSearch);
class MapHeader extends Component {
// loading = () => Loading...
diff --git a/src/components/MapLegend/MapLegend.js b/src/components/MapLegend/MapLegend.js
index 46ec150..475f759 100644
--- a/src/components/MapLegend/MapLegend.js
+++ b/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 {
diff --git a/src/components/MapTable/MapTable.js b/src/components/MapTable/MapTable.js
index e410826..8b5d6ae 100644
--- a/src/components/MapTable/MapTable.js
+++ b/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 {
diff --git a/src/components/MapTable/MapTable_backup.js b/src/components/MapTable/MapTable_backup.js
index 7a4b005..af551a5 100644
--- a/src/components/MapTable/MapTable_backup.js
+++ b/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 {
diff --git a/src/components/MapTable/MapTable_backup2.js b/src/components/MapTable/MapTable_backup2.js
index 68fdfab..82fd0ca 100644
--- a/src/components/MapTable/MapTable_backup2.js
+++ b/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 {
diff --git a/src/components/MapTable2/MapTable.js b/src/components/MapTable2/MapTable.js
index 1dd1059..f9a3038 100644
--- a/src/components/MapTable2/MapTable.js
+++ b/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';
diff --git a/src/components/MapTable2/MapTable_backup.js b/src/components/MapTable2/MapTable_backup.js
index 7a4b005..af551a5 100644
--- a/src/components/MapTable2/MapTable_backup.js
+++ b/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 {
diff --git a/src/components/MapTable2/MapTable_backup2.js b/src/components/MapTable2/MapTable_backup2.js
index 68fdfab..82fd0ca 100644
--- a/src/components/MapTable2/MapTable_backup2.js
+++ b/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 {
diff --git a/src/components/MapToolbar/MapToolbar.js b/src/components/MapToolbar/MapToolbar.js
index 7d2ead5..c92018d 100644
--- a/src/components/MapToolbar/MapToolbar.js
+++ b/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';
diff --git a/src/components/MapToolbar/MapToolbar_backup.js b/src/components/MapToolbar/MapToolbar_backup.js
index aa37549..e856ce9 100644
--- a/src/components/MapToolbar/MapToolbar_backup.js
+++ b/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';
diff --git a/src/components/MapToolbar_backup/MapToolbar.js b/src/components/MapToolbar_backup/MapToolbar.js
index 3892639..0e8bba4 100644
--- a/src/components/MapToolbar_backup/MapToolbar.js
+++ b/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';
diff --git a/src/components/MapToolbar_backup/MapToolbar_backup.js b/src/components/MapToolbar_backup/MapToolbar_backup.js
index aa37549..e856ce9 100644
--- a/src/components/MapToolbar_backup/MapToolbar_backup.js
+++ b/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';
diff --git a/src/components/QueryBuilder/QueryBuilder.js b/src/components/QueryBuilder/QueryBuilder.js
index 16894a9..606471c 100644
--- a/src/components/QueryBuilder/QueryBuilder.js
+++ b/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",
diff --git a/src/components/SearchFeatures/SearchFeatures.js b/src/components/SearchFeatures/SearchFeatures.js
index e8221a8..2219cc5 100644
--- a/src/components/SearchFeatures/SearchFeatures.js
+++ b/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';
diff --git a/src/containers/DefaultLayout/DefaultHeader.js b/src/containers/DefaultLayout/DefaultHeader.js
index 3d65ab9..2091bba 100644
--- a/src/containers/DefaultLayout/DefaultHeader.js
+++ b/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');
diff --git a/src/containers/DefaultLayout/DefaultLayout.js b/src/containers/DefaultLayout/DefaultLayout.js
index b4d20cd..85da21d 100644
--- a/src/containers/DefaultLayout/DefaultLayout.js
+++ b/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');
diff --git a/src/index.js b/src/index.js
index 9ac5b40..49b404a 100644
--- a/src/index.js
+++ b/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(, 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();
diff --git a/src/polyfill.js b/src/polyfill.js
index 57f887d..7235ccf 100644
--- a/src/polyfill.js
+++ b/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
diff --git a/src/routes.js b/src/routes.js
index 5c8163c..14da23e 100644
--- a/src/routes.js
+++ b/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 },
diff --git a/src/scss/_custom.scss b/src/scss/_custom.scss
index cc6452e..37f390e 100644
--- a/src/scss/_custom.scss
+++ b/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;
}
diff --git a/src/scss/_ie-fix.scss b/src/scss/_ie-fix.scss
index 8cacff8..37980cb 100644
--- a/src/scss/_ie-fix.scss
+++ b/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;
diff --git a/src/scss/_variables.scss b/src/scss/_variables.scss
index a47111f..e69de29 100644
--- a/src/scss/_variables.scss
+++ b/src/scss/_variables.scss
@@ -1 +0,0 @@
-// Variable overrides
diff --git a/src/scss/style.scss b/src/scss/style.scss
index 01a3be4..123d2cf 100644
--- a/src/scss/style.scss
+++ b/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";
diff --git a/src/scss/vendors/_variables.scss b/src/scss/vendors/_variables.scss
index 10e5ddb..6c65ecf 100644
--- a/src/scss/vendors/_variables.scss
+++ b/src/scss/vendors/_variables.scss
@@ -1,4 +1,3 @@
-// Override Boostrap variables
@import "../variables";
@import "~bootstrap/scss/mixins";
@import "~@coreui/coreui/scss/variables";
diff --git a/src/serviceWorker.js b/src/serviceWorker.js
index 2c5d31f..334445b 100644
--- a/src/serviceWorker.js
+++ b/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' ||
diff --git a/src/views/BaseLayers/BaseLayers.js b/src/views/BaseLayers/BaseLayers.js
index 4ded96c..0cb66cd 100644
--- a/src/views/BaseLayers/BaseLayers.js
+++ b/src/views/BaseLayers/BaseLayers.js
@@ -1,5 +1,4 @@
import React, { Component } from 'react'
-// import './BaseLayers.css'
import DataTable from '../../components/DataTable'
const data = [
diff --git a/src/views/ControlMonitoringGantt/index.js b/src/views/ControlMonitoringGantt/index.js
index 0dcfdb7..c968242 100644
--- a/src/views/ControlMonitoringGantt/index.js
+++ b/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';
diff --git a/src/views/DashboardProject/ganttDashboard.js b/src/views/DashboardProject/ganttDashboard.js
index 7e4e8ca..89eabf7 100644
--- a/src/views/DashboardProject/ganttDashboard.js
+++ b/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`
diff --git a/src/views/Map/Map.js b/src/views/Map/Map.js
index 1f08201..5ddf708 100644
--- a/src/views/Map/Map.js
+++ b/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 = [];
diff --git a/src/views/Map/Map_16.js b/src/views/Map/Map_16.js
index 1030c72..a0040aa 100644
--- a/src/views/Map/Map_16.js
+++ b/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 = [];
diff --git a/src/views/Map/Map_backup.js b/src/views/Map/Map_backup.js
index 8b09655..c35985b 100644
--- a/src/views/Map/Map_backup.js
+++ b/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 = (
-//
-// )
/*class PopupC extends Component {
constructor(props) {
diff --git a/src/views/MapConfig/MapConfig.js b/src/views/MapConfig/MapConfig.js
index 88cf0a8..13170f6 100644
--- a/src/views/MapConfig/MapConfig.js
+++ b/src/views/MapConfig/MapConfig.js
@@ -1,5 +1,4 @@
import React, { Component } from 'react'
-// import './MapConfig.css'
import DataTable from '../../components/DataTable'
diff --git a/src/views/Map_backup/Map.js b/src/views/Map_backup/Map.js
index e5005a8..f913aaf 100644
--- a/src/views/Map_backup/Map.js
+++ b/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) {
diff --git a/src/views/Map_backup/Map_backup.js b/src/views/Map_backup/Map_backup.js
index 8b09655..c35985b 100644
--- a/src/views/Map_backup/Map_backup.js
+++ b/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 = (
-//
-// )
/*class PopupC extends Component {
constructor(props) {
diff --git a/src/views/Master/ConfigAlert/index.js b/src/views/Master/ConfigAlert/index.js
index df6337c..93b26b4 100644
--- a/src/views/Master/ConfigAlert/index.js
+++ b/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';
diff --git a/src/views/Master/MasterCountry/MasterCountry.js b/src/views/Master/MasterCountry/MasterCountry.js
index 66351e8..3d4b23f 100644
--- a/src/views/Master/MasterCountry/MasterCountry.js
+++ b/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",
diff --git a/src/views/Master/MasterCustomer/DialogForm.js b/src/views/Master/MasterCustomer/DialogForm.js
index 3f46502..a34abec 100644
--- a/src/views/Master/MasterCustomer/DialogForm.js
+++ b/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`
diff --git a/src/views/Master/MasterCustomer/SettingCustomer.js b/src/views/Master/MasterCustomer/SettingCustomer.js
index 8fe7d0c..3420193 100644
--- a/src/views/Master/MasterCustomer/SettingCustomer.js
+++ b/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';
diff --git a/src/views/Master/MasterDistrict/MasterDistrict.js b/src/views/Master/MasterDistrict/MasterDistrict.js
index 4828d44..73f521b 100644
--- a/src/views/Master/MasterDistrict/MasterDistrict.js
+++ b/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",
diff --git a/src/views/Master/MasterGroupSales/index.js b/src/views/Master/MasterGroupSales/index.js
index fe27258..7a04464 100644
--- a/src/views/Master/MasterGroupSales/index.js
+++ b/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';
diff --git a/src/views/Master/MasterKaryawan/DialogForm.js b/src/views/Master/MasterKaryawan/DialogForm.js
index d461e77..c59a128 100644
--- a/src/views/Master/MasterKaryawan/DialogForm.js
+++ b/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 = [
{
diff --git a/src/views/Master/MasterKaryawan/index.js b/src/views/Master/MasterKaryawan/index.js
index 221ca90..400556d 100644
--- a/src/views/Master/MasterKaryawan/index.js
+++ b/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';
diff --git a/src/views/Master/MasterMenu/index.js b/src/views/Master/MasterMenu/index.js
index 96c96d2..9cf4241 100644
--- a/src/views/Master/MasterMenu/index.js
+++ b/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');
diff --git a/src/views/Master/MasterOffice/DialogForm.js b/src/views/Master/MasterOffice/DialogForm.js
index b10e70f..3a68016 100644
--- a/src/views/Master/MasterOffice/DialogForm.js
+++ b/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`
diff --git a/src/views/Master/MasterOffice/SettingOffice.js b/src/views/Master/MasterOffice/SettingOffice.js
index c15d91b..22df166 100644
--- a/src/views/Master/MasterOffice/SettingOffice.js
+++ b/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'
diff --git a/src/views/Master/MasterOffice/index.js b/src/views/Master/MasterOffice/index.js
index 89b6bbc..aac3535 100644
--- a/src/views/Master/MasterOffice/index.js
+++ b/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';
diff --git a/src/views/Master/MasterOfficeHours/index.js b/src/views/Master/MasterOfficeHours/index.js
index 028ba2f..f969493 100644
--- a/src/views/Master/MasterOfficeHours/index.js
+++ b/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');
diff --git a/src/views/Master/MasterOrganization/DialogEmployee.js b/src/views/Master/MasterOrganization/DialogEmployee.js
index 61b38b3..252f23f 100644
--- a/src/views/Master/MasterOrganization/DialogEmployee.js
+++ b/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;
diff --git a/src/views/Master/MasterRoles/index.js b/src/views/Master/MasterRoles/index.js
index 8c8ccc8..67a3ec3 100644
--- a/src/views/Master/MasterRoles/index.js
+++ b/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';
diff --git a/src/views/Master/MasterSales/SettingSales.js b/src/views/Master/MasterSales/SettingSales.js
index 8f0c49b..7fe7354 100644
--- a/src/views/Master/MasterSales/SettingSales.js
+++ b/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'
diff --git a/src/views/Master/MasterSales/index.js b/src/views/Master/MasterSales/index.js
index 71b4651..479a1c7 100644
--- a/src/views/Master/MasterSales/index.js
+++ b/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';
diff --git a/src/views/Master/MasterSubdistrict/MasterSubdistrict.js b/src/views/Master/MasterSubdistrict/MasterSubdistrict.js
index f3a185c..d4a423a 100644
--- a/src/views/Master/MasterSubdistrict/MasterSubdistrict.js
+++ b/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",
diff --git a/src/views/Master/MasterTask/index.js b/src/views/Master/MasterTask/index.js
index a3167d2..03f54bc 100644
--- a/src/views/Master/MasterTask/index.js
+++ b/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';
diff --git a/src/views/Master/MasterVillage/MasterVillage.js b/src/views/Master/MasterVillage/MasterVillage.js
index 5be3fdf..c9c49e1 100644
--- a/src/views/Master/MasterVillage/MasterVillage.js
+++ b/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",
diff --git a/src/views/Master/PlanningVsRealisasi/DialogView.js b/src/views/Master/PlanningVsRealisasi/DialogView.js
index 9269cc6..194d8e6 100644
--- a/src/views/Master/PlanningVsRealisasi/DialogView.js
+++ b/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';
diff --git a/src/views/Master/Proyek/DialogForm.js b/src/views/Master/Proyek/DialogForm.js
index a0ae78d..3ee69c5 100644
--- a/src/views/Master/Proyek/DialogForm.js
+++ b/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}) => {
diff --git a/src/views/Master/Proyek/DialogFormPlanning.js b/src/views/Master/Proyek/DialogFormPlanning.js
index af2b170..29f5888 100644
--- a/src/views/Master/Proyek/DialogFormPlanning.js
+++ b/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';
diff --git a/src/views/Master/Proyek/DialogFormSub.js b/src/views/Master/Proyek/DialogFormSub.js
index 93f68e9..cde2d09 100644
--- a/src/views/Master/Proyek/DialogFormSub.js
+++ b/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';
diff --git a/src/views/Master/Proyek/DialogMap.js b/src/views/Master/Proyek/DialogMap.js
index 08cc447..07d0237 100644
--- a/src/views/Master/Proyek/DialogMap.js
+++ b/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"
diff --git a/src/views/Master/Proyek/DialogPlanning.js b/src/views/Master/Proyek/DialogPlanning.js
index e6efcca..adc17cc 100644
--- a/src/views/Master/Proyek/DialogPlanning.js
+++ b/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';
diff --git a/src/views/Master/Proyek/SubProyekComp.js b/src/views/Master/Proyek/SubProyekComp.js
index 14f6be0..8fe519b 100644
--- a/src/views/Master/Proyek/SubProyekComp.js
+++ b/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';
diff --git a/src/views/Master/Proyek/index.js b/src/views/Master/Proyek/index.js
index 5cbcc7c..7361344 100644
--- a/src/views/Master/Proyek/index.js
+++ b/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")
diff --git a/src/views/Master/RoleProject/index.js b/src/views/Master/RoleProject/index.js
index 70db0d5..7ec0ac0 100644
--- a/src/views/Master/RoleProject/index.js
+++ b/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';
diff --git a/src/views/Master/SubProyek/DialogForm.js b/src/views/Master/SubProyek/DialogForm.js
index 4016e00..73d184f 100644
--- a/src/views/Master/SubProyek/DialogForm.js
+++ b/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';
diff --git a/src/views/Master/SubProyek/index.js b/src/views/Master/SubProyek/index.js
index 1896a43..902741a 100644
--- a/src/views/Master/SubProyek/index.js
+++ b/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 = "";
diff --git a/src/views/Report/ControlMonitoring/DialogFoto.js b/src/views/Report/ControlMonitoring/DialogFoto.js
index 775269f..d4f5359 100644
--- a/src/views/Report/ControlMonitoring/DialogFoto.js
+++ b/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")
diff --git a/src/views/Report/ControlMonitoring/DialogView.js b/src/views/Report/ControlMonitoring/DialogView.js
index 2108cbb..96b7290 100644
--- a/src/views/Report/ControlMonitoring/DialogView.js
+++ b/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';
diff --git a/src/views/Report/alert/DialogForm.js b/src/views/Report/alert/DialogForm.js
index d287d3e..e5b5dc9 100644
--- a/src/views/Report/alert/DialogForm.js
+++ b/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';
diff --git a/src/views/Report/alert/index.js b/src/views/Report/alert/index.js
index 6dd61af..ea70523 100644
--- a/src/views/Report/alert/index.js
+++ b/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:
{
diff --git a/src/views/Report/k3/DialogForm.js b/src/views/Report/k3/DialogForm.js
index 422cf5b..b6e5d2d 100644
--- a/src/views/Report/k3/DialogForm.js
+++ b/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';
diff --git a/src/views/Report/k3/index.js b/src/views/Report/k3/index.js
index d516ac4..241ba0f 100644
--- a/src/views/Report/k3/index.js
+++ b/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:
{
diff --git a/src/views/SimproV2/ChecklistK3/index.js b/src/views/SimproV2/ChecklistK3/index.js
index ffd3fdd..feac7d7 100644
--- a/src/views/SimproV2/ChecklistK3/index.js
+++ b/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:
diff --git a/src/views/SimproV2/Closing/DialogForm.js b/src/views/SimproV2/Closing/DialogForm.js
index 638efbc..129ed70 100644
--- a/src/views/SimproV2/Closing/DialogForm.js
+++ b/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")
diff --git a/src/views/SimproV2/Closing/index.js b/src/views/SimproV2/Closing/index.js
index 15497d7..df67adc 100644
--- a/src/views/SimproV2/Closing/index.js
+++ b/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');
diff --git a/src/views/SimproV2/ControlMonitoring/index.js b/src/views/SimproV2/ControlMonitoring/index.js
index 5f4aefe..c9d543f 100644
--- a/src/views/SimproV2/ControlMonitoring/index.js
+++ b/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}) => {
diff --git a/src/views/SimproV2/CreatedProyek/DialogForm.js b/src/views/SimproV2/CreatedProyek/DialogForm.js
index ae6b7cb..235467f 100644
--- a/src/views/SimproV2/CreatedProyek/DialogForm.js
+++ b/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")
diff --git a/src/views/SimproV2/CreatedProyek/DialogFormProyek.js b/src/views/SimproV2/CreatedProyek/DialogFormProyek.js
index 2a3a86b..0d6523d 100644
--- a/src/views/SimproV2/CreatedProyek/DialogFormProyek.js
+++ b/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")
diff --git a/src/views/SimproV2/CreatedProyek/DialogFormResource.js b/src/views/SimproV2/CreatedProyek/DialogFormResource.js
index 8821b07..6ceace6 100644
--- a/src/views/SimproV2/CreatedProyek/DialogFormResource.js
+++ b/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)
diff --git a/src/views/SimproV2/CreatedProyek/DialogTools.js b/src/views/SimproV2/CreatedProyek/DialogTools.js
index 5600495..6cd1885 100644
--- a/src/views/SimproV2/CreatedProyek/DialogTools.js
+++ b/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';
diff --git a/src/views/SimproV2/CreatedProyek/FormAsignHr.js b/src/views/SimproV2/CreatedProyek/FormAsignHr.js
index 11cdb42..1bda17f 100644
--- a/src/views/SimproV2/CreatedProyek/FormAsignHr.js
+++ b/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
diff --git a/src/views/SimproV2/CreatedProyek/ViewProject.js b/src/views/SimproV2/CreatedProyek/ViewProject.js
index 263303f..c3fc2b1 100644
--- a/src/views/SimproV2/CreatedProyek/ViewProject.js
+++ b/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';
diff --git a/src/views/SimproV2/CreatedProyek/index.js b/src/views/SimproV2/CreatedProyek/index.js
index 8941bbc..33ad9cb 100644
--- a/src/views/SimproV2/CreatedProyek/index.js
+++ b/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 = "";
diff --git a/src/views/SimproV2/Divisi/DialogForm.js b/src/views/SimproV2/Divisi/DialogForm.js
index 73fe814..10f92ac 100644
--- a/src/views/SimproV2/Divisi/DialogForm.js
+++ b/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)
diff --git a/src/views/SimproV2/Gantt/index.js b/src/views/SimproV2/Gantt/index.js
index 5ad5140..ca51ee8 100644
--- a/src/views/SimproV2/Gantt/index.js
+++ b/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"));
diff --git a/src/views/SimproV2/PlanningHarian/DialogForm.js b/src/views/SimproV2/PlanningHarian/DialogForm.js
index 6bc5069..9a51f46 100644
--- a/src/views/SimproV2/PlanningHarian/DialogForm.js
+++ b/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)
diff --git a/src/views/SimproV2/Presence/index.js b/src/views/SimproV2/Presence/index.js
index d1b2c26..634ec1e 100644
--- a/src/views/SimproV2/Presence/index.js
+++ b/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';
diff --git a/src/views/SimproV2/ProjectType/DialogForm.js b/src/views/SimproV2/ProjectType/DialogForm.js
index c493954..3e6a120 100644
--- a/src/views/SimproV2/ProjectType/DialogForm.js
+++ b/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(
diff --git a/src/views/SimproV2/RateCost/DialogForm.js b/src/views/SimproV2/RateCost/DialogForm.js
index 1599d75..481f068 100644
--- a/src/views/SimproV2/RateCost/DialogForm.js
+++ b/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');
diff --git a/src/views/SimproV2/ResourceMaterial/DialogForm.js b/src/views/SimproV2/ResourceMaterial/DialogForm.js
index a0f4b84..c8ee053 100644
--- a/src/views/SimproV2/ResourceMaterial/DialogForm.js
+++ b/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') {
diff --git a/src/views/SimproV2/ResourceMaterial/index.js b/src/views/SimproV2/ResourceMaterial/index.js
index c7c069b..4ee54f3 100644
--- a/src/views/SimproV2/ResourceMaterial/index.js
+++ b/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) => {
diff --git a/src/views/SimproV2/ResourceTools/DialogEditReqTools.js b/src/views/SimproV2/ResourceTools/DialogEditReqTools.js
index 43e7d39..e77fb14 100644
--- a/src/views/SimproV2/ResourceTools/DialogEditReqTools.js
+++ b/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")
diff --git a/src/views/SimproV2/ResourceTools/DialogForm.js b/src/views/SimproV2/ResourceTools/DialogForm.js
index ac3e535..42e9a32 100644
--- a/src/views/SimproV2/ResourceTools/DialogForm.js
+++ b/src/views/SimproV2/ResourceTools/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 = {
diff --git a/src/views/SimproV2/ResourceTools/index.js b/src/views/SimproV2/ResourceTools/index.js
index 5be6e4c..ee1c2af 100644
--- a/src/views/SimproV2/ResourceTools/index.js
+++ b/src/views/SimproV2/ResourceTools/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';
diff --git a/src/views/SimproV2/ResourceWorker/DialogForm.js b/src/views/SimproV2/ResourceWorker/DialogForm.js
index 35e2bbf..c54bc93 100644
--- a/src/views/SimproV2/ResourceWorker/DialogForm.js
+++ b/src/views/SimproV2/ResourceWorker/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 = {
diff --git a/src/views/SimproV2/ResourceWorker/DialogFormUserShift.js b/src/views/SimproV2/ResourceWorker/DialogFormUserShift.js
index f744a72..a5dfda9 100644
--- a/src/views/SimproV2/ResourceWorker/DialogFormUserShift.js
+++ b/src/views/SimproV2/ResourceWorker/DialogFormUserShift.js
@@ -4,8 +4,6 @@ import {
Button, Form, FormGroup, Label, Col, Row, Input
} from 'reactstrap';
import { DatePicker, TimePicker, Tooltip, Select, Checkbox } from 'antd';
-// import InputAntd from 'antd/Input'
-// import { Language } from 'src/const/LanguageConst';
import { formatRupiah, formatNumber } from '../../../const/CustomFunc'
import { SHIFT_LIST } from '../../../const/ApiConst';
import moment from 'moment';
@@ -21,7 +19,6 @@ const config = {
"Content-type": `application/json`
}
};
-// import DialogMap from './DialogMap';
const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdit }) => {
diff --git a/src/views/SimproV2/Satuan/index.js b/src/views/SimproV2/Satuan/index.js
index 363fad9..63d0cdf 100644
--- a/src/views/SimproV2/Satuan/index.js
+++ b/src/views/SimproV2/Satuan/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 {
SATUAN_ADD, SATUAN_EDIT, SATUAN_DELETE,SATUAN_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:
diff --git a/src/views/SimproV2/Shift/DialogForm.js b/src/views/SimproV2/Shift/DialogForm.js
index 930df13..b18fe89 100644
--- a/src/views/SimproV2/Shift/DialogForm.js
+++ b/src/views/SimproV2/Shift/DialogForm.js
@@ -4,13 +4,10 @@ import {
Button, Form, FormGroup, Label, Col, Row
} from 'reactstrap';
import { DatePicker, TimePicker, Tooltip, Select, Checkbox, Input } from 'antd';
-// import InputAntd from 'antd/Input'
-// 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 }) => {
diff --git a/src/views/SimproV2/UserShift/DialogForm.js b/src/views/SimproV2/UserShift/DialogForm.js
index 73fe814..10f92ac 100644
--- a/src/views/SimproV2/UserShift/DialogForm.js
+++ b/src/views/SimproV2/UserShift/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)
diff --git a/src/views/Widgets/Widgets.js b/src/views/Widgets/Widgets.js
index 51b74ae..daccde0 100644
--- a/src/views/Widgets/Widgets.js
+++ b/src/views/Widgets/Widgets.js
@@ -7,7 +7,6 @@ import Widget04 from './Widget04';
import { Line } from 'react-chartjs-2';
-// Brand Card Chart
const makeSocialBoxData = (dataSetNo) => {
const socialBoxData = [
{ data: [65, 59, 84, 84, 51, 55, 40], label: 'facebook' },
diff --git a/src/views/testgantt/index.js b/src/views/testgantt/index.js
index 2edf9e6..5c34b24 100644
--- a/src/views/testgantt/index.js
+++ b/src/views/testgantt/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, 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';