mountain-ui 1.0.94 → 1.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mountain-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.95",
|
|
5
5
|
"description": "A comprehensive UI component library for ERP systems with field types, entities, and registry management built with Svelte",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "index.js",
|
|
@@ -44,11 +44,40 @@ export function createProject(config = {}) {
|
|
|
44
44
|
navigationRegistry.desableNavbar()
|
|
45
45
|
|
|
46
46
|
// récuperer les détails du projet
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
let requestData = null
|
|
48
|
+
let subscription_usage = null
|
|
49
|
+
try {
|
|
50
|
+
const request = await sendRequest({
|
|
51
|
+
path: '/get-subscription-project',
|
|
52
|
+
});
|
|
53
|
+
requestData = request.data
|
|
54
|
+
subscription_usage = {
|
|
55
|
+
users: requestData.users,
|
|
56
|
+
fields: requestData.fields,
|
|
57
|
+
constants: requestData.constants,
|
|
58
|
+
workflow_nodes: requestData.workflow_nodes,
|
|
59
|
+
emails: requestData.emails,
|
|
60
|
+
pdfs: requestData.pdfs,
|
|
61
|
+
subscription: {
|
|
62
|
+
status: requestData.subscription.status,
|
|
63
|
+
name: requestData.subscription.name,
|
|
64
|
+
description: requestData.subscription.description,
|
|
65
|
+
max_fields: requestData.subscription.max_fields,
|
|
66
|
+
max_constants: requestData.subscription.max_constants,
|
|
67
|
+
max_workflow_nodes: requestData.subscription.max_workflow_nodes,
|
|
68
|
+
max_logs: requestData.subscription.max_logs,
|
|
69
|
+
max_users: requestData.subscription.max_users,
|
|
70
|
+
max_emails: requestData.subscription.max_emails,
|
|
71
|
+
max_pdfs: requestData.subscription.max_pdfs,
|
|
72
|
+
paddle_subscription: requestData.subscription.paddle_subscription,
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
} catch (error) {
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
50
80
|
|
|
51
|
-
|
|
52
81
|
const newProject = createProject({
|
|
53
82
|
id: project.id,
|
|
54
83
|
name: project.name,
|
|
@@ -57,27 +86,7 @@ export function createProject(config = {}) {
|
|
|
57
86
|
active_subscription: {
|
|
58
87
|
name: project.active_subscription.name
|
|
59
88
|
},
|
|
60
|
-
subscription_usage
|
|
61
|
-
users: request.data.users,
|
|
62
|
-
fields: request.data.fields,
|
|
63
|
-
constants: request.data.constants,
|
|
64
|
-
workflow_nodes: request.data.workflow_nodes,
|
|
65
|
-
emails: request.data.emails,
|
|
66
|
-
pdfs: request.data.pdfs,
|
|
67
|
-
subscription: {
|
|
68
|
-
status: request.data.subscription.status,
|
|
69
|
-
name: request.data.subscription.name,
|
|
70
|
-
description: request.data.subscription.description,
|
|
71
|
-
max_fields: request.data.subscription.max_fields,
|
|
72
|
-
max_constants: request.data.subscription.max_constants,
|
|
73
|
-
max_workflow_nodes: request.data.subscription.max_workflow_nodes,
|
|
74
|
-
max_logs: request.data.subscription.max_logs,
|
|
75
|
-
max_users: request.data.subscription.max_users,
|
|
76
|
-
max_emails: request.data.subscription.max_emails,
|
|
77
|
-
max_pdfs: request.data.subscription.max_pdfs,
|
|
78
|
-
paddle_subscription: request.data.subscription.paddle_subscription,
|
|
79
|
-
}
|
|
80
|
-
}
|
|
89
|
+
subscription_usage
|
|
81
90
|
})
|
|
82
91
|
|
|
83
92
|
projectRegistry.register(newProject)
|
|
@@ -94,7 +103,7 @@ export function createProject(config = {}) {
|
|
|
94
103
|
await registerEntitiesFromProject(project.normalized_name)
|
|
95
104
|
|
|
96
105
|
await registerNavigation()
|
|
97
|
-
|
|
106
|
+
|
|
98
107
|
navigationRegistry.enableNavbar()
|
|
99
108
|
};
|
|
100
109
|
|
|
@@ -123,35 +132,35 @@ export function createProject(config = {}) {
|
|
|
123
132
|
const pdfsPercent = project.subscription_usage.pdfs / project.subscription_usage.subscription.max_pdfs * 100
|
|
124
133
|
|
|
125
134
|
return {
|
|
126
|
-
users:{
|
|
127
|
-
percent:usersPercent.toFixed(2),
|
|
128
|
-
number:project.subscription_usage.users,
|
|
129
|
-
max_number:project.subscription_usage.subscription.max_users,
|
|
135
|
+
users: {
|
|
136
|
+
percent: usersPercent.toFixed(2),
|
|
137
|
+
number: project.subscription_usage.users,
|
|
138
|
+
max_number: project.subscription_usage.subscription.max_users,
|
|
130
139
|
},
|
|
131
|
-
fields:{
|
|
132
|
-
percent:fieldsPercent.toFixed(2),
|
|
133
|
-
number:project.subscription_usage.fields,
|
|
134
|
-
max_number:project.subscription_usage.subscription.max_fields,
|
|
140
|
+
fields: {
|
|
141
|
+
percent: fieldsPercent.toFixed(2),
|
|
142
|
+
number: project.subscription_usage.fields,
|
|
143
|
+
max_number: project.subscription_usage.subscription.max_fields,
|
|
135
144
|
},
|
|
136
|
-
constants:{
|
|
137
|
-
percent:constantsPercent.toFixed(2),
|
|
138
|
-
number:project.subscription_usage.constants,
|
|
139
|
-
max_number:project.subscription_usage.subscription.max_constants,
|
|
145
|
+
constants: {
|
|
146
|
+
percent: constantsPercent.toFixed(2),
|
|
147
|
+
number: project.subscription_usage.constants,
|
|
148
|
+
max_number: project.subscription_usage.subscription.max_constants,
|
|
140
149
|
},
|
|
141
|
-
workflow_nodes:{
|
|
142
|
-
percent:workflow_nodesPercent.toFixed(2),
|
|
143
|
-
number:project.subscription_usage.workflow_nodes,
|
|
144
|
-
max_number:project.subscription_usage.subscription.max_workflow_nodes,
|
|
150
|
+
workflow_nodes: {
|
|
151
|
+
percent: workflow_nodesPercent.toFixed(2),
|
|
152
|
+
number: project.subscription_usage.workflow_nodes,
|
|
153
|
+
max_number: project.subscription_usage.subscription.max_workflow_nodes,
|
|
145
154
|
},
|
|
146
|
-
emails:{
|
|
147
|
-
percent:emailsPercent.toFixed(2),
|
|
148
|
-
number:project.subscription_usage.emails,
|
|
149
|
-
max_number:project.subscription_usage.subscription.max_emails,
|
|
155
|
+
emails: {
|
|
156
|
+
percent: emailsPercent.toFixed(2),
|
|
157
|
+
number: project.subscription_usage.emails,
|
|
158
|
+
max_number: project.subscription_usage.subscription.max_emails,
|
|
150
159
|
},
|
|
151
|
-
pdfs:{
|
|
152
|
-
percent:pdfsPercent.toFixed(2),
|
|
153
|
-
number:project.subscription_usage.pdfs,
|
|
154
|
-
max_number:project.subscription_usage.subscription.max_pdfs,
|
|
160
|
+
pdfs: {
|
|
161
|
+
percent: pdfsPercent.toFixed(2),
|
|
162
|
+
number: project.subscription_usage.pdfs,
|
|
163
|
+
max_number: project.subscription_usage.subscription.max_pdfs,
|
|
155
164
|
},
|
|
156
165
|
}
|
|
157
166
|
}
|