Skip to content

Commit acc1ba5

Browse files
authored
Merge pull request #30 from CMU-313/chore/add-composer-plugin
Chore/add composer plugin
2 parents 7b9e994 + c0410b6 commit acc1ba5

40 files changed

Lines changed: 4419 additions & 2 deletions

install/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"multer": "2.0.2",
9999
"nconf": "0.13.0",
100100
"nodebb-plugin-2factor": "7.6.1",
101-
"nodebb-plugin-composer-default": "10.3.1",
101+
"nodebb-plugin-composer-default": "file:vendor/nodebb-plugin-composer-default",
102102
"nodebb-plugin-dbsearch": "6.3.4",
103103
"nodebb-plugin-emoji": "6.0.5",
104104
"nodebb-plugin-emoji-android": "4.1.1",
@@ -204,4 +204,4 @@
204204
"url": "https://github.com/barisusakli"
205205
}
206206
]
207-
}
207+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain
Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
#################
2+
## Eclipse
3+
#################
4+
5+
*.pydevproject
6+
.project
7+
.metadata
8+
bin/
9+
tmp/
10+
*.tmp
11+
*.bak
12+
*.swp
13+
*~.nib
14+
local.properties
15+
.classpath
16+
.settings/
17+
.loadpath
18+
19+
# External tool builders
20+
.externalToolBuilders/
21+
22+
# Locally stored "Eclipse launch configurations"
23+
*.launch
24+
25+
# CDT-specific
26+
.cproject
27+
28+
# PDT-specific
29+
.buildpath
30+
31+
32+
#################
33+
## Visual Studio
34+
#################
35+
36+
.vscode
37+
38+
## Ignore Visual Studio temporary files, build results, and
39+
## files generated by popular Visual Studio add-ons.
40+
41+
# User-specific files
42+
*.suo
43+
*.user
44+
*.sln.docstates
45+
46+
# Build results
47+
48+
[Dd]ebug/
49+
[Rr]elease/
50+
x64/
51+
build/
52+
[Bb]in/
53+
[Oo]bj/
54+
55+
# MSTest test Results
56+
[Tt]est[Rr]esult*/
57+
[Bb]uild[Ll]og.*
58+
59+
*_i.c
60+
*_p.c
61+
*.ilk
62+
*.meta
63+
*.obj
64+
*.pch
65+
*.pdb
66+
*.pgc
67+
*.pgd
68+
*.rsp
69+
*.sbr
70+
*.tlb
71+
*.tli
72+
*.tlh
73+
*.tmp
74+
*.tmp_proj
75+
*.log
76+
*.vspscc
77+
*.vssscc
78+
.builds
79+
*.pidb
80+
*.log
81+
*.scc
82+
83+
# Visual C++ cache files
84+
ipch/
85+
*.aps
86+
*.ncb
87+
*.opensdf
88+
*.sdf
89+
*.cachefile
90+
91+
# Visual Studio profiler
92+
*.psess
93+
*.vsp
94+
*.vspx
95+
96+
# Guidance Automation Toolkit
97+
*.gpState
98+
99+
# ReSharper is a .NET coding add-in
100+
_ReSharper*/
101+
*.[Rr]e[Ss]harper
102+
103+
# TeamCity is a build add-in
104+
_TeamCity*
105+
106+
# DotCover is a Code Coverage Tool
107+
*.dotCover
108+
109+
# NCrunch
110+
*.ncrunch*
111+
.*crunch*.local.xml
112+
113+
# Installshield output folder
114+
[Ee]xpress/
115+
116+
# DocProject is a documentation generator add-in
117+
DocProject/buildhelp/
118+
DocProject/Help/*.HxT
119+
DocProject/Help/*.HxC
120+
DocProject/Help/*.hhc
121+
DocProject/Help/*.hhk
122+
DocProject/Help/*.hhp
123+
DocProject/Help/Html2
124+
DocProject/Help/html
125+
126+
# Click-Once directory
127+
publish/
128+
129+
# Publish Web Output
130+
*.Publish.xml
131+
*.pubxml
132+
133+
# NuGet Packages Directory
134+
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
135+
#packages/
136+
137+
# Windows Azure Build Output
138+
csx
139+
*.build.csdef
140+
141+
# Windows Store app package directory
142+
AppPackages/
143+
144+
# Others
145+
sql/
146+
*.Cache
147+
ClientBin/
148+
[Ss]tyle[Cc]op.*
149+
~$*
150+
*~
151+
*.dbmdl
152+
*.[Pp]ublish.xml
153+
*.pfx
154+
*.publishsettings
155+
156+
# RIA/Silverlight projects
157+
Generated_Code/
158+
159+
# Backup & report files from converting an old project file to a newer
160+
# Visual Studio version. Backup files are not needed, because we have git ;-)
161+
_UpgradeReport_Files/
162+
Backup*/
163+
UpgradeLog*.XML
164+
UpgradeLog*.htm
165+
166+
# SQL Server files
167+
App_Data/*.mdf
168+
App_Data/*.ldf
169+
170+
#############
171+
## Windows detritus
172+
#############
173+
174+
# Windows image file caches
175+
Thumbs.db
176+
ehthumbs.db
177+
178+
# Folder config file
179+
Desktop.ini
180+
181+
# Recycle Bin used on file shares
182+
$RECYCLE.BIN/
183+
184+
# Mac crap
185+
.DS_Store
186+
187+
# can't have it committed because it interferes with the package-lock.json
188+
# generated by each individual install
189+
package-lock.json
190+
yarn.lock
191+
192+
193+
#############
194+
## Python
195+
#############
196+
197+
*.py[co]
198+
199+
# Packages
200+
*.egg
201+
*.egg-info
202+
dist/
203+
build/
204+
eggs/
205+
parts/
206+
var/
207+
sdist/
208+
develop-eggs/
209+
.installed.cfg
210+
211+
# Installer logs
212+
pip-log.txt
213+
214+
# Unit test / coverage reports
215+
.coverage
216+
.tox
217+
218+
#Translations
219+
*.mo
220+
221+
#Mr Developer
222+
.mr.developer.cfg
223+
224+
sftp-config.json
225+
node_modules/
226+
227+
*.sublime-project
228+
*.sublime-workspace
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sftp-config.json
2+
node_modules/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2016 NodeBB Inc.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Default Composer for NodeBB
2+
3+
This plugin activates the default composer for NodeBB. It is activated by default, but can be swapped out as necessary.
4+
5+
## Screenshots
6+
7+
### Desktop
8+
![Desktop Composer](screenshots/desktop.png?raw=true)
9+
10+
### Mobile Devices
11+
![Mobile Composer](screenshots/mobile.png?raw=true)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
3+
const Controllers = {};
4+
5+
Controllers.renderAdminPage = function (req, res) {
6+
res.render('admin/plugins/composer-default', {
7+
title: 'Composer (Default)',
8+
});
9+
};
10+
11+
module.exports = Controllers;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
3+
import serverConfig from 'eslint-config-nodebb';
4+
import publicConfig from 'eslint-config-nodebb/public';
5+
6+
export default [
7+
...publicConfig,
8+
...serverConfig,
9+
];
10+

0 commit comments

Comments
 (0)