mirror of
https://github.com/glowingblue/flarum-ext-redis-setup.git
synced 2026-03-22 15:07:53 +01:00
chore: migrate to fof/redis, repo maintenance (#4)
* chore: migrate to fof/redis, repo maintenance * chore: newline * chore: use new fof horizon initializer * chore: revert initializer change Only changed for 2.x .. * chore: remove unused secrets Shouldn't have been added in the first place --------- Co-authored-by: Davide Iadeluca <146922689+DavideIadeluca@users.noreply.github.com> Co-authored-by: Davide Iadeluca <davide.iadeluca@glowingblue.com>
This commit is contained in:
@@ -36,7 +36,7 @@ app.initializers.add(slug, () => {
|
||||
label: t(`${prfx}.enable_queue`),
|
||||
});
|
||||
|
||||
if (app.initializers.has('blomstra/horizon')) {
|
||||
if (app.initializers.has('fof/horizon')) {
|
||||
app.extensionData.for(slug).registerSetting({
|
||||
setting: 'glowingblue-redis.horizonConfig',
|
||||
type: 'textarea',
|
||||
@@ -46,15 +46,16 @@ app.initializers.add(slug, () => {
|
||||
}
|
||||
|
||||
extend(StatusWidget.prototype, 'items', (items) => {
|
||||
const loads = app.data.blomstraQueuesLoad;
|
||||
const loads = app.data.fofQueuesLoad;
|
||||
|
||||
if (loads === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (let queue of app.data.blomstraQueuesSeen) {
|
||||
// @ts-ignore
|
||||
for (let queue of app.data.fofQueuesSeen) {
|
||||
const load = loads[queue] || null;
|
||||
items.add('blomstra-queue-size-' + queue, [
|
||||
items.add('fof-queue-size-' + queue, [
|
||||
<strong>Queue {queue}</strong>,
|
||||
<br />,
|
||||
load || '0',
|
||||
Reference in New Issue
Block a user