kempo 4.2.25 → 4.2.27
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/bin/cli.js
CHANGED
|
@@ -97,7 +97,7 @@ if(existsSync(join(projectDir, 'public'))){
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
const { action } = await inquirer.prompt([{
|
|
100
|
-
type: '
|
|
100
|
+
type: 'select',
|
|
101
101
|
name: 'action',
|
|
102
102
|
message: 'An existing Kempo project was detected. What would you like to do?',
|
|
103
103
|
choices: [
|
|
@@ -155,7 +155,7 @@ let customDatabaseUrl = null;
|
|
|
155
155
|
|
|
156
156
|
if(existingContainers.length > 0 && !useDefaults){
|
|
157
157
|
const { containerChoice } = await inquirer.prompt([{
|
|
158
|
-
type: '
|
|
158
|
+
type: 'select',
|
|
159
159
|
name: 'containerChoice',
|
|
160
160
|
message: 'Found existing PostgreSQL containers. Select one or create new:',
|
|
161
161
|
choices: [
|
|
@@ -194,7 +194,7 @@ if(containerMode === 'new' && !useDefaults){
|
|
|
194
194
|
containerName = name;
|
|
195
195
|
|
|
196
196
|
const { passwordChoice } = await inquirer.prompt([{
|
|
197
|
-
type: '
|
|
197
|
+
type: 'select',
|
|
198
198
|
name: 'passwordChoice',
|
|
199
199
|
message: 'Database password:',
|
|
200
200
|
choices: [
|
|
@@ -259,7 +259,7 @@ let emailServiceSkipped = false;
|
|
|
259
259
|
|
|
260
260
|
if(!useDefaults){
|
|
261
261
|
const { emailService } = await inquirer.prompt([{
|
|
262
|
-
type: '
|
|
262
|
+
type: 'select',
|
|
263
263
|
name: 'emailService',
|
|
264
264
|
message: 'Email service:',
|
|
265
265
|
choices: [
|
|
@@ -512,3 +512,9 @@ Then open:
|
|
|
512
512
|
http://localhost:9876 (your site)
|
|
513
513
|
http://localhost:9876/admin (admin panel)
|
|
514
514
|
`);
|
|
515
|
+
|
|
516
|
+
/*
|
|
517
|
+
createUser/addUserToGroup hold open the postgres client's connection (no idle_timeout is
|
|
518
|
+
configured), so without this the process never exits on its own once setup finishes.
|
|
519
|
+
*/
|
|
520
|
+
process.exit(0);
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
const myPerms = new Set(permData?.permissions ?? []);
|
|
94
94
|
|
|
95
95
|
const fields = [
|
|
96
|
-
{ name: '
|
|
96
|
+
{ name: 'locked', label: '', size: 40, calculator: r => r.locked ? html`<k-icon name="lock"></k-icon>` : html`` },
|
|
97
97
|
{ name: 'name', label: 'Name', size: 200 },
|
|
98
98
|
{ name: 'file', label: 'File', size: 300 },
|
|
99
99
|
{ name: 'author', label: 'Author', size: 150 },
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
Toast.error(error.msg || 'Failed to load fragments');
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
const toEditPath = f => ({ ...f, editPath: f.file.replace(/\.fragment\.html$/, '')
|
|
119
|
+
const toEditPath = f => ({ ...f, editPath: f.file.replace(/\.fragment\.html$/, '') });
|
|
120
120
|
const custom = data.fragments.filter(f => f.owner === 'custom').map(toEditPath);
|
|
121
121
|
const extension = data.fragments.filter(f => f.owner !== 'custom' && f.owner !== 'system').map(toEditPath);
|
|
122
122
|
const system = data.fragments.filter(f => f.owner === 'system').map(toEditPath);
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
const myPerms = new Set(permData?.permissions ?? []);
|
|
95
95
|
|
|
96
96
|
const fields = [
|
|
97
|
-
{ name: '
|
|
97
|
+
{ name: 'locked', label: '', size: 40, calculator: r => r.locked ? html`<k-icon name="lock"></k-icon>` : html`` },
|
|
98
98
|
{ name: 'name', label: 'Name', size: 200 },
|
|
99
99
|
{ name: 'location', label: 'Location', size: 150 },
|
|
100
100
|
{ name: 'priority', label: 'Priority', size: 80 },
|
|
@@ -112,17 +112,15 @@
|
|
|
112
112
|
const $extensionTable = document.getElementById('extensionTable');
|
|
113
113
|
const $systemTable = document.getElementById('systemTable');
|
|
114
114
|
|
|
115
|
-
const addBadge = e => ({ ...e, lockedBadge: e.locked ? '<k-icon name="lock"></k-icon>' : '' });
|
|
116
|
-
|
|
117
115
|
const loadEntries = async () => {
|
|
118
116
|
const [error, data] = await listGlobalContent();
|
|
119
117
|
if(error){
|
|
120
118
|
Toast.error(error.msg || 'Failed to load global content');
|
|
121
119
|
return;
|
|
122
120
|
}
|
|
123
|
-
const custom = data.entries.filter(e => e.owner === 'custom')
|
|
124
|
-
const extension = data.entries.filter(e => e.owner !== 'custom' && e.owner !== 'system')
|
|
125
|
-
const system = data.entries.filter(e => e.owner === 'system')
|
|
121
|
+
const custom = data.entries.filter(e => e.owner === 'custom');
|
|
122
|
+
const extension = data.entries.filter(e => e.owner !== 'custom' && e.owner !== 'system');
|
|
123
|
+
const system = data.entries.filter(e => e.owner === 'system');
|
|
126
124
|
$customTable.setData({ records: custom, fields });
|
|
127
125
|
$extensionTable.setData({ records: extension, fields: extensionFields });
|
|
128
126
|
$systemTable.setData({ records: system, fields });
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
const myPerms = new Set(permData?.permissions ?? []);
|
|
124
124
|
|
|
125
125
|
const fields = [
|
|
126
|
-
{ name: '
|
|
126
|
+
{ name: 'locked', label: '', size: 40, calculator: r => r.locked ? html`<k-icon name="lock"></k-icon>` : html`` },
|
|
127
127
|
{ name: 'name', label: 'Name', size: 150 },
|
|
128
128
|
{ name: 'directory', label: 'Directory', size: 200 },
|
|
129
129
|
{ name: 'author', label: 'Author', size: 150 },
|
|
@@ -149,8 +149,7 @@
|
|
|
149
149
|
const toEditPath = t => ({
|
|
150
150
|
...t,
|
|
151
151
|
directory: t.directory === '.' ? '/' : t.directory,
|
|
152
|
-
editPath: (t.directory === '.' ? t.name : `${t.directory}/${t.name}`)
|
|
153
|
-
lockedBadge: t.locked ? '<k-icon name="lock"></k-icon>' : ''
|
|
152
|
+
editPath: (t.directory === '.' ? t.name : `${t.directory}/${t.name}`)
|
|
154
153
|
});
|
|
155
154
|
const custom = data.templates.filter(t => t.owner === 'custom').map(toEditPath);
|
|
156
155
|
const extension = data.templates.filter(t => t.owner !== 'custom' && t.owner !== 'system').map(toEditPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kempo",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A fullstack CMS framework for creating websites with user authentication",
|
|
6
6
|
"scripts": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dotenv": "^17.2.3",
|
|
50
50
|
"drizzle-kit": "^0.31.7",
|
|
51
51
|
"drizzle-orm": "^0.45.2",
|
|
52
|
-
"inquirer": "^
|
|
52
|
+
"inquirer": "^14.0.2",
|
|
53
53
|
"lexical": "0.43.0",
|
|
54
54
|
"monaco-editor": "^0.56.0",
|
|
55
55
|
"postgres": "^3.4.7",
|