jquery-ui

This commit is contained in:
Flummi 2018-02-20 07:04:52 +01:00
parent 86995cab67
commit 33064030d6
10 changed files with 43 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -56,4 +56,25 @@ section#main textarea {
section#main input#email {
display: none;
}
.custom-combobox {
position: relative;
display: inline-block;
}
.custom-combobox-toggle {
position: absolute;
top: 0;
bottom: 0;
margin-left: -1px;
padding: 0;
}
.custom-combobox-input {
margin: 0;
padding: 5px 10px;
}
.ui-menu {
overflow-x: hidden;
overflow-y: scroll;
max-height: 200px;
}

7
public/css/jquery-ui.min.css vendored Normal file

File diff suppressed because one or more lines are too long

13
public/js/jquery-ui.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -4,9 +4,10 @@ import highlight from "highlight.js";
import db from "../../lib/sql";
const queries = {
all: "select p.id, p.uuid, p.stamp, p.desc, p.paste, l.name as language, r.uuid as reply from `pastes` as p "
all: "select p.id, p.uuid, p.stamp, p.desc, p.paste, p.hidden, l.name as language, r.uuid as reply from `pastes` as p "
+ "left join `languages` as l on l.id = p.lang "
+ "left join `pastes` as r on r.id = p.reply "
+ "where p.hidden = 0 "
+ "order by p.id desc limit 5",
single: "select p.id, p.uuid, p.stamp, p.desc, p.paste, l.name as language, r.uuid as reply from `pastes` as p "
+ "left join `languages` as l on l.id = p.lang "