refactor: migrate client paths to EspoCRM module format
Move JS from client/custom/src/modules/{mod}/ to client/custom/modules/{mod}/src/
Move TPL to client/custom/modules/{mod}/res/templates/
Update all define(), createView(), and metadata references from
custom:modules/{mod}/... to modules/{mod}/...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
define('custom:modules/smart-assistant/views/case/modals/add-memory', ['views/modal'], function (ModalView) {
|
||||
define('modules/smart-assistant/views/case/modals/add-memory', ['views/modal'], function (ModalView) {
|
||||
|
||||
return ModalView.extend({
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
define('custom:modules/smart-assistant/views/dashlets/options/smart-assistant', ['views/dashlets/options/base'], function (BaseView) {
|
||||
define('modules/smart-assistant/views/dashlets/options/smart-assistant', ['views/dashlets/options/base'], function (BaseView) {
|
||||
|
||||
return BaseView.extend({
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
define('custom:modules/smart-assistant/views/dashlets/smart-assistant', ['view'], function (View) {
|
||||
define('modules/smart-assistant/views/dashlets/smart-assistant', ['view'], function (View) {
|
||||
|
||||
return View.extend({
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
define('custom:modules/smart-assistant/views/floating-chat', ['view'], function (View) {
|
||||
define('modules/smart-assistant/views/floating-chat', ['view'], function (View) {
|
||||
|
||||
return View.extend({
|
||||
|
||||
@@ -562,7 +562,7 @@ define('custom:modules/smart-assistant/views/floating-chat', ['view'], function
|
||||
if (!this.currentCaseId) return;
|
||||
var self = this;
|
||||
|
||||
this.createView('addMemoryModal', 'custom:modules/smart-assistant/views/case/modals/add-memory', {
|
||||
this.createView('addMemoryModal', 'modules/smart-assistant/views/case/modals/add-memory', {
|
||||
caseId: this.currentCaseId,
|
||||
}, function (view) {
|
||||
view.render();
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
define('custom:modules/smart-assistant/views/site/navbar', ['views/site/navbar'], function (NavbarView) {
|
||||
define('modules/smart-assistant/views/site/navbar', ['views/site/navbar'], function (NavbarView) {
|
||||
|
||||
return NavbarView.extend({
|
||||
|
||||
@@ -17,7 +17,7 @@ define('custom:modules/smart-assistant/views/site/navbar', ['views/site/navbar']
|
||||
$('body').append($container);
|
||||
}
|
||||
|
||||
this.createView('floatingChat', 'custom:modules/smart-assistant/views/floating-chat', {
|
||||
this.createView('floatingChat', 'modules/smart-assistant/views/floating-chat', {
|
||||
el: '.smart-assistant-fab-container',
|
||||
}, function (view) {
|
||||
view.render();
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
define('custom:modules/smart-assistant/views/stream/notes/smart-action', ['views/stream/note'], function (NoteView) {
|
||||
define('modules/smart-assistant/views/stream/notes/smart-action', ['views/stream/note'], function (NoteView) {
|
||||
|
||||
return NoteView.extend({
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
define('custom:modules/smart-assistant/views/stream/notes/smart-request', ['views/stream/note'], function (NoteView) {
|
||||
define('modules/smart-assistant/views/stream/notes/smart-request', ['views/stream/note'], function (NoteView) {
|
||||
|
||||
return NoteView.extend({
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
define('custom:modules/smart-assistant/views/stream/notes/smart-response', ['views/stream/note'], function (NoteView) {
|
||||
define('modules/smart-assistant/views/stream/notes/smart-response', ['views/stream/note'], function (NoteView) {
|
||||
|
||||
return NoteView.extend({
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"navbarView": "custom:modules/smart-assistant/views/site/navbar"
|
||||
"navbarView": "modules/smart-assistant/views/site/navbar"
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"view": "custom:modules/smart-assistant/views/dashlets/smart-assistant",
|
||||
"optionsView": "custom:modules/smart-assistant/views/dashlets/options/smart-assistant",
|
||||
"view": "modules/smart-assistant/views/dashlets/smart-assistant",
|
||||
"optionsView": "modules/smart-assistant/views/dashlets/options/smart-assistant",
|
||||
"aclScope": "Case"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user