Skip to content

Commit

Permalink
chore: rename app to Next CRM (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryan20 authored Nov 13, 2024
1 parent d049067 commit 05edc26
Show file tree
Hide file tree
Showing 239 changed files with 340 additions and 340 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ __pycache__
dev-dist
tags
node_modules
crm/public/frontend
next_crm/public/frontend
frontend/yarn.lock
crm/www/crm.html
build
next_crm/www/next-crm.html
build
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec", {
"prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" crm/__init__.py'
"prepareCmd": 'sed -ir "s/[0-9]*\.[0-9]*\.[0-9]*/${nextRelease.version}/" next_crm/__init__.py'
}
],
[
"@semantic-release/git", {
"assets": ["crm/__init__.py"],
"assets": ["next_crm/__init__.py"],
"message": "chore(release): Bumped to Version ${nextRelease.version}"
}
],
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ Get started with your personal or business site with a few clicks on [Frappe Clo

### Docker (Recommended)

The quickest way to set up Frappe CRM and take it for a test ride.
The quickest way to set up Next CRM and take it for a test ride.

Frappe framework is multi-tenant and supports multiple apps by default. This docker compose is just a standalone version with Frappe CRM pre-installed. Just put it behind your desired reverse-proxy if needed, and you're good to go.
Frappe framework is multi-tenant and supports multiple apps by default. This docker compose is just a standalone version with Next CRM pre-installed. Just put it behind your desired reverse-proxy if needed, and you're good to go.

If you wish to use multiple Frappe apps or need multi-tenancy. Take a look at our production ready self-hosted workflow, or join us on Frappe Cloud to get first party support and hassle-free hosting.

Expand All @@ -68,7 +68,7 @@ Docker Compose File:

wget -O docker-compose.yml https://raw.githubusercontent.com/frappe/crm/develop/docker/docker-compose.yml

Frappe CRM bench setup script
Next CRM bench setup script

wget -O init.sh https://raw.githubusercontent.com/frappe/crm/develop/docker/init.sh

Expand Down Expand Up @@ -99,7 +99,7 @@ If you prefer self-hosting, follow the official [Frappe Bench Installation](http
### Local Setup

1. [Install Bench](https://github.com/frappe/bench).
2. Install Frappe CRM app:
2. Install Next CRM app:
```sh
$ bench get-app crm
```
Expand Down
1 change: 0 additions & 1 deletion crm/modules.txt

This file was deleted.

11 changes: 0 additions & 11 deletions crm/patches.txt

This file was deleted.

5 changes: 0 additions & 5 deletions crm/patches/v1_0/create_default_fields_layout.py

This file was deleted.

5 changes: 0 additions & 5 deletions crm/patches/v1_0/create_email_template_custom_fields.py

This file was deleted.

2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: "3.7"
name: crm
name: next_crm
services:
mariadb:
image: mariadb:10.8
Expand Down
2 changes: 1 addition & 1 deletion docker/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ bench new-site crm.localhost \
--admin-password admin \
--no-mariadb-socket

bench --site crm.localhost install-app crm
bench --site crm.localhost install-app next_crm
bench --site crm.localhost set-config developer_mode 1
bench --site crm.localhost clear-cache
bench --site crm.localhost set-config mute_emails 1
Expand Down
76 changes: 38 additions & 38 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,191 +6,191 @@
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover maximum-scale=1.0, user-scalable=no"
/>
<title>Frappe CRM</title>
<title>Next CRM</title>
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Frappe CRM" />
<meta name="apple-mobile-web-app-title" content="Next CRM" />
<meta name="apple-mobile-web-app-status-bar-style" content="white" />

<!-- PWA -->
<link
rel="icon"
type="image/png"
sizes="196x196"
href="/assets/crm/manifest/apple-icon-180.png"
href="/assets/next_crm/manifest/apple-icon-180.png"
/>
<link
rel="apple-touch-icon"
href="/assets/crm/manifest/apple-icon-180.png"
href="/assets/next_crm/manifest/apple-icon-180.png"
/>

<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2048-2732.jpg"
href="/assets/next_crm/manifest/apple-splash-2048-2732.jpg"
media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2732-2048.jpg"
href="/assets/next_crm/manifest/apple-splash-2732-2048.jpg"
media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1668-2388.jpg"
href="/assets/next_crm/manifest/apple-splash-1668-2388.jpg"
media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2388-1668.jpg"
href="/assets/next_crm/manifest/apple-splash-2388-1668.jpg"
media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1536-2048.jpg"
href="/assets/next_crm/manifest/apple-splash-1536-2048.jpg"
media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2048-1536.jpg"
href="/assets/next_crm/manifest/apple-splash-2048-1536.jpg"
media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1488-2266.jpg"
href="/assets/next_crm/manifest/apple-splash-1488-2266.jpg"
media="(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2266-1488.jpg"
href="/assets/next_crm/manifest/apple-splash-2266-1488.jpg"
media="(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1640-2360.jpg"
href="/assets/next_crm/manifest/apple-splash-1640-2360.jpg"
media="(device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2360-1640.jpg"
href="/assets/next_crm/manifest/apple-splash-2360-1640.jpg"
media="(device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1668-2224.jpg"
href="/assets/next_crm/manifest/apple-splash-1668-2224.jpg"
media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2224-1668.jpg"
href="/assets/next_crm/manifest/apple-splash-2224-1668.jpg"
media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1620-2160.jpg"
href="/assets/next_crm/manifest/apple-splash-1620-2160.jpg"
media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2160-1620.jpg"
href="/assets/next_crm/manifest/apple-splash-2160-1620.jpg"
media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1290-2796.jpg"
href="/assets/next_crm/manifest/apple-splash-1290-2796.jpg"
media="(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2796-1290.jpg"
href="/assets/next_crm/manifest/apple-splash-2796-1290.jpg"
media="(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1179-2556.jpg"
href="/assets/next_crm/manifest/apple-splash-1179-2556.jpg"
media="(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2556-1179.jpg"
href="/assets/next_crm/manifest/apple-splash-2556-1179.jpg"
media="(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1284-2778.jpg"
href="/assets/next_crm/manifest/apple-splash-1284-2778.jpg"
media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2778-1284.jpg"
href="/assets/next_crm/manifest/apple-splash-2778-1284.jpg"
media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1170-2532.jpg"
href="/assets/next_crm/manifest/apple-splash-1170-2532.jpg"
media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2532-1170.jpg"
href="/assets/next_crm/manifest/apple-splash-2532-1170.jpg"
media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1125-2436.jpg"
href="/assets/next_crm/manifest/apple-splash-1125-2436.jpg"
media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2436-1125.jpg"
href="/assets/next_crm/manifest/apple-splash-2436-1125.jpg"
media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1242-2688.jpg"
href="/assets/next_crm/manifest/apple-splash-1242-2688.jpg"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2688-1242.jpg"
href="/assets/next_crm/manifest/apple-splash-2688-1242.jpg"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-828-1792.jpg"
href="/assets/next_crm/manifest/apple-splash-828-1792.jpg"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1792-828.jpg"
href="/assets/next_crm/manifest/apple-splash-1792-828.jpg"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1242-2208.jpg"
href="/assets/next_crm/manifest/apple-splash-1242-2208.jpg"
media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-2208-1242.jpg"
href="/assets/next_crm/manifest/apple-splash-2208-1242.jpg"
media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-750-1334.jpg"
href="/assets/next_crm/manifest/apple-splash-750-1334.jpg"
media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1334-750.jpg"
href="/assets/next_crm/manifest/apple-splash-1334-750.jpg"
media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-640-1136.jpg"
href="/assets/next_crm/manifest/apple-splash-640-1136.jpg"
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
/>
<link
rel="apple-touch-startup-image"
href="/assets/crm/manifest/apple-splash-1136-640.jpg"
href="/assets/next_crm/manifest/apple-splash-1136-640.jpg"
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)"
/>
</head>
Expand Down
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build --base=/assets/crm/frontend/ && yarn copy-html-entry",
"copy-html-entry": "cp ../crm/public/frontend/index.html ../crm/www/crm.html",
"build": "vite build --base=/assets/next_crm/frontend/ && yarn copy-html-entry",
"copy-html-entry": "cp ../next_crm/public/frontend/index.html ../next_crm/www/next-crm.html",
"serve": "vite preview"
},
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/Activities/Activities.vue
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ const changeTabTo = (tabName) => {
}
const all_activities = createResource({
url: 'crm.api.activities.get_activities',
url: 'next_crm.api.activities.get_activities',
params: { name: doc.value.data.name },
cache: ['activity', doc.value.data.name],
auto: true,
Expand Down Expand Up @@ -588,7 +588,7 @@ const all_activities = createResource({
const showWhatsappTemplates = ref(false)
const whatsappMessages = createResource({
url: 'crm.api.whatsapp.get_whatsapp_messages',
url: 'next_crm.api.whatsapp.get_whatsapp_messages',
cache: ['whatsapp_messages', doc.value.data.name],
params: {
reference_doctype: props.doctype,
Expand Down Expand Up @@ -626,7 +626,7 @@ function sendTemplate(template) {
showWhatsappTemplates.value = false
capture('send_whatsapp_template', { doctype: props.doctype })
createResource({
url: 'crm.api.whatsapp.send_whatsapp_template',
url: 'next_crm.api.whatsapp.send_whatsapp_template',
params: {
reference_doctype: props.doctype,
reference_name: doc.value.data.name,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Activities/NoteArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const { getUser } = usersStore()
async function deleteNote(name) {
await call('frappe.client.delete', {
doctype: 'FCRM Note',
doctype: 'NCRM Note',
name,
})
notes.reload()
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Activities/WhatsAppArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const reaction = ref(true)
function reactOnMessage(name, emoji) {
createResource({
url: 'crm.api.whatsapp.react_on_whatsapp_message',
url: 'next_crm.api.whatsapp.react_on_whatsapp_message',
params: {
emoji,
reply_to_name: name,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Activities/WhatsAppBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function sendWhatsAppMessage() {
whatsapp.value.content_type = 'text'
reply.value = {}
createResource({
url: 'crm.api.whatsapp.create_whatsapp_message',
url: 'next_crm.api.whatsapp.create_whatsapp_message',
params: args,
auto: true,
})
Expand Down
Loading

0 comments on commit 05edc26

Please sign in to comment.