Procházet zdrojové kódy

fix: deleted sites response key and content filter dropdown

- Fix /api/sites/deleted returning {shops} instead of {sites}
- Add all 13 content categories to Content page filter dropdown
fszontagh před 3 měsíci
rodič
revize
ace92ec7b5

+ 2 - 2
src/api/components/SitesEndpoint.ts

@@ -946,9 +946,9 @@ export class SitesEndpoint extends BaseEndpointComponent {
         return;
         return;
       }
       }
 
 
-      const shops = this.db.getDeletedSites();
+      const sites = this.db.getDeletedSites();
 
 
-      res.json({ shops });
+      res.json({ sites });
     } catch (error) {
     } catch (error) {
       logger.error('Error listing deleted sites', error);
       logger.error('Error listing deleted sites', error);
       res.status(500).json({ error: 'Internal server error' });
       res.status(500).json({ error: 'Internal server error' });

+ 9 - 0
web/src/components/pages/ContentPage.ts

@@ -89,6 +89,15 @@ export class ContentPage {
                 <option value="contacts">Contacts</option>
                 <option value="contacts">Contacts</option>
                 <option value="terms">Terms & Conditions</option>
                 <option value="terms">Terms & Conditions</option>
                 <option value="faq">FAQ</option>
                 <option value="faq">FAQ</option>
+                <option value="services">Services</option>
+                <option value="about">About</option>
+                <option value="team">Team</option>
+                <option value="blog">Blog</option>
+                <option value="pricing">Pricing</option>
+                <option value="testimonials">Testimonials</option>
+                <option value="gallery">Gallery</option>
+                <option value="landing">Landing Pages</option>
+                <option value="other">Other</option>
               </select>
               </select>
             </div>
             </div>
             <div>
             <div>