nodebb-theme-persona 13.3.32 → 13.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +2 -2
- package/README.md +20 -20
- package/lib/controllers.js +24 -24
- package/library.js +97 -97
- package/package.json +52 -52
- package/plugin.json +20 -20
- package/public/.eslintrc +2 -2
- package/public/admin.js +15 -15
- package/public/modules/autohidingnavbar.js +220 -220
- package/public/modules/mobile-menu.js +190 -190
- package/public/modules/taskbar.js +65 -65
- package/public/persona.js +257 -257
- package/public/settings.js +53 -53
- package/scss/account.scss +336 -336
- package/scss/categories.scss +205 -205
- package/scss/category.scss +161 -161
- package/scss/chats.scss +14 -14
- package/scss/flags.scss +42 -42
- package/scss/footer.scss +16 -16
- package/scss/groups.scss +166 -166
- package/scss/header.scss +229 -361
- package/scss/keyframes.scss +152 -152
- package/scss/mixins.scss +129 -129
- package/scss/mobile.scss +222 -331
- package/scss/modules/composer.scss +20 -20
- package/scss/modules/cookie-consent.scss +12 -12
- package/scss/modules/fab.scss +32 -32
- package/scss/modules/morph.scss +268 -268
- package/scss/modules/necro-post.scss +8 -8
- package/scss/modules/nprogress.scss +80 -80
- package/scss/modules/taskbar.scss +160 -160
- package/scss/modules/user-menu.scss +7 -7
- package/scss/modules/usercard.scss +64 -64
- package/scss/noscript.scss +80 -80
- package/scss/overrides.scss +39 -39
- package/scss/persona.scss +34 -34
- package/scss/posts_list.scss +127 -127
- package/scss/search.scss +48 -48
- package/scss/style.scss +256 -256
- package/scss/tags.scss +10 -10
- package/scss/topic.scss +571 -571
- package/scss/topics_list.scss +16 -16
- package/scss/variables.scss +6 -6
- package/templates/account/blocks.tpl +46 -46
- package/templates/account/categories.tpl +28 -28
- package/templates/account/consent.tpl +68 -68
- package/templates/account/edit/password.tpl +29 -29
- package/templates/account/edit/username.tpl +25 -25
- package/templates/account/edit.tpl +136 -136
- package/templates/account/followers.tpl +17 -17
- package/templates/account/following.tpl +17 -17
- package/templates/account/groups.tpl +16 -16
- package/templates/account/info.tpl +291 -291
- package/templates/account/posts.tpl +18 -18
- package/templates/account/profile.tpl +166 -166
- package/templates/account/sessions.tpl +31 -31
- package/templates/account/settings.tpl +251 -251
- package/templates/account/tags.tpl +9 -9
- package/templates/account/theme.tpl +25 -25
- package/templates/account/topics.tpl +29 -29
- package/templates/account/uploads.tpl +42 -42
- package/templates/admin/plugins/persona.tpl +24 -24
- package/templates/categories.tpl +31 -31
- package/templates/category.tpl +63 -63
- package/templates/flags/detail.tpl +208 -208
- package/templates/flags/list.tpl +71 -71
- package/templates/footer.tpl +11 -11
- package/templates/groups/details.tpl +77 -77
- package/templates/groups/list.tpl +48 -48
- package/templates/groups/members.tpl +5 -5
- package/templates/header.tpl +47 -47
- package/templates/modules/taskbar.tpl +2 -2
- package/templates/modules/usercard.tpl +36 -36
- package/templates/notifications.tpl +66 -66
- package/templates/partials/account/category-item.tpl +23 -23
- package/templates/partials/account/header.tpl +47 -47
- package/templates/partials/account/menu.tpl +108 -108
- package/templates/partials/breadcrumbs.tpl +18 -18
- package/templates/partials/buttons/newTopic.tpl +22 -22
- package/templates/partials/categories/item.tpl +60 -60
- package/templates/partials/categories/lastpost.tpl +26 -26
- package/templates/partials/category/filter-dropdown-content.tpl +31 -31
- package/templates/partials/category/selector-dropdown-content.tpl +32 -32
- package/templates/partials/category/sort.tpl +14 -14
- package/templates/partials/category/subcategory.tpl +17 -17
- package/templates/partials/category/tags.tpl +3 -3
- package/templates/partials/category/tools.tpl +86 -86
- package/templates/partials/category/watch.tpl +55 -55
- package/templates/partials/chats-menu.tpl +41 -40
- package/templates/partials/cookie-consent.tpl +4 -4
- package/templates/partials/flags/filters.tpl +173 -173
- package/templates/partials/groups/admin.tpl +200 -200
- package/templates/partials/groups/filter-dropdown-content.tpl +24 -24
- package/templates/partials/groups/list.tpl +20 -20
- package/templates/partials/groups/memberlist.tpl +42 -42
- package/templates/partials/header/chats.tpl +18 -18
- package/templates/partials/header/notifications.tpl +49 -19
- package/templates/partials/header/search.tpl +24 -24
- package/templates/partials/header/user-menu.tpl +96 -96
- package/templates/partials/menu.tpl +128 -128
- package/templates/partials/notifications_list.tpl +44 -30
- package/templates/partials/paginator.tpl +44 -44
- package/templates/partials/post_bar.tpl +20 -20
- package/templates/partials/posts_list.tpl +7 -7
- package/templates/partials/posts_list_item.tpl +31 -31
- package/templates/partials/quick-search-results.tpl +33 -33
- package/templates/partials/search-filters.tpl +183 -183
- package/templates/partials/search-results.tpl +54 -54
- package/templates/partials/slideout-menu.tpl +4 -4
- package/templates/partials/tags/filter-dropdown-content.tpl +33 -33
- package/templates/partials/tags/watch.tpl +35 -35
- package/templates/partials/tags_list.tpl +4 -4
- package/templates/partials/toast.tpl +19 -19
- package/templates/partials/topic/event.tpl +12 -12
- package/templates/partials/topic/navigation-post.tpl +11 -11
- package/templates/partials/topic/navigator.tpl +39 -39
- package/templates/partials/topic/necro-post.tpl +2 -2
- package/templates/partials/topic/post-menu-list.tpl +132 -132
- package/templates/partials/topic/post-menu.tpl +4 -4
- package/templates/partials/topic/post.tpl +128 -128
- package/templates/partials/topic/quickreply.tpl +28 -28
- package/templates/partials/topic/reply-button.tpl +26 -26
- package/templates/partials/topic/selection-tooltip.tpl +2 -2
- package/templates/partials/topic/sort.tpl +9 -9
- package/templates/partials/topic/stats.tpl +11 -11
- package/templates/partials/topic/tags.tpl +2 -2
- package/templates/partials/topic/tools.tpl +7 -7
- package/templates/partials/topic/topic-menu-list.tpl +74 -74
- package/templates/partials/topic/watch.tpl +47 -47
- package/templates/partials/topic-filters.tpl +11 -11
- package/templates/partials/topic-terms.tpl +11 -11
- package/templates/partials/topics_list.tpl +117 -117
- package/templates/partials/users/filter-dropdown-content.tpl +20 -20
- package/templates/partials/users/item.tpl +43 -43
- package/templates/partials/users_list.tpl +14 -14
- package/templates/partials/users_list_menu.tpl +20 -20
- package/templates/popular.tpl +35 -35
- package/templates/recent.tpl +37 -37
- package/templates/search.tpl +47 -47
- package/templates/tag.tpl +34 -34
- package/templates/tags.tpl +32 -32
- package/templates/top.tpl +35 -35
- package/templates/topic.tpl +129 -129
- package/templates/unread.tpl +37 -37
- package/templates/users.tpl +34 -34
package/.eslintrc
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "nodebb/lib"
|
|
1
|
+
{
|
|
2
|
+
"extends": "nodebb/lib"
|
|
3
3
|
}
|
package/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
Persona theme for NodeBB
|
|
2
|
-
====================
|
|
3
|
-
|
|
4
|
-
The Persona theme is the default theme for NodeBB for versions spanning v0.7.1 through to v2.x
|
|
5
|
-
|
|
6
|
-
For the v3.x release line, Persona will be a supported theme bundled with NodeBB, but will not be active by default.
|
|
7
|
-
|
|
8
|
-
## Issues
|
|
9
|
-
|
|
10
|
-
Issues are now tracked in [the main project issue tracker](https://github.com/NodeBB/NodeBB/issues?q=is%3Aopen+is%3Aissue+label%3Athemes).
|
|
11
|
-
|
|
12
|
-
## Addons
|
|
13
|
-
|
|
14
|
-
[Recent Cards](https://github.com/psychobunny/nodebb-plugin-recent-cards)
|
|
15
|
-
|
|
16
|
-
## Screenshots
|
|
17
|
-
|
|
18
|
-

|
|
19
|
-
|
|
20
|
-

|
|
1
|
+
Persona theme for NodeBB
|
|
2
|
+
====================
|
|
3
|
+
|
|
4
|
+
The Persona theme is the default theme for NodeBB for versions spanning v0.7.1 through to v2.x
|
|
5
|
+
|
|
6
|
+
For the v3.x release line, Persona will be a supported theme bundled with NodeBB, but will not be active by default.
|
|
7
|
+
|
|
8
|
+
## Issues
|
|
9
|
+
|
|
10
|
+
Issues are now tracked in [the main project issue tracker](https://github.com/NodeBB/NodeBB/issues?q=is%3Aopen+is%3Aissue+label%3Athemes).
|
|
11
|
+
|
|
12
|
+
## Addons
|
|
13
|
+
|
|
14
|
+
[Recent Cards](https://github.com/psychobunny/nodebb-plugin-recent-cards)
|
|
15
|
+
|
|
16
|
+
## Screenshots
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+

|
package/lib/controllers.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const accountHelpers = require.main.require('./src/controllers/accounts/helpers');
|
|
4
|
-
const helpers = require.main.require('./src/controllers/helpers');
|
|
5
|
-
|
|
6
|
-
const Controllers = module.exports;
|
|
7
|
-
|
|
8
|
-
Controllers.renderAdminPage = (req, res) => {
|
|
9
|
-
res.render('admin/plugins/persona', {
|
|
10
|
-
title: 'Persona Theme',
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
Controllers.renderThemeSettings = async (req, res, next) => {
|
|
15
|
-
const userData = await accountHelpers.getUserDataByUserSlug(req.params.userslug, req.uid, req.query);
|
|
16
|
-
if (!userData) {
|
|
17
|
-
return next();
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
userData.title = '[[themes/persona:settings.title]]';
|
|
21
|
-
userData.breadcrumbs = helpers.buildBreadcrumbs([{ text: userData.username, url: `/user/${userData.userslug}` }, { text: '[[themes/persona:settings.title]]' }]);
|
|
22
|
-
|
|
23
|
-
res.render('account/theme', userData);
|
|
24
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const accountHelpers = require.main.require('./src/controllers/accounts/helpers');
|
|
4
|
+
const helpers = require.main.require('./src/controllers/helpers');
|
|
5
|
+
|
|
6
|
+
const Controllers = module.exports;
|
|
7
|
+
|
|
8
|
+
Controllers.renderAdminPage = (req, res) => {
|
|
9
|
+
res.render('admin/plugins/persona', {
|
|
10
|
+
title: 'Persona Theme',
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
Controllers.renderThemeSettings = async (req, res, next) => {
|
|
15
|
+
const userData = await accountHelpers.getUserDataByUserSlug(req.params.userslug, req.uid, req.query);
|
|
16
|
+
if (!userData) {
|
|
17
|
+
return next();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
userData.title = '[[themes/persona:settings.title]]';
|
|
21
|
+
userData.breadcrumbs = helpers.buildBreadcrumbs([{ text: userData.username, url: `/user/${userData.userslug}` }, { text: '[[themes/persona:settings.title]]' }]);
|
|
22
|
+
|
|
23
|
+
res.render('account/theme', userData);
|
|
24
|
+
};
|
package/library.js
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const meta = require.main.require('./src/meta');
|
|
4
|
-
|
|
5
|
-
const controllers = require('./lib/controllers');
|
|
6
|
-
|
|
7
|
-
const library = module.exports;
|
|
8
|
-
|
|
9
|
-
library.init = async function (params) {
|
|
10
|
-
const { router, middleware } = params;
|
|
11
|
-
const routeHelpers = require.main.require('./src/routes/helpers');
|
|
12
|
-
routeHelpers.setupAdminPageRoute(router, '/admin/plugins/persona', [], controllers.renderAdminPage);
|
|
13
|
-
|
|
14
|
-
routeHelpers.setupPageRoute(router, '/user/:userslug/theme', [
|
|
15
|
-
middleware.exposeUid,
|
|
16
|
-
middleware.ensureLoggedIn,
|
|
17
|
-
middleware.canViewUsers,
|
|
18
|
-
middleware.checkAccountPermissions,
|
|
19
|
-
], controllers.renderThemeSettings);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
library.addAdminNavigation = async function (header) {
|
|
23
|
-
header.plugins.push({
|
|
24
|
-
route: '/plugins/persona',
|
|
25
|
-
icon: 'fa-paint-brush',
|
|
26
|
-
name: 'Persona Theme',
|
|
27
|
-
});
|
|
28
|
-
return header;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
library.addProfileItem = async (data) => {
|
|
32
|
-
data.links.push({
|
|
33
|
-
id: 'theme',
|
|
34
|
-
route: 'theme',
|
|
35
|
-
icon: 'fa-paint-brush',
|
|
36
|
-
name: '[[themes/persona:settings.title]]',
|
|
37
|
-
visibility: {
|
|
38
|
-
self: true,
|
|
39
|
-
other: false,
|
|
40
|
-
moderator: false,
|
|
41
|
-
globalMod: false,
|
|
42
|
-
admin: false,
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
return data;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
library.defineWidgetAreas = async function (areas) {
|
|
50
|
-
const locations = ['header', 'sidebar', 'footer'];
|
|
51
|
-
const templates = [
|
|
52
|
-
'categories.tpl', 'category.tpl', 'topic.tpl', 'users.tpl',
|
|
53
|
-
'unread.tpl', 'recent.tpl', 'popular.tpl', 'top.tpl', 'tags.tpl', 'tag.tpl',
|
|
54
|
-
'login.tpl', 'register.tpl',
|
|
55
|
-
];
|
|
56
|
-
function capitalizeFirst(str) {
|
|
57
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
58
|
-
}
|
|
59
|
-
templates.forEach((template) => {
|
|
60
|
-
locations.forEach((location) => {
|
|
61
|
-
areas.push({
|
|
62
|
-
name: `${capitalizeFirst(template.split('.')[0])} ${capitalizeFirst(location)}`,
|
|
63
|
-
template: template,
|
|
64
|
-
location: location,
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
areas = areas.concat([
|
|
70
|
-
{
|
|
71
|
-
name: 'Main post header',
|
|
72
|
-
template: 'topic.tpl',
|
|
73
|
-
location: 'mainpost-header',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: 'Main post footer',
|
|
77
|
-
template: 'topic.tpl',
|
|
78
|
-
location: 'mainpost-footer',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: 'Account Header',
|
|
82
|
-
template: 'account/profile.tpl',
|
|
83
|
-
location: 'header',
|
|
84
|
-
},
|
|
85
|
-
]);
|
|
86
|
-
return areas;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
library.getThemeConfig = async function (config) {
|
|
90
|
-
const settings = await meta.settings.get('persona');
|
|
91
|
-
config.hideSubCategories = settings.hideSubCategories === 'on';
|
|
92
|
-
config.hideCategoryLastPost = settings.hideCategoryLastPost === 'on';
|
|
93
|
-
config.enableQuickReply = settings.enableQuickReply === 'on';
|
|
94
|
-
return config;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const meta = require.main.require('./src/meta');
|
|
4
|
+
|
|
5
|
+
const controllers = require('./lib/controllers');
|
|
6
|
+
|
|
7
|
+
const library = module.exports;
|
|
8
|
+
|
|
9
|
+
library.init = async function (params) {
|
|
10
|
+
const { router, middleware } = params;
|
|
11
|
+
const routeHelpers = require.main.require('./src/routes/helpers');
|
|
12
|
+
routeHelpers.setupAdminPageRoute(router, '/admin/plugins/persona', [], controllers.renderAdminPage);
|
|
13
|
+
|
|
14
|
+
routeHelpers.setupPageRoute(router, '/user/:userslug/theme', [
|
|
15
|
+
middleware.exposeUid,
|
|
16
|
+
middleware.ensureLoggedIn,
|
|
17
|
+
middleware.canViewUsers,
|
|
18
|
+
middleware.checkAccountPermissions,
|
|
19
|
+
], controllers.renderThemeSettings);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
library.addAdminNavigation = async function (header) {
|
|
23
|
+
header.plugins.push({
|
|
24
|
+
route: '/plugins/persona',
|
|
25
|
+
icon: 'fa-paint-brush',
|
|
26
|
+
name: 'Persona Theme',
|
|
27
|
+
});
|
|
28
|
+
return header;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
library.addProfileItem = async (data) => {
|
|
32
|
+
data.links.push({
|
|
33
|
+
id: 'theme',
|
|
34
|
+
route: 'theme',
|
|
35
|
+
icon: 'fa-paint-brush',
|
|
36
|
+
name: '[[themes/persona:settings.title]]',
|
|
37
|
+
visibility: {
|
|
38
|
+
self: true,
|
|
39
|
+
other: false,
|
|
40
|
+
moderator: false,
|
|
41
|
+
globalMod: false,
|
|
42
|
+
admin: false,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return data;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
library.defineWidgetAreas = async function (areas) {
|
|
50
|
+
const locations = ['header', 'sidebar', 'footer'];
|
|
51
|
+
const templates = [
|
|
52
|
+
'categories.tpl', 'category.tpl', 'topic.tpl', 'users.tpl',
|
|
53
|
+
'unread.tpl', 'recent.tpl', 'popular.tpl', 'top.tpl', 'tags.tpl', 'tag.tpl',
|
|
54
|
+
'login.tpl', 'register.tpl',
|
|
55
|
+
];
|
|
56
|
+
function capitalizeFirst(str) {
|
|
57
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
58
|
+
}
|
|
59
|
+
templates.forEach((template) => {
|
|
60
|
+
locations.forEach((location) => {
|
|
61
|
+
areas.push({
|
|
62
|
+
name: `${capitalizeFirst(template.split('.')[0])} ${capitalizeFirst(location)}`,
|
|
63
|
+
template: template,
|
|
64
|
+
location: location,
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
areas = areas.concat([
|
|
70
|
+
{
|
|
71
|
+
name: 'Main post header',
|
|
72
|
+
template: 'topic.tpl',
|
|
73
|
+
location: 'mainpost-header',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Main post footer',
|
|
77
|
+
template: 'topic.tpl',
|
|
78
|
+
location: 'mainpost-footer',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Account Header',
|
|
82
|
+
template: 'account/profile.tpl',
|
|
83
|
+
location: 'header',
|
|
84
|
+
},
|
|
85
|
+
]);
|
|
86
|
+
return areas;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
library.getThemeConfig = async function (config) {
|
|
90
|
+
const settings = await meta.settings.get('persona');
|
|
91
|
+
config.hideSubCategories = settings.hideSubCategories === 'on';
|
|
92
|
+
config.hideCategoryLastPost = settings.hideCategoryLastPost === 'on';
|
|
93
|
+
config.enableQuickReply = settings.enableQuickReply === 'on';
|
|
94
|
+
return config;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
|
package/package.json
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nodebb-theme-persona",
|
|
3
|
-
"version": "13.3.
|
|
4
|
-
"nbbpm": {
|
|
5
|
-
"compatibility": "^3.7.0"
|
|
6
|
-
},
|
|
7
|
-
"description": "Persona theme for NodeBB",
|
|
8
|
-
"main": "library.js",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/NodeBB/nodebb-theme-persona"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"lint": "eslint ."
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"nodebb",
|
|
18
|
-
"theme",
|
|
19
|
-
"forum",
|
|
20
|
-
"bootstrap",
|
|
21
|
-
"responsive"
|
|
22
|
-
],
|
|
23
|
-
"contributors": [
|
|
24
|
-
{
|
|
25
|
-
"name": "Andrew Rodrigues",
|
|
26
|
-
"email": "andrew@nodebb.org",
|
|
27
|
-
"url": "https://github.com/psychobunny"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "Julian Lam",
|
|
31
|
-
"email": "julian@nodebb.org",
|
|
32
|
-
"url": "https://github.com/julianlam"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "Barış Soner Uşaklı",
|
|
36
|
-
"email": "baris@nodebb.org",
|
|
37
|
-
"url": "https://github.com/barisusakli"
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"license": "BSD-2-Clause",
|
|
41
|
-
"bugs": {
|
|
42
|
-
"url": "https://github.com/NodeBB/nodebb-theme-persona/issues"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"pulling": "^2.0.0"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"eslint": "^7.32.0",
|
|
49
|
-
"eslint-config-nodebb": "^0.0.2",
|
|
50
|
-
"eslint-plugin-import": "^2.24.2"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "nodebb-theme-persona",
|
|
3
|
+
"version": "13.3.33",
|
|
4
|
+
"nbbpm": {
|
|
5
|
+
"compatibility": "^3.7.0"
|
|
6
|
+
},
|
|
7
|
+
"description": "Persona theme for NodeBB",
|
|
8
|
+
"main": "library.js",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/NodeBB/nodebb-theme-persona"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"lint": "eslint ."
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"nodebb",
|
|
18
|
+
"theme",
|
|
19
|
+
"forum",
|
|
20
|
+
"bootstrap",
|
|
21
|
+
"responsive"
|
|
22
|
+
],
|
|
23
|
+
"contributors": [
|
|
24
|
+
{
|
|
25
|
+
"name": "Andrew Rodrigues",
|
|
26
|
+
"email": "andrew@nodebb.org",
|
|
27
|
+
"url": "https://github.com/psychobunny"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "Julian Lam",
|
|
31
|
+
"email": "julian@nodebb.org",
|
|
32
|
+
"url": "https://github.com/julianlam"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "Barış Soner Uşaklı",
|
|
36
|
+
"email": "baris@nodebb.org",
|
|
37
|
+
"url": "https://github.com/barisusakli"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"license": "BSD-2-Clause",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/NodeBB/nodebb-theme-persona/issues"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"pulling": "^2.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"eslint": "^7.32.0",
|
|
49
|
+
"eslint-config-nodebb": "^0.0.2",
|
|
50
|
+
"eslint-plugin-import": "^2.24.2"
|
|
51
|
+
}
|
|
52
|
+
}
|
package/plugin.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "nodebb-theme-persona",
|
|
3
|
-
"hooks": [
|
|
4
|
-
{ "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas" },
|
|
5
|
-
{ "hook": "filter:config.get", "method": "getThemeConfig" },
|
|
6
|
-
{ "hook": "static:app.load", "method": "init" },
|
|
7
|
-
{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
|
|
8
|
-
{ "hook": "filter:user.profileMenu", "method": "addProfileItem" }
|
|
9
|
-
],
|
|
10
|
-
"scripts": [
|
|
11
|
-
"public/modules/autohidingnavbar.js",
|
|
12
|
-
"public/persona.js"
|
|
13
|
-
],
|
|
14
|
-
"modules": {
|
|
15
|
-
"../admin/plugins/persona.js": "public/admin.js",
|
|
16
|
-
"persona/taskbar.js": "public/modules/taskbar.js",
|
|
17
|
-
"persona/mobile-menu.js": "public/modules/mobile-menu.js",
|
|
18
|
-
"../client/account/theme.js": "public/settings.js"
|
|
19
|
-
},
|
|
20
|
-
"languages": "languages"
|
|
1
|
+
{
|
|
2
|
+
"id": "nodebb-theme-persona",
|
|
3
|
+
"hooks": [
|
|
4
|
+
{ "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas" },
|
|
5
|
+
{ "hook": "filter:config.get", "method": "getThemeConfig" },
|
|
6
|
+
{ "hook": "static:app.load", "method": "init" },
|
|
7
|
+
{ "hook": "filter:admin.header.build", "method": "addAdminNavigation" },
|
|
8
|
+
{ "hook": "filter:user.profileMenu", "method": "addProfileItem" }
|
|
9
|
+
],
|
|
10
|
+
"scripts": [
|
|
11
|
+
"public/modules/autohidingnavbar.js",
|
|
12
|
+
"public/persona.js"
|
|
13
|
+
],
|
|
14
|
+
"modules": {
|
|
15
|
+
"../admin/plugins/persona.js": "public/admin.js",
|
|
16
|
+
"persona/taskbar.js": "public/modules/taskbar.js",
|
|
17
|
+
"persona/mobile-menu.js": "public/modules/mobile-menu.js",
|
|
18
|
+
"../client/account/theme.js": "public/settings.js"
|
|
19
|
+
},
|
|
20
|
+
"languages": "languages"
|
|
21
21
|
}
|
package/public/.eslintrc
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "nodebb/public"
|
|
1
|
+
{
|
|
2
|
+
"extends": "nodebb/public"
|
|
3
3
|
}
|
package/public/admin.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
define('admin/plugins/persona', ['settings'], function (Settings) {
|
|
4
|
-
var ACP = {};
|
|
5
|
-
|
|
6
|
-
ACP.init = function () {
|
|
7
|
-
Settings.load('persona', $('.persona-settings'));
|
|
8
|
-
|
|
9
|
-
$('#save').on('click', function () {
|
|
10
|
-
Settings.save('persona', $('.persona-settings'));
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
return ACP;
|
|
15
|
-
});
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
define('admin/plugins/persona', ['settings'], function (Settings) {
|
|
4
|
+
var ACP = {};
|
|
5
|
+
|
|
6
|
+
ACP.init = function () {
|
|
7
|
+
Settings.load('persona', $('.persona-settings'));
|
|
8
|
+
|
|
9
|
+
$('#save').on('click', function () {
|
|
10
|
+
Settings.save('persona', $('.persona-settings'));
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return ACP;
|
|
15
|
+
});
|