Skip to content

Commit

Permalink
🐞 fix: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shurco committed Sep 9, 2023
1 parent 3c6c2c2 commit dc85192
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
Binary file modified .github/media/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## 🛒  What is litecart?

Litecart is an open source hopping-cart in 1 file of embedded database (SQLite), convenient dashboard UI and simple site.
Litecart is an open source shopping-cart in 1 file of embedded database (SQLite), convenient dashboard UI and simple site.

> ⚠️  Current major version is zero (`v0.x.x`) to accommodate rapid development and fast iteration while getting early feedback from users. Please keep in mind that litecart is still under active development and therefore full backward compatibility is not guaranteed before reaching v1.0.0.
Expand Down
4 changes: 3 additions & 1 deletion internal/routes/api_private_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ func ApiPrivateRoutes(c *fiber.App) {
settings.Patch("/", handlers.UpdateSettings)
settings.Get("/:setting_key", handlers.SettingByKey)
settings.Patch("/:setting_key", handlers.UpdateSettingByKey)
settings.Get("/test/mail", handlers.TestMail)

settingsTest := settings.Group("/test")
settingsTest.Get("/mail", handlers.TestMail)

pages := c.Group("/api/_/pages", middleware.JWTProtected())
pages.Get("/", handlers.Pages)
Expand Down
1 change: 1 addition & 0 deletions web/admin/src/components/form/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const colors = {
green: ["bg-green-600", "bg-green-500"],
yellow: ["bg-yellow-600", "bg-yellow-500"],
red: ["bg-red-600", "bg-red-500"],
cyan: ["bg-cyan-600", "bg-cyan-500"],
}
</script>

Expand Down
3 changes: 2 additions & 1 deletion web/admin/src/components/product/Digital.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ const deleteDigital = async (type, index) => {
const addDigitalData = async () => {
apiPost(`/api/_/products/${props.product.info.id}/digital`).then(res => {
if (res.success) {
digital.value.data.push(data.result);
digital.value.data.push(res.result);
} else {
showMessage(res.result, "connextError");
}
Expand Down

0 comments on commit dc85192

Please sign in to comment.