File tree Expand file tree Collapse file tree 8 files changed +2512
-1943
lines changed
Expand file tree Collapse file tree 8 files changed +2512
-1943
lines changed Original file line number Diff line number Diff line change 22 "name" : " @statamic-backup/client" ,
33 "type" : " module" ,
44 "scripts" : {
5- "dev" : " vite build --watch --mode development " ,
5+ "dev" : " vite" ,
66 "build" : " vite build"
77 },
88 "devDependencies" : {
9- "@statamic/cms" : " file:./../vendor/statamic/cms/resources/js/ package" ,
9+ "@statamic/cms" : " file:./../vendor/statamic/cms/resources/dist- package" ,
1010 "laravel-vite-plugin" : " ^2.0.0" ,
11- "vite" : " npm:rolldown-vite@latest "
11+ "vite" : " ^7.1.12 "
1212 },
1313 "dependencies" : {
1414 "resumablejs" : " ^1.1.0"
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import { useBackupStore } from "../store";
55import { ref , watch } from " vue" ;
66import { useResumable } from " ../resumable" ;
77
8- const props = defineProps ([" chunkSize" ]);
9-
108const backupStore = useBackupStore ();
119
1210const listing = ref (null );
@@ -15,7 +13,7 @@ const dropZone = ref(null);
1513const browseTarget = ref (null );
1614
1715const { files } = useResumable ({
18- chunkSize: props . chunkSize ?? 2 * 1024 * 1024 ,
16+ chunkSize: 2 * 1024 * 1024 ,
1917 dropZone,
2018 browseTarget,
2119 onFileUploaded : (file ) => {
@@ -138,6 +136,7 @@ const deleteBackup = withErrHandling(async (id) => {
138136 <DropdownItem
139137 v-if =" backupStore.abilities.download.isPermitted"
140138 :text =" __('statamic-backup::backup.download.label')"
139+ target =" _blank"
141140 :href =" `${cp_url('api/backups/download')}/${row.id}`"
142141 />
143142 <DropdownItem
Original file line number Diff line number Diff line change 11import Backup from "./components/Backup.vue" ;
2+ import { inertia } from '@statamic/cms/api'
23
34Statamic . booting ( ( ) => {
4- Statamic . $components . register ( "itiden -backup" , Backup ) ;
5+ inertia . register ( 'statamic -backup::page' , Backup ) ;
56} ) ;
Original file line number Diff line number Diff line change 1010 ],
1111 "require" : {
1212 "ext-zip" : " *" ,
13- "statamic/cms" : " 6.0.0-alpha.4 " ,
13+ "statamic/cms" : " 6.0.0-alpha.15 " ,
1414 "pixelfear/composer-dist-plugin" : " ^0.1.6"
1515 },
1616 "require-dev" : {
1717 "orchestra/testbench" : " ^9.0" ,
1818 "pestphp/pest" : " ^3.0" ,
1919 "pestphp/pest-plugin-laravel" : " ^3.0" ,
20- "carthage-software/mago" : " 1.0.0-beta.5 "
20+ "carthage-software/mago" : " 1.0.0-beta.34 "
2121 },
2222 "autoload" : {
2323 "psr-4" : {
You can’t perform that action at this time.
0 commit comments