Skip to content

Commit

Permalink
Remove WafleModal from linter hints
Browse files Browse the repository at this point in the history
  • Loading branch information
cavearr committed Oct 30, 2024
1 parent 47e4263 commit ddc896d
Show file tree
Hide file tree
Showing 26 changed files with 2,574 additions and 2,246 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"g": false,
"V": false,
"IceCollection":false,
"IceHD": false
"IceHD": false,
"WafleModal": false
}
}
8 changes: 8 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@
<!-- https://github.com/jsuites/jsuites -->
<link rel="stylesheet" href="node_modules/jsuites/dist/jsuites.css" />

<!-- sweetAlert -->
<!-- Beautiful popups -->
<link rel="stylesheet" href="node_modules/sweetalert2/dist/sweetalert2.min.css" />

<!-- ************************************************************** -->
<!-- **** ICESTUDIO STYLES (Internal) **** -->
Expand All @@ -144,6 +147,9 @@
<!-- Style for the markdown -->
<link rel="stylesheet" href="resources/viewers/markdown/css/github-markdown.css" />




<!-- FPGA resources style -->
<link rel="stylesheet" href="styles/design.css" />

Expand Down Expand Up @@ -329,6 +335,7 @@
<script src="resources/libs/Icestudio/GUI/Widgets/WafleUIWindow.js"></script>
<script src="resources/libs/Icestudio/GUI/Widgets/WafleUITree.js"></script>
<script src="resources/libs/Icestudio/GUI/WafleGUI.js"></script>
<script src="resources/libs/Icestudio/GUI/WafleModal.js"></script>
<script src="resources/libs/Icestudio/GUI/WafleWindowManager.js"></script>
<script src="resources/libs/Icestudio/Log/IceLogger.js"></script>
<script src="resources/libs/Icestudio/Crypto/UniqueIdGenerator.js"></script>
Expand All @@ -351,6 +358,7 @@
<script src="node_modules/angular-route/angular-route.js"></script>
<script src="node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"></script>
<script src="node_modules/angular-gettext/dist/angular-gettext.min.js"></script>
<script src="node_modules/sweetalert2/dist/sweetalert2.all.min.js"></script>

<!---------------------------------------------->
<!-- Icestudio app ENTRY POINT -->
Expand Down
15 changes: 15 additions & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"engines": {},
"node": ">= 21.1.0",
"dependencies": {

"ace-builds": "~1.4.12",
"adm-zip": "0.4.7",
"alertifyjs": "~1.13.1",
Expand Down Expand Up @@ -87,7 +88,8 @@
"svg-pan-zoom": "~3.4.1",
"svgo": "~0.7.2",
"tmp": "0.0.33",
"proper-lockfile": "^4.1.2"
"proper-lockfile": "^4.1.2",
"sweetalert2": "^11.14.4"
},
"readme": "../README.md",
"keywords": [
Expand Down
40 changes: 40 additions & 0 deletions app/resources/libs/Icestudio/GUI/WafleModal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
class WafleModal{

constructor(){


}

waitingSeconds(seconds,title,msg){
const milis=Math.floor(seconds*1000);
console.log('WAIT==>',seconds,title,msg);
let timerInterval;
Swal.fire({
title: title,
html: msg,
timer: milis,
allowOutsideClick:false,
allowEscapeKey:true,
timerProgressBar: true,
didOpen: () => {
Swal.showLoading();
const timer = Swal.getPopup().querySelector("b");
timerInterval = setInterval(() => {
timer.textContent = `${Swal.getTimerLeft()}`;
}, 100);
},
willClose: () => {
clearInterval(timerInterval);
}
}).then((result) => {
/* Read more about handling dismissals below */
if (result.dismiss === Swal.DismissReason.timer) {
console.log("Timmer end");
}
});

}



}
Loading

0 comments on commit ddc896d

Please sign in to comment.