Skip to content

Commit

Permalink
chore(examples): move app-crm to refine-ee
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz committed Oct 3, 2024
1 parent 2f4fc5b commit 474539e
Show file tree
Hide file tree
Showing 250 changed files with 124 additions and 26,685 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/example-previews-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- "examples/finefoods-antd/**"
- "examples/finefoods-client/**"
- "examples/finefoods-material-ui/**"
- "examples/app-crm/**"
- "examples/pixels/**"
- "examples/invoicer/**"
types:
Expand All @@ -24,25 +23,24 @@ jobs:
examples: ${{ steps.filter.outputs.changes }}
all_examples: ${{ steps.deploy-previews-label.outputs.all_examples }}
steps:
- uses: actions/checkout@v4
- name: Get PR labels
id: pr-labels
uses: joerick/[email protected]
- name: 'Check deploy previews label'
if: ${{ contains(steps.pr-labels.outputs.labels, ' deploy-previews ') }}
id: deploy-previews-label
run: echo 'all_examples=["finefoods-antd", "finefoods-client", "finefoods-material-ui", "app-crm", "pixels", "invoicer"]' >> $GITHUB_OUTPUT
- uses: dorny/paths-filter@v3
if: ${{ !contains(steps.pr-labels.outputs.labels, ' deploy-previews ') }}
id: filter
with:
filters: |
'finefoods-antd': 'examples/finefoods-antd/**'
'finefoods-client': 'examples/finefoods-client/**'
'finefoods-material-ui': 'examples/finefoods-material-ui/**'
'app-crm': 'examples/app-crm/**'
'pixels': 'examples/pixels/**'
'invoicer': 'examples/invoicer/**'
- uses: actions/checkout@v4
- name: Get PR labels
id: pr-labels
uses: joerick/[email protected]
- name: "Check deploy previews label"
if: ${{ contains(steps.pr-labels.outputs.labels, ' deploy-previews ') }}
id: deploy-previews-label
run: echo 'all_examples=["finefoods-antd", "finefoods-client", "finefoods-material-ui", "app-crm", "pixels", "invoicer"]' >> $GITHUB_OUTPUT
- uses: dorny/paths-filter@v3
if: ${{ !contains(steps.pr-labels.outputs.labels, ' deploy-previews ') }}
id: filter
with:
filters: |
'finefoods-antd': 'examples/finefoods-antd/**'
'finefoods-client': 'examples/finefoods-client/**'
'finefoods-material-ui': 'examples/finefoods-material-ui/**'
'pixels': 'examples/pixels/**'
'invoicer': 'examples/invoicer/**'
deploy_previews:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion documentation/blog/2023-03-22-react-admin-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Overall, the Refine CRM admin template is an excellent choice for businesses tha

**Live example:** https://example.crm.refine.dev/

**Source code**: https://github.com/refinedev/refine/tree/master/examples/app-crm
**Template**: https://refine.dev/templates/crm-application/

## 2. Elstar

Expand Down
16 changes: 15 additions & 1 deletion documentation/blog/2023-10-02-refine-crm-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ I want to introduce our newest example app – a full-fledged React CRM (Custome

👉 [Live Demo](https://example.crm.refine.dev/)

👉 [You can find the source code on GitHub here](https://github.com/refinedev/refine/tree/master/examples/app-crm)
👉 [Template](https://refine.dev/templates/crm-application/)

This example is open-source, which means anyone can freely utilize and customize the source code as they see fit. It's not just another application; it's a comprehensive solution that boasts all the features and functionalities required for an accurate enterprise-level application.

Expand All @@ -33,10 +33,24 @@ We'll explore the key features of our CRM app, the technologies we used, and how

Step we'll cover:

- [Introduction](#introduction)
- [Key Features of the CRM App](#key-features-of-the-crm-app)
- [Dashboard](#dashboard)
- [Calendar Integration](#calendar-integration)
- [Scrumboard-Project Kanban](#scrumboard-project-kanban)
- [Sales Pipeline](#sales-pipeline)
- [Companies](#companies)
- [Contacts](#contacts)
- [Quotes](#quotes)
- [Administration](#administration)
- [Authentication \& Authorization](#authentication--authorization)
- [Technologies Used](#technologies-used)
- [1. Refine](#1-refine)
- [2. Ant Design](#2-ant-design)
- [3. GraphQL](#3-graphql)
- [Best Practices and Ecosystem Integration](#best-practices-and-ecosystem-integration)
- [Where Can You Use This CRM As A Reference Template?](#where-can-you-use-this-crm-as-a-reference-template)
- [Conclusion](#conclusion)

## Key Features of the CRM App

Expand Down
2 changes: 1 addition & 1 deletion documentation/blog/2024-03-26-react-hook-form.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ Notice, we have multiple validation rules for the `content` field. React Hook Fo

### Handling Submission in React Hook Formxx

In React Hook Form, registered field data are accummulated in a `data` object with their `name` and field values. We handle submission of the form data with the `handleSubmit` method of the form instance.
In React Hook Form, registered field data are accumulated in a `data` object with their `name` and field values. We handle submission of the form data with the `handleSubmit` method of the form instance.

Let's now deal with submitting the data by making changes to the form we have so far. Update the `App.js` to the following code with `formInstance.handleSubmit` passed to `onSubmit` event on `<form>` element:

Expand Down
2 changes: 1 addition & 1 deletion documentation/blog/2024-07-23-react-dashboard-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ npm create refine-app@latest

- GitHub stars: +27K
- License: MIT
- Links: [Demo](https://example.crm.refine.dev/) | [Documentation](https://refine.dev/tutorial) | [GitHub](https://github.com/refinedev/refine/tree/master/examples/app-crm)
- Links: [Demo](https://example.crm.refine.dev/) | [Documentation](https://refine.dev/tutorial) | [Template](https://refine.dev/templates/crm-application/)

## Ant Design pro

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Ant Design removed `less`, uses and recommends `CSS-in-JS` instead. You need to

### Compile errors

Some users repored ([issue#1](https://discord.com/channels/837692625737613362/1056236230641209396/1056236230641209396), [issue#2](https://discord.com/channels/837692625737613362/1056592183702061177/1056592183702061177)) compile errors after upgrading from `@refinedev/[email protected]` to `@refinedev/[email protected]`. They also provided solutions.
Some users reported ([issue#1](https://discord.com/channels/837692625737613362/1056236230641209396/1056236230641209396), [issue#2](https://discord.com/channels/837692625737613362/1056592183702061177/1056592183702061177)) compile errors after upgrading from `@refinedev/[email protected]` to `@refinedev/[email protected]`. They also provided solutions.

#### Solution 1

Expand Down
1 change: 1 addition & 0 deletions examples/app-crm-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"classnames": "^2.3.2",
"cross-env": "^7.0.3",
"dayjs": "^1.10.7",
"graphql": "^15.6.1",
"graphql-tag": "^2.12.6",
"graphql-ws": "^5.9.1",
"react": "^18.0.0",
Expand Down
28 changes: 0 additions & 28 deletions examples/app-crm/.eslintrc

This file was deleted.

23 changes: 0 additions & 23 deletions examples/app-crm/.gitignore

This file was deleted.

2 changes: 2 additions & 0 deletions examples/app-crm/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
> 🚨 This example has been moved to the Enterprise Edition. However, we still have a version available for the Community Edition. You can check it out [here](https://github.com/refinedev/refine/tree/master/examples/app-crm-minimal).
[![Cover Image](https://refine.ams3.cdn.digitaloceanspaces.com/example-readmes/CRM/crm-readme-temp.png "Cover Image")](https://github.com/refinedev/refine)

<div align="center">
Expand Down
19 changes: 0 additions & 19 deletions examples/app-crm/codegen.ts

This file was deleted.

37 changes: 0 additions & 37 deletions examples/app-crm/graphql.config.ts

This file was deleted.

13 changes: 0 additions & 13 deletions examples/app-crm/index.html

This file was deleted.

30 changes: 0 additions & 30 deletions examples/app-crm/jest.config.js

This file was deleted.

24 changes: 0 additions & 24 deletions examples/app-crm/jest.setup.ts

This file was deleted.

4 changes: 0 additions & 4 deletions examples/app-crm/netlify.toml

This file was deleted.

Loading

0 comments on commit 474539e

Please sign in to comment.