-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"export": "Export", | ||
"exporting": "Exporting" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
improve: '@apostrophecms/doc-type', | ||
|
||
init(self) { | ||
if (self.options.export === false) { | ||
return; | ||
} | ||
|
||
self.apos.doc.addContextOperation(self.__meta.name, { | ||
action: 'export', | ||
context: 'update', | ||
label: 'aposImportExport:export', | ||
modal: 'AposExportPiecesModal', | ||
Check failure on line 13 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (16, 4.4)
Check failure on line 13 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (18, 5.0)
Check failure on line 13 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (20, 5.0)
Check failure on line 13 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (16, 6.0)
Check failure on line 13 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (18, 4.4)
|
||
}); | ||
}, | ||
Check failure on line 15 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (16, 4.4)
Check failure on line 15 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (18, 5.0)
Check failure on line 15 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (20, 5.0)
Check failure on line 15 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (16, 6.0)
Check failure on line 15 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (18, 4.4)
|
||
} | ||
Check failure on line 16 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (16, 4.4)
Check failure on line 16 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (18, 5.0)
Check failure on line 16 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (20, 5.0)
Check failure on line 16 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (16, 6.0)
Check failure on line 16 in modules/@apostrophecms/import-export-doc-type/index.js GitHub Actions / build (18, 4.4)
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module.exports = { | ||
improve: '@apostrophecms/piece-type', | ||
|
||
cascades: ['batchOperations'], | ||
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 4.4)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 4.4)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 5.0)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 5.0)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (20, 5.0)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (20, 5.0)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 6.0)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 6.0)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 4.4)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 4.4)
Check warning on line 4 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (20, 6.0)
|
||
|
||
batchOperations(self) { | ||
if (self.options.export === false) { | ||
return; | ||
} | ||
|
||
return { | ||
add: { | ||
export: { | ||
label: 'aposImportExport:export', | ||
messages: { | ||
progress: 'aposImportExport:exporting' | ||
}, | ||
modal: 'AposExportPiecesModal', | ||
Check failure on line 18 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 4.4)
Check failure on line 18 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 5.0)
Check failure on line 18 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (20, 5.0)
Check failure on line 18 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 6.0)
Check failure on line 18 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 4.4)
|
||
} | ||
}, | ||
group: { | ||
more: { | ||
icon: 'dots-vertical-icon', | ||
operations: [ 'export' ] | ||
} | ||
} | ||
} | ||
Check failure on line 27 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 4.4)
Check failure on line 27 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 5.0)
Check failure on line 27 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (20, 5.0)
Check failure on line 27 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 6.0)
Check failure on line 27 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 4.4)
|
||
}, | ||
Check failure on line 28 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 4.4)
Check failure on line 28 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 5.0)
Check failure on line 28 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (20, 5.0)
Check failure on line 28 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 6.0)
Check failure on line 28 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 4.4)
|
||
} | ||
Check failure on line 29 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 4.4)
Check failure on line 29 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 5.0)
Check failure on line 29 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (20, 5.0)
Check failure on line 29 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (16, 6.0)
Check failure on line 29 in modules/@apostrophecms/import-export-piece-type/index.js GitHub Actions / build (18, 4.4)
|