Skip to content

Commit

Permalink
Improved code editor performance
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianFun123 committed Jan 16, 2022
1 parent a061593 commit 38b2eaf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public List<Notification> getNotifications(Exchange exchange, @Attrib("user") Us
@Get("/readall")
@With("auth")
public ActionResponse readAll(@Attrib("user") User user) {
Repo.get(Notification.class).query().where("userId", user.getId()).update(new HashMap() {{
Repo.get(Notification.class).query().where("userId", user.getId()).where("already_read", false).update(new HashMap() {{
put("received", true);
put("already_read", true);
}});
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default {
},
async send(){
let data = {
content: this.$store.state.currentPaste.content,
content: codeEditor.value,
title: this.$store.state.currentPaste.title
}
Expand Down Expand Up @@ -504,7 +504,7 @@ export default {
display: inline-block;
padding: 5px 10px;
background: var(--tab-color);
border-radius: 7px;
border-radius: 10px;
overflow: hidden;
margin-right: 10px;
height: 37px;
Expand Down Expand Up @@ -560,7 +560,7 @@ export default {
#edit-indicator {
color: var(--text-color);
background: var(--obj-background-color);
border-radius: 7px;
border-radius: 10px;
padding: 10px;
span {
Expand Down Expand Up @@ -611,7 +611,7 @@ export default {
margin-bottom: 31px;
a {
display: inline-block;
border-radius: 7px;
border-radius: 10px;
padding: 10px;
color: var(--text-color);
text-align: center;
Expand Down Expand Up @@ -669,7 +669,7 @@ export default {
#friend-list {
background: var(--obj-background-color);
border-radius: 7px;
border-radius: 10px;
padding: 2px;
max-height: 150px;
overflow: auto;
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ label {
margin-bottom: 15px;
width: 100%;
padding: 10px;
border-radius: 7px;
border-radius: 10px;
&::placeholder {

}
Expand All @@ -99,7 +99,7 @@ label {

.button {
display: inline-block;
border-radius: 7px;
border-radius: 10px;
padding: 10px;
color: #FFF;
text-align: center;
Expand Down Expand Up @@ -148,7 +148,7 @@ label {
color: var(--text-color);
text-decoration: none;
background: var(--obj-background-color);
border-radius: 7px;
border-radius: 10px;
padding: 10px;
overflow-x: auto;
transition: 0.3s background;
Expand All @@ -175,7 +175,7 @@ label {
#preview pre {
background: #00000011;
padding: 14px;
border-radius: 7px;
border-radius: 10px;
margin-top: 10px;
margin-bottom: 10px;
}
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/views/Paste.vue
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export default {
display: block;
color: var(--text-color);
background: var(--background-color);
border-radius: 7px;
border-radius: 10px;
padding: 10px;
overflow-x: auto;
}
Expand Down Expand Up @@ -331,7 +331,7 @@ export default {
padding: 1px 7px;
user-select: none;
display: inline-block;
border-radius: 7px;
border-radius: 10px;
}
#action-buttons.mobile {
Expand Down Expand Up @@ -365,7 +365,7 @@ export default {
padding: 7px 10px;
display: inline-block;
background: var(--tab-color);
border-radius: 7px;
border-radius: 10px;
margin-right: 10px;
cursor: pointer;
Expand Down Expand Up @@ -400,7 +400,7 @@ export default {
}
img {
max-width: 100%;
border-radius: 7px;
border-radius: 10px;
margin: 10px 0px;
}
Expand Down

0 comments on commit 38b2eaf

Please sign in to comment.