mirror of
https://github.com/outline/outline.git
synced 2026-12-05 02:44:34 +03:00
wip
This commit is contained in:
1 parent
58732ddd9b
commit
abf49bc04d
3 files changed
+19
-10
No files matched your search
@@ -35,17 +35,20 @@ router.post(
|
||||
suspendedAt: {
|
||||
[Op.eq]: null,
|
||||
},
|
||||
[Op.and]: {
|
||||
[Op.or]: [
|
||||
Sequelize.literal(
|
||||
`unaccent(LOWER(email)) like unaccent(LOWER(:query))`
|
||||
),
|
||||
Sequelize.literal(
|
||||
`unaccent(LOWER(name)) like unaccent(LOWER(:query))`
|
||||
),
|
||||
],
|
||||
},
|
||||
[Op.and]: query
|
||||
? {
|
||||
[Op.or]: [
|
||||
Sequelize.literal(
|
||||
`unaccent(LOWER(email)) like unaccent(LOWER(:query))`
|
||||
),
|
||||
Sequelize.literal(
|
||||
`unaccent(LOWER(name)) like unaccent(LOWER(:query))`
|
||||
),
|
||||
],
|
||||
}
|
||||
: {},
|
||||
},
|
||||
order: [["name", "ASC"]],
|
||||
replacements: { query: `%${query}%` },
|
||||
offset,
|
||||
limit,
|
||||
|
||||
@@ -303,6 +303,11 @@ width: 100%;
|
||||
gap: 4px;
|
||||
vertical-align: bottom;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
&.mention-user::before {
|
||||
content: "@";
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ export default class Mention extends Extension {
|
||||
{
|
||||
tag: `.${this.name}`,
|
||||
preserveWhitespace: "full",
|
||||
priority: 100,
|
||||
getAttrs: (dom: HTMLElement) => {
|
||||
const type = dom.dataset.type;
|
||||
const modelId = dom.dataset.id;
|
||||
|
||||
Reference in new issue
Block a user