diff --git a/package.json b/package.json index 6774aa4..6b247fe 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "nodebb-theme-quickstart", + "name": "nodebb-theme-rockfic", "version": "0.1.0", "description": "Enter a description here", "main": "lib/theme.js", diff --git a/plugin.json b/plugin.json index 12e48ad..1df4004 100644 --- a/plugin.json +++ b/plugin.json @@ -1,26 +1,3 @@ { - "id": "nodebb-theme-quickstart", - "hooks": [ - { "hook": "static:app.load", "method": "init" }, - { "hook": "filter:admin.header.build", "method": "addAdminNavigation" }, - { "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas" }, - { "hook": "filter:config.get", "method": "getThemeConfig" }, - { "hook": "filter:settings.get", "method": "getAdminSettings"}, - { "hook": "filter:user.saveSettings", "method": "saveUserSettings" }, - { "hook": "filter:user.profileMenu", "method": "addProfileItem" }, - { "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" } - ], - "scripts": [ - "public/client.js", - "../nodebb-theme-harmony/public/harmony.js" - ], - "templates": "templates", - "modules": { - "../admin/plugins/theme-quickstart.js": "../nodebb-theme-harmony/public/admin.js", - "../client/account/theme.js": "../nodebb-theme-harmony/public/settings.js" - }, - "staticDirs": { - "inter": "node_modules/@fontsource/inter/files", - "poppins": "node_modules/@fontsource/poppins/files" - } -} + "id": "nodebb-theme-rockfic" +} \ No newline at end of file diff --git a/templates/account/info.tpl b/templates/account/info.tpl new file mode 100644 index 0000000..3df8bbf --- /dev/null +++ b/templates/account/info.tpl @@ -0,0 +1,292 @@ + + + +
+
+

[[global:sessions]]

+ +
+
+ + +
+
+
+
+ [[global:recentips]] +
+
+
    + {{{each ips}}} +
  • {@value}
  • + {{{end}}} +
+
+
+ +
+
+ [[user:info.username-history]] +
+
+ +
+
+ +
+
+ [[user:info.email-history]] +
+
+ +
+
+ +
+
+ [[user:info.moderation-note]] +
+
+ +
+ +
+
+ {{{ each moderationNotes }}} +
+ +
+ + +
+
+ {./note} +
+ +
+ +
+ +
+ + +
+
+
+ {{{ end }}} +
+ +
+
+ +
+
+
+
+ [[user:info.latest-flags]] +
+
+ +
    + {{{ each history.flags }}} +
  • +
    +
    + {{{ if (./type == "user")}}} + [[user:info.profile]] + {{{ else }}} + [[user:info.post]] + {{{ end }}} + +
    + + [[user:info.view-flag]] +
    + + {{{ if (./type == "post") }}} +

    + {{{ if history.flags.targetPurged }}} +

    [[flags:target-purged]]
    + {{{ else }}} + {./title} + {{{ end }}} +

    + {{{ end }}} + +
    + [[user:info.reported-by]] +
    + {{{ each ./reports }}} + {buildAvatar(./reporter, "24px", true)} + {{{ end }}} +
    +
    +
  • + {{{ end }}} +
+ +
[[user:info.no-flags]]
+ +
+
+ +
+
+ [[user:info.ban-history]] + + + + + + + + + + +
+
+ +
    + {{{ each history.bans }}} +
  • +
    + + {{{ if (./type != "unban") }}} + [[user:banned]] + {{{ else }}} + [[user:unbanned]] + {{{ end }}} +
    +

    + [[user:info.banned-reason-label]]: {./reason} +

    +

    + {{{ if ./until }}} + [[user:info.banned-until, {isoTimeToLocaleString(./untilISO, config.userLang)}]] + {{{ else }}} + {{{ if (./type != "unban") }}} + [[user:info.banned-permanently]] + {{{ end }}} + {{{ end }}} +

    +
  • + {{{ end }}} +
+ +
[[user:info.no-ban-history]]
+ +
+
+ +
+
+ [[user:info.mute-history]] + + {{{ if !muted }}} + {{{ if !isSelf }}} + + {{{ end }}} + {{{ else }}} + {{{ if !isSelf }}} + + {{{ end }}} + {{{ end }}} +
+
+ {{{ if history.mutes.length }}} +
    + {{{ each history.mutes }}} +
  • +
    + + {{{ if (./type != "unmute") }}} + [[user:muted]] + {{{ else }}} + [[user:unmuted]] + {{{ end }}} +
    +

    + [[user:info.banned-reason-label]]: {./reason} +

    +

    + {{{ if ./until }}} + [[user:info.muted-until, {isoTimeToLocaleString(./untilISO, config.userLang)}]] + {{{ end }}} +

    +
  • + {{{ end }}} +
+ {{{ else }}} +
[[user:info.no-mute-history]]
+ {{{ end }}} +
+
+ +
+
+ + \ No newline at end of file diff --git a/templates/partials/categories/lastpost.tpl b/templates/partials/categories/lastpost.tpl index c7965cb..134a54a 100644 --- a/templates/partials/categories/lastpost.tpl +++ b/templates/partials/categories/lastpost.tpl @@ -3,7 +3,7 @@ {{{ if @first }}}
- {buildAvatar(posts.user, "18px", true)} + {buildAvatar(posts.user, "18px", true)}
diff --git a/templates/partials/chats-menu.tpl b/templates/partials/chats-menu.tpl new file mode 100644 index 0000000..fd12ebb --- /dev/null +++ b/templates/partials/chats-menu.tpl @@ -0,0 +1,41 @@ +{{{ if config.loggedIn }}} + + +
+
+ +
+ + {{{ if !config.disableChat }}} +
+ +
+ {{{ end }}} +
+{{{ end }}} \ No newline at end of file diff --git a/templates/partials/groups/invited.tpl b/templates/partials/groups/invited.tpl new file mode 100644 index 0000000..aa24837 --- /dev/null +++ b/templates/partials/groups/invited.tpl @@ -0,0 +1,33 @@ + +
+ + +
+ +
+ + +
+ +
+ +
+ +
+
[[groups:invited.none]]
+ + + {{{ each group.invited }}} + + + + {{{ end }}} + +
+ + +
+
\ No newline at end of file diff --git a/templates/partials/groups/list.tpl b/templates/partials/groups/list.tpl new file mode 100644 index 0000000..cfd60b5 --- /dev/null +++ b/templates/partials/groups/list.tpl @@ -0,0 +1,21 @@ +{{{each groups}}} +
+
+ +
{groups.displayName} {formattedNumber(groups.memberCount)}
+
+
+

+ {./description} +

+ +
+
+
+{{{end}}} \ No newline at end of file diff --git a/templates/partials/groups/memberlist.tpl b/templates/partials/groups/memberlist.tpl new file mode 100644 index 0000000..0b67b31 --- /dev/null +++ b/templates/partials/groups/memberlist.tpl @@ -0,0 +1,43 @@ +
+ +
+ +
+ +
+
+ + +
+
+
+ +
+ + + {{{each group.members}}} + + + + + {{{end}}} + +
+ {buildAvatar(group.members, "24px", true)} + + {group.members.username} + + + +
+ + + + + + + +
+ +
+
\ No newline at end of file diff --git a/templates/partials/groups/pending.tpl b/templates/partials/groups/pending.tpl new file mode 100644 index 0000000..f2e75d8 --- /dev/null +++ b/templates/partials/groups/pending.tpl @@ -0,0 +1,28 @@ +{{{ if group.pending.length }}} +
+ + +
+{{{ end }}} + +
+
[[groups:pending.none]]
+ + + {{{ each group.pending }}} + + + + {{{ end }}} + +
+ +
+
+
+
diff --git a/templates/partials/header/chats.tpl b/templates/partials/header/chats.tpl new file mode 100644 index 0000000..0b54f1b --- /dev/null +++ b/templates/partials/header/chats.tpl @@ -0,0 +1,35 @@ + + \ No newline at end of file diff --git a/templates/partials/header/user-menu.tpl b/templates/partials/header/user-menu.tpl new file mode 100644 index 0000000..1b873c2 --- /dev/null +++ b/templates/partials/header/user-menu.tpl @@ -0,0 +1,102 @@ + \ No newline at end of file diff --git a/templates/partials/notifications_list.tpl b/templates/partials/notifications_list.tpl new file mode 100644 index 0000000..5c48d90 --- /dev/null +++ b/templates/partials/notifications_list.tpl @@ -0,0 +1,44 @@ +{{{ if !notifications.length }}} +
+
+
[[notifications:no-notifs]]
+
+{{{ end }}} + +{{{ each notifications }}} +
+
+ +
+ {{{ if ./nid }}} + + {{{ end }}} +
+
+
+{{{ if !@last }}} +
+{{{ end }}} +{{{ end }}} diff --git a/templates/partials/posts_list_item.tpl b/templates/partials/posts_list_item.tpl new file mode 100644 index 0000000..561cd51 --- /dev/null +++ b/templates/partials/posts_list_item.tpl @@ -0,0 +1,34 @@ +
  • +
    + + {{{ if !./isMainPost }}}RE: {{{ end }}}{./topic.title} + + +
    + {../content} +
    + +
    + [[global:posted-in, {../category.name}]] + + {{{ if ../isMainPost }}} + {{{ if ../topic.tags.length }}} + + {{{ each ../topic.tags }}} + {topic.tags.valueEscaped} + {{{ end }}} + + {{{ end }}} + {{{ end }}} +
    + + +
    +
  • \ No newline at end of file diff --git a/templates/partials/search-results.tpl b/templates/partials/search-results.tpl new file mode 100644 index 0000000..04efb3c --- /dev/null +++ b/templates/partials/search-results.tpl @@ -0,0 +1,54 @@ +
    + {{{ if matchCount }}} +
    [[search:results-matching, {matchCount}, {search_query}, {time}]]
    + {{{ else }}} + {{{ if search_query }}} +
    [[search:no-matches]]
    + {{{ end }}} + {{{ end }}} + + {{{each posts}}} + + {{{end}}} + + {{{ if users.length }}} + + {{{ end }}} + + {{{ if tags.length }}} + + {{{ end }}} + + {{{ if categories.length }}} +
      + {{{each categories}}} + + {{{end}}} +
    + {{{ end }}} + + +
    \ No newline at end of file diff --git a/templates/partials/topic/navigation-post.tpl b/templates/partials/topic/navigation-post.tpl new file mode 100644 index 0000000..55140e0 --- /dev/null +++ b/templates/partials/topic/navigation-post.tpl @@ -0,0 +1,12 @@ + + +
    {post.content}
    \ No newline at end of file diff --git a/templates/partials/topic/post-editor.tpl b/templates/partials/topic/post-editor.tpl new file mode 100644 index 0000000..eca7e08 --- /dev/null +++ b/templates/partials/topic/post-editor.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/partials/topic/post.tpl b/templates/partials/topic/post.tpl new file mode 100644 index 0000000..93c3b93 --- /dev/null +++ b/templates/partials/topic/post.tpl @@ -0,0 +1,140 @@ +{{{ if (!./index && widgets.mainpost-header.length) }}} +
    + {{{ each widgets.mainpost-header }}} + {widgets.mainpost-header.html} + {{{ end }}} +
    +{{{ end }}} + +
    + + + +
    + + + {{{ each posts.user.selectedGroups }}} + {{{ if posts.user.selectedGroups.slug }}} + + {{{ end }}} + {{{ end }}} + + + [[user:banned]] + + + + {{{ if posts.toPid }}} + + {{{ end }}} + + + + | + {{{each posts.user.custom_profile_info}}} + {posts.user.custom_profile_info.content} + {{{end}}} + + + +
    + + + + + + + + + + +
    +
    +
    +
    + +
    + +
    + {posts.content} +
    + + +{{{ if (!./index && widgets.mainpost-footer.length) }}} +
    + {{{ each widgets.mainpost-footer }}} + {widgets.mainpost-footer.html} + {{{ end }}} +
    +{{{ end }}} \ No newline at end of file diff --git a/templates/partials/topic/quickreply.tpl b/templates/partials/topic/quickreply.tpl new file mode 100644 index 0000000..e5e362c --- /dev/null +++ b/templates/partials/topic/quickreply.tpl @@ -0,0 +1,27 @@ +{{{ if privileges.topics:reply }}} +
    + +
    + + +
    + +
    [[topic:composer.drag-and-drop-images]]
    +
    +
    +
    + + + +
    +
    +
    +
    + +
    +
    +{{{ end }}} diff --git a/templates/partials/topics_list.tpl b/templates/partials/topics_list.tpl new file mode 100644 index 0000000..061a3e6 --- /dev/null +++ b/templates/partials/topics_list.tpl @@ -0,0 +1,131 @@ + diff --git a/templates/partials/users/item.tpl b/templates/partials/users/item.tpl new file mode 100644 index 0000000..6afea6b --- /dev/null +++ b/templates/partials/users/item.tpl @@ -0,0 +1,41 @@ +
  • + {buildAvatar(users, "64px", true)} + + +
  • \ No newline at end of file