This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as yup from 'yup'; | |
| import { | |
| ConvectorModel, | |
| ReadOnly, | |
| Required, | |
| Validate | |
| } from '@worldsibu/convector-core-model'; | |
| export class Sep extends ConvectorModel<Sep> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.dip.bootcamp.utilities; | |
| import java.io.*; | |
| import java.net.URL; | |
| import java.net.URLDecoder; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.nio.file.StandardCopyOption; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--DATA TABLE :: BASE--> | |
| <script th:src="@{../plugins/bower_components/datatables/datatables.min.js}"></script> | |
| <script th:src="@{../plugins/bower_components/datatables/RowGroup-1.1.2/js/dataTables.rowGroup.min.js}"></script> | |
| <script th:src="@{../plugins/bower_components/datatables/DataTables-1.10.21/js/dataTables.bootstrap.min.js}"></script> | |
| <!--DATA TABLE :: COMPONENT--> | |
| <script th:src="@{../plugins/bower_components/datatables/FixedHeader-3.1.7/js/dataTables.fixedHeader.min.js}"></script> | |
| <script th:src="@{../plugins/bower_components/datatables/FixedColumns-3.3.1/js/dataTables.fixedColumns.min.js}"></script> | |
| <script th:src="@{../plugins/bower_components/datatables/Select-1.3.1/js/dataTables.select.min.js}"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| tbl = initDatatable(); | |
| }); | |
| // Datatable Init | |
| function initDatatable() { | |
| return tblName.DataTable({ | |
| "sAjaxSource": "/api/employee/list", | |
| "sAjaxDataProp": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log("List.js"); | |
| $(document).on("click", "#btn-delete", function(e) { | |
| let id = $(this).data("id_delete"); | |
| console.log("ID DELETE : " + id); | |
| let dataBody = { | |
| id: id | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.dip.bootcamp.api.employee; | |
| import com.dip.bootcamp.models.Employee; | |
| import com.dip.bootcamp.services.EmployeeService; | |
| import com.dip.bootcamp.viewmodels.AjaxResponseBody; | |
| import com.dip.bootcamp.viewmodels.ResponseSave; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.web.bind.annotation.*; | |
| import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.dip.bootcamp.configurations; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; | |
| import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; | |
| @Configuration | |
| public class WebResourceConfiguration implements WebMvcConfigurer { | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en" xmlns:th="http://www.thymeleaf.org"> | |
| <head th:replace="fragments/main-page :: main-header(titlePage=${title})"> | |
| </head> | |
| <body class="fix-header"> | |
| <div id="wrapper"> | |
| <div th:replace="fragments/main-page :: main-navbar(username=${username})"></div> | |
| <div th:replace="fragments/main-page :: main-sidebar"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <link rel="icon" type="image/png" sizes="16x16" href="/plugins/images/favicon.png"> | |
| <!-- Bootstrap Core CSS --> | |
| <link th:href="@{/bootstrap/dist/css/bootstrap.min.css}" rel="stylesheet"> | |
| <!-- Menu CSS --> | |
| <link th:href="@{/plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.css}" rel="stylesheet"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a href="javascript:void(0)" type="button" th:attr="data-id_delete=${employee.getId()}" id="btn-delete" class="btn btn-danger">Delete</a> | |
| console.log("List.js"); | |
| $(document).on("click", "#btn-delete", function(e) { | |
| let id = $(this).data("id_delete"); | |
| console.log("ID DELETE : " + id); |