Phase 1: Add ESLint/Prettier config + baseline auto-fixes
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = function(ctx) {
|
||||
if (!recipeGroups[service.recipeId]) {
|
||||
recipeGroups[service.recipeId] = {
|
||||
recipeId: service.recipeId,
|
||||
components: []
|
||||
components: [],
|
||||
};
|
||||
}
|
||||
recipeGroups[service.recipeId].components.push({
|
||||
@@ -25,7 +25,7 @@ module.exports = function(ctx) {
|
||||
logo: service.logo,
|
||||
containerId: service.containerId,
|
||||
recipeRole: service.recipeRole,
|
||||
deployedAt: service.deployedAt
|
||||
deployedAt: service.deployedAt,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ module.exports = function(ctx) {
|
||||
|
||||
// Check if this container is already listed (by containerId)
|
||||
const existing = recipeGroups[recipeId].components.find(
|
||||
c => c.containerId === containerInfo.Id
|
||||
c => c.containerId === containerInfo.Id,
|
||||
);
|
||||
if (existing) continue;
|
||||
|
||||
@@ -59,7 +59,7 @@ module.exports = function(ctx) {
|
||||
recipeRole: labels['sami.recipe.role'] || 'Unknown',
|
||||
internal: true,
|
||||
state: containerInfo.State,
|
||||
status: containerInfo.Status
|
||||
status: containerInfo.Status,
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
@@ -242,7 +242,7 @@ module.exports = function(ctx) {
|
||||
|
||||
ctx.notification.send('recipeRemoved', 'Recipe Removed',
|
||||
`Removed **${recipeId}** recipe (${results.filter(r => r.status === 'removed').length} containers).`,
|
||||
'info'
|
||||
'info',
|
||||
);
|
||||
|
||||
ctx.log.info('recipe', 'Recipe removed', { recipeId, results });
|
||||
@@ -271,7 +271,7 @@ module.exports = function(ctx) {
|
||||
Id: c.Id,
|
||||
component: c.Labels['sami.recipe.component'] || c.Names[0]?.replace('/', ''),
|
||||
role: c.Labels['sami.recipe.role'] || 'Unknown',
|
||||
state: c.State
|
||||
state: c.State,
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ module.exports = function(ctx) {
|
||||
*/
|
||||
async function removeCaddyBlock(subdomain) {
|
||||
const domain = ctx.buildDomain(subdomain);
|
||||
let content = await ctx.caddy.read();
|
||||
const content = await ctx.caddy.read();
|
||||
|
||||
// Find and remove the block for this domain
|
||||
const escapedDomain = domain.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||
|
||||
Reference in New Issue
Block a user