Skip to content

Commit

Permalink
icon in connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Jul 26, 2023
1 parent 53e2995 commit 8b15998
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ts/client/grapesjs/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export const storagePlugin = (editor) => {
const user: ConnectorUser = await getCurrentUser(editor) ?? await updateUser(editor, ConnectorType.STORAGE, options.connectorId)
if(user) {
const data = await websiteLoad({websiteId: options.id, connectorId: user.storage.connectorId}) as WebsiteData
data.assets = addTempDataToAssetUrl(data.assets, options.id, user.storage.connectorId)
data.pages = addTemDataToPages(data.pages, options.id, user.storage.connectorId)
data.styles = addTempDataToStyles(data.styles, options.id, user.storage.connectorId)
if(data.assets) data.assets = addTempDataToAssetUrl(data.assets, options.id, user.storage.connectorId)
if(data.pages) data.pages = addTemDataToPages(data.pages, options.id, user.storage.connectorId)
if(data.styles) data.styles = addTempDataToStyles(data.styles, options.id, user.storage.connectorId)
return data
} else {
return new Promise((resolve, reject) => {
Expand Down
3 changes: 2 additions & 1 deletion src/ts/plugins/server/FtpConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ details > p {
export default class FtpConnector implements StorageConnector<FtpSession> {
connectorId = 'ftp'
displayName = 'Ftp'
icon = 'ftp'
//icon = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiB3aWR0aD0iNjQuMDAwM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 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z'/%3E%3C/svg%3E"
options: FtpOptions
connectorType: ConnectorType
color = '#ffffff'
Expand Down

0 comments on commit 8b15998

Please sign in to comment.