Skip to content

Commit 8cf75ec

Browse files
Merge pull request #32 from Roky97/Release-2.6.0
Release 2.6.0
2 parents 0e42d38 + c77f70f commit 8cf75ec

File tree

7 files changed

+427
-6573
lines changed

7 files changed

+427
-6573
lines changed

app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var forceSSL = require('express-force-ssl');
66
var webSocket = require('websocket').w3cwebsocket;
77
var fs = require('fs');
88
var pug = require('pug');
9+
const compression = require('compression');
910

1011
// System config loading
1112
var properties = require('./config/app-config.json');
@@ -48,6 +49,7 @@ app.use(helmet.hsts({
4849
maxAge: maxAge
4950
}));
5051

52+
app.use(compression());
5153
app.use(express.static('resources'));
5254
app.set('views', './resources');
5355
app.set('view engine', 'pug');

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "LoIDE",
3-
"version": "2.5.0",
3+
"version": "2.6.0",
44
"description": "Web-based IDE for Logic Programming",
55
"main": "app.js",
66
"scripts": {
@@ -45,6 +45,9 @@
4545
"socket.io": "^2.3.0",
4646
"websocket": "^1.0.30"
4747
},
48+
"devDependencies": {
49+
"compression": "^1.7.3"
50+
},
4851
"analyze": true,
4952
"homepage": "https://github.com/DeMaCS-UNICAL/LoIDE#readme"
5053
}

resources/css/style.css

Lines changed: 83 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
margin-left: 1%;
1414
}
1515

16-
img[alt="logo"] {
17-
width: 55%;
18-
}
19-
2016
.navbar-brand {
2117
width: 40%;
2218
}
@@ -29,9 +25,10 @@
2925
float: left;
3026
transition: 0.5s;
3127
}
28+
3229
.left-panel-show {
3330
width: 100%;
34-
padding: 3%;
31+
padding: 0 3% 3% 3%;
3532
background: rgba(255, 245, 238, 1);
3633
box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.4);
3734
margin-bottom: 0.75rem;
@@ -52,10 +49,6 @@
5249
max-width: 100%;
5350
}
5451

55-
img[alt="logo"] {
56-
width: 35%;
57-
}
58-
5952
.left-panel {
6053
position: relative;
6154
width: 0%;
@@ -75,6 +68,22 @@
7568
}
7669
}
7770

71+
@media (min-width: 576px) and (max-width: 840px) {
72+
.btn-text {
73+
display: none;
74+
}
75+
76+
.nav-buttons>.btn, .nav-buttons>*>.btn {
77+
width: 60px;
78+
}
79+
}
80+
81+
@media (min-width: 577px) and (max-width: 1142px){
82+
.left-panel-show {
83+
min-width: 200px;
84+
}
85+
}
86+
7887
@media (min-width: 1700px) {
7988
.left-panel {
8089
width: 0%;
@@ -99,6 +108,41 @@
99108
vertical-align: top;
100109
}
101110

111+
.splashscreen {
112+
position: fixed;
113+
top:0;
114+
left: 0;
115+
display: flex;
116+
justify-content: center;
117+
align-items: center;
118+
width: 100%;
119+
height: 100vh;
120+
background-color: white;
121+
color: black;
122+
z-index: 1100;
123+
}
124+
125+
.display-none{
126+
opacity: 0;
127+
z-index: -10;
128+
transition: all 0.5s;
129+
}
130+
131+
@keyframes fadeIn{
132+
to{
133+
opacity: 1;
134+
}
135+
}
136+
137+
.fade-in{
138+
opacity: 0;
139+
animation: fadeIn 0.1s ease-in forwards;
140+
}
141+
142+
.splash-logo{
143+
width: 150px;
144+
}
145+
102146
.ace {
103147
top: 0;
104148
right: 0;
@@ -115,6 +159,9 @@
115159
}
116160

117161
#output {
162+
display: flex;
163+
flex-direction: column;
164+
118165
width: 100%;
119166
flex-grow: 1;
120167
overflow: auto;
@@ -126,6 +173,14 @@
126173
white-space: pre-wrap;
127174
}
128175

176+
#output-model{
177+
color: black;
178+
}
179+
180+
#output-error{
181+
color: red;
182+
}
183+
129184
.output-pane {
130185
opacity: 0;
131186
}
@@ -152,8 +207,9 @@ body {
152207
margin-right: 0px;
153208
}
154209

155-
img[alt="logo"] {
210+
.navbar-logo {
156211
cursor: pointer;
212+
width: 84px;
157213
}
158214

159215
.unselectable {
@@ -183,10 +239,6 @@ a[role="button"]:focus {
183239
outline: none;
184240
}
185241

186-
[href="#setting-editor"] {
187-
padding-left: 5px;
188-
}
189-
190242
.btn:focus {
191243
outline: none;
192244
}
@@ -401,6 +453,7 @@ label[for="btn-download"] {
401453

402454
.left-panel-title {
403455
border-bottom: 1px dashed #dddddd;
456+
background-color: rgba(255, 245, 238, 1);
404457
}
405458

406459
.add-tab {
@@ -562,6 +615,8 @@ select.not-alone {
562615

563616
.check-tab-name {
564617
margin-left: 8px;
618+
white-space: nowrap;
619+
overflow: hidden;
565620
}
566621

567622
.check-auto-run-tab {
@@ -637,6 +692,11 @@ select {
637692
cursor: pointer;
638693
}
639694

695+
#run-dot,
696+
label[for="run-dot"] {
697+
cursor: pointer;
698+
}
699+
640700
/*DARK-MODE SECTION*/
641701

642702
body.dark {
@@ -778,14 +838,20 @@ body.dark .context-menu-item {
778838

779839
body.dark .context-menu-list {
780840
background-color: #e8e8e8;
781-
782841
}
783842

784843
body.dark .context-menu-item.context-menu-hover {
785844
background-color: #dbdbdb;
786-
787845
}
788-
body.dark .list-group-item-action:focus, body.dark .list-group-item-action:hover {
846+
body.dark .list-group-item-action:focus,
847+
body.dark .list-group-item-action:hover {
789848
background-color: rgb(233, 233, 233);
849+
}
790850

851+
body.dark .left-panel-title {
852+
background-color: rgb(83, 83, 83);
791853
}
854+
855+
body.dark #output-model{
856+
color: white;
857+
}

0 commit comments

Comments
 (0)