Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.json]
indent_style = space
indent_size = 2

[*.js]
indent_style = tab
indent_size = 4

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sftp-config.json
node_modules/

*.sublime*
*.sublime*
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@

// Custom Globals
"globals" : {} // additional predefined global variables
}
}
38 changes: 19 additions & 19 deletions plugin.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"id": "nodebb-plugin-mentions",
"name": "Username Mentions",
"description": "NodeBB Plugin that allows users to mention other users by prepending an '@' sign to their username",
"url": "https://github.com/julianlam/nodebb-plugin-mentions",
"library": "./library.js",
"hooks": [
{ "hook": "filter:parse.post", "method": "parsePost" },
{ "hook": "filter:parse.raw", "method": "parseRaw" },
{ "hook": "action:post.save", "method": "notify" }
],
"scripts": [
"static/autofill.js"
],
"less": [
"static/style.less"
],
"languages": "languages",
"defaultLang": "en_GB"
}
"id": "nodebb-plugin-mentions",
"name": "Username Mentions",
"description": "NodeBB Plugin that allows users to mention other users by prepending an '@' sign to their username",
"url": "https://github.com/julianlam/nodebb-plugin-mentions",
"library": "./library.js",
"hooks": [
{ "hook": "filter:parse.post", "method": "parsePost" },
{ "hook": "filter:parse.raw", "method": "parseRaw" },
{ "hook": "action:post.save", "method": "notify" }
],
"scripts": [
"static/autofill.js"
],
"less": [
"static/style.less"
],
"languages": "languages",
"defaultLang": "en_GB"
}
2 changes: 1 addition & 1 deletion static/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
color: @state-info-text;
font-size: 0.9em;
white-space: nowrap;
}
}