Add status property to content item structure (#44)

* Add status property to content item structure

This commit introduces a new `status` property to the content item structure, allowing content items to maintain a status such as 'draft', 'published', 'review', 'pending'. This status is mapped to the corresponding status in Wordpress and Keystatic clients to ensure consistent usage across platforms. Content retrieval methods now also include a status filter.

* Refactor code for style and readability improvements

This commit includes changes in various files across different packages to improve code readability, including adjusting spacing and breaking down complex lines into simpler parts. In addition, the switch statement in `wp-client.ts` has been refactored and status values are now held in variables, and the CSS classes in `global-loader.tsx` have been reorganized.
This commit is contained in:
Giancarlo Buomprisco
2024-07-11 15:06:15 +08:00
committed by GitHub
parent 21f42f14ce
commit 3393863dd2
16 changed files with 110 additions and 11 deletions

View File

@@ -3,6 +3,7 @@ title: "Authentication"
description: "Learn how to set up authentication in your MakerKit application."
publishedAt: 2024-04-11
order: 1
status: "published"
---
MakerKit uses Supabase to manage authentication within your application.

View File

@@ -4,6 +4,7 @@ description: "Learn how authentication works in MakerKit and how to configure it
publishedAt: 2024-04-11
order: 0
parent: "authentication/authentication"
status: "published"
---
The way you want your users to authenticate can be driven via configuration.

View File

@@ -3,6 +3,7 @@ title: "Getting started with Makerkit"
description: "Makerkit is a SaaS Starter Kit that helps you build a SaaS. Learn how to get started with Makerkit."
publishedAt: 2024-04-11
order: 0
status: "published"
---
Makerkit is a SaaS Starter Kit that helps you build a SaaS. It provides you with a set of tools and best practices to help you build a SaaS quickly and efficiently.

View File

@@ -4,6 +4,7 @@ description: "Learn how to install dependencies for your project."
publishedAt: 2024-04-11
parent: "getting-started/getting-started"
order: 0
status: "published"
---
To install dependencies in your project, please install `pnpm` by running the following command:

View File

@@ -5,6 +5,7 @@ categories: ['blog']
tags: []
image: "/images/posts/brainstorming.webp"
publishedAt: 2024-04-11
status: "published"
---
When it comes to choosing a SaaS starter kit for your business, it's essential to look for certain features that will ensure the smooth functioning and growth of your operations. Here are five must-have features that every SaaS starter kit should include:

View File

@@ -5,6 +5,7 @@ categories: []
tags: []
image: "/images/posts/indie-hacker.webp"
publishedAt: 2024-04-12
status: "published"
---
# Brainstorming Ideas for Your Next Micro SaaS

View File

@@ -5,6 +5,7 @@ categories: ['blog']
tags: []
image: "/images/posts/saas-starter-blog-post.webp"
publishedAt: 2024-04-10
status: "published"
---
In the dynamic world of entrepreneurship, the Software as a Service (SaaS) model has emerged as a beacon of opportunity for indie hackers individuals or small teams with big dreams of creating impactful software solutions. With the right tools and strategies, launching a successful SaaS startup is within reach for anyone with passion, dedication, and a clear vision. To empower aspiring entrepreneurs on this journey, we've curated a comprehensive starter kit tailored specifically for SaaS and indie hackers.