From 83711829d0107ef5c88d45fe8fc3ede36611596b Mon Sep 17 00:00:00 2001 From: Corwin Date: Fri, 28 Jul 2023 09:56:19 +0200 Subject: [PATCH] fix: update create a theme docs --- content/docs/customization/create-a-theme.md | 107 ++----------------- 1 file changed, 9 insertions(+), 98 deletions(-) diff --git a/content/docs/customization/create-a-theme.md b/content/docs/customization/create-a-theme.md index bef4d69..88bf44f 100644 --- a/content/docs/customization/create-a-theme.md +++ b/content/docs/customization/create-a-theme.md @@ -6,116 +6,27 @@ toc: true Creating a theme is really easy. We will show you how to create a theme in this guide. ## Prerequisites + - A working Paymenter installation - Knowledge of HTML, CSS ## Create a theme + ### Step 1: Create a new folder + Create a new folder in the `themes` folder. The name of the folder will be the name of your theme. ### Step 2: Edit the files you want to edit + Check below for the folder structure of a theme. ## Folder structure -``` -themes -└───my-theme - │ - └───views - ├── welcome.blade.php - ├── product.blade.php - ├── layouts - │ ├── app.blade.php - │ ├── navigation.blade.php - │ ├── sidenavigation.blade.php - │ ├── guest.blade.php - │ ├── admin.blade.php - │ ├── adminnavigation.blade.php - │ └── adminsideavigation.blade.php - ├── components - │ ├── success.blade.php - │ ├── sidebar-navigation-item.blade.php - │ ├── application-logo.blade.php - │ └── auth-validation-errors.blade.php - ├── clients - │ ├── home.blade.php - │ ├── profile.blade.php - │ ├── tickets - │ │ ├── index.blade.php - │ │ ├── create.blade.php - │ │ └── show.blade.php - │ ├── invoice - │ │ └── show.blade.php - │ └── products - │ └── view.blade.php - ├── checkout - │ ├── index.blade.php - │ └── config.blade.php - ├── admin - │ ├── index.blade.php - │ ├── products - │ │ ├── index.blade.php - │ │ ├── create.blade.php - │ │ ├── edit.blade.php - │ │ └── extension.blade.php - │ ├── clients - │ │ ├── index.blade.php - │ │ ├── create.blade.php - │ │ └── edit.blade.php - │ ├── tickets - │ │ ├── index.blade.php - │ │ ├── create.blade.php - │ │ └── show.blade.php - │ ├── orders - │ │ └── index.blade.php - │ ├── extensions - │ │ ├── index.blade.php - │ │ └── edit.blade.php - │ ├── settings - │ │ ├── index.blade.php - │ │ └── settings - │ │ ├── general.blade.php - │ │ ├── login.blade.php - │ │ ├── security.blade.php - │ │ └── mail.blade.php - │ └── categories - │ ├── index.blade.php - │ ├── create.blade.php - │ └── edit.blade.php - └── auth - ├── login.blade.php - ├── register.blade.php - ├── verify-email.blade.php - └── passwords - ├── change-password.blade.php - ├── confirm.blade.php - ├── forgot.blade.php - └── reset.blade.php - -``` - -## API endpoints (usable for react) - -**Client** - -`GET` - `/v1/users` Get user info - -`GET` - `/v1/tickets` get all tickets - -`POST` - `/v1/tickets` create ticket - -`GET` - `/v1/tickets/{ticketId}` get ticket by id - -`DELETE` - `/v1/tickets/{ticketId}` close ticket - -`PUT` - `/v1/tickets/{ticketId}/reply` reply to ticket - -`GET` - `/v1/invoices` get all invoices -`GET` - `/v1/invoices/{invoiceId}` get invoice by id +You can find all the files you can edit in the `themes` folder. Checkout [this](https://github.com/Paymenter/Paymenter/tree/master/themes/default) folder for an example. -`GET` - `/v1/invoices/{invoiceId}/pay` pay invoice +## API endpoints -**Website** +Paymenter has a lot of API endpoints. You can use them to create your own custom integrations. -`GET` - `/v1/products` get all products +Checkout the API documentation for clients [here](https://paymenter.org/api/clients/). +Checkout the API documentation for admins [here](https://paymenter.org/api/admin/). \ No newline at end of file