Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
8c9ee9f
restructure get signature based on a sync base structure.
DavidCramer Jul 30, 2020
edcb2a7
Rework the separate methods based on sync type
DavidCramer Jul 30, 2020
2328694
cleanup background push
DavidCramer Jul 30, 2020
832fcac
use URL if possible
DavidCramer Jul 31, 2020
e894712
comment
DavidCramer Jul 31, 2020
75a33df
add upgrade and version sync system
DavidCramer Jul 31, 2020
7e85e78
rework public_id checks and filters
DavidCramer Jul 31, 2020
5b5ad84
overload concurrency.
DavidCramer Jul 31, 2020
6b420d8
correct public_id generation
DavidCramer Aug 1, 2020
61ffb12
handle video and large file uploads
DavidCramer Aug 2, 2020
4b2e99f
add public_id as sync state
DavidCramer Aug 3, 2020
ea45cd4
bulk sync refactor and improved
DavidCramer Aug 3, 2020
f519f49
remove debugs
DavidCramer Aug 3, 2020
d02eb3e
increase retry
DavidCramer Aug 3, 2020
c426e9b
better cloudinary ID handling
DavidCramer Aug 4, 2020
4a2dd2b
ignore non-media items
DavidCramer Aug 4, 2020
f14d315
remove debug
DavidCramer Aug 4, 2020
9f03489
cleanup docs
DavidCramer Aug 4, 2020
204e4a2
make importing work, cleanup down sync, cleanup general sync
DavidCramer Aug 4, 2020
cc2d23f
add threaded sync queue, clean up code formatting, remove some unused…
DavidCramer Aug 5, 2020
ced6eb8
add threading to on demand sync
DavidCramer Aug 5, 2020
a68b059
merge develop
DavidCramer Aug 5, 2020
e8f0002
add correct public_id sync method
DavidCramer Aug 5, 2020
5b8ce68
add correct icon and better tocken for background push
DavidCramer Aug 5, 2020
cd7ceb5
typos and text update
DavidCramer Aug 5, 2020
6eca1fb
fix cookie issue and make push only hit the file
DavidCramer Aug 5, 2020
5250cdf
add docs
DavidCramer Aug 5, 2020
9a91202
address issues
DavidCramer Aug 6, 2020
6981486
revise and clarify sync types and add registration method
DavidCramer Aug 6, 2020
c802997
use null over false
DavidCramer Aug 6, 2020
538c6d3
simplify methods
DavidCramer Aug 6, 2020
4524edf
alignment
DavidCramer Aug 6, 2020
e79dd17
address CR changes
DavidCramer Aug 6, 2020
334e8b4
kee nulls consistent
DavidCramer Aug 6, 2020
0c766ee
keep nulls consistent
DavidCramer Aug 6, 2020
beeea63
keep nulls consistent
DavidCramer Aug 6, 2020
108b0a2
better handling url file type fails
DavidCramer Aug 6, 2020
56245fd
Add prep work for suffixing
DavidCramer Aug 6, 2020
6528300
change method
DavidCramer Aug 6, 2020
fc584d7
add sync signatuires on download, improve suffixing
DavidCramer Aug 6, 2020
2854af9
correct suffixing
DavidCramer Aug 6, 2020
b9dc415
correct background process for push/resync
DavidCramer Aug 6, 2020
4dc51b2
cleanup unslashing and old methods
DavidCramer Aug 6, 2020
2b69042
Merge pull request #152 from cloudinary/feature/unique-filenames
pereirinha Aug 6, 2020
fdbc428
get URL on down synced upgrades and resuse old v2 meta from upgrade.
DavidCramer Aug 7, 2020
df5fddd
add upgrade path for v2, to fix broken folder_syncs
DavidCramer Aug 7, 2020
9d4f8ce
add version back to upload.
DavidCramer Aug 8, 2020
f486a7c
add version on import
DavidCramer Aug 8, 2020
2e8343c
remove unessasary svg size filter
DavidCramer Aug 9, 2020
fb856ac
Set default values
Aug 10, 2020
b2bf784
Set default values
Aug 10, 2020
ab6b015
Merge pull request #154 from cloudinary/fix/revise-sync-meta
pereirinha Aug 10, 2020
1f54b18
Update formatting
Aug 10, 2020
a4a65ee
add attachment_id to note callback
DavidCramer Aug 10, 2020
12007d8
add register sync types action
DavidCramer Aug 10, 2020
7f0a48b
ensure that it's a media type with metadata
DavidCramer Aug 10, 2020
8ecc29d
add saved suffix as part of the suffixed check
DavidCramer Aug 11, 2020
c44f933
add suffix signature clear on push upload
DavidCramer Aug 11, 2020
10fd348
remove suffix sync, prefer no overwrite and result checking.
DavidCramer Aug 11, 2020
e7a4ea5
ensure sizes has correct URLS in metadata
DavidCramer Aug 11, 2020
44a21f2
add check that a synctype is still available
DavidCramer Aug 11, 2020
8036981
show items currently syncing, but not yet fully synced.
DavidCramer Aug 11, 2020
6c849d2
Merge pull request #159 from cloudinary/feature/status-on-type-only
pereirinha Aug 11, 2020
d6c1078
Add uploading status
Aug 11, 2020
4f9ea0b
Add compiled asset
Aug 11, 2020
5f661da
Merge pull request #160 from cloudinary/feature/update-upload-icon
pereirinha Aug 11, 2020
41f7fb1
Make sure that Cloudinary is connected before
Aug 11, 2020
95e64de
Merge pull request #161 from cloudinary/fix/revise-sync-meta
Aug 12, 2020
1b7a031
allow some sync types to continue rendering cloudinary urls on non re…
DavidCramer Aug 12, 2020
2de224c
correct docblock
DavidCramer Aug 12, 2020
71c20ad
Merge pull request #162 from cloudinary/fix/required-sync-type
pereirinha Aug 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}
}

&.warning {
&.uploading {
color : $color-orange;

&:before {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,15 @@ public function get_credentials() {
return $this->credentials;
}

/**
* Get the cloud name if set.
*
* @return string|null
*/
public function get_cloud_name() {
return $this->credentials['cloud_name'] ? $this->credentials['cloud_name'] : null;
}

/**
* Set the config credentials from an array.
*
Expand Down Expand Up @@ -364,7 +373,7 @@ public function get_usage_stat( $type, $stat = null ) {
$value = $this->usage[ $type ]['usage'];
} elseif ( 'used_percent' === $stat && isset( $this->usage[ $type ]['credits_usage'] ) ) {
// Calculate percentage based on credit limit and usage.
$value = round( $this->usage[ $type ]['credits_usage']/$this->usage['credits']['limit'] * 100, 2 );
$value = round( $this->usage[ $type ]['credits_usage'] / $this->usage['credits']['limit'] * 100, 2 );
}
}
}
Expand Down
Loading